/* KeyForge 控制台 —— 深色控制面风格 v2（打磨版） */
:root {
  --bg: #0a100d;
  --bg-soft: #0d1511;
  --panel: #141d18;
  --panel-2: #18231d;
  --panel-3: #1d2a23;
  --line: #24332b;
  --line-soft: rgba(36, 51, 43, .55);
  --text: #e9f1ec;
  --muted: #8da69c;
  --faint: #5f7469;
  --teal: #6fd3c0;
  --teal-deep: #3aa58d;
  --coral: #e8907e;
  --lime: #c8de9c;
  --amber: #e5c07b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .5);
  --glow-teal: 0 6px 26px rgba(58, 165, 141, .32);
  --inset-hairline: inset 0 1px 0 rgba(255, 255, 255, .045);
  --font: "Inter", "HarmonyOS Sans SC", "MiSans", "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(58, 165, 141, .10), transparent 60%),
    radial-gradient(900px 480px at 100% 108%, rgba(232, 144, 126, .07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 14px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .5; z-index: 0;
  background-image:
    linear-gradient(rgba(111, 211, 192, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 211, 192, .028) 1px, transparent 1px);
  background-size: 34px 34px; }
::selection { background: rgba(111, 211, 192, .28); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #243128; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #33503f; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.hidden { display: none !important; }
a { color: var(--teal); }
code { font-family: "Cascadia Code", "JetBrains Mono", Consolas, monospace; font-size: 12px; color: var(--lime); }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--teal); margin: 0 0 6px; }
.muted { color: var(--muted); }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: .01em; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }

/* ---------- 按钮 ---------- */
.primary, .ghost, .icon-btn, .text-btn { border-radius: var(--radius-sm); border: 1px solid transparent; transition: all .16s ease; }
.primary { display: inline-flex; align-items: center; gap: 10px; justify-content: space-between;
  background: linear-gradient(135deg, #3aa58d, #276e5d); border-color: rgba(111, 211, 192, .5);
  color: #f2fbf7; padding: 10px 18px; font-weight: 600; letter-spacing: .02em;
  box-shadow: var(--glow-teal); }
.primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.primary:active { transform: translateY(1px); filter: brightness(.96); }
.primary.compact { padding: 7px 14px; box-shadow: 0 4px 16px rgba(58, 165, 141, .22); }
.primary b { opacity: .85; font-weight: 400; }
.ghost { background: rgba(255, 255, 255, .028); border-color: var(--line); color: var(--muted); padding: 7px 14px; }
.ghost:hover { color: var(--text); border-color: rgba(111, 211, 192, .55); background: rgba(111, 211, 192, .07); }
.ghost:disabled { opacity: .45; }
.icon-btn { background: transparent; border: none; color: var(--muted); font-size: 20px; padding: 2px 9px; border-radius: 8px; }
.icon-btn:hover { color: var(--coral); background: rgba(232, 144, 126, .1); }
.text-btn { background: none; border: none; color: var(--muted); padding: 2px 0; }
.text-btn:hover { color: var(--coral); }
button:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 登录页 ---------- */
.login-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.brand-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  padding: 9vh 8vw; border-right: 1px solid var(--line);
  background:
    radial-gradient(640px 320px at 28% 36%, rgba(58, 165, 141, .16), transparent 65%),
    linear-gradient(150deg, #101a15, #0a100d 62%); }
.brand-panel h1 { font-size: 54px; line-height: 1.16; letter-spacing: .045em; }
.brand-panel h1 span { color: transparent; background: linear-gradient(100deg, #8fe6d4, #4fbfa8 70%);
  -webkit-background-clip: text; background-clip: text; }
.lede { color: var(--muted); max-width: 430px; margin: 20px 0 30px; font-size: 15px; line-height: 1.9; }
.signal { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; font-size: 10px;
  letter-spacing: .22em; color: var(--lime); border: 1px solid rgba(200, 222, 156, .28);
  border-radius: 999px; padding: 7px 16px; background: rgba(200, 222, 156, .05); }
.signal i, .status-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 4px rgba(200, 222, 156, .14); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.login-orbit { position: absolute; border: 1px solid rgba(111, 211, 192, .16); border-radius: 50%; }
.orbit-one { width: 480px; height: 480px; right: -150px; top: -170px;
  box-shadow: inset 0 0 80px rgba(111, 211, 192, .07); }
.orbit-two { width: 300px; height: 300px; right: 70px; bottom: -140px; border-color: rgba(232, 144, 126, .15); }
.login-card { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 9vh 6.5vw;
  background: var(--bg-soft); position: relative; }
.login-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(111, 211, 192, .5), transparent); }
.login-brand strong { font-size: 21px; letter-spacing: .02em; }
.login-brand small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.login-card h2 { font-size: 27px; margin-bottom: 4px; }
.login-card form { display: flex; flex-direction: column; gap: 15px; max-width: 380px; }
.login-card label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.login-card input { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); padding: 12px 15px; outline: none; transition: border-color .16s, box-shadow .16s; }
.login-card input:focus { border-color: rgba(111, 211, 192, .65); box-shadow: 0 0 0 3px rgba(111, 211, 192, .12); }
.login-card .primary { margin-top: 4px; }
.login-footnote { color: var(--faint); font-size: 12px; }
.error { color: var(--coral); font-size: 12px; min-height: 18px; margin: 0; }

/* ---------- 应用布局 ---------- */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: 236px 1fr; grid-template-rows: 62px 1fr;
  min-height: 100vh; }
.topbar { grid-column: 1 / 3; display: flex; align-items: center; gap: 26px; padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 16, 13, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 5; }
.topbar-brand strong { font-size: 16px; letter-spacing: .03em; }
.topbar-brand small { display: block; font-size: 9px; letter-spacing: .26em; color: var(--teal); opacity: .85; }
.breadcrumb { color: var(--faint); font-size: 13px; display: flex; gap: 9px; align-items: center; }
.breadcrumb span { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-soft);
  border-radius: 7px; padding: 2px 10px; font-size: 12px; }
.breadcrumb strong { color: var(--text); }
.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 13px; }
.topbar-user small { display: block; font-size: 10px; letter-spacing: .14em; color: var(--teal); text-align: right; }
.topbar-user strong { font-size: 13px; display: block; text-align: right; }
#avatar { width: 35px; height: 35px; border-radius: 50%; color: #eafff8; font-size: 14px; font-weight: 600;
  background: linear-gradient(135deg, #3aa58d, #23564a); box-shadow: inset 0 0 0 1px rgba(111, 211, 192, .4); }
aside { border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(20, 29, 24, .72), rgba(13, 21, 17, .4)); }
.nav-caption { font-size: 9px; letter-spacing: .28em; color: var(--faint); margin: 0 0 10px 13px; }
aside nav { display: flex; flex-direction: column; gap: 5px; }
aside nav button { position: relative; display: flex; align-items: center; gap: 11px; background: none; border: none;
  color: var(--muted); padding: 11px 13px; border-radius: var(--radius-sm); text-align: left; font-size: 13px;
  transition: all .15s ease; }
aside nav button:hover { color: var(--text); background: rgba(111, 211, 192, .07); }
aside nav button.active { color: var(--text); background: rgba(111, 211, 192, .13); font-weight: 600; }
aside nav button.active::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px;
  border-radius: 3px; background: var(--teal); box-shadow: 0 0 12px rgba(111, 211, 192, .8); }
aside nav button.active .nav-icon { color: var(--teal); }
.nav-icon { display: grid; place-items: center; }
.nav-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.aside-foot { margin-top: auto; padding: 14px 12px 4px; border-top: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 9px; }
.status-dot { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }

/* ---------- 内容区 ---------- */
.content { padding: 30px 34px 64px; overflow-x: hidden; }
.page-header { margin-bottom: 24px; }
.page-header h2 { font-size: 27px; }
.page-description { color: var(--muted); margin: 7px 0 0; }
.flash { position: fixed; top: 74px; right: 34px; z-index: 30; background: var(--panel-2);
  border: 1px solid rgba(111, 211, 192, .55); border-left: 3px solid var(--teal); color: var(--text);
  padding: 11px 18px; border-radius: 10px; box-shadow: var(--shadow); font-size: 13px;
  animation: slide-in .22s ease; max-width: 420px; }
@keyframes slide-in { from { opacity: 0; transform: translateX(24px); } }
.panel { background: linear-gradient(180deg, #151f1a, #121a16); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px;
  box-shadow: var(--inset-hairline), 0 10px 30px rgba(0, 0, 0, .25); }
.panel.wide { grid-column: 1 / -1; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-head h3 { font-size: 16px; }
.panel-head p { color: var(--muted); font-size: 12px; margin: 3px 0 0; }

/* ---------- 概览 ---------- */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 18px; }
.metric { position: relative; background: linear-gradient(180deg, #151f1a, #121a16); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px 16px 24px; overflow: hidden; transition: transform .16s, border-color .16s; }
.metric::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 3px;
  border-radius: 3px; background: var(--accent, var(--teal)); box-shadow: 0 0 14px var(--accent, var(--teal)); }
.metric:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent, var(--teal)) 45%, var(--line)); }
.metric .label { font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.metric strong { display: block; font-size: 31px; margin: 7px 0 3px; font-variant-numeric: tabular-nums;
  letter-spacing: .01em; }
.metric small { color: var(--faint); font-size: 11px; letter-spacing: .08em; }
.inventory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.inventory-grid article { display: flex; align-items: center; gap: 16px; padding: 15px 16px;
  border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(255, 255, 255, .015); }
.ring { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 18px;
  font-weight: 650; font-variant-numeric: tabular-nums; }
.ring.teal { border: 2px solid rgba(111, 211, 192, .8); color: var(--teal); box-shadow: 0 0 18px rgba(111, 211, 192, .18), inset 0 0 14px rgba(111, 211, 192, .08); }
.ring.coral { border: 2px solid rgba(232, 144, 126, .8); color: var(--coral); box-shadow: 0 0 18px rgba(232, 144, 126, .16), inset 0 0 14px rgba(232, 144, 126, .07); }
.ring.lime { border: 2px solid rgba(200, 222, 156, .8); color: var(--lime); box-shadow: 0 0 18px rgba(200, 222, 156, .16), inset 0 0 14px rgba(200, 222, 156, .07); }
.inventory-grid strong { font-size: 14px; display: block; }
.inventory-grid p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; }
.guide-grid small { display: block; color: var(--faint); margin-bottom: 5px; letter-spacing: .06em; }
.guide-grid code { display: block; background: #0b110e; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; overflow-x: auto; color: #a8e3c8; }

/* ---------- 工具栏 / 筛选 ---------- */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 7px 13px; min-width: 250px; color: var(--faint); transition: border-color .16s, box-shadow .16s; }
.search:focus-within { border-color: rgba(111, 211, 192, .6); box-shadow: 0 0 0 3px rgba(111, 211, 192, .1); }
.search input { background: none; border: none; outline: none; color: var(--text); width: 100%; }
.search input::placeholder { color: var(--faint); }
.action-status { color: var(--muted); font-size: 12px; margin-right: auto; }
.section-title { font-size: 18px; }
.rank-filters { margin-left: auto; display: flex; gap: 10px; }
.rank-filters select, .filter-bar select { background: var(--panel); border: 1px solid var(--line);
  color: var(--text); border-radius: 8px; padding: 7px 10px; outline: none; cursor: pointer; transition: border-color .15s; }
.rank-filters select:hover, .filter-bar select:hover { border-color: rgba(111, 211, 192, .5); }
.filter-bar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
  background: rgba(255, 255, 255, .014); border: 1px dashed var(--line-soft); border-radius: 12px; padding: 12px 14px; }
.filter-bar label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--muted); }
.filter-count { color: var(--faint); font-size: 12px; margin-left: auto; align-self: center; }
.filter-reset:disabled { opacity: .4; }

/* ---------- 表格 ---------- */
.table-panel { padding: 4px 0 2px; overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
  font-weight: 600; padding: 12px 16px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
  background: rgba(255, 255, 255, .015); }
td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; font-size: 13px; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: rgba(111, 211, 192, .045); }
td.name strong { display: block; font-weight: 600; }
td.name small { color: var(--faint); font-size: 11px; }
td .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
td .row-actions .ghost { padding: 4px 11px; font-size: 12px; border-radius: 8px; }
td.empty { text-align: center; color: var(--faint); padding: 44px 16px; }
td b { font-variant-numeric: tabular-nums; }
.loading-bar { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--line), var(--panel-3), var(--line));
  background-size: 200% 100%; animation: shimmer 1.2s infinite; min-width: 60px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.secret { display: flex; align-items: center; gap: 8px; }
.secret code { background: #0b110e; border: 1px solid var(--line); border-radius: 7px; padding: 4px 9px;
  max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #a8e3c8; }
.secret .copy { padding: 3px 9px; font-size: 11px; }
.tag { display: inline-block; background: rgba(111, 211, 192, .1); color: var(--teal);
  border: 1px solid rgba(111, 211, 192, .22); border-radius: 7px; padding: 2px 9px; font-size: 11px; margin: 1px 4px 1px 0; }
.tag.dim { background: rgba(141, 166, 156, .09); color: var(--muted); border-color: rgba(141, 166, 156, .22); }
.tag.priority-tag { background: rgba(229, 192, 123, .09); color: var(--amber); border-color: rgba(229, 192, 123, .25); }
.tag.proto { background: rgba(200, 222, 156, .08); color: var(--lime); border-color: rgba(200, 222, 156, .22); }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; border-radius: 999px; padding: 3px 11px; font-weight: 500; }
.pill i, .pill::before { content: "●"; font-size: 8px; }
.pill.good { color: var(--lime); background: rgba(200, 222, 156, .09); border: 1px solid rgba(200, 222, 156, .22); }
.pill.bad { color: var(--coral); background: rgba(232, 144, 126, .09); border: 1px solid rgba(232, 144, 126, .22); }
.pill.warn { color: var(--amber); background: rgba(229, 192, 123, .09); border: 1px solid rgba(229, 192, 123, .22); }
.quota-ready { color: var(--lime); font-size: 12px; }
.quota-reset { font-size: 11px; color: var(--amber); }
.quota-reset small { display: block; color: var(--faint); }
.truncate { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.rank-table td:nth-child(3) { font-variant-numeric: tabular-nums; }
.rank-medal { display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 50%;
  font-size: 12px; font-weight: 650; }
.rank-1 { background: rgba(229, 192, 123, .16); color: var(--amber); border: 1px solid rgba(229, 192, 123, .4); }
.rank-2 { background: rgba(200, 222, 156, .14); color: var(--lime); border: 1px solid rgba(200, 222, 156, .38); }
.rank-3 { background: rgba(232, 144, 126, .14); color: var(--coral); border: 1px solid rgba(232, 144, 126, .38); }

/* ---------- 模态与表单 ---------- */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(4, 8, 6, .72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: grid; place-items: center; padding: 24px; animation: fade-in .16s ease; }
@keyframes fade-in { from { opacity: 0; } }
.modal-card { position: relative; width: min(720px, 100%); max-height: 90vh; overflow-y: auto;
  background: linear-gradient(180deg, #1a2620, #151f1a); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 28px; box-shadow: var(--shadow); animation: pop-in .18s ease; }
.modal-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, transparent, rgba(111, 211, 192, .55), transparent); }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.modal-card.narrow { width: min(480px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.modal-head h3 { font-size: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 16px; margin-bottom: 14px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.form-grid .span-2 { grid-column: 1 / 3; }
.form-grid input, .form-grid select { background: #0d1411; border: 1px solid var(--line); border-radius: 9px;
  color: var(--text); padding: 9px 12px; outline: none; width: 100%; transition: border-color .15s, box-shadow .15s; }
.form-grid input:focus, .form-grid select:focus { border-color: rgba(111, 211, 192, .6); box-shadow: 0 0 0 3px rgba(111, 211, 192, .1); }
.form-grid input::placeholder { color: var(--faint); }
.form-help { color: var(--faint); font-size: 11px; }
.check-line { display: flex; flex-direction: row !important; align-items: center; gap: 9px !important; }
.check-group { display: flex; flex-wrap: wrap; gap: 8px; }
.check-group label { flex-direction: row; align-items: center; gap: 7px; background: #0d1411;
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; cursor: pointer; transition: border-color .15s; }
.check-group label:hover { border-color: rgba(111, 211, 192, .5); }
.secret-box { display: flex; align-items: center; gap: 12px; margin: 16px 0 20px; }
.secret-box code { flex: 1; background: #0b110e; border: 1px dashed rgba(111, 211, 192, .6); border-radius: var(--radius-sm);
  padding: 13px 15px; word-break: break-all; font-size: 13px; color: #a8e3c8; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {

/* ---------- 告警面板 ---------- */
.alert-list { display: flex; flex-direction: column; gap: 8px; }
.alert-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid rgba(232, 144, 126, .28); background: rgba(232, 144, 126, .06); font-size: 13px; }
.alert-item.cooling { border-color: rgba(229, 192, 123, .3); background: rgba(229, 192, 123, .06); }
.alert-item .alert-name { font-weight: 600; }
.alert-item small { color: var(--muted); }
.alert-item .alert-msg { margin-left: auto; color: var(--coral); max-width: 40%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.alert-item.cooling .alert-msg { color: var(--amber); }
.alert-empty { color: var(--faint); font-size: 13px; padding: 8px 4px; }

/* ---------- 趋势图 ---------- */
#trendChart { width: 100%; display: block; }
.chart-hint { color: var(--faint); font-size: 11px; margin-top: 8px; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 0 8px; }

/* ---------- 表单补充 ---------- */
.form-grid textarea { background: #0d1411; border: 1px solid var(--line); border-radius: 9px;
  color: var(--text); padding: 9px 12px; outline: none; width: 100%; resize: vertical;
  font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; line-height: 1.7;
  transition: border-color .15s, box-shadow .15s; }
.form-grid textarea:focus { border-color: rgba(111, 211, 192, .6); box-shadow: 0 0 0 3px rgba(111, 211, 192, .1); }
.toolbar select { background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 8px 10px; outline: none; cursor: pointer; }
.toolbar select:hover { border-color: rgba(111, 211, 192, .5); }

/* ---------- 明细列 ---------- */
.token-in { color: var(--teal); font-variant-numeric: tabular-nums; }
.token-out { color: var(--amber); font-variant-numeric: tabular-nums; }
.pool-count { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--teal); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-panel { display: none; }
  .app { grid-template-columns: 64px 1fr; }
  aside nav button { justify-content: center; }
  aside nav button span.nav-icon + * { display: none; }
  .nav-caption, .aside-foot .status-dot span { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .content { padding: 22px 18px 50px; }
  .admin-only-col { display: none; }
}
