/* ==========================================================================
   ATLAS UI — 全新设计语言（第三套，与前两版无复用）
   --------------------------------------------------------------------------
   设计立场：数据密集型后台 → 工程感、方正、克制
     · 色相：石墨 ink #16181d + 深青绿 emerald #0b6b53（前两版为蓝）
     · 几何：2px 直角为主，控件 34px，间距 4/8/12/20/32
     · 布局：72px 图标导航轨 + 命令栏 + 工作区（非宽侧栏）
     · 表格：深色表头 + 单元格竖线（非无框隔行）
     · 层级：靠边框、留白与字重，不靠阴影与渐变
   本文件为独立实现，不使用 enterprise.css / console.css 的任何规则。
   ========================================================================== */

:root {
  --a-ink:        #16181d;
  --a-ink-2:      #39404b;
  --a-ink-3:      #6b7482;
  --a-ink-4:      #9aa3b0;

  --a-bg:         #f4f5f6;
  --a-surface:    #ffffff;
  --a-surface-2:  #f8f9fa;
  --a-line:       #d9dde3;
  --a-line-2:     #e7eaee;

  --a-accent:     #0b6b53;
  --a-accent-2:   #0e8a6a;
  --a-accent-dim: #084f3e;
  --a-accent-bg:  #e7f2ee;
  --a-accent-line:#b7ddd2;

  --a-warn:       #a15c07;
  --a-warn-bg:    #fbf1e2;
  --a-danger:     #b42318;
  --a-danger-bg:  #fbeae8;

  --a-r:          2px;
  --a-r-md:       4px;
  --a-h:          34px;
  --a-h-sm:       28px;
  --a-h-lg:       40px;
  --a-rail:       72px;
  --a-bar:        56px;

  --a-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --a-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
            "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--a-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--a-ink);
  background: var(--a-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 10px; font-weight: 600; letter-spacing: -.01em; color: var(--a-ink); }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 14px; }
h4 { font-size: 13px; }
p  { margin: 0 0 10px; color: var(--a-ink-2); }
a  { color: var(--a-accent); text-decoration: none; }
a:hover { color: var(--a-accent-2); text-decoration: underline; }
small, .a-muted { font-size: 11.5px; color: var(--a-ink-3); }
code, pre, .a-mono { font-family: var(--a-mono); font-size: 12px; }

:focus-visible { outline: 2px solid var(--a-accent-line); outline-offset: 1px; }

/* ------------------------------------------------------------ app shell */
.app-shell {
  display: grid;
  grid-template-columns: var(--a-rail) minmax(0, 1fr);
  min-height: 100vh;
}

/* icon rail */
.rail {
  background: var(--a-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.rail__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--a-accent);
  color: #fff;
  border-radius: var(--a-r);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.04em;
  margin-bottom: 12px;
}
.rail__item {
  width: 44px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--a-r);
  color: #8b93a1;
  font-size: 17px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}
.rail__item:hover { background: #21242b; color: #e6e9ee; text-decoration: none; }
.rail__item.is-active { background: #21242b; color: #fff; }
.rail__item.is-active::before {
  content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px;
  width: 2px; background: var(--a-accent-2);
}
.rail__spacer { flex: 1; }
.rail__label {
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: .16em;
  color: #5f6773;
  text-transform: uppercase;
  margin-top: 8px;
}

/* workspace + command bar */
.workspace { min-width: 0; display: flex; flex-direction: column; }
.commandbar {
  height: var(--a-bar);
  background: var(--a-surface);
  border-bottom: 1px solid var(--a-line);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.commandbar__title { font-size: 14px; font-weight: 600; }
.commandbar__crumb { font-size: 11.5px; color: var(--a-ink-3); }
.commandbar__spacer { flex: 1; }
.commandbar__actions { display: flex; align-items: center; gap: 8px; }

.canvas { padding: 20px 22px 48px; }
.canvas--flush { padding: 0; }
.canvas__head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.canvas__head h1 { font-size: 18px; margin: 0; }
.canvas__head .a-muted { padding-bottom: 2px; }

/* ------------------------------------------------------------ tabs */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--a-line);
  background: var(--a-surface);
  padding: 0 22px;
  overflow-x: auto;
}
.tabs__item {
  height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--a-ink-3);
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  white-space: nowrap;
}
.tabs__item:hover { color: var(--a-ink); }
.tabs__item.is-active { color: var(--a-accent); border-bottom-color: var(--a-accent); font-weight: 600; }
.tabs__count {
  min-width: 18px; height: 17px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--a-surface-2); border: 1px solid var(--a-line);
  border-radius: 9px; font-size: 10.5px; color: var(--a-ink-3);
}
.tabs__item.is-active .tabs__count { background: var(--a-accent-bg); border-color: var(--a-accent-line); color: var(--a-accent); }
.panel { display: none; }
.panel.is-active { display: block; }

/* ------------------------------------------------------------ surfaces */
.card {
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-radius: var(--a-r);
}
.card__head {
  padding: 11px 14px;
  border-bottom: 1px solid var(--a-line-2);
  display: flex; align-items: center; gap: 10px;
}
.card__head h3 { margin: 0; font-size: 12.5px; letter-spacing: .02em; text-transform: uppercase; color: var(--a-ink-2); }
.card__head .a-muted { margin-left: auto; }
.card__body { padding: 14px; }
.card__body--tight { padding: 0; }
.card__foot { padding: 10px 14px; border-top: 1px solid var(--a-line-2); background: var(--a-surface-2); }

.stack { display: grid; gap: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }

/* metric row */
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-box {
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-left: 3px solid var(--a-ink);
  padding: 13px 14px;
}
.metric-box--accent { border-left-color: var(--a-accent); }
.metric-box__k { font-size: 11px; color: var(--a-ink-3); letter-spacing: .04em; text-transform: uppercase; }
.metric-box__v { font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.metric-box__d { font-size: 11px; color: var(--a-ink-3); margin-top: 2px; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: var(--a-h); padding: 0 13px;
  border: 1px solid var(--a-line);
  border-radius: var(--a-r);
  background: var(--a-surface);
  color: var(--a-ink);
  font-family: var(--a-sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { background: var(--a-surface-2); border-color: var(--a-ink-4); color: var(--a-ink); text-decoration: none; }
.btn:disabled, .btn[aria-disabled="true"] { color: var(--a-ink-4); background: var(--a-surface-2); border-color: var(--a-line-2); cursor: not-allowed; }
.btn--primary { background: var(--a-accent); border-color: var(--a-accent); color: #fff; }
.btn--primary:hover { background: var(--a-accent-2); border-color: var(--a-accent-2); color: #fff; }
.btn--danger { color: var(--a-danger); border-color: #e8c4c0; }
.btn--danger:hover { background: var(--a-danger-bg); border-color: var(--a-danger); color: var(--a-danger); }
.btn--ghost { border-color: transparent; background: transparent; color: var(--a-ink-2); }
.btn--ghost:hover { background: var(--a-surface-2); border-color: var(--a-line); }
.btn--sm { height: var(--a-h-sm); padding: 0 9px; font-size: 11.5px; }
.btn--lg { height: var(--a-h-lg); padding: 0 20px; font-size: 13px; }
.btn--block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------ forms */
.field { display: block; margin-bottom: 13px; }
.field__label { display: block; font-size: 11.5px; font-weight: 600; color: var(--a-ink-2); margin-bottom: 5px; letter-spacing: .02em; }
.field__hint { display: block; font-size: 11px; color: var(--a-ink-4); margin-top: 4px; }
.input, .select, .textarea {
  width: 100%;
  height: var(--a-h);
  padding: 0 10px;
  border: 1px solid var(--a-line);
  border-radius: var(--a-r);
  background: var(--a-surface);
  color: var(--a-ink);
  font-family: var(--a-sans);
  font-size: 12.5px;
  outline: none;
}
.textarea { height: auto; min-height: 108px; padding: 8px 10px; resize: vertical; line-height: 1.6; font-family: var(--a-mono); font-size: 11.5px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--a-ink-4); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--a-accent); box-shadow: 0 0 0 3px rgba(11, 107, 83, .12); }
.input::placeholder, .textarea::placeholder { color: var(--a-ink-4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row--3 { grid-template-columns: repeat(3, 1fr); }

.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  width: 34px; height: 18px; border-radius: 9px;
  background: #cfd5dd; border: 1px solid transparent; position: relative; transition: background .15s;
}
.switch__track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px;
  background: #fff; border-radius: 50%; transition: transform .15s;
}
.switch input:checked + .switch__track { background: var(--a-accent); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch__text { font-size: 12.5px; color: var(--a-ink-2); }

/* ------------------------------------------------------------ tables (dark head + rules) */
.table-wrap { overflow-x: auto; border: 1px solid var(--a-line); background: var(--a-surface); }
table.grid-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.grid-table thead th {
  background: var(--a-ink);
  color: #e8ebf0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
  padding: 9px 12px;
  white-space: nowrap;
  border-right: 1px solid #2b3038;
}
.grid-table thead th:last-child { border-right: none; }
.grid-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--a-line-2);
  border-right: 1px solid var(--a-line-2);
  color: var(--a-ink);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.grid-table tbody td:last-child { border-right: none; }
.grid-table tbody tr:last-child td { border-bottom: none; }
.grid-table tbody tr:hover td { background: #f3f7f5; }
.grid-table .num { text-align: right; }
.grid-table .mono { font-family: var(--a-mono); font-size: 11.5px; }
.grid-table .col-check { width: 34px; text-align: center; padding-left: 8px; padding-right: 8px; }
.grid-table .col-actions { white-space: nowrap; text-align: right; }
.grid-table .empty td { text-align: center; color: var(--a-ink-4); padding: 28px 12px; }

/* ------------------------------------------------------------ tags */
.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 6px;
  border: 1px solid var(--a-line); border-radius: var(--a-r);
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--a-ink-2); background: var(--a-surface-2);
  text-transform: uppercase;
}
.tag--ok { color: var(--a-accent); background: var(--a-accent-bg); border-color: var(--a-accent-line); }
.tag--warn { color: var(--a-warn); background: var(--a-warn-bg); border-color: #ecd7b6; }
.tag--bad { color: var(--a-danger); background: var(--a-danger-bg); border-color: #e8c4c0; }
.tag--get { color: var(--a-accent); background: var(--a-accent-bg); border-color: var(--a-accent-line); }
.tag--post { color: #1f5d9c; background: #e9f1fa; border-color: #c2d8ee; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--a-ink-4); display: inline-block; }
.dot--ok { background: var(--a-accent-2); }

/* ------------------------------------------------------------ notice */
.notice {
  display: flex; gap: 10px; padding: 11px 13px;
  border: 1px solid var(--a-accent-line);
  background: var(--a-accent-bg);
  border-left: 3px solid var(--a-accent);
  border-radius: var(--a-r);
  font-size: 12px; color: var(--a-ink-2);
}
.notice--warn { background: var(--a-warn-bg); border-color: #ecd7b6; border-left-color: var(--a-warn); }
.notice--bad { background: var(--a-danger-bg); border-color: #e8c4c0; border-left-color: var(--a-danger); }

/* ------------------------------------------------------------ progress */
.progress { height: 6px; background: var(--a-line-2); border-radius: 3px; overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: var(--a-accent); transition: width .25s ease; }

/* ------------------------------------------------------------ code */
.code {
  background: #fafbfc;
  border: 1px solid var(--a-line);
  border-left: 3px solid var(--a-ink);
  border-radius: var(--a-r);
  padding: 12px 14px;
  font-family: var(--a-mono);
  font-size: 11.5px;
  line-height: 1.75;
  color: #23272f;
  overflow-x: auto;
  white-space: pre;
}
.code__k { color: #0b6b53; }
.code__s { color: #8a5a00; }
.code__c { color: var(--a-ink-4); }
.code__f { color: #1f5d9c; }

/* ------------------------------------------------------------ modal */
.modal-layer {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(22, 24, 29, .5);
  display: none;
  align-items: flex-start; justify-content: center;
  padding: 48px 16px;
  overflow-y: auto;
}
.modal-layer.is-open { display: flex; }
.modal-box {
  width: 100%; max-width: 620px;
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-top: 3px solid var(--a-accent);
  border-radius: var(--a-r);
  box-shadow: 0 24px 60px rgba(22, 24, 29, .28);
}
.modal-box__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--a-line-2); }
.modal-box__head h3 { margin: 0; font-size: 13.5px; }
.modal-box__body { padding: 16px; }
.modal-box__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--a-line-2); background: var(--a-surface-2); }

/* ------------------------------------------------------------ public site */
.site-body { background: #fff; }
.top-strip {
  background: var(--a-ink); color: #b9c0cb;
  font-size: 11.5px; letter-spacing: .02em;
  padding: 7px 0;
}
.top-strip__inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; gap: 18px; align-items: center; }
.top-strip__right { margin-left: auto; display: flex; gap: 16px; }

.site-header { background: #fff; border-bottom: 1px solid var(--a-line); position: sticky; top: 0; z-index: 30; }
.site-header__inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 62px; display: flex; align-items: center; gap: 28px; }
.brandmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; color: var(--a-ink); letter-spacing: -.01em; }
.brandmark:hover { text-decoration: none; color: var(--a-ink); }
.brandmark__glyph {
  width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--a-ink); color: #fff; border-radius: var(--a-r);
  font-size: 13px; font-weight: 700;
}
.site-nav { display: flex; gap: 2px; margin-left: 8px; }
.site-nav a {
  padding: 8px 12px; border-radius: var(--a-r);
  font-size: 13px; color: var(--a-ink-2); text-decoration: none;
}
.site-nav a:hover { background: var(--a-surface-2); color: var(--a-ink); text-decoration: none; }
.site-nav a.is-current { color: var(--a-accent); background: var(--a-accent-bg); font-weight: 600; }
.site-header .btn-row { margin-left: auto; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 44px;
  align-items: center;
  padding: 58px 0 54px;
  border-bottom: 1px solid var(--a-line);
}
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--a-accent); font-weight: 700; margin-bottom: 14px; }
.masthead h1 { font-size: 40px; line-height: 1.16; letter-spacing: -.03em; margin-bottom: 16px; }
.masthead h1 em { font-style: normal; color: var(--a-accent); }
.masthead p { font-size: 14.5px; line-height: 1.75; color: var(--a-ink-2); max-width: 46ch; margin-bottom: 24px; }
.masthead__foot { display: flex; gap: 22px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--a-line-2); }
.masthead__stat b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.masthead__stat span { font-size: 11px; color: var(--a-ink-3); }

.console-card { border: 1px solid var(--a-line); border-radius: var(--a-r); background: var(--a-surface); overflow: hidden; }
.console-card__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--a-line-2); background: var(--a-surface-2); }
.console-card__bar i { width: 8px; height: 8px; border-radius: 50%; background: #d5dae1; display: block; }
.console-card__bar span { margin-left: auto; font-family: var(--a-mono); font-size: 10.5px; color: var(--a-ink-4); }
.console-card .code { border: none; border-left: none; border-radius: 0; margin: 0; background: #fff; }
.console-card__foot { display: flex; gap: 14px; padding: 10px 12px; border-top: 1px solid var(--a-line-2); font-size: 11px; color: var(--a-ink-3); }

.section { padding: 52px 0; border-bottom: 1px solid var(--a-line); }
.section--tint { background: var(--a-surface-2); }
.section__head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section__head h2 { font-size: 24px; margin: 0; letter-spacing: -.02em; }
.section__head p { margin: 0; color: var(--a-ink-3); font-size: 13px; }
.section__head .a-link { margin-left: auto; font-size: 12.5px; }

.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--a-line); border: 1px solid var(--a-line); }
.capability {
  background: #fff; padding: 22px 20px; min-height: 168px;
}
.capability__no { font-family: var(--a-mono); font-size: 11px; color: var(--a-ink-4); letter-spacing: .08em; }
.capability h3 { margin: 12px 0 8px; font-size: 15px; }
.capability p { font-size: 12.5px; color: var(--a-ink-3); line-height: 1.7; margin: 0; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.spec-table th { text-align: left; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--a-ink-3); padding: 0 14px 9px 0; border-bottom: 1px solid var(--a-line); font-weight: 600; }
.spec-table td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--a-line-2); color: var(--a-ink-2); vertical-align: top; }
.spec-table td:first-child { color: var(--a-ink); font-family: var(--a-mono); font-size: 11.5px; white-space: nowrap; }

.site-footer { background: var(--a-ink); color: #9aa3b0; padding: 34px 0; font-size: 12px; }
.site-footer__inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; gap: 24px; align-items: flex-start; }
.site-footer a { color: #c7ced9; }
.site-footer a:hover { color: #fff; }
.site-footer__meta { margin-left: auto; text-align: right; line-height: 1.9; }

/* ------------------------------------------------------------ login (split) */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-brand {
  background: var(--a-ink);
  color: #e6e9ee;
  padding: 48px 52px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.login-brand::after {
  content: ""; position: absolute; right: -120px; bottom: -120px;
  width: 320px; height: 320px; border: 1px solid #2a2f38; transform: rotate(45deg);
}
.login-brand .brandmark { color: #fff; margin-bottom: auto; }
.login-brand .brandmark__glyph { background: var(--a-accent); }
.login-brand h1 { color: #fff; font-size: 28px; line-height: 1.35; letter-spacing: -.02em; margin: 0 0 14px; max-width: 20ch; }
.login-brand p { color: #9aa3b0; font-size: 13px; line-height: 1.8; max-width: 42ch; }
.login-brand__list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.login-brand__list li { font-size: 12px; color: #b9c0cb; padding-left: 16px; position: relative; }
.login-brand__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; background: var(--a-accent-2); }
.login-brand__foot { font-size: 11px; color: #5f6773; margin-top: 32px; }
.login-form-side { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: #fff; }
.login-form { width: 100%; max-width: 340px; }
.login-form h2 { font-size: 19px; margin-bottom: 6px; }
.login-form .a-muted { display: block; margin-bottom: 24px; }
.login-form .btn { margin-top: 6px; }
.login-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--a-line-2); font-size: 11px; color: var(--a-ink-4); line-height: 1.8; }

/* ------------------------------------------------------------ utilities */
.row { display: flex; align-items: center; gap: 10px; }
.row--between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }
.mt-0 { margin-top: 0 !important; }
.mt-14 { margin-top: 14px !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-right { text-align: right; }

@media (max-width: 1080px) {
  .masthead { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .masthead h1 { font-size: 32px; }
  .capability-grid { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .split, .split--even { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-brand { display: none; }
}
@media (max-width: 720px) {
  .app-shell { grid-template-columns: 1fr; }
  .rail { flex-direction: row; height: 54px; width: auto; padding: 0 12px; position: sticky; }
  .rail__mark { margin-bottom: 0; }
  .rail__spacer, .rail__label { display: none; }
  .canvas { padding: 14px; }
  .field-row, .field-row--3, .metric-row { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .site-footer__inner { flex-direction: column; }
  .site-footer__meta { margin-left: 0; text-align: left; }
}
/* ------------------------------------------------------------ workbench
   取件台：顶部一条紧凑接入配置，其余空间全部留给表格
*/
.config-bar {
  display: grid;
  grid-template-columns: 92px minmax(140px, 1.3fr) minmax(120px, 1fr) minmax(140px, 1.3fr) 96px 72px auto;
  gap: 8px;
  align-items: end;
  padding: 9px 16px 10px;
  background: var(--a-surface);
  border-bottom: 1px solid var(--a-line);
}
.config-bar .cell { display: grid; gap: 3px; min-width: 0; }
.config-bar .cell > span {
  font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--a-ink-3);
}
.config-bar .input, .config-bar .select { height: 30px; font-size: 12px; padding: 0 8px; }
.config-bar .btn { height: 30px; padding: 0 12px; }

/* 更宽松的表格行，适合长时间扫读 */
.grid-table--roomy tbody td { padding: 13px 14px; font-size: 13px; }
.grid-table--roomy thead th { padding: 11px 14px; }
.grid-table .row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.grid-table .row-actions .btn { height: 26px; padding: 0 9px; font-size: 11.5px; }

/* 表格撑满剩余高度 */
.table-fill { display: flex; flex-direction: column; min-height: 0; }
.table-fill .table-wrap { flex: 1; min-height: 0; overflow: auto; }

@media (max-width: 1100px) {
  .config-bar { grid-template-columns: 1fr 1fr; }
  .config-bar .cell--wide { grid-column: 1 / -1; }
}

@media print {
  .rail, .commandbar, .site-header, .top-strip, .btn { display: none !important; }
  body { background: #fff; }
}
