:root {
  --brand: #2E6BF0;
  --brand-2: #78AEFF;
  --ice: #F4F7FF;
  --sky: #D3E4FF;
  --night: #002030;
  --navy: #000058;
  --bg: #F4F7FF;
  --paper: #fff;
  --ink: #002030;
  --muted: rgba(0, 32, 48, .62);
  --line: #D3E4FF;
  --accent: #2E6BF0;
  --accent-ink: #fff;
  --teal: #0f6b8f;
  --gold: #2E6BF0;
  --shadow: 0 6px 22px rgba(46, 107, 240, .07);
  --sh2: 0 20px 48px rgba(46, 107, 240, .16);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1380px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 2%, rgba(120, 174, 255, .30), transparent 34%),
    radial-gradient(circle at 6% 92%, rgba(46, 107, 240, .16), transparent 36%),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}
h1, h2, h3 { font-weight: 800; letter-spacing: .01em; }
h1 { font-size: 1.7rem; margin: .15rem 0 0; }
h2 { font-size: 1.05rem; margin: 0 0 .8rem; color: var(--navy); }

.sidenav {
  position: sticky; top: 0; z-index: 40;
  height: 66px; display: flex; align-items: center; gap: 4px;
  padding: 0 22px; overflow: auto;
  background: rgba(244, 248, 255, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 22px rgba(46, 107, 240, .06);
}
.sn-head { display: flex; align-items: center; gap: 10px; padding-right: 18px; margin-right: 8px; border-right: 1px solid var(--line); flex-shrink: 0; color: inherit; }
.sn-head:hover { text-decoration: none; }
.sn-head .mark { width: 34px; height: 34px; border-radius: 11px; box-shadow: 0 6px 16px rgba(46, 107, 240, .28); }
.b-cn { display: block; font-size: 15px; font-weight: 800; color: var(--navy); line-height: 1.2; white-space: nowrap; }
.b-en { display: block; font-size: 9px; letter-spacing: .12em; color: var(--muted); }
.sidenav > a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px;
  font-size: 13px; font-weight: 650; color: rgba(0, 32, 48, .88); white-space: nowrap;
}
.sidenav > a svg { width: 16px; height: 16px; }
.sidenav > a:hover { background: #fff; color: var(--brand); text-decoration: none; }
.sidenav > a.on { background: linear-gradient(105deg, #2E6BF0, #78AEFF); color: #fff; box-shadow: 0 8px 20px rgba(46, 107, 240, .28); }
.sn-badge { font-family: var(--mono); font-size: 10px; padding: 1px 6px; border-radius: 999px; background: #F4F7FF; color: var(--brand); }
.sidenav > a.on .sn-badge { background: rgba(255,255,255,.25); color: #fff; }
.mnav { display: none; }

.topbar { padding: 16px 26px 0; }
.tb-in {
  max-width: var(--maxw); margin: 0 auto; min-height: 64px;
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.92); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); padding: 8px 12px 8px 16px;
}
.plat { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.plat b { color: var(--navy); }
.sw { flex: 1; min-width: 0; margin: 0; }
.sb {
  display: flex; align-items: center; gap: 10px; height: 46px;
  background: var(--ice); border: 1px solid var(--line); border-radius: 16px; padding: 0 6px 0 14px;
}
.sb:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(120, 174, 255, .28); }
.sb svg { color: var(--brand); flex-shrink: 0; }
.sb input { flex: 1; min-width: 0; border: 0; background: none; height: 100%; }
.sb input:focus { outline: none; box-shadow: none; }
.tb-search { height: 36px; padding: 0 16px; border-radius: 12px; }
.right { display: flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
.userchip {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px; background: var(--ice); border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink); font-size: 12.5px; white-space: nowrap;
}
.userchip:hover { text-decoration: none; border-color: var(--brand-2); }
.av {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(160deg, #78AEFF, #2E6BF0); color: #fff; font-size: 12px; font-weight: 800;
}
.ib {
  width: 34px; height: 34px; border-radius: 11px; border: 1px solid var(--line);
  display: grid; place-items: center; background: #fff; color: var(--night); cursor: pointer;
}
.ib:hover { color: var(--brand); border-color: var(--brand-2); text-decoration: none; }
.right form { margin: 0; }

main { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 16px 26px 40px; }
.home, .page-stack { display: flex; flex-direction: column; gap: 14px; }

.hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 22px 24px; color: var(--night);
  background:
    radial-gradient(ellipse 62% 130% at 90% 4%, rgba(120,174,255,.26), transparent 62%),
    linear-gradient(118deg, #fff 0%, #EDF3FF 44%, #D3E4FF 100%);
  border: 1px solid rgba(120, 174, 255, .45);
  box-shadow: 0 18px 46px rgba(46, 107, 240, .12);
  margin-bottom: 14px;
}
.h-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.h-left { flex: 1; min-width: 260px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(120,174,255,.45); font-size: 11px; font-weight: 700;
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(46,107,240,.18); }
.hero h1 {
  margin: 8px 0 6px; font-size: 28px; letter-spacing: .04em;
  background: linear-gradient(92deg, #000058 0%, #2E6BF0 58%, #78AEFF 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 em { display: block; font-style: normal; font-size: 12px; letter-spacing: .22em; margin-top: 4px; color: var(--brand); }
.hero p { max-width: 560px; margin: 0; color: rgba(0,32,48,.78); font-size: 13px; }
.h-btns { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.dash { flex: 1; min-width: 280px; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dk { background: #fff; border: 1px solid rgba(120,174,255,.45); border-radius: 14px; padding: 10px 12px; }
.dk span { display: block; font-size: 11px; color: var(--night); }
.dk b { display: block; font-family: var(--mono); font-size: 22px; color: var(--night); line-height: 1.3; }
.dk em { display: block; font-style: normal; font-size: 11px; color: var(--brand); }

.dc {
  border-radius: 20px; padding: 18px 22px;
  background: linear-gradient(130deg, #fff 0%, #EDF3FF 46%, #D3E4FF 100%);
  border: 1px solid rgba(120,174,255,.4);
  box-shadow: 0 16px 40px rgba(46,107,240,.12);
}
.dc-hd, .dc-ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dc-t { font-size: 16px; font-weight: 800; color: var(--night); }
.dc-t small { display: block; font-size: 10px; letter-spacing: .16em; color: var(--brand); }
.dc-live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--brand); }
.dc-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.dc-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.dc-k { background: #fff; border: 1px solid rgba(120,174,255,.4); border-radius: 14px; padding: 12px 14px; }
.dc-k span { display: block; font-size: 13px; font-weight: 700; }
.dc-k b { display: block; font-family: var(--mono); font-size: 26px; line-height: 1.25; }
.dc-k em { display: block; font-style: normal; font-size: 12px; color: var(--brand); }
.dc-ft { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(120,174,255,.35); font-size: 12px; color: var(--muted); }
.dc-ft b { color: var(--night); }

.hm-sec { margin-top: 6px; }
.hm-sec-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; flex-wrap: wrap; }
.hm-sec-h h2 {
  margin: 0; font-size: 16px;
  background: linear-gradient(92deg, #000058, #2E6BF0 60%, #78AEFF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hm-sec-h span { font-size: 12px; color: var(--muted); }
.hm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hm-card, .hm-sv {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); color: inherit;
}
.hm-card { display: block; padding: 18px; transition: .2s; }
.hm-card:hover, .hm-sv:hover { transform: translateY(-3px); box-shadow: var(--sh2); border-color: var(--brand-2); text-decoration: none; }
.hm-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; color: var(--brand); background: linear-gradient(145deg, #fff, #D3E4FF); border: 1px solid rgba(120,174,255,.45); }
.hm-num { font-family: var(--mono); font-size: 22px; font-weight: 800; color: var(--night); }
.hm-num small { font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.hm-card h3 { margin: 4px 0 8px; font-size: 16px; color: var(--navy); }
.hm-card h3 em { display: block; font-style: normal; font-size: 10px; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.hm-card p, .hm-sv p { margin: 0; font-size: 12.5px; color: rgba(0,32,48,.72); }
.hm-go { display: inline-flex; gap: 6px; margin-top: 12px; font-size: 12px; font-weight: 800; color: var(--brand); }
.hm-svc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hm-sv { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.hm-sv .hm-ico { margin: 0; width: 44px; height: 44px; }
.hm-sv b { color: var(--navy); }
.hm-sv .ar { margin-left: auto; color: var(--brand); font-weight: 800; }
.hm-log { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 4px 18px; }
.hm-log > div { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; font-size: 13px; }
.hm-log > div:last-child { border: 0; }
.hm-log time { font-family: var(--mono); color: var(--muted); width: 42px; }
.hm-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.hm-log b { color: var(--navy); }
.hm-log em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--brand); }

.libs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.lib {
  flex: 1; min-width: 180px; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
  color: inherit; box-shadow: var(--shadow);
}
.lib:hover { text-decoration: none; border-color: var(--brand-2); }
.lib.on { border-color: rgba(120,174,255,.8); background: linear-gradient(105deg, #F4F7FF, #EAF2FF); box-shadow: inset 4px 0 0 var(--brand); }
.lt { font-weight: 800; color: var(--navy); }
.ln { margin-left: auto; text-align: right; font-family: var(--mono); font-weight: 800; color: var(--brand); font-size: 18px; }
.ln small { display: block; font-family: var(--font); font-size: 11px; font-weight: 500; color: var(--muted); }

.page-head, .toolbar, .head-actions, .form-actions, .search-tools, .lib-tabs, .chips { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.page-head { justify-content: space-between; margin-bottom: 18px; }
.eyebrow { margin: 0; color: var(--brand); font-size: 12px; letter-spacing: .14em; }
.card, .record-card, .file-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.card { padding: 18px; margin-bottom: 16px; }
.stat-grid, .split-2, .detail-grid, .browse, .search-split { display: grid; gap: 16px; }
.stat-grid { grid-template-columns: repeat(3, 1fr); }
.split-2 { grid-template-columns: 1fr 1fr; }
.detail-grid { grid-template-columns: 1.4fr .8fr; align-items: start; }
.browse { grid-template-columns: 1fr 268px; align-items: start; }
.browse > section { grid-column: 1; grid-row: 1; min-width: 0; }
.browse > .filters { grid-column: 2; grid-row: 1; }
.search-split { grid-template-columns: 340px 1fr; align-items: start; }
.stat { padding: 16px; color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; border-top: 3px solid var(--brand); }
.stat strong { display: block; font-size: 2rem; font-variant-numeric: tabular-nums; color: var(--navy); }
.stat small, .muted, .meta-line { color: var(--muted); }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.btn {
  border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 14px;
  cursor: pointer; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; font-weight: 700;
}
.btn:hover { text-decoration: none; border-color: var(--brand-2); color: var(--brand); }
.btn-primary { background: linear-gradient(105deg, #2E6BF0, #5b8ef5 60%, #78AEFF); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(46,107,240,.24); }
.btn-primary:hover { color: #fff; filter: brightness(1.05); }
.btn-danger { color: #9f2d2d; }
.btn-small { padding: 4px 8px; font-size: 13px; }
.flash { padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.flash-ok { background: #e7f6ee; color: #0f6b45; }
.flash-err { background: #fdeceb; color: #8d2d24; }
.badge-published, .badge-draft, .badge-ready, .badge-offline, .badge-deleted, .badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: #eef4ff; color: var(--navy);
}
.badge-published { background: #e5f4ec; color: #0f6b45; }
.badge-ready { background: #fff4d8; color: #8a5a10; }
.badge-offline, .badge-deleted { background: #f6e4e1; color: #8d2d24; }
.filters {
  padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0;
  position: sticky; top: 82px; max-height: calc(100vh - 100px); overflow: auto;
}
.filters > label, .filters > fieldset { padding: 10px 14px; border-bottom: 1px solid var(--line); margin: 0; }
.filters > .btn { margin: 12px 14px; }
.filters fieldset { border: 0; }
.filters legend { font-size: 12px; font-weight: 800; color: var(--brand); }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.check { flex-direction: row; align-items: center; gap: 6px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 14px; }
input, select, textarea { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; }
textarea { width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(120,174,255,.3); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid #eef3fb; vertical-align: top; font-size: 13px; }
.data-table th { color: var(--night); font-weight: 800; background: #F4F7FF; font-size: 12px; }
.data-table tr[data-href] { cursor: pointer; }
.data-table tr[data-href]:hover { background: #F4F7FF; }
.row-actions form { display: inline; }
.card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.record-card { display: block; padding: 14px; color: inherit; }
.record-card strong { display: block; margin: 8px 0; }
.record-card:hover { text-decoration: none; border-color: var(--brand-2); }
.pager { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 32px; text-align: center; padding: 4px 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.pager a.on { background: var(--brand); color: #fff; border-color: transparent; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.span-2 { grid-column: 1 / -1; }
.field i { color: #c2412d; font-style: normal; }
.err, .warn-text { color: #9a3412; }
.low-conf input, .low-conf textarea, .low-conf select { background: #fff6d2; border-color: #e2c36a; }
.meter { height: 8px; background: #e3edf8; border-radius: 99px; width: 180px; overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, #78AEFF, #2E6BF0); width: 0; }
.meter-box { min-width: 180px; }
.dropzone { border: 1px dashed var(--brand-2); border-radius: 12px; padding: 12px; margin: 8px 0; background: #f5f9ff; }
.dropzone.lead { border: 1px solid var(--brand); background: #fff; padding: 16px 18px; }
.lead-box { background: #f4f8ff; }
.dropzone.over { background: #e7f1ff; }
.progress { height: 6px; background: #e3edf8; border-radius: 99px; margin-top: 8px; }
.progress span { display: block; height: 100%; background: var(--brand); width: 0; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 10px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.preview-frame { width: 100%; height: 280px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.preview-img { max-width: 100%; border-radius: 8px; }
.view-switch { display: inline-flex; background: #e7f0ff; border-radius: 12px; padding: 3px; gap: 2px; }
.view-switch .btn { border: 0; background: transparent; }
.view-switch .btn.on { background: #fff; color: var(--brand); box-shadow: 0 3px 10px rgba(46,107,240,.12); }

.auth-body {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(circle at 12% 10%, rgba(120,174,255,.3), transparent 38%),
    radial-gradient(circle at 88% 88%, rgba(46,107,240,.2), transparent 42%),
    linear-gradient(140deg, #F4F7FF, #e7f0ff);
}
.login-shell {
  width: min(1080px, 100%); min-height: 640px;
  display: grid; grid-template-columns: 1fr 1.02fr;
  background: #fff; border-radius: 28px; overflow: hidden;
  box-shadow: 0 36px 90px rgba(46,107,240,.18);
}
.lf { padding: 40px 44px; display: flex; align-items: center; background: linear-gradient(155deg, #fff 55%, #EAF2FC); }
.lf-in { width: 100%; }
.lf-mini { font-size: 11px; letter-spacing: .16em; color: var(--brand); font-weight: 800; }
.lf-head h1 { font-size: 28px; margin: 6px 0; color: var(--navy); background: none; -webkit-text-fill-color: var(--navy); }
.lf-head p, .lf-sec { color: var(--muted); font-size: 13px; }
.lf-sec { margin-top: 18px; text-align: center; line-height: 1.7; }
.lf .stack { margin-top: 18px; }
.lf .btn-primary { width: 100%; height: 46px; justify-content: center; letter-spacing: .2em; }
.lb {
  position: relative; color: #fff; padding: 36px 40px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  background: linear-gradient(150deg, #000058 0%, #04124a 48%, #2E6BF0 100%);
  overflow: hidden;
}
.lb-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(160deg, #000, transparent 78%);
}
.lb-top, .lb-mid, .lb-copy { position: relative; z-index: 1; }
.lb-logo-img { width: min(280px, 100%); height: auto; background: rgba(255,255,255,.94); border-radius: 16px; padding: 8px 12px; }
.lb-kicker { letter-spacing: .16em; font-size: 12px; margin-bottom: 10px; }
.lb h2 { margin: 0 0 8px; font-size: 30px; color: #fff; }
.lb p { margin: 0; max-width: 380px; color: rgba(255,255,255,.92); }
.lb-feats { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.lb-feat { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(0,32,48,.28); border: 1px solid rgba(255,255,255,.22); }
.lb-fi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.2); font-family: var(--mono); font-size: 12px; font-weight: 800; }
.lb-feat b, .lb-feat small { display: block; }
.lb-feat small { color: rgba(255,255,255,.86); font-size: 12px; }
.lb-copy { font-size: 12px; color: rgba(255,255,255,.8); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.captcha-row span { display: flex; gap: 8px; align-items: center; }
.captcha { height: 44px; border-radius: 8px; cursor: pointer; border: 1px solid var(--line); }
.auth-links { display: flex; gap: 16px; }
.hp { position: absolute; left: -9999px; }
.narrow { max-width: 640px; }
.empty { padding: 28px; text-align: center; }
.search-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; position: relative; }
.search-bar input, .search-bar select { min-width: 140px; }
#q { flex: 1; min-width: 0; }
.suggest { position: absolute; top: 52px; left: 0; right: 80px; background: #fff; border: 1px solid var(--line); border-radius: 12px; z-index: 6; box-shadow: var(--sh2); }
.suggest button { display: block; width: 100%; text-align: left; background: #fff; border: 0; padding: 8px 12px; cursor: pointer; }
.suggest button:hover { background: #F4F7FF; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 13px; color: inherit; }
.lib-tabs a { padding: 6px 10px; border-bottom: 2px solid transparent; color: var(--muted); }
.lib-tabs a.on { color: var(--ink); border-color: var(--brand); }
.hit { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); color: inherit; }
.hit.on, .hit:hover { background: #F4F7FF; text-decoration: none; }
.hit p, .hit small, .hit em { display: block; color: var(--muted); font-style: normal; }
.search-list { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: auto; max-height: 70vh; box-shadow: var(--shadow); }
.summary-pane { min-height: 240px; }
mark { background: #d7e6ff; color: inherit; padding: 0 2px; }
.inline { display: inline-flex; gap: 6px; align-items: center; }
.warn-card { background: #fff8ea; }
.nav-toggle, .filter-toggle { display: none; }
@media (max-width: 1100px) {
  .dash-kpis, .dc-kpis { grid-template-columns: repeat(2, 1fr); }
  .sidenav > a:not(.sn-head) span:not(.sn-badge) { display: none; }
  .userchip { max-width: 42px; overflow: hidden; padding-right: 0; }
}
@media (max-width: 980px) {
  .sidenav > a:not(.sn-head) { display: none; }
  .mnav { display: flex; gap: 8px; overflow: auto; padding: 10px 16px 0; }
  .mnav a { flex: 0 0 auto; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 12px; font-weight: 700; }
  .mnav a.on { background: var(--brand); color: #fff; border-color: transparent; }
  .hm-grid, .hm-svc, .split-2, .detail-grid, .browse, .search-split, .form-grid, .login-shell { grid-template-columns: 1fr; }
  .browse > section, .browse > .filters { grid-column: 1; grid-row: auto; }
  .browse > section { order: 1; }
  .browse > .filters { order: 2; position: static; max-height: none; display: none; }
  .filters.open { display: flex; }
  .filter-toggle { display: inline-flex; }
  .topbar, main { padding-left: 16px; padding-right: 16px; }
  .lf, .lb { padding: 28px 20px; }
  .data-table thead { display: none; }
  .data-table tr { display: block; border-bottom: 8px solid var(--bg); }
  .data-table td { display: flex; justify-content: space-between; gap: 12px; }
  .data-table td::before { content: attr(data-label); color: var(--muted); }
}
.statbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.statbar > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.statbar span { display: block; font-size: 12px; color: var(--muted); }
.statbar b { font-family: var(--mono); font-size: 18px; color: var(--navy); }
.facet { margin-left: auto; font-size: 11px; color: var(--brand); background: #F4F7FF; border-radius: 999px; padding: 0 6px; }
.filters .check { justify-content: flex-start; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--brand); font-size: 12px; }
.tag b { width: 16px; height: 16px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 500; }
.tag:hover { text-decoration: none; }
.fr { font-size: 12px; font-weight: 700; }
.bar { display: block; height: 6px; border-radius: 4px; background: #e7f0ff; overflow: hidden; margin-top: 4px; width: 72px; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2E6BF0, #78AEFF); }
.mny { font-family: var(--mono); font-weight: 700; color: var(--navy); }
.dc-chart { margin-top: 12px; background: #fff; border: 1px solid rgba(120,174,255,.45); border-radius: 14px; padding: 10px 12px; }
.dc-ct { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.dc-svg { width: 100%; height: 72px; }
.etabs { display: flex; gap: 6px; margin-bottom: 14px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.etab { flex: 1; text-align: center; padding: 10px 8px; border-radius: 10px; font-weight: 800; color: var(--night); }
.etab.on { background: linear-gradient(105deg, #2E6BF0, #78AEFF); color: #fff; }
.etab:hover { text-decoration: none; }
.pwd-line { display: flex; gap: 8px; align-items: center; }
.pwd-line input { flex: 1; }
.lf-eye { border: 0; background: transparent; color: var(--brand); cursor: pointer; font-size: 12px; }
.hide { display: none !important; }
.lf-tabs { display: flex; gap: 4px; margin: 16px 0 8px; padding: 4px; background: var(--ice); border-radius: 12px; }
.lf-tabs button { flex: 1; padding: 8px; border-radius: 9px; border: 0; background: transparent; font-weight: 700; color: var(--muted); cursor: pointer; }
.lf-tabs button.on { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.lb-stats { display: flex; gap: 22px; margin-top: 18px; }
.lb-stats b { display: block; font-family: var(--mono); font-size: 22px; }
.lb-stats span { font-size: 12px; color: rgba(255,255,255,.86); }
.ft { border-top: 1px solid var(--line); padding: 16px 26px 22px; }
.ft-in { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.mask { position: fixed; inset: 0; background: rgba(0,32,48,.36); z-index: 80; opacity: 0; pointer-events: none; }
.mask.on { opacity: 1; pointer-events: auto; }
.dw { position: fixed; top: 0; right: 0; bottom: 0; width: min(880px, 94vw); background: #fff; z-index: 90; transform: translateX(104%); transition: transform .28s ease; display: flex; flex-direction: column; box-shadow: -18px 0 40px rgba(0,32,48,.16); }
.dw.on { transform: none; }
.dwh, .dwf { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dwf { border-bottom: 0; border-top: 1px solid var(--line); justify-content: flex-end; background: #F4F7FF; }
.dwh h2 { margin: 0; flex: 1; font-size: 18px; }
.dwb { flex: 1; overflow: auto; padding: 16px 18px; }
.toast { position: fixed; right: 22px; top: 84px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 10px 14px; box-shadow: var(--sh2); opacity: 0; pointer-events: none; z-index: 120; }
.toast.on { opacity: 1; }
@media (max-width: 980px) {
  .statbar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hm-grid { grid-template-columns: 1fr; }
  .plat { display: none; }
  .hero h1 { font-size: 22px; }
}
