/* Watch Creative Studio "Focus" theme: pure black, warm gold. Tokens mirror
   the Studio's theme.css so both tools look like one product. */
:root{
  color-scheme:dark;
  --bg:#000000;--bg-elevated:#050505;--surface:#0a0a0a;--surface-2:#121212;--surface-3:#1f1f1e;
  --border:#1f1f1e;--border-strong:#2e2d2b;
  --text:#f7f5f0;--text-2:#a8a49c;--muted:#918d85;
  --accent:#d4a64a;--accent-hover:#e2b95f;--accent-soft:rgb(212 166 74 / .14);--on-accent:#14100a;--progress:#e8c77d;
  --success:#34d399;--success-soft:rgb(52 211 153 / .12);--warning:#fb923c;--warning-soft:rgb(251 146 60 / .12);
  --danger:#fb7185;--danger-soft:rgb(251 113 133 / .12);--info:#60a5fa;--info-soft:rgb(96 165 250 / .12);
  --radius:18px;--radius-sm:14px;
  --font:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --serif:var(--font);--sans:var(--font);--mono:"JetBrains Mono",ui-monospace,"SFMono-Regular",Menlo,monospace;
  --gold-gradient:linear-gradient(135deg,#f6dc94 0%,#d4a64a 45%,#8a6424 100%);
  --gold-glow:radial-gradient(120% 160% at 0% 0%,rgb(212 166 74 / .18) 0%,#0b0a08 55%,#070706 100%);
}
*{box-sizing:border-box;border-color:var(--border)}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font:14px/1.5 var(--font);-webkit-font-smoothing:antialiased;font-feature-settings:"cv11","ss01"}
::selection{background:rgb(212 166 74 / .35)}
a{color:var(--accent)}a:hover{color:var(--accent-hover)}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:#34322d;border-radius:10px;border:2px solid var(--bg)}
::-webkit-scrollbar-track{background:transparent}
.hidden{display:none!important}
@keyframes fade-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@keyframes pulse-soft{0%,100%{opacity:1}50%{opacity:.45}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* shell (Watch Creative Studio layout) */
.shell{min-height:100vh;display:flex}
.nav{position:sticky;top:0;align-self:flex-start;height:100vh;flex:0 0 248px;background:var(--bg);border-right:1px solid var(--border);padding:18px 16px 16px;display:flex;flex-direction:column;gap:22px}
.brand{display:flex;align-items:center;gap:12px;padding:2px 8px;color:var(--text);text-decoration:none}
.brand img{width:36px;height:36px;flex:none;border-radius:10px}
.brand-name{font-size:14px;font-weight:650;line-height:1.15;color:var(--text)}
.brand-sub{font-size:12px;color:var(--muted);line-height:1.2}
.ico{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.eyebrow{font-size:11px;font-weight:600;letter-spacing:.08em;color:var(--muted);text-transform:uppercase}
.eyebrow.brass{color:var(--accent)}
.nav-links{display:flex;flex-direction:column;gap:4px}
.nav-links a{display:flex;align-items:center;gap:12px;min-height:40px;padding:0 12px;border-radius:12px;color:var(--text-2);text-decoration:none;font-weight:500;transition:background .15s,color .15s}
.nav-links a .ico{color:var(--muted)}
.nav-links a:hover{background:var(--surface-2);color:var(--text)}
.nav-links a[aria-current="page"]{background:#1c1609;color:var(--text);font-weight:600}
.nav-links a[aria-current="page"] .ico{color:var(--accent)}
.nav-foot{margin-top:auto;display:flex;flex-direction:column;gap:14px}
.engine{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);font-size:13px;color:var(--text-2)}
.engine #tier{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tag{font-size:10.5px;font-weight:600;letter-spacing:.06em;padding:2px 7px;border-radius:6px;background:var(--surface-2);border:1px solid var(--border-strong);color:var(--text-2)}
.me{display:flex;align-items:center;gap:10px;padding:0 8px}
.me .stack{flex:1}
.avatar{width:30px;height:30px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:var(--surface-2);border:1px solid var(--border-strong);font-size:12px;font-weight:600}
.me-name{font-size:13px;font-weight:600;line-height:1.2}.me-role{font-size:12px;color:var(--muted);line-height:1.2}
.icon-btn{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;border:none;background:transparent;color:var(--muted);cursor:pointer}
.icon-btn:hover{background:var(--surface-2);color:var(--text)}
.main{flex:1 1 auto;min-width:0;padding:44px 56px 64px;display:flex;flex-direction:column;gap:22px;animation:fade-in 220ms ease-out both}
.main>*{width:100%;max-width:1240px;margin-left:auto;margin-right:auto}
@media (max-width:860px){.shell{flex-direction:column}.nav{position:static;height:auto;flex:none;width:100%;border-right:none;border-bottom:1px solid var(--border);gap:12px}.nav-links{flex-direction:row;flex-wrap:wrap}.nav-foot{display:none}.main{padding:24px 16px 48px}}

/* type */
h1.title{margin:0;font-size:26px;font-weight:600;line-height:1.2;letter-spacing:-.02em;text-wrap:balance}
h2.section{margin:0;font-size:17px;font-weight:650}
.sub{margin:0;color:var(--text-2)}
.serif{font-family:var(--font);font-weight:700;letter-spacing:-.01em}
.mono{font-family:var(--mono);font-variant-numeric:tabular-nums}

/* surfaces */
.card{border-radius:16px;border:1px solid var(--border);background:var(--surface);padding:20px 22px;display:flex;flex-direction:column;gap:14px}
.guilloche{background:var(--gold-glow);border-color:rgb(212 166 74 / .3)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),1fr));gap:16px}
.row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.between{justify-content:space-between}
.stack{display:flex;flex-direction:column;gap:8px}

/* buttons (Studio buttonVariants) */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;height:40px;padding:0 16px;border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--surface-2);color:var(--text);font-size:14px;font-weight:500;cursor:pointer;text-decoration:none;transition:all .15s}
.btn:hover{background:#181817;color:var(--text)}
.btn:active{transform:scale(.98)}
.btn.primary{background:var(--gold-gradient);border:none;color:var(--on-accent);font-weight:600;box-shadow:0 8px 24px -12px rgb(212 166 74 / .55)}
.btn.primary:hover{filter:brightness(1.1);color:var(--on-accent)}
.btn.warn{background:var(--warning-soft);border-color:rgb(251 146 60 / .3);color:var(--warning)}
.btn.warn:hover{background:rgb(251 146 60 / .2)}
.btn[disabled]{opacity:.45;pointer-events:none}

/* tables */
.table-wrap{border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);overflow-x:auto}
table{width:100%;border-collapse:collapse;min-width:760px}
th{padding:12px 16px;text-align:left;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);border-bottom:1px solid var(--border)}
td{padding:13px 16px;border-bottom:1px solid var(--border);vertical-align:middle}
tr:last-child td{border-bottom:none}
tbody tr:hover td{background:var(--surface-2)}

/* status */
.status{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:500;color:var(--text-2)}
.dot{width:8px;height:8px;border-radius:999px;background:var(--muted);flex:none}
.dot.new{background:var(--accent)}.dot.queued{background:transparent;border:1.5px solid var(--accent)}
.dot.running{background:var(--progress);box-shadow:0 0 0 4px var(--accent-soft);animation:pulse-soft 1.8s ease-in-out infinite}
.dot.stopped,.dot.interrupted,.dot.failed{background:var(--warning)}
.dot.verified,.dot.activated,.dot.done{background:var(--success)}
.dot.archived{background:var(--border-strong)}

/* dials */
.dial{position:relative;border-radius:999px;display:flex;align-items:center;justify-content:center;flex:none}
.bar{height:8px;border-radius:999px;background:var(--surface-3);overflow:hidden}
.bar>span{display:block;height:100%;background:var(--gold-gradient);border-radius:999px}

/* spec sheet */
.spec{display:flex;align-items:baseline;gap:12px;min-height:42px;border-bottom:1px solid var(--border)}
.spec .k{flex:none;font-size:11px;font-weight:600;letter-spacing:.08em;color:var(--muted);text-transform:uppercase}
.spec .lead{flex:1;border-bottom:1px dotted var(--border-strong);transform:translateY(-4px)}
.spec .v{flex:none;max-width:62%;text-align:right;font-weight:600;overflow-wrap:anywhere}

/* notices */
.notice{border-radius:var(--radius-sm);border:1px solid rgb(251 146 60 / .25);background:var(--warning-soft);padding:16px 20px;display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between}
.notice .t{font-size:16px;font-weight:650;color:var(--text)}
.notice p{margin:0;color:var(--text-2);line-height:1.55}
.notice.ok{border-color:rgb(52 211 153 / .25);background:var(--success-soft)}
.notice.ok .t{color:var(--success)}
.err{color:var(--danger)}

/* forms (Studio input pattern) */
label.field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:500;color:var(--text-2)}
input[type=email],input[type=password],input[type=text],input[type=date],input[type=time],input[inputmode=numeric],select{height:40px;padding:0 14px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--bg-elevated);color:var(--text);font:14px var(--font)}
input:focus,select:focus,textarea:focus{border-color:var(--accent);outline:none}
textarea{padding:12px 14px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--bg-elevated);line-height:1.6;min-height:160px}
.check{display:flex;gap:10px;align-items:flex-start;line-height:1.45;cursor:pointer}
.check input{width:18px;height:18px;margin:0;accent-color:var(--accent);flex:none}

/* login */
.login{min-height:100vh;display:flex;flex-wrap:wrap}
.login-art{flex:1 1 520px;min-height:420px;display:flex;align-items:center;justify-content:center;background-color:var(--bg);background-image:radial-gradient(circle at 1px 1px,rgb(255 255 255 / .04) 1px,transparent 0);background-size:22px 22px;border-right:1px solid var(--border)}
.login-form{flex:1 1 420px;padding:64px 32px;display:flex;align-items:center;justify-content:center}
.login-form form{width:100%;max-width:380px;display:flex;flex-direction:column;gap:16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:28px}
.face{position:relative;width:320px;height:320px;border-radius:999px;background:radial-gradient(circle,var(--surface) 0 126px,#000 126.5px 130px,transparent 130.5px),repeating-conic-gradient(var(--accent) 0 .8deg,transparent .8deg 6deg);box-shadow:0 0 0 10px #0a0a0a,0 0 0 11px var(--border-strong),0 40px 120px -40px rgb(212 166 74 / .35)}
.face-name{position:absolute;left:0;right:0;top:92px;text-align:center;font-size:22px;font-weight:700;letter-spacing:.02em}
.face-sub{position:absolute;left:0;right:0;top:124px;text-align:center;font-size:10px;letter-spacing:.3em;color:var(--muted)}
.face-motto{position:absolute;left:0;right:0;bottom:92px;text-align:center;font-size:12px;color:var(--accent)}
.hand{position:absolute;inset:0}.hand.hour{transform:rotate(-60deg)}.hand.minute{transform:rotate(60deg)}
.hand span{position:absolute;border-radius:3px}
.hand.hour span{left:calc(50% - 3px);top:72px;height:88px;width:6px;background:var(--gold-gradient)}
.hand.minute span{left:calc(50% - 2px);top:36px;height:124px;width:4px;background:var(--text)}
.pin{position:absolute;left:calc(50% - 8px);top:calc(50% - 8px);width:16px;height:16px;border-radius:999px;background:var(--gold-gradient);box-shadow:0 0 0 4px var(--surface)}
input.code{font-family:var(--mono);font-size:18px;letter-spacing:.4em;color:var(--progress)}
.small{font-size:13px;line-height:1.6}.tight{gap:1px}.tiny{font-size:10px}
.tier{font-size:16px;font-weight:700}.tier-note{font-size:12px;color:var(--muted);line-height:1.5}
.btn.slim{height:34px;margin-top:8px;font-size:13px}

/* log + toast */
.log{font-family:var(--mono);font-size:12px;color:var(--text-2);background:var(--bg-elevated);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px 14px;max-height:260px;overflow:auto;white-space:pre-wrap}
.toast{position:fixed;right:20px;bottom:20px;max-width:420px;padding:12px 16px;border-radius:var(--radius-sm);background:var(--surface-2);border:1px solid var(--border-strong);color:var(--text);font-weight:500;box-shadow:0 20px 40px rgba(0,0,0,.6);animation:fade-in 220ms ease-out both}
.check input[type=radio]{accent-color:var(--accent)}
button.card{font:inherit;color:inherit}
button.card:hover{border-color:var(--border-strong)}

/* --- Studio components --- */
.page-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:16px}
.page-head .sub{margin-top:6px}
.back{font-size:13px;color:var(--text-2);text-decoration:none}.back:hover{color:var(--text)}
.btn.lg{height:46px;padding:0 22px;border-radius:12px;font-size:15px}
.btn.outline{background:transparent;border-color:var(--border-strong);height:34px;padding:0 12px;border-radius:10px;font-size:13px}
.pill{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;font-size:12.5px;font-weight:500;white-space:nowrap;border:1px solid var(--border-strong);color:var(--text-2);background:var(--surface-2)}
.pill-dot{width:6px;height:6px;border-radius:999px;background:currentColor;flex:none}
.pill.ok,.pill.verified,.pill.activated,.pill.done{color:var(--success);background:var(--success-soft);border-color:rgb(52 211 153 / .28)}
.pill.warn,.pill.stopped,.pill.interrupted,.pill.failed{color:var(--warning);background:var(--warning-soft);border-color:rgb(251 146 60 / .3)}
.pill.danger{color:var(--danger);background:var(--danger-soft);border-color:rgb(251 113 133 / .3)}
.pill.info,.pill.running,.pill.queued{color:var(--info);background:var(--info-soft);border-color:rgb(96 165 250 / .3)}
.pill.gold,.pill.new,.pill.draft{color:var(--accent);background:var(--accent-soft);border-color:rgb(212 166 74 / .3)}
.pill.archived{color:var(--muted)}
.pill.running .pill-dot{animation:pulse-soft 1.6s ease-in-out infinite}
.pill-dot.ok{background:var(--success)}
.chip{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;font-size:12px;font-weight:600;background:var(--success-soft);color:var(--success)}
.chip.gold{background:var(--accent-soft);color:var(--accent)}.chip.grey{background:var(--surface-2);color:var(--text-2)}
.strip{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:18px 20px;border:1px dashed var(--border-strong);border-radius:16px;background:var(--bg)}
.strip .ico-box{width:40px;height:40px;border-radius:10px;background:var(--surface-2);display:flex;align-items:center;justify-content:center;color:var(--text-2);flex:none}
.count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;padding:0 6px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:12px;font-weight:600}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.section-head h2{margin:0;font-size:16px;font-weight:600;display:flex;align-items:center;gap:10px}
.section-head a{font-size:13px;text-decoration:none}
.cards2{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(440px,100%),1fr));gap:16px}
.need{border:1px solid var(--border);border-radius:16px;background:var(--surface);padding:20px;display:flex;flex-direction:column;gap:10px}
.need h3{margin:0;font-size:16px;font-weight:600;overflow-wrap:anywhere}.need h3 .muted{color:var(--muted);font-weight:500}
.need p{margin:0;color:var(--text-2)}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));border:1px solid var(--border);border-radius:16px;background:var(--surface);overflow:hidden}
.stat{padding:18px 20px;border-right:1px solid var(--border);display:flex;flex-direction:column;gap:2px}.stat:last-child{border-right:none}
.stat .k{font-size:13px;color:var(--text-2)}.stat .v{font-size:26px;font-weight:600;letter-spacing:-.01em}.stat .s{font-size:12px;color:var(--muted)}
.meter{height:5px;border-radius:999px;background:var(--surface-3);margin-top:8px;overflow:hidden}.meter>span{display:block;height:100%;border-radius:999px;background:var(--accent)}
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:24px;align-items:start}
@media (max-width:1100px){.split{grid-template-columns:1fr}}
.panel{border:1px solid var(--border);border-radius:16px;background:var(--surface);padding:22px}
.panel>.sub{margin:4px 0 14px;font-size:13px}
.recent{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid var(--border);text-decoration:none;color:inherit}
.recent:first-of-type{border-top:none}
.recent .name{font-size:15px;font-weight:600;overflow-wrap:anywhere}
.recent:hover .name{color:var(--accent)}
.segs{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:none}
.segs .n{font-size:12.5px;font-weight:600}.segs .n span{color:var(--muted);font-weight:500}
.seg{display:flex;gap:2px;width:130px;justify-content:flex-end}
.seg i{flex:1;max-width:4px;height:7px;border-radius:2px;background:var(--surface-3)}
.seg i.on{background:var(--success)}.seg i.bad{background:var(--danger)}.seg i.run{background:var(--accent)}
.feed{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.feed li{display:grid;grid-template-columns:8px 1fr;gap:14px}
.feed .d{width:7px;height:7px;border-radius:999px;margin-top:7px;background:var(--success)}
.feed .d.warn{background:var(--warning)}.feed .d.info{background:var(--info)}.feed .d.gold{background:var(--accent)}
.feed .t{font-size:13.5px;line-height:1.45;color:var(--text-2)}.feed .t b{color:var(--text);font-weight:600}
.feed .w{font-size:12px;color:var(--muted)}
.filters{display:flex;flex-wrap:wrap;gap:12px;padding:16px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}
.filters>*{flex:1 1 170px}.filters .search{flex:2 1 240px;position:relative}
.filters .search input{width:100%;padding-left:38px}.filters .search .ico{position:absolute;left:13px;top:11px;color:var(--muted)}
.filters select,.filters input{width:100%}
.tbl td .name{font-weight:600}.tbl td .subname{font-size:12.5px;color:var(--muted);overflow-wrap:anywhere}
.tbl .num{font-variant-numeric:tabular-nums;font-weight:600}
.progress-cell{display:flex;flex-direction:column;gap:6px;min-width:120px}
.progress-cell .bar{height:4px}
.bar>span.ok{background:var(--success)}.bar>span.warn{background:var(--warning)}
.go{color:var(--accent);text-decoration:none;font-weight:500;white-space:nowrap}
.stepper{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.step{display:flex;flex-direction:column;gap:10px;color:var(--muted);font-size:14px}
.step::before{content:"";height:3px;border-radius:3px;background:var(--surface-3)}
.step .n{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:999px;border:1px solid var(--border-strong);font-size:11px;margin-right:8px}
.step.on{color:var(--text)}.step.on::before,.step.done::before{background:var(--accent)}
.step.on .n{border-color:var(--accent);color:var(--accent)}.step.done{color:var(--text-2)}.step.done .n{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
@media (max-width:700px){.step .lbl{display:none}}
.opts{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:14px}
.opt{position:relative;text-align:left;display:flex;flex-direction:column;gap:6px;padding:18px;border-radius:14px;border:1px solid var(--border);background:var(--surface);cursor:pointer;font:inherit;color:inherit;transition:border-color .15s,background .15s}
.opt:hover{border-color:var(--border-strong)}
.opt[aria-checked="true"]{border-color:var(--accent);background:#100d06}
.opt .top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.opt .num{width:30px;height:30px;border-radius:8px;background:var(--surface-2);border:1px solid var(--border-strong);display:flex;align-items:center;justify-content:center;font-weight:600;font-size:13px}
.opt[aria-checked="true"] .num{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.opt .t{font-size:16px;font-weight:600}.opt .g{color:var(--accent);font-size:13.5px}
.opt .d{color:var(--text-2);font-size:13.5px;line-height:1.55}.opt .f{margin-top:8px;color:var(--muted);font-size:12.5px}
.form-foot{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.panel h2.section{margin-bottom:2px}
.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:16px 18px;margin-top:14px}
.settings{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;align-items:start}
@media (max-width:900px){.settings{grid-template-columns:1fr}}
.subnav{display:flex;flex-direction:column;gap:4px}
.subnav a{display:flex;align-items:center;gap:10px;min-height:40px;padding:0 12px;border-radius:12px;color:var(--text-2);text-decoration:none;font-weight:500}
.subnav a:hover{background:var(--surface-2);color:var(--text)}
.subnav a[aria-current="page"]{background:#1c1609;color:var(--text)}.subnav a[aria-current="page"] .ico{color:var(--accent)}
.kv{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding:14px 0;border-top:1px solid var(--border)}
.kv:first-of-type{border-top:none}
.kv .k{color:var(--text-2)}.kv .v{display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right}
.kv .note{font-size:12px;color:var(--muted)}
.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.panel-head h2{margin:0;font-size:16px;font-weight:600;display:flex;align-items:center;gap:10px}
.panel-head h2 .ico{color:var(--text-2)}
.empty{padding:28px;text-align:center;color:var(--muted)}
.icon-btn[disabled]{opacity:.35;pointer-events:none}

/* ---------- batch detail (Studio-style progress) ---------- */
.detail{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}
@media (max-width:1100px){.detail{grid-template-columns:1fr}}
.hero{display:flex;flex-direction:column;gap:14px;padding:24px}
.hero-top{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.hero .k{font-size:13px;color:var(--text-2)}
.hero .big{font-size:40px;font-weight:650;letter-spacing:-.02em;line-height:1.1;font-variant-numeric:tabular-nums}
.hero .big span{font-size:22px;color:var(--muted);font-weight:500}
.hero-meta{text-align:right;font-size:13px;color:var(--text-2)}.hero-meta .bad{color:var(--danger);font-weight:500}
.bigseg{display:flex;gap:4px}
.bigseg i{flex:1;height:10px;border-radius:3px;background:var(--surface-3);min-width:3px}
.bigseg i.on{background:var(--success)}.bigseg i.bad{background:var(--danger)}
.bigseg i.run{background:var(--accent);animation:pulse-soft 1.6s ease-in-out infinite}
.legend{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:13px;color:var(--text-2)}
.legend span{display:inline-flex;align-items:center;gap:7px}
.legend i{width:9px;height:9px;border-radius:2px;background:var(--surface-3)}
.legend i.on{background:var(--success)}.legend i.run{background:var(--accent)}.legend i.bad{background:var(--danger)}
.phase{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:var(--text);overflow-wrap:anywhere}
.phase .ico{width:18px;height:18px;color:var(--text-2);flex:none;margin-top:1px}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);overflow-x:auto}
.tabs button{background:none;border:none;border-bottom:2px solid transparent;color:var(--text-2);font:inherit;font-weight:500;padding:10px 14px;cursor:pointer;display:inline-flex;gap:8px;align-items:center;margin-bottom:-1px;white-space:nowrap}
.tabs button:hover{color:var(--text)}
.tabs button.on{color:var(--text);border-bottom-color:var(--accent)}
.tabs .n{color:var(--muted);font-size:12.5px}
.icon-btn.sm{width:26px;height:26px;border-radius:8px}.icon-btn.sm .ico{width:14px;height:14px}
.err.small{font-size:12.5px;margin:0}
.side-card{border:1px solid var(--border);border-radius:16px;background:var(--surface);padding:18px;display:flex;flex-direction:column;gap:12px}
.side-card .t{font-weight:650;font-size:15px}.side-card p{margin:0;color:var(--text-2);font-size:13.5px;line-height:1.5}
.side-card.info{border-color:rgb(96 165 250 / .28);background:var(--info-soft)}.side-card.info .t{color:var(--info)}
.side-card.ok{border-color:rgb(52 211 153 / .28);background:var(--success-soft)}.side-card.ok .t{color:var(--success)}
.side-card.warn{border-color:rgb(251 146 60 / .3);background:var(--warning-soft)}.side-card.warn .t{color:var(--warning)}
.panel.side{padding:18px}
.panel.side .kv{padding:11px 0;font-size:13.5px}
.panel.side .kv .v{max-width:62%;overflow-wrap:anywhere}
.log.tall{max-height:560px}
.stages{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}
.stage{border:1px solid var(--border);border-radius:14px;background:var(--surface);padding:14px 16px;display:flex;flex-direction:column;gap:6px}
.stage.now{border-color:rgb(212 166 74 / .45)}
.stage .k{font-size:12.5px;color:var(--text-2)}
.stage .v{font-size:22px;font-weight:650;font-variant-numeric:tabular-nums}.stage .v span{font-size:14px;color:var(--muted);font-weight:500}
.stage .bar{position:relative;display:flex;height:6px;border-radius:3px;background:var(--surface-3);overflow:hidden}
.stage .bar span{background:var(--success)}.stage .bar i{background:var(--danger)}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chips button{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--border-strong);background:transparent;color:var(--text-2);font:inherit;font-size:13px;cursor:pointer}
.chips button span{color:var(--muted);font-size:12px}
.chips button.on{background:var(--accent-soft);border-color:rgb(212 166 74 / .45);color:var(--accent)}
.trackkey{display:flex;gap:10px;font-size:11.5px;color:var(--muted)}
.trackkey span+span::before{content:'→ ';color:var(--border-strong)}
.adlist{border:1px solid var(--border);border-radius:16px;background:var(--surface);overflow:hidden}
.arow{display:grid;grid-template-columns:28px minmax(0,1fr) auto 170px auto;align-items:center;gap:14px;padding:11px 16px;border-top:1px solid var(--border)}
.arow:first-child{border-top:none}
.arow.failed{background:var(--danger-soft)}
.arow .n{font-family:var(--mono);font-size:12px;color:var(--accent)}
.arow .nm{min-width:0}.arow .f{font-family:var(--mono);font-size:13px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.arow .pill{justify-self:start}
.arow .aid{display:flex;align-items:center;gap:4px;justify-content:flex-end;font-size:12px;color:var(--text-2)}.arow .aid .muted{color:var(--muted)}
.track{display:flex;gap:3px}
.track i{width:22px;height:6px;border-radius:3px;background:var(--surface-3)}
.track i.done{background:var(--success)}.track i.failed{background:var(--danger)}.track i.stopped{background:var(--warning)}
.track i.running{background:var(--accent);animation:pulse-soft 1.6s ease-in-out infinite}
@media (max-width:760px){.arow{grid-template-columns:28px minmax(0,1fr) auto;grid-template-areas:'n nm nm' 'n track pill' 'n aid aid'}.arow .n{grid-area:n;align-self:start}.arow .nm{grid-area:nm}.arow .track{grid-area:track}.arow .pill{grid-area:pill;justify-self:end}.arow .aid{grid-area:aid;justify-content:flex-start}.trackkey{display:none}}
.live{display:flex;flex-direction:column;gap:14px;padding:20px 22px;border:1px solid var(--border);border-radius:16px;background:var(--surface);color:inherit;text-decoration:none;transition:border-color .15s}
a.live:hover{border-color:rgb(212 166 74 / .45);color:inherit}
.live.queued{flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px;padding:14px 22px}
.live.idle{flex-direction:row;flex-wrap:wrap;align-items:center;gap:14px;padding:16px 22px}.live.idle .sub{flex:1}
.live .nm{font-size:15px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.live-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.live-mid{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}
.live .big{font-size:34px;font-weight:650;letter-spacing:-.02em;line-height:1;font-variant-numeric:tabular-nums}
.live .big span{font-size:15px;color:var(--muted);font-weight:500;letter-spacing:0}
.live .bad{color:var(--danger);font-size:13px;font-weight:500}
.live-foot{display:flex;justify-content:space-between;align-items:center;gap:8px 20px;flex-wrap:wrap}
.live-foot .phase{font-size:13.5px;color:var(--text-2)}
.need .need-x{margin-left:auto}
.need.dim{opacity:.55}
.linkbtn{background:none;border:none;padding:0;color:var(--text-2);font:inherit;font-size:13px;cursor:pointer}.linkbtn:hover{color:var(--text)}
.pill.waiting{color:var(--accent);background:var(--accent-soft);border-color:rgb(212 166 74 / .3)}
.pill.waiting .pill-dot{animation:pulse-soft 1.6s ease-in-out infinite}
.combo{position:relative}
.combo input{width:100%}
.combo-list{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:30;max-height:340px;overflow:auto;background:var(--surface-2);border:1px solid var(--border-strong);border-radius:var(--radius-sm);padding:4px;box-shadow:0 16px 40px -12px rgb(0 0 0 / .7)}
.combo-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 12px;border-radius:10px;cursor:pointer}
.combo-item .nm{font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.combo-item .hint{font-family:var(--mono);font-size:11.5px;color:var(--muted);white-space:nowrap}
.combo-item:hover,.combo-item.on{background:var(--accent-soft)}
.combo-empty{padding:12px;color:var(--muted);font-size:13px}
