:root {
  --bg: #eef2ee;
  --bg-soft: #f6f8f5;
  --surface: #ffffff;
  --surface-muted: #f7f9f7;
  --ink: #14231f;
  --ink-2: #334740;
  --muted: #73837d;
  --line: #e3e9e4;
  --line-strong: #d7dfd9;
  --brand: #0d8f6b;
  --brand-dark: #075944;
  --brand-soft: #e3f6ef;
  --brand-glow: #5ce0b5;
  --sidebar: #0b1f1a;
  --sidebar-2: #0f2b24;
  --danger: #c94d4d;
  --danger-soft: #fdecec;
  --warning: #b7791f;
  --warning-soft: #fcf3df;
  --info: #356fb5;
  --info-soft: #eaf1fb;
  --violet: #7656b8;
  --violet-soft: #f1ecfb;
  --shadow-sm: 0 1px 2px rgba(17, 39, 32, .04), 0 8px 24px rgba(17, 39, 32, .04);
  --shadow-lg: 0 24px 70px rgba(6, 32, 24, .18);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar-width: 256px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--font); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; }
svg { display: block; }
[hidden] { display: none !important; }
::selection { color: #fff; background: var(--brand); }
:focus-visible { outline: 3px solid rgba(13, 143, 107, .25); outline-offset: 2px; }

.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; color: #d8f7ed; background: var(--sidebar); }
.boot-screen p { margin: 0; color: #8eb5a8; font-size: 13px; letter-spacing: .08em; }
.boot-mark { display: flex; gap: 6px; align-items: flex-end; height: 28px; }
.boot-mark span { width: 7px; border-radius: 8px; background: var(--brand-glow); animation: boot-wave .9s ease-in-out infinite alternate; }
.boot-mark span:nth-child(1) { height: 12px; }
.boot-mark span:nth-child(2) { height: 24px; animation-delay: .18s; }
.boot-mark span:nth-child(3) { height: 17px; animation-delay: .36s; }
@keyframes boot-wave { to { height: 7px; opacity: .5; } }
.noscript { position: fixed; inset: 0; display: grid; place-content: center; padding: 30px; color: #fff; background: var(--sidebar); text-align: center; z-index: 999; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(460px, .9fr); background: #f2f5f1; }
.login-visual { position: relative; min-height: 720px; padding: 52px 62px; overflow: hidden; color: #fff; background: radial-gradient(circle at 78% 16%, rgba(70, 213, 167, .22), transparent 29%), radial-gradient(circle at 22% 85%, rgba(27, 124, 95, .34), transparent 35%), linear-gradient(145deg, #081914 0%, #0e2a22 54%, #0a211b 100%); display: flex; flex-direction: column; }
.login-visual::before { content: ""; position: absolute; width: 650px; height: 650px; right: -280px; bottom: -280px; border: 1px solid rgba(126, 234, 200, .15); border-radius: 50%; box-shadow: 0 0 0 80px rgba(126, 234, 200, .025), 0 0 0 160px rgba(126, 234, 200, .018); }
.login-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); }
.brand-lockup { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #06271e; background: var(--brand-glow); box-shadow: 0 8px 30px rgba(92, 224, 181, .24); }
.brand-mark svg { width: 25px; height: 25px; }
.brand-mark.brand-logo { display: block; padding: 0; background: #fff; border-radius: 50%; object-fit: cover; }
.brand-mark.brand-logo img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.brand-name { font-weight: 750; font-size: 18px; letter-spacing: .04em; }
.brand-sub { margin-top: 1px; color: #8eb5a8; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.login-message { position: relative; z-index: 2; max-width: 640px; margin: auto 0; padding: 70px 0; }
.login-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 8px 13px; color: #a8d9c9; border: 1px solid rgba(163, 230, 208, .2); border-radius: 999px; background: rgba(31, 94, 74, .25); font-size: 12px; letter-spacing: .07em; }
.login-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-glow); box-shadow: 0 0 0 5px rgba(92, 224, 181, .11); }
.login-message h1 { margin: 0; max-width: 620px; font-size: clamp(38px, 4.3vw, 65px); line-height: 1.12; letter-spacing: -.045em; font-weight: 760; }
.login-message h1 em { color: var(--brand-glow); font-style: normal; }
.login-message p { max-width: 500px; margin: 26px 0 0; color: #9bbdb2; font-size: 15px; line-height: 1.9; }
.login-route { position: relative; z-index: 2; width: min(530px, 80%); height: 115px; margin-top: 44px; }
.login-route svg { width: 100%; height: 100%; overflow: visible; }
.login-route .route-line { fill: none; stroke: rgba(92, 224, 181, .62); stroke-width: 2; stroke-dasharray: 6 9; }
.login-route .route-dot { fill: var(--brand-glow); filter: drop-shadow(0 0 10px rgba(92,224,181,.8)); }
.login-route text { fill: #8ab7a8; font-size: 11px; letter-spacing: .05em; }
.login-foot { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; color: #719a8d; font-size: 12px; }
.login-foot .sep { width: 3px; height: 3px; border-radius: 50%; background: #52776b; }
.login-panel { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 44px; background: radial-gradient(circle at 100% 0, #e1efe8, transparent 33%), #f3f6f2; }
.login-card { width: min(100%, 410px); }
.login-mobile-brand { display: none; margin-bottom: 34px; align-items: center; gap: 10px; color: var(--ink); }
.login-mobile-brand .brand-mark { width: 38px; height: 38px; }
.login-card h2 { margin: 0; font-size: 31px; line-height: 1.25; letter-spacing: -.03em; font-weight: 740; }
.login-card > p { margin: 11px 0 30px; color: var(--muted); font-size: 13px; }
.login-alert { margin: 0 0 20px; padding: 11px 13px; border: 1px solid #f2d2d2; border-radius: 10px; color: #9c3e3e; background: #fff3f3; font-size: 13px; }
.login-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > label, .field-label { color: var(--ink-2); font-size: 12px; font-weight: 650; letter-spacing: .015em; }
.field-hint { color: var(--muted); font-size: 11px; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; top: 50%; left: 14px; width: 18px; height: 18px; color: #90a09a; transform: translateY(-50%); pointer-events: none; }
.input-wrap > .btn-icon { position: absolute; top: 50%; right: 7px; width: 34px; height: 34px; transform: translateY(-50%); }
.input-wrap > input { padding-left: 43px; }
.input-wrap > input.has-action { padding-right: 48px; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.input, .select { height: 44px; padding: 0 13px; }
.textarea { min-height: 108px; padding: 12px 13px; resize: vertical; line-height: 1.7; }
.input::placeholder, .textarea::placeholder { color: #a8b4af; }
.input:hover, .select:hover, .textarea:hover { border-color: #bdcbc3; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px rgba(13, 143, 107, .09); background: #fff; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2373837d' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.login-submit { height: 48px; margin-top: 4px; font-size: 14px; }
.login-security { display: flex; align-items: center; gap: 9px; margin-top: 24px; color: var(--muted); font-size: 11px; }
.login-security svg { width: 16px; height: 16px; color: var(--brand); flex: 0 0 auto; }
.login-version { margin-top: 52px; color: #9aa8a2; font-size: 11px; letter-spacing: .05em; }

.shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; color: #d9e9e3; background: linear-gradient(165deg, var(--sidebar-2), var(--sidebar) 58%); box-shadow: inset -1px 0 rgba(255,255,255,.04); transition: transform .24s ease; }
.sidebar::before { content: ""; position: absolute; width: 260px; height: 260px; top: -150px; right: -120px; border-radius: 50%; background: rgba(59, 199, 153, .09); filter: blur(4px); pointer-events: none; }
.sidebar-brand { position: relative; display: flex; align-items: center; gap: 11px; height: 82px; padding: 0 24px; border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar-brand .brand-mark { width: 36px; height: 36px; border-radius: 11px; box-shadow: none; }
.sidebar-brand .brand-mark svg { width: 22px; height: 22px; }
.sidebar-brand .brand-name { font-size: 15px; color: #f0faf6; }
.sidebar-brand .brand-sub { color: #6f998b; font-size: 9px; }
.sidebar-nav { position: relative; flex: 1; overflow-y: auto; padding: 22px 13px 16px; scrollbar-width: thin; scrollbar-color: #31554a transparent; }
.nav-section { margin: 0 12px 9px; color: #557d70; font-size: 10px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
.nav-section:not(:first-child) { margin-top: 25px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 11px; min-height: 43px; margin: 2px 0; padding: 0 12px; border-radius: 10px; color: #9eb9b0; font-size: 13px; font-weight: 520; transition: color .15s, background .15s; }
.nav-link:hover { color: #e6f4ef; background: rgba(255,255,255,.045); }
.nav-link.is-active { color: #fff; background: rgba(52, 193, 146, .14); }
.nav-link.is-active::before { content: ""; position: absolute; left: -13px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 4px 4px 0; background: var(--brand-glow); }
.nav-link svg { width: 18px; height: 18px; color: #769d90; transition: color .15s; }
.nav-link.is-active svg, .nav-link:hover svg { color: inherit; }
.nav-badge { margin-left: auto; min-width: 21px; height: 20px; display: grid; place-items: center; padding: 0 6px; border-radius: 999px; color: #08271e; background: var(--brand-glow); font-size: 10px; font-weight: 750; }
.sidebar-user { position: relative; margin: 12px; padding: 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 13px; background: rgba(255,255,255,.035); }
.sidebar-user-row { display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; color: #083229; background: linear-gradient(135deg, #7aeec9, #3bbd94); font-size: 12px; font-weight: 750; }
.sidebar-user-copy { min-width: 0; flex: 1; }
.sidebar-user-name { overflow: hidden; color: #e8f4f0; font-size: 12px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-role { color: #6e9789; font-size: 10px; }
.sidebar-logout { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #73998c; background: transparent; cursor: pointer; }
.sidebar-logout:hover { color: #fff; background: rgba(255,255,255,.07); }
.sidebar-logout svg { width: 16px; height: 16px; }
.sidebar-version { padding: 0 25px 20px; color: #4e7568; font-size: 9px; letter-spacing: .08em; }
.sidebar-overlay { display: none; }

.main { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; z-index: 30; top: 0; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 30px; border-bottom: 1px solid rgba(218, 226, 220, .8); background: rgba(246, 248, 245, .88); backdrop-filter: blur(16px); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 13px; }
.crumb { display: flex; align-items: center; gap: 8px; color: #8a9892; font-size: 12px; }
.crumb svg { width: 13px; height: 13px; }
.crumb strong { color: var(--ink-2); font-weight: 650; }
.topbar-title { display: none; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; color: #5f756d; background: var(--surface); cursor: pointer; transition: .15s; }
.icon-btn:hover { color: var(--brand-dark); border-color: #cad7cf; background: #fbfcfb; }
.icon-btn svg { width: 18px; height: 18px; }
.topbar-clock { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.topbar-clock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #35bb89; box-shadow: 0 0 0 4px rgba(53,187,137,.11); }
.system-metrics { display: flex; align-items: center; gap: 6px; min-width: 0; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.system-metrics::-webkit-scrollbar { display: none; }
.system-metric { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px; border: 1px solid #dce7e1; border-radius: 999px; color: #355b4d; background: rgba(255,255,255,.76); font-size: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; transition: opacity .2s; }
.system-metric em { color: #83958d; font-size: 8px; font-style: normal; font-weight: 650; letter-spacing: .04em; }
.system-metric strong { color: #1b5d48; font-size: 10px; font-weight: 730; }
.system-metrics.is-stale { opacity: .55; }
.system-metrics.is-stale .system-metric { border-color: #eadfcf; background: #fffaf3; }
.system-metrics.is-stale .system-metric strong { color: #a2763f; }
.menu-toggle { display: none; }
.user-chip { display: flex; align-items: center; gap: 9px; height: 42px; padding: 4px 10px 4px 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.user-chip .avatar { width: 30px; height: 30px; border-radius: 8px; font-size: 10px; }
.user-chip-name { max-width: 110px; overflow: hidden; color: var(--ink-2); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.page-host { padding: 27px 30px 42px; }
.page-view { animation: page-in .28s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-heading h1 { margin: 4px 0 4px; font-size: 26px; line-height: 1.25; letter-spacing: -.025em; font-weight: 730; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 15px; height: 1px; background: var(--brand); }
.page-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.dashboard-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 83px; margin-bottom: 22px; }
.dashboard-hero h1 { margin: 5px 0 4px; font-size: 27px; letter-spacing: -.03em; font-weight: 730; }
.dashboard-hero p { margin: 0; color: var(--muted); font-size: 12px; }
.hero-status { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid #dbe9df; border-radius: 999px; color: #3e6658; background: rgba(255,255,255,.6); font-size: 11px; white-space: nowrap; }
.hero-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2cb27f; box-shadow: 0 0 0 5px rgba(44,178,127,.1); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.metric-card { position: relative; overflow: hidden; padding: 18px 19px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.metric-card::after { content: ""; position: absolute; width: 110px; height: 110px; right: -52px; top: -58px; border-radius: 50%; background: radial-gradient(circle, rgba(13,143,107,.09), transparent 70%); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.metric-label { color: var(--muted); font-size: 11px; font-weight: 550; }
.metric-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--brand); background: var(--brand-soft); }
.metric-icon svg { width: 16px; height: 16px; }
.metric-icon.tone-warn { color: var(--warning); background: var(--warning-soft); }
.metric-icon.tone-info { color: var(--info); background: var(--info-soft); }
.metric-icon.tone-violet { color: var(--violet); background: var(--violet-soft); }
.metric-value { margin: 12px 0 2px; font-size: 31px; line-height: 1.1; letter-spacing: -.04em; font-weight: 735; font-variant-numeric: tabular-nums; }
.metric-foot { display: flex; align-items: center; gap: 6px; min-height: 18px; color: #899791; font-size: 10px; }
.metric-foot strong { color: var(--brand); font-weight: 650; }
.metric-foot .up { color: #289a70; }
.mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 11px; }
.mini-metric { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.62); }
.mini-metric span { color: var(--muted); font-size: 10px; }
.mini-metric strong { color: var(--ink-2); font-size: 14px; font-weight: 680; font-variant-numeric: tabular-nums; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr); gap: 16px; margin-top: 16px; }
.dashboard-column { display: grid; gap: 16px; align-content: start; min-width: 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 15px 19px; border-bottom: 1px solid #edf1ed; }
.card-title { margin: 0; font-size: 13px; font-weight: 680; }
.card-subtitle { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.card-body { padding: 19px; }
.card-action { border: 0; color: var(--brand); background: transparent; font-size: 11px; font-weight: 650; cursor: pointer; }
.card-action:hover { color: var(--brand-dark); }
.trend-summary { display: flex; align-items: baseline; gap: 7px; color: var(--muted); font-size: 10px; }
.trend-summary strong { color: var(--ink); font-size: 18px; font-weight: 720; font-variant-numeric: tabular-nums; }
.chart-wrap { padding: 19px 19px 15px; }
.bar-chart { height: 195px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; border-bottom: 1px solid var(--line); padding: 18px 4px 0; }
.bar-col { min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar-value { color: #6d7f78; font-size: 9px; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .15s; }
.bar-col:hover .bar-value { opacity: 1; }
.bar-track { width: min(31px, 80%); height: 138px; display: flex; align-items: flex-end; border-radius: 7px 7px 2px 2px; background: #f1f5f2; }
.bar-fill { width: 100%; min-height: 3px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, #52d6aa, #0d936c); transition: height .35s cubic-bezier(.2,.8,.2,1); }
.bar-col.is-today .bar-fill { background: linear-gradient(180deg, #7ee8c9, #10a47a); box-shadow: 0 0 0 3px rgba(13,143,107,.07); }
.chart-labels { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding: 9px 4px 0; }
.chart-label { color: #8b9993; font-size: 9px; text-align: center; white-space: nowrap; }
.chart-label.is-today { color: var(--brand); font-weight: 650; }
.status-body { padding: 18px 19px 20px; }
.status-stack { height: 9px; display: flex; gap: 3px; overflow: hidden; border-radius: 999px; background: #edf1ee; }
.status-segment { min-width: 3px; height: 100%; border-radius: 999px; }
.status-list { display: grid; gap: 11px; margin-top: 19px; }
.status-row { display: flex; align-items: center; gap: 9px; font-size: 11px; }
.status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; }
.status-name { flex: 1; color: #60736b; }
.status-count { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.status-percent { width: 35px; color: #9ba7a2; text-align: right; font-size: 9px; font-variant-numeric: tabular-nums; }
.quick-links { display: grid; gap: 2px; padding: 8px; }
.quick-link { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 10px; transition: background .15s; }
.quick-link:hover { background: var(--surface-muted); }
.quick-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: var(--brand); background: var(--brand-soft); }
.quick-icon svg { width: 16px; height: 16px; }
.quick-copy { min-width: 0; flex: 1; }
.quick-copy strong { display: block; color: var(--ink-2); font-size: 11px; font-weight: 620; }
.quick-copy span { display: block; color: var(--muted); font-size: 9px; }
.quick-arrow { width: 15px; height: 15px; color: #a6b2ad; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search-box { position: relative; width: min(270px, 32vw); min-width: 190px; }
.search-box svg { position: absolute; z-index: 1; top: 50%; left: 12px; width: 16px; height: 16px; color: #92a19b; transform: translateY(-50%); }
.search-box .input { height: 38px; padding-left: 37px; font-size: 12px; border-radius: 9px; }
.filter-select { width: auto; min-width: 116px; height: 38px; border-radius: 9px; font-size: 11px; }
.segmented { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #f7f9f7; }
.segment { height: 30px; padding: 0 11px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 10px; cursor: pointer; white-space: nowrap; }
.segment:hover { color: var(--ink-2); }
.segment.is-active { color: var(--brand-dark); background: #fff; box-shadow: 0 1px 4px rgba(16,48,36,.09); font-weight: 650; }
.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data-table th { height: 41px; padding: 0 15px; color: #87958f; background: #f8faf8; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 650; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.data-table td { height: 59px; padding: 10px 15px; border-bottom: 1px solid #eef2ee; color: var(--ink-2); font-size: 11px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .13s; }
.data-table tbody tr:hover { background: #fbfcfb; }
.data-table .cell-main { color: var(--ink); font-weight: 610; }
.data-table .cell-sub { display: block; margin-top: 2px; color: #96a39e; font-size: 9px; font-weight: 400; }
.cell-route { max-width: 285px; white-space: normal; }
.route-line-mini { display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
.route-pin-stack { display: grid; gap: 10px; margin-top: 5px; }
.route-pin-stack .pin { width: 6px; height: 6px; border-radius: 50%; }
.pin-start { background: #35b78b; }
.pin-end { border: 1.5px solid #7e8e87; }
.route-copy { min-width: 0; }
.route-copy div { overflow: hidden; max-width: 250px; text-overflow: ellipsis; white-space: nowrap; }
.route-copy div + div { margin-top: 4px; color: #84928c; font-size: 10px; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-variant-numeric: tabular-nums; }
.price { color: var(--ink); font-weight: 680; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 3px 8px; border-radius: 6px; font-size: 9px; font-weight: 620; line-height: 1.3; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.tone-green { color: #087b58; background: #e6f6ef; }
.badge.tone-blue { color: #356fb5; background: #ebf2fc; }
.badge.tone-amber { color: #9e6819; background: #fcf2de; }
.badge.tone-red { color: #b34242; background: #fcecec; }
.badge.tone-gray { color: #697871; background: #eff2f0; }
.badge.tone-violet { color: #7151ab; background: #f1ecfb; }
.badge.no-dot::before { display: none; }
.badge.tone-neutral { color: #6d7d76; background: #f1f4f2; }
.row-actions { display: flex; align-items: center; gap: 5px; }
.link-btn { padding: 5px 7px; border: 0; border-radius: 6px; color: var(--brand); background: transparent; font-size: 10px; font-weight: 620; cursor: pointer; }
.link-btn:hover { background: var(--brand-soft); }
.link-btn.danger { color: var(--danger); }
.link-btn.danger:hover { background: var(--danger-soft); }
.link-btn.muted { color: var(--muted); }
.link-btn:disabled { opacity: .4; cursor: not-allowed; }
.pager { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 10px 15px; border-top: 1px solid #edf1ed; }
.pager-info { color: #929f99; font-size: 10px; }
.pager-actions { display: flex; align-items: center; gap: 5px; }
.pager-btn { min-width: 29px; height: 29px; display: grid; place-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #fff; font-size: 10px; cursor: pointer; }
.pager-btn:hover:not(:disabled) { color: var(--ink-2); border-color: #cbd6d0; }
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }
.pager-btn.is-active { color: #fff; border-color: var(--brand); background: var(--brand); }
.stats-strip { display: flex; align-items: center; gap: 22px; margin-bottom: 16px; padding: 13px 17px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.6); }
.strip-item { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.strip-item strong { color: var(--ink); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.strip-divider { width: 1px; height: 17px; background: var(--line); }

.empty-state { display: grid; justify-items: center; padding: 55px 24px; text-align: center; }
.empty-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 15px; color: #7c9a8e; background: #f1f6f3; }
.empty-icon svg { width: 23px; height: 23px; }
.empty-state h3 { margin: 0 0 4px; font-size: 13px; font-weight: 650; }
.empty-state p { max-width: 330px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.empty-state .btn { margin-top: 16px; }
.loading-block { display: grid; gap: 12px; padding: 30px; }
.skeleton { height: 14px; border-radius: 7px; background: linear-gradient(90deg, #f0f3f0 25%, #f8faf8 50%, #f0f3f0 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.skeleton.w-40 { width: 40%; }
.skeleton.w-70 { width: 70%; }
.skeleton.h-32 { height: 32px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--ink-2); background: #fff; font-size: 11px; font-weight: 620; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s, transform .1s; white-space: nowrap; }
.btn:hover { border-color: #c2d0c7; background: #fbfcfb; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 15px; height: 15px; }
.btn-primary { color: #fff; border-color: var(--brand); background: var(--brand); box-shadow: 0 6px 14px rgba(13,143,107,.15); }
.btn-primary:hover { color: #fff; border-color: #087959; background: #087959; }
.btn-danger { color: #fff; border-color: var(--danger); background: var(--danger); }
.btn-danger:hover { color: #fff; border-color: #b23e3e; background: #b23e3e; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { border-color: var(--line); background: #fff; }
.btn-sm { height: 30px; padding: 0 10px; border-radius: 7px; font-size: 10px; }
.btn-wide { width: 100%; }
.btn .spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.35); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; }
.btn:not(.btn-primary):not(.btn-danger) .spinner { border-color: rgba(20,35,31,.16); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

.toast-root { position: fixed; z-index: 200; top: 18px; left: 50%; display: grid; gap: 8px; width: min(92vw, 390px); transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid #dfe7e1; border-radius: 11px; color: var(--ink-2); background: rgba(255,255,255,.97); box-shadow: 0 14px 40px rgba(9,35,26,.14); font-size: 11px; pointer-events: auto; animation: toast-in .22s ease both; backdrop-filter: blur(10px); }
.toast svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }
.toast.success svg { color: var(--brand); }
.toast.error svg { color: var(--danger); }
.toast.info svg { color: var(--info); }
.toast.leaving { animation: toast-out .18s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-7px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-4px) scale(.98); } }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: flex; align-items: center; justify-content: center; padding: 28px; background: rgba(5, 23, 17, .48); backdrop-filter: blur(5px); animation: fade-in .16s ease both; }
.modal-backdrop + .modal-backdrop { z-index: 101; }
.modal { width: min(100%, 620px); max-height: calc(100vh - 56px); display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.55); border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); animation: modal-in .22s cubic-bezier(.2,.8,.2,1) both; }
.modal.modal-wide { width: min(100%, 920px); }
.modal.modal-preview { width: min(100%, 1100px); background: #0a1511; border-color: rgba(255,255,255,.1); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 22px 16px; border-bottom: 1px solid #edf1ed; }
.modal-title { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 700; letter-spacing: -.015em; }
.modal-subtitle { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.modal-close { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border: 0; border-radius: 8px; color: #80918a; background: #f4f7f4; cursor: pointer; }
.modal-close:hover { color: var(--ink); background: #eaf0eb; }
.modal-close svg { width: 16px; height: 16px; }
.modal-body { overflow-y: auto; padding: 20px 22px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid #edf1ed; background: #fbfcfb; border-radius: 0 0 18px 18px; }
.modal-preview .modal-head { color: #eaf6f2; border-color: rgba(255,255,255,.09); }
.modal-preview .modal-subtitle { color: #799a8e; }
.modal-preview .modal-close { color: #b4cec5; background: rgba(255,255,255,.06); }
.modal-preview .modal-body { padding: 12px; }
.modal-preview .modal-footer { border-color: rgba(255,255,255,.09); background: #0a1511; color: #b2c8c0; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.preview-stage { min-height: 300px; display: grid; place-items: center; background: #06100d; border-radius: 10px; overflow: hidden; }
.preview-stage img, .preview-stage video { max-height: calc(100vh - 190px); object-fit: contain; }
.preview-loading { display: grid; justify-items: center; gap: 10px; color: #7fa295; font-size: 11px; }

.detail-summary { display: flex; align-items: center; gap: 15px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-muted); }
.detail-avatar { width: 45px; height: 45px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: var(--brand-dark); background: var(--brand-soft); font-size: 15px; font-weight: 720; }
.detail-main { min-width: 0; flex: 1; }
.detail-main h3 { margin: 0 0 3px; font-size: 15px; font-weight: 690; }
.detail-main p { margin: 0; color: var(--muted); font-size: 10px; }
.detail-price { text-align: right; }
.detail-price strong { display: block; font-size: 20px; font-weight: 720; font-variant-numeric: tabular-nums; }
.detail-price span { color: var(--muted); font-size: 9px; }
.detail-section { margin-top: 22px; }
.detail-section:first-child { margin-top: 0; }
.section-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--ink-2); font-size: 11px; font-weight: 680; }
.section-title::before { content: ""; width: 3px; height: 12px; border-radius: 3px; background: var(--brand); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; border-top: 1px solid #edf1ed; }
.detail-pair { padding: 10px 0; border-bottom: 1px solid #f0f3f0; min-width: 0; }
.detail-pair.full { grid-column: 1 / -1; }
.detail-pair dt { margin: 0 0 2px; color: #8b9993; font-size: 9px; }
.detail-pair dd { margin: 0; color: var(--ink-2); font-size: 11px; line-height: 1.55; word-break: break-word; }
.signature-compare { display: grid; grid-template-columns: repeat(2, minmax(118px, 1fr)); gap: 10px; min-width: 260px; }
.signature-compare-card { overflow: hidden; border: 1px solid #e3ebe6; border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.signature-compare-card:hover { border-color: #9ed2bf; box-shadow: 0 4px 14px rgba(31, 75, 58, .08); }
.signature-compare-card.is-empty { cursor: default; }
.signature-compare-card.is-empty:hover { border-color: #e3ebe6; box-shadow: none; }
.signature-compare-label { padding: 6px 9px; color: #7d8d86; background: #f7faf8; border-bottom: 1px solid #edf2ef; font-size: 9px; font-weight: 650; }
.signature-compare-canvas { position: relative; height: 74px; display: grid; place-items: center; overflow: hidden; background: #fcfdfc; }
.signature-compare-canvas img { width: 100%; height: 100%; padding: 5px; object-fit: contain; }
.signature-compare-zoom { position: absolute; right: 5px; bottom: 4px; padding: 2px 5px; border-radius: 4px; color: #fff; background: rgba(10, 25, 19, .62); font-size: 8px; opacity: 0; transition: opacity .15s; }
.signature-compare-card:hover .signature-compare-zoom { opacity: 1; }
.signature-compare-empty { height: 74px; display: grid; place-items: center; color: #a3aea9; font-size: 9px; background: #fcfdfc; }
.signature-compare.is-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.signature-compare.is-detail .signature-compare-canvas { height: 150px; }
.signature-compare.is-detail .signature-compare-empty { height: 150px; }
.signature-compare.is-detail .signature-compare-label { padding: 8px 12px; font-size: 10px; }
.route-detail { display: flex; align-items: stretch; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb; }
.route-rail { display: flex; flex-direction: column; align-items: center; width: 8px; padding-top: 4px; }
.route-rail .dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; border: 2px solid #7f9088; background: #fff; }
.route-rail .dot.start { border-color: var(--brand); background: var(--brand); }
.route-rail .line { width: 1px; flex: 1; margin: 4px 0; background: repeating-linear-gradient(to bottom, #c9d4ce 0 3px, transparent 3px 6px); }
.route-copy-detail { flex: 1; min-width: 0; display: grid; gap: 12px; }
.route-copy-detail strong { display: block; margin-bottom: 2px; font-size: 11px; }
.route-copy-detail span { display: block; color: var(--muted); font-size: 9px; }
.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; display: flex; gap: 12px; min-height: 37px; padding-left: 4px; }
.timeline-item::before { content: ""; position: absolute; top: 13px; bottom: -2px; left: 8px; width: 1px; background: #e3eae5; }
.timeline-item:last-child::before { display: none; }
.timeline-dot { position: relative; z-index: 1; width: 9px; height: 9px; margin-top: 4px; flex: 0 0 auto; border: 2px solid #fff; border-radius: 50%; background: #b9c6bf; box-shadow: 0 0 0 1px #d8e2dc; }
.timeline-item.is-done .timeline-dot { background: var(--brand); box-shadow: 0 0 0 1px #7cd8bd; }
.timeline-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; width: 100%; min-width: 0; }
.timeline-copy strong { color: var(--ink-2); font-size: 10px; font-weight: 570; }
.timeline-copy span { color: #93a09a; font-size: 9px; white-space: nowrap; }
.inline-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 10px; padding: 10px 12px; border-radius: 9px; color: #746a55; background: #fbf6e9; font-size: 10px; line-height: 1.65; }
.inline-note svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; }
.subtle-block { padding: 12px 14px; border: 1px solid #edf1ed; border-radius: 10px; background: #fbfcfb; color: var(--muted); font-size: 10px; }

.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.media-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.media-preview { position: relative; height: 92px; display: grid; place-items: center; color: #769087; background: linear-gradient(135deg, #eef4f0, #f8faf8); cursor: pointer; }
.media-preview:hover { color: var(--brand); background: #eaf5f0; }
.media-preview svg { width: 25px; height: 25px; }
.media-preview .media-tag { position: absolute; top: 6px; right: 6px; padding: 2px 5px; border-radius: 4px; color: #54766a; background: rgba(255,255,255,.85); font-size: 8px; }
.media-meta { padding: 7px 8px; }
.media-meta strong { display: block; color: var(--ink-2); font-size: 9px; font-weight: 600; }
.media-meta span { display: block; overflow: hidden; color: #96a49e; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.stage-block { padding: 13px; border: 1px solid var(--line); border-radius: 12px; }
.stage-block + .stage-block { margin-top: 10px; }
.stage-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.stage-head strong { font-size: 11px; }
.stage-head span { color: var(--muted); font-size: 9px; }
.stage-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 11px; padding-bottom: 10px; border-bottom: 1px solid #eff3ef; color: var(--muted); font-size: 9px; }
.stage-facts b { color: var(--ink-2); font-weight: 600; }
.stage-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.track-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb; }
.track-canvas { height: 155px; overflow: hidden; border-radius: 8px; background: radial-gradient(circle at 50% 50%, #f7fbf8, #edf4ef); }
.track-canvas svg { width: 100%; height: 100%; }
.track-summary { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 11px; color: var(--muted); font-size: 9px; }
.track-summary b { color: var(--ink-2); font-weight: 620; }

.media-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.image-field { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #f7faf8; }
.image-field-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; color: var(--muted); font-size: 9px; border-bottom: 1px solid #edf1ed; }
.image-stage { min-height: 170px; display: grid; place-items: center; overflow: hidden; background: #edf3ef; }
.image-stage img { width: 100%; max-height: 260px; object-fit: contain; cursor: zoom-in; }
.image-stage .empty-icon { width: 40px; height: 40px; margin: 0; background: rgba(255,255,255,.65); }
.image-error { padding: 18px; color: var(--danger); font-size: 9px; text-align: center; }
.review-reason { margin-top: 12px; padding: 11px 12px; border-left: 3px solid #e2b155; border-radius: 0 8px 8px 0; color: #7e6537; background: #fdf7e9; font-size: 10px; line-height: 1.65; }

.split-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(290px, .7fr); gap: 16px; align-items: start; }
.form-card .card-body { padding: 18px 19px; }
.form-grid { display: grid; gap: 15px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 3px; }
.role-choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.choice-card { position: relative; display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,143,107,.07); background: #f8fdfb; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; color: var(--brand); background: var(--brand-soft); }
.choice-icon svg { width: 15px; height: 15px; }
.choice-card strong { display: block; font-size: 10px; font-weight: 620; }
.choice-card span { display: block; color: var(--muted); font-size: 8px; }
.announcement-list { display: grid; gap: 10px; }
.announcement-card { padding: 16px 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.announcement-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.announcement-head h3 { margin: 0; font-size: 12px; font-weight: 680; }
.announcement-body { margin: 8px 0 11px; color: #62746c; font-size: 10px; line-height: 1.75; white-space: pre-wrap; }
.announcement-meta { display: flex; align-items: center; gap: 11px; color: #94a19b; font-size: 9px; }
.target-pill { padding: 3px 7px; border-radius: 5px; color: #6b5e8d; background: #f2eefb; font-size: 8px; }
.ticket-priority { font-size: 9px; font-weight: 650; }
.ticket-priority.p0 { color: #9b8a6b; }
.ticket-priority.p1 { color: #a3691c; }
.ticket-priority.p2 { color: #b34040; }
.ticket-detail-body { margin-top: 2px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-2); background: #fbfcfb; font-size: 11px; line-height: 1.8; white-space: pre-wrap; }
.ticket-log { position: relative; padding-left: 18px; }
.ticket-log::before { content: ""; position: absolute; left: 3px; top: 7px; bottom: 7px; width: 1px; background: #e1e9e3; }
.log-item { position: relative; padding: 0 0 13px; }
.log-item:last-child { padding-bottom: 0; }
.log-item::before { content: ""; position: absolute; top: 5px; left: -18px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: #78a696; box-shadow: 0 0 0 1px #d8e5df; }
.log-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.log-line strong { font-size: 10px; font-weight: 620; }
.log-line span { color: #94a29c; font-size: 8px; white-space: nowrap; }
.log-note { margin: 3px 0 0; color: #7c8c85; font-size: 9px; }
.ticket-action-box { margin-top: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfb; }
.ticket-action-box .textarea { min-height: 72px; font-size: 11px; background: #fff; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.action-note { color: var(--muted); font-size: 9px; }

.track-entry { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(135deg, #f5fbf8, #fff); }
.track-entry-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: var(--brand-dark); background: var(--brand-soft); }
.track-entry-icon svg { width: 20px; height: 20px; }
.track-entry-copy { min-width: 0; flex: 1; }
.track-entry-copy strong { display: block; font-size: 12px; font-weight: 680; }
.track-entry-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.track-entry .btn { flex: 0 0 auto; }
.track-replay { min-width: 0; }
.track-headline { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.track-headline-copy { min-width: 0; }
.track-kicker { display: inline-block; margin-bottom: 3px; color: var(--brand); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.track-headline h3 { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.45; font-weight: 700; word-break: break-word; }
.track-headline p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.track-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.track-stat { min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-muted); }
.track-stat span { display: block; color: #8b9993; font-size: 9px; }
.track-stat strong { display: block; overflow: hidden; margin-top: 3px; color: var(--ink); font-size: 15px; font-weight: 720; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.track-map-overlay { position: absolute; top: 10px; right: 10px; z-index: 800; display: flex; flex-direction: column; width: min(342px, calc(100% - 74px)); max-height: 40%; padding: 9px 10px; border: 1px solid rgba(22,56,42,.13); border-radius: 10px; background: rgba(255,255,255,.94); box-shadow: 0 8px 22px rgba(20,50,40,.16); backdrop-filter: blur(6px); }
.track-map-overlay-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.track-map-overlay-title { min-width: 0; }
.track-map-overlay-title strong { display: block; color: var(--ink-2); font-size: 11px; font-weight: 680; }
.track-map-overlay-title span { display: block; margin-top: 1px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.track-map-signal-badge { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 999px; color: #9d3535; background: #fcecec; font-size: 9px; font-weight: 650; white-space: nowrap; }
.track-map-signal-badge i { width: 6px; height: 6px; border-radius: 50%; background: #d84a4a; box-shadow: 0 0 0 3px rgba(216,74,74,.14); }
.track-map-signal-badge strong { color: #8e2c2c; font-weight: 750; }
.track-road-groups { display: grid; gap: 5px; margin-top: 7px; padding-right: 2px; overflow-y: auto; overscroll-behavior: contain; }
.track-road-group { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.track-road-type { flex: 0 0 auto; min-width: 40px; padding: 2px 6px; border-radius: 5px; text-align: center; font-size: 8px; font-weight: 680; line-height: 1.45; }
.track-road-type.is-highway { color: #16704a; background: #e7f6ee; }
.track-road-type.is-expressway { color: #0f6a70; background: #e6f4f4; }
.track-road-type.is-national { color: #a43d32; background: #fbece9; }
.track-road-type.is-provincial { color: #8c6517; background: #fbf2dd; }
.track-road-type.is-county { color: #305c9d; background: #eaf1fb; }
.track-road-type.is-township { color: #6b4a90; background: #f2ecf8; }
.track-road-type.is-village, .track-road-type.is-special { color: #6d5b45; background: #f4efe8; }
.track-road-type.is-city, .track-road-type.is-other { color: #52645c; background: #edf2ef; }
.track-road-list { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.track-road-chip { display: inline-flex; align-items: baseline; gap: 4px; max-width: 100%; padding: 2px 6px; border: 1px solid #e7ece8; border-radius: 5px; background: #fafcfb; }
.track-road-chip strong { overflow: hidden; color: #42554c; font-size: 8px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.track-road-chip em { flex: 0 0 auto; color: #95a29c; font-size: 8px; font-style: normal; font-variant-numeric: tabular-nums; }
.track-road-label-host { background: transparent !important; border: 0 !important; }
.track-road-label { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 4px; max-width: 230px; padding: 3px 8px; border: 1px solid #cfe0d7; border-radius: 999px; color: #315448; background: rgba(255,255,255,.97); box-shadow: 0 3px 10px rgba(18,48,36,.2); font-size: 10px; font-weight: 680; line-height: 1.35; white-space: nowrap; transform: translate(calc(-50% + var(--lx, 0px)), calc(-50% + var(--ly, 0px))); pointer-events: none; }
.track-road-label.is-hidden { visibility: hidden; opacity: 0; }
.track-road-label em { flex: 0 0 auto; padding: 1px 4px; border-radius: 4px; font-size: 8px; font-style: normal; font-weight: 720; }
.track-signal-marker { background: transparent !important; border: 0 !important; }
.track-signal-body { position: absolute; bottom: 1px; left: 50%; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; width: 18px; height: 24px; padding: 2px 3px; border: 2px solid #fff; border-radius: 5px; background: #26332e; box-shadow: 0 2px 8px rgba(16,37,29,.48); transform: translateX(-50%); }
.track-signal-body::after { content: ''; position: absolute; bottom: -5px; left: 50%; margin-left: -3px; border-top: 4px solid #26332e; border-right: 3px solid transparent; border-left: 3px solid transparent; }
.track-signal-body i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #58665f; }
.track-signal-body i.is-red { background: #ef5350; box-shadow: 0 0 5px rgba(239,83,80,.9); }
.track-signal-body i.is-amber { background: #e8b84b; }
.track-signal-body i.is-green { background: #59c985; }
.track-road-label-name { overflow: hidden; text-overflow: ellipsis; }
.track-road-label.is-highway { color: #146c46; border-color: #b9dfcb; background: rgba(240,251,245,.97); }
.track-road-label.is-highway em { color: #fff; background: #1d8a5c; }
.track-road-label.is-expressway { color: #0f6268; border-color: #b9dcdd; background: rgba(239,250,250,.97); }
.track-road-label.is-expressway em { color: #fff; background: #0f7c82; }
.track-road-label.is-national { color: #993e34; border-color: #ecc8c2; background: rgba(253,244,242,.97); }
.track-road-label.is-national em { color: #fff; background: #b44a3d; }
.track-road-label.is-provincial { color: #85631a; border-color: #ebd9af; background: rgba(254,249,237,.97); }
.track-road-label.is-provincial em { color: #fff; background: #b78621; }
.track-road-label.is-county { color: #305c9d; border-color: #c8d8ef; background: rgba(244,248,254,.97); }
.track-road-label.is-county em { color: #fff; background: #3f6eae; }
.track-road-label.is-township { color: #6b4a90; border-color: #d9cbea; background: rgba(249,245,253,.97); }
.track-road-label.is-township em { color: #fff; background: #7b56a3; }
.track-road-label.is-village, .track-road-label.is-special { color: #6d5b45; border-color: #e0d2c0; background: rgba(251,248,244,.97); }
.track-road-label.is-village em, .track-road-label.is-special em { color: #fff; background: #8a7255; }
.track-road-label.is-city, .track-road-label.is-other { color: #52645c; border-color: #d5dfd9; background: rgba(249,252,250,.97); }
.track-road-label.is-city em, .track-road-label.is-other em { color: #fff; background: #5d7268; }

.track-map-card { overflow: hidden; margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.track-map-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 11px 14px; border-bottom: 1px solid #edf1ed; }
.track-map-head strong { display: block; color: var(--ink-2); font-size: 11px; font-weight: 650; }
.track-map-head span { display: block; margin-top: 1px; color: var(--muted); font-size: 9px; }
.track-legend { display: flex; align-items: center; gap: 11px; color: #708079; font-size: 9px; white-space: nowrap; }
.track-legend span { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.track-legend i { width: 7px; height: 7px; border-radius: 50%; }
.track-legend .is-route, .track-legend .is-actual { width: 15px; height: 3px; border-radius: 2px; }
.track-legend .is-route { background: #0d8f6b; }
.track-legend .is-actual { background: repeating-linear-gradient(90deg, #f0a23c 0 4px, transparent 4px 7px); }
.track-legend .is-start { background: #0d8f6b; }
.track-legend .is-end { background: #43564e; }
.track-legend .is-current { background: #f0a23c; box-shadow: 0 0 0 3px rgba(240,162,60,.17); }
.track-map { position: relative; overflow: hidden; aspect-ratio: 2 / 1; min-height: 320px; background: #eef4f0; }
.track-map-leaflet { position: absolute; inset: 0; z-index: 1; }
.track-map .leaflet-container { width: 100%; height: 100%; background: #edf3ef; font-family: inherit; }
.track-map .leaflet-control-zoom a { width: 28px; height: 28px; line-height: 26px; color: #385046; border-color: rgba(23,52,40,.12); background: rgba(255,255,255,.94); font-size: 17px; }
.track-map .leaflet-control-zoom a:hover { color: var(--brand); background: #fff; }
.track-map .leaflet-control-attribution { color: #7b8c84; background: rgba(255,255,255,.82); font-size: 8px; }
.track-map .leaflet-control-attribution a { color: #567268; }
.track-map .leaflet-control-scale-line { color: #60756b; border-color: rgba(72,98,86,.72); background: rgba(255,255,255,.82); font-size: 8px; }
.track-map-loading { position: absolute; z-index: 900; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #647a70; background: rgba(245,250,247,.92); font-size: 10px; backdrop-filter: blur(3px); }
.track-map-loading[hidden] { display: none; }
.track-map-loading.is-warning { color: #8a6b2e; background: rgba(253,249,239,.9); }
.track-map-loading.is-error { color: #a74c4c; background: rgba(253,246,246,.94); }
.track-map-loading .spinner { width: 14px; height: 14px; border-width: 2px; }
.track-map-tooltip { padding: 3px 7px !important; border: 0 !important; border-radius: 6px !important; color: #fff !important; background: rgba(19,46,36,.82) !important; box-shadow: 0 2px 8px rgba(20,50,40,.18) !important; font-size: 8px !important; }
.track-map-tooltip::before { display: none !important; }
.track-live-marker { width: 30px !important; height: 30px !important; margin: 0 !important; border: 0 !important; background: transparent !important; }
.track-live-ring { position: absolute; inset: 0; border-radius: 50%; background: rgba(240,162,60,.22); border: 1px solid rgba(240,162,60,.48); animation: track-live-pulse 1.9s ease-out infinite; }
.track-live-dot { position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 3px solid #fff; border-radius: 50%; background: #f0a23c; box-shadow: 0 2px 9px rgba(171,104,27,.32); }
@keyframes track-live-pulse { 0% { transform: scale(.45); opacity: .95; } 72%, 100% { transform: scale(1.38); opacity: 0; } }
.track-controls { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-muted); }
.track-play { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 88px; height: 36px; padding: 0 13px; border: 0; border-radius: 9px; color: #fff; background: var(--brand); font-size: 11px; font-weight: 650; cursor: pointer; }
.track-play:hover { background: var(--brand-dark); }
.track-play svg { width: 15px; height: 15px; }
.track-timeline { min-width: 0; flex: 1; }
.track-time-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #82918a; font-size: 9px; }
.track-time-row strong { color: var(--ink-2); font-weight: 620; }
.track-range { width: 100%; height: 24px; margin: 2px 0; accent-color: var(--brand); cursor: pointer; }
.track-meta { font-size: 9px; }
.track-meta strong { font-variant-numeric: tabular-nums; }
.track-footnote { display: flex; align-items: flex-start; gap: 6px; margin: 10px 0 0; color: #8a9992; font-size: 9px; line-height: 1.65; }
.track-footnote svg { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 1px; }
.track-route-warning { display: flex; align-items: flex-start; gap: 6px; margin: -2px 0 12px; padding: 8px 10px; border: 1px solid #f0dfb9; border-radius: 8px; color: #8a6b2e; background: #fdf9ef; font-size: 9px; line-height: 1.55; }
.track-route-warning svg { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 1px; }
.track-empty { padding-bottom: 12px; }
.track-empty .empty-state { padding-bottom: 28px; }
.track-retry { display: flex; margin: -14px auto 18px; }

.pricing-strip { flex-wrap: wrap; row-gap: 10px; }
.pricing-strip-note { margin-left: auto; color: var(--muted); font-size: 10px; white-space: nowrap; }
.pricing-card-head { align-items: flex-start; }
.pricing-state { display: inline-flex; align-items: center; gap: 7px; min-height: 27px; padding: 4px 10px; border-radius: 999px; color: #17795d; background: #e8f7f0; font-size: 10px; font-weight: 650; white-space: nowrap; }
.pricing-state i { width: 6px; height: 6px; border-radius: 50%; background: #24a77b; box-shadow: 0 0 0 3px rgba(36,167,123,.11); }
.pricing-state.is-dirty { color: #9a6a1c; background: #fcf3df; }
.pricing-state.is-dirty i { background: #d89b32; box-shadow: 0 0 0 3px rgba(216,155,50,.12); }
.pricing-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pricing-table { width: 100%; min-width: 1320px; border-collapse: collapse; }
.pricing-table th { height: 62px; padding: 8px 18px; border-bottom: 1px solid var(--line); color: #87958f; background: #f8faf8; font-size: 9px; font-weight: 650; letter-spacing: .04em; text-align: center; }
.pricing-table th:first-child { text-align: left; }
.pricing-table th small { display: block; margin-top: 3px; color: #a0ada7; font-size: 8px; font-weight: 500; letter-spacing: .02em; }
.pricing-table .pricing-band-head { width: 31%; }
.pricing-table td { height: 94px; padding: 9px 18px; border-bottom: 1px solid #eef2ee; color: var(--ink-2); font-size: 11px; text-align: center; vertical-align: middle; }
.pricing-table td:first-child { text-align: left; }
.pricing-table tbody tr:last-child td { border-bottom: 0; }
.pricing-table tbody tr:hover { background: #fbfcfb; }
.pricing-band-name { display: block; color: var(--ink); font-size: 11px; font-weight: 640; }
.pricing-band-range { display: block; margin-top: 2px; color: #96a39e; font-size: 9px; }
.pricing-energy { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 11px; font-weight: 680; letter-spacing: 0; }
.pricing-energy::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #85958e; box-shadow: 0 0 0 3px rgba(133,149,142,.1); }
.pricing-energy.is-gasoline::before { background: #d59a35; box-shadow: 0 0 0 3px rgba(213,154,53,.12); }
.pricing-energy.is-diesel::before { background: #557a94; box-shadow: 0 0 0 3px rgba(85,122,148,.11); }
.pricing-energy.is-lng::before { background: #8a6fbb; box-shadow: 0 0 0 3px rgba(138,111,187,.11); }
.pricing-energy.is-electric::before { background: #18a57a; box-shadow: 0 0 0 3px rgba(24,165,122,.11); }
.pricing-energy.is-pure::before { background: #7058c8; box-shadow: 0 0 0 3px rgba(112,88,200,.11); }
.pricing-dual { display: flex; flex-direction: column; gap: 5px; width: 100%; max-width: 190px; margin: 0 auto; }
.pricing-price-row { display: flex; align-items: center; gap: 6px; }
.pricing-role { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 21px; height: 21px; border-radius: 7px; font-size: 9px; font-weight: 750; }
.pricing-role.is-accept { color: #0b7b5d; background: #e6f6ef; }
.pricing-role.is-driver { color: #9a5a18; background: #fff0df; }
.pricing-input-wrap { position: relative; display: inline-flex; flex: 1; width: auto; min-width: 0; }
.pricing-input-wrap > span { position: absolute; z-index: 1; top: 50%; left: 11px; color: #8b9993; font-size: 10px; transform: translateY(-50%); pointer-events: none; }
.pricing-input { width: 100%; height: 33px; padding: 0 9px 0 24px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: #fff; font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; transition: border-color .15s, box-shadow .15s, background .15s; }
.pricing-input:hover { border-color: #bdcbc3; }
.pricing-input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px rgba(13,143,107,.09); }
.pricing-input-wrap.is-driver .pricing-input { border-color: #ead9c7; background: #fffdfa; }
.pricing-input-wrap.is-driver .pricing-input:focus { border-color: #c4843d; box-shadow: 0 0 0 4px rgba(196,132,61,.09); }
.pricing-input-wrap.is-invalid .pricing-input { color: var(--danger); border-color: #d97878; background: #fffafa; box-shadow: 0 0 0 3px rgba(201,77,77,.08); }
.pricing-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 18px; border-top: 1px solid #edf1ed; background: #fbfcfb; }
.pricing-note { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.pricing-note svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; color: #81968c; }
.storage-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 16px; align-items: start; }
.storage-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; padding-top: 4px; }
.storage-detail { display: grid; gap: 0; }
.storage-detail-row { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px dashed #eef2ee; font-size: 11px; }
.storage-detail-row:last-child { border-bottom: 0; }
.storage-detail-row span { color: var(--muted); }
.storage-detail-row strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.storage-note { margin-top: 14px; }
.storage-hint { display: flex; align-items: flex-start; gap: 8px; padding: 11px 13px; border: 1px dashed #e2eae4; border-radius: 10px; background: #fbfcfb; color: var(--muted); font-size: 10px; line-height: 1.7; }
.storage-hint svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; color: #81968c; }
.storage-auth-block { margin-top: 4px; padding: 14px; border: 1px solid #dfeae2; border-radius: 12px; background: #f7fbf8; }
.storage-auth-head { display: flex; flex-direction: column; gap: 5px; }
.storage-auth-head strong { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 12px; }
.storage-auth-head strong svg { width: 15px; height: 15px; color: #2f7d55; }
.storage-auth-head span { color: var(--muted); font-size: 10px; line-height: 1.7; }

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

@media (max-width: 1360px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1.5fr) minmax(265px, .85fr); }
  .split-layout { grid-template-columns: 1fr; }
  .login-visual { padding: 42px; }
  .login-message h1 { font-size: 44px; }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); box-shadow: 18px 0 50px rgba(4,20,14,.18); }
  .sidebar.is-open { transform: none; }
  .sidebar-overlay.is-visible { position: fixed; z-index: 40; inset: 0; display: block; background: rgba(4,19,14,.4); backdrop-filter: blur(2px); }
  .main { margin-left: 0; }
  .menu-toggle { display: inline-grid; }
  .topbar { padding: 0 20px; }
  .page-host { padding: 23px 20px 36px; }
  .login-screen { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; padding: 34px; }
  .login-mobile-brand { display: flex; }
  .login-mobile-brand .brand-sub { color: #83938d; }
  .login-version { margin-top: 36px; }
}
/* 合伙人长期分润 */
.partner-settings-card { display: flex; align-items: center; gap: 15px; margin-bottom: 16px; padding: 18px 20px; border: 1px solid #d6e9df; border-radius: var(--radius); background: radial-gradient(circle at 92% 10%, rgba(92,224,181,.16), transparent 36%), linear-gradient(135deg, #f2fbf7, #ffffff 66%); box-shadow: var(--shadow-sm); }
.partner-settings-mark { width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 15px; color: #fff; background: linear-gradient(145deg, #16a97e, #087356); box-shadow: 0 9px 22px rgba(13,143,107,.22); }
.partner-settings-mark svg { width: 24px; height: 24px; }
.partner-settings-copy { min-width: 0; }
.partner-settings-copy span { display: block; color: #5c776d; font-size: 10px; font-weight: 650; letter-spacing: .04em; }
.partner-settings-copy strong { display: block; margin: 1px 0 2px; color: #075944; font-size: 26px; line-height: 1.2; font-weight: 760; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.partner-settings-copy small { display: block; max-width: 440px; color: #8b9b94; font-size: 9px; line-height: 1.55; }
.partner-settings-form { display: flex; align-items: center; gap: 9px; margin-left: auto; flex-wrap: wrap; }
.partner-rate-input { position: relative; display: inline-flex; align-items: center; width: 112px; }
.partner-rate-input .input { width: 100%; padding-right: 31px; text-align: right; font-weight: 680; font-variant-numeric: tabular-nums; }
.partner-rate-input > span { position: absolute; right: 12px; color: #7b8e86; font-size: 11px; font-weight: 650; pointer-events: none; }
.partner-rate-input-wide { width: 100%; margin-top: 7px; }
.partner-code { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 9px; border: 1px solid #cfe9dd; border-radius: 8px; color: #07634a; background: #eefaf5; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 12px; font-weight: 750; letter-spacing: .09em; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.partner-code:hover { border-color: #99d7be; background: #e2f7ee; box-shadow: 0 0 0 3px rgba(13,143,107,.07); }
.partner-code svg { width: 13px; height: 13px; opacity: .62; }
.partner-code-sm { min-height: 23px; padding: 3px 7px; border: 0; background: #f2f8f5; font-size: 10px; cursor: default; }
.partner-code-sm:hover { border: 0; box-shadow: none; background: #f2f8f5; }
.partner-code-hero { min-height: 48px; padding: 8px 15px; border-color: rgba(255,255,255,.16); color: #06271e; background: var(--brand-glow); box-shadow: 0 9px 24px rgba(92,224,181,.18); font-size: 27px; letter-spacing: .13em; }
.partner-code-hero:hover { border-color: rgba(255,255,255,.26); background: #6ceac2; box-shadow: 0 9px 24px rgba(92,224,181,.25); }
.partner-code-hero svg { width: 17px; height: 17px; opacity: .55; }
.partner-code-input { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.partner-rate { color: #0d7e5e; font-size: 13px; font-weight: 720; font-variant-numeric: tabular-nums; }
.partner-money { color: #9b6410; font-weight: 720; font-variant-numeric: tabular-nums; }
.partner-table { min-width: 880px; }
.table-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.table-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #075944; background: linear-gradient(135deg, #d9f7ea, #b6ecd8); font-size: 11px; font-weight: 750; }
.table-person > div { min-width: 0; }
.table-person strong { display: block; overflow: hidden; max-width: 180px; color: var(--ink); font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.table-person span:not(.table-avatar), .table-sub { display: block; margin-top: 1px; color: #96a39e; font-size: 9px; font-weight: 400; }
.table-empty { padding: 24px 14px; color: var(--muted); font-size: 10px; text-align: center; }
.switch-line { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 11px; font-weight: 550; cursor: pointer; }
.switch-line input { width: 17px; height: 17px; accent-color: var(--brand); }
.field-optional { margin-left: 4px; padding: 2px 6px; border-radius: 999px; color: #76877f; background: #f1f4f2; font-size: 8px; font-weight: 550; }
.toolbar-note { display: inline-flex; align-items: center; gap: 6px; color: #84938c; font-size: 10px; }
.toolbar-note svg { width: 14px; height: 14px; color: #95a49e; }
.partner-detail-hero { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 20px 22px; border-radius: 15px; color: #e7f6f0; background: radial-gradient(circle at 86% 18%, rgba(92,224,181,.23), transparent 34%), linear-gradient(145deg, #0b2019, #10382d); }
.partner-detail-hero .eyebrow { color: #8ddbc1; }
.partner-detail-hero p { margin: 7px 0 0; color: #8fb7aa; font-size: 10px; }
.partner-detail-owner { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.partner-detail-owner .table-avatar { width: 40px; height: 40px; color: #06271e; background: linear-gradient(135deg, #83f0cc, #3fc59a); }
.partner-detail-owner strong { display: block; color: #fff; font-size: 12px; font-weight: 650; }
.partner-detail-owner span:not(.table-avatar) { display: block; margin-top: 2px; color: #90b6aa; font-size: 9px; }
.partner-detail-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 11px; }
.partner-detail-metrics > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfb; }
.partner-detail-metrics span { display: block; color: var(--muted); font-size: 9px; }
.partner-detail-metrics strong { display: block; margin-top: 3px; color: var(--ink); font-size: 17px; font-weight: 720; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .topbar { height: 64px; padding: 0 14px; }
  .page-host { padding: 19px 14px 30px; }
  .topbar-left .crumb { display: none; }
  .system-metrics { gap: 4px; }
  .system-metric { height: 27px; padding: 0 7px; gap: 3px; }
  .system-metric em { font-size: 7px; }
  .system-metric strong { font-size: 9px; }
  .crumb span { display: none; }
  .topbar-clock, .user-chip-name { display: none; }
  .user-chip { padding: 4px; border: 0; background: transparent; }
  .dashboard-hero { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 18px; }
  .dashboard-hero h1 { font-size: 23px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .page-heading h1 { font-size: 23px; }
  .kpi-grid, .mini-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { padding: 15px; }
  .metric-value { font-size: 26px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-left, .toolbar-right { width: 100%; }
  .search-box { width: 100%; flex: 1; }
  .filter-select { flex: 1; }
  .stats-strip { overflow-x: auto; gap: 13px; }
  .strip-item { white-space: nowrap; }
  .data-table th, .data-table td { padding-left: 11px; padding-right: 11px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-pair.full { grid-column: auto; }
  .signature-compare.is-detail { grid-template-columns: 1fr; }
  .signature-compare.is-detail .signature-compare-canvas, .signature-compare.is-detail .signature-compare-empty { height: 120px; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-backdrop { padding: 12px; align-items: flex-end; }
  .modal { max-height: calc(100vh - 24px); border-radius: 16px; }
  .modal-head { padding: 17px 16px 13px; }
  .modal-body { padding: 16px; }
  .modal-footer { padding: 12px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .media-images { grid-template-columns: 1fr; }
  .track-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track-map-overlay { top: 7px; right: 7px; width: calc(100% - 60px); max-height: 36%; padding: 7px 8px; }
  .track-map-overlay-title span { display: none; }
  .track-map-signal-badge { padding: 2px 6px; font-size: 8px; }
  .track-road-groups { gap: 4px; margin-top: 5px; }
  .track-road-group { flex-direction: column; gap: 3px; }
  .track-road-type { min-width: 0; padding: 2px 5px; }
  .track-road-list { width: 100%; gap: 3px; }
  .track-road-chip { padding: 2px 5px; }
  .track-road-chip strong { font-size: 8px; }
  .track-road-label { max-width: 166px; padding: 2px 6px; font-size: 9px; }
  .track-road-label em { padding: 1px 3px; font-size: 7px; }
  .track-signal-body { width: 16px; height: 22px; }
  .track-signal-body i { width: 5px; height: 5px; }
  .track-headline { flex-direction: column; gap: 7px; }
  .track-map { height: 300px; aspect-ratio: auto; min-height: 0; }
  .track-map-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .track-legend { flex-wrap: wrap; }
  .track-controls { align-items: stretch; flex-direction: column; gap: 8px; }
  .track-play { width: 100%; }
  .track-entry { flex-wrap: wrap; }
  .track-entry .btn { width: 100%; }
  .pricing-strip-note { width: 100%; margin-left: 0; white-space: normal; }
  .pricing-card-head { align-items: flex-start; flex-direction: column; gap: 9px; }
  .pricing-table { min-width: 620px; }
  .pricing-table th, .pricing-table td { padding-left: 12px; padding-right: 12px; }
  .pricing-input-wrap { width: 118px; }
  .pricing-footer { align-items: stretch; flex-direction: column; }
  .pricing-footer .btn { width: 100%; }
  .login-panel { padding: 24px; }
  .partner-settings-card { align-items: flex-start; flex-wrap: wrap; }
  .partner-settings-form { width: 100%; margin-left: 0; }
  .partner-settings-form .btn { flex: 1; }
  .partner-detail-hero { align-items: flex-start; flex-direction: column; gap: 14px; }
  .partner-detail-metrics { grid-template-columns: 1fr 1fr; }
  .table-person strong { max-width: 130px; }
  .login-card h2 { font-size: 27px; }
  .toast-root { top: 10px; }
}
@media (max-width: 440px) {
  .user-chip { display: none; }
  .system-metric em { display: none; }
  .kpi-grid, .mini-grid { grid-template-columns: 1fr; }
  .segmented { width: 100%; overflow-x: auto; }
  .segment { flex: 1; }
  .role-choice { grid-template-columns: 1fr; }
  .detail-summary { align-items: flex-start; }
  .detail-price { display: none; }
  .pricing-table { min-width: 570px; }
  .pricing-input-wrap { width: 104px; }
}

/* 顶部运行状态在所有页面和窄屏下都保持完整可见。 */
@media (max-width: 980px) {
  .topbar { height: auto; min-height: 82px; flex-wrap: wrap; gap: 0; padding: 8px 14px 0; }
  .topbar-left { order: 1; min-height: 38px; }
  .topbar-right { order: 2; min-height: 38px; margin-left: auto; }
  .system-metrics {
    order: 3; flex: 0 0 100%; width: 100%; margin-left: 0;
    justify-content: space-between; overflow: visible;
    padding: 7px 0 8px; border-top: 1px solid rgba(218, 226, 220, .65);
  }
  .system-metric { flex: 1 1 0; justify-content: center; min-width: 0; }
}

@media (max-width: 440px) {
  .system-metric { padding: 0 4px; gap: 3px; }
  .system-metric em { display: inline; font-size: 7px; }
  .system-metric strong { font-size: 9px; }
}

/* 电子协议存档 */
.agreement-verify { display: flex; align-items: flex-start; gap: 11px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2); background: #fbfcfb; font-size: 11px; line-height: 1.65; }
.agreement-verify > svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; }
.agreement-verify .spinner { width: 18px; height: 18px; flex: 0 0 auto; border: 2px solid #dce7e1; border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
.agreement-verify > div { min-width: 0; }
.agreement-verify strong { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; }
.agreement-verify p { margin: 0 0 4px; }
.agreement-verify span { color: var(--muted); font-size: 9px; }
.agreement-verify.is-pending { color: #557064; border-color: #dce9e2; background: #f7fbf9; }
.agreement-verify.is-valid { color: #075944; border-color: #bde5d5; background: #eefaf5; }
.agreement-verify.is-valid > svg { color: var(--brand); }
.agreement-verify.is-invalid { color: #963f3f; border-color: #f0cccc; background: #fff3f3; }
.agreement-verify.is-invalid > svg { color: var(--danger); }
.agreement-document { max-height: 330px; overflow: auto; padding: 15px 16px; border: 1px solid #e4ebe6; border-radius: 12px; color: var(--ink-2); background: #fbfcfb; font-size: 11px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.agreement-hash { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 9px; line-height: 1.7; word-break: break-all; }
.agreement-proof { border: 1px solid #e4ebe6; border-radius: 10px; background: #fbfcfb; }
.agreement-proof summary { padding: 11px 13px; color: var(--ink-2); font-size: 10px; font-weight: 650; cursor: pointer; user-select: none; }
.agreement-proof[open] summary { border-bottom: 1px solid #edf1ed; }
.agreement-proof .section-title { margin: 14px 13px 7px; }
.agreement-code { max-height: 230px; margin: 0 13px 14px; padding: 11px 12px; overflow: auto; border: 1px solid #e7ece8; border-radius: 8px; color: #455a51; background: #fff; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 9px; line-height: 1.65; white-space: pre-wrap; word-break: break-all; }

@media (max-width: 480px) {
  .agreement-verify { padding: 12px; }
  .agreement-document { max-height: 260px; padding: 12px; }
  .agreement-code { margin-left: 10px; margin-right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
