/* SpaceX · Private Edition — 单一奢华主题，无外部字体或图片依赖。 */
:root {
  color-scheme: dark;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --serif: "Bodoni 72", Didot, "Times New Roman", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.22, 1, .36, 1);
  --sidebar-w: 254px;
  --r-lg: 22px; --r-md: 15px; --r-sm: 9px; --r-btn: 8px;
  --bg: #0e1015;
  --card: #171a21;
  --glass: rgba(19, 22, 28, .94);
  --field-bg: #101319;
  --ink: #f2ede4;
  --ink-2: #cdc9c0;
  --dim: #a29e94;
  --line: rgba(220, 193, 139, .13);
  --line-strong: rgba(220, 193, 139, .29);
  --fill: rgba(235, 219, 183, .035);
  --fill-2: rgba(235, 219, 183, .075);
  --seg-bg: #101319;
  --seg-on: #363027;
  --btn-2-bg: #27282b;
  --btn-2-bg-hover: #34322d;
  --blue: #dfbd7e;
  --blue-hover: #f1d79f;
  --blue-soft: rgba(223, 189, 126, .12);
  --link: #e5c88e;
  --green: #8fcbb2; --green-soft: rgba(92, 174, 141, .12);
  --orange: #e7b77b; --orange-soft: rgba(218, 161, 86, .13);
  --red: #f09b94; --red-soft: rgba(224, 106, 96, .13);
  --gray-soft: rgba(165, 170, 181, .1);
  --hl-line: rgba(223, 189, 126, .4);
  --shadow-1: 0 12px 32px rgba(0, 0, 0, .16), inset 0 1px rgba(255, 255, 255, .025);
  --shadow-2: 0 32px 100px rgba(0, 0, 0, .55), inset 0 1px rgba(242, 216, 162, .08);
  --shadow-btn: 0 4px 18px rgba(197, 153, 76, .17), inset 0 1px rgba(255, 255, 255, .4);
  --mask: rgba(5, 7, 11, .75);
  --th-bg: #1c1e24;
  --gold-grad: linear-gradient(115deg, #f1dca8 0%, #dfbd7e 40%, #bc9152 100%);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23dfbd7e' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* 基础与键盘可用性 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font: 14px/1.6 var(--font); background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
[v-cloak] { display: none !important; }
::selection { background: #695330; color: #fff8e8; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, h4 { letter-spacing: -.025em; }
.mono { font-family: var(--mono); font-size: .93em; font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); }
.small { font-size: 12px; }
.grow { flex: 1; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.clip { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
span.clip { display: inline-block; }
.eyebrow { display: block; color: var(--blue); font-size: 10px; font-weight: 650; letter-spacing: .24em; line-height: 1.5; }
.edition-no { font: 11px var(--mono); letter-spacing: .12em; color: var(--dim); }
.fine-line { height: 1px; flex: 1; background: var(--line-strong); }

/* 启动与登录：黑曜石、金属饰边、几何展陈 */
.boot { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--bg); }
.boot-inner { display: grid; place-items: center; gap: 18px; color: var(--dim); font-size: 12px; letter-spacing: .12em; }
.login-screen {
  min-height: 100vh; min-height: 100svh; display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr); align-items: center;
  padding: 56px clamp(40px, 6vw, 120px); gap: clamp(44px, 7vw, 130px);
  background: radial-gradient(ellipse at 22% 32%, rgba(173, 132, 65, .12), transparent 48%),
    radial-gradient(ellipse at 100% 100%, rgba(67, 78, 97, .18), transparent 52%), #0e1015;
  position: relative; isolation: isolate;
}
.login-screen::before {
  content: ""; position: absolute; inset: 20px; z-index: -1;
  border: 1px solid var(--line); pointer-events: none;
}
.login-showcase { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; min-height: 660px; position: relative; }
.showcase-brand { display: flex; align-items: center; gap: 16px; font-size: 16px; font-weight: 600; letter-spacing: .22em; }
.showcase-monogram { display: grid; place-items: center; color: var(--blue); }
.showcase-brand small { display: block; margin-top: 5px; font-size: 8px; letter-spacing: .3em; color: var(--dim); }
.showcase-art { position: absolute; top: 12%; left: 10%; width: min(390px, 90%); aspect-ratio: 1; pointer-events: none; }
.art-orbit, .art-diamond, .art-letter { position: absolute; inset: 0; margin: auto; }
.art-orbit { border: 1px solid rgba(223, 189, 126, .18); border-radius: 50%; transform: rotate(-25deg) scaleY(.72); }
.art-orbit.inner { inset: 12%; transform: rotate(40deg) scaleY(.72); border-color: rgba(223, 189, 126, .3); }
.art-diamond {
  inset: 23%; transform: rotate(45deg); border: 1px solid rgba(223, 189, 126, .48);
  background: linear-gradient(140deg, rgba(223, 189, 126, .08), rgba(223, 189, 126, .01) 65%);
  box-shadow: 0 0 80px rgba(201, 159, 86, .08), inset 0 0 40px rgba(223, 189, 126, .035);
}
.art-letter { display: grid; place-items: center; color: #dec18c; filter: drop-shadow(0 8px 25px rgba(223, 189, 126, .22)); }
.showcase-copy { margin-top: auto; padding: 320px 0 44px; position: relative; }
.showcase-copy h2 { margin: 18px 0 18px; font-size: clamp(34px, 3.6vw, 58px); line-height: 1.5; font-weight: 500; letter-spacing: .08em; }
.showcase-copy h2 em { font-style: normal; color: var(--blue); }
.showcase-copy p { margin: 0; font-size: 13px; color: var(--dim); letter-spacing: .22em; }
.showcase-foot { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 8px; letter-spacing: .16em; color: var(--dim); }
.login-card {
  width: 100%; max-width: 470px; justify-self: center; position: relative;
  border: 1px solid var(--line-strong); border-radius: 20px; padding: 30px 40px 28px;
  background: linear-gradient(150deg, rgba(45, 42, 36, .63), rgba(22, 25, 32, .98) 38%);
  box-shadow: var(--shadow-2); animation: rise .65s var(--ease) both;
}
.login-card::before { content: ""; position: absolute; top: -1px; left: 20%; right: 20%; height: 1px; background: linear-gradient(90deg, transparent, #f1dca8, transparent); }
.login-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 36px; }
.login-logo {
  width: 62px; height: 62px; margin: 0 0 23px; border-radius: 17px;
  display: grid; place-items: center; background: var(--gold-grad); color: #2a2114;
  border: 1px solid #ebd29d; box-shadow: 0 8px 32px rgba(195, 150, 76, .2), inset 0 1px rgba(255, 255, 255, .4);
}
.boot .login-logo { margin: 0; }
.login-card h1 { margin: 0 0 10px; font-size: 28px; font-weight: 550; letter-spacing: .035em; }
.login-sub { margin: 0 0 28px; font-size: 12px; line-height: 1.9; color: var(--dim); }
.login-card form { display: grid; gap: 21px; }
.login-card .field > label { display: flex; justify-content: space-between; align-items: center; color: var(--ink-2); }
.login-card .field > label span { font: 8px var(--font); letter-spacing: .16em; color: var(--dim); }
.login-card input { height: 46px; }
.login-card .btn { height: 47px; margin-top: 7px; letter-spacing: .2em; }
.login-foot { display: flex; align-items: center; gap: 12px; margin-top: 30px; color: var(--dim); font-size: 8px; letter-spacing: .12em; white-space: nowrap; }
.form-err { margin: 0; color: var(--red); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }

/* 主框架 */
.shell { display: flex; min-height: 100vh; min-height: 100svh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100svh; width: var(--sidebar-w); flex: none;
  display: flex; flex-direction: column; padding: 32px 18px 20px;
  background: linear-gradient(180deg, #181a20, #12151b 55%, #181a1d);
  border-right: 1px solid var(--line); z-index: 5;
}
.sidebar::after { content: ""; position: absolute; right: -1px; top: 100px; height: 180px; width: 1px; background: linear-gradient(transparent, #ad8d54, transparent); pointer-events: none; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 7px 28px; flex: none; }
.brand-mark {
  width: 40px; height: 44px; flex: none; border: 1px solid var(--line-strong); border-radius: 11px;
  background: linear-gradient(145deg, #3a3226, #211f1b); color: var(--blue);
  display: grid; place-items: center; box-shadow: inset 0 1px rgba(245, 216, 162, .16), 0 6px 18px #0003;
}
.brand-copy { min-width: 0; }
.brand-copy b { display: block; font-size: 14px; font-weight: 600; letter-spacing: .17em; }
.brand-copy small { display: block; margin-top: 6px; color: var(--dim); font-size: 8px; letter-spacing: .08em; white-space: nowrap; }
.sidebar nav { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 5px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #494031 transparent; padding: 0 2px 20px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 15px; width: 100%; min-height: 44px;
  border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--ink-2);
  font: 500 13px var(--font); letter-spacing: .035em; text-align: left; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.nav-item:hover { background: var(--fill-2); color: var(--ink); }
.nav-item.active { background: linear-gradient(100deg, rgba(212, 173, 105, .18), rgba(212, 173, 105, .045)); color: var(--blue-hover); border-color: rgba(223, 189, 126, .17); }
.nav-item.active::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; background: var(--gold-grad); border-radius: 3px; box-shadow: 0 0 12px #d9b47355; }
.nav-item svg { flex: none; opacity: .85; }
.nav-sec { display: contents; }
.nav-label { margin: 24px 15px 6px; color: #8d877b; font-size: 10px; letter-spacing: .15em; }
.nav-label-first { display: flex; justify-content: space-between; margin-top: 4px; }
.nav-label span { font-size: 8px; letter-spacing: .15em; }
.nav-device-row { position: relative; }
.nav-device-row.expandable .nav-item { padding-right: 44px; }
.nav-chev, .chev { width: 20px; height: 22px; flex: none; border: 0; background: transparent; border-radius: 5px; display: grid; place-items: center; color: var(--dim); cursor: pointer; transition: transform .22s var(--ease), background .16s; }
.nav-chev { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; }
.nav-chev:hover, .chev:hover { background: var(--fill-2); }
.nav-group.open > .nav-device-row .nav-chev, .node.open > .node-row > .chev { transform: rotate(90deg); }
.nav-sub { display: flex; flex-direction: column; gap: 3px; padding: 8px 0 8px; }
.nav-sub-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 23px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font: 500 12px var(--font); text-align: left; cursor: pointer; }
.nav-sub-item:hover, .node-pick:hover { background: var(--fill-2); }
.nav-sub-item.active, .node-pick.active { background: var(--blue-soft); color: var(--blue-hover); }
.nav-sub-item .nm, .node-pick .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-tree { padding: 0 0 0 15px; }
.tq-ic { width: 22px; height: 22px; flex: none; border-radius: 5px; background: var(--fill-2); color: var(--dim); display: grid; place-items: center; }
.nav-sub-item.active .tq-ic { color: var(--blue); background: var(--blue-soft); }
.tq-check, .node-check { flex: none; color: var(--blue); }
.tree-empty { margin: 4px 10px; padding-left: 9px; color: var(--dim); font-size: 12px; }
.tree-retry { padding: 0; border: 0; background: transparent; color: var(--blue); font: inherit; cursor: pointer; }
.node-row { display: flex; align-items: center; }
.chev.ph { pointer-events: none; }
.node-pick { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; padding: 6px 7px 6px 5px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font: 500 12px var(--font); text-align: left; cursor: pointer; }
.node-ava, .mini-avatar, .avatar { border: 1px solid var(--line-strong); background: linear-gradient(145deg, #3a3226, #211f1b); color: var(--blue); box-shadow: inset 0 1px rgba(245, 216, 162, .12); }
.node-ava { width: 26px; height: 26px; flex: none; border-radius: 7px; display: grid; place-items: center; }
.node-pick.active .node-ava { border-color: var(--blue); color: var(--blue-hover); }
.node-cnt { flex: none; padding: 1px 6px; border-radius: 4px; font-size: 10px; background: var(--fill-2); color: var(--dim); font-variant-numeric: tabular-nums; }
.node-pick.active .node-cnt { background: var(--blue-soft); color: var(--blue); }
.kids { margin-left: 13px; padding-left: 8px; border-left: 1px solid var(--line); }
.side-foot { flex: none; margin-top: 14px; padding: 18px 0 0; border-top: 1px solid var(--line-strong); display: flex; align-items: center; gap: 5px; }
.user-chip { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
button.user-chip { border: 0; background: transparent; color: inherit; text-align: left; padding: 4px; border-radius: 8px; cursor: pointer; }
button.user-chip:hover { background: var(--fill); }
.avatar { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; }
.user-meta { min-width: 0; line-height: 1.5; }
.user-meta b { display: block; font-size: 12px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta span { color: var(--dim); font-size: 10px; }
.icon-btn { width: 34px; height: 34px; flex: none; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--dim); display: grid; place-items: center; cursor: pointer; transition: color .18s, background .18s, border-color .18s; }
.icon-btn:hover { color: var(--blue-hover); background: var(--blue-soft); border-color: var(--line); }
.icon-btn[aria-busy="true"] svg { animation: rot .9s linear infinite; }
.icon-btn:disabled { opacity: .6; }

.main { flex: 1; min-width: 0; padding: 0 clamp(24px, 3vw, 52px) 64px; position: relative; background: radial-gradient(ellipse at 95% 0, rgba(163, 131, 74, .08), transparent 40%), radial-gradient(ellipse at 20% 100%, rgba(46, 63, 88, .1), transparent 60%); }
.page, .workspace-bar { max-width: 1600px; margin-left: auto; margin-right: auto; }
.workspace-bar { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.workspace-label { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 11px; letter-spacing: .08em; }
.workspace-diamond { width: 6px; height: 6px; transform: rotate(45deg); background: var(--blue); box-shadow: 0 0 14px #dfbd7e55; }
.workspace-slash { color: #655d4f; }
.workspace-caption { color: var(--dim); font-size: 9px; letter-spacing: .18em; }
.live-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; letter-spacing: .06em; color: var(--dim); background: var(--fill); white-space: nowrap; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--dim); flex: none; }
.live-chip.on { color: var(--green); background: var(--green-soft); border-color: rgba(143, 203, 178, .15); }
.live-chip.on .live-dot { background: var(--green); box-shadow: 0 0 8px #8fcbb266; }
.live-chip.connecting { color: var(--orange); background: var(--orange-soft); }
.live-chip.connecting .live-dot { background: var(--orange); }
.live-chip.degraded .live-dot, .live-chip.off .live-dot { background: var(--dim); }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 26px; padding: 5px 0 22px; border-bottom: 1px solid var(--line); }
.page-head > div:first-child { min-width: 0; }
.page-head h2 { margin: 0; font-size: 28px; font-weight: 550; letter-spacing: .025em; }
.page-head p { margin: 8px 0 0; font-size: 12px; color: var(--dim); max-width: 660px; }
.head-tools { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; min-width: 0; }
.head-tools > select { width: auto; max-width: 230px; }
.head-tools > .icon-btn { border-color: var(--line); background: var(--fill); height: 38px; width: 38px; }
.head-tools input[type="date"] { width: 138px; }
.sec-title { display: flex; align-items: center; gap: 10px; margin: 30px 0 16px; font-size: 16px; font-weight: 550; letter-spacing: .035em; }
.sec-title::before { content: ""; width: 5px; height: 5px; background: var(--blue); transform: rotate(45deg); flex: none; }
.sec-title::after { content: ""; height: 1px; background: var(--line); flex: 1; margin-left: 8px; }

/* 概览主视觉：所有数字保持原始数据绑定 */
.overview-head {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 260px;
  grid-template-areas: "copy art" "tools art"; row-gap: 23px; padding: 30px 34px;
  border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(ellipse at 100% 30%, rgba(197, 153, 76, .13), transparent 54%), linear-gradient(115deg, #232322, #1a1e27 65%, #1a1b1d);
  box-shadow: var(--shadow-1); isolation: isolate;
}
.overview-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(125deg, transparent 0, transparent 90px, rgba(223, 189, 126, .025) 90px, rgba(223, 189, 126, .025) 91px); pointer-events: none; }
.overview-head::after { content: ""; position: absolute; left: 0; top: 0; width: 58%; height: 1px; background: linear-gradient(90deg, transparent, #dec18c, transparent); }
.overview-copy { grid-area: copy; position: relative; z-index: 1; }
.overview-copy h2 { margin-top: 16px; font-size: clamp(27px, 2.6vw, 42px); font-weight: 500; letter-spacing: .04em; line-height: 1.45; }
.overview-copy h2 span { color: var(--blue); }
.overview-copy p { margin-top: 9px; font-size: 12px; letter-spacing: .12em; }
.overview-head > .head-tools { grid-area: tools; justify-content: flex-start; z-index: 1; }
.hero-art { grid-area: art; position: relative; min-height: 170px; align-self: stretch; pointer-events: none; }
.hero-orbit { position: absolute; width: 230px; height: 230px; top: 50%; left: 50%; border: 1px solid rgba(223, 189, 126, .2); border-radius: 50%; transform: translate(-50%, -50%) rotate(-28deg) scaleY(.73); }
.hero-orbit.inner { width: 180px; height: 180px; transform: translate(-50%, -50%) rotate(35deg) scaleY(.73); border-color: rgba(223, 189, 126, .3); }
.hero-diamond { position: absolute; top: 50%; left: 50%; width: 108px; height: 108px; transform: translate(-50%, -50%) rotate(45deg); border: 1px solid rgba(223, 189, 126, .5); background: linear-gradient(135deg, rgba(223, 189, 126, .08), transparent); box-shadow: 0 0 60px rgba(223, 189, 126, .1); }
.hero-monogram { position: absolute; inset: 0; display: grid; place-items: center; color: #e2c58d; filter: drop-shadow(0 4px 12px #d0a45833); }
.hero-caption { position: absolute; bottom: -9px; left: 0; right: 0; text-align: center; color: #b49c74; font-size: 7px; letter-spacing: .23em; }

/* 数据展柜 */
.stat-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; counter-reset: collection; }
.stat-group { min-width: 0; position: relative; counter-increment: collection; padding: 21px 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: linear-gradient(145deg, #202229, #171a21 72%); box-shadow: var(--shadow-1); }
.stat-group::after { content: "0" counter(collection); position: absolute; top: 17px; right: 20px; font: italic 21px var(--serif); color: rgba(223, 189, 126, .45); }
.stat-group:first-child { border-color: var(--line-strong); background: linear-gradient(125deg, #2d2922, #1b1e24 75%); }
.stat-group-title { display: flex; align-items: center; gap: 8px; margin: 0 34px 19px 0; font-size: 11px; font-weight: 500; letter-spacing: .12em; color: var(--ink-2); }
.sg-bar { width: 14px; height: 1px; flex: none; background: var(--gold-grad); }
.stats-mini { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 12px; }
.stat-mini { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 13px 0 5px; border-top: 1px solid var(--line); }
.sm-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sm-ic { display: grid; place-items: center; width: 25px; height: 25px; flex: none; border-radius: 7px; }
.sm-ic.blue { background: var(--blue-soft); color: var(--blue); }
.sm-ic.green { background: var(--green-soft); color: var(--green); }
.sm-ic.gray { background: var(--fill-2); color: var(--dim); }
.sm-k { color: var(--dim); font-size: 11px; line-height: 1.5; }
.sm-v { font-size: clamp(22px, 2.1vw, 31px); font-weight: 500; letter-spacing: -.035em; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sm-v.money { color: #e8cd98; text-shadow: 0 2px 18px rgba(223, 189, 126, .1); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(152px, 1fr)); gap: 14px; }
.stat { min-width: 0; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.stat.hl { border-color: var(--hl-line); }
.stat-k { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--dim); }
.stat.hl .stat-k svg { color: var(--blue); }
.stat-v { display: block; margin-top: 10px; font-size: 30px; font-weight: 500; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }

/* 通用面板 */
.asset-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.panel { min-width: 0; padding: 23px; background: linear-gradient(150deg, #1d2027, var(--card)); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.panel-title { margin: 0 0 20px; color: var(--ink); font-size: 15px; font-weight: 550; letter-spacing: .025em; }
.sub-panel { min-width: 0; background: var(--fill); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.sub-panel h4 { margin: 0 0 14px; font-size: 12px; font-weight: 550; letter-spacing: .04em; color: var(--ink-2); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h4 { margin: 0; font-size: 13px; color: var(--ink-2); }
.count { color: var(--blue); font: 11px var(--mono); margin-left: 8px; }

/* 操作与输入 */
.btn { appearance: none; border: 1px solid var(--line); border-radius: var(--r-btn); min-height: 38px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--btn-2-bg); color: var(--ink-2); font: 550 12px var(--font); letter-spacing: .025em; cursor: pointer; white-space: nowrap; user-select: none; transition: background .16s, border-color .16s, transform .16s, box-shadow .16s; }
.btn:hover { background: var(--btn-2-bg-hover); border-color: var(--line-strong); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--gold-grad); color: #241c10; border-color: #e1c387; box-shadow: var(--shadow-btn); font-weight: 700; }
.btn.primary:hover { background: linear-gradient(115deg, #f7e7c2, #ebcb93 45%, #d3a964); box-shadow: 0 6px 24px rgba(197, 153, 76, .28); }
.btn.danger { background: #8e3834; color: #fff0ed; border-color: #b5554f; }
.btn.block { width: 100%; }
.btn.small { min-height: 33px; padding: 0 14px; font-size: 12px; }
.btn.tiny { min-height: 29px; padding: 0 11px; font-size: 11px; gap: 5px; border-radius: 6px; }
.btn[disabled], .btn.disabled { opacity: .42; pointer-events: none; box-shadow: none; }
.btn.soft-danger { background: var(--red-soft); color: var(--red); border-color: transparent; }
.btn.soft-danger:hover { border-color: rgba(240, 155, 148, .25); }
.field { display: grid; gap: 8px; min-width: 0; font-size: 13px; }
.field > label { font-size: 11px; font-weight: 500; color: var(--dim); }
input, select, textarea { appearance: none; width: 100%; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--field-bg); color: var(--ink); font: 400 13px var(--font); transition: border-color .18s, box-shadow .18s; }
textarea { height: auto; min-height: 78px; padding: 11px 12px; resize: vertical; line-height: 1.65; }
select { background-image: var(--select-arrow); background-repeat: no-repeat; background-position: right 12px center; padding-right: 33px; cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
input::placeholder, textarea::placeholder { color: #87857f; opacity: 1; }
input:disabled, select:disabled, textarea:disabled { opacity: .6; cursor: not-allowed; }
.hint { margin: 10px 0 0; color: var(--dim); font-size: 12px; line-height: 1.8; }
.input-group { display: flex; align-items: center; gap: 6px; }
.input-group input { flex: 1; min-width: 0; }
.input-group .icon-btn { flex: none; }
.seg { display: inline-flex; align-items: stretch; padding: 3px; min-height: 38px; max-width: 100%; background: var(--seg-bg); border: 1px solid var(--line); border-radius: 9px; }
.seg button { border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 6px 14px; color: var(--dim); font: 500 11px var(--font); white-space: nowrap; cursor: pointer; transition: color .18s, background .18s; }
.seg button:hover { color: var(--ink); }
.seg button.on { color: var(--blue-hover); background: var(--seg-on); border-color: var(--line-strong); box-shadow: 0 2px 6px #0002; }
.form-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.form-row .field { min-width: 150px; }
.form-row .grow2 { flex: 2.5; min-width: min(220px, 100%); }
.create-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr)); gap: 18px; align-items: end; }
.search { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px; background: var(--field-bg); border: 1px solid var(--line-strong); border-radius: 8px; color: var(--dim); min-width: 160px; max-width: 100%; }
.search-lg { width: 230px; }
.search input { border: 0; padding: 0; height: 100%; background: transparent; box-shadow: none; font-size: 12px; }
.search input:focus { box-shadow: none; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.search-clear { display: grid; place-items: center; flex: none; width: 24px; height: 26px; border: 0; border-radius: 5px; background: transparent; color: var(--dim); cursor: pointer; }
.search-clear:hover { color: var(--blue); background: var(--blue-soft); }
.date-field { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; background: var(--field-bg); border: 1px solid var(--line-strong); border-radius: 8px; }
.date-field span { color: var(--dim); font-size: 11px; }
.date-field input { width: 128px; border: 0; padding: 0; background: transparent; font-size: 12px; }
.date-field input:focus { box-shadow: none; }
.date-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }

/* 表格：数据密度、金额与状态保留明确层级 */
.tblwrap { min-width: 0; max-width: 100%; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); scrollbar-width: thin; scrollbar-color: #554934 #14171d; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { position: sticky; top: 0; z-index: 1; padding: 15px 17px; background: var(--th-bg); text-align: left; color: #b9ab91; font-size: 10px; font-weight: 500; letter-spacing: .08em; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
td { padding: 16px 17px; border-bottom: 1px solid rgba(220, 193, 139, .08); vertical-align: middle; line-height: 1.6; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .16s; }
tbody tr:hover { background: rgba(223, 189, 126, .045); }
td b { font-weight: 550; }
td.num b, .amt { color: #ead2a7; font-variant-numeric: tabular-nums; }
.dev-row { cursor: pointer; }
.dev-row:hover .link { color: #f6dfaf; }
.cell-note, .cell-src { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-src a, .link { color: var(--link); text-decoration: none; }
.cell-src a:hover, .link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.link.mono { font-family: var(--mono); }
.ops, .ops-col { white-space: nowrap; }
.ops .btn, .ops-col .btn { margin-right: 5px; }
.ops .btn:last-child, .ops-col .btn:last-child { margin-right: 0; }
.cell-wide { min-width: 135px; }
.amt-inline { font-size: 14px; }
.cell-input { height: 30px; min-width: 100px; padding: 0 8px; border-color: transparent; background: transparent; border-radius: 5px; font-size: 12px; }
.cell-input:hover, .cell-input:focus { border-color: var(--line-strong); background: var(--field-bg); }
.addr { display: flex; align-items: center; gap: 7px; min-width: 0; }
.addr + .addr { margin-top: 6px; }
.addr .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tblwrap td .addr .mono { max-width: 168px; }
.copy-btn { display: inline-grid; place-items: center; flex: none; width: 25px; height: 25px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--dim); cursor: pointer; vertical-align: middle; transition: color .16s, background .16s; }
.copy-btn:hover { color: var(--blue); background: var(--blue-soft); border-color: var(--line); }
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 23px; padding: 2px 9px; border: 1px solid transparent; border-radius: 5px; font-size: 10px; white-space: nowrap; }
.badge.ok { background: var(--green-soft); color: var(--green); border-color: #8fcbb21a; }
.badge.warn { background: var(--orange-soft); color: var(--orange); border-color: #e7b77b1a; }
.badge.gray { background: var(--gray-soft); color: var(--dim); }
.badge.blue { background: var(--blue-soft); color: var(--blue); border-color: var(--line); }
.badge .dot { width: 4px; height: 4px; flex: none; border-radius: 50%; background: currentColor; }
.chip { display: inline-flex; align-items: center; min-height: 22px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--fill-2); color: var(--ink-2); font-size: 10px; white-space: nowrap; }
.chip.mono { font-family: var(--mono); }
.tok { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--blue-soft); color: var(--blue-hover); font: 600 10px var(--mono); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.pager-info { color: var(--dim); font-size: 11px; }
.pager-btns { display: flex; gap: 5px; flex-wrap: wrap; }
.pg { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--fill); color: var(--ink-2); font: 500 11px var(--font); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .16s; }
.pg:hover { background: var(--fill-2); border-color: var(--line-strong); }
.pg.on { background: var(--gold-grad); color: #241c10; border-color: #dfbd7e; font-weight: 700; }
.pg[disabled] { opacity: .3; pointer-events: none; }
.pg.ell { background: transparent; border-color: transparent; color: var(--dim); cursor: default; }

/* 业务表单沿用既有布局与绑定 */
.collect-grid { display: grid; gap: 13px; }
.collect-row { display: flex; align-items: center; gap: 14px; }
.collect-name { display: flex; align-items: center; gap: 8px; width: 120px; flex: none; color: var(--blue); font: 12px var(--mono); }
.collect-name .mini-avatar { width: 23px; height: 23px; font-size: 10px; }
.collect-row input { flex: 1; min-width: 0; }
.collect-save { display: flex; justify-content: flex-end; margin-top: 16px; }
.agent-cell { display: flex; align-items: center; gap: 9px; }
.agent-cell.sub { padding-left: 22px; }
.agent-cell.sub::before { content: ""; width: 8px; height: 8px; border-left: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); margin-right: -2px; }
.mini-avatar { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; font: 12px var(--serif); }

/* 浮层与设备详情 */
.mask, .drawer-mask { position: fixed; inset: 0; z-index: 100; background: var(--mask); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
.mask { display: grid; place-items: center; padding: 24px; }
.modal { width: 460px; max-width: 100%; max-height: 88vh; max-height: 88svh; overflow: auto; background: linear-gradient(145deg, #25252a, #181b22 45%); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-2); scrollbar-width: thin; }
.modal-lg { width: min(900px, 100%); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 21px 25px; border-bottom: 1px solid var(--line-strong); background: #1d2026; }
.modal-head h3 { margin: 0; font-size: 18px; font-weight: 550; }
.modal-body { padding: 26px; display: grid; gap: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.modal.center { padding: 36px 28px 28px; text-align: center; }
.modal-icon { width: 50px; height: 50px; margin: 0 auto 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.modal-icon.danger { color: var(--red); background: var(--red-soft); border-color: #f09b9426; }
.modal.center h3 { margin: 0 0 10px; font-size: 18px; font-weight: 550; }
.modal.center p { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.8; }
.modal.center .modal-actions { justify-content: center; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 101; width: min(640px, 94vw); display: flex; flex-direction: column; background: linear-gradient(140deg, #24242a, #161a21 30%); border-left: 1px solid var(--line-strong); box-shadow: -24px 0 100px #0007; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; padding: 25px 28px; border-bottom: 1px solid var(--line-strong); background: rgba(223, 189, 126, .025); }
.drawer-title { min-width: 0; }
.drawer-title h3 { margin: 0 0 5px; font-size: 20px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 24px 28px 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; scrollbar-width: thin; scrollbar-color: #554934 #14171d; }
.drawer-body > * { min-width: 0; max-width: 100%; }
.kv-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--fill); }
.kv { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 12px; min-width: 0; }
.kv:last-child { border-bottom: 0; }
.kv-k { color: var(--dim); }
.kv-v { min-width: 0; word-break: break-all; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.drawer .kv-v .mono { word-break: break-all; }
.drawer .addr .mono { max-width: 100%; flex: 1 1 auto; }
.drawer .sub-panel .tblwrap { overflow-x: auto; max-width: 100%; box-shadow: none; }
.drawer .sub-panel table { width: 100%; table-layout: fixed; }
.drawer .sub-panel td, .drawer .sub-panel th { padding: 11px 10px; overflow: hidden; text-overflow: ellipsis; }
.drawer .sub-panel td .mono { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.drawer .sub-panel td .addr .mono { max-width: 220px; }
.handle-form { display: flex; align-items: center; gap: 8px; }
.handle-form input { width: 170px; height: 31px; font-size: 12px; }
.plain-body { display: grid; gap: 16px; align-content: start; }
.plain-suggest { display: flex; align-items: center; gap: 12px; padding: 17px 20px; border: 1px solid var(--hl-line); border-radius: var(--r-md); background: linear-gradient(110deg, #3b3223, #242520); }
.plain-suggest .ps-k { display: flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 12px; }
.plain-suggest .ps-v { margin-left: auto; color: var(--blue-hover); font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; }
.plain-word { display: grid; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--fill); }
.plain-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plain-head b { margin-left: auto; color: var(--blue); }
.plain-text { margin: 0; padding: 15px; white-space: pre-wrap; word-break: break-word; font: 13px/1.9 var(--mono); color: var(--ink); background: #11151b; border: 1px solid var(--line); border-radius: var(--r-sm); }
.plain-addrs { display: grid; gap: 5px; }
.plain-addrs .addr { padding: 4px 0; }
.once-warn { display: flex; align-items: center; gap: 9px; padding: 13px 15px; background: var(--orange-soft); color: var(--orange); border: 1px solid #e7b77b26; border-radius: 9px; font-size: 12px; }
.once-row { margin-top: 13px; text-align: left; }
.once-row > label { display: block; margin-bottom: 7px; color: var(--dim); font-size: 12px; }
.once-row .note { margin-left: 5px; }
.once-val { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--field-bg); font-size: 12px; word-break: break-all; }
.once-val > .mono { flex: 1; min-width: 0; }

/* 反馈与空状态 */
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 260; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: min(400px, calc(100vw - 32px)); padding: 13px 18px 13px 12px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--shadow-2); color: var(--ink); font-size: 12px; pointer-events: auto; cursor: pointer; }
.t-ic { display: grid; place-items: center; width: 25px; height: 25px; flex: none; border-radius: 7px; }
.toast.ok .t-ic { color: var(--green); background: var(--green-soft); }
.toast.err .t-ic { color: var(--red); background: var(--red-soft); }
.toast.info .t-ic { color: var(--blue); background: var(--blue-soft); }
.empty { display: grid; place-items: center; gap: 14px; padding: 65px 24px; background: linear-gradient(145deg, #1c2027, #15181f); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--dim); }
.empty > svg { color: var(--blue); opacity: .7; }
.empty p { margin: 0; font-size: 12px; letter-spacing: .025em; }
.empty.compact { padding: 28px 18px; background: transparent; border: 0; }
.loading-rows { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 56px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--dim); font-size: 12px; }
.spin { display: inline-block; width: 17px; height: 17px; flex: none; border: 1px solid var(--line-strong); border-top-color: var(--blue); border-radius: 50%; animation: rot .8s linear infinite; }
.global-spin { position: fixed; top: 10px; right: 10px; z-index: 250; }
.global-spin::before { content: ""; display: block; width: 14px; height: 14px; border: 1px solid var(--line-strong); border-top-color: var(--blue); border-radius: 50%; animation: rot .8s linear infinite; }

/* 动效只用于状态转换；装饰保持静态。 */
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.view-enter-active { transition: opacity .25s var(--ease), transform .3s var(--ease); }
.view-leave-active { transition: opacity .13s; }
.view-enter-from { opacity: 0; transform: translateY(8px); }
.view-leave-to { opacity: 0; }
.fade-enter-active, .fade-leave-active { transition: opacity .24s; }
.fade-enter-from, .fade-leave-to { opacity: 0; }
.modal-enter-active, .modal-leave-active, .drawer-enter-active, .drawer-leave-active { transition: opacity .24s; }
.modal-enter-active .modal, .modal-leave-active .modal { transition: transform .28s var(--ease); }
.modal-enter-from, .modal-leave-to, .drawer-enter-from, .drawer-leave-to { opacity: 0; }
.modal-enter-from .modal, .modal-leave-to .modal { transform: translateY(12px) scale(.98); }
.drawer-enter-active .drawer, .drawer-leave-active .drawer { transition: transform .32s var(--ease); }
.drawer-enter-from .drawer, .drawer-leave-to .drawer { transform: translateX(100%); }
.toast-enter-active, .toast-leave-active { transition: opacity .22s, transform .28s var(--ease); }
.toast-enter-from, .toast-leave-to { opacity: 0; transform: translateY(-8px); }

/* 平板与窄屏：导航和筛选保持可达，表格仅在容器内部横向滚动。 */
@media (min-width: 1800px) {
  .stat-groups { gap: 24px; }
  .stat-group { padding: 25px 28px; }
  .sm-v { font-size: 34px; }
}
@media (max-width: 1250px) {
  :root { --sidebar-w: 230px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .brand { gap: 9px; }
  .brand-copy b { font-size: 12px; }
  .brand-copy small { font-size: 7px; }
  .overview-head { grid-template-columns: minmax(0, 1fr) 180px; padding: 27px; }
  .hero-art { transform: scale(.85); }
  .overview-copy h2 span { display: block; }
  .stat-group { padding: 18px; }
  .stats-mini { gap: 10px; }
  .page-head:not(.overview-head) { flex-wrap: wrap; }
  .page-head:not(.overview-head) .head-tools { justify-content: flex-start; }
}
@media (max-width: 1040px) {
  .shell { flex-direction: column; }
  .sidebar { position: relative; height: auto; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 20px 24px 14px; border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .sidebar::after { display: none; }
  .brand { padding: 0; }
  .brand-copy b { font-size: 14px; }
  .brand-copy small { font-size: 8px; }
  .side-foot { grid-column: 2; grid-row: 1; margin: 0; padding: 0; border: 0; }
  .user-chip { margin-right: 9px; }
  .sidebar nav { grid-column: 1 / -1; display: flex; flex-direction: row; flex-wrap: wrap; gap: 5px; overflow: visible; padding: 0; }
  .nav-label { display: none; }
  .nav-item { width: auto; min-height: 39px; padding: 9px 13px; }
  .nav-group { display: contents; }
  .nav-sub { order: 10; flex: 1 0 100%; max-height: 220px; overflow: auto; border-top: 1px solid var(--line); padding-top: 12px; }
  .nav-tree { max-width: 480px; }
  .nav-sub-item { width: min(480px, 100%); }
  .main { padding: 0 24px 48px; }
  .workspace-bar { min-height: 65px; margin-bottom: 24px; }
  .overview-head { grid-template-columns: minmax(0, 1fr) 230px; }
  .overview-copy h2 span { display: inline; }
  .hero-art { transform: none; }
  .asset-split { grid-template-columns: minmax(0, 1fr); }
  .login-screen { gap: 40px; padding: 38px; grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr); }
  .login-card { padding: 28px; }
  .showcase-art { width: 280px; left: 0; }
  .art-letter svg { width: 100px; height: 100px; }
  .showcase-copy h2 { font-size: 38px; }
  .showcase-foot { flex-direction: column; gap: 8px; }
}
@media (max-width: 760px) {
  .login-screen { display: flex; flex-direction: column; justify-content: center; padding: 44px 24px; gap: 30px; }
  .login-showcase { min-height: 0; align-self: auto; }
  .showcase-art, .showcase-copy, .showcase-foot { display: none; }
  .showcase-brand { font-size: 14px; }
  .showcase-monogram svg { width: 38px; height: 38px; }
  .login-card { max-width: 420px; }
  .login-card-top { margin-bottom: 27px; }
  .login-screen::before { inset: 12px; }
  .stat-groups { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .sm-v { font-size: 27px; }
  .stat-group { padding: 20px; }
  .stats-mini { gap: 15px; }
  .overview-head { grid-template-columns: minmax(0, 1fr) 120px; padding: 25px; }
  .overview-copy h2 span { display: block; }
  .overview-head .hero-art { transform: scale(.7); margin-left: -20px; }
  .overview-head .hero-caption { bottom: -5px; white-space: nowrap; left: -40px; right: -40px; }
  .head-tools { gap: 8px; }
  .page-head h2 { font-size: 25px; }
}
@media (max-width: 480px) {
  .sidebar { gap: 14px; padding: 17px 16px 12px; }
  .brand { gap: 9px; }
  .brand-mark { width: 31px; height: 37px; border-radius: 9px; }
  .brand-mark svg { width: 19px; }
  .brand-copy b { font-size: 11px; letter-spacing: .13em; }
  .brand-copy small { font-size: 6px; letter-spacing: .025em; margin-top: 4px; }
  .side-foot { gap: 2px; }
  .side-foot .avatar, .user-meta span { display: none; }
  .user-chip { max-width: 54px; margin-right: 3px; }
  .user-meta b { font-size: 10px; }
  .side-foot .icon-btn { width: 29px; height: 34px; }
  .sidebar nav { gap: 4px; }
  .nav-item { min-height: 40px; padding: 8px 10px; gap: 7px; font-size: 11px; }
  .nav-item svg { width: 14px; }
  .nav-chev { top: 6px; right: 4px; }
  .main { padding: 0 16px 40px; }
  .workspace-bar { min-height: 58px; margin-bottom: 20px; }
  .workspace-label { font-size: 10px; gap: 9px; }
  .workspace-caption { font-size: 7px; letter-spacing: .1em; }
  .live-chip { font-size: 9px; padding: 0 8px; min-height: 25px; }
  .overview-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "tools"; gap: 21px; padding: 26px 22px; }
  .overview-head .hero-art { position: absolute; right: -38px; top: 12px; width: 200px; height: 180px; opacity: .23; transform: scale(.7); z-index: -1; }
  .overview-head .hero-caption { display: none; }
  .overview-copy h2 { font-size: 29px; line-height: 1.65; }
  .overview-copy p { font-size: 11px; }
  .eyebrow { font-size: 8px; letter-spacing: .18em; }
  .page-head { gap: 16px; padding-bottom: 19px; margin-bottom: 20px; }
  .page-head h2 { font-size: 24px; }
  .page-head p { font-size: 11px; }
  .head-tools { width: 100%; justify-content: flex-start; }
  .head-tools > select { max-width: 100%; }
  .head-tools .search-lg { flex: 1; width: auto; min-width: 180px; }
  .seg button { padding: 6px 10px; font-size: 11px; }
  .head-tools .seg { flex-wrap: wrap; height: auto; }
  .head-tools > .icon-btn { width: 37px; height: 37px; }
  .stats-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
  .stat-group { padding: 19px; }
  .stat-group-title { font-size: 10px; }
  .sm-v { font-size: 27px; }
  .sm-k { font-size: 10px; }
  .sm-head { gap: 7px; }
  .sm-ic { width: 23px; height: 23px; }
  .sec-title { margin-top: 25px; font-size: 14px; }
  th { padding: 13px 14px; }
  td { padding: 14px; }
  .panel { padding: 18px; }
  .date-field { padding: 0 8px; }
  .head-tools .date-field input { width: 121px; }
  .collect-name { width: 68px; font-size: 11px; }
  .collect-row { gap: 9px; }
  .pager { align-items: flex-start; gap: 12px; }
  .pg { min-width: 34px; height: 36px; }
  .mask { padding: 16px; }
  .modal { max-height: 90svh; }
  .modal-body { padding: 21px; }
  .modal-head { padding: 18px 21px; }
  .drawer { width: 100%; border-left: 0; }
  .drawer-head { padding: 21px 19px; }
  .drawer-body { padding: 18px 16px 40px; gap: 15px; }
  .drawer-title h3 { font-size: 18px; }
  .sub-panel { padding: 15px; }
  .kv { grid-template-columns: 84px minmax(0, 1fr); padding: 10px 13px; gap: 9px; font-size: 11px; }
  .plain-suggest { gap: 8px; padding: 14px; flex-wrap: wrap; }
  .plain-suggest .ps-v { font-size: 23px; }
  .toasts { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); right: 16px; }
  .login-card { padding: 25px; }
  .login-card h1 { font-size: 25px; }
  .login-sub { font-size: 11px; }
  .login-foot { font-size: 7px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
