/* Claude 托管控制台. Desktop only (1440 px baseline, 1280–1920 checked). One accent colour, neutral surfaces,
   semantic colours only for state. Spacing on a 4 px grid; type scale 12 / 13 / 14 / 16 / 20. */
:root {
  --bg: #f3f5f8; --surface: #ffffff; --surface-2: #f7f8fa; --surface-3: #eef1f5; --border: #e3e7ed; --border-strong: #cdd3dc;
  --text: #111827; --text-2: #4a5568; --muted: #6b7686;
  --primary: #3056d3; --primary-hover: #2445b4; --primary-soft: #eef2fd; --primary-line: #c5d2f7;
  --success: #0f7a4f; --success-soft: #ebf8f1; --success-line: #b5e5cc;
  --warning: #a8530b; --warning-soft: #fdf6e9; --warning-line: #f5d9a8;
  --danger: #b4262a; --danger-soft: #fdf0f0; --danger-line: #f4c7c7;
  --neutral: #4f5b6b; --neutral-soft: #eef1f5; --neutral-line: #dde2e9;
  --side-bg: #111827; --side-bg-2: #1b2433; --side-text: #c4cbd6; --side-muted: #7b8698; --side-active: #ffffff;
  --radius: 6px; --radius-card: 10px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 1px 1px rgba(17, 24, 39, .03);
  --shadow-raised: 0 8px 24px rgba(17, 24, 39, .10);
  --font: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --control: 32px; --control-sm: 26px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.55 var(--font); min-width: 1200px; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.mono { font-family: var(--font-mono); font-size: 12.5px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.icon { width: 16px; height: 16px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Shell: dark sidebar, sticky page header */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--side-bg); color: var(--side-text); display: flex; flex-direction: column; }
.brand { height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 18px; font-weight: 600; font-size: 15px; color: #fff; letter-spacing: .2px; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, #4f7cff, #2f4fc2); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.nav { padding: 4px 0 12px; overflow-y: auto; flex: 1; }
.nav-group { padding: 14px 20px 4px; font-size: 11.5px; letter-spacing: .5px; color: var(--side-muted); }
.nav a { position: relative; display: flex; align-items: center; gap: 10px; height: 32px; margin: 1px 10px; padding: 0 10px; border-radius: var(--radius); color: var(--side-text); font-size: 13.5px; }
.nav a .icon { color: var(--side-muted); }
.nav a:hover { background: var(--side-bg-2); text-decoration: none; color: #fff; }
.nav a:hover .icon { color: var(--side-text); }
.nav a.active { background: var(--side-bg-2); color: var(--side-active); font-weight: 600; }
.nav a.active .icon { color: #8fb0ff; }
.nav-badge { margin-left: auto; padding: 0 6px; border-radius: 9px; background: var(--warning, #b7791f); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; }
.nav a.active::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: #6f93ff; }
.sidebar-footer { border-top: 1px solid rgba(255, 255, 255, .08); padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #2b3a55; color: #dce6ff; display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
.user-name { font-weight: 600; color: #fff; font-size: 13px; }
.user-role { font-size: 12px; color: var(--side-muted); }
.sidebar-footer .btn-ghost { margin-left: auto; color: var(--side-text); }
.sidebar-footer .btn-ghost:hover { background: var(--side-bg-2); color: #fff; }
.main { min-width: 0; display: flex; flex-direction: column; }
.fixture-banner { display: flex; align-items: center; gap: 8px; background: var(--warning-soft); border-bottom: 1px solid var(--warning-line); color: var(--warning); padding: 6px 32px; font-size: 12.5px; }
.page-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 18px 32px 14px; margin-bottom: 20px;
  background: rgba(243, 245, 248, .92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--border); }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text-2); }
.page-title { font-size: 20px; font-weight: 600; line-height: 1.3; display: flex; align-items: center; gap: 10px; }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 8px; font-size: 13px; color: var(--text-2); }
.page-meta:empty { display: none; }
.meta-item { display: inline-flex; align-items: center; gap: 6px; }
.meta-label { color: var(--muted); }
.page-actions { display: flex; gap: 8px; align-items: center; }
.page-body { padding: 0 32px 48px; max-width: 1480px; display: flex; flex-direction: column; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr); gap: 16px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }

/* Cards: title row without a rule; flush bodies (tables) keep one */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); min-width: 0; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 20px 0; }
.card-header:has(+ .card-body.flush) { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.card-title { font-size: 14.5px; font-weight: 600; }
.card-subtitle { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card-actions { display: flex; gap: 8px; align-items: center; }
.card-body { padding: 14px 20px 18px; }
.card-body.flush { padding: 0; }
.card > .card-body:first-child:not(.flush) { padding-top: 18px; }
.card-body > * + * { margin-top: 14px; }
.card-body.flush > * + * { margin-top: 0; }
.section-title { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.danger-zone { border-color: var(--danger-line); }
.danger-zone .card-header { padding-bottom: 12px; border-bottom: 1px solid var(--danger-line); }
.danger-zone .card-title { color: var(--danger); }
.danger-item { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 20px; border-top: 1px solid var(--border); }
.danger-item:first-child { border-top: 0; }
.danger-zone .card-body:not(.flush) { padding: 0; }
.danger-zone .card-body > * + * { margin-top: 0; }
.danger-item h3 { font-size: 13.5px; font-weight: 600; }
.danger-item p { color: var(--text-2); font-size: 12.5px; margin-top: 2px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 14px 18px 16px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.stat-label { font-size: 12.5px; color: var(--text-2); }
.stat-value { font-size: 28px; font-weight: 650; line-height: 1.2; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.stat-note { font-size: 12px; color: var(--muted); margin-top: 2px; }
.price-meta { padding: 12px 18px; font-size: 12.5px; }
a.stat { color: inherit; }
a.stat:hover { text-decoration: none; border-color: var(--primary-line); box-shadow: var(--shadow-raised); }
a.stat::after { content: "›"; position: absolute; right: 16px; top: 12px; color: var(--border-strong); font-size: 18px; }
a.stat:hover::after { color: var(--primary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--control); padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: 500 13.5px/1 var(--font); cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); border-color: #bcc4cf; }
.btn:focus-visible, .input:focus-visible, .tab:focus-visible, .nav a:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 1px 1px rgba(17, 24, 39, .08); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-danger { color: var(--danger); border-color: var(--danger-line); }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger-solid:hover { background: #911d21; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); border-color: transparent; }
.btn-sm { height: var(--control-sm); padding: 0 9px; font-size: 12.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn[aria-busy="true"] { opacity: .85; cursor: progress; }
.btn[aria-busy="true"]::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.btn .icon { width: 15px; height: 15px; }

/* Badges and tags */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 21px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 500; white-space: nowrap; border: 1px solid transparent; line-height: 1; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { color: var(--success); background: var(--success-soft); border-color: var(--success-line); }
.badge-warning { color: var(--warning); background: var(--warning-soft); border-color: var(--warning-line); }
.badge-danger { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-line); }
.badge-info { color: var(--primary); background: var(--primary-soft); border-color: var(--primary-line); }
.badge-neutral { color: var(--neutral); background: var(--neutral-soft); border-color: var(--neutral-line); }
.tag { display: inline-flex; align-items: center; height: 21px; padding: 0 7px; border-radius: 4px; background: var(--surface-3); color: var(--text-2); font-size: 12px; border: 1px solid var(--border); }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 9px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 16px; border-bottom: 1px solid #edf0f4; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; }
.table tbody tr:hover td { background: #fafbfc; }
.table tr.clickable:hover td { background: var(--primary-soft); }
.table .actions { text-align: right; white-space: nowrap; }
.table .nowrap, .table .tag, .table .badge { white-space: nowrap; }
.cell-main { font-weight: 600; color: var(--text); }
.cell-main a, a .cell-main { color: inherit; }
.cell-sub { font-size: 12px; color: var(--muted); }
/* Filters: one toolbar row, label beside its control */
.filters { display: flex; align-items: center; gap: 10px 20px; padding: 10px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; background: var(--surface); border-radius: var(--radius-card) var(--radius-card) 0 0; }
.page-body > .filters, .stack > .filters { border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.filters .field { flex-direction: row; align-items: center; gap: 8px; min-width: 0; }
.filters .field-label { font-size: 12.5px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.filters .input { height: 30px; width: auto; min-width: 140px; font-size: 13px; }
.filters .check { height: 30px; font-size: 13px; color: var(--text-2); }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); }
.pager { display: flex; align-items: center; gap: 12px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.form-errors:empty { display: none; }
.form-errors { margin-top: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field-label { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.field-hint { font-size: 12px; color: var(--muted); }
.input { height: var(--control); width: 100%; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); font: 13.5px var(--font); transition: border-color .12s, box-shadow .12s; }
.input:hover { border-color: #b9c1cc; }
/* Single-line controls inside cards stay at a readable width; text areas use the full card. */
.card input.input, .card select.input { max-width: 520px; }
.filters .input, .chips input { max-width: none; }
textarea.input { height: auto; min-height: 160px; padding: 9px 10px; font: 12.5px/1.55 var(--font-mono); resize: vertical; }
select.input { padding-right: 26px; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(48, 86, 211, .14); outline: none; }
.input:disabled { background: var(--surface-2); color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.check input { width: 15px; height: 15px; accent-color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: var(--control); padding: 3px 6px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 4px 0 9px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: 12.5px; }
.chip button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; }
.chips input { border: 0; outline: 0; flex: 1; min-width: 120px; height: 24px; font: 13.5px var(--font); }

/* Key/value */
.kv { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 9px 16px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted); font-size: 12.5px; padding-top: 1px; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* Alerts, states */
.alert { border: 1px solid; border-left-width: 3px; border-radius: var(--radius); padding: 10px 14px; font-size: 13px; background: var(--surface); }
.alert-title { font-weight: 600; font-size: 13.5px; }
.alert-text { margin-top: 2px; color: var(--text-2); }
.alert-meta { margin-top: 6px; color: var(--muted); font-size: 12px; }
.alert-danger { background: var(--danger-soft); border-color: var(--danger-line); border-left-color: var(--danger); }
.alert-danger .alert-title { color: var(--danger); }
.alert-warning { background: var(--warning-soft); border-color: var(--warning-line); border-left-color: var(--warning); }
.alert-warning .alert-title { color: var(--warning); }
.alert-info { background: var(--primary-soft); border-color: var(--primary-line); border-left-color: var(--primary); }
.alert-info .alert-title { color: var(--primary-hover); }
.alert-success { background: var(--success-soft); border-color: var(--success-line); border-left-color: var(--success); }
.alert-success .alert-title { color: var(--success); }
.alert .row { margin-top: 8px; }
.state-block { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px 20px; color: var(--muted); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--primary); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 40px 24px; text-align: center; }
.empty::before { content: ""; display: block; width: 36px; height: 36px; margin: 0 auto 12px; border-radius: 10px; border: 1.5px dashed var(--border-strong); background: var(--surface-2); }
.empty-title { font-weight: 600; font-size: 14px; }
.empty-text { color: var(--muted); margin-top: 4px; font-size: 13px; }
.empty-action { margin-top: 14px; }
.copyable { display: inline-flex; align-items: center; gap: 6px; }
.copy { border: 0; background: transparent; color: var(--primary); cursor: pointer; font-size: 12px; padding: 0; white-space: nowrap; flex: none; }
.copy:hover { text-decoration: underline; }
.copyable .mono { overflow-wrap: anywhere; }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-top: -4px; }
.tab { height: 38px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-2); font: 500 13.5px var(--font); cursor: pointer; margin-bottom: -1px; border-radius: var(--radius) var(--radius) 0 0; }
.tab:hover { color: var(--text); background: var(--surface-3); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; background: transparent; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; position: relative; padding-bottom: 14px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); position: relative; z-index: 1; }
.dot-succeeded { border-color: var(--success); background: var(--success); }
.dot-failed { border-color: var(--danger); background: var(--danger); }
.dot-running { border-color: var(--primary); border-right-color: transparent; animation: spin 1s linear infinite; }
.dot-interrupted, .dot-cancelled { border-color: var(--warning); background: var(--warning-soft); }
.step-name { font-weight: 500; }
.step-meta { font-size: 12px; color: var(--muted); }
.step-error { font-size: 13px; color: var(--danger); margin-top: 2px; }
.step-time { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Dialog, drawer, toast */
.dialog { border: 0; border-radius: 12px; padding: 0; width: 460px; box-shadow: 0 24px 56px rgba(17, 24, 39, .22); color: var(--text); }
.dialog::backdrop, .drawer::backdrop { background: rgba(17, 24, 39, .42); }
.dialog-header { padding: 20px 24px 0; font-size: 16px; font-weight: 600; }
.dialog-body { padding: 10px 24px 0; color: var(--text-2); font-size: 13.5px; }
.dialog-body > * + * { margin-top: 12px; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 20px 24px; }
.drawer { border: 0; margin: 0 0 0 auto; padding: 0; width: 540px; max-width: 540px; height: 100vh; max-height: 100vh; box-shadow: -12px 0 32px rgba(17, 24, 39, .14); color: var(--text); }
.drawer[open] { display: flex; flex-direction: column; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.drawer-header h2 { font-size: 16px; font-weight: 600; }
.drawer-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.drawer-body > * + * { margin-top: 16px; }
.drawer .form-grid { grid-template-columns: minmax(0, 1fr); }
.icon-close { border: 0; background: transparent; font-size: 22px; color: var(--muted); cursor: pointer; line-height: 1; border-radius: var(--radius); width: 30px; height: 30px; }
.icon-close:hover { background: var(--surface-3); color: var(--text); }
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--success); border-radius: var(--radius); box-shadow: var(--shadow-raised); padding: 10px 16px; min-width: 260px; max-width: 420px; font-size: 13.5px; }
.toast-danger { border-left-color: var(--danger); }
.toast-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(1200px 600px at 20% -10%, #dfe6fb 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #e6ecf7 0%, transparent 60%), var(--bg); }
.login-card { width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 40px rgba(17, 24, 39, .10); padding: 32px; }
.login-card .brand { height: auto; padding: 0; margin-bottom: 24px; font-size: 18px; color: var(--text); }
.login-card .form-grid { grid-template-columns: minmax(0, 1fr); }
.login-card .form-actions { justify-content: stretch; }
.login-card .form-actions .btn { flex: 1; height: 36px; }
.login-card .input { height: 36px; }
.login-note { font-size: 12px; color: var(--muted); margin-top: 16px; }

/* Steps (authorization) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.steps > li:first-child { border-top: 0; padding-top: 0; }
.step-index { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--neutral-soft); color: var(--neutral); }
.steps > li.current .step-index { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-soft); }
.steps > li.done .step-index { background: var(--success); color: #fff; }
.steps > li.pending { opacity: .55; }
.step-title { font-weight: 600; }
.step-body { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.step-body .field { max-width: 420px; }

/* Consoles, logs */
.output { background: #0f172a; color: #e2e8f0; border-radius: var(--radius); padding: 14px 16px; font: 12.5px/1.6 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; min-height: 120px; max-height: 420px; overflow: auto; }
details.tech summary { cursor: pointer; color: var(--text-2); font-size: 13px; }
.log-tail { background: #0f172a; color: #e2e8f0; border-radius: var(--radius); padding: 12px 14px; font: 12px/1.55 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 60vh; overflow: auto; margin: 0; }
.step-detail { margin-top: 4px; font-size: 12px; color: var(--muted); }
.step-detail .log-tail { max-height: 220px; margin-top: 6px; }
details.tech pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; font: 12px/1.5 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; margin: 8px 0 0; }
.issued { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; }
.issued .kv { grid-template-columns: 48px minmax(0, 1fr); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--border); }
.checklist li:first-child { border-top: 0; padding-top: 0; }
.text-danger { color: var(--danger); }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; margin-top: 6px; }
.check-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); }
.check-list li { display: grid; grid-template-columns: 96px 72px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border); }
.check-list li:first-child { border-top: 0; }
.check-list li.first-failure { background: var(--danger-soft); }
.check-name { font-weight: 600; }
.check-next { justify-self: end; }
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-list li { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--border); font-size: 13.5px; }
.todo-list li:first-child { border-top: 0; }
.job-progress > * + *, .job-steps + .alert, .timeline + .alert { margin-top: 16px; }

/* Card body padding */
.card-pad { padding: 14px 20px; }
/* Account device code: shown once, selectable as one block. */
.access-code-box { padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
textarea.input.access-code { min-height: 72px; word-break: break-all; }
/* Version page: the three images of a release, one line per role. */
.image-list { display: grid; gap: 4px; min-width: 0; }
.image-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; }
.image-line .mono { overflow-wrap: anywhere; }
.image-role { font-size: 12px; color: var(--muted); white-space: nowrap; }
.image-state { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }

