@font-face { font-family: 'Archivo Black'; src: url(/fonts/ArchivoBlack_400Regular.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/Inter_400Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/Inter_600SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/Inter_800ExtraBold.ttf) format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Montserrat Black'; src: url(/fonts/Montserrat_900Black.ttf); }
@font-face { font-family: 'Anton'; src: url(/fonts/Anton_400Regular.ttf); }
@font-face { font-family: 'Courier Prime'; src: url(/fonts/CourierPrime_700Bold.ttf); font-weight: 700; }
@font-face { font-family: 'Inter ExtraBold'; src: url(/fonts/Inter_800ExtraBold.ttf); }
@font-face { font-family: 'Inter SemiBold'; src: url(/fonts/Inter_600SemiBold.ttf); }
@font-face { font-family: 'Bebas Neue'; src: url(/fonts/BebasNeue_400Regular.ttf); }
@font-face { font-family: 'Permanent Marker'; src: url(/fonts/PermanentMarker_400Regular.ttf); }
@font-face { font-family: 'Montserrat ExtraBold'; src: url(/fonts/Montserrat_800ExtraBold.ttf); }
@font-face { font-family: 'Oswald'; src: url(/fonts/Oswald_700Bold.ttf); font-weight: 700; }

:root {
  --ink: #12161C; --ink-2: #181E26; --ink-3: #212833; --ink-4: #2A3340; --line: #2E3846;
  --bone: #F4F1EA; --steel: #8A94A3; --amber: #FFB000; --amber-2: #FFC53D; --red: #E4473C; --green: #3BB273;
  --r: 10px; --head: 'Archivo Black', 'Inter', system-ui, sans-serif; --body: 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--bone); font: 15px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--amber); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--amber); color: var(--ink); }

.topbar { height: 56px; display: flex; align-items: center; gap: 22px; padding: 0 22px; border-bottom: 1px solid var(--line); background: var(--ink); position: sticky; top: 0; z-index: 20; }
.logo { font: 20px var(--head); letter-spacing: .06em; color: var(--bone); display: flex; align-items: center; gap: 10px; }
.logo b { color: var(--amber); font-weight: normal; }
.logo svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--steel); padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.nav a.on, .nav a:hover { color: var(--bone); background: var(--ink-3); }
.topbar .spacer { flex: 1; }
.who { color: var(--steel); font-size: 13px; }
main { min-height: calc(100vh - 56px); }
.page { max-width: 1180px; margin: 0 auto; padding: 34px 24px 80px; }
h1, h2, h3 { font-family: var(--head); font-weight: normal; letter-spacing: .01em; margin: 0; }
h1 { font-size: 30px; text-transform: uppercase; }
h2 { font-size: 18px; text-transform: uppercase; letter-spacing: .04em; }
.lead { color: var(--steel); margin: 8px 0 0; max-width: 640px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.muted { color: var(--steel); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line); background: var(--ink-3); color: var(--bone); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, transform .06s; }
.btn:hover { background: var(--ink-4); border-color: #3a4656; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn.primary:hover { background: var(--amber-2); }
.btn.danger { color: #ff8b82; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--steel); }
.btn.ghost:hover { color: var(--bone); background: var(--ink-3); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 7px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 12px; color: var(--steel); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.input, select.input, textarea.input { height: 42px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--ink-2); outline: none; width: 100%; }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,176,0,.15); }
.seg { display: inline-flex; background: var(--ink-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 11px; border-radius: 7px; color: var(--steel); cursor: pointer; font-weight: 600; font-size: 13px; }
.seg button.on { background: var(--ink-4); color: var(--bone); }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--ink-4); color: var(--steel); }
.badge.ok { color: #8be0a9; background: rgba(59,178,115,.14); }
.badge.warn { color: var(--amber); background: rgba(255,176,0,.12); }
.badge.err { color: #ff8b82; background: rgba(228,71,60,.14); }
.bar { height: 6px; background: var(--ink-4); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--amber); width: 0; transition: width .3s; }
.empty { text-align: center; padding: 60px 20px; color: var(--steel); border: 1px dashed var(--line); border-radius: 14px; }

.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth .art { background: radial-gradient(1200px 600px at -10% 110%, rgba(255,176,0,.18), transparent 60%), var(--ink-2); border-right: 1px solid var(--line); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth .art .claim { font: 54px/1.02 var(--head); text-transform: uppercase; }
.auth .art .claim em { font-style: normal; color: var(--amber); }
.auth .art .demo { display: inline-block; font: 26px var(--head); text-transform: uppercase; padding: 6px 12px; }
.auth .art .demo span { color: var(--amber); }
.auth form { align-self: center; justify-self: center; width: min(380px, 90vw); }
.auth form h1 { margin-bottom: 18px; }
.err { color: #ff8b82; font-size: 14px; min-height: 20px; margin: 4px 0 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin-top: 26px; }
.pcard { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; transition: border-color .12s, transform .12s; position: relative; }
.pcard:hover { border-color: #46546a; transform: translateY(-2px); }
.pcard .th { aspect-ratio: 9/12; background: #0b0e12 center/cover no-repeat; position: relative; }
.pcard .th .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.7); font-size: 12px; padding: 2px 7px; border-radius: 6px; }
.pcard .meta { padding: 12px 14px 14px; }
.pcard .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .del { position: absolute; top: 8px; right: 8px; opacity: 0; }
.pcard:hover .del { opacity: 1; }
.drop { border: 2px dashed var(--line); border-radius: 16px; padding: 38px 24px; text-align: center; background: var(--ink-2); transition: border-color .15s, background .15s; cursor: pointer; }
.drop.over { border-color: var(--amber); background: rgba(255,176,0,.06); }
.drop .big { font: 22px var(--head); text-transform: uppercase; margin-bottom: 6px; }
.upload { margin-top: 24px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.tpls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tpl { border: 1px solid var(--line); border-radius: 10px; background: #0d1116; height: 64px; display: grid; place-items: center; cursor: pointer; padding: 4px; text-align: center; position: relative; overflow: hidden; }
.tpl.on { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(255,176,0,.35); }
.tpl .s { font-size: 15px; line-height: 1.1; }
.tpl .n { position: absolute; left: 6px; bottom: 3px; font-size: 10px; color: var(--steel); text-transform: uppercase; letter-spacing: .06em; }

.ed { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(380px, 470px); grid-template-rows: auto 1fr auto; height: calc(100vh - 56px); }
.ed-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.ed-head .title { font: 18px var(--head); background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 4px 8px; min-width: 120px; max-width: 46vw; text-transform: uppercase; }
.ed-head .title:hover, .ed-head .title:focus { border-color: var(--line); outline: none; }
.saved { font-size: 13px; color: var(--steel); }
.saved.dirty { color: var(--amber); }
.stage-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px; min-height: 0; background: #0b0e12; }
.stage { position: relative; max-height: 100%; max-width: 100%; height: calc(100vh - 56px - 58px - 150px - 70px); aspect-ratio: var(--ar, 9/16); background: #000; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.stage video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.stage canvas.JASSUB { z-index: 2; }
.stage .fallback { position: absolute; left: 6%; right: 6%; transform: translateY(-50%); text-align: center; z-index: 2; pointer-events: none; }
.safe { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.safe i { position: absolute; background: repeating-linear-gradient(135deg, rgba(228,71,60,.28) 0 6px, rgba(228,71,60,.12) 6px 12px); border: 1px dashed rgba(255,139,130,.7); }
.safe .lbl { position: absolute; top: 6px; left: 6px; font-size: 11px; background: rgba(0,0,0,.6); padding: 2px 6px; border-radius: 5px; }
.transport { display: flex; align-items: center; gap: 12px; margin-top: 14px; width: 100%; max-width: 560px; justify-content: center; flex-wrap: wrap; }
.transport .time { font-variant-numeric: tabular-nums; color: var(--steel); font-size: 13px; min-width: 96px; text-align: center; }
.play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--amber); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.side { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--ink-2); }
.tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 8px; }
.tabs button { background: none; border: 0; padding: 13px 12px 11px; color: var(--steel); font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--bone); border-bottom-color: var(--amber); }
.panel { overflow: auto; padding: 16px; flex: 1; min-height: 0; }
.tools { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pg { padding: 8px 10px; border-radius: 9px; margin-bottom: 6px; border: 1px solid transparent; line-height: 2; }
.pg.now { background: rgba(255,176,0,.06); border-color: rgba(255,176,0,.25); }
.pg .tc { font-size: 11px; color: var(--steel); margin-right: 6px; font-variant-numeric: tabular-nums; cursor: pointer; }
.w { padding: 2px 3px; border-radius: 5px; cursor: pointer; transition: background .1s; }
.w:hover { background: var(--ink-4); }
.w.sel { background: var(--amber); color: var(--ink); }
.w.act { text-decoration: underline 2px var(--amber); text-underline-offset: 4px; }
.w.hid { color: #5d6776; text-decoration: line-through; }
.w.emph { color: #ff8b82; font-weight: 700; }
.w.low { border-bottom: 2px dotted rgba(255,176,0,.6); }
.w.fixed { box-shadow: inset 0 -2px 0 rgba(59,178,115,.7); }
.wedit { position: sticky; bottom: -16px; margin: 12px -16px -16px; padding: 12px 16px; background: var(--ink-3); border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wedit .input { height: 36px; flex: 1; min-width: 140px; }
.ctrl { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; margin-bottom: 12px; font-size: 14px; }
.ctrl label { color: var(--steel); font-size: 13px; }
.ctrl input[type=range] { width: 100%; accent-color: var(--amber); }
.ctrl input[type=color] { width: 44px; height: 32px; border: 1px solid var(--line); border-radius: 7px; background: var(--ink-2); padding: 2px; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.timeline { grid-column: 1 / -1; border-top: 1px solid var(--line); background: var(--ink-2); height: 132px; display: flex; flex-direction: column; }
.tl-bar { display: flex; align-items: center; gap: 10px; padding: 6px 12px; font-size: 12px; color: var(--steel); }
.tl-scroll { position: relative; overflow-x: auto; overflow-y: hidden; flex: 1; cursor: text; }
.tl-inner { position: relative; height: 100%; }
.tl-ruler { position: absolute; top: 0; left: 0; right: 0; height: 18px; border-bottom: 1px solid var(--line); }
.tl-ruler span { position: absolute; top: 2px; font-size: 10px; color: var(--steel); transform: translateX(3px); }
.tl-ruler span::before { content: ''; position: absolute; left: -3px; top: -2px; height: 6px; border-left: 1px solid var(--line); }
.tl-w { position: absolute; top: 30px; height: 40px; background: var(--ink-4); border: 1px solid #3a4656; border-radius: 6px; font-size: 12px; padding: 0 6px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; cursor: pointer; user-select: none; }
.tl-w.sel { border-color: var(--amber); background: rgba(255,176,0,.18); }
.tl-w.hid { opacity: .35; }
.tl-w .hd { position: absolute; top: 0; bottom: 0; width: 7px; cursor: ew-resize; }
.tl-w .hd.l { left: 0; } .tl-w .hd.r { right: 0; }
.tl-w .hd:hover { background: rgba(255,176,0,.5); }
.tl-pages { position: absolute; top: 76px; height: 14px; left: 0; right: 0; }
.tl-pages i { position: absolute; height: 6px; top: 4px; background: rgba(255,176,0,.35); border-radius: 3px; }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--amber); z-index: 5; pointer-events: none; }
.playhead::before { content: ''; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top-color: var(--amber); }
.proc { max-width: 520px; margin: 12vh auto; text-align: center; }
.proc h2 { margin: 16px 0 10px; }
.spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--ink-4); border-top-color: var(--amber); animation: sp 0.9s linear infinite; margin: 0 auto; }
@keyframes sp { to { transform: rotate(360deg); } }
.exp { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
table.t { width: 100%; border-collapse: collapse; margin-top: 18px; }
table.t th { text-align: left; font-size: 12px; color: var(--steel); text-transform: uppercase; letter-spacing: .07em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--ink-4); border-radius: 6px; padding: 2px 8px; margin: 2px 4px 2px 0; font-size: 13px; }
.chip button { border: 0; background: none; color: var(--steel); cursor: pointer; padding: 0 0 0 2px; }
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; align-items: center; }
.toast { background: var(--bone); color: var(--ink); padding: 10px 14px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.4); display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 14px; animation: tin .18s ease-out; }
.toast.err { background: #ffd9d5; }
.toast button { background: var(--ink); color: var(--amber); border: 0; border-radius: 7px; padding: 6px 10px; font-weight: 700; cursor: pointer; }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; background: rgba(5,7,10,.7); display: grid; place-items: center; z-index: 90; }
.modal { width: min(440px, 92vw); }
.kbd { font-size: 11px; border: 1px solid var(--line); border-bottom-width: 2px; padding: 0 5px; border-radius: 4px; color: var(--steel); }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; } .auth .art { display: none; }
  .upload { grid-template-columns: 1fr; }
  .topbar { gap: 10px; padding: 0 12px; } .logo > span { display: none; } .nav { margin-left: 0; } .nav a { padding: 7px 8px; } .who { display: none; }
  .page { padding: 22px 14px 60px; } h1 { font-size: 24px; }
  .ed-head { flex-wrap: wrap; padding: 8px 10px; gap: 6px; } .ed-head .title { max-width: 60vw; font-size: 15px; }
  .stage-wrap { padding: 10px; } .transport { gap: 8px; }
  .tpls { grid-template-columns: repeat(4, 1fr); } .ctrl { grid-template-columns: 100px 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ed { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; height: auto; }
  .stage { height: 62vh; }
  .side { border-left: 0; border-top: 1px solid var(--line); min-height: 60vh; }
  .timeline { height: 120px; }
}

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); display: inline-block; }
.rec { position: fixed; inset: 0; z-index: 60; background: #000; overflow: hidden; }
.rec-cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.rec-cam.mirror { transform: scaleX(-1); }
.rec video[controls] { object-fit: contain; }
.rec-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; z-index: 3; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.rec-icon { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(18,22,28,.65); color: var(--bone); font-size: 18px; display: grid; place-items: center; cursor: pointer; text-decoration: none; }
.rec-icon.on { background: var(--amber); color: var(--ink); }
.rec-timer { font: 16px var(--head); background: rgba(0,0,0,.5); padding: 4px 12px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.rec.recording .rec-timer { background: var(--red); }
.prompt { position: absolute; left: 0; right: 0; top: calc(64px + env(safe-area-inset-top)); height: 36%; overflow: hidden; z-index: 2; padding: 0 22px;
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.35) 75%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 80%, transparent); }
.prompt-text { color: #fff; font-weight: 800; line-height: 1.3; text-align: center; padding-top: 30%; white-space: pre-wrap; text-shadow: 0 2px 6px rgba(0,0,0,.6); will-change: transform; }
.rec-count { position: absolute; inset: 0; display: grid; place-items: center; font: 140px var(--head); color: #fff; z-index: 4; text-shadow: 0 6px 30px rgba(0,0,0,.6); }
.rec-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px calc(26px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 3; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.rec-status { color: #fff; font-weight: 600; text-align: center; max-width: 320px; }
.rec-btn { width: 78px; height: 78px; border-radius: 50%; border: 5px solid #fff; background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.rec-btn i { width: 58px; height: 58px; border-radius: 50%; background: var(--red); transition: all .2s; }
.rec.recording .rec-btn i { width: 30px; height: 30px; border-radius: 7px; }
.rec-review { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--ink-2); border-top: 1px solid var(--line); padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); }
.rec-sheet { position: absolute; inset: 0; z-index: 6; background: rgba(5,7,10,.75); display: grid; place-items: center; padding: 16px; }
.rec-sheet .card { width: min(520px, 100%); }
.rec-sheet textarea { min-height: 200px; margin-top: 12px; }
.stage video.broll { position: absolute; inset: 0; z-index: 1; object-fit: cover; }
.modal.wide { width: min(640px, 94vw); max-height: 90vh; overflow-y: auto; }
.note { background: rgba(255,176,0,.1); border: 1px solid rgba(255,176,0,.35); color: var(--bone); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin: 10px 0; }
.note a { color: var(--amber); }
.sub { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--steel); margin: 18px 0 4px; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amber { color: var(--amber); }
.brow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.brow.sel { background: rgba(255,176,0,.07); }
.bthumb { width: 46px; height: 64px; object-fit: cover; border-radius: 6px; background: #000; cursor: pointer; flex: none; }
.bmeta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bmeta a { color: var(--bone); }
.input.num { width: 70px; padding: 5px 6px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; max-height: 46vh; overflow-y: auto; }
.pv { position: relative; border: 2px solid transparent; border-radius: 8px; padding: 0; background: #000; cursor: pointer; aspect-ratio: 9/16; overflow: hidden; }
.pv:hover { border-color: var(--amber); }
.pv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv span { position: absolute; right: 4px; bottom: 4px; font-size: 11px; background: rgba(0,0,0,.65); color: #fff; padding: 1px 5px; border-radius: 4px; }
.cut-est { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; background: var(--ink-3, #1b212a); border-radius: 8px; padding: 12px; }
.cut-est div { display: flex; flex-direction: column; } .cut-est b { font-size: 18px; } .cut-est .arrow { color: var(--steel); font-size: 18px; }
.steps { padding-left: 20px; line-height: 1.7; } .steps a { color: var(--amber); }
.timeline { height: 156px; }
.tl-b { position: absolute; top: 94px; height: 18px; background: rgba(255,176,0,.55); border: 1px solid var(--amber); color: var(--ink); font-size: 10px; font-weight: 700; border-radius: 4px; padding: 0 5px; overflow: hidden; white-space: nowrap; cursor: grab; user-select: none; }
.tl-b.sel { background: var(--amber); box-shadow: 0 0 0 2px rgba(255,176,0,.35); }
@media (max-width: 900px) { .timeline { height: 146px; } }
body.rec-mode { overflow: hidden; }
body.rec-mode .topbar { display: none; }
.pv.crop::after { content: '↔'; position: absolute; left: 4px; top: 4px; font-size: 11px; background: rgba(0,0,0,.6); color: #fff; padding: 0 4px; border-radius: 4px; }
details summary { cursor: pointer; }
@media (max-width: 420px) { .nav a { padding: 7px 6px; font-size: 13px; } .topbar { gap: 6px; } }
@media (max-width: 900px) { .ed { grid-template-columns: minmax(0, 1fr); } .ed > * { min-width: 0; } }
.tabs { overflow-x: auto; scrollbar-width: none; } .tabs button { white-space: nowrap; flex: none; }
