:root {
    --red: #ff0000;
    --red-deep: #c21e24;
    --dark: #1f2126;
    --dark-2: #15171b;
    --yellow: #f2b63d;
    --yellow-soft: #ffe3a2;
    --white: #ffffff;
    --bg: #f5f6f8;
    --surface: rgba(255,255,255,.92);
    --surface-solid: #ffffff;
    --surface-dark: #1f2126;
    --ink: #1f2126;
    --muted: #737985;
    --line: rgba(31,33,38,.105);
    --line-dark: rgba(255,255,255,.12);
    --shadow: 0 24px 70px rgba(31,33,38,.11);
    --shadow-strong: 0 28px 90px rgba(31,33,38,.22);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --font-body: 'Poppins', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Nunito', 'Poppins', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 10%, rgba(255,0,0,.105), transparent 26%),
        radial-gradient(circle at 86% 6%, rgba(242,182,61,.24), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f6f7f9 48%, #eceff3 100%);
    font-family: var(--font-body);
    letter-spacing: -.01em;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
code { padding: 4px 7px; border-radius: 8px; background: rgba(31,33,38,.07); font-size: 12px; }
h1, h2, h3, .brand-title, .metric-card strong, .summary-row span { font-family: var(--font-heading); }

.app-shell { display: grid; grid-template-columns: 302px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px;
    color: rgba(255,255,255,.9);
    overflow-y: auto;
    z-index: 20;
    background:
        radial-gradient(circle at 20% 0%, rgba(255,0,0,.28), transparent 28%),
        linear-gradient(180deg, #262a31 0%, #1f2126 45%, #15171b 100%);
    box-shadow: 18px 0 50px rgba(31,33,38,.12);
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 999px; }
.brand-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line-dark);
    border-radius: 24px;
    background: rgba(255,255,255,.075);
    backdrop-filter: blur(18px);
}
.brand-crest, .brand-mark {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--yellow);
    box-shadow: 0 14px 34px rgba(242,182,61,.26);
    overflow: hidden;
}
.brand-crest img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-mark { color: var(--dark); font-weight: 1000; }
.brand-logo { height: 22px; max-width: 148px; object-fit: contain; display: block; background: #fff; border-radius: 12px; padding: 7px 10px; box-sizing: content-box; }
.brand-title { font-size: 18px; font-weight: 1000; line-height: 1; letter-spacing: -.04em; color: var(--white); }
.brand-subtitle { color: rgba(255,255,255,.58); font-size: 12px; margin-top: 5px; font-weight: 600; }
.side-nav { display: grid; gap: 7px; margin-top: 26px; }
.side-nav a, .side-disabled {
    display: block;
    padding: 12px 14px;
    border-radius: 16px;
    color: rgba(255,255,255,.74);
    font-weight: 800;
    font-size: 14px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.side-nav a:hover, .side-nav a.is-active {
    background: linear-gradient(135deg, rgba(255,0,0,.88), rgba(194,30,36,.8));
    color: #fff;
    transform: translateX(2px);
    box-shadow: 0 14px 30px rgba(255,0,0,.16);
}
.side-label {
    margin: 22px 12px 8px;
    font-size: 11px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    font-weight: 900;
}
.side-disabled { color: rgba(255,255,255,.34); background: rgba(255,255,255,.045); }

.main-area { min-width: 0; }
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 32px;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    background: rgba(255,255,255,.76);
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar h1 { margin: 3px 0 0; font-size: clamp(24px, 2vw, 35px); letter-spacing: -.045em; line-height: 1.08; }
.page-eyebrow {
    margin: 0;
    color: var(--red);
    font-family: var(--font-heading);
    font-weight: 1000;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 11px;
}
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 12px 30px rgba(31,33,38,.055);
}
.user-pill strong { font-family: var(--font-heading); font-weight: 1000; }
.user-pill small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--dark), #000);
    font-family: var(--font-heading);
    font-weight: 1000;
}
.content-wrap { padding: 28px 32px 42px; }

.dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.metric-card, .panel, .login-form, .login-visual, .role-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.metric-card {
    padding: 22px;
    position: relative;
    overflow: hidden;
    min-height: 152px;
}
.metric-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.48));
    pointer-events: none;
}
.metric-card::after {
    content: '';
    position: absolute;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    right: -44px;
    top: -48px;
    background: rgba(242,182,61,.32);
}
.metric-card > * { position: relative; z-index: 1; }
.metric-card span { display: block; color: var(--muted); font-weight: 800; }
.metric-card strong { display: block; font-size: 42px; letter-spacing: -.06em; margin: 8px 0 2px; line-height: 1; }
.metric-card small { color: var(--muted); font-weight: 600; }
.accent-red::after { background: rgba(255,0,0,.18); }
.accent-green::after { background: rgba(34,160,95,.15); }
.accent-dark::after { background: rgba(31,33,38,.14); }
.accent-yellow::after { background: rgba(242,182,61,.34); }
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-bottom: 18px; }
.panel { padding: 22px; margin-bottom: 18px; }
.narrow-panel { max-width: 900px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-header-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.panel-header h2 { margin: 4px 0 0; font-size: 23px; letter-spacing: -.035em; }
.summary-list, .notice-list { display: grid; gap: 10px; }
.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px;
    border-radius: 18px;
    background: rgba(255,255,255,.78);
    border: 1px solid var(--line);
}
.summary-row strong, .notice-item strong { display: block; }
.summary-row small, .notice-item small, .data-table small, .muted { display: block; color: var(--muted); font-weight: 500; }
.summary-row span { font-size: 24px; font-weight: 1000; }
.notice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.78);
    border-left: 6px solid var(--yellow);
}
.notice-item.warning { border-left-color: var(--yellow); }
.notice-item.critical { border-left-color: var(--red); }
.notice-item.success { border-left-color: #22a05f; }
.notice-item p { margin: 5px 0; color: var(--muted); }
.notice-list-wide .notice-item { align-items: flex-start; }
.notice-item.is-read { opacity: .68; }
.table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.7); }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th {
    text-align: left;
    padding: 13px 14px;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(31,33,38,.045);
    font-weight: 900;
}
.data-table td { padding: 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.text-right { text-align: right; }
.row-actions { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.row-actions form { display: inline; }
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    background: rgba(31,33,38,.08);
    color: var(--dark);
}
.badge-success { background: rgba(34,160,95,.12); color: #18814a; }
.badge-soft { background: rgba(31,33,38,.08); color: var(--muted); }
.btn, .icon-button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn { min-height: 42px; padding: 0 16px; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--red) 0%, #d50000 48%, var(--dark) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(255,0,0,.18);
}
.btn-ghost { background: rgba(255,255,255,.65); }
.btn-danger { background: rgba(255,0,0,.08); color: var(--red); border-color: rgba(255,0,0,.2); }
.btn-small { min-height: 34px; padding: 0 12px; font-size: 12px; }
.btn-full { width: 100%; }
.icon-button { width: 44px; height: 44px; display: none; background: rgba(255,255,255,.8); border: 1px solid var(--line); }
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.toolbar input { flex: 1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label, fieldset { font-weight: 900; color: var(--dark); }
input, textarea, select {
    width: 100%;
    margin-top: 8px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.88);
    border-radius: 16px;
    padding: 13px 14px;
    outline: none;
    color: var(--ink);
}
input:focus, textarea:focus, select:focus { border-color: rgba(255,0,0,.42); box-shadow: 0 0 0 4px rgba(255,0,0,.08); }
textarea { resize: vertical; }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; }
.check-line { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.check-line input { width: auto; margin: 0; }
.check-group {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    background: rgba(255,255,255,.62);
}
.check-group legend { padding: 0 8px; color: var(--muted); }
.alert { padding: 14px 16px; border-radius: 18px; margin-bottom: 16px; font-weight: 800; border: 1px solid; }
.alert-success { background: rgba(34,160,95,.11); color: #18814a; border-color: rgba(34,160,95,.2); }
.alert-error { background: rgba(255,0,0,.08); color: var(--red); border-color: rgba(255,0,0,.18); }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.role-card { padding: 18px; box-shadow: none; }
.role-card span { color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.role-card strong { display: block; margin: 6px 0; font-size: 18px; }
.role-card p { color: var(--muted); min-height: 42px; }

.auth-body {
    display: grid;
    place-items: center;
    padding: 28px;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 9% 18%, rgba(255,0,0,.22), transparent 27%),
        radial-gradient(circle at 88% 14%, rgba(242,182,61,.33), transparent 28%),
        radial-gradient(circle at 78% 82%, rgba(255,0,0,.10), transparent 30%),
        linear-gradient(135deg, #121419 0%, #1f2126 45%, #f6f7f9 45.1%, #ffffff 100%);
}
.auth-page { width: min(1180px, 100%); }
.login-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, .82fr);
    gap: 22px;
    align-items: stretch;
}
.login-visual {
    padding: clamp(28px, 4.6vw, 56px);
    color: #fff;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    background:
        linear-gradient(135deg, rgba(255,0,0,.14), transparent 30%),
        radial-gradient(circle at 95% 8%, rgba(242,182,61,.30), transparent 32%),
        radial-gradient(circle at 94% 92%, rgba(255,0,0,.62), transparent 24%),
        linear-gradient(135deg, #292c33 0%, #1f2126 55%, #111318 100%);
    box-shadow: 0 34px 90px rgba(0,0,0,.25);
}
.login-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(255,255,255,.08), transparent 37%),
        radial-gradient(circle at 5% 100%, rgba(255,255,255,.08), transparent 24%);
    pointer-events: none;
}
.login-visual::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    right: -148px;
    bottom: -148px;
    border-radius: 50%;
    background: rgba(255,0,0,.68);
    filter: blur(2px);
    box-shadow: 0 0 90px rgba(255,0,0,.42);
}
.login-brand-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.login-logo-panel {
    width: fit-content;
    max-width: 100%;
    display: flex;
    align-items: center;
    padding: 13px 18px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(0,0,0,.18);
}
.login-logo-panel img.logo-word { height: 42px; width: auto; max-width: 260px; display: block; }
.login-logo-panel img.logo-icon { display: none; }
.login-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    color: rgba(255,255,255,.86);
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.14);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
}
.login-copy { position: relative; z-index: 1; max-width: 680px; }
.login-visual h1 {
    font-size: clamp(40px, 4.8vw, 68px);
    line-height: .98;
    letter-spacing: -.067em;
    margin: 22px 0 18px;
    max-width: 720px;
}
.login-visual p { color: rgba(255,255,255,.74); max-width: 610px; font-weight: 500; font-size: 15px; line-height: 1.72; }
.login-highlights {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 590px;
}
.login-highlights div {
    min-height: 92px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.075);
    backdrop-filter: blur(16px);
}
.login-highlights span {
    display: block;
    color: var(--yellow);
    font-family: var(--font-heading);
    font-weight: 1000;
    letter-spacing: .08em;
    font-size: 12px;
    margin-bottom: 10px;
}
.login-highlights strong { display: block; font-family: var(--font-heading); font-size: 18px; letter-spacing: -.035em; }
.login-form {
    padding: clamp(28px, 4vw, 52px);
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 36px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,255,255,.88)),
        radial-gradient(circle at 0% 0%, rgba(242,182,61,.14), transparent 34%);
    box-shadow: 0 34px 90px rgba(31,33,38,.13);
    position: relative;
    overflow: hidden;
}
.login-form::before {
    content: '';
    position: absolute;
    width: 270px;
    height: 270px;
    right: -142px;
    top: -142px;
    border-radius: 50%;
    background: rgba(242,182,61,.18);
    pointer-events: none;
}
.login-form > * { position: relative; z-index: 1; }
.login-form-head { margin-bottom: 8px; }
.login-form h2 { margin: 0 0 10px; font-size: clamp(34px, 3.2vw, 46px); line-height: 1; letter-spacing: -.055em; }
.login-form .muted { font-size: 14px; line-height: 1.65; }
.login-form strong { color: var(--dark); }
.field-label {
    margin: 18px 0 0;
    display: block;
    font-family: var(--font-heading);
    font-weight: 1000;
    letter-spacing: -.02em;
}
.field-shell {
    margin-top: 9px;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(31,33,38,.12);
    background: rgba(255,255,255,.86);
    border-radius: 19px;
    padding: 0 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field-shell:focus-within { border-color: rgba(255,0,0,.42); box-shadow: 0 0 0 5px rgba(255,0,0,.075); background: #fff; }
.field-shell input {
    margin: 0;
    min-height: 56px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
    font-weight: 800;
}
.field-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--dark));
    font-weight: 900;
    font-size: 13px;
}
.password-shell { padding-right: 8px; }
.password-toggle {
    min-width: 68px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(31,33,38,.07);
    color: var(--dark);
    cursor: pointer;
    font-size: 12px;
    font-weight: 1000;
    transition: background .18s ease, transform .18s ease;
}
.password-toggle:hover { background: rgba(255,0,0,.09); transform: translateY(-1px); }
.login-submit { min-height: 58px; margin-top: 22px; font-size: 16px; box-shadow: 0 18px 40px rgba(255,0,0,.20); }
.login-note { text-align: center; color: var(--muted); font-size: 13px; margin: 18px 0 0; font-weight: 500; }

@media (max-width: 1100px) {
    .dashboard-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .two-col { grid-template-columns: 1fr; }
    .role-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 860px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; transform: translateX(-102%); transition: .25s ease; width: min(86vw, 318px); }
    .sidebar.is-open { transform: translateX(0); }
    .icon-button { display: inline-flex; }
    .topbar { padding: 16px; align-items: flex-start; }
    .topbar-actions { flex-direction: column; align-items: flex-end; }
    .content-wrap { padding: 18px 16px 32px; }
    .form-grid, .login-card { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .login-visual { min-height: auto; gap: 56px; }
    .check-group { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .dashboard-grid, .role-grid { grid-template-columns: 1fr; }
    .panel-header, .toolbar, .topbar { flex-direction: column; align-items: stretch; }
    .topbar-actions { align-items: stretch; }
    .row-actions { flex-direction: column; align-items: flex-end; }
    .user-pill { justify-content: center; }
    .login-form, .login-visual { border-radius: 24px; }
    .auth-body { padding: 14px; background: linear-gradient(180deg, #1f2126 0%, #1f2126 36%, #f5f6f8 36.2%, #fff 100%); }
}

/* v0.1.2 login polish */
@media (max-width: 980px) {
    .login-card { grid-template-columns: 1fr; }
    .login-visual { min-height: 520px; }
}
@media (max-width: 620px) {
    .login-brand-row { align-items: flex-start; flex-direction: column; }
    .login-logo-panel { border-radius: 20px; padding: 11px 14px; }
    .login-logo-panel img.logo-word { height: 34px; max-width: 220px; }
    .login-visual { min-height: auto; gap: 42px; padding: 24px; }
    .login-visual h1 { font-size: clamp(34px, 12vw, 48px); }
    .login-highlights { grid-template-columns: 1fr; }
    .login-highlights div { min-height: auto; }
    .login-form { padding: 24px; border-radius: 26px; }
    .field-shell { min-height: 54px; border-radius: 17px; }
    .field-shell input { min-height: 52px; }
    .password-toggle { min-width: 62px; height: 38px; }
}


/* v0.1.3 yellow-dominant brand refresh */
:root {
    --surface: rgba(255,255,255,.95);
    --bg: #fff8e9;
}
body {
    background:
        radial-gradient(circle at 10% 8%, rgba(242,182,61,.30), transparent 24%),
        radial-gradient(circle at 92% 4%, rgba(255,0,0,.10), transparent 18%),
        linear-gradient(135deg, #fff8e8 0%, #fffdf7 48%, #fff3cc 100%);
}
.sidebar {
    background:
        radial-gradient(circle at 20% 0%, rgba(255,255,255,.20), transparent 24%),
        radial-gradient(circle at 100% 10%, rgba(255,0,0,.18), transparent 24%),
        linear-gradient(180deg, #f7c84c 0%, #f2b63d 32%, #1f2126 100%);
    box-shadow: 18px 0 50px rgba(96,72,17,.16);
}
.brand-card {
    padding: 8px 0 12px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.18);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
}
.brand-logo {
    height: 26px;
    max-width: 170px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-sizing: border-box;
}
.brand-subtitle { color: rgba(255,255,255,.82); }
.side-nav a, .side-disabled { color: rgba(255,255,255,.92); }
.side-nav a:hover, .side-nav a.is-active {
    background: linear-gradient(135deg, #fff1b8, #ffffff);
    color: var(--dark);
    box-shadow: 0 14px 30px rgba(255,255,255,.18);
}
.nav-item { display: inline-flex; align-items: center; gap: 10px; }
.nav-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.15);
    color: currentColor;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
}
.side-nav a.is-active .nav-icon,
.side-nav a:hover .nav-icon {
    background: rgba(242,182,61,.30);
    border-color: rgba(31,33,38,.08);
}
.side-disabled .nav-icon { opacity: .55; }
.topbar {
    background: rgba(255,252,245,.88);
}
.page-eyebrow { color: var(--red); }
.btn-primary {
    background: linear-gradient(135deg, #f2b63d 0%, #ffd764 56%, #ff0000 100%);
    color: var(--dark);
    box-shadow: 0 16px 34px rgba(242,182,61,.28);
}
.btn-primary .btn-icon { font-size: 16px; }
.btn-ghost { background: rgba(255,255,255,.84); }
input:focus, textarea:focus, select:focus {
    border-color: rgba(242,182,61,.95);
    box-shadow: 0 0 0 4px rgba(242,182,61,.18);
}
.auth-body {
    background:
        radial-gradient(circle at 8% 10%, rgba(242,182,61,.26), transparent 26%),
        radial-gradient(circle at 92% 14%, rgba(255,0,0,.10), transparent 18%),
        linear-gradient(135deg, #f9c846 0%, #f6db87 28%, #ffffff 28.2%, #fffdfa 100%);
}
.login-card { grid-template-columns: minmax(0, 1fr) minmax(390px, .82fr); }
.login-visual {
    min-height: 620px;
    color: var(--dark);
    background:
        radial-gradient(circle at 88% 12%, rgba(255,255,255,.24), transparent 24%),
        radial-gradient(circle at 8% 88%, rgba(255,255,255,.10), transparent 24%),
        linear-gradient(145deg, #f4be45 0%, #f2b63d 48%, #e8a600 100%);
    border: 1px solid rgba(31,33,38,.08);
    box-shadow: 0 34px 90px rgba(148,108,11,.22);
}
.login-visual::before {
    background:
        linear-gradient(120deg, rgba(255,255,255,.18), transparent 38%),
        radial-gradient(circle at 100% 0%, rgba(255,255,255,.22), transparent 30%);
}
.login-visual::after {
    width: 280px;
    height: 280px;
    right: -96px;
    bottom: -96px;
    background: rgba(255,0,0,.16);
    box-shadow: 0 0 90px rgba(255,0,0,.18);
}
.login-logo-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.login-logo-panel img.logo-word { height: 48px; max-width: 260px; }
.login-status-pill {
    color: var(--dark);
    background: rgba(255,255,255,.28);
    border: 1px solid rgba(255,255,255,.36);
}
.login-copy .page-eyebrow { color: rgba(31,33,38,.82); }
.login-visual h1 { color: var(--white); text-shadow: 0 2px 0 rgba(31,33,38,.08); }
.login-visual p { color: rgba(31,33,38,.84); max-width: 630px; }
.login-highlights { max-width: 640px; }
.login-highlights div {
    min-height: 106px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.28);
    backdrop-filter: blur(10px);
}
.login-highlights .highlight-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    margin-bottom: 12px;
    background: rgba(31,33,38,.90);
    color: var(--yellow);
    font-size: 16px;
    font-weight: 1000;
}
.login-highlights strong { color: var(--dark); }
.login-highlights small { display: block; margin-top: 7px; color: rgba(31,33,38,.72); font-size: 12px; line-height: 1.55; }
.login-form {
    background:
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,253,247,.96)),
        radial-gradient(circle at 0% 0%, rgba(242,182,61,.18), transparent 34%);
}
.login-form::before { background: rgba(242,182,61,.22); }
.field-shell { border-color: rgba(31,33,38,.10); }
.field-shell:focus-within {
    border-color: rgba(242,182,61,.95);
    box-shadow: 0 0 0 5px rgba(242,182,61,.16);
}
.field-icon {
    background: linear-gradient(135deg, #f2b63d, #ffd764);
    color: var(--dark);
    box-shadow: 0 8px 20px rgba(242,182,61,.24);
}
.password-toggle {
    min-width: 90px;
    background: rgba(242,182,61,.16);
    color: var(--dark);
}
.password-toggle:hover { background: rgba(242,182,61,.26); }
.login-submit { box-shadow: 0 18px 40px rgba(242,182,61,.24); }
.login-note { color: #7a7057; }
@media (max-width: 620px) {
    .auth-body {
        padding: 14px;
        background: linear-gradient(180deg, #f6c549 0%, #f6c549 34%, #fff7e8 34.2%, #fffdfa 100%);
    }
    .login-logo-panel img.logo-word { height: 38px; max-width: 220px; }
}


/* v0.1.4 login icon refinement */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.field-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 999px;
}
.field-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}
.password-shell { padding-right: 10px; }
.password-toggle {
    min-width: 46px;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 999px;
    background: rgba(242,182,61,.18);
    border: 1px solid rgba(242,182,61,.16);
    flex-shrink: 0;
}
.password-icon-wrap {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
}
.password-icon-wrap svg {
    width: 20px;
    height: 20px;
    display: block;
}
.login-submit {
    font-size: 17px;
    letter-spacing: -.02em;
}
@media (max-width: 620px) {
    .field-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    .password-toggle {
        width: 44px;
        min-width: 44px;
        height: 44px;
    }
}


/* v0.1.5 production polish */
.login-visual {
    background:
        radial-gradient(circle at 88% 12%, rgba(255,255,255,.18), transparent 24%),
        linear-gradient(180deg, #f5c64f 0%, #f2b63d 66%, #121417 66.1%, #0f1115 100%);
}
.login-visual::after {
    width: 260px;
    height: 260px;
    right: -82px;
    bottom: 42px;
    background: rgba(255,153,0,.22);
    box-shadow: 0 0 90px rgba(255,153,0,.12);
}
.login-copy {
    max-width: 720px;
}
.login-copy .page-eyebrow {
    display: none;
}
.login-visual h1 {
    margin: 10px 0 18px;
    max-width: 680px;
    font-size: clamp(42px, 4.8vw, 72px);
    font-weight: 1000;
    line-height: .95;
    letter-spacing: -.085em;
}
.login-visual p {
    max-width: 690px;
    color: rgba(31,33,38,.92);
    font-size: 15px;
    line-height: 1.68;
    font-weight: 600;
}
.login-highlights {
    position: relative;
    z-index: 1;
    max-width: 740px;
    gap: 16px;
    padding: 26px 0 10px;
}
.login-highlights::before {
    content: '';
    position: absolute;
    left: -56px;
    right: -56px;
    top: 72px;
    bottom: -56px;
    background: linear-gradient(180deg, #16191f 0%, #0f1115 100%);
    border-top-right-radius: 34px;
    border-top-left-radius: 34px;
    z-index: -1;
}
.login-highlights div {
    min-height: 206px;
    padding: 24px 22px 20px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.62);
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(0,0,0,.12);
}
.login-highlights .highlight-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: #1f2126;
    color: #f2b63d;
    display: grid;
    place-items: center;
    font-size: 21px;
}
.login-highlights strong {
    display: block;
    text-align: center;
    color: #1f2126;
    font-size: 18px;
    font-weight: 1000;
    letter-spacing: -.03em;
}
.login-highlights small {
    margin-top: 10px;
    text-align: center;
    color: #4f5561;
    font-size: 13px;
    line-height: 1.62;
    font-weight: 600;
}
@media (max-width: 980px) {
    .login-highlights::before {
        left: -28px;
        right: -28px;
    }
}
@media (max-width: 620px) {
    .login-visual {
        background: linear-gradient(180deg, #f5c64f 0%, #f2b63d 62%, #121417 62.1%, #0f1115 100%);
    }
    .login-visual h1 {
        font-size: clamp(36px, 10.5vw, 52px);
        line-height: .98;
        letter-spacing: -.075em;
    }
    .login-highlights {
        padding-top: 18px;
    }
    .login-highlights::before {
        left: -24px;
        right: -24px;
        top: 40px;
        bottom: -24px;
        border-top-right-radius: 28px;
        border-top-left-radius: 28px;
    }
    .login-highlights div {
        min-height: auto;
        padding: 20px 18px;
        border-radius: 24px;
    }
}


/* v0.1.6 page background + simpler highlight cards */
.auth-body {
    background:
        radial-gradient(circle at 14% 16%, rgba(255,0,0,.18), transparent 24%),
        radial-gradient(circle at 86% 18%, rgba(194,30,36,.16), transparent 22%),
        linear-gradient(135deg, #090a0d 0%, #12141a 38%, #2a0d12 72%, #5b1118 100%);
}
.login-card {
    position: relative;
    z-index: 1;
}
.login-highlights div {
    min-height: 142px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.login-highlights strong {
    margin-top: 2px;
    max-width: 180px;
    text-align: center;
    line-height: 1.25;
}
.login-highlights small {
    display: none !important;
}
@media (max-width: 620px) {
    .auth-body {
        background: linear-gradient(180deg, #090a0d 0%, #181b22 36%, #3a1016 72%, #62131a 100%);
    }
    .login-highlights div {
        min-height: 124px;
    }
}


/* v0.1.7 consistent highlight icon family */
.login-highlights .highlight-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: #1f2126;
    color: #f2b63d;
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.login-highlights .highlight-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}
.login-highlights strong {
    margin-top: 14px;
}


/* v0.1.8 mobile polish */
@media (max-width: 900px) {
    .auth-body {
        display: block;
        padding: 12px;
        overflow-x: hidden;
    }
    .auth-page {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    .login-card {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        max-width: 100%;
    }
    .login-visual,
    .login-form {
        width: 100%;
        min-width: 0;
    }
    .login-visual {
        min-height: auto;
        padding: 20px 18px 22px;
        border-radius: 26px;
        gap: 18px;
    }
    .login-brand-row {
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .login-logo-panel img.logo-word {
        height: 36px;
        max-width: 210px;
    }
    .login-status-pill {
        min-height: 32px;
        padding: 0 12px;
        font-size: 11px;
        white-space: nowrap;
    }
    .login-copy {
        max-width: none;
    }
    .login-visual h1 {
        margin: 4px 0 12px;
        max-width: none;
        font-size: clamp(30px, 8.8vw, 42px);
        line-height: 1.02;
        letter-spacing: -.07em;
    }
    .login-visual p {
        max-width: none;
        font-size: 14px;
        line-height: 1.58;
    }
    .login-highlights {
        max-width: none;
        grid-template-columns: repeat(3, minmax(150px, 1fr));
        gap: 12px;
        padding: 6px 2px 4px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
    }
    .login-highlights::before {
        display: none;
    }
    .login-highlights::-webkit-scrollbar {
        height: 6px;
    }
    .login-highlights::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.25);
        border-radius: 999px;
    }
    .login-highlights div {
        min-height: 118px;
        padding: 18px 14px;
        border-radius: 22px;
        scroll-snap-align: start;
    }
    .login-highlights .highlight-icon {
        width: 54px;
        height: 54px;
        border-radius: 16px;
    }
    .login-highlights .highlight-icon svg {
        width: 22px;
        height: 22px;
    }
    .login-highlights strong {
        margin-top: 12px;
        font-size: 15px;
        line-height: 1.24;
    }
    .login-form {
        padding: 22px 18px;
        border-radius: 26px;
    }
    .login-form::before {
        width: 190px;
        height: 190px;
        right: -110px;
        top: -110px;
    }
    .login-form h2 {
        font-size: clamp(26px, 8vw, 40px);
        line-height: 1.02;
    }
    .login-form .muted {
        font-size: 13px;
        line-height: 1.55;
    }
    .field-label {
        margin-top: 16px;
        font-size: 14px;
    }
    .field-shell {
        min-height: 56px;
        padding: 0 12px;
        border-radius: 18px;
    }
    .field-shell input {
        min-height: 54px;
        font-size: 16px;
    }
    .field-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    .field-icon svg {
        width: 18px;
        height: 18px;
    }
    .password-toggle {
        width: 44px;
        min-width: 44px;
        height: 44px;
    }
    .login-submit {
        min-height: 54px;
        margin-top: 18px;
        font-size: 16px;
    }
    .login-note {
        margin-top: 14px;
        font-size: 12px;
        line-height: 1.55;
    }
}

@media (max-width: 520px) {
    .auth-body {
        padding: 10px;
    }
    .login-visual,
    .login-form {
        border-radius: 22px;
    }
    .login-visual {
        padding: 18px 16px 20px;
    }
    .login-brand-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .login-logo-panel img.logo-word {
        height: 32px;
        max-width: 185px;
    }
    .login-status-pill {
        min-height: 30px;
        font-size: 10px;
    }
    .login-visual h1 {
        font-size: clamp(28px, 10vw, 38px);
        line-height: 1.03;
    }
    .login-visual p {
        font-size: 13px;
    }
    .login-highlights {
        grid-template-columns: 1fr;
        overflow: visible;
        padding: 4px 0 2px;
    }
    .login-highlights div {
        min-height: 104px;
    }
    .login-form {
        padding: 20px 16px;
    }
}

/* v0.2 CRUD hardening + responsive admin polish */
.filter-toolbar { flex-wrap: wrap; align-items: center; }
.filter-toolbar input { min-width: min(340px, 100%); }
.filter-toolbar select { width: auto; min-width: 170px; margin-top: 0; border-radius: 999px; padding: 0 16px; min-height: 42px; background: rgba(255,255,255,.86); }
.admin-panel .panel-header { align-items: flex-start; }
.check-col { width: 46px; text-align: center; }
.check-col input, .notice-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--yellow); }
.empty-state { text-align: center; padding: 34px 16px !important; color: var(--muted); font-weight: 800; }
.bulk-command {
    position: sticky;
    bottom: 18px;
    z-index: 30;
    margin-top: 16px;
    padding: 12px;
    border-radius: 24px;
    border: 1px solid rgba(242,182,61,.34);
    background: linear-gradient(135deg, rgba(31,33,38,.96), rgba(93,22,26,.94));
    box-shadow: 0 24px 60px rgba(31,33,38,.24);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.bulk-command[hidden] { display: none !important; }
.bulk-command small { display: block; color: rgba(255,255,255,.62); font-weight: 600; }
.bulk-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bulk-actions select { margin: 0; width: auto; min-width: 190px; min-height: 42px; border-radius: 999px; background: rgba(255,255,255,.94); }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.permission-module { border: 1px solid var(--line); border-radius: 24px; padding: 18px; background: rgba(255,255,255,.74); }
.permission-module h3 { margin: 0 0 14px; font-size: 19px; }
.permission-list { display: grid; gap: 10px; }
.permission-row { padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.permission-row code { display: inline-block; margin-bottom: 6px; }
.notice-check { display: inline-flex; align-items: flex-start; padding-top: 5px; }
.notice-item { align-items: flex-start; }
.role-grid-v2 .role-card { min-height: 190px; }
@media (max-width: 980px) {
    .permission-grid { grid-template-columns: 1fr; }
    .bulk-command { align-items: stretch; flex-direction: column; }
    .bulk-actions { width: 100%; }
    .bulk-actions select, .bulk-actions .btn { flex: 1; }
}
@media (max-width: 760px) {
    .filter-toolbar { display: grid; grid-template-columns: 1fr; }
    .filter-toolbar input, .filter-toolbar select, .filter-toolbar .btn { width: 100%; min-width: 0; }
    .responsive-table { min-width: 0; border-collapse: separate; border-spacing: 0 12px; }
    .responsive-table thead { display: none; }
    .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; width: 100%; }
    .responsive-table tr {
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(255,255,255,.94);
        box-shadow: 0 10px 24px rgba(31,33,38,.06);
    }
    .responsive-table td {
        border: 0;
        padding: 8px 0;
        text-align: left !important;
    }
    .responsive-table td::before {
        content: attr(data-label);
        display: block;
        color: var(--muted);
        font-size: 11px;
        letter-spacing: .08em;
        text-transform: uppercase;
        font-weight: 900;
        margin-bottom: 4px;
    }
    .responsive-table td.check-col::before { display: none; }
    .row-actions { align-items: stretch; justify-content: flex-start; gap: 8px; }
    .row-actions .btn, .row-actions form, .row-actions button { width: 100%; }
    .bulk-actions { display: grid; grid-template-columns: 1fr; }
}
.hidden-form { display: none !important; }


/* v0.2.1 Archive & Restore Manager */
.archive-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
    background:
        radial-gradient(circle at 8% 0%, rgba(242,182,61,.30), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,249,232,.90));
}
.archive-hero h2 { margin: 4px 0 8px; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.055em; }
.archive-safety-card {
    min-width: min(320px, 100%);
    padding: 18px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #1f2126, #5b1118);
    box-shadow: 0 20px 44px rgba(31,33,38,.18);
}
.archive-safety-card strong { display: block; font-family: var(--font-heading); font-size: 20px; }
.archive-safety-card small { display: block; margin-top: 8px; color: rgba(255,255,255,.72); line-height: 1.6; font-weight: 600; }
.archive-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 10px;
    margin-bottom: 22px;
}
.archive-tab {
    min-height: 102px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,.82);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    font-weight: 900;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.archive-tab:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(31,33,38,.08); }
.archive-tab.is-active {
    background: linear-gradient(135deg, #f2b63d, #ffd764);
    border-color: rgba(31,33,38,.08);
    box-shadow: 0 18px 40px rgba(242,182,61,.25);
}
.archive-tab-icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #1f2126;
    color: #f2b63d;
}
.archive-tab strong {
    width: fit-content;
    min-width: 32px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: #1f2126;
    font-size: 12px;
}
.archive-list-head { margin-top: 2px; }
.archive-table strong { font-family: var(--font-heading); }
@media (max-width: 1100px) {
    .archive-tabs { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .archive-hero { flex-direction: column; }
    .archive-tabs { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .archive-tab { min-height: 92px; }
}
@media (max-width: 460px) {
    .archive-tabs { grid-template-columns: 1fr; }
}

/* v0.2.2 Final Core Polish */
.bulk-reason-box {
    flex: 1;
    min-width: min(360px, 100%);
}
.bulk-reason-box label {
    display: block;
    margin: 0 0 6px;
    color: rgba(255,255,255,.82);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.bulk-reason-box textarea {
    width: 100%;
    min-height: 46px;
    margin: 0;
    resize: vertical;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.95);
    color: var(--dark);
    font-size: 12px;
    line-height: 1.45;
}
.archive-table td[data-label="Alasan Arsip"] small {
    max-width: 280px;
    line-height: 1.55;
}
.archive-table td[data-label="Diarsipkan"] small {
    line-height: 1.5;
}
.form-grid small.muted {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.5;
}
@media (max-width: 980px) {
    .bulk-reason-box { min-width: 100%; }
    .bulk-command { gap: 12px; }
}
@media (max-width: 760px) {
    .archive-table td[data-label="Alasan Arsip"] small { max-width: none; }
}


/* v0.3 POS Order Spine */
.pos-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background:
        radial-gradient(circle at 4% 0%, rgba(242,182,61,.28), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,250,238,.90));
}
.pos-hero h2 { margin: 4px 0 6px; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.055em; }
.pos-hero-card {
    min-width: 280px;
    padding: 18px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #1f2126, #5b1118);
    box-shadow: 0 20px 44px rgba(31,33,38,.18);
}
.pos-hero-card strong, .pos-hero-card small { display: block; }
.pos-hero-card small { margin-top: 8px; color: rgba(255,255,255,.72); line-height: 1.5; }
.pos-hero-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.pos-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 18px; align-items: start; }
.pos-menu-panel, .pos-cart-panel { margin-bottom: 18px; }
.pos-cart-panel { position: sticky; top: 104px; }
.pos-search { max-width: 320px; }
.pos-category-tabs { display:flex; gap:8px; flex-wrap:wrap; margin: 0 0 16px; }
.pos-menu-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pos-menu-card {
    min-height: 152px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(31,33,38,.055);
    transition: transform .18s ease, box-shadow .18s ease, border .18s ease;
}
.pos-menu-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(31,33,38,.10); border-color: rgba(242,182,61,.48); }
.pos-menu-card span { display:inline-flex; padding:5px 9px; border-radius:999px; background: rgba(242,182,61,.16); color:#7c5b0f; font-size:11px; font-weight:900; }
.pos-menu-card strong { display:block; margin:12px 0 5px; font-size:18px; line-height:1.18; }
.pos-menu-card small { color: var(--muted); font-weight:600; line-height:1.4; }
.pos-menu-card b { display:block; margin-top:12px; font-size:18px; }
.pos-cart-list { display:grid; gap:10px; margin: 14px 0; }
.pos-cart-item {
    display:grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 10px;
    align-items:center;
    padding: 12px;
    border:1px solid var(--line);
    border-radius:18px;
    background: rgba(255,255,255,.86);
}
.pos-cart-item strong, .pos-cart-item small { display:block; }
.pos-cart-item small { color: var(--muted); font-weight:600; margin-top:4px; }
.pos-cart-item input { min-height: 36px; margin-top: 8px; padding: 8px 10px; border-radius: 12px; font-size: 12px; }
.cart-qty { display:flex; align-items:center; gap:8px; }
.cart-qty button { width:32px; height:32px; border-radius:999px; border:0; background:#1f2126; color:#f2b63d; font-weight:1000; cursor:pointer; }
.cart-qty span { min-width:24px; text-align:center; font-weight:1000; }
.pos-total-row, .pos-total-box div {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:14px 0;
    border-top:1px solid var(--line);
}
.pos-total-row strong { font-size:24px; }
.pos-detail-hero { display:flex; justify-content:space-between; gap:18px; align-items:center; }
.pos-status-pills { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.pos-detail-grid { align-items:start; }
.compact-form { gap:12px; }
.cancel-box { margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }
.kitchen-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:18px; }
.kitchen-ticket { min-height: 300px; display:flex; flex-direction:column; }
.kitchen-ticket-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
.kitchen-ticket-head h2 { margin:4px 0 6px; }
.kitchen-items { display:grid; gap:10px; flex:1; }
.kitchen-items div { padding:12px; border:1px solid var(--line); border-radius:16px; background:rgba(255,255,255,.82); }
.kitchen-items strong, .kitchen-items small { display:block; }
.kitchen-items small { margin-top:5px; color:var(--muted); }
.kitchen-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.status-queued { border-left: 6px solid var(--yellow); }
.status-preparing { border-left: 6px solid var(--red); }
.status-ready { border-left: 6px solid #22a05f; }
@media (max-width: 1180px) {
    .pos-layout { grid-template-columns: 1fr; }
    .pos-cart-panel { position: static; }
    .kitchen-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 860px) {
    .pos-hero, .pos-detail-hero { flex-direction:column; align-items:stretch; }
    .pos-hero-actions, .pos-status-pills { justify-content:flex-start; }
    .pos-menu-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .kitchen-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .pos-menu-grid { grid-template-columns: 1fr; }
    .pos-cart-item { grid-template-columns: 1fr; }
    .cart-qty { justify-content:space-between; }
    .pos-hero-actions .btn { width: 100%; }
    .kitchen-actions .btn { width: 100%; }
}

/* v0.3.1 POS Polish + Split Bill Foundation */
.pos-order-metrics { margin: 12px 0 18px; }
.pos-order-metrics .metric-card { min-height: 128px; }
.pos-mini-metrics { margin-bottom: 18px; }
.pos-mini-metrics .metric-card { min-height: 132px; }
.bill-share-card {
    background:
        radial-gradient(circle at 0% 0%, rgba(242,182,61,.18), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,253,247,.94));
}
.bill-share-layout {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}
.bill-share-layout img {
    width: 156px;
    height: 156px;
    padding: 10px;
    border: 1px dashed var(--line);
    border-radius: 22px;
    background: #fff;
}
.bill-share-layout strong {
    display: block;
    word-break: break-all;
    font-size: 13px;
    line-height: 1.55;
}
.kitchen-hero .btn.is-active {
    background: linear-gradient(135deg, var(--yellow), #ffefc2);
    color: var(--dark);
    border-color: rgba(242,182,61,.32);
}
.kitchen-timer-box {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(31,33,38,.055);
    border: 1px solid var(--line);
    margin-bottom: 14px;
}
.kitchen-timer-box span,
.kitchen-timer-box small { color: var(--muted); font-weight: 700; }
.kitchen-timer-box strong {
    grid-row: span 2;
    font-family: var(--font-heading);
    font-size: 28px;
    letter-spacing: -.04em;
}
.kitchen-ticket.sla-warning .kitchen-timer-box { background: rgba(242,182,61,.13); border-color: rgba(242,182,61,.32); }
.kitchen-ticket.sla-critical .kitchen-timer-box { background: rgba(255,0,0,.08); border-color: rgba(255,0,0,.22); }
.denom-grid {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    background: rgba(255,255,255,.66);
}
.denom-grid legend {
    padding: 0 10px;
    color: var(--muted);
    font-weight: 1000;
}
.denom-grid label {
    font-size: 12px;
    color: var(--muted);
}
.denom-grid input {
    min-height: 42px;
    margin-top: 6px;
    border-radius: 14px;
}
.closing-total-card {
    padding: 18px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, #1f2126, #5b1118);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.closing-total-card span,
.closing-total-card small { color: rgba(255,255,255,.72); font-weight: 700; }
.closing-total-card strong { font-size: 28px; }
@media (max-width: 980px) {
    .bill-share-layout { grid-template-columns: 1fr; }
    .denom-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .denom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bill-share-layout img { width: 136px; height: 136px; }
    .closing-total-card { align-items: flex-start; flex-direction: column; }
}

/* Warnoes OS v0.4.0 transaction hardening UI */
.badge-warning {
    background: rgba(242, 182, 61, .18);
    color: #7c5b0f;
}
.notice-item.danger {
    border-left-color: var(--red);
    background: rgba(255, 0, 0, .045);
}
.row-attention {
    background: linear-gradient(90deg, rgba(242, 182, 61, .12), rgba(255,255,255,0));
}
.check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 16px;
    margin-top: 12px;
}
@media (max-width: 760px) {
    .check-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .check-grid { grid-template-columns: 1fr; }
}

/* v0.5.0 Inventory & Procurement */
.badge-warning { background: rgba(242,182,61,.20); color: #8b6200; }
.badge-danger { background: rgba(255,0,0,.10); color: var(--red); }
.qty-positive { color: #18814a; font-weight: 900; }
.qty-negative { color: var(--red); font-weight: 900; }
.row-warning { background: rgba(242,182,61,.08); }
.empty-state { padding: 28px !important; text-align: center; color: var(--muted); font-weight: 700; }
.compact-metric { min-height: 132px; }
.compact-metric strong { font-size: clamp(26px, 2.5vw, 38px); }
.module-launcher { overflow: hidden; }
.module-card-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.module-card { min-height: 148px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg,rgba(255,255,255,.96),rgba(255,250,235,.82)); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.module-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(31,33,38,.10); border-color: rgba(242,182,61,.6); }
.module-card-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--dark); color: var(--yellow); font-family: var(--font-heading); font-size: 13px; font-weight: 1000; margin-bottom: 17px; }
.module-card strong { display: block; font-family: var(--font-heading); font-size: 17px; font-weight: 1000; }
.module-card small { display: block; color: var(--muted); margin-top: 7px; line-height: 1.55; }
.document-form { display: grid; gap: 22px; }
.document-status-strip { display: flex; align-items: center; gap: 14px; padding: 15px 17px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.74); }
.document-status-strip strong { font-family: var(--font-heading); }
.document-status-strip small { color: var(--muted); }
.line-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 24px 0 12px; }
.line-editor-head h3 { margin: 4px 0 0; font-size: 21px; }
.document-lines { display: grid; gap: 10px; }
.document-line { display: grid; grid-template-columns: minmax(240px,2fr) minmax(120px,.7fr) minmax(120px,.7fr) minmax(180px,1fr) auto; gap: 10px; align-items: end; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.72); }
.document-line.simple-line { grid-template-columns: minmax(260px,2fr) minmax(140px,.7fr) minmax(220px,1.2fr) auto; }
.document-line input,.document-line select { margin-top: 6px; }
.line-remove { margin-bottom: 3px; }
.financial-inputs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; max-width: 720px; margin: 18px 0 0 auto; }
.financial-summary { margin: 18px 0 0 auto; width: min(430px,100%); display: grid; gap: 8px; }
.financial-summary div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.financial-summary .grand { padding: 16px; border: 0; border-radius: 16px; background: var(--dark); color: #fff; }
.financial-summary .grand strong { color: var(--yellow); font-size: 20px; }
.timeline-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 0 0 18px; }
.timeline-strip div { padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.72); }
.timeline-strip strong,.timeline-strip small { display: block; }
.timeline-strip small { color: var(--muted); margin-top: 4px; }
.inline-reject-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; margin-top: 18px; padding: 16px; border-radius: 18px; background: rgba(255,0,0,.04); border: 1px solid rgba(255,0,0,.12); }
.split-actions { gap: 10px; }
.count-table input,.receiving-table input { min-width: 120px; margin: 0; padding: 10px; border-radius: 12px; }
.receiving-table { min-width: 1500px; }
tfoot th { padding: 14px; border-top: 2px solid var(--line); background: rgba(242,182,61,.08); }
.filter-toolbar-wrap { flex-wrap: wrap; }
.filter-toolbar-wrap > * { flex: 1 1 150px; }
.side-nav .nav-icon { font-size: 11px; }

@media (max-width: 1280px) {
    .module-card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .document-line,.document-line.simple-line { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .line-remove { justify-self: start; }
}
@media (max-width: 860px) {
    .module-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .timeline-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .financial-inputs { grid-template-columns: 1fr; max-width: none; }
}
@media (max-width: 620px) {
    .module-card-grid,.document-line,.document-line.simple-line,.timeline-strip { grid-template-columns: 1fr; }
    .document-status-strip,.line-editor-head,.inline-reject-form { flex-direction: column; display: flex; align-items: stretch; }
    .module-card { min-height: 132px; }
    .document-line { padding: 12px; }
}

/* v0.5.2 Operational Completeness */
.service-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.option-fieldset { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.72); }
.option-fieldset legend { padding: 0 8px; color: var(--muted); font-weight: 800; }
.option-check-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.approval-card-list { display: grid; gap: 14px; }
.approval-card { padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.82); box-shadow: 0 12px 30px rgba(31,33,38,.055); }
.approval-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.approval-card-head strong,.approval-card-head small { display: block; }
.approval-card-head small { margin-top: 5px; color: var(--muted); }
.approval-card-body { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.approval-card-body > div { min-width: 0; padding: 13px; border-radius: 16px; background: rgba(31,33,38,.035); }
.approval-card-body span,.approval-card-body strong,.approval-card-body small { display: block; }
.approval-card-body span { color: var(--muted); font-size: 12px; font-weight: 800; }
.approval-card-body strong { margin-top: 5px; overflow-wrap: anywhere; }
.approval-card-body small { margin-top: 5px; color: var(--muted); }
.approval-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.approval-actions form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
.approval-actions input { margin: 0; }
.import-upload-card { align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.78); }
.bulk-reason-box input { width: 100%; }

@media (max-width: 900px) {
    .approval-card-body { grid-template-columns: 1fr 1fr; }
    .approval-actions { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .option-check-grid,.approval-card-body { grid-template-columns: 1fr; }
    .approval-card-head { flex-direction: column; }
    .approval-actions form { grid-template-columns: 1fr; }
}

/* v0.6.0 Finance Lite & Money Control */
.finance-primary-metrics { margin-bottom: 18px; }
.finance-positive { color: #18814a !important; }
.finance-negative { color: var(--red) !important; }
.finance-payment-form { margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(242,182,61,.07); }
.inline-form { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.inline-form select,.inline-form input { width: auto; min-width: 112px; margin: 0; padding: 9px 10px; border-radius: 11px; }
.row-actions form { display: inline-flex; margin: 2px; vertical-align: middle; }
.finance-ledger-source { overflow-wrap: anywhere; }
.metric-card strong a { color: inherit; }
@media (max-width: 760px) {
    .finance-payment-form { padding: 14px; }
    .inline-form { display: grid; grid-template-columns: 1fr auto; width: 100%; }
    .inline-form select,.inline-form input { width: 100%; }
}

/* v0.7.0 Customer Growth OS */
.crm-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 212, 0, .28), transparent 32%),
        linear-gradient(135deg, #fffdf5, #ffffff 58%, #fff7e8);
}
.crm-hero h2,
.crm-customer-hero h2 { margin-bottom: 6px; }
.finance-primary-metrics,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.segment-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.segment-card {
    display: flex;
    min-height: 112px;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 21px;
    background: linear-gradient(145deg, #fff, #fffaf0);
    color: var(--text);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.segment-card:hover { transform: translateY(-3px); border-color: rgba(242, 182, 61, .7); box-shadow: 0 16px 30px rgba(31, 33, 38, .09); }
.segment-card span { color: var(--muted); font-weight: 800; font-size: 13px; }
.segment-card strong { font-family: var(--font-heading); font-size: 34px; letter-spacing: -.05em; }
.notice-list,
.summary-list,
.stack-actions { display: grid; gap: 10px; }
.notice-item,
.copy-panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 15px;
    background: #fffdfa;
    line-height: 1.65;
}
.membership-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.membership-card,
.feedback-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px;
    background: linear-gradient(145deg, #fff, #fffdf8);
    box-shadow: 0 12px 30px rgba(31, 33, 38, .05);
}
.membership-card-head,
.feedback-card-head,
.pos-customer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.membership-card h3 { margin: 8px 0 0; }
.feedback-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.feedback-card p { line-height: 1.75; }
.text-danger { color: var(--danger); }
.text-right { text-align: right; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pos-customer-box {
    display: grid;
    gap: 10px;
    margin: 14px 0;
    padding: 15px;
    border: 1px solid rgba(242, 182, 61, .42);
    border-radius: 21px;
    background: linear-gradient(145deg, #fffdf5, #fff8e8);
}
.pos-customer-head strong { display: block; }
.pos-customer-head small { display: block; color: var(--muted); line-height: 1.5; margin-top: 3px; }
.compact-grid { gap: 10px; }
.compact-grid label { margin: 0; }

@media (max-width: 1180px) {
    .metric-grid,
    .finance-primary-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .segment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .crm-hero,
    .membership-card-head,
    .feedback-card-head,
    .pos-customer-head { align-items: stretch; flex-direction: column; }
    .membership-grid,
    .feedback-grid { grid-template-columns: 1fr; }
    .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .metric-grid,
    .finance-primary-metrics,
    .segment-grid,
    .check-grid { grid-template-columns: 1fr; }
    .segment-card { min-height: 94px; }
}
.pos-menu-image{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px;margin-bottom:8px;background:#fff8df}.pos-modifier-dialog{width:min(680px,calc(100vw - 28px));max-height:88vh;overflow:auto;border:0;border-radius:24px;padding:24px;box-shadow:0 28px 90px rgba(0,0,0,.32)}.pos-modifier-dialog::backdrop{background:rgba(18,12,10,.62);backdrop-filter:blur(4px)}.pos-modifier-dialog .option-fieldset{margin:14px 0}.pos-modifier-dialog .option-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:640px){.pos-modifier-dialog{padding:18px}.pos-modifier-dialog .option-check-grid{grid-template-columns:1fr}}
