:root {
    --ink: #14261f;
    --ink-soft: #30463d;
    --forest: #10251f;
    --forest-2: #17362c;
    --jade: #286c53;
    --jade-deep: #1d5641;
    --jade-soft: #e7f1ec;
    --jade-pale: #f2f8f5;
    --gold: #b9863d;
    --gold-soft: #f5ead6;
    --paper: #f4f1e9;
    --surface: #fffdf8;
    --surface-2: #faf7f0;
    --line: #e6e0d4;
    --line-dark: rgba(255, 255, 255, .13);
    --muted: #78857f;
    --danger: #a84b3f;
    --danger-soft: #f8e9e6;
    --warning: #a06e22;
    --warning-soft: #fbf0dc;
    --info: #346d86;
    --info-soft: #e8f1f5;
    --shadow-sm: 0 1px 2px rgba(19, 34, 27, .04), 0 4px 14px rgba(19, 34, 27, .04);
    --shadow-md: 0 18px 50px rgba(19, 34, 27, .12);
    --radius: 16px;
    --radius-sm: 10px;
    --sidebar-width: 236px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--paper);
    color: var(--ink);
    font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background:
        radial-gradient(circle at 86% 4%, rgba(185, 134, 61, .08), transparent 23rem),
        var(--paper);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    display: block;
}

.is-hidden {
    display: none !important;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--jade);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.eyebrow--gold {
    color: #d8b978;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: "STSong", "SimSun", serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .08em;
}

.brand small {
    display: block;
    margin-top: 1px;
    font-family: "Microsoft YaHei UI", sans-serif;
    font-size: 8px;
    letter-spacing: .28em;
    opacity: .52;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    color: currentColor;
    border: 1px solid currentColor;
    border-radius: 11px;
}

.brand-mark svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.brand--light {
    color: #f6f1e6;
}

.login-screen {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1.12fr) minmax(410px, .88fr);
    background: var(--surface);
}

.login-story {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: clamp(38px, 6vw, 76px);
    color: #eff5f0;
    background:
        radial-gradient(circle at 15% 90%, rgba(96, 155, 126, .28), transparent 28rem),
        linear-gradient(142deg, #163a2e 0%, #10251f 54%, #0d1e19 100%);
}

.login-story::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .09;
    background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom right, #000, transparent 74%);
}

.story-copy {
    position: relative;
    z-index: 1;
    max-width: 580px;
    padding: 80px 0;
}

.story-copy h1 {
    margin: 14px 0 24px;
    font-family: "STSong", "SimSun", serif;
    font-size: clamp(46px, 6vw, 76px);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -.035em;
}

.story-copy p {
    max-width: 450px;
    margin: 0;
    color: rgba(239, 245, 240, .7);
    font-size: 16px;
    line-height: 1.9;
}

.story-proof {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 28px;
    color: rgba(239, 245, 240, .57);
    font-size: 12px;
}

.story-proof b {
    margin-right: 4px;
    color: #d9bc82;
    font-weight: 600;
}

.story-pattern {
    position: absolute;
    right: -76px;
    bottom: 7%;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
}

.story-pattern::before,
.story-pattern::after {
    content: "";
    position: absolute;
    inset: 48px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 50%;
}

.story-pattern::after {
    inset: 114px;
}

.story-pattern span {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(216, 185, 120, .14);
    transform: rotate(45deg);
}

.story-pattern span:nth-child(1) { left: 32px; top: 108px; }
.story-pattern span:nth-child(2) { left: 150px; top: 24px; }
.story-pattern span:nth-child(3) { right: 27px; top: 128px; }
.story-pattern span:nth-child(4) { left: 121px; bottom: 22px; }
.story-pattern span:nth-child(5) { right: 82px; bottom: 70px; }

.login-panel {
    display: grid;
    place-items: center;
    padding: 44px;
    background:
        radial-gradient(circle at 100% 0%, rgba(185, 134, 61, .09), transparent 24rem),
        var(--surface);
}

.login-card {
    width: min(100%, 395px);
}

.login-card h2 {
    margin: 8px 0 7px;
    font-family: "STSong", "SimSun", serif;
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -.03em;
}

.login-subtitle {
    margin: 0 0 34px;
    color: var(--muted);
    font-size: 14px;
}

.mobile-brand {
    display: none;
    margin-bottom: 42px;
    color: var(--ink);
}

.field {
    display: block;
    margin-bottom: 19px;
}

.field > span {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    color: var(--ink);
    background: #fbf9f3;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
}

.field textarea {
    min-height: 88px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    background: #fff;
    border-color: #6d9b87;
    box-shadow: 0 0 0 3px rgba(40, 108, 83, .10);
}

.field-help {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 54px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 12px;
}

.login-error {
    min-height: 20px;
    margin: -4px 0 9px;
    color: var(--danger);
    font-size: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: transform .16s, background .16s, border-color .16s, box-shadow .16s;
}

.button:hover {
    border-color: #c7bfb0;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button:disabled {
    cursor: not-allowed;
    opacity: .5;
    transform: none;
}

.button--primary {
    color: #fff;
    background: var(--jade);
    border-color: var(--jade);
}

.button--primary:hover {
    background: var(--jade-deep);
    border-color: var(--jade-deep);
}

.button--dark {
    color: #fff;
    background: var(--forest);
    border-color: var(--forest);
}

.button--danger {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: #f0cfca;
}

.button--large {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    padding: 10px 18px;
}

.button--small {
    min-height: 32px;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 12px;
}

.button--ghost {
    background: transparent;
    border-color: transparent;
}

.button--ghost:hover {
    background: rgba(20, 38, 31, .05);
    border-color: transparent;
    box-shadow: none;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.icon-button:hover {
    color: var(--ink);
    background: rgba(20, 38, 31, .06);
}

.icon-button svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.demo-accounts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 11px;
}

.demo-accounts span {
    margin-right: 2px;
}

.demo-accounts button {
    padding: 4px 8px;
    color: var(--ink-soft);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    font-size: 11px;
}

.demo-accounts button:hover {
    color: var(--jade);
    border-color: #a9c3b6;
}

.compliance-note {
    margin: 27px 0 0;
    padding-top: 19px;
    color: #969c98;
    border-top: 1px solid var(--line);
    font-size: 10px;
    line-height: 1.7;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    padding: 26px 18px 18px;
    color: rgba(245, 242, 234, .76);
    background:
        radial-gradient(circle at 0% 80%, rgba(70, 125, 99, .21), transparent 18rem),
        var(--forest);
}

.brand--sidebar {
    padding: 0 10px;
}

.store-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 28px 0 25px;
    padding: 10px;
    color: inherit;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 11px;
    cursor: pointer;
    text-align: left;
}

.store-switcher:hover {
    background: rgba(255, 255, 255, .085);
}

.store-switcher__avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #f1ddba;
    background: rgba(185, 134, 61, .16);
    border-radius: 9px;
    font-family: "STSong", serif;
    font-size: 14px;
}

.store-switcher__copy {
    min-width: 0;
    flex: 1;
}

.store-switcher__copy small,
.store-switcher__copy strong {
    display: block;
}

.store-switcher__copy small {
    margin-bottom: 3px;
    color: rgba(255, 255, 255, .4);
    font-size: 9px;
    letter-spacing: .08em;
}

.store-switcher__copy strong {
    overflow: hidden;
    color: #f4f1e9;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-switcher__chevron {
    color: rgba(255, 255, 255, .38);
}

.main-nav {
    flex: 1;
}

.nav-caption {
    display: block;
    margin: 0 12px 9px;
    color: rgba(255, 255, 255, .3);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .13em;
}

.nav-caption--spaced {
    margin-top: 24px;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 4px;
    padding: 10px 12px;
    border-radius: 9px;
    color: rgba(245, 242, 234, .62);
    font-size: 12px;
    transition: background .16s, color .16s;
}

.main-nav a svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    opacity: .78;
}

.main-nav a:hover {
    color: #f5f1e9;
    background: rgba(255, 255, 255, .055);
}

.main-nav a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, .10);
    box-shadow: inset 2px 0 var(--gold);
}

.main-nav a.is-active svg {
    color: #e2c991;
    opacity: 1;
}

.sidebar-footer {
    padding-top: 14px;
    border-top: 1px solid var(--line-dark);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 5px;
}

.avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--jade-deep);
    background: #ede2c9;
    border-radius: 50%;
    font-family: "STSong", serif;
    font-size: 13px;
}

.user-card__copy {
    min-width: 0;
    flex: 1;
}

.user-card__copy strong,
.user-card__copy small {
    display: block;
}

.user-card__copy strong {
    overflow: hidden;
    color: #f5f1e9;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-card__copy small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .4);
    font-size: 9px;
}

.user-card .icon-button {
    color: rgba(255, 255, 255, .4);
}

.user-card .icon-button:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.workspace {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 108px;
    padding: 27px clamp(25px, 4vw, 52px) 20px;
    background: rgba(244, 241, 233, .86);
    border-bottom: 1px solid rgba(213, 205, 191, .62);
    backdrop-filter: blur(14px);
}

.topbar h1 {
    margin: 0;
    font-family: "STSong", "SimSun", serif;
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.date-chip {
    color: var(--muted);
    font-size: 11px;
}

.status-dot {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 10px;
}

.status-dot i {
    width: 6px;
    height: 6px;
    background: #55a478;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(85, 164, 120, .12);
}

.content {
    padding: 31px clamp(25px, 4vw, 52px) 52px;
    outline: none;
}

.page-loading {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 90px 0;
    color: var(--muted);
    font-size: 12px;
}

.spinner {
    width: 23px;
    height: 23px;
    border: 2px solid #d9d4c9;
    border-top-color: var(--jade);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.page-enter {
    animation: fade-up .32s ease-out both;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-head h2 {
    margin: 0;
    font-family: "STSong", "SimSun", serif;
    font-size: 19px;
    font-weight: 600;
}

.section-head p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-row {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(290px, .75fr);
    gap: 18px;
    margin-bottom: 18px;
}

.welcome-card {
    position: relative;
    overflow: hidden;
    min-height: 174px;
    padding: 29px 31px;
    color: #f4f3ea;
    background:
        radial-gradient(circle at 90% 20%, rgba(224, 194, 130, .17), transparent 16rem),
        linear-gradient(125deg, #1a4939, #113026 68%);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(22, 54, 44, .16);
}

.welcome-card::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -70px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    box-shadow: inset 0 0 0 40px rgba(255,255,255,.025), inset 0 0 0 80px rgba(255,255,255,.018);
}

.welcome-card h2 {
    position: relative;
    z-index: 1;
    margin: 11px 0 10px;
    font-family: "STSong", "SimSun", serif;
    font-size: clamp(25px, 2.3vw, 34px);
    font-weight: 500;
}

.welcome-card p {
    position: relative;
    z-index: 1;
    max-width: 580px;
    margin: 0;
    color: rgba(244, 243, 234, .65);
    font-size: 12px;
    line-height: 1.8;
}

.welcome-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 9px;
    margin-top: 22px;
}

.welcome-actions .button--primary {
    color: var(--forest);
    background: #ebd7ac;
    border-color: #ebd7ac;
}

.welcome-actions .button--primary:hover {
    background: #f3e1ba;
}

.welcome-actions .button:not(.button--primary) {
    color: rgba(255,255,255,.78);
    background: rgba(255,255,255,.075);
    border-color: rgba(255,255,255,.12);
}

.attention-card,
.panel,
.metric-card,
.table-card,
.group-card,
.risk-banner {
    background: rgba(255, 253, 248, .91);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.asset-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 18px;
    padding: 24px 27px;
    color: #f5f1e7;
    background:
        radial-gradient(circle at 90% 20%, rgba(226, 196, 130, .17), transparent 17rem),
        linear-gradient(122deg, #163d30, #265c47);
    border-radius: var(--radius);
    box-shadow: 0 15px 36px rgba(22, 61, 48, .16);
}

.asset-banner h2 {
    margin: 7px 0 8px;
    font-family: "STSong", serif;
    font-size: 24px;
    font-weight: 500;
}

.asset-banner p {
    max-width: 670px;
    margin: 0;
    color: rgba(255,255,255,.66);
    font-size: 10px;
    line-height: 1.75;
}

.asset-proof {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.asset-proof span {
    display: grid;
    place-items: center;
    min-width: 78px;
    min-height: 63px;
    padding: 9px;
    color: rgba(255,255,255,.55);
    background: rgba(255,255,255,.065);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 9px;
    font-size: 7px;
    text-align: center;
}

.asset-proof b {
    display: block;
    color: #e8d3a6;
    font-size: 10px;
}

.attention-card {
    padding: 22px;
}

.attention-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.attention-card__head h3 {
    margin: 0;
    font-family: "STSong", serif;
    font-size: 17px;
}

.attention-card__head span {
    color: var(--muted);
    font-size: 10px;
}

.attention-list {
    display: grid;
    gap: 10px;
}

.attention-item {
    display: grid;
    grid-template-columns: 7px 1fr auto;
    gap: 11px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid #eee9df;
}

.attention-item:last-child {
    border-bottom: 0;
}

.attention-item i {
    width: 7px;
    height: 7px;
    background: var(--info);
    border-radius: 50%;
}

.attention-item[data-tone="warning"] i {
    background: var(--warning);
    box-shadow: 0 0 0 4px var(--warning-soft);
}

.attention-item strong {
    display: block;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attention-item small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.attention-item__time {
    color: var(--muted);
    font-size: 10px;
}

.empty-note {
    padding: 22px 0;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.metric-card {
    position: relative;
    overflow: hidden;
    min-height: 130px;
    padding: 20px;
}

.metric-card__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 10px;
}

.metric-card__label span:last-child {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    color: var(--jade);
    background: var(--jade-soft);
    border-radius: 8px;
    font-family: "STSong", serif;
    font-size: 12px;
}

.metric-card__value {
    margin: 17px 0 7px;
    font-family: "Avenir Next", "DIN Alternate", "Microsoft YaHei UI", sans-serif;
    font-size: 29px;
    font-weight: 700;
    letter-spacing: -.045em;
}

.metric-card__value small {
    margin-left: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
}

.metric-card__foot {
    color: var(--muted);
    font-size: 9px;
}

.metric-card__spark {
    position: absolute;
    right: 13px;
    bottom: 12px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 36px;
    opacity: .42;
}

.metric-card__spark i {
    width: 4px;
    background: #86ad9b;
    border-radius: 3px;
}

.dashboard-lower {
    display: grid;
    grid-template-columns: minmax(0, 1.34fr) minmax(300px, .66fr);
    gap: 18px;
}

.panel {
    padding: 22px;
}

.schedule-list {
    display: grid;
}

.schedule-item {
    display: grid;
    grid-template-columns: 62px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid #eee9df;
}

.schedule-item:last-child {
    border-bottom: 0;
}

.schedule-time strong,
.schedule-time small {
    display: block;
}

.schedule-time strong {
    font-family: "DIN Alternate", "Avenir Next", sans-serif;
    font-size: 16px;
}

.schedule-time small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.schedule-main {
    min-width: 0;
}

.schedule-main strong {
    display: block;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-main small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}

.capacity-bar {
    width: 76px;
    height: 5px;
    margin-bottom: 6px;
    overflow: hidden;
    background: #e9e5dc;
    border-radius: 999px;
}

.capacity-bar i {
    display: block;
    height: 100%;
    background: var(--jade);
    border-radius: inherit;
}

.schedule-capacity {
    color: var(--muted);
    font-size: 9px;
    text-align: right;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    color: var(--jade-deep);
    background: var(--jade-soft);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.status-pill::before {
    content: "";
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
}

.status-pill[data-status="FULL"],
.status-pill[data-status="RESERVED"],
.status-pill[data-status="UNPAID"],
.status-pill[data-status="PENDING_CONFIRM"] {
    color: var(--warning);
    background: var(--warning-soft);
}

.status-pill[data-status="LOCKED"],
.status-pill[data-status="DIRTY"],
.status-pill[data-status="EXEMPT"] {
    color: var(--info);
    background: var(--info-soft);
}

.status-pill[data-status="LOST"],
.status-pill[data-status="CANCELLED"],
.status-pill[data-status="NO_SHOW"] {
    color: var(--danger);
    background: var(--danger-soft);
}

.status-pill[data-status="COMPLETED"],
.status-pill[data-status="FREE"],
.status-pill[data-status="PAID"],
.status-pill[data-status="ACTIVE"] {
    color: var(--jade-deep);
    background: var(--jade-soft);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.quick-action {
    min-height: 84px;
    padding: 15px;
    color: var(--ink);
    background: var(--surface-2);
    border: 1px solid #ebe5da;
    border-radius: 11px;
    cursor: pointer;
    text-align: left;
    transition: background .16s, border-color .16s, transform .16s;
}

.quick-action:hover {
    background: #fff;
    border-color: #cfc5b5;
    transform: translateY(-1px);
}

.quick-action b {
    display: block;
    margin-bottom: 7px;
    font-family: "STSong", serif;
    font-size: 16px;
}

.quick-action span {
    color: var(--muted);
    font-size: 9px;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 17px;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box {
    position: relative;
    width: min(280px, 36vw);
}

.search-box svg {
    position: absolute;
    top: 50%;
    left: 11px;
    width: 15px;
    height: 15px;
    fill: var(--muted);
    transform: translateY(-50%);
}

.search-box input {
    width: 100%;
    height: 38px;
    padding: 7px 11px 7px 34px;
    background: rgba(255, 253, 248, .65);
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: none;
    font-size: 11px;
}

.search-box input:focus {
    background: #fff;
    border-color: #9cb9aa;
}

.segmented {
    display: inline-flex;
    padding: 3px;
    background: #eae6dd;
    border-radius: 9px;
}

.segmented button {
    padding: 6px 10px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-size: 10px;
}

.segmented button.is-active {
    color: var(--ink);
    background: #fff;
    box-shadow: 0 1px 4px rgba(20,38,31,.09);
}

.group-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.group-card {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 20px;
    cursor: pointer;
    transition: transform .17s, box-shadow .17s, border-color .17s;
}

.group-card:hover {
    border-color: #cfc8bb;
    box-shadow: 0 14px 32px rgba(19,34,27,.08);
    transform: translateY(-2px);
}

.group-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.game-type {
    color: var(--gold);
    font-family: "STSong", serif;
    font-size: 12px;
    letter-spacing: .08em;
}

.group-card h3 {
    margin: 19px 0 8px;
    font-family: "STSong", "SimSun", serif;
    font-size: 19px;
    font-weight: 600;
}

.group-card__meta {
    display: grid;
    gap: 7px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 10px;
}

.group-card__meta span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #b7b0a4;
    border-radius: 50%;
}

.group-card__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee9df;
}

.group-card__people strong {
    font-size: 18px;
}

.group-card__people span {
    color: var(--muted);
    font-size: 10px;
}

.avatar-stack {
    display: flex;
    margin-top: 7px;
}

.avatar-stack i {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    margin-left: -5px;
    color: var(--jade-deep);
    background: #ede6d7;
    border: 2px solid var(--surface);
    border-radius: 50%;
    font-size: 8px;
    font-style: normal;
}

.avatar-stack i:first-child {
    margin-left: 0;
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.table-card {
    position: relative;
    min-height: 150px;
    padding: 20px;
    cursor: pointer;
}

.table-card:hover {
    border-color: #cfc8bb;
}

.table-card__visual {
    position: absolute;
    right: 17px;
    bottom: 15px;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border: 1px solid #d8d0c2;
    border-radius: 50%;
    opacity: .32;
}

.table-card__visual::before {
    content: "";
    width: 46px;
    height: 46px;
    border: 1px solid #c8bfb0;
    border-radius: 50%;
}

.table-card h3 {
    margin: 16px 0 7px;
    font-family: "STSong", serif;
    font-size: 18px;
}

.table-card__detail {
    display: flex;
    gap: 12px;
    color: var(--muted);
    font-size: 10px;
}

.table-card__footer {
    position: absolute;
    left: 20px;
    bottom: 17px;
    color: var(--muted);
    font-size: 9px;
}

.table-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr);
    gap: 18px;
}

.reservation-list {
    display: grid;
    gap: 9px;
}

.reservation-item {
    padding: 13px;
    background: var(--surface-2);
    border: 1px solid #ede7dc;
    border-radius: 10px;
}

.reservation-item__top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.reservation-item strong {
    font-size: 11px;
}

.reservation-item p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.7;
}

.data-card {
    overflow: hidden;
    background: rgba(255, 253, 248, .91);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.table-scroll {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.data-table th {
    padding: 12px 17px;
    color: var(--muted);
    background: #f8f5ee;
    border-bottom: 1px solid var(--line);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
    text-align: left;
    white-space: nowrap;
}

.data-table td {
    padding: 14px 17px;
    border-bottom: 1px solid #eee9df;
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover {
    background: #fcfaf5;
}

.person-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.person-cell .avatar {
    width: 31px;
    height: 31px;
    color: var(--jade-deep);
    background: var(--jade-soft);
    font-size: 11px;
}

.person-cell strong,
.person-cell small {
    display: block;
}

.person-cell strong {
    font-size: 11px;
}

.person-cell small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    padding: 3px 7px;
    color: var(--ink-soft);
    background: #f1ede4;
    border-radius: 999px;
    font-size: 9px;
    white-space: nowrap;
}

.tag--jade {
    color: var(--jade-deep);
    background: var(--jade-soft);
}

.tag--gold {
    color: #8c672c;
    background: var(--gold-soft);
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.report-stat {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.report-stat small {
    color: var(--muted);
    font-size: 9px;
}

.report-stat strong {
    display: block;
    margin: 12px 0 5px;
    font-family: "Avenir Next", sans-serif;
    font-size: 26px;
    letter-spacing: -.04em;
}

.report-stat span {
    color: var(--muted);
    font-size: 9px;
}

.chart-card {
    padding: 23px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 230px;
    padding: 25px 7px 0;
    border-bottom: 1px solid var(--line);
}

.chart-bar {
    flex: 1;
    min-width: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.chart-bar__fill {
    width: min(44px, 70%);
    min-height: 3px;
    background: linear-gradient(to top, var(--jade), #74a38d);
    border-radius: 6px 6px 2px 2px;
}

.chart-bar__value {
    margin-bottom: 7px;
    color: var(--ink-soft);
    font-size: 9px;
}

.chart-bar__label {
    margin: 9px 0 -24px;
    color: var(--muted);
    font-size: 9px;
}

.risk-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 25px 27px;
    color: #f1f4ef;
    background: linear-gradient(120deg, #183a2f, #1f4e3e);
    border-color: transparent;
}

.risk-banner h2 {
    margin: 6px 0 7px;
    font-family: "STSong", serif;
    font-size: 24px;
    font-weight: 500;
}

.risk-banner p {
    margin: 0;
    color: rgba(255,255,255,.64);
    font-size: 10px;
    line-height: 1.7;
}

.risk-seal {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 70px;
    height: 70px;
    color: #e3ce9f;
    border: 1px solid rgba(227, 206, 159, .45);
    border-radius: 50%;
    font-family: "STSong", serif;
    font-size: 12px;
    letter-spacing: .12em;
}

.risk-layout {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 18px;
}

.red-line-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.red-line-list li {
    position: relative;
    padding: 11px 12px 11px 31px;
    color: var(--ink-soft);
    background: var(--surface-2);
    border-radius: 9px;
    font-size: 10px;
    line-height: 1.65;
}

.red-line-list li::before {
    content: "✓";
    position: absolute;
    left: 11px;
    top: 10px;
    color: var(--jade);
    font-weight: 800;
}

.terms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.audit-list {
    display: grid;
}

.audit-item {
    display: grid;
    grid-template-columns: 8px 1fr auto;
    gap: 11px;
    padding: 12px 0;
    border-bottom: 1px solid #eee9df;
}

.audit-item:last-child {
    border-bottom: 0;
}

.audit-item i {
    width: 6px;
    height: 6px;
    margin-top: 5px;
    background: #98ad9f;
    border-radius: 50%;
}

.audit-item strong {
    display: block;
    font-size: 10px;
}

.audit-item small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px;
}

.audit-item time {
    color: var(--muted);
    font-size: 8px;
    white-space: nowrap;
}

.empty-state {
    display: grid;
    justify-items: center;
    gap: 11px;
    padding: 70px 20px;
    color: var(--muted);
    text-align: center;
}

.empty-state__mark {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    color: #a5b2aa;
    background: #eeeae1;
    border-radius: 50%;
    font-family: "STSong", serif;
    font-size: 19px;
}

.empty-state strong {
    color: var(--ink-soft);
    font-size: 13px;
}

.empty-state p {
    max-width: 330px;
    margin: 0;
    font-size: 10px;
    line-height: 1.7;
}

.modal-layer,
.drawer-layer {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
}

.modal-layer.is-open,
.drawer-layer.is-open {
    display: block;
}

.modal-backdrop,
.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 25, 20, .5);
    backdrop-filter: blur(4px);
    animation: fade-in .18s ease-out;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    position: relative;
    width: min(calc(100vw - 30px), 570px);
    max-height: min(88vh, 760px);
    margin: 6vh auto;
    overflow-y: auto;
    padding: 27px;
    background: var(--surface);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    animation: modal-up .22s ease-out;
}

@keyframes modal-up {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.modal-header h2 {
    margin: 0 0 7px;
    font-family: "STSong", serif;
    font-size: 23px;
}

.modal-header p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
}

.form-grid .field--wide {
    grid-column: 1 / -1;
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 4px 0 18px;
    color: var(--ink-soft);
    font-size: 10px;
    line-height: 1.6;
}

.checkbox-field input {
    width: 15px;
    height: 15px;
    margin-top: 1px;
    accent-color: var(--jade);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 10px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
}

.drawer {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(480px, 94vw);
    overflow-y: auto;
    padding: 30px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    animation: drawer-in .24s ease-out;
}

@keyframes drawer-in {
    from { transform: translateX(34px); opacity: .5; }
    to { transform: translateX(0); opacity: 1; }
}

.drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.drawer-header h2 {
    margin: 8px 0 6px;
    font-family: "STSong", serif;
    font-size: 25px;
    font-weight: 600;
}

.drawer-header p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 23px;
}

.detail-stat {
    padding: 13px;
    background: var(--surface-2);
    border-radius: 10px;
}

.detail-stat small {
    display: block;
    color: var(--muted);
    font-size: 8px;
}

.detail-stat strong {
    display: block;
    margin-top: 7px;
    font-size: 13px;
}

.detail-section {
    margin-top: 24px;
}

.detail-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
}

.detail-section h3 {
    margin: 0;
    font-size: 11px;
}

.detail-section__head span {
    color: var(--muted);
    font-size: 9px;
}

.participant-list {
    display: grid;
}

.participant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #eee9df;
}

.participant:last-child {
    border-bottom: 0;
}

.info-note {
    margin-top: 14px;
    padding: 12px;
    color: #6d716e;
    background: #f3f1ea;
    border-radius: 9px;
    font-size: 9px;
    line-height: 1.7;
}

.payment-qr-panel {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 11px;
    padding: 12px;
    background: #f8f5ee;
    border: 1px dashed #d6ccbb;
    border-radius: 11px;
}

.payment-qr-panel img {
    width: 98px;
    height: 98px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.payment-qr-panel strong,
.payment-qr-panel small {
    display: block;
}

.payment-qr-panel strong {
    margin-bottom: 6px;
    font-size: 11px;
}

.payment-qr-panel small {
    color: var(--muted);
    font-size: 8px;
    line-height: 1.6;
}

.payment-qr-empty {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 98px;
    min-height: 98px;
    padding: 9px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
}

.payment-qr-empty strong {
    margin: 0 0 5px;
    font-size: 9px;
}

.payment-qr-empty span {
    font-size: 7px;
    line-height: 1.5;
}

.toast-stack {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 120;
    display: grid;
    gap: 9px;
    width: min(350px, calc(100vw - 30px));
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    color: #f5f4ed;
    background: #17352b;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 11px;
    box-shadow: var(--shadow-md);
    animation: toast-in .25s ease-out;
    pointer-events: auto;
}

.toast[data-type="error"] {
    background: #73372f;
}

.toast[data-type="warning"] {
    background: #74511f;
}

.toast span {
    font-size: 10px;
    line-height: 1.65;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

.select-menu {
    position: fixed;
    z-index: 90;
    width: 228px;
    padding: 7px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: var(--shadow-md);
}

.select-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 9px 10px;
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-size: 10px;
    text-align: left;
}

.select-menu button:hover,
.select-menu button.is-active {
    background: var(--jade-pale);
}

.select-menu small {
    color: var(--muted);
    font-size: 8px;
}

.room-tabs {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    margin-bottom: 13px;
    padding-bottom: 3px;
}

.room-tabs button {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    color: var(--muted);
    background: rgba(255,253,248,.7);
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
    font-size: 10px;
}

.room-tabs button small {
    color: #a4a79f;
    font-size: 8px;
}

.room-tabs button.is-active {
    color: #fff;
    background: var(--jade);
    border-color: var(--jade);
}

.room-tabs button.is-active small {
    color: rgba(255,255,255,.6);
}

.room-stage {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(93,77,53,.05) 1px, transparent 1px),
        linear-gradient(rgba(93,77,53,.05) 1px, transparent 1px),
        radial-gradient(circle at 50% 40%, #fbf8f0, #eee8db);
    background-size: 36px 36px, 36px 36px, auto;
    border: 1px solid #d9d0c1;
    border-radius: 18px;
    box-shadow: inset 0 0 80px rgba(66,49,31,.05), var(--shadow-sm);
}

.room-stage::before {
    content: "";
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(114, 95, 68, .16);
    border-radius: 10px;
    pointer-events: none;
}

.room-stage__label {
    position: absolute;
    top: 26px;
    left: 32px;
    z-index: 2;
}

.room-stage__label span,
.room-stage__label small {
    display: block;
}

.room-stage__label span {
    color: var(--ink);
    font-family: "STSong", serif;
    font-size: 17px;
}

.room-stage__label small {
    margin-top: 6px;
    color: var(--muted);
    font-size: 8px;
}

.room-entry {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 110px;
    padding: 8px;
    color: #8e7d63;
    background: #dfd5c5;
    border-radius: 8px 8px 0 0;
    font-size: 8px;
    letter-spacing: .18em;
    text-align: center;
    transform: translateX(-50%);
}

.room-table {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 138px;
    min-height: 112px;
    padding: 13px;
    color: var(--ink);
    background: radial-gradient(circle at 50% 40%, #fffdf7, #e5dac7);
    border: 1px solid #bcae97;
    border-radius: 50%;
    box-shadow: 0 13px 22px rgba(67, 50, 30, .16), inset 0 0 0 7px rgba(255,255,255,.3);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform .18s, box-shadow .18s;
}

.room-table:hover {
    z-index: 5;
    box-shadow: 0 18px 30px rgba(67, 50, 30, .22), inset 0 0 0 7px rgba(255,255,255,.35);
    transform: translate(-50%, -52%) scale(1.03);
}

.room-table__code {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-bottom: 5px;
    color: #f4ead5;
    background: var(--forest-2);
    border-radius: 50%;
    font-family: "STSong", serif;
    font-size: 12px;
}

.room-table strong {
    font-size: 10px;
}

.room-table small {
    max-width: 98px;
    overflow: hidden;
    margin-top: 3px;
    color: var(--jade);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-table em {
    margin-top: 5px;
    color: var(--muted);
    font-size: 8px;
    font-style: normal;
}

.room-lock {
    position: absolute;
    top: 7px;
    right: 13px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: #fff;
    background: var(--warning);
    border-radius: 50%;
    font-size: 8px;
    font-style: normal;
}

.room-legend {
    position: absolute;
    right: 29px;
    bottom: 22px;
    display: flex;
    gap: 13px;
    padding: 8px 11px;
    color: var(--muted);
    background: rgba(255,253,248,.8);
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 8px;
}

.room-legend span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.seat-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #e8e2d7;
    border: 1px solid #c3b9a9;
    border-radius: 50%;
}

.seat-dot.is-occupied { background: #e1be7b; border-color: #c79c4b; }
.seat-dot.is-arrived { background: #5b9c79; border-color: #347056; }
.seat-dot.is-locked { background: #9aa3a0; border-color: #727d79; }

.seat-map-wrap {
    display: grid;
    place-items: center;
    min-height: 440px;
    padding: 22px;
    background: radial-gradient(circle at 50% 50%, #f7f2e7, #ebe5d8);
    border: 1px solid #ddd4c5;
    border-radius: 16px;
}

.seat-map {
    position: relative;
    width: min(360px, 100%);
    aspect-ratio: 1;
}

.seat-map::before {
    content: "";
    position: absolute;
    inset: 17%;
    background: radial-gradient(circle at 45% 35%, #315d4c, #17392c);
    border: 7px solid #c7b18b;
    border-radius: 50%;
    box-shadow: 0 20px 40px rgba(33, 45, 36, .24), inset 0 0 0 8px rgba(255,255,255,.06);
}

.seat-map__table {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    color: #f4eddf;
    text-align: center;
    transform: translate(-50%, -50%);
}

.seat-map__table strong,
.seat-map__table small {
    display: block;
}

.seat-map__table strong {
    font-family: "STSong", serif;
    font-size: 27px;
}

.seat-map__table small {
    margin-top: 5px;
    color: rgba(255,255,255,.6);
    font-size: 8px;
}

.seat-token {
    position: absolute;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 92px;
    min-height: 72px;
    padding: 7px;
    color: var(--ink-soft);
    background: #f8f4eb;
    border: 1px solid #cfc3b1;
    border-radius: 12px;
    box-shadow: 0 7px 17px rgba(53,42,27,.12);
    text-align: center;
    transform: translate(-50%, -50%);
}

.seat-token[data-seat-status="OCCUPIED"] {
    background: #f5e8cd;
    border-color: #d2b57c;
}

.seat-token[data-seat-status="ARRIVED"] {
    color: #194c37;
    background: #ddf0e5;
    border-color: #8ebda5;
}

.seat-token[data-seat-status="LOCKED"] {
    color: #6f7773;
    background: #e5e9e6;
    border-style: dashed;
}

.seat-token__no {
    position: absolute;
    top: -8px;
    left: -6px;
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    color: #fff;
    background: var(--forest-2);
    border-radius: 50%;
    font-size: 8px;
}

.seat-token strong {
    max-width: 76px;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seat-token em {
    margin-top: 3px;
    color: var(--gold);
    font-size: 7px;
    font-style: normal;
}

.seat-token button {
    margin-top: 5px;
    padding: 3px 6px;
    color: var(--jade-deep);
    background: rgba(255,255,255,.7);
    border: 1px solid #b8d0c3;
    border-radius: 5px;
    cursor: pointer;
    font-size: 7px;
}

@media (max-width: 1180px) {
    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .group-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-row,
    .dashboard-lower,
    .table-layout,
    .risk-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    :root {
        --sidebar-width: 0px;
    }

    .login-screen {
        grid-template-columns: 1fr;
    }

    .login-story {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 30px;
    }

    .mobile-brand {
        display: flex;
    }

    .sidebar {
        inset: auto 0 0 0;
        display: block;
        width: auto;
        height: 68px;
        padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
        background: rgba(16, 37, 31, .97);
        backdrop-filter: blur(16px);
    }

    .brand--sidebar,
    .store-switcher,
    .nav-caption,
    .sidebar-footer {
        display: none;
    }

    .main-nav {
        display: flex;
        height: 100%;
        justify-content: space-around;
    }

    .main-nav a {
        flex: 1;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        margin: 0;
        padding: 4px 2px;
        font-size: 8px;
    }

    .main-nav a svg {
        width: 17px;
        height: 17px;
    }

    .main-nav a.is-active {
        box-shadow: inset 0 2px var(--gold);
    }

    .workspace {
        margin-left: 0;
        padding-bottom: 75px;
    }

    .topbar {
        min-height: 88px;
        padding: 20px 20px 14px;
    }

    .topbar h1 {
        font-size: 23px;
    }

    .topbar-actions {
        gap: 7px;
    }

    .date-chip,
    .status-dot,
    .topbar-help {
        display: none;
    }

    .topbar::after {
        content: attr(data-store);
        color: var(--muted);
        font-size: 9px;
    }

    .content {
        padding: 20px 15px 30px;
    }

    .hero-row {
        gap: 13px;
    }

    .welcome-card {
        min-height: auto;
        padding: 24px;
    }

    .attention-card,
    .panel {
        padding: 18px;
    }

    .metrics-grid,
    .group-grid,
    .table-grid,
    .report-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .metric-card {
        min-height: 118px;
        padding: 16px;
    }

    .metric-card__value {
        font-size: 23px;
    }

    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .toolbar-left,
    .toolbar-right {
        justify-content: space-between;
    }

    .search-box {
        width: 100%;
    }

    .data-card {
        border-radius: 13px;
    }

    .data-table th,
    .data-table td {
        padding-right: 13px;
        padding-left: 13px;
    }

    .risk-banner {
        align-items: flex-start;
        padding: 21px;
    }

    .asset-banner {
        align-items: flex-start;
        flex-direction: column;
        padding: 21px;
    }

    .asset-proof {
        width: 100%;
    }

    .asset-proof span {
        flex: 1;
        min-width: 0;
    }

    .risk-seal {
        width: 56px;
        height: 56px;
        font-size: 10px;
    }

    .modal {
        width: calc(100vw - 18px);
        max-height: 92vh;
        margin: 4vh auto;
        padding: 21px;
        border-radius: 15px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .drawer {
        width: 100vw;
        padding: 23px 19px;
    }

    .room-stage {
        min-height: 440px;
    }

    .room-table {
        width: 106px;
        min-height: 94px;
        padding: 9px;
    }

    .room-table__code {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .room-table strong {
        font-size: 8px;
    }

    .room-legend {
        right: 16px;
        bottom: 35px;
        gap: 7px;
        font-size: 7px;
    }
}

@media (max-width: 520px) {
    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .metric-card__spark {
        display: none;
    }

    .welcome-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .welcome-actions .button {
        width: 100%;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-actions {
        width: 100%;
    }

    .section-actions .button {
        flex: 1;
    }

    .chart-bars {
        gap: 6px;
    }

    .chart-bar__value {
        font-size: 8px;
    }

    .group-card {
        min-height: 230px;
    }

    .room-stage {
        min-height: 390px;
    }

    .room-stage__label {
        top: 20px;
        left: 22px;
    }

    .room-table {
        width: 88px;
        min-height: 82px;
    }

    .room-table small,
    .room-table em {
        font-size: 7px;
    }

    .room-legend {
        position: static;
        width: max-content;
        margin: 25px auto;
    }

    .seat-map-wrap {
        min-height: 360px;
        padding: 12px;
    }

    .seat-token {
        width: 76px;
        min-height: 62px;
    }
}
