:root {
  --bg:          #0a111e;
  --bg-2:        #0d1524;
  --panel:       #111b2b;
  --card:        #14202f;
  --card-hi:     #1a2839;
  --border:      #223146;
  --border-soft: #1a2637;

  --text:        #e9f0fb;
  --muted:       #93a6c0;
  --dim:         #6b7f9c;

  --orange:      #ff7a29;
  --orange-hi:   #ff9a52;
  --orange-dim:  #b4541b;
  --blue:        #4da3ff;
  --violet:      #9b7dff;
  --green:       #48d597;
  --amber:       #f0b429;
  --danger:      #f87171;

  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 10px 30px rgba(0, 0, 0, .45);
  --shadow-sm:   0 4px 14px rgba(0, 0, 0, .35);

  --sidebar:     224px;
  --header:      88px;

  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", "Consolas", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  overflow: hidden;
  
  user-select: none;
  -webkit-user-select: none;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
::selection { background: var(--orange); color: #10161f; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #24354c; border-radius: 6px; border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #33475f; }

#app { display: grid; grid-template-columns: var(--sidebar) 1fr; height: 100vh; }

.sidebar {
  background: linear-gradient(180deg, #0e1726 0%, #0a111e 100%);
  border-right: 1px solid var(--border-soft);
  display: flex; flex-direction: column; padding: 1rem .75rem;
  overflow-y: auto;
}

.brand { display: flex; align-items: center; gap: .6rem; padding: .35rem .5rem 1.15rem; }
.brand-mark {
  width: 30px; height: 30px; flex: none;
  
  border-radius: 7px;
}
.brand-name { font-size: 1.22rem; font-weight: 700; letter-spacing: -.02em; }
.brand-name .pilot { color: var(--orange); }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-sep { height: 1px; background: var(--border-soft); margin: .8rem .5rem; }

.nav-item {
  display: flex; align-items: center; gap: .7rem; width: 100%;
  padding: .62rem .7rem; border-radius: 10px; color: var(--muted);
  font-size: .94rem; text-align: left; transition: background .12s, color .12s;
}
.nav-item:hover { background: #17233529; color: var(--text); }
.nav-item.active { background: #1a2740; color: var(--text); font-weight: 600; }
.nav-item.active .nav-icon { color: var(--orange); }
.nav-icon { width: 18px; height: 18px; flex: none; color: var(--dim); }
.nav-item .tag {
  margin-left: auto; font-size: .64rem; font-weight: 700; letter-spacing: .04em;
  color: var(--violet); background: #2a2150; padding: .16rem .4rem; border-radius: 5px;
}

.sidebar-foot { padding: 1rem .6rem .2rem; }

.sidebar:has(.upsell:not(.hidden)) .sidebar-foot { display: none; }
.quote { color: var(--dim); font-size: .78rem; font-style: italic; line-height: 1.5; }
.quote cite { display: block; margin-top: .4rem; font-style: normal; color: #55677f; }

.main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }

.topbar {
  height: var(--header); flex: none;
  display: flex; align-items: center; gap: 1.2rem;
  padding: 0 1.6rem; border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #101b2c, #0c1421);
}
.topbar .tagline { color: var(--dim); font-size: .82rem; margin-top: .12rem; }
.topbar-centre { text-align: center; flex: 1; min-width: 0; }
.topbar-centre h1 { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.topbar-centre p { margin: .15rem 0 0; color: var(--dim); font-size: .78rem; }

.topbar-centre h1, .topbar-centre p {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 1300px) {
  .topbar-centre > * { display: none; }
}

.resolve-status {
  display: flex; align-items: center; gap: .7rem; flex: none;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: .55rem .85rem; min-width: 224px;
}
.resolve-status .rs-icon {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: grid; place-items: center; background: #1b2942;
}
.resolve-status .rs-title { font-size: .85rem; font-weight: 600; }
.resolve-status .rs-detail { font-size: .72rem; color: var(--dim); margin-top: .1rem; }
.rs-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: .38rem; }
.rs-ok   .rs-dot { background: var(--green); box-shadow: 0 0 8px #48d59788; }
.rs-warn .rs-dot { background: var(--amber); box-shadow: 0 0 8px #f0b42988; }
.rs-idle .rs-dot { background: #4a5c74; }
.rs-ok   .rs-title { color: var(--green); }
.rs-warn .rs-title { color: var(--amber); }
.rs-idle .rs-title { color: var(--muted); }

.content { flex: 1; overflow-y: auto; padding: 1.6rem 1.7rem 3rem; }
.content-head {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.3rem; flex-wrap: wrap;
}
.content-head h2 { margin: 0; font-size: 1.6rem; font-weight: 650; letter-spacing: -.025em; }
.content-head .spacer { flex: 1; }

.search {
  display: flex; align-items: center; gap: .55rem; min-width: 240px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; padding: .5rem .95rem;
}
.search:focus-within { border-color: #38507250; box-shadow: 0 0 0 3px #4da3ff22; }
.search input { border: none; background: none; outline: none; width: 100%; font-size: .88rem; }
.search input::placeholder { color: var(--dim); }
.search svg { color: var(--dim); flex: none; }

.grid {
  display: grid; gap: 1.05rem;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}

@media (max-width: 900px) { .grid { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); } }

.card {
  position: relative; text-align: left; width: 100%;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .14s ease, border-color .14s, box-shadow .14s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); border-color: #33496a; box-shadow: var(--shadow); }
.card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.card.hero { grid-column: span 1; }

.card-art { position: relative; aspect-ratio: 16 / 9; background: #0f1828; }
.card-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.card-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, #0f1a2ccc 100%);
}

.card-body { padding: .85rem .95rem 1rem; display: flex; align-items: flex-start; gap: .7rem; }
.card-text { min-width: 0; flex: 1; }
.card-title { font-size: 1rem; font-weight: 650; letter-spacing: -.01em; }
.card-tagline { color: var(--dim); font-size: .8rem; margin-top: .22rem; line-height: 1.35; }

.card-go {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--orange); color: #10161f; display: grid; place-items: center;
  transition: transform .14s;
}
.card:hover .card-go { transform: translateX(3px); }
.card.is-v1_1 .card-go { background: var(--violet); color: #120c26; }
.card.is-building .card-go { background: #2b3d58; color: var(--muted); }

.badge {
  position: absolute; top: .6rem; left: .6rem; z-index: 1;
  font-size: .64rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .24rem .5rem; border-radius: 6px; backdrop-filter: blur(6px);
}

.badge.inline {
  position: static; display: inline-block; align-self: flex-start;
}
.badge.v1_1     { background: #2a2150e0; color: #c3aaff; }
.badge.building { background: #2b2413e0; color: #f5cd6b; }
.badge.ready    { background: #10301fe0; color: #6ee7a8; }
.badge.pro      { background: #2b1f10e0; color: #ffb968; }

.preset:disabled,
.tabs button:disabled {
  opacity: .45; cursor: not-allowed;
}
.preset:disabled::after,
.tabs button:disabled::after {
  content: 'PRO';
  position: absolute; top: .35rem; right: .45rem;
  font-size: .56rem; font-weight: 700; letter-spacing: .06em;
  color: #ffb968;
}
.preset { position: relative; }
.tabs button { position: relative; }

.card .badge.pro { position: absolute; }

.panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1.05rem;
}
.panel-title {
  font-size: .74rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--dim); margin-bottom: .85rem;
}
.row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.row.tight { gap: .45rem; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.stack { display: flex; flex-direction: column; gap: .75rem; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: .8rem; }
.tiny { font-size: .72rem; }
.mono { font-family: var(--mono); font-size: .78rem; }
.nowrap { white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .58rem 1.05rem; border-radius: 9px; font-size: .88rem; font-weight: 600;
  background: var(--card-hi); border: 1px solid var(--border); color: var(--text);
  transition: background .12s, border-color .12s, opacity .12s;
}
.btn:hover:not(:disabled) { background: #22334a; border-color: #33496a; }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(180deg, var(--orange-hi), var(--orange));
  color: #170c04; border-color: #ff9a5233;
}
.btn.primary:hover:not(:disabled) { filter: brightness(1.07); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: #52242a; }
.btn.small { padding: .38rem .7rem; font-size: .8rem; }

.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.input, select.input, textarea.input {
  background: #0d1726; border: 1px solid var(--border); border-radius: 9px;
  padding: .55rem .75rem; font-size: .88rem; outline: none; width: 100%;
  user-select: text;
}
.input:focus { border-color: #3a5477; box-shadow: 0 0 0 3px #4da3ff1f; }
textarea.input { resize: vertical; min-height: 76px; font-family: var(--mono); }

.check { display: flex; align-items: flex-start; gap: .6rem; padding: .42rem 0; cursor: pointer; }
.check input { margin: .18rem 0 0; accent-color: var(--orange); width: 16px; height: 16px; flex: none; }
.check .ct { font-size: .88rem; }
.check .cd { font-size: .76rem; color: var(--dim); margin-top: .1rem; }

.slider { display: flex; align-items: center; gap: .8rem; }
.slider input[type=range] { flex: 1; accent-color: var(--orange); }
.slider .val { font-family: var(--mono); font-size: .8rem; color: var(--muted); min-width: 56px; text-align: right; }

.tabs { display: inline-flex; gap: 3px; background: #0d1726; padding: 3px; border-radius: 10px; border: 1px solid var(--border); }
.tabs button { padding: .4rem .95rem; border-radius: 8px; font-size: .84rem; color: var(--muted); font-weight: 600; }
.tabs button.active { background: var(--card-hi); color: var(--text); }

.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: .6rem; }
.preset {
  text-align: left; padding: .7rem .8rem; border-radius: 11px;
  background: var(--card); border: 1px solid var(--border); transition: border-color .12s, background .12s;
}
.preset:hover { border-color: #33496a; }
.preset.active { border-color: var(--orange); background: #24190f; }
.preset .pt { font-size: .9rem; font-weight: 650; }
.preset .pb { font-size: .73rem; color: var(--dim); margin-top: .22rem; line-height: 1.35; }

.lay-thumb { display: block; width: 100%; height: 118px; object-fit: contain; background: #05080f; border-radius: 7px; margin-bottom: .55rem; }
.lay-thumb.lay-portrait { height: 150px; }

.preset:has(.lay-thumb) { display: flex; flex-direction: column; justify-content: flex-start; }
.lay-thumb-wait { background: linear-gradient(90deg, #0b111c, #141d2c, #0b111c); }
.preset .validated { font-size: .64rem; color: var(--green); margin-top: .35rem; font-weight: 700; letter-spacing: .03em; }

.progress-track { height: 6px; background: #16233a; border-radius: 3px; overflow: hidden; }
.progress-fill {
  height: 100%; border-radius: 3px; transition: width .25s ease;
  background: linear-gradient(90deg, var(--orange), var(--orange-hi));
}
.progress-fill.indet {
  width: 35% !important; animation: slide 1.1s ease-in-out infinite alternate;
}
@keyframes slide { from { margin-left: 0; } to { margin-left: 65%; } }

.empty, .errorbox {
  border-radius: var(--radius); padding: 1.6rem; text-align: center;
  border: 1px dashed var(--border); color: var(--muted);
}
.empty h3 { margin: .6rem 0 .3rem; font-size: 1rem; color: var(--text); }
.empty p { margin: 0; font-size: .85rem; }
.errorbox {
  border: 1px solid #52242a; background: #1e1216; color: #ffc9c9;
  text-align: left; display: flex; gap: .8rem; align-items: flex-start;
}
.errorbox .et { font-weight: 650; margin-bottom: .25rem; color: #ffd7d7; }
.errorbox pre {
  margin: .6rem 0 0; font-size: .72rem; color: #d99; white-space: pre-wrap;
  max-height: 130px; overflow: auto; user-select: text;
}

.callout {
  border-radius: var(--radius); border: 1px solid #2b3f63; background: #111e33;
  padding: 1rem 1.15rem;
}
.callout.action { border-color: var(--orange-dim); background: #1e1509; }
.callout h4 { margin: 0 0 .45rem; font-size: .95rem; }
.callout .steps { margin: .7rem 0 0; padding-left: 1.1rem; font-size: .85rem; color: var(--muted); line-height: 1.75; }
.callout code {
  font-family: var(--mono); background: #0c1524; padding: .12rem .38rem;
  border-radius: 5px; color: var(--orange-hi); font-size: .84rem; user-select: text;
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: .8rem; }
.stat { background: #0e1828; border: 1px solid var(--border-soft); border-radius: 11px; padding: .7rem .8rem; }
.stat .sv { font-size: 1.32rem; font-weight: 680; letter-spacing: -.02em; }
.stat .sl { font-size: .71rem; color: var(--dim); margin-top: .15rem; }

.reviewlist { max-height: 430px; overflow-y: auto; border: 1px solid var(--border); border-radius: 11px; }
.review-row {
  display: flex; gap: .75rem; padding: .6rem .8rem; align-items: flex-start;
  border-bottom: 1px solid var(--border-soft); cursor: pointer;
}
.review-row:last-child { border-bottom: none; }
.review-row:hover { background: #16233a55; }
.review-row input { margin-top: .2rem; accent-color: var(--orange); width: 16px; height: 16px; flex: none; }
.review-row .rl { font-size: .88rem; font-weight: 600; }
.review-row .rc { font-size: .77rem; color: var(--dim); margin-top: .18rem; line-height: 1.45; user-select: text; }
.review-row .rc b { color: var(--orange-hi); font-weight: 700; }
.review-row .rt { font-family: var(--mono); font-size: .74rem; color: var(--muted); flex: none; }
.review-row .conf { font-size: .7rem; color: var(--dim); flex: none; }
.kind-pill {
  font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: .12rem .38rem; border-radius: 5px; background: #22314c; color: var(--muted);
}
.kind-pill.false-start { background: #2b2413; color: #f5cd6b; }
.kind-pill.repeated-take { background: #1b2b45; color: #8fc0ff; }

.filelist { display: flex; flex-direction: column; gap: .4rem; }
.filerow {
  display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem;
  background: #0e1828; border: 1px solid var(--border-soft); border-radius: 9px; font-size: .84rem;
}
.filerow .fn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filerow.bad { border-color: #52242a; background: #1a1114; }

.hidden { display: none !important; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fade .18s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.1rem; align-items: start;
}
.plan {
  position: relative; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1rem;
}
.plan.is-pro {
  border-color: #6b3f14;
  background: linear-gradient(180deg, #221609 0%, var(--panel) 42%);
  box-shadow: 0 0 0 1px #6b3f1440, 0 14px 40px -22px #ff8c2e55;
}
.plan-flag {
  position: absolute; top: -.66rem; left: 1.3rem;
  background: var(--orange); color: #1a0e03;
  font-size: .62rem; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; padding: .22rem .6rem; border-radius: 6px;
}
.plan-head { padding-bottom: .95rem; border-bottom: 1px solid var(--border); }
.plan-name {
  font-size: .74rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--dim);
}
.plan-price {
  font-size: 2.1rem; font-weight: 750; margin: .35rem 0 .1rem;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.plan-per { font-size: .9rem; font-weight: 500; color: var(--dim); }
.plan-sub { font-size: .82rem; color: var(--muted); }
.plan-note {
  font-size: .72rem; color: var(--dim); margin-top: .5rem; max-width: 42ch;
}
.plan-current {
  display: inline-block; margin-top: .8rem; padding: .3rem .65rem;
  border-radius: 7px; background: #10301fe0; color: #6ee7a8;
  font-size: .7rem; font-weight: 700;
}
.plan-soon {
  margin-top: .8rem; padding: .5rem .7rem; border-radius: 8px;
  background: #ffffff08; border: 1px dashed var(--border);
  font-size: .72rem; color: var(--dim);
}

.plan-features {
  display: flex; flex-direction: column; gap: .48rem; padding-top: .95rem;
}
.plan-row {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .84rem; line-height: 1.35;
}
.plan-row.is-out { color: var(--dim); }
.plan-row.is-highlight {
  margin: -.15rem -.5rem; padding: .15rem .5rem;
  border-radius: 6px; background: #ff8c2e14;
}
.tick {
  flex: none; width: 1.05rem; height: 1.05rem; border-radius: 5px;
  display: grid; place-items: center; font-size: .66rem; font-weight: 800;
  margin-top: .1rem;
}
.tick-yes     { background: var(--orange); color: #1a0e03; }
.tick-partial { background: #6b3f14; color: #ffb968; }
.tick-no      { background: #ffffff10; color: var(--dim); }

.period {
  display: inline-flex; gap: .2rem; padding: .22rem;
  background: #ffffff0d; border: 1px solid var(--border);
  border-radius: 9px; margin: .5rem 0 .7rem;
}
.period-opt {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border: 0; border-radius: 7px; cursor: pointer;
  background: transparent; color: var(--muted);
  font-size: .76rem; font-weight: 650; font-family: inherit;
}
.period-opt:hover { color: var(--text); }
.period-opt.active { background: var(--orange); color: #1a0e03; }
.period-save {
  font-size: .6rem; font-weight: 800; letter-spacing: .04em;
  padding: .1rem .34rem; border-radius: 5px;
  background: #48d59730; color: var(--green);
}
.period-opt.active .period-save { background: #1a0e0322; color: #1a0e03; }

.plans-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.plans-3 .plan-price { font-size: 1.8rem; }
.plans-3 .plan-row { font-size: .8rem; }
.badge.basic    { background: #10243be0; color: #7cc0ff; }

.upsell {
  
  margin: .6rem .7rem 0; margin-top: auto;
  position: sticky; bottom: .4rem; z-index: 2;
  padding: .7rem .75rem;
  border-radius: 10px; border: 1px solid #6b3f1450;
  background: linear-gradient(180deg, #221609 0%, #14202f 100%);
  display: flex; flex-direction: column; gap: .35rem;
}
.upsell-count {
  font-size: .82rem; font-weight: 700; color: var(--orange-hi);
}
.upsell-line { font-size: .7rem; color: var(--muted); line-height: 1.3; }
.upsell .btn { width: 100%; justify-content: center; margin-top: .2rem; }

.discovery-banner {
  border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1.1rem;
  border: 1px solid #6b3f1450;
  background: linear-gradient(180deg, #221609 0%, var(--panel) 60%);
  display: flex; flex-direction: column; gap: .85rem;
}
.discovery-banner.is-basic {
  border-color: #1d3a5a; background: linear-gradient(180deg, #0f1e2f 0%, var(--panel) 60%);
}
.discovery-head { display: flex; gap: .8rem; align-items: flex-start; }
.discovery-title { font-weight: 650; font-size: .98rem; }
.discovery-sub {
  font-size: .82rem; color: var(--muted); margin-top: .2rem; max-width: 62ch;
}

.offers { display: flex; flex-wrap: wrap; gap: .6rem; }
.offer {
  flex: 1 1 190px; padding: .65rem .8rem; border-radius: 10px;
  border: 1px solid var(--border); background: #ffffff08;
}
.offer.is-primary { border-color: var(--orange); background: #ff8c2e14; }
.offer-name {
  font-size: .68rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--dim);
}
.offer-price {
  font-size: 1.15rem; font-weight: 700; margin-top: .15rem;
  font-variant-numeric: tabular-nums;
}
.offer-annual { font-size: .72rem; color: var(--muted); margin-top: .1rem; }

.discovery .btn.primary {
  position: relative;
  background: #ffffff12; color: var(--muted); border: 1px dashed var(--border);
}
.discovery .btn.primary::after {
  content: '\1F512'; margin-left: .4rem; font-size: .8em; opacity: .8;
}
.discovery .btn.primary:hover { background: #ffffff18; color: var(--text); }

.notice-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin: .6rem 1.4rem 0; padding: .6rem .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid #1d3a5a; background: #0f1e2f;
}
.notice-bar.is-warning { border-color: #6b531450; background: #221d09; }
.notice-title { font-size: .86rem; font-weight: 650; }
.notice-bar.is-warning .notice-title { color: var(--amber); }
.notice-msg { font-size: .78rem; color: var(--muted); margin-top: .15rem; max-width: 80ch; }
.licence-key { min-height: 64px; word-break: break-all; }

.fx-thumb {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 7px; margin-bottom: .45rem;
  background: linear-gradient(180deg, #4d5461, #22252c);
  opacity: .35; transition: opacity .2s ease;
}
.fx-thumb.ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .fx-thumb { transition: none; } }

.fx-card {
  display: flex; flex-direction: column; justify-content: flex-start;
  align-items: stretch; text-align: left;
}

.fx-stage { position: relative; cursor: crosshair; line-height: 0; }
.fx-marker {
  position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border: 2px solid #fff; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .55);
}
.fx-marker::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px;
  margin: -2px 0 0 -2px; background: var(--orange); border-radius: 50%;
}

.fx-marker.following { border-color: var(--orange); }
.fx-marker.following::after { background: #fff; }

.fx-marker.second { border-radius: 5px; border-style: dashed; }
.fx-marker.second::after { background: var(--text); }

.fx-fires {
  position: relative; height: 26px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-2);
}
.fx-fire {
  position: absolute; top: 3px; width: 8px; height: 18px; margin-left: -4px;
  padding: 0; border: 1px solid rgba(0, 0, 0, .4); border-radius: 3px;
  background: var(--orange); cursor: pointer;
}
.fx-fire:hover, .fx-fire:focus-visible { background: #fff; }
.fx-now {
  position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px;
  background: var(--text); opacity: .75; pointer-events: none;
}
.fx-track { gap: .45rem; }

.auth-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 1.5rem;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(255, 138, 61, .10), transparent 60%),
    var(--bg);
  overflow-y: auto;
}
.auth-card {
  width: min(420px, 100%);
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.9rem 1.8rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.auth-brand { font-weight: 750; font-size: 1.25rem; letter-spacing: -.01em; }
.auth-brand span { color: var(--orange); }
.auth-title { margin: .9rem 0 .2rem; font-size: 1.35rem; text-wrap: balance; }
.auth-sub { margin: 0 0 1.2rem; }
.auth-field { display: grid; gap: .35rem; }
.auth-field > span { font-size: .82rem; font-weight: 600; color: var(--muted); }
.auth-go { width: 100%; justify-content: center; margin-top: .3rem; }
.auth-consent {
  display: flex; gap: .6rem; align-items: flex-start; cursor: pointer;
  padding: .7rem .75rem; border: 1px solid var(--border-soft);
  border-radius: 10px; background: var(--bg-2);
}
.auth-consent input { margin-top: .2rem; flex: none; accent-color: var(--orange); }
.auth-note { padding: .55rem .7rem; border-radius: 8px; background: var(--bg-2); }
.auth-note.bad { color: var(--danger); background: rgba(248, 113, 113, .08); }
.auth-note.good { color: var(--green); background: rgba(72, 213, 151, .08); }
.auth-quick:empty { display: none; }
.auth-quick { margin-top: .9rem; gap: .5rem; }
.auth-or {
  display: flex; align-items: center; gap: .7rem; text-transform: uppercase;
  letter-spacing: .08em; font-size: .72rem;
}
.auth-or::before, .auth-or::after {
  content: ""; flex: 1; height: 1px; background: var(--border-soft);
}
.auth-provider { width: 100%; justify-content: center; }
.auth-links {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--border-soft);
}
.linkish {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--muted); font: inherit; font-size: .88rem;
  text-decoration: underline; text-underline-offset: 3px;
}
.linkish:hover, .linkish:focus-visible { color: var(--text); }
.linkish:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 3px; }

.up-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1rem; align-items: start; }
@media (max-width: 900px) { .up-grid { grid-template-columns: 1fr; } }
.up-compare { position: relative; width: 100%; margin: 0 auto; border-radius: 11px; overflow: hidden; border: 1px solid var(--border); background: #05080f; aspect-ratio: 16 / 9; }
.up-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }
.up-after { position: absolute; inset: 0; }
.up-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--orange); box-shadow: 0 0 6px rgba(0, 0, 0, .6); pointer-events: none; }
.up-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--orange); color: #10161f; font-weight: 800; font-size: .8rem; padding: .25rem .45rem; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); white-space: nowrap; }
.up-wipe { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.up-wipe:focus-visible { opacity: .35; }
.up-tag { position: absolute; top: .55rem; font-size: .72rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 6px; background: rgba(5, 8, 15, .72); color: var(--text); pointer-events: none; }
.up-tag-l { left: .55rem; }
.up-tag-r { right: .55rem; color: var(--orange); }
.up-thumbwrap { position: relative; cursor: crosshair; border-radius: 9px; overflow: hidden; border: 1px solid var(--border); }
.up-thumb { display: block; width: 100%; }
.up-box { position: absolute; border: 2px solid var(--orange); border-radius: 3px; box-shadow: 0 0 0 999px rgba(5, 8, 15, .45); pointer-events: none; }

.lk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.lk-swatch { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: .35rem; border-radius: 10px; border: 1px solid var(--border); background: var(--card); text-align: left; min-height: 44px; }
.lk-swatch img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; display: block; }
.lk-swatch .lk-name { font-size: .78rem; font-weight: 600; color: var(--muted); padding: 0 .15rem .1rem; }
.lk-swatch:hover { border-color: #38507a; }
.lk-swatch.active { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.lk-swatch.active .lk-name { color: var(--text); }
.lk-swatch:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.lx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.1rem; align-items: start; }
@media (max-width: 1000px) { .lx-grid { grid-template-columns: 1fr; } }
.lx-cards { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .45rem; }
.lx-cards .lk-swatch .lk-name { font-size: .72rem; }

.tt-box { cursor: crosshair; }
.tt-templates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tt-faces { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.tt-faces .lk-swatch img { aspect-ratio: 10 / 3; object-fit: contain; background: #05080f; }
.tt-colours { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.tt-colour { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); padding: 0; cursor: pointer; }
.tt-colour.active { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.tt-colour:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.tt-custom { width: 34px; height: 28px; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: none; cursor: pointer; }
.tt-exits { flex-wrap: wrap; }
.tt-auto { height: 26px; padding: 0 .55rem; border-radius: 13px; border: 2px solid var(--border); background: var(--card); color: var(--muted); font-size: .72rem; font-weight: 650; cursor: pointer; }
.tt-auto.active { border-color: var(--orange); color: var(--text); }
.tt-auto:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.tt-words { display: flex; flex-direction: column; gap: .6rem; padding: .8rem; border-radius: 10px; background: var(--card); border: 1px solid var(--border); }
.tt-words .field { margin: 0; }
.tt-playing { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; font-size: .8rem; color: var(--muted); }
.tt-playing strong { color: var(--text); font-weight: 650; }
.tt-playing .btn { margin-left: auto; }
.tt-positions { display: grid; grid-template-columns: repeat(3, 34px); grid-template-rows: repeat(3, 22px); gap: 4px; padding: 6px; width: max-content; border-radius: 8px; background: #05080f; border: 1px solid var(--border); }
.tt-pos { position: relative; border: 1px solid var(--border); border-radius: 4px; background: var(--card); cursor: pointer; padding: 0; }
.tt-pos:hover { border-color: #38507a; }
.tt-pos .tt-pos-dot { position: absolute; inset: 50% auto auto 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--dim); }
.tt-pos.active { border-color: var(--orange); background: #24190f; }
.tt-pos.active .tt-pos-dot { background: var(--orange); }
.tt-pos:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.tt-check { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.tt-check input { flex: none; margin: 0; }
.tt-check-hint { margin: .15rem 0 0 1.6rem; }

.mg-grid { grid-template-columns: minmax(0, 1fr) 420px; }
@media (max-width: 1100px) { .mg-grid { grid-template-columns: 1fr; } }
.mg-table { display: flex; flex-direction: column; gap: .35rem; }
.mg-head, .mg-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: .35rem; align-items: center; }
.mg-head { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); padding: 0 .2rem; }
.mg-cell { padding: .35rem .5rem; font-size: .82rem; }
.mg-row .btn { padding: .2rem .45rem; }

.mg-row.shot { grid-template-columns: 8.5rem minmax(0, 1fr) minmax(0, 1.4fr); }
.mg-row.shot:nth-child(odd) { background: rgba(255, 255, 255, .022); }
.mg-row.shot .mg-cell { padding: .3rem .5rem; }
.mg-row.shot { cursor: pointer; border-radius: 4px; }
.mg-row.shot:hover { background: rgba(255, 255, 255, .055); }

.mg-row.shot.here { box-shadow: inset 2px 0 0 var(--orange, #ff6b35); }
.mg-row.shot.pinned { background: rgba(255, 157, 77, .085); }
.mg-row.shot.pinned:hover { background: rgba(255, 157, 77, .13); }

.ang-stage { position: relative; margin-bottom: .9rem; }
.ang-frame {
  
  display: block; width: 100%; max-height: 42vh; margin: 0 auto;
  border-radius: var(--radius);
  background: #0b111d; aspect-ratio: 16 / 9; object-fit: contain;
}
video.ang-frame { background: #000; }

.ep-stalled { opacity: .45; filter: saturate(.6); }

.ang-wait-mark, .ep-not-in-preview img {
  width: 72px; height: 72px; opacity: .3; margin-bottom: .7rem;
}
.ep-not-in-preview {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: .2rem;
  min-height: 46vh; color: var(--dim); font-size: .85rem;
}
.ang-frame-wait {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--dim); font-size: .82rem; border: 1px dashed var(--border);
}

:root {
  --ang-c1: #5b7cfa; --ang-c2: #ff9d4d; --ang-c3: #41c7a8;
  --ang-c4: #c678dd; --ang-c5: #e6c84a; --ang-c6: #e8657f;
}

.ang-steps {
  display: flex; gap: .4rem; margin: 0 0 1rem; flex-wrap: wrap;
}
.ang-step {
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--dim);
  padding: .26rem .7rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--panel);
}
.ang-step.on {
  color: #0b111d; background: var(--orange, #ff6b35); border-color: transparent;
}

.ang-step.done { color: var(--text); border-color: #3a5477; }

.ang-step.go { cursor: pointer; font: inherit; font-size: .72rem;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ang-step.go:hover { border-color: var(--orange, #ff6b35); color: var(--text); }
.ang-step.go:focus-visible { outline: 2px solid var(--blue, #4da3ff);
  outline-offset: 2px; }

.ang-setup-head, .ang-setup-row {
  display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) 9.5rem 7rem;
  align-items: center; gap: .6rem;
}
.ang-setup-head {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--dim); padding: 0 0 .4rem;
  border-bottom: 1px solid var(--border); margin-bottom: .5rem;
}
.ang-setup-row { padding: .4rem 0; border-bottom: 1px solid var(--border); }
.ang-setup-row:last-child { border-bottom: 0; }
.ang-setup-row select { width: 100%; }

.ang-swatch {
  display: inline-block; width: .6rem; height: .6rem; border-radius: 2px;
  margin-right: .45rem; vertical-align: baseline;
}

.ang-strip { display: flex; flex-direction: column; gap: .3rem; }
.ang-lane { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr);
  align-items: center; gap: .6rem; }
.ang-lane-name {
  font-size: .74rem; color: var(--dim); text-align: right;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ang-track {
  position: relative; height: 26px; border-radius: 5px;
  background: #121a2a; border: 1px solid var(--border); overflow: hidden;
}
.ang-lane-cut { margin-top: .45rem; }
.ang-lane-cut .ang-track { height: 34px; overflow: visible; cursor: crosshair; }

.ang-clip {
  position: absolute; top: 3px; bottom: 3px; border-radius: 3px;
  background: #3a4661; opacity: .85;
}

.ang-clip.off {
  background: repeating-linear-gradient(45deg, #1a2133 0 4px, #2b3344 4px 8px);
  border: 1px dashed #4b5878; opacity: .7;
}

.ang-shot {
  position: absolute; top: 0; bottom: 0; border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, .35); cursor: pointer;
  display: flex; align-items: center; overflow: hidden;
}
.ang-shot-label {
  font-size: .7rem; font-weight: 600; padding: 0 .4rem;
  color: #0b111d; white-space: nowrap;
}
.ang-shot.here { outline: 2px solid #fff; outline-offset: -2px; }

.ang-shot.pinned {
  background-image: repeating-linear-gradient(
    45deg, rgba(255, 255, 255, .28) 0 5px, transparent 5px 10px);
}

.ang-handle {
  position: absolute; top: -4px; bottom: -4px; width: 11px;
  margin-left: -5px; cursor: ew-resize; z-index: 3;
  background: linear-gradient(to right, transparent 4px,
    var(--text, #e8eefc) 4px, var(--text, #e8eefc) 7px, transparent 7px);
  opacity: .55;
}
.ang-handle:hover, .ang-handle.dragging { opacity: 1; }
.ang-head {
  position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: #fff; pointer-events: none; z-index: 4;
}
.ang-head.faint { opacity: .35; }

.ang-badge {
  position: absolute; left: .6rem; bottom: .6rem;
  background: rgba(8, 13, 22, .82); border: 1px solid var(--border);
  border-radius: 999px; padding: .2rem .6rem; font-size: .74rem;
}

.nav-count {
  margin-left: auto; min-width: 1.15rem; padding: .08rem .34rem;
  border-radius: 999px; background: var(--orange); color: #10182a;
  font-size: .68rem; font-weight: 700; text-align: center; line-height: 1.5;
}
.nav-item.has-count { color: var(--text); }

.msg { display: flex; flex-direction: column; gap: .6rem; }
.msg-head { display: flex; align-items: center; gap: .55rem; }
.msg-title { font-size: 1rem; font-weight: 650; margin: 0; }
.msg-kind { margin-left: auto; }

.msg-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--orange);
}
.msg.unread { border-color: #3a3a5c; }
.msg-body p { margin: 0 0 .7rem; line-height: 1.6; max-width: 72ch; }
.msg-body p:last-child { margin-bottom: 0; }
.msg-foot { display: flex; align-items: center; gap: .5rem; }
.msg-foot .ghost { margin-left: auto; }

.msg-foot .msg-actions { margin-left: auto; display: flex; gap: .4rem; }
.msg-foot .msg-actions .ghost { margin-left: 0; }

.msg.msg-closed { padding-top: .7rem; padding-bottom: .7rem; }
.msg.msg-dismissed { opacity: .72; }

.sc-box { display: flex; flex-direction: column; gap: .55rem; padding: .8rem; }
.sc-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: .5rem; }
.sc-times .field { margin: 0; }

.lk-swatch { position: relative; }
.lk-pro { position: absolute; top: .35rem; right: .35rem; padding: .05rem .4rem;
  border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  background: var(--accent, #ff8a3d); color: #111; }

.pro-tag { display: inline-block; margin-left: .4rem; padding: .02rem .38rem;
  border-radius: 999px; font-size: .66rem; font-weight: 700; letter-spacing: .04em;
  line-height: 1.3; vertical-align: middle; background: var(--accent, #ff8a3d); color: #111; }

.preset.cs-face { display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.6rem; padding: .35rem .8rem; }
.preset.cs-face img { height: 1.25rem; width: auto; display: block; }

.lib-pick { max-height: 14rem; overflow-y: auto; padding: .5rem; border-radius: .6rem;
  background: rgba(255, 255, 255, .03); }
.lib-pick .lib-row { display: flex; gap: .5rem; align-items: center; width: 100%;
  justify-content: flex-start; text-align: left; }
.lib-pick .lib-row .fn { flex: 1; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }

.prod { display: flex; flex-direction: column; gap: 1.25rem; }

.prod-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.prod-progress { display: flex; gap: .4rem; flex-wrap: wrap; margin-left: auto; }
.prod-pip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .6rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--dim); font-size: .78rem; cursor: pointer;
}
.prod-pip[disabled] { cursor: default; opacity: .55; }
.prod-pip.is-done { color: var(--muted); border-color: var(--border-soft); }
.prod-pip.is-on {
  color: var(--text); border-color: var(--orange); background: var(--card-hi);
}
.prod-pip-num {
  width: 1.15rem; height: 1.15rem; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--border); color: var(--text); font-size: .68rem;
}
.prod-pip.is-on .prod-pip-num { background: var(--orange); color: #1b0d03; }
.prod-pip.is-done .prod-pip-num { background: var(--orange-dim); }
@media (max-width: 720px) { .prod-pip-label { display: none; } }

.prod-q { margin-bottom: .25rem; }
.prod-q-title { font-size: 1.35rem; margin: 0 0 .2rem; }
.prod-q-note { color: var(--muted); margin: 0; font-size: .92rem; }

.prod-boxes {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.prod-box {
  text-align: left; cursor: pointer;
  padding: 1rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card);
  color: var(--text); transition: border-color .12s, background .12s, transform .12s;
}
.prod-box:hover { border-color: var(--border); background: var(--card-hi); }
.prod-box:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.prod-box.is-on {
  border-color: var(--orange); background: var(--card-hi);
  box-shadow: inset 0 0 0 1px var(--orange);
}
.prod-box-title { font-weight: 650; margin-bottom: .2rem; }
.prod-box-blurb { color: var(--muted); font-size: .85rem; line-height: 1.35; }

.prod-scroll {
  display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .5rem;
  scroll-snap-type: x proximity; scrollbar-width: thin;
}
.prod-chip {
  flex: 0 0 auto; width: 128px; cursor: pointer; scroll-snap-align: start;
  padding: .4rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--card); color: var(--text);
}
.prod-chip.is-on { border-color: var(--orange); background: var(--card-hi); }
.prod-chip:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.prod-chip-img {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 6px; display: block;
}
.prod-chip-blank { background: var(--bg-2); }
.prod-chip-title {
  font-size: .78rem; margin-top: .35rem; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.prod-toggle {
  display: flex; align-items: flex-start; gap: .6rem; width: 100%;
  text-align: left; cursor: pointer; padding: .8rem 1rem;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--card); color: var(--text);
}
.prod-toggle.is-on { border-color: var(--orange); background: var(--card-hi); }
.prod-toggle-dot {
  width: 1.05rem; height: 1.05rem; border-radius: 999px; margin-top: .15rem;
  border: 2px solid var(--border); flex: 0 0 auto;
}
.prod-toggle.is-on .prod-toggle-dot {
  border-color: var(--orange); background: var(--orange);
}
.prod-toggle-label { display: block; font-weight: 600; }
.prod-toggle-blurb { display: block; color: var(--muted); font-size: .84rem; }

.prod-sub { padding-top: .5rem; border-top: 1px solid var(--border-soft); }

.prod-clip {
  padding: 1rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card);
}
.prod-clip-time { color: var(--orange); font-size: .8rem; font-variant-numeric: tabular-nums; }
.prod-clip-text { margin-top: .3rem; }

.prod-summary {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); overflow: hidden;
}
.prod-summary-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem .9rem; border-bottom: 1px solid var(--border-soft);
}
.prod-summary-row:last-child { border-bottom: 0; }
.prod-summary-key { color: var(--muted); }
.prod-summary-val { text-align: right; }

.prod-weight {
  padding: .7rem .9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-2);
  color: var(--muted); font-size: .9rem;
}
.prod-weight.is-fast { border-color: var(--green); }
.prod-weight.is-moderate { border-color: var(--amber); }
.prod-weight.is-heavy { border-color: var(--orange); }
.prod-weight strong { color: var(--text); }

.prod-go { width: 100%; padding: .85rem; font-size: 1rem; }
.prod-recommended { width: 100%; }
.prod-foot { display: flex; gap: .6rem; justify-content: space-between; }
.prod-foot .btn { flex: 1; }

.btn.is-armed {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(248, 113, 113, .08);
}

.prod-note {
  padding: .6rem .8rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); border-left: 3px solid var(--amber);
  background: var(--bg-2); color: var(--muted); font-size: .88rem;
}
.prod-problem {
  padding: .6rem .8rem; border-radius: var(--radius-sm);
  border: 1px solid var(--danger); border-left: 3px solid var(--danger);
  background: rgba(248, 113, 113, .08); color: var(--text); font-size: .88rem;
}
