:root {
  --ink: #151811;
  --ink-2: #24291f;
  --paper: #f2f1e9;
  --paper-2: #e9e8de;
  --surface: #fbfaf4;
  --line: #d8d8cb;
  --line-dark: #b9bcad;
  --muted: #73786b;
  --lime: #c8ff3d;
  --lime-dark: #7ea500;
  --green: #26734e;
  --red: #b53c2f;
  --amber: #a86608;
  --blue: #3266a8;
  --shadow: 0 18px 50px rgba(27, 31, 22, .07);
  --radius: 4px;
  --font: "Manrope", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.hidden { display: none !important; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 244px; padding: 26px 18px 20px; color: #f5f7ed; background: var(--ink); display: flex; flex-direction: column; z-index: 50; }
.brand { height: 52px; display: flex; align-items: center; gap: 13px; padding: 0 8px; color: inherit; text-decoration: none; }
.brand-mark { width: 37px; height: 37px; border: 1px solid #505748; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 7px; transform: rotate(-4deg); }
.brand-mark i { display: block; align-self: end; background: var(--lime); }
.brand-mark i:nth-child(1) { height: 42%; }
.brand-mark i:nth-child(2) { height: 72%; }
.brand-mark i:nth-child(3) { height: 100%; }
.brand strong { display: block; letter-spacing: .055em; font-size: 15px; line-height: 1; }
.brand small { display: block; margin-top: 7px; color: #919987; letter-spacing: .16em; font: 9px var(--mono); }

.main-nav { margin-top: 43px; }
.nav-eyebrow { margin: 0 12px 12px; color: #6e7566; font: 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.nav-section { margin-top: 30px; }
.nav-item { position: relative; width: 100%; height: 45px; border: 0; border-radius: 3px; padding: 0 11px; display: flex; align-items: center; gap: 12px; color: #aeb5a5; background: transparent; cursor: pointer; text-align: left; transition: .18s ease; }
.nav-item:hover { color: white; background: #20251d; }
.nav-item.active { color: var(--ink); background: var(--lime); font-weight: 700; }
.nav-icon { width: 21px; font: 18px/1 var(--mono); text-align: center; }
.nav-item > span:nth-child(2) { font-size: 13px; }
.nav-item kbd, .nav-item em { margin-left: auto; border: 0; min-width: 22px; padding: 3px 5px; border-radius: 2px; background: #2a3025; color: #8f9787; font: normal 9px var(--mono); text-align: center; }
.nav-item.active kbd, .nav-item.active em { background: rgba(21,24,17,.11); color: var(--ink); }

.sidebar-foot { margin-top: auto; }
.health-pulse { display: flex; gap: 11px; align-items: center; padding: 14px 12px; border: 1px solid #343a2f; background: #1b1f18; }
.health-pulse > span { width: 9px; height: 9px; border-radius: 50%; background: #707668; box-shadow: 0 0 0 5px rgba(112,118,104,.12); }
.health-pulse > span.ok { background: var(--lime); box-shadow: 0 0 0 5px rgba(200,255,61,.11); }
.health-pulse > span.warn { background: #ffbb4d; box-shadow: 0 0 0 5px rgba(255,187,77,.11); }
.health-pulse strong, .health-pulse small { display: block; }
.health-pulse strong { font-size: 11px; }
.health-pulse small { margin-top: 4px; color: #747c6d; font: 9px var(--mono); letter-spacing: .1em; }
.version-row { display: flex; justify-content: space-between; margin-top: 14px; padding: 0 3px; color: #697061; font-size: 9px; }
.version-row code { font-family: var(--mono); }

.workspace { margin-left: 244px; min-height: 100vh; }
.topbar { position: sticky; top: 0; height: 72px; padding: 0 clamp(24px, 4vw, 58px); border-bottom: 1px solid var(--line); background: rgba(242,241,233,.9); backdrop-filter: blur(16px); display: flex; align-items: center; justify-content: space-between; z-index: 40; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.breadcrumb span { color: var(--muted); font: 10px var(--mono); letter-spacing: .12em; }
.breadcrumb b { color: var(--line-dark); }
.breadcrumb strong { font-size: 11px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.live-clock { margin-right: 8px; display: flex; align-items: center; gap: 8px; color: var(--muted); font: 10px var(--mono); }
.live-clock i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime-dark); box-shadow: 0 0 0 4px rgba(126,165,0,.1); }
.icon-button, .mobile-menu { width: 35px; height: 35px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.icon-button:hover { background: var(--surface); transform: rotate(20deg); }
.mobile-menu { display: none; }

.view { display: none; padding: 49px clamp(24px, 4vw, 58px) 70px; max-width: 1600px; margin: 0 auto; animation: viewIn .24s ease both; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page-heading { min-height: 100px; margin-bottom: 31px; display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.page-heading h1 { margin: 4px 0 9px; font-size: clamp(30px, 3.5vw, 48px); line-height: 1; letter-spacing: -.045em; }
.page-heading > div > p:last-child { max-width: 670px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.kicker, .section-index { margin: 0; color: var(--lime-dark); font: 10px var(--mono); letter-spacing: .14em; }
.editorial-heading { align-items: end; }
.hero-action { width: 176px; height: 56px; justify-content: space-between !important; }

.primary, .secondary, .danger { height: 42px; border-radius: 2px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; text-decoration: none; font-size: 12px; font-weight: 700; transition: .16s ease; }
.primary { border: 1px solid var(--ink); color: white; background: var(--ink); }
.primary:hover { color: var(--ink); background: var(--lime); transform: translateY(-1px); box-shadow: 4px 4px 0 var(--ink); }
.primary.compact, .secondary.compact { height: 35px; padding: 0 13px; }
.secondary { border: 1px solid var(--line-dark); color: var(--ink); background: transparent; }
.secondary:hover { border-color: var(--ink); background: var(--surface); }
.danger { border: 1px solid #d4a69f; color: var(--red); background: #fff7f5; }
.full { width: 100%; }
.text-button { padding: 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; }
.text-button:hover { color: var(--ink); }
.text-button span { margin-left: 5px; color: var(--lime-dark); }

.surface { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 0 rgba(255,255,255,.8); }
.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--surface); }
.metric { min-height: 143px; padding: 23px 24px; border-right: 1px solid var(--line); }
.metric:last-child { border: 0; }
.metric.featured { background: var(--ink); color: white; }
.metric p { margin: 0 0 16px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.metric.featured p { color: #8d9584; }
.metric div { display: flex; align-items: baseline; gap: 9px; }
.metric strong { font-size: 35px; line-height: 1; letter-spacing: -.06em; }
.metric span { color: var(--lime-dark); font: 9px var(--mono); letter-spacing: .08em; }
.metric.featured span { color: var(--lime); }
.metric small { display: block; margin-top: 15px; color: #999f91; font-size: 10px; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr); gap: 18px; margin-top: 18px; }
.activity-surface, .readiness-surface { min-height: 390px; padding: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.section-head > div { display: flex; align-items: baseline; gap: 13px; }
.section-head h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.activity-list { border-top: 1px solid var(--line); }
.activity-row { display: grid; grid-template-columns: 34px minmax(0,1fr) 145px 68px; gap: 14px; align-items: center; min-height: 72px; border-bottom: 1px solid var(--line); cursor: pointer; }
.activity-row:hover { background: #f4f4ec; }
.activity-row > i { width: 9px; height: 9px; border-radius: 50%; margin-left: 7px; background: var(--line-dark); }
.activity-row > i.running { background: var(--lime-dark); box-shadow: 0 0 0 5px rgba(126,165,0,.1); animation: pulse 1.6s infinite; }
.activity-row > i.completed { background: var(--green); }
.activity-row > i.failed { background: var(--red); }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(126,165,0,0); } }
.activity-name b, .activity-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-name b { font-size: 12px; }
.activity-name small { margin-top: 5px; color: var(--muted); font: 9px var(--mono); }
.mini-progress { display: flex; align-items: center; gap: 10px; }
.mini-progress div { height: 4px; flex: 1; background: var(--paper-2); overflow: hidden; }
.mini-progress i { height: 100%; display: block; background: var(--ink); }
.mini-progress span { width: 28px; font: 9px var(--mono); text-align: right; }
.activity-row time { color: var(--muted); font: 9px var(--mono); text-align: right; }
.blank-list { min-height: 260px; display: grid; place-content: center; text-align: center; color: var(--muted); }
.blank-list span { margin-bottom: 12px; font: 30px var(--mono); }
.blank-list b { color: var(--ink); font-size: 13px; }
.blank-list p { margin: 6px 0 0; font-size: 11px; }

.status-pill { min-width: 68px; height: 23px; padding: 0 8px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; color: var(--green); background: #e3f0e7; font: 9px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.status-pill.running { color: #566f00; background: #efffc4; }
.status-pill.failed, .status-pill.stopped, .status-pill.interrupted { color: var(--red); background: #f7e6e2; }
.status-pill.warning { color: #8a5a08; background: #fff0ce; }
.status-pill.neutral, .status-pill.queued { color: var(--muted); background: var(--paper-2); }
.readiness-score { display: grid; grid-template-columns: 92px 1fr; gap: 17px; align-items: center; padding: 18px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.score-ring { --score: 0deg; width: 82px; height: 82px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at center, var(--surface) 58%, transparent 60%), conic-gradient(var(--lime-dark) var(--score), var(--paper-2) 0); }
.score-ring strong { font-size: 24px; line-height: 1; }
.score-ring small { color: var(--muted); font: 9px var(--mono); }
.readiness-score b { font-size: 12px; }
.readiness-score p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.check-list { margin: 15px 0 19px; }
.check-row { height: 29px; display: flex; align-items: center; justify-content: space-between; font-size: 10px; }
.check-row span { color: var(--muted); }
.check-row b { font: 9px var(--mono); }
.check-row b.ok { color: var(--green); }
.check-row b.fail { color: var(--red); }

.workflow-band { margin-top: 18px; padding: 29px 32px; display: grid; grid-template-columns: 300px 1fr; gap: 45px; color: white; background: var(--ink); }
.section-index.inverse { color: var(--lime); }
.workflow-band h2 { margin: 9px 0 8px; font-size: 21px; letter-spacing: -.04em; }
.workflow-band > div > p:last-child { margin: 0; color: #92998a; font-size: 11px; line-height: 1.6; }
.workflow-band ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.workflow-band li { position: relative; padding: 10px 14px 10px 26px; border-left: 1px solid #3a4035; }
.workflow-band li::after { content: "→"; position: absolute; top: 9px; right: -7px; color: #596051; }
.workflow-band li:last-child::after { display: none; }
.workflow-band li span, .workflow-band li b, .workflow-band li small { display: block; }
.workflow-band li span { color: var(--lime); font: 9px var(--mono); }
.workflow-band li b { margin-top: 24px; font-size: 11px; }
.workflow-band li small { margin-top: 6px; color: #7f8778; font-size: 9px; }

.draft-state { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.draft-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime-dark); }
.composer-grid { display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 20px; align-items: start; }
.composer-main { display: grid; gap: 14px; }
.form-section { padding: 26px; }
.form-section-head { min-height: 50px; margin-bottom: 22px; display: flex; align-items: flex-start; gap: 14px; }
.form-section-head > span { color: var(--lime-dark); font: 10px var(--mono); }
.form-section-head > div { flex: 1; }
.form-section-head h2 { margin: -3px 0 5px; font-size: 16px; }
.form-section-head p { margin: 0; color: var(--muted); font-size: 10px; }
.account-toolbar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 17px; }
.source-option { position: relative; min-height: 66px; padding: 13px 15px; border: 1px solid var(--line); display: flex; align-items: center; cursor: pointer; }
.source-option:has(input:checked), .source-option.active { border-color: var(--ink); box-shadow: inset 3px 0 var(--lime-dark); background: #f6f7ee; }
.source-option input { position: absolute; opacity: 0; }
.source-option b, .source-option small { display: block; }
.source-option b { font-size: 11px; }
.source-option small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.field-label { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 10px; font-weight: 700; }
.field-label span { color: var(--muted); font: 9px var(--mono); font-weight: 400; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 2px; outline: 0; color: var(--ink); background: #f8f7f1; transition: .15s ease; }
input, select { height: 42px; padding: 0 12px; }
textarea { padding: 12px; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(21,24,17,.05); background: white; }
textarea, input::placeholder, textarea::placeholder { font-family: var(--mono); }
input::placeholder, textarea::placeholder { color: #a6aa9e; font-size: 10px; }
.textarea-shell { border: 1px solid var(--line); background: #f8f7f1; }
.textarea-shell textarea { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.textarea-shell textarea:focus { box-shadow: none; }
.textarea-meta { height: 38px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; }
.textarea-meta span { display: flex; align-items: center; gap: 6px; }
.textarea-meta i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.textarea-meta b { color: var(--ink); font-family: var(--mono); }
.pool-selection { padding: 16px; border: 1px dashed var(--line-dark); background: #f7f6ef; }
.pool-selection strong { font-size: 12px; }
.pool-selection p { margin: 5px 0 13px; color: var(--muted); font-size: 10px; }
.pool-batch-controls { margin: 15px 0 12px; display: grid; grid-template-columns: minmax(140px, 190px) minmax(0, 1fr); gap: 15px; align-items: end; }
.pool-batch-controls > label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.compact-switch { min-height: 42px; margin: 0; padding: 0; }
.pool-selection-note { margin: 10px 0 0 !important; color: var(--lime-dark) !important; font-family: var(--mono); }

.choice-grid { display: grid; gap: 9px; }
.choice-grid.two { grid-template-columns: repeat(2, 1fr); }
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.choice-card { position: relative; min-height: 77px; padding: 14px; border: 1px solid var(--line); display: flex; align-items: center; gap: 11px; cursor: pointer; overflow: hidden; }
.choice-card:hover { border-color: var(--line-dark); }
.choice-card:has(input:checked), .choice-card.active { border-color: var(--ink); background: #f6f7ed; }
.choice-card:has(input:checked)::after { content: ""; position: absolute; top: -1px; right: -1px; width: 22px; height: 22px; background: linear-gradient(225deg, var(--lime) 50%, transparent 51%); }
.choice-card input { position: absolute; opacity: 0; }
.choice-signal { width: 16px; height: 16px; border: 1px solid var(--line-dark); border-radius: 50%; flex: none; }
.choice-card:has(input:checked) .choice-signal { border: 5px solid var(--ink); background: var(--lime); }
.choice-card b, .choice-card small { display: block; }
.choice-card b { font-size: 11px; }
.choice-card small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.choice-card em { align-self: flex-start; margin-left: auto; padding: 3px 5px; color: #5f7807; background: #eaffae; font: normal 8px var(--mono); text-transform: uppercase; }
.option-panel { margin-top: 13px; padding: 17px; border: 1px solid var(--line); background: #f4f3eb; }
.field-grid { display: grid; grid-template-columns: 1.5fr .75fr .75fr; gap: 11px; }
.field-grid.four { grid-template-columns: repeat(4, 1fr); margin-top: 14px; }
.field-grid > label > span, .run-ticket label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.number-field { position: relative; }
.number-field input { padding-right: 54px; }
.number-field small { position: absolute; top: 15px; right: 10px; color: var(--muted); font: 8px var(--mono); }
.switch-line { position: relative; min-height: 49px; padding: 11px 0 0; margin-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.switch-line b, .switch-line small { display: block; }
.switch-line b { font-size: 10px; }
.switch-line small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.switch-line input { position: absolute; width: auto; height: auto; opacity: 0; }
.switch-line i { position: relative; width: 37px; height: 21px; border-radius: 20px; background: #c7c9bf; transition: .15s; }
.switch-line i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.16); transition: .15s; }
.switch-line input:checked + i { background: var(--ink); }
.switch-line input:checked + i::after { left: 19px; background: var(--lime); }

.segmented { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: #f3f2ea; }
.segmented.compact-segment { grid-template-columns: repeat(2, 1fr); max-width: 420px; }
.segmented label { position: relative; height: 40px; border-right: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; }
.segmented label:last-child { border: 0; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { font-size: 9px; font-weight: 700; }
.segmented label:has(input:checked) { color: white; background: var(--ink); }
.proxy-summary { min-height: 75px; margin-top: 13px; padding: 13px 15px; border: 1px solid var(--line); display: flex; align-items: center; gap: 14px; background: #f8f7f1; }
.proxy-orbit { width: 42px; height: 42px; border: 1px dashed var(--line-dark); border-radius: 50%; display: grid; place-items: center; }
.proxy-orbit i { width: 12px; height: 12px; border-radius: 50%; background: var(--lime-dark); box-shadow: 0 0 0 6px rgba(126,165,0,.1); }
.proxy-summary div { flex: 1; }
.proxy-summary b, .proxy-summary p { display: block; margin: 0; }
.proxy-summary b { font-size: 11px; }
.proxy-summary p { margin-top: 5px; color: var(--muted); font-size: 9px; }
.proxy-summary em { color: var(--muted); font: normal 8px var(--mono); }
#singleProxyPanel, #poolProxyPanel { margin-top: 13px; }
.inline-result { margin-top: 13px; padding: 10px 12px; border-left: 3px solid var(--green); color: var(--green); background: #edf5ef; font: 10px var(--mono); }
.inline-result.error { border-color: var(--red); color: var(--red); background: #f9ece9; }
.post-action-grid .choice-card { min-height: 88px; }
#manualPhonePanel { margin: 13px 0; }

.composer-aside { position: sticky; top: 92px; }
.run-ticket { position: relative; padding: 22px; overflow: hidden; box-shadow: var(--shadow); }
.run-ticket::before { content: ""; position: absolute; top: 0; right: 0; width: 74px; height: 74px; background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(21,24,17,.045) 8px 9px); }
.ticket-top { margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; }
.ticket-top span { font: 10px var(--mono); letter-spacing: .14em; }
.ticket-top i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-dark); }
.ticket-top i.ready { background: var(--lime-dark); box-shadow: 0 0 0 5px rgba(126,165,0,.09); }
.ticket-summary { margin-top: 18px; border-top: 1px solid var(--line); }
.ticket-summary > div { min-height: 39px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.ticket-summary span { color: var(--muted); font-size: 9px; }
.ticket-summary b { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 9px var(--mono); }
.ticket-line { height: 1px; margin: 20px -22px; background: repeating-linear-gradient(to right, var(--line) 0 8px, transparent 8px 15px); }
.preflight > p { margin: 0 0 12px; color: var(--muted); font: 9px var(--mono); letter-spacing: .12em; }
.preflight ul { padding: 0; margin: 0; list-style: none; }
.preflight li { min-height: 27px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.preflight li i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-dark); }
.preflight li.ok { color: var(--green); }
.preflight li.ok i { background: var(--green); }
.preflight li.error { color: var(--red); }
.preflight li.error i { background: var(--red); }
.launch-button { width: 100%; height: 52px; margin-top: 19px; justify-content: space-between; }
.launch-note { margin: 10px 0 0; color: var(--muted); font-size: 8px; text-align: center; }

.heading-actions { display: flex; gap: 8px; }
.filter-bar { min-height: 56px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.filter-tabs { display: flex; gap: 4px; }
.filter-tabs button { height: 32px; padding: 0 13px; border: 1px solid transparent; border-radius: 20px; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; }
.filter-tabs button.active { border-color: var(--ink); color: white; background: var(--ink); }
.search-box { width: 230px; height: 36px; border-bottom: 1px solid var(--line-dark); display: flex; align-items: center; gap: 8px; }
.search-box span { color: var(--muted); }
.search-box input { height: 35px; padding: 0; border: 0; background: transparent; }
.search-box input:focus { box-shadow: none; }
.table-surface { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); background: #f5f4ed; font: 9px var(--mono); text-align: left; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
td { height: 66px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 10px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f6f6ee; }
.task-cell b, .task-cell code, .account-cell b, .account-cell small { display: block; }
.task-cell b, .account-cell b { max-width: 250px; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
.task-cell code, .account-cell small { margin-top: 5px; color: var(--muted); font: 8px var(--mono); }
.health-cell, .check-cell { display: grid; gap: 5px; }
.health-cell { min-width: 132px; }
.health-cell .status-pill { justify-self: start; }
.probe-note, .check-cell small { display: block; max-width: 190px; overflow: hidden; color: var(--muted); font: 8px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.probe-note.warning { color: #9a660f; }
.probe-note.failed { color: var(--red); }
.check-cell b { font: 9px var(--mono); font-weight: 500; }
.table-progress { width: 130px; }
.table-progress div { height: 4px; background: var(--paper-2); }
.table-progress i { display: block; height: 100%; background: var(--ink); }
.table-progress span { display: block; margin-top: 6px; color: var(--muted); font: 8px var(--mono); }
.result-counts b { color: var(--green); }
.result-counts em { margin-left: 8px; color: var(--red); font-style: normal; }
.row-action { width: 31px; height: 31px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.row-action:hover { border-color: var(--ink); background: var(--lime); }
.empty-state { min-height: 310px; display: grid; place-content: center; text-align: center; }
.empty-state span { color: var(--line-dark); font: 38px var(--mono); }
.empty-state h3 { margin: 15px 0 6px; font-size: 13px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 10px; }

.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 13px; border: 1px solid var(--line); background: var(--surface); }
.result-stats > div { min-height: 76px; padding: 15px 20px; border-right: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.result-stats > div:last-child { border: 0; }
.result-stats span { color: var(--muted); font-size: 9px; }
.result-stats strong { font-size: 23px; letter-spacing: -.05em; }
.trial-tag { padding: 4px 7px; color: var(--muted); background: var(--paper-2); font: 8px var(--mono); }
.trial-tag.yes { color: var(--green); background: #e4f1e8; }
.status-poll-surface { margin-bottom: 13px; padding: 19px 21px; border-left: 3px solid var(--ink); }
.status-poll-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.status-poll-title { display: flex; align-items: center; gap: 9px; }
.status-poll-surface h2 { margin: 6px 0; font-size: 16px; }
.status-poll-surface p { margin: 0; color: var(--muted); font-size: 10px; }
.status-poll-heading > small { flex: none; padding-top: 7px; color: var(--muted); font: 9px var(--mono); text-align: right; }
.status-poll-controls { margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(168px, 1.2fr) minmax(112px, .58fr) minmax(88px, .46fr) minmax(190px, 1.2fr) auto; gap: 10px; align-items: end; }
.status-poll-field > span { display: block; margin-bottom: 6px; color: var(--muted); font: 8px var(--mono); text-transform: uppercase; }
.status-poll-field input { height: 35px; padding: 0 9px; font-size: 10px; }
.status-poll-toggle { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.status-poll-toggle > span { min-width: 0; }
.status-poll-toggle b, .status-poll-toggle small { display: block; }
.status-poll-toggle b { font-size: 10px; white-space: nowrap; }
.status-poll-toggle small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.status-poll-toggle input { position: absolute; width: auto; height: auto; opacity: 0; }
.status-poll-toggle i { position: relative; width: 35px; height: 19px; flex: none; border-radius: 20px; background: #c7c9bf; transition: .15s; }
.status-poll-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.16); transition: .15s; }
.status-poll-toggle input:checked + i { background: var(--ink); }
.status-poll-toggle input:checked + i::after { left: 19px; background: var(--lime); }
.status-poll-buttons { display: flex; gap: 7px; justify-content: flex-end; }
.status-poll-buttons button { white-space: nowrap; }
.runtime-timezone { margin-bottom: 20px; padding: 16px; border: 1px solid var(--line); background: #f7f6ef; align-items: end; }
.runtime-timezone p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }

.settings-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 19px; align-items: start; }
.settings-nav { position: sticky; top: 92px; display: grid; gap: 3px; }
.settings-nav button { height: 45px; padding: 0 13px; border: 0; border-left: 2px solid var(--line); color: var(--muted); background: transparent; cursor: pointer; text-align: left; font-size: 10px; }
.settings-nav button.active { border-left-color: var(--lime-dark); color: var(--ink); background: rgba(255,255,255,.45); font-weight: 700; }
.settings-content { min-height: 520px; padding: 31px; }
.setting-panel { display: none; }
.setting-panel.active { display: block; animation: viewIn .18s ease; }
.setting-title { min-height: 104px; margin-bottom: 27px; padding-bottom: 25px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; }
.setting-title p { margin: 0; color: var(--lime-dark); font: 9px var(--mono); letter-spacing: .1em; }
.setting-title h2 { margin: 8px 0 7px; font-size: 21px; letter-spacing: -.04em; }
.setting-title span { color: var(--muted); font-size: 10px; }
.field-grid.two-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.runtime-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.runtime-card { min-height: 86px; padding: 16px; border: 1px solid var(--line); }
.runtime-card span, .runtime-card b { display: block; }
.runtime-card span { color: var(--muted); font: 9px var(--mono); text-transform: uppercase; }
.runtime-card b { margin-top: 18px; color: var(--green); font-size: 10px; }
.runtime-card b.fail { color: var(--red); }

.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(15,17,13,.38); backdrop-filter: blur(2px); }
.job-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(650px, 92vw); z-index: 100; background: var(--surface); box-shadow: -25px 0 80px rgba(0,0,0,.19); transform: translateX(104%); transition: transform .25s ease; display: flex; flex-direction: column; }
.job-drawer.open { transform: none; }
.job-drawer > header { min-height: 104px; padding: 22px 26px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.job-drawer header p { margin: 0; color: var(--lime-dark); font: 9px var(--mono); letter-spacing: .12em; }
.job-drawer header h2 { margin: 7px 0 5px; font-size: 18px; }
.job-drawer header code { color: var(--muted); font: 8px var(--mono); }
.job-drawer header button, .modal-card header button { width: 34px; height: 34px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 20px; }
.drawer-progress { padding: 20px 26px; border-bottom: 1px solid var(--line); }
.drawer-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.drawer-progress > div:first-child b { font: 10px var(--mono); }
.progress-track { height: 5px; margin-top: 12px; background: var(--paper-2); overflow: hidden; }
.progress-track i { display: block; height: 100%; background: var(--lime-dark); transition: width .25s; }
.drawer-progress ul { list-style: none; padding: 0; margin: 17px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.drawer-progress li { border-right: 1px solid var(--line); text-align: center; }
.drawer-progress li:last-child { border: 0; }
.drawer-progress li span, .drawer-progress li b { display: block; }
.drawer-progress li span { color: var(--muted); font-size: 8px; }
.drawer-progress li b { margin-top: 5px; font: 10px var(--mono); }
.drawer-tabs { height: 46px; padding: 0 26px; border-bottom: 1px solid var(--line); display: flex; gap: 20px; }
.drawer-tabs button { padding: 0; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; }
.drawer-tabs button.active { border-color: var(--lime-dark); color: var(--ink); font-weight: 700; }
.drawer-body { min-height: 0; flex: 1; background: #171a14; overflow: auto; }
.drawer-body pre { min-height: 100%; margin: 0; padding: 21px 24px; color: #aeb9a4; font: 10px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.drawer-result-list { padding: 15px; color: var(--ink); background: var(--paper); min-height: 100%; }
.drawer-result-row { min-height: 62px; margin-bottom: 6px; padding: 11px 13px; border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.drawer-result-row b, .drawer-result-row small { display: block; }
.drawer-result-row b { font-size: 10px; }
.drawer-result-row small { margin-top: 5px; color: var(--muted); font: 8px var(--mono); }
.job-drawer footer { min-height: 67px; padding: 12px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.job-drawer footer > div { display: flex; gap: 7px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 110; padding: 20px; display: grid; place-items: center; background: rgba(15,17,13,.5); backdrop-filter: blur(3px); }
.modal-card { width: min(650px, 100%); padding: 26px; border: 1px solid #9ea394; background: var(--surface); box-shadow: 18px 18px 0 rgba(21,24,17,.2); }
.modal-card header { display: flex; justify-content: space-between; }
.modal-card header p { margin: 0; color: var(--lime-dark); font: 9px var(--mono); letter-spacing: .12em; }
.modal-card header h2 { margin: 7px 0 0; font-size: 20px; }
.modal-intro { margin: 18px 0 12px; color: var(--muted); font-size: 10px; }
.modal-actions { margin-top: 13px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.modal-actions label { width: 180px; }
.modal-actions label span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; }

.toast-stack { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: grid; gap: 8px; }
.toast { min-width: 280px; max-width: 440px; padding: 13px 15px; border-left: 3px solid var(--lime-dark); color: white; background: var(--ink); box-shadow: 0 14px 45px rgba(0,0,0,.18); font-size: 10px; animation: toastIn .18s ease; }
.toast.error { border-color: #ff6f5d; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1180px) {
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .overview-grid { grid-template-columns: 1fr; }
  .readiness-surface { min-height: auto; }
  .composer-grid { grid-template-columns: minmax(0,1fr) 280px; }
  .workflow-band { grid-template-columns: 1fr; gap: 22px; }
  .status-poll-controls { grid-template-columns: minmax(175px, 1fr) minmax(115px, .55fr) minmax(96px, .45fr); }
  .status-poll-toggle:last-of-type { grid-column: 1 / span 2; }
  .status-poll-buttons { grid-column: 3; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-104%); transition: transform .22s ease; box-shadow: 20px 0 60px rgba(0,0,0,.25); }
  .sidebar.open { transform: none; }
  .workspace { margin-left: 0; }
  .mobile-menu { display: block; }
  .breadcrumb span, .breadcrumb b { display: none; }
  .composer-grid { grid-template-columns: 1fr; }
  .composer-aside { position: static; }
  .run-ticket { box-shadow: none; }
  .choice-grid.three { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; display: flex; overflow-x: auto; }
  .settings-nav button { min-width: 140px; border-left: 0; border-bottom: 2px solid var(--line); }
  .settings-nav button.active { border-bottom-color: var(--lime-dark); }
  .pool-health-surface { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .topbar { height: 62px; padding: 0 15px; }
  .view { padding: 32px 15px 55px; }
  .top-actions .live-clock, .top-actions .compact { display: none; }
  .page-heading { min-height: auto; margin-bottom: 24px; display: block; }
  .page-heading h1 { font-size: 34px; }
  .page-heading > .hero-action, .page-heading > .heading-actions, .page-heading > .secondary, .page-heading > .primary { margin-top: 20px; }
  .metric-strip { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:nth-child(3) { border-bottom: 1px solid var(--line); }
  .activity-surface, .readiness-surface, .form-section, .settings-content { padding: 18px; }
  .activity-row { grid-template-columns: 24px minmax(0,1fr) 55px; }
  .activity-row .mini-progress { display: none; }
  .workflow-band { padding: 24px 20px; }
  .workflow-band ol { grid-template-columns: repeat(2, 1fr); }
  .workflow-band li:nth-child(3) { border-top: 1px solid #3a4035; }
  .workflow-band li:nth-child(4) { border-top: 1px solid #3a4035; }
  .account-toolbar, .choice-grid.two, .field-grid, .field-grid.two-wide, .field-grid.four { grid-template-columns: 1fr; }
  .pool-batch-controls { grid-template-columns: 1fr; gap: 8px; }
  .segmented { grid-template-columns: repeat(2, 1fr); }
  .segmented label:nth-child(2) { border-right: 0; }
  .segmented label:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .proxy-summary em { display: none; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .filter-tabs { overflow-x: auto; }
  .filter-tabs button { white-space: nowrap; }
  .search-box { width: 100%; }
  .result-stats { grid-template-columns: repeat(2, 1fr); }
  .result-stats > div:nth-child(2) { border-right: 0; }
  .result-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .runtime-grid { grid-template-columns: repeat(2, 1fr); }
  .status-poll-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .status-poll-heading > small { padding: 0; text-align: left; }
  .status-poll-controls { grid-template-columns: 1fr; }
  .status-poll-toggle:last-of-type, .status-poll-buttons { grid-column: auto; }
  .status-poll-toggle { min-height: 42px; padding: 4px 0; }
  .status-poll-field input { height: 42px; }
  .status-poll-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-poll-buttons button { width: 100%; }
  .pool-health-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .pool-health-actions label, .pool-health-actions button { width: 100%; }
  .modal-actions { align-items: stretch; flex-direction: column; }
  .modal-actions label, .modal-actions .primary { width: 100%; }
  .job-drawer { width: 100vw; }
  .job-drawer footer { align-items: stretch; flex-direction: column; gap: 8px; }
  .job-drawer footer > div { display: grid; grid-template-columns: repeat(2,1fr); }
  .toast-stack { left: 12px; right: 12px; bottom: 12px; }
  .toast { min-width: 0; }
}
