/* מחולל הגרפיקות: the components of this system's pages (the theme's tokens are in theme.css). */
.page-head .sub { color: var(--muted); }
.biz-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; overflow: hidden; color: #fff; font-weight: 700;
  font-size: 16px; background: var(--grad); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
.biz-mark.has-logo { background: #fff; }
.biz-mark img { width: 82%; height: 82%; object-fit: contain; }
.biz-mark.lg { width: 58px; height: 58px; border-radius: 18px; font-size: 20px; }
.swatch.sm { width: 18px; height: 18px; border-radius: 6px; }
.status { --c: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent);
  border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.status.s-final { --c: var(--good); } .status.s-engine, .status.s-request, .status.s-queued, .status.s-running { --c: var(--accent); }
.status.s-ready { --c: #d07a12; } .status.s-stopped { --c: var(--bad); }
.linkish { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* the business bar (who it is for) */
.biz-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.biz-bar .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.biz-bar .who b { font-size: 17px; display: block; }
.biz-bar .who small { color: var(--muted); font-size: 13px; }
.biz-bar .pick { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; min-width: min(280px, 100%); }
.biz-bar .pick select { min-width: 0; }
.biz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.biz-chip { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 14px 5px 6px;
  cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink); }
.biz-chip .biz-mark { width: 28px; height: 28px; border-radius: 9px; font-size: 12px; }
.biz-chip[aria-pressed="true"] { border-color: transparent; background: var(--iris); color: #1c1530; }

/* "what do you want to publish?": the content types */
.types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.type-card { --h: 260; position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 26px; overflow: hidden; text-decoration: none; color: var(--ink);
  background: var(--surface); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; min-width: 0; }
.type-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.type-card .tc-visual { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 18% 12%, hsl(calc(var(--h) + 40) 95% 92%) 0%, transparent 55%),
    linear-gradient(140deg, hsl(var(--h) 90% 95%) 0%, hsl(calc(var(--h) + 24) 85% 89%) 100%); }
.type-card .tc-visual::after { content: ""; position: absolute; inset: auto -10% -18% 30%; height: 46%; opacity: .32;
  background: url(/brand/stroke.svg) center / 100% 100% no-repeat; filter: blur(10px) hue-rotate(calc(var(--h) * 1deg)); transform: rotate(-8deg); }
.type-card .tc-icon { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  color: hsl(var(--h) 62% 42%); background: rgba(255, 255, 255, .78); box-shadow: 0 6px 16px -8px hsl(var(--h) 60% 40% / .5); backdrop-filter: blur(6px); }
.type-card .tc-icon svg { width: 21px; height: 21px; }
.type-card .tc-big { color: hsl(var(--h) 55% 48% / .28); }
.type-card .tc-big svg { width: 74px; height: 74px; }
.type-card .tc-prev { position: relative; z-index: 1; width: 54%; height: auto; border-radius: 10px; transform: rotate(-4deg) translateY(6%);
  box-shadow: 0 18px 30px -14px rgba(30, 10, 60, .45), 0 2px 6px rgba(30, 10, 60, .12); background: rgba(255, 255, 255, .5); }
.type-card .tc-text { padding: 14px 18px 18px; display: grid; gap: 2px; }
.type-card .tc-text b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.type-card .tc-text small { color: var(--muted); font-size: 13.5px; }
.type-card .tc-go { position: absolute; z-index: 2; bottom: 16px; inset-inline-end: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--muted); transition: background .18s, color .18s; }
.type-card:hover .tc-go { background: var(--grad); color: #fff; }
.type-card .tc-go svg { width: 16px; height: 16px; transform: scaleX(-1); }

/* the special request card */
.engine-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.engine-card .ec-ic { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--iris); color: #3b2a7a; flex: none; }
.engine-card .ec-ic svg { width: 26px; height: 26px; }
.engine-card h2 { margin: 0; font-size: 18px; }
.engine-card p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }

/* a nudge: the brand card is still empty */
.nudge { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; border-radius: 22px; padding: 16px 20px; background: var(--iris); color: #1c1530; }
.nudge .n-ic { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .7); display: grid; place-items: center; flex: none; }
.nudge .n-ic svg { width: 22px; height: 22px; }
.nudge b { display: block; font-size: 15.5px; }
.nudge small { font-size: 13.5px; opacity: .78; }
.nudge .btn { background: #1c1530; color: #fff; }

/* works: tiles with the design's own shape */
.wtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.wtile { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow);
  text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; min-width: 0; }
.wtile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.wtile .thumb { aspect-ratio: 4 / 5; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); overflow: hidden; }
.wtile .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wtile .thumb svg { width: 30px; height: 30px; }
.wtile .meta { padding: 10px 12px 12px; display: grid; gap: 4px; min-width: 0; }
.wtile .meta b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wtile .meta small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wtile .w-acts { position: absolute; top: 8px; inset-inline-end: 8px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.wtile:hover .w-acts, .wtile:focus-within .w-acts { opacity: 1; }
.wtile .w-acts .icon-btn { background: rgba(255, 255, 255, .92); color: #1c1530; width: 32px; height: 32px; }
.wtile .status { position: absolute; top: 8px; inset-inline-start: 8px; background: rgba(255, 255, 255, .92); }

/* choices as chips (formats, …) */
.pick { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px;
  padding: 7px 14px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.pick svg { width: 15px; height: 15px; }
.pick.on { border-color: transparent; background: var(--iris); color: #1c1530; }
.pick[disabled] { opacity: .5; cursor: not-allowed; }
.note { display: flex; gap: 8px; align-items: flex-start; }
.note > svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }

/* references to pick (a request to the engine) */
.ref-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 210px; overflow-y: auto; padding: 2px; }
.ref-tile { position: relative; aspect-ratio: 1; border-radius: 14px; border: 2px solid transparent; background: var(--surface-2); padding: 0; overflow: hidden; cursor: pointer;
  display: grid; place-items: center; color: var(--muted); }
.ref-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref-tile svg { width: 22px; height: 22px; }
.ref-tile.on { border-color: var(--accent); }
.ref-tile .ref-on { position: absolute; top: 5px; inset-inline-end: 5px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.ref-tile .ref-on svg { width: 13px; height: 13px; }

@media (max-width: 1060px) { .types { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .type-card .tc-text { padding: 12px 14px 16px; }
  .type-card .tc-text b { font-size: 15.5px; } .type-card .tc-text small { font-size: 12.5px; } .type-card .tc-go { display: none; } }
@media (max-width: 640px) { .wtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .biz-bar .pick { margin-inline-start: 0; width: 100%; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .type-card .tc-visual { background: radial-gradient(circle at 18% 12%, hsl(calc(var(--h) + 40) 40% 24%) 0%, transparent 55%),
  linear-gradient(140deg, hsl(var(--h) 34% 17%) 0%, hsl(calc(var(--h) + 30) 30% 11%) 100%); } :root:not([data-theme="light"]) .type-card .tc-icon { background: rgba(20, 12, 40, .7); color: hsl(var(--h) 80% 76%); }
  :root:not([data-theme="light"]) .wtile .status { background: rgba(20, 12, 40, .85); } }
:root[data-theme="dark"] .type-card .tc-visual { background: radial-gradient(circle at 18% 12%, hsl(calc(var(--h) + 40) 40% 24%) 0%, transparent 55%),
  linear-gradient(140deg, hsl(var(--h) 34% 17%) 0%, hsl(calc(var(--h) + 30) 30% 11%) 100%); }
:root[data-theme="dark"] .type-card .tc-icon { background: rgba(20, 12, 40, .7); color: hsl(var(--h) 80% 76%); }
:root[data-theme="dark"] .wtile .status { background: rgba(20, 12, 40, .85); }

/* ---------------------------------------------------------------- the gallery */
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.back-link:hover { color: var(--accent); }
.back-link svg { width: 15px; height: 15px; }
.biz-bar.compact { padding: 12px 18px; }
.biz-bar.compact .biz-mark { width: 38px; height: 38px; border-radius: 12px; }
.gal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.gal-sec .sec-head { padding: 0 4px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; align-items: start; }
.tpl { position: relative; display: grid; gap: 0; border: 0; padding: 0; text-align: right; cursor: pointer; color: var(--ink); background: var(--surface);
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; min-width: 0; font: inherit; }
.tpl:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tpl[disabled] { cursor: progress; }
.tpl-canvas { position: relative; display: block; padding: 14px 14px 0; }
.tpl-canvas .pv { border-radius: 14px; box-shadow: 0 1px 2px rgba(30, 10, 60, .08), 0 10px 24px -14px rgba(30, 10, 60, .35); }
.tpl-chip { position: absolute; top: 22px; inset-inline-start: 22px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px;
  background: rgba(20, 12, 40, .72); color: #fff; font-size: 12px; font-weight: 600; backdrop-filter: blur(4px); }
.tpl-chip svg { width: 13px; height: 13px; }
.tpl-meta { display: grid; gap: 2px; padding: 12px 16px 16px; padding-inline-end: 54px; }
.tpl-meta b { font-size: 15px; font-weight: 700; }
.tpl-meta small { color: var(--muted); font-size: 13px; }
.tpl-go { position: absolute; bottom: 16px; inset-inline-end: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2);
  color: var(--muted); transition: background .18s, color .18s; }
.tpl:hover .tpl-go { background: var(--grad); color: #fff; }
.tpl-go svg { width: 17px; height: 17px; }
.skel-card { cursor: default; padding: 14px; }
.skel-card .skel { display: block; aspect-ratio: 4 / 5; }
.skel-card .skel.f-square { aspect-ratio: 1; }
.skel-card .skel.f-story { aspect-ratio: 9 / 16; }

/* a live preview (lib/live.js): a soft placeholder in the business's own colors with a light passing over it, until
   the design is drawn; then the design fades in (a kept one is just there) */
.pv { --pv-mix: 72%; position: relative; display: block; width: 100%; overflow: hidden; background: var(--surface-2);
  background: linear-gradient(150deg, color-mix(in srgb, var(--pv-a, #f4f2ff) var(--pv-mix), var(--surface)) 0%, color-mix(in srgb, var(--pv-b, #8f45e6) 24%, var(--surface)) 100%); }
.pv::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 200%; pointer-events: none; will-change: transform;
  background: linear-gradient(100deg, transparent 38%, var(--pv-light, rgba(255, 255, 255, .45)) 50%, transparent 62%); animation: pv-sweep 1.6s ease-in-out infinite; }
.pv.on::after { content: none; }
.pv > canvas, .pv > img { display: block; width: 100%; height: 100%; }
.pv-in { animation: pv-in .24s ease-out; }
@keyframes pv-sweep { from { transform: translateX(-75%); } to { transform: translateX(25%); } }
@keyframes pv-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pv::after, .pv-in { animation: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pv { --pv-mix: 30%; --pv-light: rgba(255, 255, 255, .1); } }
:root[data-theme="dark"] .pv { --pv-mix: 30%; --pv-light: rgba(255, 255, 255, .1); }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .tpl-canvas { padding: 8px 8px 0; }
  .tpl-meta { padding: 8px 10px 12px; } .tpl-meta small { display: none; } .tpl-go { display: none; } .tpl { border-radius: 18px; } }

/* ---------------------------------------------------------------- shared */
.seg button { white-space: nowrap; }
fieldset.plain { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; padding: 16px 20px; }
.filters .field { min-width: 180px; }
.work-head h1 { font-size: clamp(22px, 3vw, 28px); }
.brief { margin: 0; white-space: pre-wrap; font-size: 14px; line-height: 1.55; background: var(--surface-2); border-radius: 14px; padding: 10px 14px; }
details summary { cursor: pointer; color: var(--muted); font-size: 13.5px; font-weight: 600; margin: 4px 0; }
.chip .dot { margin-inline-end: 2px; }

/* ---------------------------------------------------------------- the editor */
.editor { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 18px; align-items: start; }
.ed-form { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; padding: 20px; }
.ed-main { display: grid; gap: 18px; min-width: 0; }
.fields { display: grid; gap: 14px; }
.field-group { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.field-group h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); }
.field-group h3 svg { width: 17px; height: 17px; color: var(--accent); }
.field .count { float: left; font-weight: 500; font-size: 12px; color: var(--muted); }
.field .count.over { color: var(--bad); }
.field textarea { resize: vertical; min-height: 64px; }
.list-field { gap: 8px; }
.list-item { display: grid; gap: 6px; padding: 10px; border-radius: 16px; background: var(--surface-2); }
.list-item input, .list-item textarea { background: var(--surface); }
.li-head { display: flex; align-items: center; gap: 2px; }
.li-head b { flex: 1; color: var(--ink); font-size: 13px; }
.li-head .icon-btn { width: 30px; height: 30px; }
.li-head .icon-btn svg { width: 15px; height: 15px; transform: rotate(90deg); }
.li-head .icon-btn.down svg { transform: rotate(-90deg); }
.li-head .icon-btn:last-child svg { transform: none; }
.image-field .img-row { display: flex; gap: 12px; align-items: flex-start; }
.img-thumb { width: 96px; height: 96px; border-radius: 16px; border: 0; padding: 0; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; cursor: pointer;
  color: var(--muted); flex: none; }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-acts { display: grid; gap: 6px; justify-items: start; }
.focus-grid { display: grid; grid-template-columns: repeat(3, 16px); gap: 3px; padding: 4px; border-radius: 8px; background: var(--surface-2); }
.focus-grid button { width: 16px; height: 16px; border-radius: 4px; border: 0; background: var(--surface-3); cursor: pointer; padding: 0; }
.focus-grid button[aria-pressed="true"] { background: var(--accent); }
.zoom { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.zoom input { flex: 1; accent-color: var(--accent); }
.stars-pick { display: flex; gap: 4px; }
.stars-pick button { border: 0; background: none; padding: 2px; cursor: pointer; color: var(--surface-3); }
.stars-pick button svg { width: 26px; height: 26px; }
.stars-pick button.on { color: #f2b33d; }
.stars-pick button.on svg { fill: currentColor; }
.palettes { display: flex; flex-wrap: wrap; gap: 8px; }
.pal { display: grid; gap: 4px; justify-items: center; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 6px 8px 5px; cursor: pointer;
  color: var(--muted); font: inherit; }
.pal small { font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pal-sw { display: flex; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.pal-sw span { width: 16px; height: 22px; }
.pal[aria-checked="true"] { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.ed-stage { display: grid; gap: 14px; }
.ed-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ed-title { flex: 1; min-width: 200px; font-size: 19px !important; font-weight: 700; background: transparent !important; border-color: transparent; padding: 6px 10px !important; }
.ed-title:hover { background: var(--surface-2) !important; }
.save-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.save-state svg { width: 15px; height: 15px; color: var(--good); }
.save-state.s-error { color: var(--bad); }
.stage { display: grid; gap: 12px; }
.stage-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.stage-bar .btn.on { background: var(--accent-soft); color: var(--accent); }
.stage-box { display: grid; place-items: center; min-height: 200px; border-radius: 22px; padding: 18px;
  background: repeating-conic-gradient(var(--surface-2) 0% 25%, var(--surface) 0% 50%) 50% / 22px 22px; }
.stage-canvas { position: relative; max-width: 100%; }
.stage-canvas canvas { display: block; max-width: 100%; height: auto; border-radius: 6px; box-shadow: 0 2px 4px rgba(20, 10, 40, .08), 0 24px 50px -24px rgba(20, 10, 40, .55); }
.stage-wait { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .5); border-radius: 6px; }
.guide { position: absolute; inset-inline: 0; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #fff; background: rgba(255, 60, 90, .32);
  border: 1px dashed rgba(255, 255, 255, .8); pointer-events: none; }
.guide.top { top: 0; border-radius: 6px 6px 0 0; }
.guide.bottom { bottom: 0; border-radius: 0 0 6px 6px; }
.slides { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; }
.slide-btn { flex: none; border: 2px solid transparent; background: none; border-radius: 12px; padding: 3px; cursor: pointer; display: grid; gap: 3px; justify-items: center; color: var(--muted); }
.slide-btn .pv { width: 84px; border-radius: 8px; }
.slide-btn small { font-size: 11.5px; font-weight: 700; }
.slide-btn.on { border-color: var(--accent); color: var(--accent); }
.ed-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-actions .btn.primary { margin-inline-start: auto; }
.caption textarea { font-size: 15px; line-height: 1.6; min-height: 180px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; max-height: 46vh; overflow-y: auto; padding: 2px; }
.pick-img { aspect-ratio: 1; border: 0; border-radius: 14px; padding: 0; overflow: hidden; cursor: pointer; background: var(--surface-2); }
.pick-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.pick-img:hover img { transform: scale(1.04); }
.package { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; align-items: end; }
.pkg-file { display: grid; gap: 6px; text-decoration: none; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.pkg-file img { width: 100%; border-radius: 12px; background: var(--surface-2); box-shadow: var(--shadow); }
.pkg-file span { display: inline-flex; align-items: center; gap: 6px; }
.pkg-file svg { width: 15px; height: 15px; color: var(--accent); }

/* ---------------------------------------------------------------- the engine: requests and versions */
.engine-sec { display: grid; gap: 14px; }
.job { display: grid; gap: 10px; padding: 14px 16px; border-radius: 20px; background: var(--surface-2); }
.job-head, .req-head { display: flex; align-items: center; gap: 12px; }
.job-head b, .req-head b { display: block; font-size: 15px; }
.job-head small, .req-head small { color: var(--muted); font-size: 12.5px; }
.job-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--iris); color: #3b2a7a; flex: none; }
.job-ic svg { width: 20px; height: 20px; }
.versions { display: grid; gap: 14px; }
.version { display: grid; gap: 10px; padding: 14px 16px; border-radius: 20px; border: 1.5px solid var(--line); }
.v-head { display: flex; align-items: baseline; gap: 10px; }
.v-head b { font-size: 18px; }
.v-head small { color: var(--muted); }
.v-files { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.v-file { flex: none; display: grid; gap: 4px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; }
.v-file img { height: 170px; width: auto; max-width: 260px; border-radius: 10px; background: var(--surface-2); box-shadow: var(--shadow); object-fit: contain; }
.v-note { margin: 0; font-size: 14px; color: var(--muted); }
.talk { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.talk li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 14px; padding: 8px 12px; border-radius: 14px; background: var(--surface-2); }
.talk li small { color: var(--muted); margin-inline-start: auto; font-size: 12px; }
.v-say { display: flex; gap: 8px; }
.v-say input { flex: 1; }

/* ---------------------------------------------------------------- the requests page (admin) */
.req { display: grid; gap: 12px; }
.req-refs { display: flex; flex-wrap: wrap; gap: 8px; }
.req-refs a { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.req-refs img { width: 100%; height: 100%; object-fit: cover; }
.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.req-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.req-list b { display: block; font-size: 14px; }
.req-list small { color: var(--muted); font-size: 12.5px; }

@media (max-width: 980px) {
  .editor { grid-template-columns: minmax(0, 1fr); }
  .ed-form { position: static; max-height: none; order: 2; }
  .ed-main { order: 1; }
}
@media (max-width: 640px) {
  .stage-box { padding: 10px; border-radius: 16px; }
  .ed-actions .btn { flex: 1 1 auto; }
  .ed-actions .btn.primary { margin-inline-start: 0; flex-basis: 100%; }
  .filters .field { min-width: 0; flex: 1 1 100%; }
  .v-file img { height: 130px; }
}
.flabel { display: flex; align-items: baseline; gap: 8px; }
.flabel .hint { font-weight: 400; }
.flabel .count { margin-inline-start: auto; float: none; }
