:root {
  --paper: #F4F1E8;
  --card: #FBF8F1;
  --ink: #171814;
  --muted: #706E64;
  --line: #D9D3C4;
  --green: #194E3B;
  --orange: #C95E35;
  --soft-green: #E7EDE4;
  --soft-orange: #F4E4DA;
  --shadow: 0 12px 32px rgba(23,24,20,.08);
  --radius: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .55;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(201,94,53,.07), transparent 28%),
    radial-gradient(circle at 88% 22%, rgba(25,78,59,.07), transparent 30%),
    repeating-linear-gradient(0deg, rgba(23,24,20,.025) 0 1px, transparent 1px 4px);
}
.topbar {
  position: sticky; top: 0; z-index: 30; height: 68px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; padding: 0 max(24px, calc((100vw - 1180px)/2));
  background: rgba(244,241,232,.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #F7F3E9; font-weight: 700; font-size: 15px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; letter-spacing: .01em; }
.brand-text em { font-style: normal; font-size: 10px; letter-spacing: .16em; color: var(--muted); font-weight: 500; margin-top: 3px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; transition: .18s; }
.nav a.active, .nav a:hover { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.nav a.portal-link { color: var(--orange); }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.user-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.shell { max-width: 1180px; margin: 0 auto; padding: 34px 24px 80px; }
.hero { display: flex; justify-content: space-between; gap: 28px; align-items: flex-end; margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; font-size: 11px; letter-spacing: .2em; color: var(--orange); font-weight: 700; }
h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; letter-spacing: -.02em; }
h2 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
h3 { margin: 0; font-size: 17px; }
.hero-sub { max-width: 600px; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px;
  padding: 9px 18px; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  font-size: 14px; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(23,24,20,.08); }
.btn.primary { background: var(--green); color: #F8F4EA; border-color: var(--green); }
.btn.primary:hover { background: #236148; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--orange); border-color: #E4C4B6; background: #FBF1EB; }
.btn.small { padding: 6px 12px; font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 34px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: 0 6px 18px rgba(23,24,20,.035); }
.stat label { display: block; font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.stat strong { display: block; font-size: 34px; line-height: 1.2; margin: 6px 0 2px; letter-spacing: -.03em; }
.stat span { font-size: 12px; color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 0 0 16px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 5px 12px; border-radius: 999px; cursor: pointer; font-size: 12px; }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.account-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.account-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 17px 14px; box-shadow: 0 8px 24px rgba(23,24,20,.04); overflow: hidden; }
.account-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--line); }
.account-card.running::before { background: var(--green); }
.account-card.waiting_captcha::before { background: var(--orange); }
.account-card.error::before { background: #A13D30; }
.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.card-name { font-weight: 700; font-size: 16px; line-height: 1.35; }
.card-strategy { display: inline-block; margin-top: 4px; font-size: 11px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.policy-chip { display: inline-block; margin-top: 4px; margin-left: 5px; font-size: 11px; color: #2F5D45; background: rgba(25,78,59,.06); border: 1px solid rgba(25,78,59,.16); border-radius: 999px; padding: 2px 9px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #B9B3A3; display: inline-block; }
.status.running i { background: var(--green); box-shadow: 0 0 0 4px rgba(25,78,59,.10); }
.status.waiting_captcha i { background: var(--orange); box-shadow: 0 0 0 4px rgba(201,94,53,.10); }
.status.error i { background: #A13D30; }
.card-stage { margin: 13px 0 3px; font-size: 13px; color: var(--ink); min-height: 21px; }
.card-meta { font-size: 11px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.card-actions { display: flex; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.icon-btn { border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--line); border-radius: var(--radius); background: rgba(251,248,241,.5); }
.empty-mark { font-size: 40px; color: var(--line); display: block; }
.empty h3 { margin: 10px 0 6px; }
.empty p { color: var(--muted); max-width: 460px; margin: 0 auto 18px; font-size: 14px; }
.muted { color: var(--muted); font-size: 13px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.hint-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft-green); padding: 16px 18px; margin-bottom: 18px; }
.hint-card strong { color: var(--green); }
.hint-card p { margin: 6px 0 0; color: #425048; font-size: 13px; }
.account-list { display: flex; flex-direction: column; gap: 8px; }
.account-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; }
.account-row .name { font-weight: 600; }
.account-row .sub { font-size: 12px; color: var(--muted); }
.settings-card { max-width: 720px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.field small { font-size: 12px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: #FFFDF8; border-radius: 9px;
  padding: 10px 12px; outline: none; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(25,78,59,.08); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two-col.single { grid-template-columns: 1fr; }
.points-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.points-price-field { width: 180px; }
.points-row .btn { margin-bottom: 2px; }
.checks { flex-direction: row; gap: 22px; }
.inline { display: flex; align-items: center; gap: 8px; font-weight: 500 !important; }
.inline input { width: auto; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.modal, .gate { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(23,24,20,.25); backdrop-filter: blur(3px); padding: 20px; }
.modal-card { width: min(520px, 100%); max-height: 92vh; overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 24px 70px rgba(23,24,20,.18); }
.modal-card.narrow { width: min(400px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal form { display: grid; gap: 14px; }
.credential-note { background: var(--soft-orange); color: #7B3D24; border-radius: 9px; padding: 9px 12px; font-size: 12px; }
.policy-note { background: rgba(25,78,59,.06); color: #2F5D45; border: 1px solid rgba(25,78,59,.14); border-radius: 9px; padding: 9px 12px; font-size: 12px; line-height: 1.55; }
.captcha-img { width: 100%; min-height: 86px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin: 10px 0 14px; }
.gate-card { width: min(480px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.gate-card h2 { font-size: 28px; margin: 0 0 10px; }
.gate-card p { color: var(--muted); margin: 0 0 20px; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--paper); border-left: 1px solid var(--line); z-index: 70; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(23,24,20,.14); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-meta { padding: 12px 20px; font-size: 12px; color: var(--muted); border-bottom: 1px dashed var(--line); }
.log { flex: 1; overflow: auto; margin: 0; padding: 18px 20px 40px; font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; line-height: 1.7; white-space: pre-wrap; color: #2A2B26; background: #EDE9DD; }
.backdrop { position: fixed; inset: 0; background: rgba(23,24,20,.18); z-index: 55; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-size: 13px; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
@media (max-width: 960px) {
  .account-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .topbar { height: 60px; padding: 0 16px; }
  .brand-text em { display: none; }
  .nav { display: none; }
  .user-chip { display: none !important; }
  .shell { padding: 22px 16px 92px; }
  .hero { flex-direction: column; align-items: stretch; }
  .hero h1 { font-size: 32px; }
  .hero-actions { justify-content: space-between; }
  .hero-actions .btn { flex: 1; }
  .stats { gap: 8px; }
  .stat { padding: 13px; }
  .stat strong { font-size: 26px; }
  .account-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .filters { overflow-x: auto; width: 100%; padding-bottom: 2px; }
  .account-row { grid-template-columns: 1fr auto; }
  .account-row .sub { grid-column: 1 / -1; }
  .two-col { grid-template-columns: 1fr; }
  .settings-card { padding: 18px; }
  .drawer { top: 60px; width: 100vw; border-left: 0; }
  .modal-card { border-radius: 14px; padding: 18px; }
  .mobile-nav { display: grid !important; position: fixed; left: 12px; right: 12px; bottom: 10px; z-index: 40; grid-template-columns: repeat(4, 1fr); background: rgba(251,248,241,.94); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(23,24,20,.12); backdrop-filter: blur(12px); }
  .mobile-nav a { text-align: center; padding: 9px 0 8px; font-size: 12px; color: var(--muted); }
  .mobile-nav a.active { color: var(--green); font-weight: 700; }
}
@media (min-width: 641px) { .mobile-nav { display: none !important; } }

.strategy-panel { margin-top: 22px; max-width: none; }
.strategy-panel .section-head { gap: 16px; }
.strategy-panel .section-head h2 { font-size: 22px; margin: 2px 0 6px; }
.upload-btn { display: inline-flex; align-items: center; cursor: pointer; white-space: nowrap; }
.strategy-list { display: grid; gap: 10px; margin-top: 16px; }
.strategy-row { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; }
.strategy-row.off { opacity: .62; }
.strategy-row b { display: block; font-size: 15px; }
.strategy-row .strategy-meta { color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.7; }
.strategy-row .strategy-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.strategy-row .strategy-sync { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 9px; font-size: 12px; color: var(--muted); }
.strategy-row .strategy-sync strong { color: var(--green); }
.strategy-row .strategy-sync .fail { color: var(--orange); }
.strategy-row .strategy-billing { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 12px; display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.strategy-billing .billing-price-field { min-width: 180px; }
.strategy-billing .billing-note { font-size: 12px; color: var(--muted); align-self: center; }
.strategy-params { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 12px; }
.strategy-params summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--green); display: flex; align-items: center; gap: 8px; }
.strategy-params summary small { font-weight: 400; color: var(--muted); }
.strategy-params .param-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.strategy-params .param-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.strategy-params .form-actions { margin-top: 14px; }
.strategy-params[data-dirty="1"] summary::after { content: "有未保存修改"; color: var(--orange); font-size: 11px; font-weight: 400; }
.strategy-note { margin: 14px 0 0; font-size: 12px; }
.strategy-note code { background: #EDE9DD; padding: 1px 5px; border-radius: 4px; }
.strategy-versions { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 12px; }
.strategy-versions summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--green); display: flex; align-items: center; gap: 8px; }
.strategy-versions summary small { font-weight: 400; color: var(--muted); }
.strategy-versions .version-body { margin-top: 10px; }
.strategy-versions .param-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.ver-list { display: flex; flex-direction: column; gap: 6px; }
.ver-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: rgba(255, 255, 255, .5); }
.ver-row.cur { border-color: var(--green); background: rgba(46, 125, 50, .06); }
.ver-row .ver-main { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ver-row .ver-main b { font-size: 13px; }
.ver-row .ver-meta { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ver-row .ver-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ver-row .ver-sha { font-size: 10px; color: var(--muted); font-family: ui-monospace, monospace; }
.ver-row .ver-now { font-size: 11px; color: var(--green); border: 1px solid currentColor; border-radius: 4px; padding: 1px 6px; }
.ver-events { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 8px; }
.ver-events-title { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.ver-event { display: grid; grid-template-columns: 88px 110px 90px 50px; gap: 6px; font-size: 11px; color: var(--muted); line-height: 1.8; }
.ver-event span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diff-panel { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.diff-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 10px; background: rgba(0, 0, 0, .03); font-size: 12px; font-weight: 600; }
.diff-stats { font-size: 11px; color: var(--muted); font-weight: 400; }
.diff-file { border-top: 1px dashed var(--line); }
.diff-file-head { display: flex; align-items: center; gap: 8px; padding: 6px 10px; }
.diff-fname { font-size: 12px; font-family: ui-monospace, monospace; }
.diff-tag { font-size: 10px; border-radius: 4px; padding: 1px 6px; }
.diff-tag.diff-added { color: var(--green); border: 1px solid currentColor; }
.diff-tag.diff-removed { color: #c62828; border: 1px solid currentColor; }
.diff-tag.diff-modified { color: #b26a00; border: 1px solid currentColor; }
.diff-line { display: flex; gap: 8px; padding: 1px 10px; font-size: 11px; font-family: ui-monospace, monospace; line-height: 1.6; white-space: pre-wrap; }
.diff-mark { width: 16px; flex-shrink: 0; text-align: center; color: var(--muted); }
.diff-text { min-width: 0; overflow-wrap: break-word; }
.diff-add { background: rgba(46, 125, 50, .10); }
.diff-add .diff-mark { color: var(--green); }
.diff-del { background: rgba(198, 40, 40, .10); }
.diff-del .diff-mark { color: #c62828; }
.diff-hunk { color: var(--muted); background: rgba(0, 0, 0, .04); }
@media (max-width: 960px) {
  .strategy-params .param-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .strategy-row { grid-template-columns: 1fr; }
  .strategy-row .strategy-actions { justify-content: flex-start; }
  .strategy-params .param-grid { grid-template-columns: 1fr; }
}

/* 算力节点：对齐 Fleet 新控制面版式 */
.node-page { max-width: none; }
.node-console {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px;
  padding: 0 0 22px; border-bottom: 1px solid var(--ink);
}
.node-eyebrow {
  display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 12px;
  font-family: "Cascadia Code", Consolas, monospace; font-size: 10px;
  letter-spacing: .16em; color: var(--orange); font-weight: 700;
}
.node-eyebrow span:last-child { color: var(--muted); font-weight: 500; }
.node-console h1 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.12; letter-spacing: -.02em; }
.node-console-lede { max-width: 640px; margin: 13px 0 0; color: #565449; font-size: 13px; line-height: 1.85; }
.node-console-actions { display: flex; gap: 8px; flex-wrap: wrap; flex: none; }
.node-stat-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; margin: 0 0 16px; border: 1px solid var(--line);
  background: var(--line); overflow: hidden;
}
.node-strip-item { min-width: 0; padding: 15px 17px 13px; background: var(--card); }
.node-strip-item span {
  display: block; font-size: 10px; letter-spacing: .12em; color: var(--muted);
  text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.node-strip-item b { display: block; margin: 4px 0 1px; font-size: 32px; line-height: 1.15; letter-spacing: -.04em; }
.node-strip-item small { display: block; min-height: 17px; font-size: 11px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.node-flow {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 28px; padding: 10px 14px;
  border: 1px solid var(--line); background: rgba(251,248,241,.5);
  font-family: "Cascadia Code", Consolas, monospace; font-size: 11px;
  line-height: 1.6; color: var(--muted);
}
.node-flow b { margin-right: 6px; color: var(--orange); font-weight: 700; }
.node-view { margin: 0 0 34px; }
.node-view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.node-kicker { display: block; margin-bottom: 4px; font-size: 10px; letter-spacing: .16em; color: var(--green); font-weight: 700; }
.node-view-head h2 { font-size: 25px; line-height: 1.25; }
.node-view-head p { max-width: 620px; margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.node-chips { flex: none; }
.node-chips .chip { padding: 6px 12px; font-size: 11px; }
.node-list { display: grid; gap: 12px; }
.compute-node {
  position: relative; overflow: hidden; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 17px 19px 16px; box-shadow: 0 8px 24px rgba(23,24,20,.035);
}
.compute-node::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #C7C1B2; }
.compute-node.is-live::before { background: var(--green); }
.compute-node.is-offline { background: rgba(251,248,241,.68); box-shadow: none; }
.compute-node.is-offline .node-facts, .compute-node.is-offline .node-slot-line { opacity: .76; }
.node-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.node-item-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 17px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.node-item-meta {
  font-family: "Cascadia Code", Consolas, monospace; font-size: 10px; line-height: 1.6;
  letter-spacing: .02em; color: var(--muted); overflow-wrap: anywhere;
}
.node-item-head > .node-item-meta { margin-top: 2px; flex: none; max-width: 35%; text-align: right; }
.node-tag {
  display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px;
  border: 1px solid var(--line); border-radius: 3px; background: #EEE8DB;
  color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: .06em;
  line-height: 1.2; white-space: nowrap;
}
.node-tag.ok { border-color: #AEBFAE; background: var(--soft-green); color: var(--green); }
.node-tag.warn { border-color: #DFBAA9; background: var(--soft-orange); color: #8C432A; }
.node-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.node-fact { min-width: 0; padding: 9px 11px; border: 1px solid var(--line); background: var(--card); }
.node-fact span { display: block; font-size: 9px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.node-fact b { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.node-fact b.good { color: var(--green); }
.node-fact b.warn { color: var(--orange); }
.node-slot-line {
  display: grid; grid-template-columns: auto minmax(80px, 1fr) auto; gap: 10px;
  align-items: center; margin-top: 12px; color: var(--muted); font-size: 11px;
}
.node-slot-label { font-family: "Cascadia Code", Consolas, monospace; font-size: 9px; letter-spacing: .06em; color: var(--muted); }
.node-slot-line b { color: var(--ink); font-size: 12px; white-space: nowrap; }
.node-meter, .worker-meter { height: 5px; background: #E2DCCD; border-radius: 999px; overflow: hidden; }
.node-meter i, .worker-meter i { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .25s ease; }
.node-meter.is-full i, .worker-meter.is-full i { background: var(--orange); }
.node-warn {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 8px 10px;
  border: 1px solid #E8CFC2; border-radius: 7px; background: var(--soft-orange);
  color: #7B3D24; font-size: 11px; line-height: 1.55;
}
.node-warn > span {
  flex: none; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: #FFF8F2; font-weight: 700; font-size: 10px;
}
.node-empty {
  padding: 30px 24px; border: 1px dashed var(--line); border-radius: 12px;
  background: rgba(251,248,241,.56);
}
.node-empty-mark { display: block; margin-bottom: 10px; font-size: 25px; line-height: 1; color: var(--green); }
.node-empty h3 { margin: 0 0 6px; font-size: 17px; }
.node-empty p { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.worker-table { overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(23,24,20,.035); }
.worker-row {
  display: grid; grid-template-columns: 38px minmax(0, 1.5fr) 126px 142px;
  gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.worker-row:last-child { border-bottom: 0; }
.worker-row.is-offline { background: rgba(244,241,232,.5); }
.worker-row.is-offline .worker-identity, .worker-row.is-offline .worker-load { opacity: .72; }
.worker-mark {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--soft-green); color: var(--green); font-size: 13px; font-weight: 700;
}
.worker-row.is-offline .worker-mark { background: #E7E2D5; color: #8E897C; }
.worker-identity { min-width: 0; }
.worker-identity b { display: block; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.worker-identity span { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.worker-state { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--muted); }
.worker-state-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.worker-state-pill i { width: 7px; height: 7px; border-radius: 50%; background: #B9B3A3; }
.worker-state-pill.on i { background: var(--green); box-shadow: 0 0 0 4px rgba(25,78,59,.10); }
.worker-load { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.worker-load-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 11px; color: var(--muted); }
.worker-load-line b { color: var(--ink); font-size: 12px; }
.worker-empty { padding: 30px 22px; }
.worker-empty span { font-weight: 700; font-size: 15px; }
.worker-empty p { max-width: 520px; margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
@media (max-width: 900px) {
  .node-console { flex-direction: column; align-items: flex-start; gap: 16px; }
  .node-console-actions { justify-content: flex-start; }
  .node-console-actions .btn { flex: 0 0 auto; }
  .node-view-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .node-chips { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
}
@media (max-width: 720px) {
  .node-console h1 { font-size: 32px; }
  .node-console-actions { width: 100%; justify-content: space-between; }
  .node-console-actions .btn { flex: 1; }
  .node-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .node-strip-item { padding: 13px 14px 12px; }
  .node-strip-item b { font-size: 27px; }
  .node-view-head h2 { font-size: 22px; }
  .node-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .node-item-head { gap: 10px; }
  .node-item-head > .node-item-meta { max-width: 42%; }
  .worker-row { grid-template-columns: 34px minmax(0, 1fr); gap: 8px 10px; padding: 12px 14px; }
  .worker-state, .worker-load { grid-column: 2; }
  .worker-state { flex-direction: row; align-items: center; gap: 8px; }
  .worker-load { max-width: 210px; }
}
/* ---------- 2026-11-30 纸感对齐：顶栏 / 学习台 / 账号 / 策略 ---------- */
:root {
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", SimSun, Georgia, serif;
  --mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  --faint: #938d7e;
  --line-soft: #e4ddce;
}
body {
  font-size: 14px;
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 255, 255, .34), transparent 32%),
    repeating-linear-gradient(0deg, rgba(23, 24, 20, .018) 0 1px, transparent 1px 5px),
    var(--paper);
}
.grain { display: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; }
h1 { letter-spacing: -.03em; }
h2 { letter-spacing: -.02em; }
.muted { font-size: 11px; line-height: 1.65; }

/* 顶栏 */
.topbar {
  height: auto;
  padding: 0;
  display: block;
  background: rgba(244, 241, 232, .92);
}
.topbar-inner {
  width: min(1180px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}
.brand { gap: 13px; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 0;
  border: 1px solid var(--ink); background: var(--ink);
  color: var(--paper); font-family: var(--serif); font-size: 22px; font-weight: 600;
}
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 19px; line-height: 1.2; font-weight: 600; letter-spacing: .01em; }
.brand-tag {
  margin-top: 3px; font-family: var(--mono); font-size: 8px; line-height: 1.4;
  letter-spacing: .12em; color: var(--faint); white-space: nowrap;
}
.top-nav { display: flex; align-items: center; justify-content: flex-start; gap: 24px; flex-wrap: wrap; min-width: 0; }
.nav-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 0 6px; border: 0; border-bottom: 2px solid transparent;
  background: transparent; color: #4b4a43; font-size: 13px; line-height: 1.2; white-space: nowrap;
}
.nav-item:hover { color: var(--green); background: transparent; box-shadow: none; transform: none; }
.nav-item.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); background: transparent; box-shadow: none; }
.nav-no { font-family: var(--mono); font-size: 9px; line-height: 1; letter-spacing: .04em; color: #9a9588; }
.nav-item.active .nav-no { color: var(--green); }
.nav-link { color: var(--faint); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; }
.nav-link:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.user-chip {
  padding: 7px 11px; border-radius: 0; border: 1px solid var(--line);
  background: rgba(251, 248, 241, .6); gap: 9px;
}
.user-chip .dot { width: 6px; height: 6px; border-radius: 0; background: var(--green); }

/* 学习台页头与概览 */
.shell { padding: 0 24px 80px; }
.console-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px;
  padding: 34px 0 22px; border-bottom: 1px solid var(--ink); margin-bottom: 0;
}
.eyebrow {
  display: flex; align-items: center; gap: 16px; margin: 0 0 24px;
  font-family: var(--mono); font-size: 9px; line-height: 1.5; letter-spacing: .12em;
  color: var(--faint); font-weight: 400;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--orange); flex: 0 0 auto; }
.eyebrow span:first-child { color: var(--orange); }
.console-head h1 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; }
.console-lede { max-width: 640px; margin: 14px 0 0; color: #565449; font-size: 12px; line-height: 1.85; }
.console-actions { display: flex; gap: 8px; flex-wrap: wrap; flex: none; }
.stat-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-top: 0;
  background: rgba(251, 248, 241, .4); margin-bottom: 34px;
}
.stat-strip .stat { background: transparent; border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 15px 17px 13px; box-shadow: none; }
.stat-strip .stat:last-child { border-right: 0; }
.stat-strip .stat span { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; color: var(--faint); text-transform: none; }
.stat-strip .stat b { display: block; margin: 10px 0 4px; font-family: var(--serif); font-size: 34px; line-height: .92; letter-spacing: -.03em; }
.stat-strip .stat small { font-family: var(--mono); font-size: 7px; line-height: 1.3; letter-spacing: .12em; color: #a29b8b; }

.section-head { align-items: flex-end; margin-bottom: 18px; }
.section-kicker { display: block; margin-bottom: 7px; font-family: var(--mono); font-size: 8px; line-height: 1.4; letter-spacing: .12em; color: var(--orange); }
.section-head h2 { font-size: 27px; line-height: 1.25; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 34px 0 18px; border-bottom: 1px solid var(--ink); margin-bottom: 20px; }
.view-head h2 { font-size: 27px; line-height: 1.25; }
.view-head p { max-width: 460px; margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

/* 控件 */
.btn {
  border-radius: 0; border-color: var(--ink); background: var(--card); color: var(--ink);
  min-height: 38px; padding: 0 15px; font-size: 12px; line-height: 1;
}
.btn:hover { transform: none; box-shadow: none; background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--green); border-color: var(--green); color: #f8f5ec; }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn.danger { color: var(--orange); border-color: #dfbaa9; background: transparent; }
.btn.danger:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.small { min-height: 29px; padding: 0 10px; font-size: 10px; }
.chip { border-radius: 0; padding: 6px 12px; font-size: 11px; color: var(--muted); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* 账号卡片 */
.account-grid { gap: 12px; }
.account-card {
  border-radius: 2px; box-shadow: none; background: rgba(251, 248, 241, .72);
  padding: 18px 20px 15px;
}
.account-card:hover { border-color: #bdb5a3; }
.account-card::before { width: 3px; }
.card-name { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.card-strategy { border-radius: 0; font-family: var(--mono); font-size: 8px; letter-spacing: .06em; padding: 3px 7px; }
.status { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; }
.status i { border-radius: 0; }
.card-stage { font-size: 12px; }
.card-meta { font-family: var(--mono); font-size: 9px; letter-spacing: .03em; color: var(--faint); }
.card-actions { border-top: 1px dashed var(--line); }
.empty { border-radius: 2px; text-align: left; padding: 28px 24px; }
.empty-mark { color: var(--green); font-size: 22px; }
.empty h3 { font-size: 17px; }
.empty p { margin: 0 0 16px; font-size: 12px; max-width: 520px; }
.empty .btn { margin-left: 6px; }

/* 账号列表与提示卡 */
.account-list { gap: 10px; }
.account-row { border-radius: 2px; background: rgba(251, 248, 241, .72); padding: 14px 18px; }
.account-row .name { font-family: var(--serif); font-size: 15px; }
.account-row .sub { font-family: var(--mono); font-size: 9px; letter-spacing: .04em; color: var(--faint); }
.hint-card { border-radius: 2px; background: var(--soft-green); border-color: #cbd8cb; padding: 16px 20px; }
.hint-card strong { font-family: var(--serif); font-size: 15px; }
.hint-card p { font-size: 11px; line-height: 1.7; }

/* 表单与策略 */
.field label { font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: .06em; color: var(--faint); }
.field input, .field select, .field textarea {
  border-radius: 0; background: #fffdf8; font-size: 13px; padding: 10px 12px;
}
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 2px rgba(25, 78, 59, .1); }
.settings-card { border-radius: 2px; box-shadow: none; background: var(--card); }
.strategy-panel { border: 0; padding: 0; background: transparent; }
.strategy-list { gap: 10px; }
.strategy-row { border-radius: 2px; background: rgba(251, 248, 241, .72); }
.strategy-row b { font-family: var(--serif); font-size: 15px; }
.strategy-row .strategy-meta, .strategy-row .strategy-sync { font-size: 10px; }
.strategy-params summary { font-size: 11px; }
.credential-note { border-radius: 0; font-size: 11px; }

/* 弹层与日志 */
.modal-card, .gate-card { border-radius: 2px; background: var(--paper-2, #fbf8f1); box-shadow: 0 18px 50px rgba(23, 24, 20, .18); }
.modal-head h3, .gate-card h2 { font-family: var(--serif); font-weight: 600; }
.modal-card { background: var(--paper); }
.gate-card { background: var(--card); }
.captcha-img { border-radius: 0; }
.drawer { box-shadow: -14px 0 40px rgba(23, 24, 20, .12); }
.drawer-head { padding: 18px 20px; }
.drawer-head h3 { font-family: var(--serif); }
.log { background: #ede9dd; font-family: var(--mono); font-size: 11px; }
.toast { border-radius: 0; font-size: 11px; padding: 9px 14px; }

/* 移动端 */
.mobile-nav { border-radius: 0 !important; background: rgba(251, 248, 241, .96) !important; }
.mobile-nav a { font-family: var(--mono); font-size: 10px !important; letter-spacing: .04em; }
.mobile-nav a.active { color: var(--green) !important; }
@media (max-width: 980px) {
  .topbar-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
  .top-nav { grid-column: 1 / -1; justify-content: flex-start; gap: 18px; padding-bottom: 8px; }
  .console-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip .stat:nth-child(2) { border-right: 0; }
  .stat-strip .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .top-nav { gap: 14px; }
  .nav-item { font-size: 12px; }
  .nav-no { display: none; }
  .console-head h1 { font-size: 32px; }
  .console-actions { width: 100%; }
  .console-actions .btn { flex: 1; }
  .stat-strip .stat b { font-size: 27px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .account-grid { grid-template-columns: 1fr; }
  .view-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .account-row { grid-template-columns: 1fr auto; }
}

@media (max-width: 640px) {
  .mobile-nav { grid-template-columns: repeat(5, 1fr) !important; }
}

.node-page { padding-top: 34px; }

/* 三应用共用的算力节点页面骨架：标题 → 统计 → 接入路径 → 授权层 → 运行层 */
.nodes-shell {
  --n-bg: transparent;
  --n-surface: var(--card);
  --n-soft: var(--soft-green);
  --n-line: var(--line);
  --n-text: var(--ink);
  --n-muted: var(--muted);
  --n-green: var(--green);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  color: var(--ink);
  font-family: inherit;
}
.nodes-shell .head,
.nodes-shell .node-console,
.nodes-shell .node-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 20px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--n-line);
}
.nodes-shell .head > div:first-child,
.nodes-shell .node-console > div:first-child,
.nodes-shell .node-hero > div:first-child { min-width: 0; }
.nodes-shell h1,
.nodes-shell .node-heading {
  font-family: inherit;
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
}
.nodes-shell .eyebrow,
.nodes-shell .node-kicker,
.nodes-shell .node-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--n-green);
  font-family: inherit;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}
.nodes-shell .lead,
.nodes-shell .node-console-lede,
.nodes-shell .node-lead {
  max-width: 780px;
  margin: 0;
  color: var(--n-muted);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.8;
}
.nodes-shell .actions,
.nodes-shell .node-console-actions,
.nodes-shell .node-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.nodes-shell .stats,
.nodes-shell .node-stat-strip,
.nodes-shell .node-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: auto;
  margin: 0 0 18px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--line);
  overflow: hidden;
  border-radius: 0;
}
.nodes-shell .stat,
.nodes-shell .node-strip-item,
.nodes-shell .node-stat {
  min-width: 0;
  padding: 14px 16px 12px;
  border: 1px solid var(--n-line);
  border-left: 1px solid var(--n-line);
  border-radius: 12px;
  background: var(--n-surface);
  box-shadow: 0 6px 18px rgba(23,24,20,.035);
}
.nodes-shell .node-strip-item {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: var(--card);
  box-shadow: none;
}
.nodes-shell .node-strip-item:last-child { border-right: 0; }
.nodes-shell .stat label,
.nodes-shell .node-strip-item span,
.nodes-shell .node-stat span {
  display: block;
  color: var(--n-muted);
  font-family: inherit;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.nodes-shell .stat strong,
.nodes-shell .node-strip-item b,
.nodes-shell .node-stat strong {
  display: block;
  margin: 5px 0 2px;
  color: var(--n-text);
  font-family: inherit;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.nodes-shell .stat strong em { font-size: 13px; font-style: normal; font-weight: 500; color: var(--n-muted); margin-left: 3px; }
.nodes-shell .stat span,
.nodes-shell .node-strip-item small,
.nodes-shell .node-stat small {
  display: block;
  color: var(--n-muted);
  font-family: inherit;
  font-size: 11px;
  line-height: 1.5;
  white-space: normal;
}
.nodes-shell .nodes-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--n-line);
  border-radius: 12px;
  background: var(--n-soft);
}
.nodes-guide-copy strong { font-size: 13px; font-weight: 650; }
.nodes-guide-copy p { margin: 4px 0 0; color: var(--n-muted); font-size: 12px; line-height: 1.6; }
.nodes-guide-steps { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.nodes-guide-steps span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--n-line);
  border-radius: 999px;
  background: var(--card);
  color: var(--n-text);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}
.nodes-guide-steps b { color: var(--n-green); font-size: 10px; }
.nodes-shell .block,
.nodes-shell .node-view,
.nodes-shell .node-panel {
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid var(--n-line);
  border-radius: 14px;
  background: var(--n-surface);
  box-shadow: 0 8px 24px rgba(23,24,20,.04);
}
.nodes-shell .block-head,
.nodes-shell .node-view-head,
.nodes-shell .node-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--n-line);
}
.nodes-shell .block-head h2,
.nodes-shell .node-view-head h2,
.nodes-shell .node-panel-head h2 {
  margin: 0;
  color: var(--n-text);
  font-family: inherit;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.nodes-shell .block-head p,
.nodes-shell .node-view-head p,
.nodes-shell .node-panel-head p {
  margin: 5px 0 0;
  color: var(--n-muted);
  font-size: 12px;
  line-height: 1.6;
}
.nodes-shell .nodes-kicker {
  display: block;
  margin: 0 0 4px;
  color: var(--n-green);
  font-family: inherit;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}
.nodes-shell .node-grid,
.nodes-shell .node-list,
.nodes-shell .compute-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
}
.nodes-shell .node-card,
.nodes-shell .compute-node,
.nodes-shell .compute-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--n-line);
  border-radius: 12px;
  background: var(--n-surface);
  box-shadow: 0 8px 24px rgba(23,24,20,.04);
}
.nodes-shell .node-rows,
.nodes-shell .node-facts,
.nodes-shell .compute-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--n-line);
}
.nodes-shell .node-rows span,
.nodes-shell .node-fact,
.nodes-shell .compute-facts > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nodes-shell .node-rows span,
.nodes-shell .node-fact span,
.nodes-shell .compute-facts dt {
  color: var(--n-muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}
.nodes-shell .node-rows b,
.nodes-shell .node-fact b,
.nodes-shell .compute-facts dd {
  margin: 0;
  color: var(--n-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.nodes-shell .worker-table,
.nodes-shell .compute-workers {
  overflow: hidden;
  border: 1px solid var(--n-line);
  border-radius: 10px;
  background: var(--n-surface);
  box-shadow: none;
}
.nodes-shell .node-workers {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--n-line);
}
.nodes-shell .node-workers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--n-muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nodes-shell .node-workers-head b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--n-line);
  border-radius: 999px;
  background: var(--n-soft);
  color: var(--n-green);
  font-size: 10px;
}
.nodes-shell .node-worker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--n-line);
}
.nodes-shell .node-worker-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nodes-shell .node-worker-main b {
  overflow: hidden;
  color: var(--n-text);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nodes-shell .node-worker-main span {
  overflow: hidden;
  color: var(--n-muted);
  font-size: 10.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nodes-shell .node-worker-side {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 10px;
  flex-wrap: wrap;
  color: var(--n-muted);
  font-size: 10.5px;
  line-height: 1.5;
  text-align: right;
}
.nodes-shell .node-worker-pill {
  padding: 2px 8px;
  border: 1px solid var(--n-line);
  border-radius: 999px;
  background: var(--n-soft);
  color: var(--n-green);
  font-size: 10px;
  font-weight: 600;
}
.nodes-shell .node-worker-meter {
  width: 54px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--n-line);
}
.nodes-shell .node-worker-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--n-green);
}
.nodes-shell .node-worker-meter.is-full i { background: var(--orange); }
.nodes-shell .node-workers-empty {
  margin: 8px 0 0;
  color: var(--n-muted);
  font-size: 11px;
  line-height: 1.5;
}
.nodes-shell .worker-row,
.nodes-shell .compute-worker {
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--n-line);
  border-radius: 0;
  background: transparent;
}
.nodes-shell .worker-row:last-child,
.nodes-shell .compute-worker:last-child { border-bottom: 0; }

@media (max-width: 1100px) {
  .nodes-shell .node-grid,
  .nodes-shell .node-list,
  .nodes-shell .compute-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nodes-shell .stats,
  .nodes-shell .node-stat-strip,
  .nodes-shell .node-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nodes-shell .node-strip-item:nth-child(2) { border-right: 0; }
  .nodes-shell .node-strip-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .nodes-shell .head,
  .nodes-shell .node-console,
  .nodes-shell .node-hero { align-items: flex-start; flex-direction: column; }
  .nodes-shell .nodes-guide { grid-template-columns: minmax(0, 1fr); }
  .nodes-guide-steps { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .nodes-shell { padding: 18px 16px 20px; }
  .nodes-shell .node-grid,
  .nodes-shell .node-list,
  .nodes-shell .compute-grid { grid-template-columns: minmax(0, 1fr); }
}

