/* ozhuo studio — publishing workspace. Tokens follow the local content workbench. */
:root {
  color-scheme: dark;
  --bg: #07070a; --surface-0: #0b0b0f; --surface-1: #101015; --surface-2: #15151b;
  --line: rgba(255,255,255,.07); --line-strong: rgba(255,255,255,.12);
  --text-1: #ededef; --text-2: #b4b6be; --text-3: #8a8e98; --text-4: #5f626b;
  --primary: #5e6ad2; --primary-hover: #6f7be0; --accent-text: #a3abf7; --accent-soft: rgba(94,106,210,.14); --accent-line: rgba(124,135,230,.55);
  --ok: #6ee7b7; --ok-soft: rgba(52,211,153,.1); --warn: #fcd34d; --warn-soft: rgba(251,191,36,.09); --bad: #ff8aa1; --bad-soft: rgba(254,44,85,.1);
  --radius: 12px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; font: 14px/1.55 var(--font); color: var(--text-1); background: radial-gradient(ellipse 70% 40% at 70% -10%, rgba(94,106,210,.11), transparent 70%), var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.xl { width: 26px; height: 26px; stroke-width: 1.5; }

/* Shell */
.app { display: grid; grid-template-columns: 232px minmax(0,1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 22px 14px 16px; border-right: 1px solid var(--line); background: rgba(6,6,9,.8); }
.brand { display: block; padding: 2px 8px; }
.brand img { display: block; height: 24px; width: auto; }
.side-nav, .side-links { display: grid; gap: 2px; }
.nav-item, .side-links a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 13.5px; cursor: pointer; text-align: left; }
.nav-item:hover, .side-links a:hover { background: rgba(255,255,255,.04); color: var(--text-1); }
.nav-item.active { background: var(--accent-soft); color: var(--text-1); }
.nav-item.active .ic { color: var(--accent-text); }
.side-links { margin-top: auto; }
.side-links a { height: 32px; font-size: 12.5px; color: var(--text-3); }
.side-account { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-0); }
.side-account-text { min-width: 0; display: grid; }
.side-account-text strong { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-account-text small { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text-3); font-weight: 650; font-size: 13px; }
.avatar.lg { width: 44px; height: 44px; font-size: 17px; }
.avatar.on { background: linear-gradient(135deg, #25f4ee 0%, #5e6ad2 55%, #fe2c55 100%); border-color: transparent; color: #fff; }

.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(7,7,10,.82); backdrop-filter: blur(12px); }
.crumb { display: flex; gap: 8px; font-size: 13px; color: var(--text-3); white-space: nowrap; }
.crumb strong { color: var(--text-1); font-weight: 550; }
.crumb-host { color: var(--text-2); font-weight: 500; }
.crumb-host:hover { color: var(--text-1); }
.crumb-sep { color: var(--text-4); }
.top-actions { display: flex; align-items: center; gap: 14px; }
.top-link { font-size: 12.5px; color: var(--text-3); }
.language-switch { display: inline-flex; padding: 2px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-0); }
.language-switch button { height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); font-size: 12px; cursor: pointer; }
.language-switch button[aria-pressed="true"] { background: rgba(255,255,255,.09); color: var(--text-1); }

.page { max-width: 1240px; margin: 0 auto; padding: 28px 28px 40px; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 24px; line-height: 1.3; font-weight: 650; letter-spacing: -.4px; }
.page-head p { margin-top: 4px; color: var(--text-3); font-size: 13.5px; }

/* Panels */
.panel { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(22,22,28,.86), rgba(16,16,21,.86)); box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 50px -30px rgba(0,0,0,.6); }
.panel > h2, .rail-card h2, .list-head h2 { font-size: 14px; font-weight: 600; }
.composer { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 20px; align-items: start; }
.step { padding: 20px 22px; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.step-head h2 { font-size: 14.5px; font-weight: 600; }
.step-no { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 650; }
.step-hint { font-size: 12px; color: var(--text-3); }
.step-head .btn { margin-left: auto; }
.fine { font-size: 12px; line-height: 1.6; color: var(--text-3); margin-top: 8px; }
.fine.center { text-align: center; }
.note { margin-top: 10px; padding: 9px 12px; border: 1px solid rgba(251,191,36,.25); border-radius: 9px; background: var(--warn-soft); color: #f6e2a6; font-size: 12.5px; line-height: 1.6; }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 550; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--primary-hover); }
.btn.ghost { background: transparent; border-color: var(--line-strong); color: var(--text-2); }
.btn.ghost:hover { border-color: rgba(255,255,255,.2); color: var(--text-1); background: rgba(255,255,255,.03); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; font-weight: 500; }
.btn.primary { height: 44px; font-size: 14px; font-weight: 600; background: linear-gradient(180deg, #6a76de, #5560c8); box-shadow: 0 8px 24px -10px rgba(94,106,210,.8); }
.btn.block { width: 100%; }
.btn.danger { background: transparent; border-color: rgba(254,44,85,.45); color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); }
.btn:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover { background: var(--primary); }
.btn.ghost:disabled:hover, .btn.danger:disabled:hover { background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

input[type=text], input[type=url], input[type=password], input:not([type]), select, textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface-0); color: var(--text-1); font-size: 13.5px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select { height: 38px; padding: 0 12px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8a8e98 50%), linear-gradient(135deg, #8a8e98 50%, transparent 50%); background-size: 5px 5px; background-position: right 17px center, right 12px center; background-repeat: no-repeat; padding-right: 32px !important; }
select option:disabled { color: #555; }
textarea { padding: 11px 12px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(94,106,210,.15); }
::placeholder { color: var(--text-4); }
.field { display: grid; gap: 6px; margin-top: 12px; }
.field > span, .sub-label { font-size: 12.5px; font-weight: 550; color: var(--text-2); }
.sub-label { margin: 18px 0 8px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.6; color: var(--text-2); cursor: pointer; }
.check + .check { margin-top: 8px; }
.check input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--primary); }
.check strong { display: block; font-weight: 550; color: var(--text-1); }
.check small { display: block; color: var(--text-3); font-size: 11.5px; }
.check.off { cursor: not-allowed; }
.check.off > * { opacity: .5; }

.switch { appearance: none; flex: none; position: relative; width: 34px; height: 20px; margin: 0; border-radius: 999px; background: rgba(255,255,255,.12); cursor: pointer; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #d7d8dd; transition: transform .15s; }
.switch:checked { background: var(--primary); }
.switch:checked::after { transform: translateX(14px); background: #fff; }
.switch:disabled { opacity: .35; cursor: not-allowed; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8,8,11,.45); font-size: 13px; cursor: pointer; }
.toggle:hover { border-color: var(--line-strong); }
.toggle.off { cursor: not-allowed; color: var(--text-3); }
.toggle.off strong { color: var(--text-3); }
.toggle.wide { margin-top: 10px; }
.toggle strong { display: block; font-weight: 550; }
.toggle small { display: block; font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.toggle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.disclose { margin-top: 18px; }
.disclose .toggle.wide { margin-top: 0; }
.disclose-options { margin: 8px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8,8,11,.35); }
.disclose-options .note { margin-top: 12px; }
.toggle .off-note { color: var(--text-3); font-size: 11px; }
.warn-text { color: #f0d58a; }

/* Privacy dropdown: drawn in the page so disabled options can explain themselves on hover. */
.dropdown { position: relative; }
.dropdown-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface-0); color: var(--text-1); font-size: 13.5px; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.dropdown-button:hover { border-color: rgba(255,255,255,.2); }
.dropdown-button:focus-visible, .dropdown.open .dropdown-button { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(94,106,210,.15); }
.dropdown-button:disabled { opacity: .5; cursor: not-allowed; }
.dropdown-button .placeholder { color: var(--text-3); }
.dropdown-button .ic { color: var(--text-3); transition: transform .15s; }
.dropdown.open .dropdown-button .ic { transform: rotate(180deg); }
.dropdown-list { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 5px; list-style: none; border: 1px solid var(--line-strong); border-radius: 10px; background: #17171e; box-shadow: 0 22px 44px -14px rgba(0,0,0,.85); }
.dropdown-list:focus { outline: none; }
.dropdown-list li { position: relative; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border-radius: 7px; font-size: 13.5px; color: var(--text-1); cursor: pointer; }
.dropdown-list li span:first-child { flex: 1; }
.dropdown-list li.active { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.dropdown-list li[aria-selected="true"]::after { content: "✓"; color: var(--accent-text); font-weight: 700; }
.dropdown-list li.disabled { color: var(--text-4); cursor: not-allowed; }
.dropdown-list li.disabled.active { background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-strong); }
.dropdown-list li .ic { width: 14px; height: 14px; color: var(--text-4); }

/* Tooltips: plain page elements (visible to screen recorders, unlike native title tooltips). */
.opt-tip, [data-tip]:not([data-tip=""])::after { position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%); width: max-content; max-width: min(360px, 80vw); padding: 7px 11px; border-radius: 8px; background: #f3f4f6; color: #15151b; font-size: 12px; line-height: 1.45; font-weight: 550; text-align: center; white-space: normal; box-shadow: 0 10px 26px -8px rgba(0,0,0,.7); pointer-events: none; }
.opt-tip { opacity: 0; visibility: hidden; transition: opacity .12s; }
.opt-tip::after, [data-tip]:not([data-tip=""])::before { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #f3f4f6; pointer-events: none; }
.opt-tip::after { top: 100%; }
.dropdown-list li.disabled:hover .opt-tip, .dropdown-list li.disabled.active .opt-tip, .dropdown-list li.show-tip .opt-tip { opacity: 1; visibility: visible; }
[data-tip]:not([data-tip=""]) { position: relative; }
[data-tip]:not([data-tip=""])::after { content: attr(data-tip); display: none; }
[data-tip]:not([data-tip=""])::before { bottom: calc(100% - 3px); display: none; z-index: 31; }
[data-tip]:not([data-tip=""]):hover::after, [data-tip]:not([data-tip=""]):hover::before, [data-tip]:not([data-tip=""]):focus-within::after, [data-tip]:not([data-tip=""]):focus-within::before { display: block; }

/* Account */
.account-card { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 12px; background: rgba(8,8,11,.4); }
.account-card.connected { border-style: solid; border-color: rgba(52,211,153,.28); background: linear-gradient(90deg, rgba(52,211,153,.06), transparent 60%); }
.account-card.flat { border-style: solid; margin-top: 12px; }
.account-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.account-text strong { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-text small { font-size: 12px; color: var(--text-3); }
.consent-block { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.02); }

/* Video */
.video-grid { display: grid; grid-template-columns: minmax(0,1fr) 210px; gap: 20px; align-items: start; }
.dropzone { display: grid; place-items: center; gap: 4px; min-height: 150px; padding: 18px; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: rgba(8,8,11,.45); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.dragging { border-color: var(--accent-line); background: var(--accent-soft); }
.dropzone .ic { color: var(--accent-text); margin-bottom: 4px; }
.dropzone strong { font-size: 14px; font-weight: 600; }
.dropzone small { font-size: 12px; color: var(--text-3); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
#useSample { margin-top: 12px; }
.file-line { display: flex; gap: 10px; align-items: baseline; margin-top: 14px; font-size: 13px; }
.file-line strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-line span { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.checks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.checks li { display: grid; grid-template-columns: 18px minmax(96px,max-content) 1fr; align-items: center; gap: 8px; min-height: 28px; padding: 0 10px; border-radius: 7px; background: rgba(255,255,255,.02); font-size: 12.5px; }
.checks li::before { content: "·"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; font-weight: 700; background: rgba(255,255,255,.08); color: var(--text-3); }
.checks li.pass::before { content: "✓"; background: var(--ok-soft); color: var(--ok); }
.checks li.fail::before { content: "!"; background: var(--bad-soft); color: var(--bad); }
.checks strong { font-weight: 550; color: var(--text-2); }
.checks span { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checks li.fail span { color: var(--bad); }

.phone { padding: 8px; border: 1px solid var(--line-strong); border-radius: 26px; background: #000; box-shadow: 0 24px 50px -24px rgba(0,0,0,.9); }
.phone-screen { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 19px; background: linear-gradient(180deg, #111117, #0a0a0e); }
.phone-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.phone-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--text-4); font-size: 12px; }
.phone-overlay { position: absolute; left: 0; right: 0; bottom: 38px; padding: 30px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.65)); pointer-events: none; display: grid; gap: 2px; }
.phone-overlay strong { font-size: 12px; font-weight: 650; }
.phone-overlay span { font-size: 11px; color: rgba(255,255,255,.85); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.caption-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--text-3); }

.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-card { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(8,8,11,.45); cursor: pointer; }
.mode-card:hover { border-color: var(--line-strong); }
.mode-card input { position: absolute; opacity: 0; }
.mode-card .ic { width: 32px; height: 32px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-1); color: var(--text-3); }
.mode-card strong { display: block; font-size: 13.5px; font-weight: 600; }
.mode-card small { display: block; font-size: 11.5px; color: var(--text-3); }
.mode-card.active { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(94,106,210,.14), rgba(94,106,210,.06)); }
.mode-card.active .ic { color: var(--accent-text); border-color: rgba(124,135,230,.35); background: rgba(94,106,210,.14); }
.mode-card:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Rail */
.rail { position: sticky; top: 76px; display: grid; gap: 14px; }
.rail-card { padding: 18px; }
.summary { margin: 12px -6px 0; display: grid; gap: 1px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; padding: 0 8px; border-radius: 7px; font-size: 12.5px; }
.summary-row:hover { background: rgba(255,255,255,.025); }
.summary-row dt { display: flex; align-items: center; gap: 8px; flex: none; color: var(--text-3); }
.summary-row dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f0d58a; }
.summary-row.ok dd { color: var(--text-1); }
.mark { width: 14px; height: 14px; display: grid; place-items: center; }
.mark::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fbbf24; }
.summary-row.ok .mark::before { content: "✓"; width: auto; height: auto; background: none; color: var(--ok); font-size: 11px; font-weight: 700; }
.declaration { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.65; color: var(--text-1); }
.consent { margin: 12px 0 14px; }
.publish-wrap { display: block; }

.status-card h2 { margin-bottom: 12px; }
.tracker { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tracker li { position: relative; display: flex; align-items: center; gap: 10px; height: 30px; padding-left: 2px; font-size: 13px; color: var(--text-4); }
.tracker li:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 22px; width: 1px; height: 16px; background: var(--line-strong); }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--text-4); }
.tracker li.active { color: var(--text-1); }
.tracker li.active .dot { border-color: var(--accent-text); box-shadow: 0 0 0 4px rgba(94,106,210,.18); animation: pulse 1.4s ease-in-out infinite; }
.tracker li.done { color: var(--text-2); }
.tracker li.done .dot { border-color: var(--ok); background: var(--ok); }
.tracker.failed li { color: var(--text-4); }
.status-text { margin-top: 10px; padding: 10px 12px; border-radius: 9px; background: rgba(255,255,255,.03); font-size: 12.5px; line-height: 1.6; color: var(--text-2); white-space: pre-line; }
.tracker.failed + .status-text { background: var(--bad-soft); color: #ffc2cf; }
.status-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.status-actions .btn { margin-top: 0; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(94,106,210,.05); } }

/* History & settings */
[data-panel="history"], .settings-grid { display: grid; gap: 16px; }
[data-panel="history"] > .panel, .settings-grid > .panel { padding: 20px 22px; }
.list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.job-list { display: grid; gap: 6px; }
.job { display: grid; grid-template-columns: 34px minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8,8,11,.4); }
.job-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); color: var(--accent-text); }
.job-body { min-width: 0; display: grid; }
.job-body strong { font-size: 13px; font-weight: 600; }
.job-body small { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid; font-size: 11.5px; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.pill.ok { border-color: rgba(52,211,153,.35); background: var(--ok-soft); color: var(--ok); }
.pill.bad { border-color: rgba(254,44,85,.4); background: var(--bad-soft); color: var(--bad); }
.pill.warn { border-color: rgba(251,191,36,.35); background: var(--warn-soft); color: var(--warn); }
.pill.run { border-color: rgba(37,244,238,.3); background: rgba(37,244,238,.07); color: #7ffcf7; }
.empty { padding: 28px 0; text-align: center; color: var(--text-3); font-size: 13px; }
.lookup .fine { margin-bottom: 12px; }
.inline-form { display: flex; gap: 8px; margin-top: 12px; }
.inline-form input { flex: 1; }
.settings-grid { grid-template-columns: 1fr 1fr; align-items: start; }
.settings-grid .check { margin-top: 14px; }
.settings-grid .btn.danger { margin-top: 12px; }
.login { max-width: 460px; padding: 22px; }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer a { color: var(--text-3); }
.footer a:hover { color: var(--text-1); }

/* Responsive */
@media (max-width: 1100px) {
  .composer { grid-template-columns: 1fr; }
  .rail { position: static; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: sticky; z-index: 6; height: auto; flex-direction: row; align-items: center; gap: 8px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); background: rgba(6,6,9,.94); backdrop-filter: blur(12px); }
  .brand { padding: 0 4px 0 0; }
  .brand img { height: 18px; }
  .side-nav { display: flex; gap: 2px; margin-left: auto; }
  .nav-item { height: 32px; padding: 0 9px; font-size: 12.5px; gap: 6px; }
  .side-links, .side-account { display: none; }
  .topbar { position: static; height: 46px; padding: 0 16px; }
  .top-link { display: none; }
  .page { padding: 18px 16px 32px; }
  .page-head h1 { font-size: 20px; }
  .step { padding: 16px; }
  .video-grid { grid-template-columns: 1fr; }
  .phone { width: min(190px, 56%); margin: 0 auto; order: -1; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav-item .ic { display: none; }
  .mode-grid { grid-template-columns: 1fr; }
  .toggle-grid { grid-template-columns: 1fr; }
  .account-card { flex-wrap: wrap; }
  .account-card .btn { width: 100%; }
  .checks li { grid-template-columns: 18px 88px 1fr; }
  .job { grid-template-columns: 34px minmax(0,1fr); }
  .job .pill, .job .btn { grid-column: 2; justify-self: start; }
  .footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
