@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 500;
  font-stretch: normal;
  font-display: swap;
  src: url(/noto-hebrew-500.ttf) format('truetype');
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 700;
  font-stretch: normal;
  font-display: swap;
  src: url(/noto-hebrew-700.ttf) format('truetype');
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 800;
  font-stretch: normal;
  font-display: swap;
  src: url(/noto-hebrew-800.ttf) format('truetype');
}

/* Montage ג€” edit-suite UI. Layout: rail | panel | viewer | inspector over a full-width timeline.
   Mirrors with dir=rtl except the time axis, which always runs leftג†’right. */
:root {
  --bg0: #090B0E; --bg1: #0F1216; --bg2: #151920; --bg3: #1C212A; --bg4: #242A35;
  --line: #20262F; --line2: #2C3440;
  --text: #E8ECF1; --text2: #A4AEBB; --text3: #6B7685;
  --accent: #3D7BFF; --accent-h: #5A8FFF; --accent-soft: #3D7BFF26;
  --play: #FF4D4F; --wave: #2BD47F; --txt-clip: #7B5CFF; --vid-clip: #1E2A40; --warn: #FFB020; --ok: #2BD47F; --err: #FF5C5C;
  --ui: "IBM Plex Sans Hebrew", "IBM Plex Sans", system-ui, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 8px; --r-sm: 6px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body, #root { height: 100%; }
body { margin: 0; background: var(--bg0); color: var(--text); font: 13px/1.45 var(--ui); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:disabled { opacity: .35; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 4px; }
input, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--text3); } .sm { font-size: 11.5px; } .grow { flex: 1; } .ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hint { color: var(--text3); font-size: 12px; margin: 0 0 10px; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 10px; border: 2px solid var(--bg1); } ::-webkit-scrollbar-track { background: transparent; }

/* ---------- primitives ---------- */
.ib { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm); color: var(--text2); transition: background .12s, color .12s; }
.ib:hover:not(:disabled) { background: var(--bg3); color: var(--text); }
.ib.act { background: var(--accent-soft); color: var(--accent-h); }
.ib.on { color: var(--warn); }
.ib.sm { width: 24px; height: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: var(--r-sm); background: var(--bg4); color: var(--text); font-weight: 500; transition: background .12s, transform .06s; white-space: nowrap; text-decoration: none; }
.btn:hover:not(:disabled) { background: #2D3542; } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: #fff; } .btn.primary:hover { background: var(--accent-h); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line2); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; } .btn.wide { width: 100%; }
.chip { height: 26px; padding: 0 10px; border-radius: 99px; background: var(--bg3); color: var(--text2); font-size: 12px; }
.chip:hover { color: var(--text); } .chip.on { background: var(--accent-soft); color: var(--accent-h); box-shadow: inset 0 0 0 1px #3D7BFF66; }
.seg { display: inline-flex; background: var(--bg0); border-radius: var(--r-sm); padding: 2px; gap: 2px; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { height: 26px; padding: 0 10px; border-radius: 5px; color: var(--text2); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--bg4); color: var(--text); box-shadow: 0 1px 0 #ffffff0d inset; }
.in { width: 100%; height: 32px; padding: 0 10px; border-radius: var(--r-sm); background: var(--bg0); border: 1px solid var(--line2); outline: none; }
.in:focus { border-color: var(--accent); } .in.big { height: 42px; font-size: 15px; } .in.ta { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.4; }
.av { display: inline-grid; place-items: center; border-radius: 50%; color: #0B0D10; font-weight: 700; flex: none; box-shadow: 0 0 0 2px var(--bg1); }
.av.agent { color: #fff; }
.err { color: var(--err); font-size: 12px; }
.divider { height: 1px; background: var(--line); margin: 12px 0; }
.empty { display: grid; place-items: center; gap: 10px; text-align: center; padding: 28px 12px; color: var(--text3); } .empty p { margin: 0; max-width: 28ch; } .empty.sm { padding: 18px 8px; }

/* ---------- top bar ---------- */
.topbar { height: 48px; display: flex; align-items: center; gap: 8px; padding-inline: 12px; background: var(--bg1); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; letter-spacing: .01em; }
.brand b { font-weight: 700; } .linkish:hover b { color: var(--accent-h); }
.crumb { color: var(--text3); }
.pname { background: transparent; border: 1px solid transparent; border-radius: 6px; height: 30px; padding: 0 8px; font-weight: 600; font-size: 14px; min-width: 120px; max-width: 34vw; outline: none; }
.pname:hover { border-color: var(--line2); } .pname:focus { border-color: var(--accent); background: var(--bg0); }
.savest { color: var(--text3); font-size: 12px; font-family: var(--mono); } .savest.busy { color: var(--warn); }
.mode { margin-inline-end: 6px; }
.peers { display: flex; align-items: center; padding-inline: 6px; } .peers .av { margin-inline-start: -6px; } .meav { margin-inline-start: 6px; display: inline-flex; }
.langsw { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; border-radius: 6px; color: var(--text2); font-size: 12px; box-shadow: inset 0 0 0 1px var(--line2); }
.langsw:hover { color: var(--text); }

/* ---------- editor grid ---------- */
.editor { height: 100vh; display: grid; grid-template-columns: 64px 320px minmax(0, 1fr) 316px; grid-template-rows: 48px minmax(0, 1fr) var(--tl-h, 330px); grid-template-areas: "top top top top" "rail left view right" "tl tl tl tl"; }
.editor > .topbar { grid-area: top; }
.rail { grid-area: rail; background: var(--bg1); border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; padding: 8px 6px; overflow-y: auto; }
.rail button { position: relative; display: grid; place-items: center; gap: 3px; padding: 8px 2px 7px; border-radius: var(--r); color: var(--text3); font-size: 10.5px; line-height: 1.1; text-align: center; }
.rail button:hover { color: var(--text); background: var(--bg2); }
.rail button.on { color: var(--text); background: var(--bg3); }
.rail button.on::before { content: ""; position: absolute; inset-inline-start: -6px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--accent); }
.bub { position: absolute; top: 4px; inset-inline-end: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--play); color: #fff; font: 600 10px/16px var(--ui); font-style: normal; }
.bub.dim { background: var(--bg4); color: var(--text2); }
.left { grid-area: left; background: var(--bg1); border-inline-end: 1px solid var(--line); overflow: hidden; display: flex; min-height: 0; }
.right { grid-area: right; background: var(--bg1); border-inline-start: 1px solid var(--line); overflow: hidden; min-height: 0; }
.tl-wrap { grid-area: tl; position: relative; border-top: 1px solid var(--line); background: var(--bg1); min-height: 0; display: flex; }
.tl-resize { position: absolute; top: -4px; left: 0; right: 0; height: 8px; cursor: row-resize; z-index: 5; }
.tl-resize:hover { background: linear-gradient(transparent 3px, var(--accent) 3px, var(--accent) 5px, transparent 5px); }

/* ---------- panels ---------- */
.panel { flex: 1; overflow-y: auto; padding: 12px; min-width: 0; }
.ph { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; } .ph b { font-size: 13.5px; }
.search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: var(--r); background: var(--bg0); border: 1px solid var(--line2); color: var(--text3); }
.search:focus-within { border-color: var(--accent); } .search input { flex: 1; background: none; border: 0; outline: none; color: var(--text); min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.lib-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lcard { display: grid; gap: 6px; align-content: start; min-width: 0; }
.lthumb { position: relative; aspect-ratio: 16/9; border-radius: var(--r-sm); overflow: hidden; background: linear-gradient(135deg, var(--bg3), var(--bg2)); }
.lthumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.lcard:hover .lthumb img { transform: scale(1.04); }
.badge { position: absolute; bottom: 5px; inset-inline-end: 5px; background: #000000B3; color: #fff; font-size: 10.5px; padding: 1px 5px; border-radius: 4px; }
.lcard .ok { position: absolute; top: 5px; inset-inline-start: 5px; display: inline-flex; align-items: center; gap: 3px; background: #0A2A1A; color: var(--ok); font-size: 10.5px; padding: 1px 6px; border-radius: 4px; }
.lmeta { display: grid; gap: 1px; min-width: 0; } .lmeta b { font-weight: 500; font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .lmeta span { font-size: 10.5px; }
.lcard .btn { justify-self: start; }
.prog { position: absolute; inset: auto 0 0 0; height: 22px; background: #000000C0; display: flex; align-items: center; padding: 0 6px; font-size: 10.5px; color: #fff; }
.prog i { position: absolute; inset: auto auto 0 0; height: 3px; background: var(--accent); transition: width .4s; }
[dir="rtl"] .prog i { inset: auto 0 0 auto; }
.prog.inline { position: relative; height: 4px; padding: 0; border-radius: 3px; background: var(--bg3); overflow: hidden; } .prog.inline i { height: 4px; }
.m-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.mcard { display: grid; gap: 4px; cursor: grab; min-width: 0; } .mcard.busy { cursor: default; } .mcard b { font-weight: 500; font-size: 12px; }
.mthumb { position: relative; aspect-ratio: 16/9; border-radius: var(--r-sm); background: var(--bg3) center/cover no-repeat; box-shadow: inset 0 0 0 1px #ffffff10; }
.mcard:hover .mthumb { box-shadow: inset 0 0 0 2px var(--accent); }
.used { position: absolute; top: 6px; inset-inline-start: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--wave); box-shadow: 0 0 0 2px #0008; }
.addbtn { position: absolute; top: 5px; inset-inline-end: 5px; width: 26px; height: 26px; border-radius: 6px; background: var(--accent); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .12s; }
.mcard:hover .addbtn { opacity: 1; }
.tp-list { display: grid; gap: 10px; }
.tpre { display: grid; gap: 6px; text-align: start; } .tp-name { color: var(--text2); font-size: 12px; }
.tp-prev { position: relative; height: 74px; border-radius: var(--r); background: radial-gradient(120% 140% at 30% 20%, #23402B, #0E1A12 60%, #070A08); overflow: hidden; box-shadow: inset 0 0 0 1px #ffffff10; display: grid; }
.tpre:hover .tp-prev { box-shadow: inset 0 0 0 2px var(--accent); }
.tp-prev span { font-family: "Heebo", var(--ui); color: #fff; }
.p-headline .tp-prev span { align-self: start; justify-self: center; margin-top: 8px; background: #0B2545E6; padding: 4px 10px; font-weight: 800; font-size: 14px; border-radius: 4px; }
.p-lowerThird .tp-prev span { align-self: end; justify-self: start; margin: 0 10px 8px; background: #C8102ECC; padding: 3px 8px; font-weight: 700; font-size: 12px; }
.p-centerTitle .tp-prev span { place-self: center; font-weight: 800; font-size: 20px; text-shadow: 0 2px 6px #000a; }
.p-scoreBug .tp-prev span { align-self: start; justify-self: end; margin: 6px 8px; background: #000000B3; padding: 2px 8px; font-weight: 700; font-size: 11px; }
[dir="ltr"] .p-scoreBug .tp-prev span { justify-self: start; }
.p-breaking .tp-prev span { align-self: end; justify-self: stretch; background: #FFD400; color: #0B0D10; padding: 4px 10px; font-weight: 800; font-size: 13px; text-align: center; }
.compose { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: start; margin-bottom: 12px; }
.compose textarea { background: var(--bg0); border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 6px 8px; resize: none; outline: none; } .compose textarea:focus { border-color: var(--accent); }
.compose.row1 { grid-template-columns: 1fr auto; }
.tcx { color: var(--warn); font-size: 11px; padding-top: 6px; }
.clist { display: grid; gap: 6px; }
.citem, .vitem, .hitem { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border-radius: var(--r-sm); background: var(--bg2); cursor: pointer; }
.citem:hover { background: var(--bg3); } .cbody { flex: 1; min-width: 0; display: grid; gap: 2px; } .cbody p { margin: 0; color: var(--text2); }
.chead { display: flex; align-items: center; gap: 6px; } .chead b { font-weight: 600; font-size: 12px; }
.pitem { padding: 10px; border-radius: var(--r); background: var(--bg2); display: grid; gap: 6px; box-shadow: inset 3px 0 0 var(--accent); }
[dir="rtl"] .pitem { box-shadow: inset -3px 0 0 var(--accent); }
.pitem.s-accepted { box-shadow: none; opacity: .75; } .pitem.s-rejected, .pitem.s-stale { box-shadow: none; opacity: .55; }
.pitem p { margin: 0; color: var(--text2); } .ops { font-size: 11px; color: var(--text3); }
.pill { margin-inline-start: auto; font-size: 10.5px; padding: 1px 7px; border-radius: 99px; background: var(--bg4); }
.pill.s-pending { background: #3D7BFF33; color: var(--accent-h); } .pill.s-accepted { background: #2BD47F22; color: var(--ok); } .pill.s-rejected, .pill.s-stale { color: var(--text3); }
.acts { display: flex; gap: 6px; }
.hitem { cursor: default; padding: 6px 8px; background: transparent; border-bottom: 1px solid var(--line); border-radius: 0; } .hitem.undone, .hitem.dead { opacity: .45; text-decoration: line-through; }
.hitem .cbody b { font-size: 12px; font-weight: 600; }
.ritem { display: grid; gap: 6px; padding: 8px; border-radius: var(--r); background: var(--bg2); }
.ritem video { width: 100%; border-radius: 6px; background: #000; aspect-ratio: 16/9; }
.rmeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .rmeta .btn { margin-inline-start: auto; }
.rprog { display: grid; gap: 4px; margin: 10px 0; }

/* ---------- viewer ---------- */
.viewer { grid-area: view; display: grid; grid-template-rows: minmax(0, 1fr) 52px; background: var(--bg0); min-width: 0; min-height: 0; }
.stage { display: grid; place-items: center; padding: 14px 18px 6px; min-height: 0; overflow: hidden; container-type: size; }
.frame { position: relative; max-width: 100%; max-height: 100%; width: min(100cqw, calc(100cqh * 16 / 9)); background: #000; box-shadow: 0 0 0 1px #ffffff12, 0 18px 50px #0009; border-radius: 3px; overflow: hidden; }
.cv { display: block; width: 100%; height: 100%; cursor: pointer; }
.safe { position: absolute; inset: 0; pointer-events: none; }
.safe i, .safe b { position: absolute; border: 1px dashed #ffffff66; } .safe i { inset: 5%; } .safe b { inset: 10%; border-color: #FFB02088; }
.review-tag { position: absolute; top: 10px; inset-inline-start: 10px; display: inline-flex; gap: 6px; align-items: center; background: #FFB020; color: #111; font-weight: 600; font-size: 11.5px; padding: 3px 8px; border-radius: 5px; }
.transport { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 14px; border-top: 1px solid var(--line); background: var(--bg1); }
.tbtns { display: flex; align-items: center; gap: 4px; }
.play { width: 40px; height: 40px; border-radius: 50%; background: var(--text); color: var(--bg0); display: grid; place-items: center; margin: 0 6px; transition: transform .08s, background .12s; }
.play:hover { background: #fff; transform: scale(1.05); }
.tright { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.tc { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--text2); } .tc.big { font-size: 15px; color: var(--text); letter-spacing: .02em; } .tc.dim { color: var(--text3); margin-inline-start: 6px; }

/* ---------- inspector ---------- */
.insp { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.insp-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; min-width: 0; } .insp-head b { font-size: 13px; }
.dot { width: 10px; height: 10px; border-radius: 3px; flex: none; } .dot.t-video { background: var(--accent); } .dot.t-text { background: var(--txt-clip); } .dot.t-color { background: var(--warn); } .dot.t-audio { background: var(--wave); }
.tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.tabs button { padding: 8px 10px; color: var(--text3); font-size: 12.5px; position: relative; } .tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); } .tabs button.on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }
.insp-body { padding: 12px 14px 20px; overflow-y: auto; display: grid; gap: 10px; align-content: start; }
.row { display: grid; grid-template-columns: 86px 1fr; align-items: center; gap: 8px; } .row.col { grid-template-columns: 1fr; gap: 5px; } .row.two { grid-template-columns: 86px 1fr 1fr; }
.rl { color: var(--text2); font-size: 12px; }
.slider { grid-template-columns: 86px 1fr 52px; }
.slider .track { position: relative; height: 22px; display: flex; align-items: center; }
.slider .track[style] { height: 5px; border-radius: 4px; margin: 8px 0; }
.slider .track:not([style])::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 3px; background: var(--bg4); }
.slider .fill { position: absolute; height: 4px; border-radius: 3px; background: var(--accent); pointer-events: none; }
.slider input { position: absolute; inset: -8px 0; width: 100%; margin: 0; background: none; appearance: none; -webkit-appearance: none; cursor: pointer; }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #0006, 0 1px 3px #000; }
.slider input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.rv { font-family: var(--mono); font-size: 11.5px; color: var(--text2); text-align: end; font-variant-numeric: tabular-nums; }
.num { position: relative; display: block; } .num input { width: 100%; height: 28px; background: var(--bg0); border: 1px solid var(--line2); border-radius: 6px; padding: 0 22px 0 8px; font-family: var(--mono); font-size: 12px; outline: none; } .num input:focus { border-color: var(--accent); }
.num i { position: absolute; right: 8px; top: 6px; font-style: normal; font-size: 11px; color: var(--text3); }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text2); } .kv b { font-weight: 500; color: var(--text); min-width: 0; }
.sub { display: flex; align-items: center; justify-content: space-between; color: var(--text3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.looks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.look { display: grid; gap: 4px; justify-items: center; font-size: 10.5px; color: var(--text2); }
.lk { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 5px; background: linear-gradient(135deg, #2D6B3A, #C9A15A 55%, #1A2B4A); background-size: cover; overflow: hidden; box-shadow: inset 0 0 0 1px #ffffff14; }
.lk i { position: absolute; inset: 0; mix-blend-mode: soft-light; }
.look:hover .lk { box-shadow: inset 0 0 0 2px var(--accent); }
.sw { display: flex; gap: 6px; flex-wrap: wrap; } .sw button { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px #ffffff30; display: grid; place-items: center; color: var(--text3); }
.sw button.on { box-shadow: 0 0 0 2px var(--bg1), 0 0 0 4px var(--accent); }

/* ---------- timeline ---------- */
.tl { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.tl-bar { height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.tl-bar .grp { display: flex; align-items: center; gap: 4px; } .tl-bar .sep { width: 1px; height: 18px; background: var(--line2); margin: 0 4px; }
.tl-bar .lbl { color: var(--text3); font-size: 11.5px; margin-inline-end: 2px; }
.tl-bar .zoom { margin-inline-start: auto; } .tl-bar .zoom input { width: 140px; accent-color: var(--accent); }
.tl-body { flex: 1; display: flex; min-height: 0; }
.tl-heads { flex: none; background: var(--bg1); border-right: 1px solid var(--line); overflow: hidden; }
.tl-corner { display: flex; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--line); }
.thead { display: flex; align-items: center; gap: 2px; padding: 0 6px 0 10px; border-bottom: 1px solid var(--line); }
.tname { font: 600 11.5px var(--mono); color: var(--text2); width: 28px; }
.thead .ib { width: 26px; height: 26px; }
.thead.k-text .tname { color: #A893FF; } .thead.k-audio .tname { color: var(--wave); }
.tl-scroll { flex: 1; overflow: auto; position: relative; background: var(--bg0); }
.ruler { position: sticky; top: 0; z-index: 4; background: var(--bg1); border-bottom: 1px solid var(--line); cursor: ew-resize; }
.tick { position: absolute; bottom: 0; width: 1px; height: 5px; background: var(--line2); }
.tick.major { height: 11px; background: var(--text3); } .tick span { position: absolute; bottom: 12px; left: 3px; font: 10px var(--mono); color: var(--text3); white-space: nowrap; }
.cmark { position: absolute; top: 1px; transform: translateX(-6px); color: var(--warn); } .cmark:hover { color: #fff; }
.lane { position: relative; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(90deg, transparent 0 79px, #ffffff05 79px 80px); }
.lane.drop { background-color: #3D7BFF14; box-shadow: inset 0 0 0 1px #3D7BFF66; } .lane.locked { background-image: repeating-linear-gradient(135deg, transparent 0 8px, #ffffff06 8px 10px); } .lane.dim .clip { opacity: .45; }
.lanes-empty { padding: 30px; color: var(--text3); text-align: center; }
.clip { position: absolute; top: 3px; border-radius: 5px; overflow: hidden; background: var(--vid-clip); box-shadow: inset 0 0 0 1px #ffffff1c; cursor: grab; user-select: none; touch-action: none; }
.clip.t-text { background: linear-gradient(180deg, #7B5CFF, #5B3FE0); } .clip.t-color { background: var(--bg4); } .clip.t-audio { background: #0F2A1E; }
.clip.sel { box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--accent); z-index: 2; }
.clip.drag { opacity: .85; cursor: grabbing; z-index: 3; box-shadow: inset 0 0 0 2px var(--accent-h), 0 8px 24px #0009; }
.clip.blade { cursor: crosshair; }
.filmstrip { display: flex; overflow: hidden; } .filmstrip .tile { flex: none; background-repeat: no-repeat; border-right: 1px solid #0006; }
.wave { display: block; background: #0B1A13; }
.clabel { position: absolute; top: 2px; left: 4px; right: 4px; font-size: 11px; font-weight: 500; color: #fff; text-shadow: 0 1px 2px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; display: flex; align-items: center; gap: 4px; direction: ltr; unicode-bidi: plaintext; }
.clip.t-text .clabel { top: 50%; transform: translateY(-50%); text-shadow: none; }
.swatch { position: absolute; inset: 0; }
.trans { position: absolute; top: 0; bottom: 0; pointer-events: none; } .trans.in { left: 0; background: linear-gradient(90deg, #ffffff40, transparent); } .trans.out { right: 0; background: linear-gradient(270deg, #ffffff40, transparent); }
.trim { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; z-index: 2; } .trim.l { left: 0; } .trim.r { right: 0; }
.clip:hover .trim.l { background: linear-gradient(90deg, #FFD400, transparent); } .clip:hover .trim.r { background: linear-gradient(270deg, #FFD400, transparent); }
.peersel { position: absolute; bottom: 2px; right: 3px; font-size: 9.5px; padding: 0 4px; border-radius: 3px; color: #0B0D10; font-weight: 700; }
.playhead { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px solid var(--play); z-index: 6; pointer-events: none; }
.ph-head { position: sticky; top: 0; width: 13px; height: 14px; transform: translateX(-7px); background: var(--play); clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }
.peer-ph { position: absolute; top: 0; bottom: 0; border-left: 1px dashed; z-index: 5; pointer-events: none; opacity: .8; }
.peer-cur { position: absolute; z-index: 7; pointer-events: none; transition: left .08s linear, top .08s linear; }
.peer-cur span { position: absolute; left: 12px; top: 14px; color: #0B0D10; font-weight: 700; font-size: 11px; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.meter { flex: none; width: 44px; display: grid; grid-template-columns: 8px 8px 1fr; gap: 3px; padding: 36px 6px 10px; border-left: 1px solid var(--line); background: var(--bg1); }
.mbar { position: relative; background: #0A0C0F; border-radius: 2px; overflow: hidden; }
.mfill { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(0deg, var(--wave) 0 70%, #F5D50B 70% 88%, var(--play) 88%); background-size: 100% var(--mh, 100%); transition: height .05s linear; }
.mscale { display: flex; flex-direction: column; justify-content: space-between; font: 8.5px var(--mono); color: var(--text3); }

/* ---------- toasts ---------- */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 50; }
.toast { display: flex; align-items: center; gap: 14px; background: var(--bg3); color: var(--text); padding: 10px 14px; border-radius: var(--r); box-shadow: 0 10px 30px #000a, inset 0 0 0 1px #ffffff14; font-size: 13px; animation: tin .2s ease-out; }
.toast.ok { box-shadow: 0 10px 30px #000a, inset 3px 0 0 var(--ok); } .toast.err { box-shadow: 0 10px 30px #000a, inset 3px 0 0 var(--err); }
.toast button { color: var(--accent-h); font-weight: 600; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

/* ---------- login & projects ---------- */
.login { height: 100vh; display: grid; place-items: center; position: relative; overflow: hidden; background: radial-gradient(70% 60% at 50% 0%, #142240, var(--bg0) 70%); }
.login-art { position: absolute; inset: 0; opacity: .5; }
.login-art span { position: absolute; height: 26px; border-radius: 5px; background: linear-gradient(90deg, #1E2A40, #2A3B5C); box-shadow: inset 0 0 0 1px #ffffff12; top: 0; animation: drift 9s linear infinite; }
.login-art span:nth-child(3n) { background: linear-gradient(90deg, #5B3FE0, #7B5CFF); height: 18px; }
.login-art span:nth-child(4n) { background: #0F2A1E; box-shadow: inset 0 -8px 0 #2BD47F55; }
@keyframes drift { from { transform: translateY(105vh); } to { transform: translateY(-10vh); } }
@media (prefers-reduced-motion: reduce) { .login-art span { animation: none; } }
.login-card { position: relative; width: min(400px, calc(100vw - 32px)); display: grid; gap: 14px; padding: 28px; border-radius: 14px; background: #0F1216E8; backdrop-filter: blur(12px); box-shadow: 0 30px 80px #000c, inset 0 0 0 1px #ffffff14; }
.login-card .brand b { font-size: 22px; } .login-card p { margin: 0; }
.login-card .langsw { justify-self: center; }
.projects { height: 100vh; display: grid; grid-template-rows: 48px 1fr; overflow: hidden; }
.pj-main { overflow-y: auto; padding: 28px clamp(16px, 5vw, 64px); }
.pj-main h2 { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.pj-new { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; max-width: 900px; padding: 18px; border-radius: 12px; background: var(--bg1); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 30px; }
.pj-new h2 { grid-column: 1 / -1; margin: 0; }
.pj-new .seg button { height: 34px; } .ar { display: inline-block; height: 14px; border: 1.5px solid currentColor; border-radius: 2px; }
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pj-card { display: grid; gap: 4px; text-align: start; padding: 10px; border-radius: 12px; background: var(--bg1); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .12s, transform .12s; }
.pj-card:hover { box-shadow: inset 0 0 0 1px var(--accent); transform: translateY(-2px); }
.pj-thumb { width: 100%; aspect-ratio: 16/9; background-repeat: no-repeat; border-radius: 8px; display: grid; place-items: center; background: radial-gradient(90% 120% at 20% 10%, #1A2B4A, var(--bg0)); margin-bottom: 4px; }
.pj-card b { font-weight: 600; }
.loading { height: 100vh; display: grid; place-items: center; animation: pulse 1.2s ease-in-out infinite; } @keyframes pulse { 50% { opacity: .4; } }

@media (max-width: 1100px) { .editor { grid-template-columns: 56px 260px minmax(0, 1fr) 280px; } .rail button span { display: none; } }

.stage-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--text2); pointer-events: none; }
.stage-empty div { display: grid; gap: 10px; justify-items: center; max-width: 34ch; } .stage-empty b { color: var(--text); font-size: 15px; }
.stage-empty .keys { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; font-size: 11px; color: var(--text3); }
.stage-empty kbd { font: 11px var(--mono); padding: 1px 6px; border-radius: 4px; background: var(--bg3); color: var(--text2); box-shadow: inset 0 -1px 0 #0008; }

.compose.ai { grid-template-columns: 1fr; } .compose.ai textarea { width: 100%; min-height: 72px; resize: vertical; font: inherit; } .compose.ai .btn { justify-self: start; }

.rfail{display:flex;flex-direction:column;gap:6px;padding:10px 12px;margin:10px 0;border:1px solid #DB000066;background:#DB000014;border-radius:10px}
.rfail b{color:#ff6b6b}
.upl{cursor:pointer;margin-bottom:10px;justify-content:center}

/* ---------- brand panel ---------- */
.brandp .rl { display: block; margin: 12px 0 2px; font-size: 12px; color: var(--text3); }
.brandp .row.col { display: grid; gap: 4px; margin-top: 10px; } .brandp .in { height: 38px; }
.chip .sw { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 6px; vertical-align: middle; }
.bgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 14px; }
.btile { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border-radius: var(--r); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2); color: var(--text); text-align: start; }
.btile:hover { box-shadow: inset 0 0 0 1px var(--accent); } .btile:disabled { opacity: .5; } .btile b { font-weight: 500; font-size: 13px; }
.mob-only, .rail .mob-only, .grab, .scrim { display: none; }

/* ---------- phone: preview on top, timeline in the middle, a tool dock at the bottom, panels as sheets ---------- */
@media (max-width: 760px) {
  .editor { height: 100dvh; grid-template-columns: minmax(0, 1fr); grid-template-rows: 52px auto minmax(0, 1fr) calc(62px + env(safe-area-inset-bottom, 0px)); grid-template-areas: "top" "view" "tl" "rail"; }
  .mob-only, .rail .mob-only { display: inline-grid; }
  .topbar { gap: 6px; padding: 0 8px; }
  .topbar .brand, .topbar .crumb, .topbar .savest, .topbar .seg.mode, .topbar .peers, .topbar .langsw { display: none; }
  .topbar .pname { flex: 1; min-width: 0; font-size: 14px; }
  .topbar .grow { display: none; }
  .topbar [data-act="export"] { padding: 0 12px; }
  .viewer { padding: 6px 8px 0; }
  .viewer { grid-template-rows: auto 46px; }
  .viewer .stage { padding: 0; height: min(36dvh, calc((100vw - 16px) * 9 / 16)); }
  .stage-empty .keys { display: none; }
  .transport { padding: 4px 4px 6px; } .transport .tright { display: none; } .transport .tc.big { font-size: 15px; }
  .transport .tbtns .ib:first-child, .transport .tbtns .ib:last-child { display: none; }
  .tl-resize { display: none; }
  .rail { grid-area: rail; flex-direction: row; overflow-x: auto; overflow-y: hidden; border-inline-end: 0; border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); gap: 2px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail button { flex: 0 0 64px; padding: 6px 2px; }
  .rail button span { display: block; font-size: 10px; }
  .rail button.on::before { inset-inline-start: 12px; inset-inline-end: 12px; top: -6px; bottom: auto; width: auto; height: 3px; }
  .left, .right { position: fixed; z-index: 40; inset-inline: 0; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); height: min(66dvh, 560px); border: 0; border-top: 1px solid var(--line2); border-radius: 18px 18px 0 0; box-shadow: 0 -20px 60px -20px #000; transform: translateY(110%); transition: transform .28s cubic-bezier(.2,.9,.3,1); display: flex; flex-direction: column; }
  .editor.sheet-panel .left, .editor.sheet-inspector .right { transform: none; }
  .grab { display: grid; place-items: center; height: 22px; flex: 0 0 22px; width: 100%; } .grab i { width: 44px; height: 5px; border-radius: 3px; background: var(--line2); }
  .scrim { position: fixed; inset: 0; z-index: 39; background: #0008; }
  .editor:not(.sheet-panel):not(.sheet-inspector) .scrim { display: none; }
  .editor.sheet-panel .scrim, .editor.sheet-inspector .scrim { display: block; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .left .panel, .right > :not(.grab) { flex: 1; min-height: 0; overflow-y: auto; }
  .lib-grid, .m-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .toasts { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .meter { display: none; }
  .tl-heads { width: 44px !important; } .tl-heads .thead { padding: 0 4px; justify-content: center; } .tl-heads .thead .ib { display: none; }
  .tl-corner { padding: 0 4px; font-size: 10px; } .tl-corner .tc { font-size: 10px; }
  .tl-bar { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; } .tl-bar::-webkit-scrollbar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .left, .right { transition: none; } }

/* ---------- first-run guidance ---------- */
.guide { max-width: 900px; margin-bottom: 18px; }
.guide ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.guide li { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--bg1); box-shadow: inset 0 0 0 1px var(--line); }
.guide .gn { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; }
.guide b { display: flex; align-items: center; gap: 6px; font-size: 14px; } .guide p { margin: 4px 0 0; color: var(--text2); font-size: 13px; line-height: 1.5; }
.stage-empty .se-t { font-size: 22px; } .stage-empty { pointer-events: auto; background: radial-gradient(80% 90% at 50% 40%, #13213A, #000); }
.se-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@media (max-width: 760px) { .guide ol { grid-template-columns: minmax(0, 1fr); } .stage-empty .se-t { font-size: 17px; } .stage-empty span { display: none; } .se-acts .btn { height: 34px; padding: 0 10px; font-size: 12.5px; } }

/* Keep the viewer within its grid column even with a wide transport bar. */
.viewer { grid-template-columns: minmax(0, 1fr); }
.stage { min-width: 0; }
.transport { min-width: 0; overflow-x: auto; }

.insp-body { grid-template-columns: minmax(0, 1fr); }
.insp-body .row { grid-template-columns: 86px minmax(0, 1fr); }
.insp-body .row.two { grid-template-columns: 86px minmax(0, 1fr) minmax(0, 1fr); }
.insp-body .row.col { grid-template-columns: minmax(0, 1fr); }
.num { min-width: 0; }

/* Named layers remain readable in branded projects. */
.tname { flex:1; min-width:0; overflow:hidden; } .tname small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:10px var(--sans); } .tname b { font-weight:600; }

/* Additional mobile workspace. Project rendering and brand colors are unchanged. */
.mobile-workspace{--accent:#6E76FF;--line:#ffffff12;height:100dvh;grid-template-columns:minmax(0,1fr);grid-template-rows:52px minmax(180px,42dvh) minmax(0,1fr) calc(72px + env(safe-area-inset-bottom,0px));grid-template-areas:"top" "view" "tl" "rail";background:#050608}
.mobile-workspace>.rail{display:none}
.mobile-workspace .topbar{padding:0 10px;gap:6px}.mobile-workspace .topbar .brand,.mobile-workspace .topbar .crumb,.mobile-workspace .topbar .savest,.mobile-workspace .topbar .mode,.mobile-workspace .topbar .peers,.mobile-workspace .topbar .langsw,.mobile-workspace .topbar .grow{display:none}
.mobile-workspace .topbar .mob-only{display:inline-grid}.mobile-workspace .pname{flex:1;min-width:0;font-size:13px}.mobile-workspace .topbar .ib{min-width:36px;height:40px}.mobile-workspace [data-act=export]{min-height:40px;background:linear-gradient(135deg,#4C8DFF,#8B5CFF);padding:0 12px}
.mobile-workspace .viewer{padding:5px 10px 0;grid-template-rows:minmax(0,1fr) 48px;min-height:0}.mobile-workspace .viewer .stage{height:auto;padding:0;min-width:0;min-height:0}.mobile-workspace .frame{border-radius:12px}.mobile-workspace .transport{padding:4px;gap:5px}.mobile-workspace .transport .tc.big{font-size:13px}.mobile-workspace .transport .tright{display:flex}.mobile-workspace .transport .tright>.tc,.mobile-workspace .transport .tright>.ib:first-child{display:none}.mobile-workspace .transport .tbtns{gap:2px}.mobile-workspace .transport .tbtns>.ib:first-child,.mobile-workspace .transport .tbtns>.ib:last-child{display:none}.mobile-workspace .transport .play{width:40px;height:40px}
.mobile-dock{grid-area:rail;display:flex;direction:rtl;align-items:stretch;overflow-x:auto;gap:3px;padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px));background:linear-gradient(#151922ed,#090b10);border-top:1px solid #ffffff16;scrollbar-width:none;z-index:42}.mobile-dock button{flex:1 0 51px;min-width:0;border:0;background:transparent;color:#AEB6C4;border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;font:600 11px Heebo,sans-serif;min-height:52px}.mobile-dock button.accent{color:white;background:#6E76FF22}.mobile-dock button.ai{color:#D4FF3A}.mobile-dock button:active{background:#ffffff15}
.mobile-workspace .tl-resize,.mobile-workspace .meter{display:none}.mobile-workspace .tl-bar{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none;gap:8px;min-height:40px}.mobile-workspace .tl-bar .grp{flex:none}.mobile-workspace .tl-bar .ib{min-width:36px;min-height:36px}.mobile-workspace .tl-heads{width:76px!important}.mobile-workspace .thead{padding:0 5px}.mobile-workspace .thead .ib{display:none}.mobile-workspace .tname small{font-size:11px}.mobile-workspace .tl-corner{padding:0 3px}.mobile-workspace .tl-corner .tc{font-size:9px}.mobile-workspace .clip.sel{box-shadow:0 0 0 2px white,0 0 18px #4C8DFF50;z-index:3}.mobile-workspace .clip.sel .trim{width:16px;background:#ffffffdc;touch-action:none}.mobile-workspace .clip.sel .trim:after{content:"";position:absolute;top:25%;left:6px;height:50%;width:3px;border-radius:2px;background:#111}
.mobile-workspace .left,.mobile-workspace .right{position:fixed;z-index:45;inset-inline:0;top:auto;bottom:calc(72px + env(safe-area-inset-bottom,0px));width:auto;height:min(70dvh,620px);border:1px solid #ffffff17;border-radius:20px 20px 0 0;background:#0A0C10;box-shadow:0 -20px 60px #0009;transform:translateY(125%);transition:transform .2s;display:flex;flex-direction:column;visibility:hidden}.mobile-workspace.sheet-panel .left,.mobile-workspace.sheet-inspector .right{transform:none;visibility:visible}.mobile-workspace .grab{display:grid;place-items:center;min-height:28px;flex:0 0 28px;width:100%}.mobile-workspace .grab i{width:42px;height:4px;background:#69727F;border-radius:3px}.mobile-workspace .left .panel,.mobile-workspace .right>:not(.grab){flex:1;min-height:0;overflow-y:auto}.mobile-workspace .scrim{position:fixed;inset:0;bottom:calc(72px + env(safe-area-inset-bottom,0px));z-index:44;background:#0008}.mobile-workspace .btn{min-height:42px}.mobile-workspace input,.mobile-workspace textarea,.mobile-workspace select{font-size:16px}.mobile-workspace .lib-grid,.mobile-workspace .m-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-workspace .bgrid{grid-template-columns:repeat(3,minmax(0,1fr))}.mobile-workspace .btile{min-height:80px;border-radius:14px}.mobile-workspace .btile svg{color:#8B7FFF}.mobile-workspace .toasts{bottom:88px;z-index:60}
.mobile-shade{position:fixed;inset:0;border:0;background:#0009;z-index:46}.mobile-sheet{position:fixed;bottom:calc(72px + env(safe-area-inset-bottom,0px));inset-inline:0;max-height:70dvh;border-radius:20px 20px 0 0;background:#0A0C10;border:1px solid #ffffff1a;z-index:47;overflow:auto;padding:14px}.mobile-sheet>header{display:flex;align-items:center;justify-content:space-between;position:sticky;top:-14px;background:#0A0C10;padding:5px 0 12px}.mobile-captions{display:grid;gap:8px}.mobile-captions>button{border:1px solid #ffffff16;border-radius:12px;padding:12px;background:#151922;color:white;display:grid;grid-template-columns:80px 1fr;gap:8px;text-align:right;font:14px Heebo,sans-serif}.mobile-captions time{font:11px monospace;color:#AEB6C4;direction:ltr}.mobile-captions small{grid-column:2;color:#AD9BFF}.mobile-more{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mobile-workspace .insp-body .row{grid-template-columns:minmax(75px,auto) minmax(0,1fr)}
@media(min-width:700px) and (orientation:landscape){.mobile-workspace{grid-template-columns:minmax(260px,42%) minmax(0,1fr);grid-template-rows:48px minmax(0,1fr) 64px;grid-template-areas:"top top" "view tl" "rail rail"}.mobile-workspace .viewer{grid-template-rows:minmax(0,1fr) 44px}.mobile-dock{padding:3px 12px}.mobile-workspace .left,.mobile-workspace .right,.mobile-sheet{bottom:64px;inset-inline:15%;height:calc(100dvh - 112px);max-height:calc(100dvh - 112px)}.mobile-workspace .scrim{bottom:64px}}

.mobile-workspace{--bg0:#050608;--bg1:#0A0C10;--bg2:#12151B;--accent:#8960BD;--text:#FBFAF9}
.mobile-workspace .topbar [data-act=export]{background:#FBFAF9;color:#181A20;box-shadow:none}.mobile-dock button.ai{color:#C7B5E3}.mobile-dock button.accent{background:#FBFAF9;color:#141413}.mobile-workspace .mobile-dock{background:linear-gradient(#181A20ed,#090A0D)}
.connectop-brand{gap:14px!important}.brand-heading{display:flex;align-items:center;gap:12px}.brand-heading>div{display:grid;gap:3px}.brand-heading small{color:#9DA3AF;font-size:11px}.brand-word{font:900 18px 'Atlas DL 3.1 AAA',sans-serif;background:linear-gradient(90deg,#20B8CE,#8451B6,#C23790);background-clip:text;color:transparent}
.brand-tabs,.brand-sections{display:flex;gap:6px;overflow-x:auto;flex:none;padding:3px 0}.brand-tabs button,.brand-sections button{min-height:42px;white-space:nowrap;padding:8px 12px;border:1px solid #ffffff18;border-radius:14px;background:#171A20;color:#AEB6C4;font:600 13px Heebo,sans-serif;cursor:pointer}.brand-tabs button.on,.brand-sections button.on{background:#FBFAF9;color:#171A20}.brand-sections i{display:inline-block;width:8px;height:8px;border-radius:3px;margin-inline-end:6px}
.brand-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.brand-template-grid>button{padding:8px 6px 10px;display:grid;gap:7px;min-height:93px;border-radius:14px;border:1px solid #ffffff19;background:#16191F;color:#D9DDE5;font:600 12px Heebo,sans-serif;cursor:pointer}.brand-template-grid>button.on{border:2px solid #9C76CC;background:#271F32}.template-mini{height:42px;position:relative;display:block;background:linear-gradient(145deg,#253A3A,#18232D);border-radius:8px;overflow:hidden}.template-mini i{position:absolute;width:55%;height:8px;background:#FBFAF9;right:8px;bottom:10px}.template-mini b{position:absolute;width:25%;height:4px;background:linear-gradient(90deg,#29B6C8,#A64CAB);right:8px;bottom:5px}.template-mini em{position:absolute;width:12%;height:5px;background:#FBFAF9;right:5px;top:5px}.mini-opener i,.mini-closer i,.mini-endcard i{width:65%;right:17%;bottom:18px}.mini-caption i{width:80%;right:10%;height:6px}.mini-breaking i{width:100%;right:0;background:#8758B1}.mini-bug i,.mini-bug b{display:none}.mini-quote i{height:18px;width:80%;right:10%;bottom:12px}
.connectop-brand label{display:grid;gap:6px;font-size:13px}.connectop-brand input:not([hidden]),.connectop-brand select,.mobile-layers input{width:100%;border:1px solid #ffffff20;background:#171A20;color:white;border-radius:10px;padding:10px;font-size:16px;min-width:0}.brand-actions{display:flex;gap:7px;flex-wrap:wrap}.brand-actions>.btn{flex:1;white-space:normal}.brand-preview{display:grid;justify-items:center;gap:8px}.brand-preview canvas{max-height:280px;max-width:100%;width:auto;background:#111;border:1px solid #ffffff20;border-radius:12px}.brand-preview small{color:#AEB6C4}.brand-assets{display:grid;gap:7px}.brand-assets>button{min-height:58px;padding:10px;display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:8px;border:1px solid #ffffff15;background:#15181E;color:#E1E4EA;border-radius:12px;text-align:start;font:13px Heebo,sans-serif}.brand-assets>button.on{border-color:#AB85D6}.brand-assets small{color:#8E96A4}.asset-preview{display:grid;gap:10px;padding:12px;border-radius:14px;background:#1B1F26}.asset-preview img,.asset-preview video{max-height:270px;width:100%;object-fit:contain;border-radius:10px;background:repeating-conic-gradient(#262930 0% 25%,#191B21 0% 50%) 0/20px 20px}.asset-preview audio{width:100%}.brand-error{background:#3E1723;padding:10px;border-radius:10px;color:#FFDDE5}.brand-source{display:grid;gap:8px}.brand-source .btn{justify-content:space-between;white-space:normal;height:auto;min-height:46px;text-align:start}.connectop-brand .brand-upload{display:flex;align-items:center;justify-content:center;margin-top:8px;cursor:pointer}
.mobile-layers{display:grid;gap:8px}.mobile-layers details{background:#15181E;border:1px solid #ffffff18;border-radius:12px;padding:10px}.mobile-layers summary{cursor:pointer;min-height:42px}.mobile-layers summary b{display:block}.mobile-layers small{display:block;color:#929CAB}.layer-actions{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:8px}.layer-actions button{min-height:40px;border:1px solid #ffffff20;border-radius:9px;background:#242934;color:white;padding:6px 10px}.layer-clip{display:grid;grid-template-columns:80px minmax(0,1fr);gap:8px;width:100%;padding:11px 5px;background:none;color:white;border:0;border-top:1px solid #ffffff10;text-align:right;font:13px Heebo,sans-serif}.layer-clip time{direction:ltr;font:10px monospace}.layer-clip small{grid-column:2;color:#C8ADDF}.caption-io{display:flex;gap:8px;margin-bottom:12px}.caption-io .btn{flex:1;min-height:44px}.mobile-workspace .mcard .addbtn{opacity:1!important;display:grid!important;width:40px;height:40px}.mobile-workspace .in,.mobile-workspace select{max-width:100%}.mobile-workspace .insp-body .row.two{grid-template-columns:65px minmax(0,1fr) minmax(0,1fr)}.mobile-workspace .vitem{flex-wrap:wrap}.mobile-workspace .vitem .cbody{min-width:0}.mobile-workspace .sw button{width:32px;height:32px}.mobile-workspace .seg{flex-wrap:wrap}.mobile-workspace .topbar .pname{width:0}.mobile-workspace .num{width:100%}.mobile-workspace .inset{max-width:100%}
@media(max-height:500px) and (orientation:landscape){.mobile-workspace .left,.mobile-workspace .right,.mobile-sheet{inset-inline:5%;max-height:calc(100dvh - 96px);height:calc(100dvh - 96px)}.brand-template-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.brand-preview canvas{max-height:170px}}

.motion-controls { display:grid;gap:8px; } .motion-controls label {display:grid;gap:5px;margin:8px 0;} .motion-controls input,.motion-controls select {width:100%;padding:8px;background:#171A20;border:1px solid #ffffff22;color:white;border-radius:8px;} .motion-points{max-height:200px;overflow:auto;} .motion-points>div{display:flex;gap:6px;margin:5px 0;} .motion-points button{min-height:38px;background:#242934;color:white;border:0;border-radius:8px;padding:8px;} .motion-points button:first-child{flex:1;}

/* Mobile editing: reachable tools, unobscured preview, native proposal comparison. */
.canvas-drag{position:absolute;inset:0;touch-action:none;cursor:move;outline:1px dashed #ffffff80;outline-offset:-2px}
.canvas-tools,.proposal-preview-bar{position:absolute;bottom:6px;inset-inline:6px;display:flex;align-items:center;justify-content:center;gap:6px;z-index:4;background:#101217e8;border:1px solid #ffffff30;border-radius:12px;padding:6px;color:#fff;font-size:11px}
.canvas-tools button,.proposal-preview-bar button{min-width:40px;min-height:40px;background:#fbfaf9;color:#141414;border:0;border-radius:8px;padding:6px 9px}
.proposal-preview-bar{flex-wrap:wrap}.proposal-preview-bar b{flex-basis:100%;text-align:center}
.mobile-workspace .acts{display:flex;flex-wrap:wrap;gap:8px}.proposal-details p{overflow-wrap:anywhere;font-size:13px}
.mobile-workspace .mobile-dock button{flex:0 0 66px;min-height:54px}
.mobile-workspace .insp .tabs{overflow-x:auto;flex-shrink:0}.mobile-workspace .insp .tabs button{min-height:44px;flex-shrink:0}
.mobile-workspace .right .insp-body{overflow-x:hidden}.mobile-workspace .insp-body .seg{flex-wrap:wrap}
.mobile-workspace input[type=color]{min-width:48px;min-height:40px}
.mobile-workspace .transport .ib{min-width:38px;min-height:40px}
@media(orientation:portrait){
 .mobile-workspace .right{height:min(45dvh,430px)}
 .mobile-workspace.sheet-inspector .viewer{z-index:45;pointer-events:none}
 .mobile-workspace.sheet-inspector .viewer .transport{pointer-events:auto}
 .mobile-workspace.sheet-inspector .scrim{top:48dvh}
}
@media(prefers-reduced-motion:reduce){.mobile-workspace *{scroll-behavior:auto!important;transition:none!important}}

@media(min-width:700px) and (orientation:landscape){
 .mobile-workspace.sheet-inspector .right{inset:48px 42% 64px 0;height:auto;max-height:none;border-radius:14px 14px 0 0}
 .mobile-workspace.sheet-inspector .viewer{z-index:45}
 .mobile-workspace.sheet-inspector .scrim{right:42%}
}
.layer-actions{flex-wrap:wrap}.layer-actions button{min-height:42px}

.transcription-panel{padding:12px;border:1px solid #ffffff24;background:#12151b;border-radius:14px;margin-bottom:14px;color:#fbfaf9}
.transcription-panel h3{margin:0 0 8px}.transcription-panel label{display:grid;gap:6px;margin-bottom:10px;min-width:0}
.transcription-panel select,.transcription-panel textarea{width:100%;min-width:0;max-width:100%;padding:10px;background:#080a0e;border:1px solid #ffffff28;border-radius:8px;color:white;font:16px Heebo,sans-serif}
.transcription-panel progress{width:100%;accent-color:#8960bd}.transcription-review{max-height:280px;overflow:auto;overscroll-behavior:contain;margin:12px 0}
.transcription-review button{min-height:38px;text-align:start;background:transparent;color:#cbb9e4;border:0;direction:ltr}.transcription-panel .brand-actions{flex-wrap:wrap}.transcription-panel .brand-actions button{white-space:normal;min-height:44px}

/* קונקטופ panel */
.cx-panel .ph small{margin-inline-start:8px}
.cx-sec{padding:12px 14px;border-top:1px solid var(--line,#ffffff14);display:flex;flex-direction:column;gap:9px}
.cx-sec h4{margin:0;font-size:13px;font-weight:700;opacity:.9}
.cx-dim{margin:0;font-size:12px;opacity:.6;line-height:1.45}
.cx-err{color:#ff8a8a;font-size:12.5px;padding:0 14px}
.cx-l{display:flex;flex-direction:column;gap:5px;font-size:12px;opacity:.95}
.cx-l input{background:#0000003a;border:1px solid #ffffff22;border-radius:9px;padding:9px 11px;color:inherit;font:inherit;font-size:14px}
.cx-card{position:relative;background:#ffffffc4;color:#2F3034;border-radius:14px;padding:16px 14px 14px;margin-top:8px;box-shadow:0 8px 20px #0005;border-bottom:4px solid transparent;border-image:linear-gradient(90deg,#38833E,#C7D22E,#1AAFBE,#6474A8,#793A96,#BC3579,#F0535C) 1;font-family:"Atlas DL 3.1 AAA",Heebo,sans-serif}
.cx-kick{position:absolute;top:-11px;right:12px;background:linear-gradient(90deg,#6474A8,#793A96 45%,#BC3579 80%,#F0535C);color:#fff;font-size:11px;font-weight:700;padding:3px 10px;border-radius:99px}
.cx-t{font-weight:900;font-size:19px;line-height:1.1}.cx-t b{background:linear-gradient(270deg,#1AAFBE,#793A96 65%,#BC3579);-webkit-background-clip:text;background-clip:text;color:transparent}
.cx-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.cx-chips span{font-size:10.5px;background:#ffffff8c;border:1px solid #fff;border-radius:99px;padding:2px 8px}
.cx-icons{display:flex;flex-wrap:wrap;gap:6px}.cx-icons button{font:inherit;font-size:12px;padding:5px 10px;border-radius:99px;border:1px solid #ffffff26;background:transparent;color:inherit;cursor:pointer}.cx-icons button.on{background:#D4FF3A;color:#1a1d06;border-color:#D4FF3A}
.cx-fmts{display:grid;grid-template-columns:1fr 1fr;gap:6px;font-size:12.5px}.cx-fmts label{display:flex;gap:6px;align-items:center}
.cx-go{width:100%;justify-content:center}

/* canvas guides (layout contract zones) + drag-to-safe-zone */
.guides{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3}
.canvas-drag{z-index:2}
.guide-bar{position:absolute;top:8px;inset-inline:8px;z-index:5;display:flex;align-items:center;gap:8px;background:#101217e8;border:1px solid #ffffff30;border-radius:10px;padding:5px 9px;color:#fff;font-size:12px;pointer-events:auto}
.guide-bar .ok{color:#D4FF3A}.guide-bar .bad{color:#ff8a8a}.guide-bar i{font:11px "JetBrains Mono",monospace;opacity:.6;margin-inline-start:auto}
.guide-bar button{background:#D4FF3A;color:#1a1d06;border:0;border-radius:7px;padding:4px 9px;font:600 12px Heebo,sans-serif;cursor:pointer}
.guide-bar label{display:flex;gap:4px;align-items:center;opacity:.9}
.guide-bar em{font-style:normal;color:#8B7CFF;font-size:11px}
