/* מחולל הווידאו: the layouts of the pages (the look itself is theme.css). */

/* the page's sections, one under the other with air between them (the kit shell's <main> is a plain block) */
main.main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; }

/* ---------------------------------------------------------------- home: what to publish, the three ways */
.pick-content .sec-head { margin-bottom: 10px; padding-inline: 6px; }
.content-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.content-chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 9px 16px; font-weight: 600;
  font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.content-chip svg { width: 16px; height: 16px; color: var(--muted); }
.content-chip:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.content-chip[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 20px -12px rgba(224, 24, 42, .9); }
.content-chip[aria-pressed="true"] svg { color: #fff; }

.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.way { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 22px; min-height: 300px;
  border-radius: var(--r); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); border: 1px solid var(--edge);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.way:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: rgba(224, 24, 42, .5); }
.way.off { opacity: .55; }
.way-ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.way-ic svg { width: 23px; height: 23px; }
.way-badge { position: absolute; top: 22px; inset-inline-end: 20px; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 99px;
  background: var(--surface-2); color: var(--muted); }
.way-edit .way-badge { background: var(--grad); color: #fff; inset-inline-end: 38px; }
.way-title { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1.05; margin-top: 10px; }
.way-sub { color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 34ch; }
.way-note { color: var(--muted); font-size: 12.5px; }
.way-go { margin-top: auto; padding-top: 10px; display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--accent); }
.way-go svg { width: 17px; height: 17px; }
.way-template { padding-inline-end: 160px; }
.way-preview { position: absolute; inset-inline-end: 22px; top: 50%; transform: translateY(-46%) rotate(-3deg); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 44px -18px rgba(0, 0, 0, .9), 0 0 0 5px #0d0d10, 0 0 0 6px rgba(255, 255, 255, .1); line-height: 0; transition: transform .3s ease; }
a.way-template:hover .way-preview { transform: translateY(-48%) rotate(0deg) scale(1.03); }
.mini-preview { display: block; height: auto; background: #000; }
.way-skel { height: 300px; border-radius: var(--r); }

.nudge { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 18px; border-color: rgba(240, 195, 92, .28); }
.nudge h2 { margin: 0 0 4px; font-size: 18px; }
.nudge p { margin: 0; color: var(--muted); font-size: 14px; max-width: 640px; }

/* AI video: the storyboard and its price, before any credit */
.plan-card { display: grid; gap: 12px; border-color: rgba(224, 24, 42, .35); }
.plan-cost { background: rgba(224, 24, 42, .16); color: #ff8a92; font-size: 14px; padding: 6px 14px; }
.plan-text { margin: 0; max-height: 360px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; direction: rtl; text-align: right;
  font: 14px/1.6 var(--body); background: var(--surface-2); border-radius: 16px; padding: 14px 16px; }
.nudge-ic { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); flex: none; }
.nudge-ic svg { width: 24px; height: 24px; }

/* ---------------------------------------------------------------- posters (the works) */
.poster-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 16px 14px; }
.poster-tile { display: grid; gap: 8px; align-content: start; text-decoration: none; color: inherit; min-width: 0; }
.poster { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; display: grid; background: linear-gradient(160deg, #1e1e23, #09090b);
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, outline-color .2s; outline: 1px solid transparent; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-empty { display: grid; place-items: center; align-content: center; gap: 6px; color: #8e8a83; }
.poster-empty svg { width: 30px; height: 30px; }
.poster-empty small { font-size: 12px; }
.poster .chip.st { position: absolute; top: 8px; inset-inline-start: 8px; background: rgba(8, 8, 10, .62); color: #f2efea; backdrop-filter: blur(6px); font-size: 11.5px; }
.poster .chip.st.good { color: #8de8b8; } .poster .chip.st.warn { color: #f5cf73; } .poster .chip.st.bad { color: #ff9aa2; } .poster .chip.st.accent { color: #ffb3b9; }
.poster-fmt { position: absolute; bottom: 8px; inset-inline-end: 8px; font-size: 11px; color: rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .5); padding: 2px 8px; border-radius: 99px; }
a.poster-tile:hover .poster { transform: translateY(-2px); box-shadow: var(--shadow-lift); outline-color: rgba(224, 24, 42, .55); }
.poster-tile .meta { display: grid; gap: 1px; min-width: 0; padding-inline: 2px; }
.poster-tile .meta b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-tile .meta small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-skel { aspect-ratio: 9 / 16; border-radius: 18px; }
.tile-row { display: flex; flex-wrap: wrap; gap: 6px; }
.in-trash .poster { filter: grayscale(.6) brightness(.8); }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.field.inline { display: flex; align-items: center; gap: 10px; }
.field.inline select { width: auto; min-width: 180px; padding-block: 8px; }
.small-note { font-size: 13.5px; margin: 0 0 14px; }

/* ---------------------------------------------------------------- the templates */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.tpl-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px; border-radius: var(--r); background: var(--surface);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow); border: 1px solid var(--edge); transition: transform .2s, box-shadow .2s, border-color .2s; }
.tpl-card:hover, .tpl-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: rgba(224, 24, 42, .5); }
.tpl-screen { position: relative; width: 112px; border-radius: 14px; overflow: hidden; line-height: 0; box-shadow: 0 0 0 4px #0d0d10, 0 0 0 5px rgba(255, 255, 255, .09), 0 18px 34px -16px rgba(0, 0, 0, .9); }
.tpl-screen .mini-preview { width: 112px !important; }
.tpl-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; opacity: .9; transition: opacity .2s; pointer-events: none; }
.tpl-play svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .8)); }
.tpl-card:hover .tpl-play { opacity: 0; }
.tpl-meta { display: grid; gap: 6px; align-content: start; min-width: 0; }
.tpl-meta .chip { width: fit-content; }
.tpl-meta b.display { font-size: 30px; line-height: 1.05; }
.tpl-meta small { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.tpl-lengths { font-size: 12px !important; }
.sec-title { margin: 10px 6px 0; font-size: 17px; color: var(--muted); font-weight: 600; }
.biz-select { width: auto; min-width: 170px; padding-block: 8px; }

/* the business's own templates: the studio's card, a badge on the screen, rename / trash under the text */
.sec-title.own-title { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.sec-title.own-title svg { width: 18px; height: 18px; color: var(--accent); }
.tpl-card.own { position: relative; border-color: color-mix(in srgb, var(--accent) 30%, var(--edge)); }
.tpl-card.own:hover, .tpl-card.own:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: rgba(224, 24, 42, .5); }
.tpl-cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tpl-cover:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tpl-badge { position: absolute; top: 8px; inset-inline-start: 8px; padding: 3px 9px; border-radius: 99px; background: var(--grad); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: .02em; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .8); }
.tpl-acts { position: relative; z-index: 2; display: flex; gap: 4px; margin-top: 4px; }
.tpl-acts .icon-btn { width: 34px; height: 34px; background: var(--surface-2); }
.tpl-acts .icon-btn:hover { background: var(--surface-3); }
.ref-nudge { border-color: rgba(224, 24, 42, .3); }
.ref-nudge .nudge-ic { background: var(--accent-soft); color: var(--accent); }
.ref-nudge .grow { flex: 1 1 240px; }
.mini-title { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.mini-title svg { width: 15px; height: 15px; }

.back-link { color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; width: fit-content; }
.back-link:hover { color: var(--ink); }
.back-link svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- the editor */
.ed-head { display: grid; gap: 8px; padding: 0 6px; }
.ed-title { display: grid; gap: 6px; }
.title-input { border: 0 !important; background: transparent !important; padding: 0 !important; font-size: clamp(30px, 4.4vw, 46px) !important; color: var(--ink); border-radius: 0 !important; }
.title-input:focus { box-shadow: 0 2px 0 var(--accent); }
.ed-sub { font-size: 13.5px; gap: 8px; }
.save-state { margin-inline-start: 6px; padding: 2px 10px; border-radius: 99px; background: var(--surface-2); font-size: 12px; }
.bad-text { color: var(--bad); }
.editor { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 22px; align-items: start; }
.ed-preview { position: sticky; top: 14px; display: grid; gap: 12px; }
.ed-export { display: grid; gap: 6px; justify-items: stretch; text-align: center; }
.ed-export .save-tpl { margin-top: 6px; }
.ed-panel { display: grid; gap: 18px; min-width: 0; }
.ed-panel .seg { margin-bottom: 4px; }
.ed-panel .seg button small { color: var(--muted); font-weight: 500; margin-inline-start: 4px; font-size: 11.5px; }
.len-seg { margin-top: 8px; }
.slot-field textarea { resize: vertical; min-height: 64px; }
.slot-label { display: flex; justify-content: space-between; gap: 8px; }
.slot-label small { color: var(--muted); font-weight: 500; }
.media-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.media-slot { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 18px; background: var(--surface-2); min-width: 0; }
.media-pick { position: relative; flex: none; width: 54px; height: 72px; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--surface); color: var(--accent); display: grid; place-items: center; cursor: pointer; overflow: hidden; padding: 0; }
.media-slot.has .media-pick { border-style: solid; border-color: transparent; }
.media-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-pick svg { width: 20px; height: 20px; }
.media-meta { display: grid; min-width: 0; flex: 1; }
.media-meta b { font-size: 14px; }
.media-meta small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.err.small { font-size: 12.5px; padding: 8px 12px; }

/* the player */
.player { display: grid; gap: 8px; }
.screen { position: relative; width: 100%; border-radius: 22px; overflow: hidden; background: #000; line-height: 0;
  box-shadow: 0 0 0 6px #0c0c0f, 0 0 0 7px rgba(255, 255, 255, .1), 0 34px 60px -26px rgba(0, 0, 0, 1); }
.screen canvas { width: 100%; height: 100%; display: block; cursor: pointer; }
.big-play { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(10, 10, 12, .55); color: #fff; backdrop-filter: blur(6px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.big-play svg { width: 30px; height: 30px; margin-inline-start: -3px; }
.big-play:hover { background: rgba(224, 24, 42, .85); }
.transport { display: flex; align-items: center; gap: 10px; }
.transport .time { font-size: 12.5px; color: var(--muted); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.scrub { flex: 1; accent-color: #e0182a; }
.scene-ticks { position: relative; height: 4px; margin: -4px 46px 0 92px; }
.scene-ticks span { position: absolute; top: 0; width: 2px; height: 4px; border-radius: 2px; background: var(--muted); opacity: .5; }

/* pickers */
.pick-body { margin-top: 14px; min-height: 180px; display: grid; gap: 12px; align-content: start; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.pick-tile { display: grid; gap: 4px; text-align: right; border: 0; padding: 6px; border-radius: 16px; background: var(--surface-2); color: inherit; cursor: pointer; min-width: 0; }
.pick-tile:hover { background: var(--surface-3); }
.pick-tile.on { box-shadow: inset 0 0 0 2px var(--accent); }
.pick-tile[disabled] { opacity: .45; cursor: not-allowed; }
.pick-thumb { position: relative; aspect-ratio: 1; border-radius: 11px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); }
.pick-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-thumb svg { width: 24px; height: 24px; }
.pick-badge { position: absolute; bottom: 5px; inset-inline-start: 5px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 99px;
  background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px; }
.pick-badge svg { width: 10px; height: 10px; }
.pick-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-tile small { font-size: 11.5px; color: var(--muted); }
.seg.folders { flex-wrap: wrap; }

/* uploads */
.up-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.up-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 16px; background: var(--surface-2); }
.up-row.s-err { background: var(--bad-soft); }
.up-thumb { flex: none; width: 46px; height: 46px; border-radius: 10px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); }
.up-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-thumb svg { width: 20px; height: 20px; }
.up-info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.up-info b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-info small { color: var(--muted); font-size: 12px; }
.s-err .up-info small { color: var(--bad); }
.up-ok { color: var(--good); display: grid; place-items: center; width: 36px; }
.up-ok svg { width: 18px; height: 18px; }
.full-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: var(--bad-soft); color: var(--ink); }
.full-note svg { width: 22px; height: 22px; color: var(--bad); flex: none; margin-top: 2px; }
.full-note b { display: block; margin-bottom: 2px; }
.full-note p { margin: 0; font-size: 13.5px; color: var(--muted); }
.or { align-self: center; font-size: 13px; }

/* ---------------------------------------------------------------- the briefs (footage, AI) */
.brief-grid { align-items: start; }
.content-chips.small .content-chip { padding: 6px 12px; font-size: 13.5px; }
.content-chips.small .content-chip svg { width: 14px; height: 14px; }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: #e0182a; }
.send-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; border-color: rgba(224, 24, 42, .28);
  background: linear-gradient(120deg, color-mix(in srgb, #e0182a 7%, var(--surface)), var(--surface) 60%); }
.send-bar h2 { margin: 0 0 4px; }
.send-bar p { margin: 0; font-size: 14px; }
.cost { color: var(--warn); }
.warn-text { color: var(--warn); margin: 8px 0 0; }
.ai-cost { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 20px; background: var(--warn-soft); border: 1px solid rgba(240, 195, 92, .25); font-size: 14.5px; }
.ai-cost svg { width: 20px; height: 20px; color: var(--warn); flex: none; margin-top: 2px; }
.pick-on { position: absolute; top: 6px; inset-inline-end: 6px; width: 24px; height: 24px; border-radius: 50%; background: #e0182a; color: #fff; display: grid; place-items: center; }
.pick-on svg { width: 14px; height: 14px; }
.biz-grid { gap: 12px; }

/* a template from a reference: the chosen reference, playing */
.ref-chosen { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-start; }
.ref-screen { width: min(220px, 100%); border-radius: 18px; overflow: hidden; background: #000; line-height: 0; flex: none;
  box-shadow: 0 0 0 5px #0c0c0f, 0 0 0 6px rgba(255, 255, 255, .1), 0 26px 50px -24px rgba(0, 0, 0, 1); }
.ref-screen video { width: 100%; aspect-ratio: 9 / 16; object-fit: contain; display: block; background: #000; }
.ref-info { display: grid; gap: 8px; align-content: start; min-width: 0; flex: 1 1 160px; }
.ref-info b { font-size: 16px; overflow-wrap: anywhere; }
.ref-info .chip, .ref-info .btn { width: fit-content; }

/* the work page: the engine's template is ready */
.tpl-ready { display: flex; flex-wrap: wrap; gap: 20px 26px; align-items: center; border-color: rgba(99, 214, 159, .3);
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, #e0182a 8%, transparent) 0%, transparent 55%), var(--surface); }
.tpl-ready-screen { flex: none; border-radius: 18px; overflow: hidden; line-height: 0; margin-inline: auto;
  box-shadow: 0 0 0 5px #0c0c0f, 0 0 0 6px rgba(255, 255, 255, .1), 0 30px 56px -24px rgba(0, 0, 0, 1); }
.tpl-ready-text { display: grid; gap: 10px; align-content: center; flex: 1 1 260px; min-width: 0; }
.tpl-ready-text .chip { width: fit-content; }
.tpl-ready-text h2.display { margin: 0; font-size: clamp(30px, 4vw, 42px); font-weight: 400; line-height: 1.05; }
.tpl-ready-text p { margin: 0; }

/* ---------------------------------------------------------------- the admin's requests */
.reqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.req { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 18px; padding: 16px 18px; border-radius: 20px; background: var(--surface-2); }
.req.slim { padding: 12px 16px; align-items: center; }
.req-main { display: grid; gap: 6px; min-width: 0; flex: 1; }
.req-main .row { gap: 6px; }
.req-title { font-size: 17px; }
.req-main p { margin: 0; font-size: 13.5px; }
.req-sum { color: var(--ink); }
.req-notes { margin: 0; padding-inline-start: 18px; font-size: 13.5px; color: var(--muted); display: grid; gap: 2px; }
.req-notes .num { color: var(--accent); font-weight: 600; margin-inline-end: 6px; }
.req-link { font-size: 13.5px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; width: fit-content; }
.req-link svg { width: 14px; height: 14px; }
.req-acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- a work */
.work-head { display: grid; gap: 6px; padding: 0 6px; }
.work-head p { margin: 0; font-size: 14px; }
.work-title { gap: 12px; }
.work-title h1 { margin: 0; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; }
.st-chip { font-size: 13px; padding: 4px 12px; }
.engine-card .stepper { grid-template-columns: repeat(4, minmax(0, 1fr)); display: grid; gap: 10px; }
.engine-card .stepper li { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13.5px; }
.ver-grid { display: grid; grid-template-columns: minmax(260px, 400px) minmax(0, 1fr); gap: 22px; align-items: start; }
.ver-player { display: grid; gap: 10px; }
.ver-screen { border-radius: 22px; overflow: hidden; background: #000; line-height: 0; box-shadow: 0 0 0 6px #0c0c0f, 0 0 0 7px rgba(255, 255, 255, .1), 0 34px 60px -26px rgba(0, 0, 0, 1); }
.ver-screen video { width: 100%; display: block; background: #000; }
.ver-screen.f-916 video { aspect-ratio: 9 / 16; }
.ver-screen.f-45 video { aspect-ratio: 4 / 5; }
.c-bar { position: relative; height: 12px; border-radius: 99px; background: var(--surface-3); cursor: pointer; margin: 6px 0 2px; }
.c-fill { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: inherit; background: var(--grad-brand); opacity: .55; pointer-events: none; }
.c-dot { position: absolute; top: 50%; width: 14px; height: 14px; margin-inline-start: -7px; border-radius: 50%; transform: translateY(-50%); background: #fff;
  box-shadow: 0 0 0 3px #e0182a, 0 4px 10px rgba(0, 0, 0, .5); cursor: pointer; }
.c-dot.sent { box-shadow: 0 0 0 3px var(--muted); opacity: .7; }
.ver-acts { gap: 8px; }
.c-new { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border-radius: 18px; background: var(--surface-2); }
.c-new input { flex: 1; min-width: 180px; }
.ver-side h3 { margin: 0 0 10px; font-size: 16px; }
.c-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 520px; overflow-y: auto; }
.c-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 16px; background: var(--surface-2); }
.c-list li.sent { opacity: .65; }
.c-list p { margin: 0 0 2px; font-size: 14.5px; }
.c-list small { color: var(--muted); font-size: 12px; }
.c-time { border: 0; cursor: pointer; background: var(--accent-soft); color: var(--accent); }
.c-list.compact { max-height: 260px; }
.work-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.work-acts h2 { margin: 0 0 4px; }
.work-acts p { margin: 0; font-size: 14px; }
.post-text { min-height: 150px; resize: vertical; line-height: 1.6; }
.file-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 420px; overflow-y: auto; }
.file-rows li { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 14px; background: var(--surface-2); }
.file-rows b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-rows small { color: var(--muted); font-size: 12px; }
.danger-row { justify-content: flex-start; padding: 0 6px; }

@media (max-width: 960px) {
  .ver-grid { grid-template-columns: minmax(0, 1fr); }
  .ver-player { max-width: 400px; width: 100%; margin: 0 auto; }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .way { min-height: 0; }
  .editor { grid-template-columns: minmax(0, 1fr); }
  .ed-preview { position: static; max-width: 340px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  .hero { padding: 28px 18px 20px; }
  .way-template { padding-inline-end: 24px; }
  .way-preview { position: relative; inset: auto; transform: rotate(-2deg); align-self: flex-start; margin-top: 6px; }
  a.way-template:hover .way-preview { transform: none; }
  .poster-tiles { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
}
