/* 视觉规范取自 ingdan.ai（css/nebius.css）：硬蛋红、浅色、Arial / 苹方 / 雅黑、8px 按钮、控制台（workspace）布局。 */
:root {
  --red: #d3232d;
  --red-dark: #aa1520;
  --red-soft: #fcecee;
  --red-tint: #fff1f1;
  --red-line: #efdddd;
  --ink: #252c36;
  --muted: #777f89;
  --line: #e4e7ea;
  --bg: #f7f8fa;
  --green: #1a9b5a;
  --amber: #b7791f;
  --gray: #8a93a5;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); background: white;
  font: 13px/1.6 Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
h1, h2, h3, p { margin: 0; }
code, .mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.boot { padding: 40px; color: var(--muted); }
:focus-visible { outline: 3px solid #d3232d55; outline-offset: 2px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: 8px; padding: 11px 20px; min-height: 42px;
  font-size: 13px; white-space: nowrap; transition: .2s;
}
.btn.primary { background: var(--red); color: white; }
.btn.primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn.outline { background: white; border-color: #d9dde0; }
.btn.outline:hover { color: var(--red); border-color: var(--red); }
.btn.compact { min-height: 34px; padding: 6px 14px; font-size: 12px; }
.btn.danger { background: white; color: var(--red); border-color: #efb4b4; }
.btn.danger:hover { background: var(--red-tint); }
.btn.danger.armed { background: var(--red); color: white; border-color: var(--red); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.link-btn { color: var(--red); font-size: 12px; padding: 2px 6px; border-radius: 5px; }
.link-btn:hover { background: var(--red-tint); }

/* ---- brand ---- */
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand img { width: 30px; height: 33px; object-fit: contain; mix-blend-mode: multiply; }
.brand b { display: block; font-size: 21px; line-height: 1; letter-spacing: -.7px; white-space: nowrap; }
.brand b strong { font-size: 17px; font-weight: 500; margin-left: 3px; }
.brand small { display: block; font-size: 7px; letter-spacing: 1.5px; color: #727b84; margin-top: 5px; }

/* ---- public (login) page ---- */
.wrap { width: min(1180px, calc(100% - 64px)); margin: auto; }
.pub-top { position: sticky; top: 0; z-index: 10; background: #fffffff0; backdrop-filter: blur(16px); border-bottom: 1px solid #eceff080; }
.pub-top .wrap { height: 70px; display: flex; align-items: center; gap: 24px; }
.pub-top .spacer { flex: 1; }
.subhero { background: linear-gradient(130deg, #fdf3f3, #fafafa 60%, #fcebed); padding: 70px 0 90px; }
.subhero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.eyebrow { display: block; font-size: 10px; letter-spacing: 2px; font-weight: 600; color: var(--red); margin-bottom: 20px; }
.subhero h1 { font-size: 54px; line-height: 1.25; letter-spacing: -2px; font-weight: 600; color: #30252b; }
.subhero p.lead { font-size: 16px; line-height: 1.9; color: #4d4550; margin-top: 22px; max-width: 560px; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.feat { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; padding: 16px; background: #ffffffb8; border: 1px solid var(--red-line); border-radius: 12px; }
.feat i { width: 38px; height: 38px; border-radius: 9px; background: #fce7e7; color: var(--red); display: grid; place-items: center; font-style: normal; font-size: 20px; }
.feat b { display: block; font-size: 14px; font-weight: 600; }
.feat p { font-size: 12px; line-height: 1.75; color: var(--muted); margin-top: 4px; }
.auth-card { background: white; border: 1px solid var(--red-line); border-radius: 16px; padding: 30px 32px; box-shadow: 0 18px 40px #a2454512; }
.auth-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.auth-tabs button { padding: 10px 2px; font-size: 15px; color: #858b94; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.auth-tabs button.on { color: var(--red); border-color: var(--red); font-weight: 600; }
.pub-foot { font-size: 11px; color: #959ba3; padding: 26px 0; display: flex; justify-content: space-between; }

/* ---- forms ---- */
.field { display: block; margin-top: 18px; font-size: 12px; }
.field .hint { color: var(--muted); margin-left: 6px; }
.field input, .field textarea {
  width: 100%; display: block; margin-top: 8px; padding: 11px 12px; border: 1px solid #dbe0e5; border-radius: 6px;
  background: white; font-size: 13px;
}
.field textarea { font-family: var(--mono); font-size: 12px; min-height: 76px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid #d3232d33; border-color: var(--red); }
.form-actions { margin-top: 24px; }
.form-actions .btn { width: 100%; }
.error-text { color: var(--red); margin-top: 12px; font-size: 12px; min-height: 18px; }

/* ---- console (workspace) ---- */
.ws { background: var(--bg); min-height: 100vh; }
.ws-side {
  position: fixed; inset: 0 auto 0 0; width: 232px; background: white; border-right: 1px solid var(--line);
  padding: 22px 16px; display: flex; flex-direction: column; overflow: auto; z-index: 20;
}
.ws-side nav { flex: 1; margin-top: 26px; }
.ws-side nav small { display: block; font-size: 10px; color: #9da3ac; padding: 16px 12px 8px; letter-spacing: 1px; }
.ws-side nav a { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 3px; }
.ws-side nav a span { width: 18px; text-align: center; color: #9aa1aa; }
.ws-side nav a:hover { background: #f7f3f3; }
.ws-side nav a.on { background: var(--red-soft); color: var(--red); }
.ws-side nav a.on span { color: var(--red); }
.ws-user { border-top: 1px solid var(--line); padding: 16px 8px 4px; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.ws-user .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tag-admin { background: #7a4cc2; color: white; border-radius: 4px; padding: 0 6px; font-size: 10px; margin-left: 4px; }
.ws-main { margin-left: 232px; }
.ws-top {
  position: sticky; top: 0; z-index: 10; height: 64px; background: #fffffff2; backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 32px;
}
.crumb { font-size: 12px; color: var(--muted); }
.crumb b { color: var(--ink); font-weight: 500; }
#view { padding: 28px 32px 120px; max-width: 1500px; }
.ws-title { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 22px; }
.ws-title h1 { font-size: 26px; letter-spacing: -.5px; font-weight: 600; }
.ws-title p { font-size: 12px; color: #89919a; margin-top: 6px; }

.panel { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; margin-bottom: 16px; }
.bar-title { font-size: 15px; font-weight: 600; padding-left: 10px; border-left: 3px solid var(--red); line-height: 1.2; }
.p-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 16px; }
.fine { font-size: 11px; color: #959ba3; margin-top: 12px; }

/* ---- status ---- */
.dot { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap; }
.dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gray); }
.dot.running::before { background: var(--green); box-shadow: 0 0 0 3px #1a9b5a22; }
.dot.creating::before, .dot.releasing::before { background: var(--amber); animation: blink 1.2s infinite; }
.dot.failed::before { background: var(--red); }
.dot.ok::before { background: var(--green); }
@keyframes blink { 50% { opacity: .3; } }
.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 11px; background: var(--red-soft); color: var(--red); }
.pill.gray { background: #eef0f4; color: #5b6475; }
.pill.green { background: #e2f5eb; color: var(--green); }

/* ---- my instances: list + detail ---- */
.filters { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tabs { display: inline-flex; background: #eef0f3; border-radius: 8px; padding: 3px; gap: 2px; }
.tabs button { padding: 6px 14px; border-radius: 6px; font-size: 12px; color: #5d6570; }
.tabs button.on { background: white; color: var(--ink); box-shadow: 0 1px 3px #0000000f; font-weight: 600; }
.tabs button i { font-style: normal; color: var(--muted); margin-left: 4px; }
/* 详情页里的标签（链接形式，如虚拟网络的概况 / 安全组） */
.tabs a { padding: 6px 14px; border-radius: 6px; font-size: 12px; color: #5d6570; text-decoration: none; }
.tabs a.on { background: white; color: var(--ink); box-shadow: 0 1px 3px #0000000f; font-weight: 600; }
.tabs a i { font-style: normal; color: var(--muted); margin-left: 4px; }
.d-tabs { margin: 4px 0 6px; }
/* 安全组出站规则的目标：类型 + 地址段 */
.rules .dest { display: flex; gap: 6px; }
.rules .dest input { width: 140px; }
/* 服务入口的启动命令：长，限制宽度 */
.ep-cmd { display: inline-block; max-width: 420px; font-size: 11.5px; }
.filters .spacer { flex: 1; }
.count { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.nl { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; align-items: start; }
.nl-list { display: grid; gap: 8px; max-height: calc(100vh - 250px); overflow: auto; padding-right: 2px; }
.nl-card {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center;
  background: white; border: 1px solid var(--line); border-radius: 10px; padding: 12px; transition: .15s;
}
.nl-card:hover { border-color: #e6c3c6; }
.nl-card.on { border-color: var(--red); background: #fffafa; box-shadow: 0 0 0 1px var(--red); }
.chip { width: 34px; height: 34px; border-radius: 8px; background: #fce7e7; color: var(--red); display: grid; place-items: center; font-style: normal; font-size: 18px; }
.nl-card b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl-card small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.nl-card .r { text-align: right; }
.nl-card .r small { color: var(--ink); }
.empty { text-align: center; padding: 56px 24px; border: 1px dashed #d8dce2; border-radius: 12px; background: white; }
.empty > span { font-size: 34px; color: #d59a9e; }
.empty h3 { font-size: 17px; margin: 12px 0 8px; font-weight: 600; }
.empty p { font-size: 12px; color: var(--muted); margin-bottom: 18px; }

.detail { background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.d-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.d-head h2 { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-head .sub { font-size: 12px; color: var(--muted); margin-top: 6px; }
.d-msg { padding: 10px 24px; font-size: 12px; background: #fffaf1; color: #8a5a1c; border-bottom: 1px solid #f4e8d3; }
.d-msg.err { background: var(--red-tint); color: #a3242d; border-color: #f6d9db; }
.d-sec { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.d-sec:last-child { border-bottom: 0; }
.d-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.d-sec h3 { font-size: 14px; font-weight: 600; }
.d-sec h3 small { font-weight: 400; color: var(--muted); font-size: 11px; margin-left: 8px; }
.total { font-size: 12px; color: var(--muted); }
.total b { font-size: 22px; color: var(--red); font-weight: 600; margin-left: 4px; }
.bill-box { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.bill-state { display: grid; gap: 10px; align-content: space-between; justify-items: start; font-size: 12px; color: var(--muted); }
.bill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 0; }
.bill-grid dt { font-size: 11px; color: var(--muted); }
.bill-grid dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; }
.conn-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.conn-tabs span { padding: 8px 14px; font-size: 12px; border-bottom: 2px solid var(--red); color: var(--red); font-weight: 600; }
.kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); margin: 0; }
.kv dt, .kv dd { padding: 10px 0; border-bottom: 1px dashed #edf0f2; font-size: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.kv > :nth-last-child(-n+2) { border-bottom: 0; }
.cmd { font-family: var(--mono); font-size: 12.5px; background: #272a33; color: #f0d6d9; border-radius: 6px; padding: 5px 10px; word-break: break-all; }
.kv2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.kv2 dt { font-size: 11px; color: var(--muted); }
.kv2 dd { margin: 3px 0 0; font-size: 13px; word-break: break-all; }
.kv2 .wide { grid-column: span 3; }

/* ---- my account ---- */
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.avatar.lg { width: 52px; height: 52px; font-size: 22px; }
.acct-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.acct-card { display: flex; align-items: center; gap: 16px; margin: 0; min-height: 120px; }
.acct-card small { display: block; font-size: 12px; color: var(--muted); }
.acct-name { display: block; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.acct-card.stat { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
.acct-card .num { font-size: 30px; font-weight: 600; letter-spacing: -1px; line-height: 1.2; }
.acct-card .num.red { color: var(--red); }
.acct-card .num em { font-style: normal; font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 5px; letter-spacing: 0; }
.acct-card.stat > span { font-size: 12px; color: var(--muted); }
table.bills { width: 100%; border-collapse: collapse; }
.bills th, .bills td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
.bills th { color: var(--muted); font-weight: 500; font-size: 12px; background: #fafbfc; }
.bills tr:last-child td { border-bottom: 0; }
.bills td b { font-weight: 500; }
.bills td small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.bills .r { text-align: right; }
.bills .amt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bills .amt.plus { color: var(--green); }
.empty-line { text-align: center; color: var(--muted); padding: 28px 0; }
.sec-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.sec-row b { display: block; font-size: 14px; font-weight: 500; }
.sec-row small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.pw-form { max-width: 420px; margin-top: 14px; padding-top: 4px; border-top: 1px dashed var(--line); }
.pw-form .form-actions .btn { width: auto; min-width: 120px; }

/* ---- host market ---- */
.mk-list { display: grid; gap: 8px; }
.mk-row {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1fr 1.3fr 1.2fr 92px; gap: 12px; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; cursor: pointer; transition: .15s; background: white;
}
.mk-row:hover { border-color: #e6c3c6; }
.mk-row.on { border-color: var(--red); background: #fffafa; box-shadow: 0 0 0 1px var(--red); }
.mk-row.off { opacity: .5; cursor: not-allowed; }
.mk-row b { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; }
.mk-row small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.mk-row .model { color: var(--red); font-weight: 600; font-size: 15px; }
.mk-row .price { color: var(--red); font-weight: 600; }
.mk-row .avail { font-size: 12px; color: var(--muted); }
.mk-row select { width: 100%; padding: 6px 8px; border: 1px solid #dbe0e5; border-radius: 6px; background: white; font-size: 12px; }
.sold { display: inline-block; padding: 2px 10px; border-radius: 6px; background: #eef0f4; color: #8a93a5; font-size: 12px; }

/* ---- 租用实例：向导（第 2 期，参考 Nebius 的 Create virtual machine）---- */
.wiz { display: grid; grid-template-columns: 150px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.wiz-steps { position: sticky; top: 84px; display: grid; gap: 4px; }
.wiz-steps button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 13px; color: #5d6570; text-align: left; }
.wiz-steps button:hover { background: #f3f4f6; }
.wiz-steps button i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #cfd4da; display: grid; place-items: center; font-style: normal; font-size: 11px; flex-shrink: 0; }
.wiz-steps button.done i { border-color: var(--red); color: var(--red); }
.wiz-steps button.bad i { border-color: var(--red); background: var(--red-tint); color: var(--red); font-weight: 700; }
.wiz-steps button.on { background: var(--red-soft); color: var(--red); font-weight: 600; }
.wiz-steps button.on i { border-color: var(--red); background: var(--red); color: white; }
.wiz-nav { display: flex; align-items: center; gap: 12px; }
.wiz-nav .spacer { flex: 1; }
.mk-row.vm { grid-template-columns: 1.6fr 1fr 1fr 1.3fr 1.1fr; }
.opt[data-action] { cursor: pointer; transition: .15s; }
.opt[data-action]:hover { border-color: #e6c3c6; }
.opt.off[data-action] { cursor: not-allowed; }
.vm-disk { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: end; }
.vm-disk .kv2 { grid-template-columns: 1fr 1fr; padding-bottom: 10px; }
.key-list { display: grid; gap: 8px; margin-top: 8px; }
.key-item { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.key-item:hover { border-color: #e6c3c6; }
.key-item input { accent-color: var(--red); }
.key-item b { display: block; font-size: 13px; font-weight: 500; }
.key-item small { display: block; font-size: 11px; color: var(--muted); }
/* 共享文件系统：勾选后在同一行填挂载路径 */
.key-item.fs-pick { cursor: default; justify-content: space-between; flex-wrap: wrap; }
.key-item.fs-pick label { display: flex; gap: 10px; align-items: center; cursor: pointer; flex: 1; min-width: 200px; }
.key-item.fs-pick input[type=text] { padding: 6px 10px; border: 1px solid #dbe0e5; border-radius: 6px; font: 12px var(--mono, monospace); width: 220px; accent-color: auto; }
.field textarea.tall { min-height: 140px; }
.rv-sec { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.rv-sec:first-of-type { padding-top: 0; }
.rv-sec:last-child { border-bottom: 0; padding-bottom: 0; }
.rv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rv-head b { font-size: 13px; }
.rv-sec .error-text { min-height: 0; margin-top: 8px; }
.code-block { margin: 0; background: #16181d; color: #e3e6ea; border-radius: 8px; padding: 12px 14px; font: 12px/1.6 var(--mono); white-space: pre-wrap; word-break: break-all; max-height: 320px; overflow: auto; }
.key-form { margin: 0 0 16px; border-top: 0; padding-top: 0; }

/* ---- 第 2 期 B2：停机 / 开机、磁盘、网络、安全组 ---- */
.dot.stopping::before, .dot.starting::before { background: var(--amber); animation: blink 1.2s infinite; }
.dot.stopped::before { background: var(--gray); }
.d-acts { display: flex; gap: 8px; align-items: center; }
.attach-row { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.attach-row select, .attach-row input { padding: 7px 10px; border: 1px solid #dbe0e5; border-radius: 6px; background: white; font-size: 12px; min-width: 220px; }
.attach-row input[type=number] { min-width: 0; width: 110px; }
.sub-h { font-size: 13px; font-weight: 600; margin: 18px 0 8px; }
.net-edit { max-width: 640px; }
.net-edit .field input { width: 100%; }
.form-actions.inline { display: flex; gap: 10px; }
.form-actions.inline .btn { width: auto; }
table.rules { width: 100%; border-collapse: collapse; font-size: 12px; }
table.rules th { text-align: left; color: var(--muted); font-weight: 400; padding: 6px 8px 6px 0; }
table.rules td { padding: 6px 8px 6px 0; }
table.rules input, table.rules select { width: 100%; padding: 7px 9px; border: 1px solid #dbe0e5; border-radius: 6px; background: white; font-size: 12px; }
table.rules td:last-child { width: 56px; }
.opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.opt { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: white; }
.opt.on { border-color: var(--red); background: #fffafa; box-shadow: 0 0 0 1px var(--red); }
.opt.off { opacity: .45; }
.opt b { display: block; font-size: 14px; }
.opt .price { color: var(--red); font-weight: 600; font-size: 16px; margin: 6px 0 2px; display: block; }
.opt small { display: block; font-size: 11px; color: var(--muted); }
.opt.image { grid-column: span 2; }
details.panel summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.panel summary::-webkit-details-marker { display: none; }
details.panel summary::after { content: '展开'; font-size: 12px; color: var(--muted); }
details.panel[open] summary::after { content: '收起'; }
.confirm-bar {
  position: fixed; left: 232px; right: 0; bottom: 0; z-index: 15; background: #fffffff5; backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 14px 32px; display: flex; align-items: center; gap: 18px;
  box-shadow: 0 -8px 24px #20263310; font-size: 13px;
}
.confirm-bar .sum { flex: 1; color: #5d6570; }
.confirm-bar .sum b { color: var(--ink); }
.confirm-bar .price { color: var(--red); font-size: 20px; font-weight: 600; }

/* ---- offline jobs: create ---- */
.jn { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.jn-form { margin: 0; padding-top: 6px; }
.jn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field select {
  width: 100%; display: block; margin-top: 8px; padding: 10px 12px; border: 1px solid #dbe0e5; border-radius: 6px;
  background: white; font-size: 13px;
}
.field select:focus { outline: 2px solid #d3232d33; border-color: var(--red); }
.field-desc { display: block; font-size: 11px; color: var(--muted); margin-top: 6px; }
.jn-spec { display: grid; grid-template-columns: minmax(0, 1fr) 96px 120px; gap: 10px; align-items: center; }
.jn-spec select { margin-top: 8px; }
.price-box { margin-top: 8px; border: 1px solid var(--red-line); background: var(--red-tint); color: var(--red); font-weight: 600; border-radius: 6px; padding: 10px 12px; text-align: center; white-space: nowrap; }
.avail { font-size: 12px; margin-top: 8px; }
.avail::before { content: '●'; margin-right: 6px; font-size: 10px; }
.avail.ok { color: var(--green); }
.avail.queue { color: var(--amber); }
.tpl-bar { display: flex; align-items: center; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.tpl-bar span { color: var(--muted); margin-right: 4px; }
.tpl-bar button { border: 1px solid #dbe0e5; border-radius: 999px; padding: 3px 12px; font-size: 12px; background: white; }
.tpl-bar button:hover { color: var(--red); border-color: var(--red); }
.term { border-radius: 10px; overflow: hidden; background: #16181d; border: 1px solid #2a2e36; }
.term-head { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #1f2229; border-bottom: 1px solid #2a2e36; }
.term-head i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.term-head i:nth-child(2) { background: #febc2e; }
.term-head i:nth-child(3) { background: #28c840; }
.term-head span { flex: 1; text-align: center; color: #8b93a1; font-size: 11px; margin-right: 46px; }
.term textarea {
  display: block; width: 100%; min-height: 280px; resize: vertical; border: 0; outline: 0; margin: 0;
  background: transparent; color: #e3e6ea; caret-color: #f0d6d9; padding: 14px 16px;
  font: 12.5px/1.65 var(--mono); tab-size: 4; white-space: pre; overflow: auto;
}
.term-foot { display: flex; justify-content: space-between; padding: 7px 14px; font-size: 11px; color: #8b93a1; border-top: 1px solid #2a2e36; }
.term-foot .ok { color: #5fd38d; }
.term-foot .bad { color: #f6b75c; }
.note { margin-top: 18px; border: 1px dashed #dfe3e8; border-radius: 10px; background: #fafbfc; padding: 12px 16px; font-size: 12px; color: #5d6570; }
.note b { display: inline-block; font-size: 11px; background: #eef0f4; border-radius: 4px; padding: 0 6px; color: var(--ink); }
.note ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.9; }
.note code { font-family: var(--mono); background: #eef0f4; border-radius: 4px; padding: 0 4px; }
.jn-side { position: sticky; top: 84px; margin: 0; display: grid; gap: 12px; }
.jn-side .btn { width: 100%; }
.sum-head { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sum-head i { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; color: var(--red); }
.sum-head b { display: block; font-size: 15px; }
.sum-head small { display: block; font-size: 11px; color: var(--muted); }
dl.sum { margin: 0; }
dl.sum div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px dashed #edf0f2; font-size: 12px; }
dl.sum dt { color: var(--muted); }
dl.sum dd { margin: 0; font-weight: 500; word-break: break-all; }
dl.sum dd.muted { font-weight: 400; }
.red { color: var(--red); }
.sum-after b { font-size: 12px; }
.checks { list-style: none; margin: 8px 0 4px; padding: 0; font-size: 12px; color: #5d6570; line-height: 2; }
.checks li::before { content: '✓'; color: var(--red); margin-right: 8px; }

/* ---- offline jobs: list + detail ---- */
.search { width: 200px; padding: 7px 10px; border: 1px solid #dbe0e5; border-radius: 6px; background: white; font-size: 12px; }
.search:focus { outline: 2px solid #d3232d33; border-color: var(--red); }
.d-acts { display: flex; gap: 8px; flex-shrink: 0; }
pre.log, pre.code {
  margin: 0; border-radius: 8px; background: #16181d; color: #d7dae0; padding: 12px 14px;
  font: 12px/1.6 var(--mono); white-space: pre-wrap; word-break: break-all; overflow: auto;
}
pre.log { min-height: 140px; max-height: 460px; }
pre.code { max-height: 300px; color: #e3e6ea; }
.sub-h { font-size: 12px; font-weight: 500; color: var(--muted); margin: 14px 0 8px; }
.env-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.env-chips span { background: #f1f3f6; border-radius: 6px; padding: 3px 9px; font-size: 12px; word-break: break-all; }

/* ---- toasts ---- */
#toasts { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; justify-items: center; }
.toast { background: #292d36; color: white; padding: 11px 20px; border-radius: 8px; font-size: 12px; box-shadow: 0 8px 24px #0003; max-width: 520px; }
.toast.error { background: var(--red); }
.toast.ok { background: #1f7a4b; }

/* ---- 第 1 期：Nebius 式的列表页 / 创建页 / 详情页，网盘，上传列表 ---- */
.title-acts { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.back { display: inline-block; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.back:hover { color: var(--red); }
.panel.flush { padding: 0; overflow: hidden; }
table.rtable { width: 100%; border-collapse: collapse; }
.rtable th, .rtable td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
.rtable th { color: var(--muted); font-weight: 500; font-size: 12px; background: #fafbfc; white-space: nowrap; }
.rtable tr:last-child td { border-bottom: 0; }
.rtable td b { font-weight: 500; }
.rtable td small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.rtable td a b { color: var(--ink); }
.rtable td a:hover b { color: var(--red); }
.rtable .r { text-align: right; }
.rtable .amt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rtable tr.link { cursor: pointer; }
.rtable tr.link:hover td { background: #fffafa; }
.rtable .empty-line { text-align: center; color: var(--muted); padding: 28px 0; }
.create { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.create > div > .panel:last-child { margin-bottom: 0; }
.est { position: sticky; top: 84px; margin: 0; display: grid; gap: 12px; }
.est .btn { width: 100%; text-align: center; }
.est-price b { font-size: 28px; color: var(--red); font-weight: 600; }
.est-price span { color: var(--muted); margin-left: 4px; }
.est .sum dd small { display: block; color: var(--muted); font-size: 11px; }
.nd-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 16px; }
.nd-top .panel { margin-bottom: 16px; }
.nd-info .kv2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nd-num { font-size: 13px; color: var(--muted); margin: 8px 0; }
.nd-num b { font-size: 22px; color: var(--ink); font-weight: 600; margin-right: 2px; }
.nd-num b.red { color: var(--red); }
.bar { height: 6px; border-radius: 3px; background: #eef0f3; overflow: hidden; margin: 6px 0; }
.bar i { display: block; height: 100%; background: var(--red); border-radius: 3px; transition: width .3s; }
.bar i.full { background: var(--red-dark); }
.nd-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.nd-bar .spacer { flex: 1; }
.nd-crumb { font-size: 13px; color: var(--muted); }
.nd-crumb .link-btn { font-size: 13px; }
.nd-crumb .cur { color: var(--ink); font-weight: 600; cursor: default; }
label.btn { cursor: pointer; }
label.btn.disabled { opacity: .45; pointer-events: none; }
.danger-outline { color: var(--red); border-color: var(--red-line); }
.danger-outline.armed { background: var(--red); color: white; }
.danger-link { color: var(--red); }
.danger-link.armed { font-weight: 600; text-decoration: underline; }
.nd-files.drag { box-shadow: 0 0 0 2px var(--red); background: #fffafa; }
.nd-mkdir { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fcfcfd; }
.nd-mkdir input { padding: 7px 10px; border: 1px solid #dbe0e5; border-radius: 6px; min-width: 260px; }
.nd-mkdir .error-text { margin: 0; }
.nd-table .ck { width: 36px; }
.nd-name { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; text-align: left; word-break: break-all; }
button.nd-name:hover { color: var(--red); }
.nd-empty { text-align: center; padding: 40px 0; color: var(--muted); }
.nd-empty span { display: block; font-size: 28px; color: #c5cad1; }
.nd-empty b { display: block; color: var(--ink); font-weight: 500; margin: 6px 0 4px; }
.up-panel { position: fixed; right: 24px; bottom: 24px; z-index: 30; width: 380px; max-height: 60vh; display: flex; flex-direction: column;
  background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 36px #20263322; }
.up-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; }
.up-head .spacer { flex: 1; }
.up-list { overflow: auto; padding: 4px 16px 10px; }
.up-item { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.up-item:last-child { border-bottom: 0; }
.up-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 12px; }
.up-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-st { color: var(--muted); white-space: nowrap; }
.up-item.done .bar i { background: var(--green); }
.up-item.fail .bar i { background: var(--gray); }
.up-item small { color: var(--muted); }

@media (max-width: 1100px) {
  .nl { grid-template-columns: 1fr; }
  .nl-list { max-height: none; }
  .mk-row { grid-template-columns: 1.4fr repeat(5, 1fr) 1.2fr; }
  .mk-row > :nth-child(6), .mk-row > :nth-child(8) { display: none; }
  .opts { grid-template-columns: 1fr 1fr; }
  .acct-grid { grid-template-columns: 1fr; }
  .kv2 { grid-template-columns: 1fr 1fr; }
  .jn { grid-template-columns: 1fr; }
  .jn-side, .est { position: static; }
  .create, .nd-top { grid-template-columns: 1fr; }
  .wiz { grid-template-columns: 1fr; }
  .wiz-steps { position: static; grid-auto-flow: column; overflow-x: auto; }
  .vm-disk { grid-template-columns: 1fr; }
  .mk-row.vm { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .mk-row.vm > :nth-child(3) { display: none; }
}
@media (max-width: 760px) {
  .ws-side { position: static; width: auto; }
  .ws-main { margin-left: 0; }
  .confirm-bar { left: 0; }
  .subhero-grid { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr; }
}

/* 列表页顶部的标签（虚拟网络：网络 / 子网 / 内网域名） */
.list-tabs { margin: 0 0 14px; }
