:root {
    --blue: #1677ff;
    --blue-dark: #0c5bd8;
    --blue-soft: #edf5ff;
    --ink: #1f2d3d;
    --text: #334155;
    --muted: #8a97a8;
    --line: #e8edf3;
    --canvas: #f5f7fa;
    --sidebar: #12213a;
    --green: #19b37b;
    --orange: #f59e0b;
    --red: #ef6a67;
    --radius: 8px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.modal-open { overflow: hidden; }
body { margin: 0; color: var(--text); background: var(--canvas); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

/* Shared shell */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 232px; flex: 0 0 232px; background: var(--sidebar); color: #c7d0df; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 20; }
.brand { height: 80px; display: flex; align-items: center; gap: 11px; padding: 0 25px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand strong { font-size: 16px; font-weight: 650; letter-spacing: .3px; display: block; white-space: nowrap; }
.brand small { color: #7e8ca2; font-size: 10px; display: block; margin-top: 3px; letter-spacing: .3px; }
.brand-mark { width: 28px; height: 28px; position: relative; display: flex; align-items: flex-end; gap: 3px; flex: none; }
.brand-mark span { display: block; width: 7px; border-radius: 3px 3px 2px 2px; background: var(--blue); }
.brand-mark span:nth-child(1) { height: 16px; opacity: .75; }
.brand-mark span:nth-child(2) { height: 23px; }
.brand-mark span:nth-child(3) { height: 12px; opacity: .9; }
.main-nav { padding: 22px 13px; flex: 1; }
.nav-item { height: 45px; display: flex; align-items: center; gap: 13px; padding: 0 13px; color: #aab8cb; border-radius: 6px; margin-bottom: 3px; transition: background .18s, color .18s; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: var(--blue); box-shadow: 0 6px 16px rgba(22,119,255,.25); }
.nav-item svg { width: 18px; height: 18px; flex: none; }
.nav-item span { font-size: 13px; flex: 1; }
.nav-item em { font-style: normal; background: rgba(255,255,255,.12); color: #b8cdf0; border-radius: 10px; font-size: 10px; line-height: 18px; min-width: 18px; text-align: center; }
.nav-item.active em { color: #fff; background: rgba(255,255,255,.2); }
.nav-divider { height: 1px; background: rgba(255,255,255,.08); margin: 20px 13px 18px; }
.nav-label { color: #64758d; font-size: 10px; letter-spacing: 1px; margin: 0 13px 10px; }
.sidebar-bottom { padding: 0 25px 24px; color: #78889f; }
.help-link { display: flex; align-items: center; gap: 9px; color: #a3b0c2; font-size: 12px; margin-bottom: 19px; }
.help-dot { border: 1px solid #7e8fa8; color: #a3b0c2; width: 17px; height: 17px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.external { margin-left: auto; font-size: 14px; color: #65758d; }
.version { font-size: 10px; color: #53647d; }
.main-area { min-width: 0; width: calc(100% - 232px); margin-left: 232px; }
.topbar { height: 80px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 34px; }
.breadcrumb { display: flex; align-items: center; gap: 12px; color: #a0abba; font-size: 13px; }
.breadcrumb i { font-style: normal; color: #cdd5df; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.icon-button { width: 33px; height: 33px; border: 0; background: transparent; color: #76859a; display: inline-flex; justify-content: center; align-items: center; padding: 0; cursor: pointer; position: relative; border-radius: 6px; }
.icon-button:hover { background: #f2f5f9; color: var(--blue); }
.icon-button svg { width: 19px; height: 19px; }
.notification b { width: 5px; height: 5px; background: #ff6b67; border: 1.5px solid #fff; border-radius: 50%; position: absolute; top: 6px; right: 6px; }
.topbar-separator { height: 24px; width: 1px; background: var(--line); margin: 0 1px; }
.user-menu { display: flex; align-items: center; gap: 9px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; background: #5e8de8; font-size: 13px; }
.user-copy strong, .user-copy small { display: block; }
.user-copy strong { color: var(--ink); font-size: 12px; font-weight: 600; }
.user-copy small { color: #9ca8b7; font-size: 10px; margin-top: 2px; }
.chevron { color: #abb5c1; font-size: 16px; margin-left: 3px; transform: translateY(-2px); }
.logout-link { color: #93a0af; font-size: 12px; margin-left: 2px; }
.logout-link:hover { color: var(--blue); }
.menu-toggle, .sidebar-backdrop { display: none; }

/* Dashboard */
.page-content { max-width: 1540px; margin: 0 auto; padding: 32px 34px 48px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 27px; }
.page-heading h1 { margin: 0; color: var(--ink); font-size: 23px; line-height: 1.3; font-weight: 650; letter-spacing: .1px; }
.page-heading p { margin: 7px 0 0; color: #94a0ae; font-size: 12px; }
.heading-actions { display: flex; align-items: center; gap: 20px; }
.live-status { color: #7d8c9e; font-size: 12px; display: inline-flex; align-items: center; gap: 7px; }
.live-status i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 3px rgba(25,179,123,.12); }
.outline-button, .filter-button { border: 1px solid #dbe3ee; background: #fff; color: #556579; height: 35px; border-radius: 5px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 12px; }
.outline-button:hover, .filter-button:hover { border-color: var(--blue); color: var(--blue); }
.outline-button svg, .filter-button svg { width: 15px; height: 15px; }
.demo-banner, .data-error { display: flex; align-items: center; gap: 9px; min-height: 36px; border-radius: 5px; padding: 8px 12px; font-size: 12px; margin: -10px 0 18px; }
.demo-banner { background: #edf5ff; color: #4d6d9f; border: 1px solid #d9eaff; }
.demo-banner code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.data-error { margin: 0 0 18px; background: #fff5f3; border: 1px solid #ffdeda; color: #c0645e; }
.data-error svg { width: 16px; height: 16px; }
.data-success { display: flex; align-items: center; gap: 9px; min-height: 36px; border-radius: 5px; padding: 8px 12px; font-size: 12px; margin: 0 0 18px; background: #eefaf5; border: 1px solid #ccefe0; color: #198b64; }.data-success svg { width: 16px; height: 16px; }
.hint-icon { width: 16px; height: 16px; display: inline-flex; justify-content: center; align-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; line-height: 1; flex: none; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 18px; }
.metric-card, .panel { background: #fff; border: 1px solid #e9eef4; border-radius: var(--radius); }
.metric-card { min-height: 153px; padding: 20px 21px; position: relative; overflow: hidden; }
.metric-card:after { position: absolute; content: ''; width: 95px; height: 95px; border-radius: 50%; right: -27px; bottom: -44px; opacity: .08; background: currentColor; }
.metric-revenue { color: #1677ff; }.metric-orders { color: #805ad5; }.metric-customers { color: #17a673; }.metric-visitors { color: #e68a13; }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: #8190a2; }
.metric-label { font-size: 12px; color: #7c8998; }
.metric-icon { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: currentColor; color: #fff; opacity: .88; }
.metric-icon svg { width: 16px; height: 16px; }
.metric-value { color: var(--ink); font-size: 25px; letter-spacing: .1px; font-weight: 650; margin-top: 15px; line-height: 1.1; }
.metric-change { display: flex; align-items: center; gap: 8px; margin-top: 13px; font-size: 11px; }
.metric-change span { font-weight: 600; }.metric-change small { color: #a4afbc; font-size: 10px; }.positive { color: var(--green); }.negative { color: var(--red); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(340px, .82fr); gap: 18px; margin-bottom: 18px; }
.panel { padding: 22px 22px 17px; min-width: 0; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.panel-heading h2 { color: var(--ink); font-size: 15px; margin: 0; font-weight: 650; }.panel-heading p { color: #99a5b3; font-size: 11px; margin: 6px 0 0; }
.segmented-control { display: flex; gap: 2px; background: #f4f6f9; border-radius: 5px; padding: 3px; }
.segmented-control button { border: 0; color: #96a1ae; background: transparent; border-radius: 4px; padding: 5px 12px; font-size: 11px; cursor: pointer; }.segmented-control button.active { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(31,45,61,.1); }
.chart-wrap { display: flex; margin-top: 25px; height: 231px; }.chart-y-axis { width: 39px; display: flex; flex-direction: column; justify-content: space-between; padding: 2px 0 24px; color: #a5afba; font-size: 10px; }.chart-area { flex: 1; min-width: 0; position: relative; }.chart-grid-lines { position: absolute; inset: 0 0 25px; display: flex; flex-direction: column; justify-content: space-between; }.chart-grid-lines i { border-top: 1px dashed #edf0f4; display: block; }.trend-chart { position: absolute; inset: 0 0 24px; width: 100%; height: calc(100% - 24px); overflow: visible; }.chart-fill { fill: url(#chartFill); stroke: none; }.chart-line { fill: none; stroke: #1677ff; stroke-width: 2.6; vector-effect: non-scaling-stroke; }.chart-point { fill: #fff; stroke: #1677ff; stroke-width: 2; vector-effect: non-scaling-stroke; }.chart-point:last-of-type { fill: #1677ff; stroke: #fff; stroke-width: 3; }.chart-x-axis { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; color: #a5afba; font-size: 10px; }.chart-footer { border-top: 1px solid #f0f2f5; margin-top: 1px; padding-top: 13px; display: flex; justify-content: space-between; color: #a3adba; font-size: 10px; }.chart-footer span { display: inline-flex; align-items: center; gap: 6px; }.legend-dot { width: 7px; height: 7px; background: #1677ff; border-radius: 50%; }
.text-button { border: 0; padding: 3px 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 11px; white-space: nowrap; }.text-button span { font-size: 16px; vertical-align: -1px; margin-left: 3px; }.text-button:hover { color: var(--blue-dark); }
.alerts-panel { min-height: 313px; }.alert-list { margin-top: 18px; }.alert-item { display: flex; align-items: flex-start; gap: 11px; padding: 14px 0; border-bottom: 1px solid #f0f2f5; }.alert-item:first-child { padding-top: 3px; }.alert-item:last-child { border-bottom: 0; }.alert-mark { width: 25px; height: 25px; border-radius: 7px; display: inline-flex; justify-content: center; align-items: center; flex: none; }.alert-mark i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }.alert-warning { background: #fff5df; color: #eda91b; }.alert-info { background: #edf5ff; color: #418cf5; }.alert-success { background: #eaf9f3; color: #2db782; }.alert-copy { flex: 1; min-width: 0; }.alert-copy strong { color: #3a495c; font-size: 12px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.alert-copy p { color: #9ba7b4; font-size: 10px; margin: 5px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.alert-item time { color: #abb4c0; font-size: 10px; padding-top: 2px; }.empty-state { color: #aab4c0; font-size: 12px; text-align: center; padding: 38px 0; }
.orders-panel { padding-bottom: 3px; }.orders-tools { display: flex; align-items: center; gap: 22px; }.filter-button { height: 28px; padding: 0 9px; font-size: 11px; }.table-scroll { overflow-x: auto; margin-top: 18px; }table { border-collapse: collapse; width: 100%; min-width: 680px; }th { color: #9ba6b4; font-weight: 500; font-size: 10px; text-align: left; background: #fafbfc; height: 36px; padding: 0 12px; }td { border-bottom: 1px solid #f0f2f5; padding: 12px; height: 55px; color: #506174; font-size: 11px; }tbody tr:last-child td { border-bottom: 0; }.order-number { color: #4d6e99; font-size: 11px; font-weight: 600; }.customer-cell { display: flex; gap: 8px; align-items: center; }.customer-avatar { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; color: #3976cd; background: #ebf3ff; border-radius: 5px; font-size: 10px; }.amount { color: #35465a; font-weight: 600; }.status { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; }.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }.status-success { color: #1ca979; }.status-warning { color: #e5a21c; }.status-muted { color: #9ba8b6; }.time-cell { color: #94a1af; }.more-button { border: 0; color: #99a5b2; background: transparent; cursor: pointer; letter-spacing: 2px; padding: 5px; }.more-button:hover { color: var(--blue); }.empty-table { text-align: center; color: #9ba8b6; height: 100px; }
.error-page { text-align: center; padding: 130px 20px; }.error-code { color: var(--blue); font-size: 72px; font-weight: 700; line-height: 1; }.error-page h1 { color: var(--ink); font-size: 20px; margin: 18px 0 8px; }.error-page p { color: var(--muted); margin: 0 0 28px; }.primary-button { height: 42px; border: 0; border-radius: 5px; background: var(--blue); color: #fff; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; font-size: 13px; font-weight: 600; box-shadow: 0 5px 13px rgba(22,119,255,.18); }.primary-button:hover { background: var(--blue-dark); }.primary-button svg { width: 17px; height: 17px; }

/* Login */
.login-page { min-height: 100vh; background: #fff; display: flex; }.login-visual { width: 48%; min-height: 100vh; position: relative; overflow: hidden; background: #112b55; color: #fff; padding: 44px 8%; display: flex; flex-direction: column; }.visual-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 80%); }.visual-grid:after { content: ''; position: absolute; width: 380px; height: 380px; right: -180px; top: 27%; border: 1px solid rgba(122,181,255,.6); border-radius: 50%; box-shadow: 0 0 0 34px rgba(122,181,255,.06), 0 0 0 68px rgba(122,181,255,.05), 0 0 0 102px rgba(122,181,255,.04); }.visual-brand { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }.visual-brand strong { font-size: 18px; letter-spacing: .4px; }.brand-mark-large { width: 30px; height: 30px; }.visual-copy { margin: auto 0; position: relative; z-index: 1; max-width: 410px; }.eyebrow { color: #84b7ff; font-size: 10px; font-weight: 650; letter-spacing: 2px; margin: 0 0 19px; }.visual-copy h1 { font-size: clamp(30px, 3.5vw, 48px); line-height: 1.25; letter-spacing: 1px; margin: 0; font-weight: 650; }.visual-copy h1 span { color: #80b5ff; }.visual-copy > p:last-child { color: #adc4e2; line-height: 1.9; font-size: 13px; margin: 26px 0 0; max-width: 320px; }.visual-footer { display: flex; justify-content: space-between; color: #7690b5; font-size: 10px; position: relative; z-index: 1; }.login-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 7%; }.login-form-wrap { width: min(380px, 100%); }.mobile-login-brand { display: none; }.form-heading .eyebrow { color: var(--blue); margin-bottom: 15px; }.form-heading h2 { color: var(--ink); font-size: 28px; margin: 0; font-weight: 650; }.form-heading > p:last-child { color: #9ca8b6; font-size: 12px; margin: 10px 0 33px; }.form-alert { color: #c7645e; background: #fff5f3; border: 1px solid #ffdedb; min-height: 38px; border-radius: 5px; padding: 9px 11px; display: flex; align-items: center; gap: 8px; font-size: 12px; margin: -10px 0 20px; }.form-alert svg { width: 16px; height: 16px; flex: none; }.login-form { display: flex; flex-direction: column; }.field-label { color: #546477; font-size: 12px; font-weight: 550; margin: 0 0 9px; }.field-row { display: flex; align-items: center; justify-content: space-between; margin-top: 21px; }.field-row .field-label { margin-bottom: 0; }.muted-link { color: #98a6b5; font-size: 11px; }.muted-link:hover { color: var(--blue); }.input-wrap { height: 43px; border: 1px solid #dfe6ee; border-radius: 5px; display: flex; align-items: center; padding: 0 13px; gap: 10px; transition: border-color .15s, box-shadow .15s; }.input-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,119,255,.1); }.input-wrap svg { width: 16px; height: 16px; color: #aeb9c6; flex: none; }.input-wrap input { border: 0; outline: 0; flex: 1; min-width: 0; color: var(--ink); background: transparent; font-size: 12px; height: 100%; }.input-wrap input::placeholder { color: #b0bbc7; }.password-toggle { border: 0; background: transparent; color: #97a5b5; padding: 3px 0 3px 7px; cursor: pointer; font-size: 10px; }.password-toggle:hover { color: var(--blue); }.remember { display: flex; align-items: center; gap: 8px; color: #8693a2; font-size: 11px; margin: 17px 0 25px; cursor: pointer; }.remember input { position: absolute; opacity: 0; }.checkbox-custom { width: 14px; height: 14px; border: 1px solid #ced8e3; border-radius: 3px; background: #fff; position: relative; }.remember input:checked + .checkbox-custom { background: var(--blue); border-color: var(--blue); }.remember input:checked + .checkbox-custom:after { content: ''; width: 7px; height: 4px; position: absolute; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg); left: 3px; top: 3px; }.login-submit { width: 100%; height: 44px; justify-content: space-between; padding: 0 16px 0 20px; }.login-submit svg { width: 18px; height: 18px; }.demo-hint { margin-top: 21px; min-height: 34px; padding: 8px 10px; display: flex; align-items: center; gap: 7px; background: #f7f9fc; color: #8795a7; font-size: 10px; border-radius: 4px; }.demo-hint strong { color: #5e7ca9; font-weight: 600; }.login-copyright { color: #bdc5cf; text-align: center; font-size: 10px; margin: 48px 0 0; }

@media (max-width: 1100px) { .page-content { padding-left: 24px; padding-right: 24px; }.topbar { padding: 0 24px; }.dashboard-grid { grid-template-columns: 1fr; }.alerts-panel { min-height: auto; }.alert-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }.alert-item:nth-child(2) { border-top: 0; }.metric-card { padding-left: 16px; padding-right: 16px; }.metric-value { font-size: 21px; } }
@media (max-width: 820px) { .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 8px 0 25px rgba(0,0,0,.12); }.sidebar.is-open { transform: translateX(0); }.sidebar-backdrop { display: block; visibility: hidden; opacity: 0; position: fixed; inset: 0; z-index: 19; background: rgba(8,21,38,.35); transition: opacity .2s, visibility .2s; }.sidebar-backdrop.is-visible { opacity: 1; visibility: visible; }.main-area { width: 100%; margin-left: 0; }.topbar { height: 64px; padding: 0 18px; }.menu-toggle { display: inline-flex; flex-direction: column; gap: 4px; margin-right: 12px; }.menu-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; }.breadcrumb { flex: 1; }.topbar-actions { gap: 9px; }.topbar-separator, .user-copy, .chevron, .logout-link { display: none; }.user-menu { margin-left: 2px; }.page-content { padding: 26px 18px 35px; }.metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.page-heading { align-items: flex-start; gap: 18px; flex-direction: column; }.heading-actions { width: 100%; justify-content: space-between; }.dashboard-grid { gap: 15px; }.panel { padding: 18px 15px 14px; }.alert-list { grid-template-columns: 1fr; }.orders-tools { gap: 13px; } }
@media (max-width: 560px) { .login-visual { display: none; }.login-panel { padding: 30px 22px; align-items: flex-start; }.login-form-wrap { padding-top: 15px; }.mobile-login-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 55px; color: var(--ink); }.mobile-login-brand strong { font-size: 15px; }.mobile-login-brand .brand-mark { width: 25px; height: 25px; }.mobile-login-brand .brand-mark span { width: 6px; }.form-heading h2 { font-size: 25px; }.form-heading > p:last-child { margin-bottom: 30px; }.login-copyright { margin-top: 40px; }.metric-grid { gap: 10px; }.metric-card { min-height: 142px; padding: 15px 13px; }.metric-label { font-size: 11px; }.metric-icon { width: 26px; height: 26px; }.metric-icon svg { width: 14px; height: 14px; }.metric-value { font-size: 18px; margin-top: 17px; }.metric-change { gap: 5px; margin-top: 11px; flex-direction: column; align-items: flex-start; }.metric-change small { font-size: 9px; }.page-heading h1 { font-size: 21px; }.heading-actions { gap: 8px; }.live-status { font-size: 11px; }.chart-wrap { height: 215px; margin-top: 20px; }.segmented-control button { padding-left: 8px; padding-right: 8px; }.panel-heading h2 { font-size: 14px; }.panel-heading p { font-size: 10px; }.orders-tools .filter-button { display: none; }.orders-tools { margin-left: auto; }.demo-banner { align-items: flex-start; line-height: 1.5; }.topbar-actions > .icon-button:first-child { display: none; } }

/* Statistics management and data details */
.add-stat-button { height: 35px; padding: 0 14px; font-size: 12px; box-shadow: 0 4px 12px rgba(22,119,255,.16); }
.add-stat-button svg { width: 16px; height: 16px; }
.stat-table-panel { padding: 0 0 4px; overflow: hidden; }
.stat-table-heading { padding: 22px 22px 18px; align-items: center; }
.statistics-search-form { display: flex; align-items: center; gap: 10px; padding: 0 22px 18px; }.statistics-search-form .search-input-wrap { flex: 1; min-width: 0; }.search-submit { height: 43px; }.search-clear { color: #9ba8b6; font-size: 19px; line-height: 1; text-decoration: none; }.search-clear:hover { color: var(--blue); }.stat-actions { display: flex; align-items: center; gap: 12px; }.clear-data-button { border: 0; background: transparent; color: #c06c64; cursor: pointer; font-size: 11px; padding: 0; white-space: nowrap; }.clear-data-button:hover { color: #a7453d; text-decoration: underline; }
.case-note { display: inline-flex; align-items: center; gap: 7px; color: #94a1b0; font-size: 11px; white-space: nowrap; }
.case-note i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #6e8fd0; box-shadow: 0 0 0 3px #edf3ff; }
.stat-table { min-width: 820px; }
.stat-table th { padding-left: 22px; padding-right: 22px; }
.stat-table td { padding: 14px 22px; }
.stat-table .stat-remark { color: #3d4d60; font-weight: 600; }
.token-cell { display: flex; align-items: center; gap: 9px; }
.token-cell code, .generated-values code, .detail-result-heading code { color: #4b6d9f; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11px; letter-spacing: .15px; white-space: nowrap; }
.copy-button { border: 0; padding: 3px 5px; background: #f0f5ff; color: #5c85c6; border-radius: 3px; cursor: pointer; font-size: 10px; white-space: nowrap; }
.copy-button:hover, .copy-button.is-copied { color: #fff; background: var(--blue); }
.detail-link { color: var(--blue); font-size: 11px; white-space: nowrap; }
.detail-link span { font-size: 15px; vertical-align: -1px; margin-left: 3px; }
.detail-link:hover { color: var(--blue-dark); }
.stat-empty { height: 180px; text-align: center; }
.empty-table-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 0 auto 10px; color: #86a5d4; background: #edf4ff; border-radius: 8px; }
.empty-table-icon svg { width: 20px; height: 20px; }
.stat-empty strong, .stat-empty small { display: block; }.stat-empty strong { color: #617185; font-size: 12px; }.stat-empty small { color: #a6b0bc; font-size: 10px; margin-top: 6px; }
.modal-layer { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(12, 26, 46, .42); opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s; }
.modal-layer.is-visible { opacity: 1; visibility: visible; }
.modal-card { width: min(430px, 100%); background: #fff; border-radius: 8px; box-shadow: 0 18px 60px rgba(16, 34, 59, .2); padding: 25px 26px 23px; transform: translateY(8px); transition: transform .18s; }
.modal-layer.is-visible .modal-card { transform: translateY(0); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }.modal-header h2 { margin: 0; color: var(--ink); font-size: 17px; font-weight: 650; }.modal-header p { color: #9ca8b6; font-size: 11px; margin: 7px 0 0; }.modal-close { color: #a2adba; border: 0; background: transparent; font-size: 24px; line-height: 20px; padding: 0 2px; cursor: pointer; }.modal-close:hover { color: var(--ink); }
.modal-error { display: flex; align-items: center; gap: 7px; color: #c7645e; background: #fff5f3; border: 1px solid #ffdedb; border-radius: 5px; padding: 9px 10px; font-size: 11px; margin: -8px 0 17px; }.modal-error svg { width: 15px; height: 15px; flex: none; }
.stat-form .field-label { display: block; }.text-input, .search-input-wrap { width: 100%; height: 43px; border: 1px solid #dfe6ee; border-radius: 5px; outline: 0; color: var(--ink); font-size: 12px; transition: border-color .15s, box-shadow .15s; }.text-input { padding: 0 13px; }.text-input::placeholder { color: #b0bbc7; }.text-input:focus, .search-input-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,119,255,.1); }.field-tip { color: #a1adba; font-size: 10px; line-height: 1.7; margin: 10px 0 0; }.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }.modal-actions .outline-button, .modal-actions .primary-button { min-width: 82px; height: 36px; font-size: 12px; }
.generated-card { text-align: center; padding: 30px 29px 26px; }.generated-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 14px; color: #fff; background: var(--green); box-shadow: 0 5px 14px rgba(25,179,123,.2); }.generated-icon svg { width: 22px; height: 22px; stroke-width: 2.4; }.generated-card h2 { color: var(--ink); font-size: 17px; margin: 0; }.generated-intro { color: #9aa6b4; font-size: 11px; margin: 8px 0 22px; }.generated-values { text-align: left; background: #f7f9fc; border-radius: 6px; padding: 3px 13px; }.generated-values > div { padding: 12px 0; border-bottom: 1px solid #e9edf3; }.generated-values > div:last-child { border-bottom: 0; }.generated-values > div > span { display: block; color: #8c99a8; font-size: 10px; margin-bottom: 7px; }.generated-values > div > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.generated-values code { overflow: hidden; text-overflow: ellipsis; }.generated-close { width: 100%; margin-top: 22px; height: 39px; }
.details-search-panel { padding: 20px 22px 21px; }.details-search-form { display: flex; align-items: flex-end; gap: 14px; }.details-search-form > div { flex: 1; min-width: 0; }.details-search-form .field-label { display: block; }.search-input-wrap { display: flex; align-items: center; gap: 9px; padding: 0 12px; }.search-input-wrap svg { width: 16px; height: 16px; color: #aeb9c6; flex: none; }.search-input-wrap input { border: 0; outline: 0; background: transparent; color: var(--ink); min-width: 0; flex: 1; height: 100%; font-size: 12px; }.search-input-wrap input::placeholder { color: #b0bbc7; }.search-button { height: 43px; padding: 0 18px; font-size: 12px; flex: none; }.search-button svg { width: 15px; height: 15px; }.details-error { margin: 17px 0 0; }.detail-result-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 28px 0 16px; }.detail-result-heading h2 { color: var(--ink); font-size: 16px; margin: 0; }.detail-result-heading p { color: #98a5b3; font-size: 11px; margin: 7px 0 0; }.last-updated { color: #9ca8b5; font-size: 10px; white-space: nowrap; }.install-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }.install-card { min-height: 145px; border: 1px solid #e9eef4; border-radius: var(--radius); padding: 22px; display: flex; align-items: center; gap: 14px; position: relative; overflow: hidden; }.install-card:after { content: ''; width: 120px; height: 120px; position: absolute; right: -40px; bottom: -60px; border-radius: 50%; opacity: .07; background: currentColor; }.install-a { color: #397fe5; background: #fbfdff; }.install-b { color: #805ad5; background: #fdfbff; }.install-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: #fff; background: currentColor; font-size: 16px; font-weight: 700; position: relative; z-index: 1; }.install-card > div:nth-child(2) { position: relative; z-index: 1; }.install-card span { color: #8592a0; display: block; font-size: 11px; }.install-card strong { color: var(--ink); font-size: 27px; line-height: 1.2; display: block; margin-top: 7px; }.install-card small { color: #aab4bf; font-size: 10px; margin-left: auto; align-self: flex-end; padding-bottom: 3px; position: relative; z-index: 1; }.data-placeholder-panel { margin-top: 17px; }.data-placeholder-list { display: flex; flex-wrap: wrap; gap: 20px 35px; margin-top: 19px; padding-top: 16px; border-top: 1px solid #f0f2f5; color: #8e9baa; font-size: 11px; }.data-placeholder-list span { display: inline-flex; align-items: center; gap: 7px; }.data-placeholder-list i { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--green); }.details-empty { text-align: center; padding: 94px 20px; }.details-empty-icon { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; color: #7b9ed3; background: #edf4ff; border-radius: 12px; margin: 0 auto 17px; }.details-empty-icon svg { width: 28px; height: 28px; }.details-empty h2 { color: #596a7d; font-size: 15px; margin: 0; }.details-empty p { color: #a4afba; font-size: 11px; margin: 9px 0 0; }

@media (max-width: 820px) { .stat-table-heading { align-items: flex-start; }.case-note { display: none; }.details-search-form { gap: 10px; }.details-search-panel { padding: 17px 15px; } }
@media (max-width: 560px) { .statistics-page .heading-actions { align-items: center; }.statistics-page .live-status { display: none; }.add-stat-button { margin-left: auto; }.stat-table-heading { padding-left: 15px; padding-right: 15px; }.statistics-search-form { padding-left: 15px; padding-right: 15px; }.modal-card { padding: 22px 19px 20px; }.generated-card { padding: 26px 18px 22px; }.details-search-form { display: block; }.search-button { width: 100%; margin-top: 14px; }.detail-result-heading { display: block; margin-top: 24px; }.last-updated { display: block; margin-top: 10px; }.install-metrics { gap: 10px; }.install-card { min-height: 128px; padding: 15px 12px; gap: 9px; }.install-icon { width: 32px; height: 32px; font-size: 14px; }.install-card strong { font-size: 21px; }.install-card small { display: none; }.data-placeholder-list { display: block; }.data-placeholder-list span { display: flex; margin-bottom: 11px; }.details-empty { padding-top: 70px; } }

/* Public statistics link */
.public-stat-page { min-height: 100vh; background: #f4f7fb; color: var(--text); }.public-stat-main { width: min(760px, calc(100% - 40px)); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; padding: 38px 0 28px; }.public-stat-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }.public-stat-brand .brand-mark { width: 25px; height: 25px; }.public-stat-brand strong { font-size: 15px; letter-spacing: .2px; }.public-stat-card { background: #fff; border: 1px solid #e5ebf2; border-radius: 8px; margin: 28px 0 0; box-shadow: 0 8px 28px rgba(38,61,88,.06); overflow: hidden; }.public-stat-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 30px 32px 25px; border-bottom: 1px solid #edf0f4; }.public-stat-heading .eyebrow { margin-bottom: 11px; color: var(--blue); font-size: 9px; }.public-stat-heading h1 { color: var(--ink); margin: 0; font-size: 24px; font-weight: 650; }.public-stat-heading p:last-child { color: #9da9b7; margin: 8px 0 0; font-size: 12px; }.public-live { color: #68809f; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 11px; padding-top: 3px; }.public-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(25,179,123,.12); }.public-install-grid, .public-secondary-grid { display: grid; grid-template-columns: 1fr 1fr; }.public-install-grid article { min-height: 154px; padding: 31px 32px; display: flex; align-items: center; gap: 15px; }.public-install-grid article + article { border-left: 1px solid #edf0f4; }.public-package, .public-secondary-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; color: #fff; font-size: 17px; font-weight: 700; }.package-a { background: #397fe5; }.package-b { background: #805ad5; }.public-install-grid p, .public-secondary-grid p { color: #8491a1; margin: 0; font-size: 12px; }.public-install-grid strong, .public-secondary-grid strong { color: var(--ink); display: block; font-size: 29px; line-height: 1.2; margin-top: 7px; }.public-install-grid small, .public-secondary-grid small { color: #acb5c0; display: block; margin-top: 4px; font-size: 10px; }.public-secondary-grid { border-top: 1px solid #edf0f4; }.public-secondary-grid article { align-items: center; display: flex; gap: 15px; min-height: 122px; padding: 24px 32px; }.public-secondary-grid article + article { border-left: 1px solid #edf0f4; }.public-secondary-icon { font-size: 14px; }.icon-not-installed { background: #d99045; }.icon-install-rate { background: #20a679; }.public-stat-footer { color: #a1acb8; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #edf0f4; padding: 14px 32px; font-size: 10px; }.public-refresh { align-items: center; color: #75869a; display: inline-flex; gap: 3px; }.public-refresh strong { color: #397fe5; font-size: 11px; }.public-detail-section { background: #fff; border: 1px solid #e5ebf2; border-radius: 8px; margin-top: 16px; box-shadow: 0 8px 28px rgba(38,61,88,.06); overflow: hidden; }.public-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 17px; border-bottom: 1px solid #edf0f4; }.public-detail-heading h2 { color: var(--ink); font-size: 15px; margin: 0; font-weight: 650; }.public-detail-heading p { color: #98a5b4; font-size: 11px; margin: 7px 0 0; }.public-detail-heading > span { color: #7d91a9; background: #f2f7ff; border: 1px solid #dceaff; border-radius: 4px; font-size: 10px; padding: 4px 7px; white-space: nowrap; }.public-detail-table-wrap { overflow-x: auto; }.public-detail-table { border-collapse: collapse; min-width: 560px; width: 100%; }.public-detail-table th { background: #fafbfc; color: #8d9aaa; font-size: 10px; font-weight: 500; height: 37px; padding: 0 16px; text-align: left; white-space: nowrap; }.public-detail-table td { border-bottom: 1px solid #eff2f5; color: #59697b; font-size: 11px; height: 52px; padding: 0 16px; white-space: nowrap; }.public-detail-table tbody tr:last-child td { border-bottom: 0; }.public-device-info { color: #506b89 !important; }.public-detail-time { color: #9aa6b3 !important; }.public-status { align-items: center; border-radius: 4px; display: inline-flex; font-size: 10px; line-height: 20px; padding: 0 7px; }.public-status.is-success { background: #eaf8f2; color: #168b62; }.public-status.is-pending { background: #f3f6f9; color: #8190a0; }.public-install-duration { color: #99a8b7; display: block; font-size: 10px; margin-top: 4px; }.public-detail-empty { color: #9da9b7 !important; height: 105px !important; text-align: center; }.public-not-found { background: #fff; border: 1px solid #e5ebf2; border-radius: 8px; text-align: center; padding: 82px 25px; margin: auto 0; }.public-not-found h1 { color: #596a7d; font-size: 17px; margin: 0; }.public-not-found p { color: #9ca8b6; font-size: 11px; line-height: 1.8; max-width: 340px; margin: 10px auto 0; }.public-stat-copyright { color: #aeb8c4; font-size: 10px; text-align: center; margin: 30px 0 0; }
@media (max-width: 560px) { .public-stat-main { width: min(100% - 28px, 760px); padding-top: 24px; }.public-stat-card { margin-top: 22px; }.public-stat-heading { padding: 25px 20px 20px; }.public-stat-heading h1 { font-size: 20px; }.public-live { display: none; }.public-install-grid article { min-height: 130px; padding: 23px 18px; gap: 11px; }.public-package { width: 35px; height: 35px; font-size: 14px; }.public-install-grid strong { font-size: 23px; }.public-stat-footer { display: block; padding: 13px 20px; line-height: 1.8; }.public-stat-footer span { display: block; }.public-detail-heading { padding: 19px 17px 15px; }.public-detail-heading h2 { font-size: 14px; }.public-detail-heading p { font-size: 10px; }.public-detail-table th, .public-detail-table td { padding-left: 13px; padding-right: 13px; }.public-not-found { padding: 65px 20px; } }
@media (max-width: 560px) { .public-secondary-grid article { gap: 9px; min-height: 112px; padding: 19px 13px; }.public-secondary-icon { flex: 0 0 32px; height: 32px; width: 32px; }.public-secondary-grid strong { font-size: 22px; }.public-secondary-grid small { line-height: 1.45; } }

.public-history-section { background: #fff; border: 1px solid #e5ebf2; border-radius: 8px; margin-top: 16px; box-shadow: 0 8px 28px rgba(38,61,88,.06); overflow: hidden; }.public-history-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 17px; border-bottom: 1px solid #edf0f4; }.public-history-heading h2 { color: var(--ink); font-size: 15px; margin: 0; font-weight: 650; }.public-history-heading p { color: #98a5b4; font-size: 11px; margin: 7px 0 0; }.public-history-heading > span { color: #7d91a9; background: #f2f7ff; border: 1px solid #dceaff; border-radius: 4px; font-size: 10px; padding: 4px 7px; white-space: nowrap; }.public-history-grid { display: grid; grid-template-columns: 1fr 1fr; }.public-history-grid article { align-items: center; display: flex; gap: 15px; min-height: 118px; padding: 24px 32px; }.public-history-grid article + article { border-left: 1px solid #edf0f4; }.public-history-icon { align-items: center; border-radius: 8px; color: #fff; display: flex; flex: 0 0 42px; font-size: 16px; font-weight: 700; height: 42px; justify-content: center; width: 42px; }.history-a { background: #397fe5; }.history-b { background: #805ad5; }.public-history-grid p { color: #8491a1; font-size: 12px; margin: 0; }.public-history-grid strong { color: var(--ink); display: block; font-size: 27px; line-height: 1.2; margin-top: 7px; }.public-seven-day-section { margin-bottom: 16px; }
@media (max-width: 560px) { .public-history-heading { padding: 19px 17px 15px; }.public-history-grid article { gap: 9px; min-height: 105px; padding: 19px 13px; }.public-history-icon { flex-basis: 32px; height: 32px; width: 32px; font-size: 13px; }.public-history-grid strong { font-size: 22px; }.public-history-grid p { font-size: 11px; } }

.public-status.is-cancelled { background: #fff7e6; color: #b98322; }

.public-detail-table td { height: auto; min-height: 52px; white-space: normal; }
.public-device-info { line-height: 1.6; padding-bottom: 9px !important; padding-top: 9px !important; }
.public-device-info span { display: block; }
.public-detail-extra[hidden] { display: none; }
.public-detail-actions { border-top: 1px solid #edf0f4; padding: 13px 16px; text-align: center; }
.public-detail-actions button { background: transparent; border: 0; color: #397fe5; cursor: pointer; font-size: 11px; line-height: 24px; padding: 0 8px; }
.public-detail-actions button:hover { color: #0c5bd8; text-decoration: underline; }

@media (max-width: 560px) {
    .public-detail-table { min-width: 0; table-layout: fixed; }
    .public-detail-table th, .public-detail-table td { padding-left: 8px; padding-right: 8px; white-space: normal; word-break: break-word; }
    .public-detail-table th:nth-child(1), .public-detail-table td:nth-child(1) { width: 25%; }
    .public-detail-table th:nth-child(2), .public-detail-table td:nth-child(2) { width: 51%; }
    .public-detail-table th:nth-child(3), .public-detail-table td:nth-child(3) { width: 24%; }
    .public-device-info { font-size: 10px; }
}
