:root {
    --text: #1f3740;
    --heading: #0b2230;
    --muted: #5b7480;
    --line: rgba(168, 185, 193, 0.4);
    --line-strong: rgba(168, 185, 193, 0.56);
    --panel: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(247, 249, 250, 0.82) 100%);
    --panel-soft: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(247, 249, 250, 0.72) 100%);
    --panel-muted: rgba(255, 255, 255, 0.62);
    --brand: #476f78;
    --brand-strong: #365660;
    --brand-soft: rgba(190, 230, 209, 0.34);
    --blue-soft: rgba(191, 208, 239, 0.42);
    --blue-strong: #5e779f;
    --peach-soft: rgba(243, 197, 184, 0.42);
    --peach-strong: #a86456;
    --lavender-soft: rgba(215, 205, 243, 0.46);
    --lavender-strong: #74679f;
    --mint-soft: rgba(190, 230, 209, 0.42);
    --mint-strong: #5c866c;
    --gold-soft: rgba(240, 223, 171, 0.46);
    --gold-strong: #866e39;
    --rose-soft: rgba(239, 194, 216, 0.42);
    --rose-strong: #975b77;
    --danger: #b85d65;
    --danger-soft: rgba(243, 197, 184, 0.46);
    --success: #5f956e;
    --success-soft: rgba(190, 230, 209, 0.48);
    --warning: #8a7240;
    --warning-soft: rgba(240, 223, 171, 0.48);
    --shadow: 0 18px 44px rgba(171, 185, 194, 0.18);
    --shadow-soft: 0 10px 24px rgba(181, 193, 203, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 14% 14%, rgba(243, 197, 184, 0.84), transparent 24%),
        radial-gradient(circle at 84% 10%, rgba(215, 205, 243, 0.84), transparent 28%),
        radial-gradient(circle at 22% 78%, rgba(190, 230, 209, 0.68), transparent 24%),
        radial-gradient(circle at 78% 82%, rgba(239, 194, 216, 0.56), transparent 22%),
        linear-gradient(180deg, #fff7f2 0%, #f6f7fb 48%, #eef8f2 100%);
    color: var(--text);
    font-family: "Avenir Next", "Bahnschrift", "DIN Alternate", "PingFang SC", "Microsoft YaHei", sans-serif;
    color-scheme: light;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(158, 178, 187, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(158, 178, 187, 0.12) 1px, transparent 1px);
    background-size: 100% 72px, 72px 100%;
    opacity: 0.18;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 24%, rgba(255, 255, 255, 0.46), transparent 18%),
        radial-gradient(circle at 90% 26%, rgba(255, 255, 255, 0.38), transparent 18%),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.3), transparent 28%);
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color 160ms ease;
}

a:hover {
    color: var(--heading);
}

.shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
}

.sidebar {
    position: sticky;
    top: 18px;
    align-self: start;
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border: 1px solid rgba(188, 198, 206, 0.5);
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(243, 197, 184, 0.14), transparent 30%),
        radial-gradient(circle at bottom right, rgba(190, 230, 209, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 250, 245, 0.9) 0%, rgba(246, 242, 255, 0.84) 52%, rgba(238, 248, 242, 0.9) 100%);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 44%);
}

.brand-block {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
}

.brand-company {
    color: var(--gold-strong);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-left: 62px;
    line-height: 1;
}

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

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(135deg, #6d97a1 0%, #8f76a7 54%, #df9482 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        0 12px 28px rgba(145, 130, 171, 0.22);
}

.brand-title {
    color: var(--heading);
    font-size: 19px;
    font-weight: 900;
    line-height: 1.15;
    font-family: "Avenir Next", "Bahnschrift", "DIN Alternate", "PingFang SC", sans-serif;
}

.brand-sub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.nav {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.34);
    color: #526b76;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease;
}

.nav-link::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(190, 230, 209, 0.9) 0%, rgba(215, 205, 243, 0.95) 100%);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.34);
    flex: 0 0 auto;
}

.nav-link:hover,
.nav-link.active {
    transform: translateX(4px);
    border-color: rgba(183, 171, 214, 0.4);
    background: linear-gradient(90deg, rgba(255, 243, 238, 0.88) 0%, rgba(243, 239, 255, 0.9) 58%, rgba(236, 248, 242, 0.88) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 10px 22px rgba(180, 192, 201, 0.14);
    color: var(--heading);
}

.nav-link.active::before {
    background: linear-gradient(135deg, #f1c3b7 0%, #d8c7ef 54%, #b8e0cf 100%);
}

.sidebar-note {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 16px 16px 18px;
    border: 1px solid rgba(188, 198, 206, 0.46);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(247, 249, 250, 0.62) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.7;
}

.sidebar-note strong {
    display: block;
    color: var(--heading);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-note p {
    margin: 8px 0 0;
    color: var(--muted);
}

.main {
    position: relative;
    min-width: 0;
    padding: 4px 0 40px;
}

.main::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 180px;
    pointer-events: none;
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
}

.topbar {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 18px;
    margin-bottom: 18px;
    padding: 24px 28px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.54);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.56), transparent 38%),
        radial-gradient(circle at top right, rgba(243, 197, 184, 0.16), transparent 28%),
        radial-gradient(circle at bottom left, rgba(215, 205, 243, 0.18), transparent 32%);
}

.topbar-main {
    position: relative;
    z-index: 1;
    min-width: 0;
    justify-self: start;
}

.topbar h1 {
    margin: 0;
    color: var(--heading);
    font-size: 36px;
    line-height: 1.05;
    letter-spacing: 0.01em;
    font-family: "Avenir Next", "Bahnschrift", "DIN Alternate", "PingFang SC", sans-serif;
}

.subtitle {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
    max-width: 920px;
    line-height: 1.75;
}

.fortune-banner {
    position: relative;
    justify-self: end;
    align-self: end;
    display: inline-flex;
    min-width: 0;
    width: auto;
    max-width: 100%;
    padding: 7px 16px 8px;
    border: 1px solid rgba(228, 196, 154, 0.68);
    border-radius: 999px;
    background:
        radial-gradient(circle at top left, rgba(255, 247, 222, 0.92), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255, 236, 205, 0.96), transparent 36%),
        linear-gradient(180deg, rgba(255, 248, 236, 0.96) 0%, rgba(255, 240, 219, 0.96) 100%);
    box-shadow: 0 10px 22px rgba(202, 138, 4, 0.12);
    text-align: center;
    overflow: hidden;
}

.fortune-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.44), transparent 36%);
}

.fortune-banner-copy {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.fortune-banner-text {
    color: #b73a35;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.52);
    white-space: nowrap;
}

.fortune-star {
    position: relative;
    width: 14px;
    height: 14px;
    transform: rotate(45deg);
    border: 2px solid #151515;
    border-radius: 3px;
    background: linear-gradient(135deg, #fff6a6 0%, #f8ca3a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    flex: 0 0 auto;
}

.fortune-star::before,
.fortune-star::after {
    content: "";
    position: absolute;
    background: #151515;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.fortune-star::before {
    width: 2px;
    height: 18px;
}

.fortune-star::after {
    width: 18px;
    height: 2px;
}

.topbar-actions {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: end;
    gap: 10px;
    justify-self: end;
}

.topbar-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    color: var(--heading);
    font-size: 13px;
    font-weight: 800;
}

.ghost-btn,
.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        color 160ms ease;
}

.ghost-btn {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(246, 248, 250, 0.8) 100%);
    color: var(--text);
    border-color: var(--line);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 8px 18px rgba(181, 193, 203, 0.14);
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.primary-btn {
    background: linear-gradient(180deg, #f7d6c9 0%, #efbfd3 100%);
    color: #694d59;
    border-color: rgba(211, 167, 185, 0.56);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 10px 22px rgba(212, 176, 189, 0.24);
}

.ghost-btn:hover,
.primary-btn:hover {
    transform: translateY(-1px);
}

.ghost-btn:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 251, 0.88) 100%);
    border-color: var(--line-strong);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 10px 20px rgba(181, 193, 203, 0.18);
}

.primary-btn:hover {
    background: linear-gradient(180deg, #f9dfd5 0%, #f2cad9 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 12px 24px rgba(212, 176, 189, 0.28);
}

.card {
    position: relative;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.52), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 40%);
}

.banner {
    position: relative;
    padding: 14px 16px;
    border-radius: 18px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid transparent;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.banner.success {
    background: linear-gradient(180deg, rgba(239, 250, 244, 0.92) 0%, rgba(228, 244, 235, 0.92) 100%);
    color: var(--success);
    border-color: rgba(151, 199, 171, 0.36);
}

.banner.error {
    background: linear-gradient(180deg, rgba(255, 244, 239, 0.92) 0%, rgba(251, 232, 225, 0.92) 100%);
    color: var(--danger);
    border-color: rgba(220, 185, 158, 0.36);
}

.filters {
    padding: 22px 24px;
    margin-bottom: 18px;
    background:
        radial-gradient(circle at top right, rgba(215, 205, 243, 0.18), transparent 32%),
        linear-gradient(180deg, rgba(255, 250, 245, 0.9) 0%, rgba(247, 249, 250, 0.84) 100%);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    align-items: end;
}

.filter-grid label,
.rules-grid label,
.login-form label {
    display: grid;
    gap: 8px;
}

.filter-grid span,
.rules-grid span,
.login-form span {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

input[type="date"],
input[type="month"],
input[type="number"],
input[type="text"],
input[type="password"],
textarea,
select,
input[type="file"] {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    font-size: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease,
        transform 160ms ease;
}

input[type="file"] {
    padding-top: 10px;
    padding-bottom: 10px;
}

input[type="date"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus,
input[type="file"]:focus {
    outline: none;
    border-color: rgba(116, 103, 159, 0.48);
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(215, 205, 243, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

textarea {
    min-height: 96px;
    padding: 10px 12px;
    resize: vertical;
}

.checkbox-field span:last-child {
    text-transform: none;
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    letter-spacing: normal;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hint,
.muted {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

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

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

.kpi-card {
    padding: 20px;
    min-height: 144px;
    background: var(--panel-soft);
}

.kpi-grid > .kpi-card:nth-child(6n + 1),
.spy-kpi-grid > .kpi-card:nth-child(6n + 1) {
    background: linear-gradient(180deg, rgba(239, 250, 244, 0.98) 0%, rgba(228, 244, 235, 0.94) 100%);
    border-color: rgba(151, 199, 171, 0.42);
}

.kpi-grid > .kpi-card:nth-child(6n + 2),
.spy-kpi-grid > .kpi-card:nth-child(6n + 2) {
    background: linear-gradient(180deg, rgba(255, 244, 239, 0.98) 0%, rgba(251, 232, 225, 0.94) 100%);
    border-color: rgba(220, 185, 158, 0.42);
}

.kpi-grid > .kpi-card:nth-child(6n + 3),
.spy-kpi-grid > .kpi-card:nth-child(6n + 3) {
    background: linear-gradient(180deg, rgba(255, 250, 233, 0.98) 0%, rgba(250, 242, 211, 0.94) 100%);
    border-color: rgba(225, 210, 164, 0.44);
}

.kpi-grid > .kpi-card:nth-child(6n + 4),
.spy-kpi-grid > .kpi-card:nth-child(6n + 4) {
    background: linear-gradient(180deg, rgba(247, 243, 255, 0.98) 0%, rgba(238, 232, 252, 0.94) 100%);
    border-color: rgba(183, 171, 214, 0.44);
}

.kpi-grid > .kpi-card:nth-child(6n + 5),
.spy-kpi-grid > .kpi-card:nth-child(6n + 5) {
    background: linear-gradient(180deg, rgba(242, 247, 255, 0.98) 0%, rgba(230, 238, 250, 0.94) 100%);
    border-color: rgba(175, 200, 220, 0.44);
}

.kpi-grid > .kpi-card:nth-child(6n + 6),
.spy-kpi-grid > .kpi-card:nth-child(6n + 6) {
    background: linear-gradient(180deg, rgba(255, 245, 250, 0.98) 0%, rgba(248, 232, 239, 0.94) 100%);
    border-color: rgba(211, 167, 185, 0.42);
}

.kpi-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    font-weight: 800;
}

.kpi-value {
    margin-top: 12px;
    color: var(--heading);
    font-size: 34px;
    line-height: 1.05;
    font-weight: 900;
    font-family: "Avenir Next", "Bahnschrift", "DIN Alternate", "PingFang SC", sans-serif;
}

.kpi-sub {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.panel {
    padding: 20px;
    background: var(--panel-soft);
}

.panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-head h2 {
    margin: 0;
    color: var(--heading);
    font-size: 22px;
    line-height: 1.18;
    font-weight: 900;
    font-family: "Avenir Next", "Bahnschrift", "DIN Alternate", "PingFang SC", sans-serif;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(168, 185, 193, 0.28);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.54);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th,
td {
    padding: 13px 12px;
    border-bottom: 1px solid rgba(168, 185, 193, 0.26);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover td {
    background: rgba(255, 255, 255, 0.42);
}

thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    background: rgba(250, 252, 253, 0.88);
}

.metric-strong {
    font-weight: 800;
}

.empty {
    padding: 28px 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}

.list,
.notes {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 10px;
}

.list li,
.notes li {
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
}

.reliable-callout {
    margin-bottom: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(225, 210, 164, 0.44);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(255, 245, 214, 0.9), transparent 34%),
        linear-gradient(180deg, rgba(255, 249, 232, 0.96) 0%, rgba(252, 242, 211, 0.94) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.reliable-callout-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(240, 223, 171, 0.48);
    color: var(--gold-strong);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reliable-callout-title {
    margin-top: 10px;
    color: #6f5928;
    font-size: 18px;
    font-weight: 900;
}

.reliable-callout-text {
    margin-top: 6px;
    color: #7f6530;
    font-size: 14px;
    line-height: 1.7;
}

.list li span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    margin: 0 6px 6px 0;
    background: rgba(242, 247, 255, 0.82);
    color: var(--blue-strong);
    font-size: 12px;
    font-weight: 800;
}

.status-chip,
.spy-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.status-chip.严重,
.spy-chip.danger {
    background: rgba(243, 197, 184, 0.5);
    color: var(--danger);
}

.status-chip.预警,
.spy-chip.warning {
    background: rgba(240, 223, 171, 0.52);
    color: var(--warning);
}

.status-chip.安全,
.spy-chip.success {
    background: rgba(190, 230, 209, 0.56);
    color: var(--success);
}

.spy-chip.neutral,
.spy-chip.info {
    background: rgba(215, 205, 243, 0.48);
    color: var(--lavender-strong);
}

.spy-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.spy-meta-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

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

.spy-alert-item {
    padding: 14px 16px;
    border: 1px solid rgba(168, 185, 193, 0.3);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.66);
}

.spy-alert-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.spy-alert-message {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text);
}

.freshness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.freshness-card {
    border: 1px solid rgba(168, 185, 193, 0.3);
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.64);
}

.freshness-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}

.freshness-card-title {
    color: var(--heading);
    font-size: 14px;
    font-weight: 900;
}

.freshness-card-summary {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.freshness-meta {
    margin-top: 10px;
}

.freshness-meta li {
    font-size: 13px;
}

.spy-link-title:hover {
    text-decoration: underline;
}

.spy-sales-product {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.spy-sales-thumb {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    object-fit: cover;
    background: rgba(242, 247, 255, 0.86);
    border: 1px solid rgba(168, 185, 193, 0.26);
}

.spy-sales-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    padding: 6px;
}

.positive {
    color: var(--success);
    font-weight: 800;
}

.negative {
    color: var(--danger);
    font-weight: 800;
}

.template-fields {
    margin-top: 14px;
}

.upload-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.dashboard-filters,
.dashboard-kpis,
.dashboard-board {
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.dashboard-filters {
    padding: 22px 24px;
    margin-bottom: 16px;
    background:
        radial-gradient(circle at top right, rgba(215, 205, 243, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255, 250, 245, 0.92) 0%, rgba(247, 249, 250, 0.86) 100%);
}

.dashboard-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(168, 185, 193, 0.28);
    background: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dashboard-breadcrumb strong {
    color: var(--heading);
}

.dashboard-filter-form {
    display: grid;
    gap: 16px;
}

.dashboard-filter-top,
.dashboard-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-filter-top {
    justify-content: space-between;
    padding-bottom: 2px;
}

.dashboard-shortcuts {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-shortcuts-label,
.dashboard-shortcut-label,
.dashboard-display-link {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-shortcuts-label {
    color: var(--heading);
    margin-right: 8px;
}

.dashboard-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        color 160ms ease;
}

.dashboard-shortcut:hover {
    transform: translateY(-1px);
    color: var(--heading);
    border-color: rgba(183, 171, 214, 0.36);
    background: rgba(255, 255, 255, 0.78);
}

.dashboard-shortcut.active {
    border-color: rgba(183, 171, 214, 0.42);
    color: var(--heading);
    background: linear-gradient(90deg, rgba(255, 242, 236, 0.96) 0%, rgba(243, 239, 255, 0.96) 54%, rgba(236, 248, 242, 0.96) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 10px 22px rgba(181, 193, 203, 0.14);
}

.dashboard-display-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(168, 185, 193, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--lavender-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.dashboard-display-link::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
    border-right-color: transparent;
    transform: rotate(45deg);
}

.dashboard-filter-field {
    min-width: 180px;
    flex: 1 1 180px;
}

.dashboard-filter-date {
    max-width: 208px;
    flex: 0 0 208px;
}

.dashboard-filter-platform {
    max-width: 148px;
    flex: 0 0 148px;
}

.dashboard-filter-store {
    max-width: 176px;
    flex: 0 0 176px;
}

.dashboard-filter-sep {
    color: var(--muted);
    font-weight: 800;
    flex: 0 0 auto;
}

.dashboard-filter-row input[type="date"],
.dashboard-filter-row select {
    min-height: 44px;
    border-radius: 14px;
    border-color: var(--line);
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.88);
}

.dashboard-search-btn {
    min-width: 116px;
    min-height: 44px;
    border: 1px solid rgba(211, 167, 185, 0.56);
    background: linear-gradient(180deg, #f7d6c9 0%, #efbfd3 100%);
    color: #694d59;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 10px 22px rgba(212, 176, 189, 0.24);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.dashboard-search-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #f9dfd5 0%, #f2cad9 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 12px 24px rgba(212, 176, 189, 0.28);
}

.dashboard-search-btn-icon {
    position: relative;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: inline-block;
}

.dashboard-search-btn-icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    right: -5px;
    bottom: -1px;
    transform: rotate(45deg);
}

.dashboard-cancelled-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
    width: fit-content;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(168, 185, 193, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
}

.dashboard-kpis {
    padding: 20px;
    margin-bottom: 16px;
    background:
        radial-gradient(circle at top left, rgba(243, 197, 184, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(247, 249, 250, 0.82) 100%);
}

.dashboard-kpi-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-kpi-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 18px 16px;
    border: 1px solid rgba(168, 185, 193, 0.28);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.dashboard-kpi-item:nth-child(1) {
    background: linear-gradient(180deg, rgba(242, 247, 255, 0.98) 0%, rgba(230, 238, 250, 0.94) 100%);
    border-color: rgba(175, 200, 220, 0.44);
}

.dashboard-kpi-item:nth-child(2) {
    background: linear-gradient(180deg, rgba(247, 243, 255, 0.98) 0%, rgba(238, 232, 252, 0.94) 100%);
    border-color: rgba(183, 171, 214, 0.44);
}

.dashboard-kpi-item:nth-child(3) {
    background: linear-gradient(180deg, rgba(255, 250, 233, 0.98) 0%, rgba(250, 242, 211, 0.94) 100%);
    border-color: rgba(225, 210, 164, 0.44);
}

.dashboard-kpi-item:nth-child(4) {
    background: linear-gradient(180deg, rgba(239, 250, 244, 0.98) 0%, rgba(228, 244, 235, 0.94) 100%);
    border-color: rgba(151, 199, 171, 0.42);
}

.dashboard-kpi-item:nth-child(5) {
    background: linear-gradient(180deg, rgba(255, 245, 250, 0.98) 0%, rgba(248, 232, 239, 0.94) 100%);
    border-color: rgba(211, 167, 185, 0.42);
}

.dashboard-kpi-item:nth-child(6) {
    background: linear-gradient(180deg, rgba(239, 248, 251, 0.98) 0%, rgba(225, 240, 246, 0.94) 100%);
    border-color: rgba(147, 194, 203, 0.42);
}

.dashboard-kpi-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex: 0 0 auto;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        0 10px 20px rgba(171, 185, 194, 0.18);
}

.dashboard-kpi-icon svg {
    width: 28px;
    height: 28px;
}

.dashboard-kpi-icon.blue { background: linear-gradient(180deg, #76bdd8 0%, #5f87c2 100%); }
.dashboard-kpi-icon.indigo { background: linear-gradient(180deg, #a694d1 0%, #7d89cf 100%); }
.dashboard-kpi-icon.amber { background: linear-gradient(180deg, #f4d27e 0%, #dfa750 100%); }
.dashboard-kpi-icon.lime { background: linear-gradient(180deg, #a8dca1 0%, #73b57d 100%); }
.dashboard-kpi-icon.rose { background: linear-gradient(180deg, #efb5aa 0%, #d9828e 100%); }
.dashboard-kpi-icon.teal { background: linear-gradient(180deg, #91d3d8 0%, #5f9cb9 100%); }

.dashboard-kpi-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-kpi-value {
    color: var(--heading);
    font-size: 24px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 0.01em;
    font-family: "Avenir Next", "Bahnschrift", "DIN Alternate", "PingFang SC", sans-serif;
}

.dashboard-kpi-meta {
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.dashboard-board {
    padding: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(190, 230, 209, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(247, 249, 250, 0.82) 100%);
}

.dashboard-tabs {
    display: flex;
    gap: 10px;
    padding: 0;
    border-bottom: 0;
    background: transparent;
    flex-wrap: wrap;
}

.dashboard-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(168, 185, 193, 0.3);
    margin: 0;
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.54);
    font-size: 14px;
    font-weight: 800;
    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        color 160ms ease;
}

.dashboard-tab.active {
    color: var(--heading);
    border-color: rgba(183, 171, 214, 0.42);
    background: linear-gradient(90deg, rgba(255, 242, 236, 0.96) 0%, rgba(243, 239, 255, 0.96) 54%, rgba(236, 248, 242, 0.96) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 10px 22px rgba(181, 193, 203, 0.14);
}

.dashboard-chart-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 20px 4px 0;
}

.dashboard-metric-form label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(168, 185, 193, 0.28);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.dashboard-metric-form select {
    min-width: 228px;
    min-height: 40px;
    border-radius: 12px;
    border-color: rgba(168, 185, 193, 0.32);
}

.dashboard-chart-wrap {
    margin-top: 18px;
    padding: 22px 20px 8px;
    border: 1px solid rgba(168, 185, 193, 0.28);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.dashboard-chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

.dashboard-grid-line {
    stroke: rgba(168, 185, 193, 0.42);
    stroke-width: 1;
}

.dashboard-grid-line-vertical {
    stroke-dasharray: 4 4;
}

.dashboard-grid-line-reference {
    stroke: rgba(220, 140, 148, 0.86);
    stroke-width: 1.2;
    stroke-dasharray: 6 4;
}

.dashboard-axis-line {
    stroke: rgba(168, 185, 193, 0.42);
    stroke-width: 1.1;
}

.dashboard-axis-tick {
    stroke: rgba(168, 185, 193, 0.42);
    stroke-width: 1;
}

.dashboard-axis-label {
    fill: var(--muted);
    font-size: 11px;
}

.dashboard-axis-label-reference {
    fill: #d57b85;
    font-weight: 800;
}

.dashboard-legend {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
}

.dashboard-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.dashboard-legend-swatch {
    width: 36px;
    height: 14px;
    display: block;
}

.dashboard-detail-table {
    margin-top: 18px;
    width: 100%;
    table-layout: fixed;
}

.dashboard-detail-table thead th {
    background: rgba(250, 252, 253, 0.92);
    text-align: center;
}

.dashboard-income-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(242, 247, 255, 0.9);
    color: var(--blue-strong);
    line-height: 1.1;
}

.dashboard-detail-table td {
    text-align: center;
}

.dashboard-detail-table td:first-child,
.dashboard-detail-table th:first-child {
    text-align: left;
    padding-left: 24px;
    white-space: nowrap;
}

.dashboard-inline-sub {
    margin-top: 4px;
    font-size: 12px;
}

.dashboard-inline-sub-title {
    margin-top: 4px;
}

.dashboard-expand-toggle {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border: 1px solid rgba(168, 185, 193, 0.4);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--blue-strong);
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.dashboard-expand-symbol {
    display: inline-block;
    transform: translateY(-1px);
}

.dashboard-child-row {
    background: rgba(255, 255, 255, 0.46);
}

.dashboard-child-row td {
    border-top: 0;
}

.dashboard-child-store {
    padding-left: 30px;
}

.dashboard-child-store-sub {
    padding-left: 30px;
}

.dashboard-detail-table tbody tr:not(.dashboard-child-row):not(.dashboard-total-row) td:first-child {
    font-size: 16px;
    font-weight: 900;
    color: var(--heading);
}

.dashboard-child-row td:first-child {
    font-size: 14px;
    font-weight: 700;
    color: var(--heading);
}

.dashboard-total-row td {
    font-weight: 900;
    background: linear-gradient(180deg, rgba(255, 249, 234, 0.98) 0%, rgba(249, 243, 211, 0.95) 100%);
}

.dashboard-notes {
    padding: 14px 4px 0 20px;
    color: var(--muted);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.rules-grid .span-2 {
    grid-column: span 2;
}

.rule-actions {
    display: flex;
    align-items: end;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 460px;
    padding: 32px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(215, 205, 243, 0.2), transparent 30%),
        radial-gradient(circle at bottom left, rgba(190, 230, 209, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(255, 250, 245, 0.92) 0%, rgba(247, 249, 250, 0.86) 100%);
}

.login-brand {
    text-align: center;
    margin-bottom: 24px;
}

.login-brand .brand-mark {
    margin: 0 auto 14px;
}

.login-brand h1 {
    margin: 0 0 10px;
}

.login-brand p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.login-form {
    display: grid;
    gap: 14px;
}

@keyframes appSoftRise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body:not(.screen-page) .sidebar,
body:not(.screen-page) .topbar,
body:not(.screen-page) .card,
.login-card {
    animation: appSoftRise 440ms ease both;
}

@media (max-width: 1100px) {
    .shell {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .sidebar {
        position: relative;
        top: auto;
        max-height: none;
        gap: 12px;
    }

    .grid,
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .spy-kpi-grid,
    .spy-meta-grid {
        grid-template-columns: 1fr;
    }

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

    .dashboard-filter-date,
    .dashboard-filter-platform,
    .dashboard-filter-store {
        max-width: none;
        flex: 1 1 180px;
    }

    .topbar {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .fortune-banner,
    .topbar-actions {
        justify-self: stretch;
    }

    .fortune-banner,
    .topbar-actions {
        grid-column: auto;
    }

    .topbar-actions {
        justify-self: stretch;
        justify-items: start;
    }

    .dashboard-metric-form label {
        width: 100%;
        justify-content: space-between;
    }

    .topbar-action-row {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .shell {
        gap: 12px;
        padding: 10px;
    }

    .sidebar,
    .topbar,
    .card,
    .dashboard-filters,
    .dashboard-kpis,
    .dashboard-board,
    .login-card {
        border-radius: 22px;
    }

    .sidebar {
        padding: 20px 16px;
    }

    .brand-company {
        margin-left: 58px;
    }

    .topbar {
        padding: 18px;
    }

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

    .subtitle {
        font-size: 14px;
    }

    .fortune-banner {
        padding-inline: 16px;
    }

    .fortune-banner-copy {
        gap: 10px;
    }

    .fortune-banner-text {
        font-size: 16px;
        white-space: normal;
        letter-spacing: 0.04em;
    }

    .fortune-star {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }

    .fortune-star::before {
        width: 2px;
        height: 20px;
    }

    .fortune-star::after {
        width: 20px;
        height: 2px;
    }

    .filter-grid,
    .rules-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        align-items: stretch;
    }

    .filter-actions .primary-btn,
    .filter-actions .ghost-btn {
        width: 100%;
    }

    .kpi-value {
        font-size: 30px;
    }

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

    .dashboard-filter-top {
        align-items: flex-start;
    }

    .dashboard-display-link,
    .dashboard-search-btn {
        width: 100%;
    }

    .dashboard-kpi-row {
        grid-template-columns: 1fr;
    }

    .dashboard-tab {
        flex: 1 1 180px;
    }

    .dashboard-chart-wrap {
        overflow-x: auto;
        padding: 18px 14px 6px;
    }

    .dashboard-chart-svg {
        min-width: 720px;
    }

    .dashboard-metric-form label {
        display: grid;
        gap: 8px;
        justify-content: stretch;
    }

    .dashboard-metric-form select {
        min-width: 0;
        width: 100%;
    }

    .table-wrap {
        border-radius: 16px;
    }

    th,
    td {
        padding: 11px 9px;
        font-size: 13px;
    }

    .login-card {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

.screen-page {
    --screen-text: #1f3740;
    --screen-title: #183540;
    --screen-heading-solid: #0b2230;
    --screen-value: #193944;
    --screen-muted: #4b6470;
    --screen-soft-text: #425b66;
    --screen-line: rgba(168, 185, 193, 0.46);
    --screen-line-soft: rgba(168, 185, 193, 0.24);
    --screen-surface: rgba(255, 255, 255, 0.76);
    --screen-surface-strong: rgba(255, 255, 255, 0.92);
    --screen-panel-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 249, 250, 0.94) 100%);
    --screen-panel-soft: rgba(248, 250, 251, 0.92);
    --screen-accent: #8cbdb8;
    --screen-accent-strong: #476f78;
    --screen-blue: #bfd0ef;
    --screen-blue-strong: #5e779f;
    --screen-peach: #f3c5b8;
    --screen-peach-strong: #a86456;
    --screen-lavender: #d7cdf3;
    --screen-lavender-strong: #74679f;
    --screen-mint: #bee6d1;
    --screen-mint-strong: #5c866c;
    --screen-gold: #f0dfab;
    --screen-gold-strong: #866e39;
    --screen-rose: #efc2d8;
    --screen-rose-strong: #975b77;
    --screen-danger: #b85d65;
    --screen-success: #5f956e;
    --screen-neutral: #5f8797;
    background:
        radial-gradient(circle at 14% 14%, rgba(243, 197, 184, 0.88), transparent 24%),
        radial-gradient(circle at 82% 12%, rgba(215, 205, 243, 0.86), transparent 28%),
        radial-gradient(circle at 22% 74%, rgba(190, 230, 209, 0.7), transparent 24%),
        radial-gradient(circle at 76% 82%, rgba(239, 194, 216, 0.62), transparent 22%),
        linear-gradient(180deg, #fff6f0 0%, #f6f6fb 48%, #edf7f1 100%);
    color: var(--screen-text);
    color-scheme: light;
}

.screen-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(158, 178, 187, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(158, 178, 187, 0.12) 1px, transparent 1px);
    background-size: 100% 64px, 64px 100%;
    opacity: 0.2;
}

.screen-page::after {
    display: none;
}

.screen-page .shell {
    grid-template-columns: 1fr;
    min-height: 100vh;
    gap: 0;
    padding: 0;
}

.screen-page .sidebar,
.screen-page .topbar {
    display: none;
}

.screen-page .main {
    position: relative;
    min-height: 100vh;
    padding: 18px;
    overflow: hidden;
}

.screen-page .banner {
    margin: 0 0 14px;
}

.screen-page .card,
.screen-page .panel,
.screen-page .kpi-card {
    box-shadow: none;
    backdrop-filter: none;
    animation: none;
}

#screen-slot {
    min-height: calc(100vh - 36px);
}

.screen-root {
    position: relative;
    min-height: calc(100vh - 36px);
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(193, 179, 202, 0.48);
    background:
        radial-gradient(circle at top left, rgba(243, 197, 184, 0.18), transparent 24%),
        radial-gradient(circle at top right, rgba(215, 205, 243, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(250, 248, 247, 0.92) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.52),
        0 20px 48px rgba(142, 161, 170, 0.18);
    overflow: hidden;
}

.screen-root::before,
.screen-root::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(193, 179, 202, 0.3);
    opacity: 0.85;
}

.screen-root::before {
    inset: 12px;
    clip-path: polygon(0 14px, 14px 0, calc(100% - 90px) 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 88px 100%, 0 100%, 0 72px);
}

.screen-root::after {
    inset: auto 22px 22px auto;
    width: 220px;
    height: 120px;
    border-left: 0;
    border-top: 0;
}

.screen-backdrop-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(26px);
    opacity: 0.5;
}

.screen-backdrop-glow-left {
    left: -110px;
    top: 90px;
    background: radial-gradient(circle, rgba(243, 197, 184, 0.48) 0%, transparent 70%);
}

.screen-backdrop-glow-right {
    right: -140px;
    bottom: 80px;
    background: radial-gradient(circle, rgba(215, 205, 243, 0.5) 0%, transparent 72%);
}

.screen-head,
.screen-toolbar,
.screen-hero,
.screen-grid {
    position: relative;
    z-index: 1;
}

.screen-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
}

.screen-head-copy h1 {
    margin: 0;
    color: var(--screen-heading-solid);
    font-size: 38px;
    line-height: 1;
    letter-spacing: 0.04em;
    font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", "PingFang SC", sans-serif;
    text-transform: uppercase;
}

.screen-head-copy p {
    margin: 10px 0 0;
    color: var(--screen-soft-text);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 500;
}

.screen-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    margin-bottom: 10px;
    border-radius: 999px;
    border: 1px solid rgba(183, 171, 214, 0.48);
    background: linear-gradient(180deg, rgba(240, 233, 255, 0.9) 0%, rgba(229, 222, 251, 0.9) 100%);
    color: var(--screen-lavender-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.screen-head-meta,
.screen-head-side {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.screen-meta-label,
.screen-meta-sub {
    color: var(--screen-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.screen-meta-value,
.screen-live-clock {
    color: var(--screen-value);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.05em;
    font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", "PingFang SC", sans-serif;
}

.screen-head-actions {
    display: flex;
    gap: 10px;
}

.screen-action,
.screen-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(211, 167, 185, 0.56);
    background: linear-gradient(180deg, #f7d6c9 0%, #efbfd3 100%);
    color: #694d59;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 10px 22px rgba(212, 176, 189, 0.24);
    transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.screen-action.secondary {
    border-color: rgba(182, 171, 214, 0.5);
    background: linear-gradient(180deg, rgba(240, 234, 255, 0.92) 0%, rgba(230, 224, 249, 0.92) 100%);
    color: #6c6493;
}

.screen-action:hover,
.screen-submit:hover {
    background: linear-gradient(180deg, #f9dfd5 0%, #f2cad9 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.76),
        0 12px 24px rgba(212, 176, 189, 0.28);
    transform: translateY(-1px);
}

.screen-action.secondary:hover {
    background: linear-gradient(180deg, rgba(245, 239, 255, 0.96) 0%, rgba(236, 229, 252, 0.96) 100%);
}

.screen-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(208, 195, 214, 0.36);
    border-radius: 20px;
    background:
        linear-gradient(90deg, rgba(255, 242, 236, 0.72) 0%, rgba(245, 247, 255, 0.72) 48%, rgba(239, 250, 244, 0.72) 100%);
    backdrop-filter: blur(12px);
}

.screen-filter-form {
    display: grid;
    grid-template-columns: 168px 150px minmax(220px, 1fr) auto auto;
    gap: 12px;
    align-items: end;
}

.screen-filter-form label {
    display: grid;
    gap: 8px;
}

.screen-filter-form label > span:first-child {
    color: var(--screen-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.screen-filter-form input[type="date"],
.screen-filter-form select {
    min-height: 44px;
    border-radius: 12px;
    border-color: var(--screen-line);
    background: rgba(255, 255, 255, 0.88);
    color: var(--screen-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.screen-filter-form input[type="checkbox"] {
    accent-color: var(--screen-accent-strong);
}

.screen-filter-form .screen-toggle {
    min-width: 190px;
}

.screen-filter-form .screen-toggle span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--screen-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--screen-text);
    font-size: 14px;
    font-weight: 600;
}

.screen-toolbar-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}

.screen-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(180, 190, 207, 0.46);
    background: rgba(247, 249, 250, 0.9);
    color: #62828c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.screen-toolbar-meta .screen-badge:nth-child(1) {
    border-color: rgba(151, 199, 171, 0.52);
    background: rgba(233, 248, 238, 0.96);
    color: var(--screen-mint-strong);
}

.screen-toolbar-meta .screen-badge:nth-child(2) {
    border-color: rgba(183, 171, 214, 0.52);
    background: rgba(242, 237, 255, 0.96);
    color: var(--screen-lavender-strong);
}

.screen-toolbar-meta .screen-badge:nth-child(3) {
    border-color: rgba(220, 185, 158, 0.52);
    background: rgba(255, 241, 235, 0.96);
    color: var(--screen-peach-strong);
}

.screen-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.screen-hero-main,
.screen-mini-card,
.screen-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--screen-line-soft);
    background: var(--screen-panel-bg);
    box-shadow: 0 14px 28px rgba(182, 191, 201, 0.12);
}

.screen-hero-main,
.screen-panel {
    border-radius: 22px;
}

.screen-hero-main {
    padding: 22px 24px;
    min-height: 220px;
    border-color: rgba(228, 192, 182, 0.42);
    background:
        radial-gradient(circle at 88% 22%, rgba(190, 230, 209, 0.3), transparent 24%),
        linear-gradient(180deg, rgba(255, 246, 241, 0.98) 0%, rgba(255, 237, 231, 0.96) 100%);
}

.screen-hero-main::before,
.screen-panel::before,
.screen-mini-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.46), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 40%);
}

.screen-panel-label {
    color: var(--screen-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.screen-hero-value {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    color: var(--screen-value);
    font-size: 66px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.03em;
    font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", "PingFang SC", sans-serif;
}

.screen-currency {
    display: inline-block;
    margin-right: 10px;
    color: var(--screen-accent-strong);
    font-size: 22px;
    vertical-align: top;
    transform: translateY(10px);
}

.screen-hero-foot {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
    color: var(--screen-soft-text);
    font-size: 14px;
}

.screen-delta,
.screen-mini-foot.positive,
.screen-mini-foot.negative,
.screen-mini-foot.neutral {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
}

.screen-delta.positive,
.screen-mini-foot.positive {
    color: var(--screen-success);
}

.screen-delta.negative,
.screen-mini-foot.negative {
    color: var(--screen-danger);
}

.screen-delta.neutral,
.screen-mini-foot.neutral {
    color: var(--screen-neutral);
}

.screen-hero-orbit {
    position: absolute;
    right: -26px;
    bottom: -58px;
    width: 290px;
    height: 290px;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, rgba(190, 230, 209, 0.28) 0%, rgba(190, 230, 209, 0.08) 24%, transparent 56%),
        radial-gradient(circle at center, transparent 42%, rgba(239, 194, 216, 0.16) 43%, rgba(239, 194, 216, 0.03) 45%, transparent 46%),
        radial-gradient(circle at center, transparent 58%, rgba(215, 205, 243, 0.24) 59%, rgba(215, 205, 243, 0.03) 61%, transparent 62%);
    opacity: 0.72;
    animation: screenPulse 10s ease-in-out infinite;
}

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

.screen-mini-card {
    padding: 18px 18px 20px;
    border-radius: 18px;
}

.screen-mini-card:nth-child(1) {
    border-color: rgba(151, 199, 171, 0.42);
    background: linear-gradient(180deg, rgba(239, 250, 244, 0.98) 0%, rgba(228, 244, 235, 0.96) 100%);
}

.screen-mini-card:nth-child(2) {
    border-color: rgba(220, 185, 158, 0.42);
    background: linear-gradient(180deg, rgba(255, 244, 239, 0.98) 0%, rgba(251, 232, 225, 0.96) 100%);
}

.screen-mini-card:nth-child(3) {
    border-color: rgba(225, 210, 164, 0.42);
    background: linear-gradient(180deg, rgba(255, 250, 233, 0.98) 0%, rgba(250, 242, 211, 0.96) 100%);
}

.screen-mini-card:nth-child(4) {
    border-color: rgba(183, 171, 214, 0.42);
    background: linear-gradient(180deg, rgba(247, 243, 255, 0.98) 0%, rgba(238, 232, 252, 0.96) 100%);
}

.screen-mini-value {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    color: var(--screen-value);
    font-size: 31px;
    line-height: 1.12;
    font-weight: 900;
    font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", "PingFang SC", sans-serif;
}

.screen-mini-foot {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    color: var(--screen-soft-text);
    font-size: 13px;
    line-height: 1.6;
}

.screen-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1.02fr 1.2fr 0.98fr;
    grid-template-areas:
        "platform hours store"
        "trend alerts status"
        "sku alerts status";
}

.screen-panel {
    padding: 18px;
    color: var(--screen-text);
}

.screen-panel-platform { grid-area: platform; }
.screen-panel-hours { grid-area: hours; }
.screen-panel-alerts { grid-area: alerts; }
.screen-panel-trend { grid-area: trend; }
.screen-panel-store { grid-area: store; }
.screen-panel-sku { grid-area: sku; }
.screen-panel-status { grid-area: status; }

.screen-panel-platform {
    grid-area: platform;
    border-color: rgba(220, 185, 158, 0.4);
    background: linear-gradient(180deg, rgba(255, 246, 240, 0.98) 0%, rgba(252, 235, 226, 0.96) 100%);
}

.screen-panel-hours {
    grid-area: hours;
    border-color: rgba(183, 171, 214, 0.4);
    background: linear-gradient(180deg, rgba(246, 242, 255, 0.98) 0%, rgba(237, 232, 251, 0.96) 100%);
}

.screen-panel-alerts {
    grid-area: alerts;
    border-color: rgba(151, 199, 171, 0.4);
    background: linear-gradient(180deg, rgba(240, 250, 244, 0.98) 0%, rgba(229, 245, 236, 0.96) 100%);
}

.screen-panel-trend {
    grid-area: trend;
    border-color: rgba(225, 210, 164, 0.42);
    background: linear-gradient(180deg, rgba(255, 251, 236, 0.98) 0%, rgba(250, 244, 214, 0.96) 100%);
}

.screen-panel-store {
    grid-area: store;
    border-color: rgba(211, 167, 185, 0.4);
    background: linear-gradient(180deg, rgba(255, 245, 250, 0.98) 0%, rgba(248, 232, 239, 0.96) 100%);
}

.screen-panel-sku {
    grid-area: sku;
    border-color: rgba(175, 200, 220, 0.4);
    background: linear-gradient(180deg, rgba(242, 247, 255, 0.98) 0%, rgba(230, 238, 250, 0.96) 100%);
}

.screen-panel-status {
    grid-area: status;
    border-color: rgba(170, 193, 208, 0.42);
    background: linear-gradient(180deg, rgba(242, 248, 251, 0.98) 0%, rgba(231, 239, 244, 0.96) 100%);
}

.screen-panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.screen-panel-title {
    color: var(--screen-heading-solid);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.screen-panel-title-sub {
    margin-top: 18px;
    margin-bottom: 10px;
    font-size: 16px;
    color: #183540;
    font-weight: 800;
}

.screen-panel-sub {
    margin-top: 4px;
    color: var(--screen-muted);
    font-size: 14px;
    line-height: 1.65;
    font-weight: 600;
}

.screen-rank-list,
.screen-alert-list,
.screen-trend-list,
.screen-job-list {
    display: grid;
    gap: 12px;
}

.screen-rank-list.compact {
    gap: 10px;
}

.screen-rank-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.screen-rank-list.split-column {
    gap: 10px;
}

.screen-rank-item,
.screen-alert-item,
.screen-job-item {
    position: relative;
    z-index: 1;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(196, 204, 215, 0.32);
    background: rgba(255, 255, 255, 0.72);
    color: var(--screen-text);
}

.screen-rank-top,
.screen-alert-top,
.screen-job-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.screen-rank-title {
    display: flex;
    gap: 12px;
    min-width: 0;
}

.screen-rank-title strong {
    display: block;
    color: #15323c;
    font-size: 15px;
    line-height: 1.45;
}

.screen-alert-top strong,
.screen-job-top strong {
    color: #15323c;
    font-size: 15px;
    line-height: 1.45;
}

.screen-rank-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(246, 233, 191, 0.88) 0%, rgba(238, 209, 166, 0.72) 100%);
    color: var(--screen-gold-strong);
    font-weight: 900;
    font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", "PingFang SC", sans-serif;
    flex: 0 0 auto;
}

.screen-rank-sub,
.screen-job-meta,
.screen-alert-message,
.screen-rank-meta {
    color: var(--screen-soft-text);
    font-size: 13px;
    line-height: 1.75;
    font-weight: 600;
}

.screen-rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 8px;
}

.screen-rank-value {
    color: var(--screen-accent-strong);
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
    font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", "PingFang SC", sans-serif;
}

.screen-rank-bar,
.screen-trend-bar {
    position: relative;
    height: 9px;
    margin-top: 10px;
    border-radius: 999px;
    background: rgba(221, 229, 233, 0.9);
    overflow: hidden;
}

.screen-rank-bar span,
.screen-trend-bar span {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #f1c3b7 0%, #d8c7ef 52%, #b8e0cf 100%);
    box-shadow: 0 0 14px rgba(215, 205, 243, 0.2);
}

.screen-platform-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.screen-platform-tag.platform-shopee {
    background: rgba(235, 182, 168, 0.28);
    color: var(--screen-peach-strong);
}

.screen-platform-tag.platform-lazada {
    background: rgba(199, 191, 227, 0.3);
    color: var(--screen-lavender-strong);
}

.screen-platform-tag.platform-tiktok {
    background: rgba(170, 212, 191, 0.32);
    color: var(--screen-mint-strong);
}

.screen-platform-tag.platform-other {
    background: rgba(168, 188, 223, 0.28);
    color: var(--screen-blue-strong);
}

.screen-hour-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.screen-hour-stat {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(196, 204, 215, 0.34);
    background: rgba(255, 255, 255, 0.74);
}

.screen-hour-stat span {
    color: var(--screen-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.screen-hour-stat strong {
    color: var(--screen-title);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
    font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", "PingFang SC", sans-serif;
}

.screen-hour-stat.today {
    border-color: rgba(151, 199, 171, 0.44);
    background: linear-gradient(180deg, rgba(239, 250, 244, 0.96) 0%, rgba(228, 244, 235, 0.92) 100%);
}

.screen-hour-stat.yesterday {
    border-color: rgba(183, 171, 214, 0.44);
    background: linear-gradient(180deg, rgba(246, 242, 255, 0.96) 0%, rgba(237, 232, 251, 0.92) 100%);
}

.screen-hour-stat.compare {
    border-color: rgba(220, 185, 158, 0.44);
    background: linear-gradient(180deg, rgba(255, 244, 239, 0.96) 0%, rgba(251, 232, 225, 0.92) 100%);
}

.screen-hour-plot {
    position: relative;
    height: 220px;
    margin-top: 2px;
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.screen-hour-scroll {
    overflow-x: auto;
    padding-bottom: 4px;
}

.screen-hour-gridlines {
    position: absolute;
    inset: 14px 0 12px;
    display: grid;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    pointer-events: none;
    z-index: 0;
}

.screen-hour-gridlines span {
    border-top: 1px dashed rgba(145, 159, 181, 0.26);
}

.screen-hour-gridlines span:last-child {
    border-bottom: 1px solid rgba(145, 159, 181, 0.2);
}

.screen-hour-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: visible;
}

.screen-hour-line {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.screen-hour-line.yesterday {
    stroke: rgba(165, 150, 222, 0.9);
}

.screen-hour-line.today {
    stroke: rgba(122, 186, 149, 0.96);
}

.screen-hour-point {
    stroke: rgba(255, 255, 255, 0.86);
    stroke-width: 2.5;
}

.screen-hour-point.yesterday {
    fill: rgba(199, 188, 237, 0.98);
}

.screen-hour-point.today {
    fill: rgba(184, 225, 205, 1);
}

.screen-hour-chart {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
    height: 100%;
    padding: 14px 0 12px;
}

.screen-hour-col {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: center;
    height: 100%;
}

.screen-hour-col.future::before {
    content: "";
    position: absolute;
    inset: 8px 1px 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.24);
}

.screen-hour-col.current::before {
    content: "";
    position: absolute;
    inset: 0 0 0;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.08) 100%);
    box-shadow: inset 0 0 0 1px rgba(151, 199, 171, 0.34);
}

.screen-hour-bars {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 5px;
    width: 100%;
    height: 100%;
    padding: 0 1px;
}

.screen-hour-bar {
    display: block;
    width: 12px;
    min-height: 0;
    border-radius: 999px 999px 4px 4px;
    box-shadow: 0 8px 16px rgba(170, 188, 223, 0.14);
}

.screen-hour-bar.zero {
    box-shadow: none;
}

.screen-hour-bar.yesterday {
    background: linear-gradient(180deg, rgba(215, 205, 243, 0.98) 0%, rgba(170, 179, 223, 0.92) 100%);
}

.screen-hour-bar.today {
    background: linear-gradient(180deg, rgba(190, 230, 209, 0.98) 0%, rgba(141, 193, 168, 0.92) 100%);
}

.screen-hour-axis {
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.screen-hour-label {
    color: var(--screen-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
}

.screen-hour-label.future {
    opacity: 0.5;
}

.screen-hour-label.current {
    color: var(--screen-mint-strong);
}

.screen-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
    color: var(--screen-muted);
    font-size: 13px;
    font-weight: 700;
}

.screen-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.screen-legend i {
    display: inline-block;
    width: 14px;
    height: 6px;
    border-radius: 999px;
}

.screen-legend i.yesterday {
    background: rgba(199, 188, 237, 0.96);
}

.screen-legend i.today {
    background: rgba(184, 225, 205, 0.96);
}

.screen-hour-note {
    margin-top: 10px;
    color: var(--screen-soft-text);
    font-size: 13px;
    line-height: 1.7;
    font-weight: 600;
}

.screen-alert-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.screen-alert-chip.success {
    background: rgba(190, 230, 209, 0.56);
    color: var(--screen-mint-strong);
}

.screen-alert-chip.warning {
    background: rgba(240, 223, 171, 0.56);
    color: var(--screen-gold-strong);
}

.screen-alert-chip.danger {
    background: rgba(243, 197, 184, 0.5);
    color: var(--screen-danger);
}

.screen-alert-chip.neutral,
.screen-alert-chip.info {
    background: rgba(215, 205, 243, 0.48);
    color: var(--screen-blue-strong);
}

.screen-alert-message {
    margin-top: 8px;
}

.screen-trend-item {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.screen-trend-date {
    color: #15323c;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.screen-trend-meta {
    display: grid;
    justify-items: end;
    gap: 2px;
}

.screen-trend-meta strong {
    color: var(--screen-accent-strong);
    font-size: 14px;
    font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", "PingFang SC", sans-serif;
}

.screen-trend-meta span {
    color: var(--screen-muted);
    font-size: 13px;
    font-weight: 600;
}

.screen-page .freshness-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.screen-page .freshness-card {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(196, 204, 215, 0.32);
    color: var(--screen-text);
}

.screen-page .freshness-card-title {
    color: var(--screen-heading-solid);
    font-size: 15px;
    font-weight: 900;
}

.screen-page .screen-panel .screen-panel-title,
.screen-page .screen-panel .screen-panel-title-sub,
.screen-page .screen-panel .screen-trend-date,
.screen-page .screen-panel .screen-rank-title strong,
.screen-page .screen-panel .screen-alert-top strong,
.screen-page .screen-panel .screen-job-top strong,
.screen-page .freshness-card-title {
    color: #0b2230 !important;
    -webkit-text-fill-color: #0b2230;
    opacity: 1;
    text-shadow: none;
    font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", "PingFang SC", sans-serif;
    font-weight: 900;
    letter-spacing: 0.01em;
}

.screen-page .screen-panel .screen-panel-title {
    font-size: 22px;
    line-height: 1.12;
}

.screen-page .screen-panel .screen-panel-title-sub {
    font-size: 18px;
    line-height: 1.2;
}

.screen-page .freshness-card-summary,
.screen-page .freshness-meta li {
    color: var(--screen-soft-text);
    font-size: 14px;
    line-height: 1.75;
    font-weight: 600;
}

.screen-page .empty {
    color: var(--screen-soft-text);
    font-size: 14px;
    font-weight: 600;
}

.screen-page .spy-chip.success {
    background: rgba(190, 230, 209, 0.56);
    color: var(--screen-mint-strong);
}

.screen-page .spy-chip.warning {
    background: rgba(240, 223, 171, 0.56);
    color: var(--screen-gold-strong);
}

.screen-page .spy-chip.danger {
    background: rgba(243, 197, 184, 0.5);
    color: var(--screen-danger);
}

.screen-page .spy-chip.neutral,
.screen-page .spy-chip.info {
    background: rgba(215, 205, 243, 0.48);
    color: var(--screen-lavender-strong);
}

.screen-jobs {
    margin-top: 18px;
}

.screen-job-empty {
    padding: 12px 0 2px;
    color: var(--screen-soft-text);
    font-size: 13px;
}

@keyframes screenPulse {
    0%, 100% {
        transform: scale(0.98);
        opacity: 0.72;
    }

    50% {
        transform: scale(1.02);
        opacity: 0.96;
    }
}

@media (max-width: 1500px) {
    .screen-filter-form {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .screen-submit {
        width: 100%;
    }

    .screen-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "platform hours"
            "store store"
            "trend alerts"
            "sku status";
    }
}

@media (max-width: 1100px) {
    .screen-page .main {
        padding: 12px;
    }

    #screen-slot,
    .screen-root {
        min-height: auto;
    }

    .screen-root {
        padding: 18px;
        border-radius: 22px;
    }

    .screen-head,
    .screen-toolbar,
    .screen-hero,
    .screen-grid {
        grid-template-columns: 1fr;
    }

    .screen-head,
    .screen-toolbar {
        gap: 14px;
    }

    .screen-head-meta,
    .screen-head-side {
        justify-items: start;
    }

    .screen-head-actions,
    .screen-toolbar-meta {
        justify-content: flex-start;
    }

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

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

    .screen-grid {
        grid-template-areas:
            "platform"
            "hours"
            "store"
            "alerts"
            "trend"
            "sku"
            "status";
    }
}

@media (max-width: 720px) {
    .screen-head-copy h1 {
        font-size: 28px;
        line-height: 1.08;
    }

    .screen-head-copy p {
        font-size: 13px;
    }

    .screen-hero-main {
        padding: 18px;
        min-height: 180px;
    }

    .screen-hero-value {
        font-size: 40px;
    }

    .screen-currency {
        display: block;
        margin: 0 0 8px;
        transform: none;
        font-size: 16px;
    }

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

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

    .screen-mini-value {
        font-size: 26px;
    }

    .screen-panel {
        padding: 16px;
    }

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

    .screen-hour-chart,
    .screen-hour-axis {
        gap: 6px;
    }

    .screen-hour-plot,
    .screen-hour-chart {
        min-width: 720px;
    }

    .screen-hour-axis {
        min-width: 720px;
    }

    .screen-trend-item {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .screen-trend-meta {
        justify-items: start;
    }
}
