/* AIGency dashboard. The new AIGency look (29.11.2026): dark like the site, flat neon green.
   Colours only through the tokens in :root (values from the live site's style.css). Mobile first, 4px grid. */
:root {
  --bg: #0B0C0A; --card: #151613; --line: #2A2D26; --ink: #F4F5EF; --muted: #A3A69B;
  --brand: #D1FE17; --on-brand: #121211; --mint: #2F3714; --soap: #5C6B1C; --lav: #8FA91F;
  --ok: #D1FE17; --okbg: rgba(209,254,23,.13); --warn: #FF9B6B; --warnbg: rgba(255,120,60,.14);
  --raise: #24261F; --raise-hover: #33372B; --field-line: #6E7066; --placeholder: #8E9187;
  --nav-bg: rgba(16,17,14,.82); --glow: rgba(209,254,23,.22); --warnline: rgba(255,155,107,.4);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s12: 48px;
  --r: 20px; --r-sm: 14px; --pill: 999px;
}
@font-face { font-family: "Discovery"; font-weight: 400; font-style: normal; font-display: swap;
  src: url(/static/brand/discovery-regular.woff2) format("woff2"); }
@font-face { font-family: "Discovery"; font-weight: 500; font-style: normal; font-display: swap;
  src: url(/static/brand/discovery-medium.woff2) format("woff2"); }
@font-face { font-family: "Discovery"; font-weight: 700; font-style: normal; font-display: swap;
  src: url(/static/brand/discovery-bold.woff2) format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); color-scheme: dark; scrollbar-color: var(--soap) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 "Discovery", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, video { max-width: 100%; }
::selection { background: var(--brand); color: var(--on-brand); }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--soap); text-decoration-thickness: 1.5px;
  text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--brand); text-decoration-color: var(--brand); }
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 var(--s4); letter-spacing: -.01em; overflow-wrap: anywhere; }
h1 { font-size: 26px; letter-spacing: -.02em; }
h2 { font-size: 20px; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* top bar: the site's floating pill nav, sticky */
.topbar { position: sticky; top: 0; z-index: 10; padding: var(--s3) var(--s3) 0; }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4);
  max-width: 1120px; margin: 0 auto; padding: var(--s2) var(--s2) var(--s2) var(--s4);
  background: var(--nav-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--r); }
.brand { display: block; border-radius: var(--s2); }
.brand img { display: block; height: 26px; width: auto; }
/* phone: two columns, so the links never cut to "Waiti..."; an odd last link takes the full row; one row from 640px */
.nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s1); order: 3; width: 100%; }
.nav a { flex: 1 1 auto; min-width: 0; text-align: center; padding: var(--s2) var(--s3); border-radius: var(--pill); color: var(--muted);
  font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none;
  transition: background .15s, color .15s; }
.nav a:last-child:nth-child(odd) { grid-column: 1 / -1; }
.nav a:hover { background: var(--raise); color: var(--ink); }
.nav a:active { background: var(--raise-hover); }
.nav a.active, .nav a.active:hover { background: var(--brand); color: var(--on-brand); }
.who { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--s1) var(--s2);
  color: var(--muted); font-size: 13px; min-width: 0; padding-right: var(--s2); }
.who > span { overflow-wrap: anywhere; }
.who form { margin: 0; }
.link-button { background: none; border: 0; padding: var(--s1) 0; font: inherit; color: var(--muted); cursor: pointer;
  border-radius: var(--s1); transition: color .15s; }
.link-button:hover { color: var(--brand); }
.link-button:active { color: var(--lav); }

.page { max-width: 1120px; margin: 0 auto; padding: var(--s6) var(--s4) var(--s12); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); min-width: 0; }

/* buttons: the site's pill, flat neon, bold */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px;
  border: 0; border-radius: var(--pill); padding: var(--s3) var(--s6);
  font: 700 16px/1.25 "Discovery", system-ui, sans-serif; text-align: center; text-decoration: none;
  background: var(--brand); color: var(--on-brand); cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .15s, color .15s; }
.btn:hover { color: var(--on-brand); text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 30px var(--glow); }
.btn:active { transform: none; box-shadow: none; background: var(--lav); }
.btn-block { width: 100%; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--field-line); }
.btn-quiet:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-quiet:active { background: var(--raise); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn:disabled, .btn[aria-disabled="true"], .btn:disabled:hover, .btn[aria-disabled="true"]:hover {
  background: var(--raise); color: var(--muted); box-shadow: none; transform: none; cursor: not-allowed; }

/* forms */
.field { display: block; margin: 0 0 var(--s4); min-width: 0; }
.field span { display: block; margin-bottom: var(--s1); color: var(--ink); font-size: 14px; font-weight: 500; }
.field input, .field textarea, .field select { display: block; width: 100%; min-height: 50px; padding: var(--s3) var(--s4);
  border: 1px solid var(--field-line); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); font: inherit;
  transition: border-color .15s; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: 2px; }
.field input:disabled, .field textarea:disabled, .field select:disabled { color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.field input[type="file"] { padding: var(--s2); cursor: pointer; }
.field input[type="file"]::file-selector-button { margin-right: var(--s3); padding: var(--s2) var(--s4); border: 0; border-radius: var(--pill);
  background: var(--raise); color: var(--ink); font: 500 14px/1.25 "Discovery", system-ui, sans-serif; cursor: pointer; transition: background .15s; }
.field input[type="file"]:hover::file-selector-button { background: var(--raise-hover); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.check { display: flex; gap: var(--s3); align-items: center; margin: 0 0 var(--s4); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--brand); cursor: pointer; }

/* messages: warning / error, and ok */
.alert { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-sm); background: var(--warnbg); color: var(--warn);
  border: 1px solid var(--warnline); }
.note-ok { padding: var(--s3) var(--s4); border-radius: var(--r-sm); background: var(--okbg); color: var(--ok); }
.ok-text { color: var(--ok); }

/* tags: the site's chips */
.tag { display: inline-block; padding: 3px var(--s3); border-radius: var(--pill); font-size: 12px; font-weight: 500; line-height: 1.5;
  white-space: nowrap; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.tag-managed { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.tag-prospect { background: var(--mint); color: var(--brand); border-color: var(--mint); }
.tag-showcase { background: transparent; color: var(--ink); border-color: var(--soap); }
.tag-ready { background: var(--okbg); color: var(--ok); border-color: transparent; }
.tag-warn { background: var(--warnbg); color: var(--warn); border-color: transparent; }

/* login */
.login-wrap { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: var(--s4); }
.login-card { width: 100%; max-width: 400px; padding: var(--s8) var(--s6); }
.login-card .logo { display: block; height: 44px; width: auto; margin: 0 0 var(--s6); }
.login-card h1 { font-size: 22px; }
.login-card .btn { margin-top: var(--s2); }

@media (min-width: 640px) {
  .topbar { padding: var(--s4) var(--s4) 0; }
  .topbar-inner { flex-wrap: nowrap; border-radius: var(--pill); padding-left: var(--s6); }
  .nav { display: flex; order: 0; width: auto; }
  .brand img { height: 30px; }
  .who { font-size: 14px; column-gap: var(--s3); }
  .nav a { flex: none; padding: var(--s2) var(--s4); font-size: 16px; }
  .page { padding-top: var(--s8); }
  h1 { font-size: 30px; }
}

/* Brands, Demo Studio, Cast */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s4); margin: 0 0 var(--s6); }
.page-head > div { min-width: 0; }
.page-head h1, .page-head p { margin-bottom: var(--s2); }
.page-head p { margin-top: 0; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
h2 { margin-top: var(--s8); }
h3 { font-size: 16px; margin: 0 0 var(--s3); }
.empty { color: var(--muted); margin: 0 0 var(--s4); padding: var(--s5); border: 1px dashed var(--line); border-radius: var(--r); text-align: center; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--s4); }
.brand-card { transition: border-color .15s; }
.brand-card:hover { border-color: var(--field-line); }
.brand-card h2, .brand-card h3 { margin: 0; font-size: 18px; min-width: 0; }
.brand-card h2 a, .brand-card h3 a { text-decoration: none; }
.card-title { display: flex; align-items: center; gap: var(--s2) var(--s3); flex-wrap: wrap; min-width: 0; }
.card-title h1 { margin: 0; min-width: 0; }
.swatch { width: 14px; height: 14px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px var(--field-line); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin: var(--s4) 0 0; }
.facts div { min-width: 0; background: var(--bg); border-radius: var(--r-sm); padding: var(--s3) var(--s4); }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; font-weight: 700; font-size: 20px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.facts-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin: 0 0 var(--s4); }
.facts-row div { background: var(--card); border: 1px solid var(--line); min-width: 140px; }

/* tabs: the site's segmented pill, neon on the active one */
.tabs { display: flex; gap: var(--s1); overflow-x: auto; max-width: 100%; width: max-content; margin: 0 0 var(--s6); padding: 5px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--pill); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: var(--s2) var(--s4); border-radius: var(--pill); color: var(--muted); font-weight: 500; font-size: 15px;
  white-space: nowrap; text-decoration: none; transition: background .15s, color .15s; }
.tabs a:hover { color: var(--ink); background: var(--raise); }
.tabs a:active { background: var(--raise-hover); }
.tabs a.active, .tabs a.active:hover { background: var(--brand); color: var(--on-brand); }
.tabs a:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.tabs a.active:focus-visible { outline-color: var(--on-brand); outline-offset: -5px; }

.rows { list-style: none; margin: 0 0 var(--s4); padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2) var(--s3);
  padding: var(--s3) var(--s4); border-top: 1px solid var(--line); min-width: 0; }
.row:first-child { border-top: 0; }
.row > a, .row > span { min-width: 0; overflow-wrap: anywhere; }
.row-stack { flex-direction: column; align-items: stretch; }
.row-meta { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.missing { margin: var(--s1) 0 0; padding-left: var(--s5); color: var(--muted); font-size: 14px; }
.missing li::marker { color: var(--warn); }
.board { display: grid; grid-template-columns: 1fr; gap: var(--s4); }
.board-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); min-width: 0; }
.board-col h3 { display: flex; align-items: center; gap: var(--s2); }
.count { display: inline-block; min-width: 24px; padding: 0 var(--s2); border-radius: var(--pill); background: var(--raise);
  color: var(--muted); font-weight: 500; font-size: 13px; line-height: 22px; text-align: center; }
.video-list { list-style: none; margin: 0; padding: 0; }
.video-item { display: flex; justify-content: space-between; gap: var(--s2); padding: var(--s2) 0; border-top: 1px solid var(--line); }
.video-item:first-child { border-top: 0; }
.video-item > a, .video-item > span { min-width: 0; overflow-wrap: anywhere; }
.people { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--s3); }
.person { display: flex; align-items: center; gap: var(--s3); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); min-width: 0; }
.person-text { display: flex; flex-direction: column; min-width: 0; }
.person-name { font-weight: 500; overflow-wrap: anywhere; }
.avatar { display: block; width: 40px; height: 40px; border-radius: 50%; background: var(--mint); object-fit: cover; flex: none;
  box-shadow: 0 0 0 1px var(--line); }
.avatar-lg { width: 64px; height: 64px; }
.cast { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--s4); }
.person-card { display: flex; gap: var(--s4); align-items: flex-start; }
.person-card > div { min-width: 0; }
.person-card h2 { margin: 0 0 var(--s1); font-size: 18px; }
.person-card p { margin: 0 0 var(--s1); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; }
.table th, .table td { text-align: left; padding: var(--s3) var(--s4); border-top: 1px solid var(--line); vertical-align: top; }
.table td { overflow-wrap: anywhere; }
.table td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table th { color: var(--muted); font-weight: 500; font-size: 14px; border-top: 0; }
.form { max-width: 640px; }
.request p { margin: 0 0 var(--s3); }
.request p:last-child { margin-bottom: 0; }
.details { font-size: 13px; margin-top: var(--s8); color: var(--muted); }
details summary { cursor: pointer; color: var(--brand); }

@media (min-width: 640px) {
  .cards, .people, .cast { grid-template-columns: repeat(2, 1fr); }
  .board { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .cards, .cast { grid-template-columns: repeat(3, 1fr); }
}

/* Product card, photos and uploads */
.missing-card { margin: 0 0 var(--s4); border-color: var(--warnline); }
.missing-card h2 { margin-top: 0; color: var(--warn); font-size: 18px; }
.details-list { margin: 0; display: grid; grid-template-columns: 1fr; gap: var(--s4); }
.detail { min-width: 0; }
.detail dt { color: var(--muted); font-size: 14px; }
.detail dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--s4); }
.photo h3 { margin-bottom: var(--s3); }
.photo-media { display: block; width: 100%; max-height: 320px; object-fit: contain; background: var(--bg); border-radius: var(--r-sm); margin: 0 0 var(--s3); }
.photo-empty { display: flex; align-items: center; justify-content: center; min-height: 140px; margin: 0 0 var(--s3); padding: var(--s4);
  background: var(--bg); border: 1px dashed var(--field-line); border-radius: var(--r-sm); color: var(--muted); text-align: center; }
.upload { margin: var(--s4) 0 0; padding-top: var(--s4); border-top: 1px solid var(--line); }
.upload .field { margin-bottom: var(--s3); }
.dims { border: 0; padding: 0; margin: 0 0 var(--s4); min-width: 0; }
.dims legend { padding: 0; margin-bottom: var(--s2); color: var(--ink); font-size: 14px; font-weight: 500; }
.dims .field span { color: var(--muted); font-weight: 400; }
.dims-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s3); }
.dims-row .field { margin: 0; }
@media (min-width: 640px) {
  .details-list { grid-template-columns: repeat(2, 1fr); }
  .photos { grid-template-columns: repeat(2, 1fr); }
  .dims-row { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .photos { grid-template-columns: repeat(3, 1fr); }
}
/* Video page */
.player { display: block; width: 100%; max-width: 420px; max-height: 75vh; margin: 0 0 var(--s4); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); }
.script { max-height: 70vh; overflow-y: auto; }
.script p { margin: 0; min-height: 1.5em; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Decision panel (video page): neon edge, actions stacked on a phone, side by side from 640px */
.decide { margin: 0 0 var(--s6); border-color: var(--soap); box-shadow: inset 3px 0 0 var(--brand); }
.decide h2 { margin-top: 0; }
.decide > p, .decide-last p { margin: 0 0 var(--s3); }
.decide-last { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); background: var(--bg); border-radius: var(--r-sm); }
.decide-last p:last-child { margin-bottom: 0; }
.decide-quote { white-space: pre-wrap; overflow-wrap: anywhere; }
.decide-text { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); background: var(--bg); border-radius: var(--r-sm); max-height: 50vh; }
.decide-checks { margin: 0 0 var(--s4); }
.paid-line { font-weight: 500; }
.decide .request { margin-top: var(--s4); background: var(--bg); }
.decide-actions { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s4); }
.decide-actions form { margin: 0; }
.decide-btn { width: 100%; }
.decide-more > summary { list-style: none; color: var(--ink); }
.decide-more > summary::-webkit-details-marker { display: none; }
.decide-more[open] > summary { box-shadow: inset 0 0 0 1.5px var(--brand); }
.decide-more form { margin-top: var(--s3); padding: var(--s4); background: var(--bg); border-radius: var(--r-sm); }
.decide-more .field textarea { min-height: 120px; }
.btn-danger { background: var(--warnbg); color: var(--warn); box-shadow: inset 0 0 0 1.5px var(--warnline); }
.btn-danger:hover { color: var(--warn); box-shadow: inset 0 0 0 1.5px var(--warn); }
.btn-danger:active { background: var(--raise); }
@media (min-width: 640px) {
  .decide-actions { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .decide-actions > form, .decide-actions > .decide-more { flex: 1 1 0; min-width: 0; }
  /* an opened one never jumps to the end: the actions stack in their own order, as on a phone */
  .decide-more[open] { flex-basis: 100%; }
  .decide-actions:has(> .decide-more[open]) { flex-direction: column; align-items: stretch; }
  .decide-actions:has(> .decide-more[open]) > * { flex: none; }
}

/* Sample video: the change box always open beside the player (stacked under it below 900px); earlier versions under the player */
.watch-change { margin: 0 0 var(--s4); }
.watch-col { min-width: 0; }
.change-box { margin: 0 0 var(--s4); border-color: var(--soap); }
.change-box form { margin: 0; }
.change-box .field textarea { min-height: 180px; }
.versions { margin: 0 0 var(--s4); }
.versions h3 { margin: 0 0 var(--s2); font-size: 16px; }
.version-row { justify-content: flex-start; gap: var(--s1) var(--s2); }
.version-note { white-space: pre-line; overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .watch-change { display: grid; grid-template-columns: minmax(0, 420px) minmax(280px, 1fr); gap: var(--s4) var(--s6); align-items: start; }
  .watch-change .player { margin-bottom: var(--s3); }
}

/* Waiting: one list from every brand, the whole row is the link */
.waiting-list { overflow: hidden; }
.waiting-row { padding: 0; }
.waiting-link { display: flex; flex: 1 1 100%; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: var(--s2) var(--s3); padding: var(--s4); color: var(--ink); text-decoration: none; transition: background .15s; }
.waiting-link:hover { color: var(--ink); background: var(--raise); }
.waiting-link:active { background: var(--raise-hover); }
.waiting-link:focus-visible { outline-offset: -3px; }
.waiting-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.waiting-title { font-weight: 700; overflow-wrap: anywhere; }
.waiting-link:hover .waiting-title { color: var(--brand); }
.waiting-since { font-size: 14px; white-space: nowrap; }
.is-yours { box-shadow: inset 3px 0 0 var(--brand); }

/* Activity: who did what, newest first. Filters stack on a phone, sit in one line from 640px */
.activity-filter { display: grid; grid-template-columns: 1fr; gap: 0 var(--s3); margin: 0 0 var(--s4); }
.activity-filter .field { margin-bottom: var(--s3); }
.activity-filter .btn { margin-bottom: var(--s4); }
.activity-row { align-items: flex-start; padding: var(--s4); }
.activity-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 240px; }
.activity-line, .activity-target { margin: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s2); min-width: 0; }
.activity-line > *, .activity-target > * { min-width: 0; overflow-wrap: anywhere; }
.activity-who { font-weight: 700; }
.activity-meta { flex: 0 1 auto; justify-content: flex-end; min-width: 0; }
.activity-refused { color: var(--warn); font-size: 14px; overflow-wrap: anywhere; }
.activity-when { font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.is-refused { box-shadow: inset 3px 0 0 var(--warn); }
@media (min-width: 640px) {
  .activity-filter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
  .activity-meta { max-width: 45%; }
}

/* View-only mode: each action form sits in its own disabled fieldset with a "View only" note beside it.
   Filters, Get the video and sign-out are outside, so they stay usable. */
.read-only { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.read-only > form { flex: 1 1 auto; min-width: 0; }
.read-only > legend.ro-note { float: left; padding: 0; color: var(--muted); font-size: 14px; }
.read-only button[disabled], .read-only :disabled { cursor: not-allowed; opacity: .55; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .btn:hover { transform: none; }
}

/* the public view page (/v/<token>): the logo, one player, one line. No navigation */
.public-page { max-width: 520px; margin: 0 auto; padding: var(--s8) var(--s4) var(--s12); display: flex; flex-direction: column;
  align-items: center; gap: var(--s5); text-align: center; }
.public-logo { display: block; height: 28px; width: auto; }
.public-video { display: block; width: 100%; max-height: 80vh; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-sm); }
.public-made { margin: 0; }

/* שלב 4, משימה 10: מה שנשלח בבקשה (הדף "נשלח"), עם שורות */
.pre-line { white-space: pre-line; overflow-wrap: anywhere; }
.truth-options summary { cursor: pointer; margin: .5rem 0; }

/* --- networks & publishing --- */
/* Networks tab: one block per home character; a disconnected account carries its own orange note with Reconnect */
.net-unit { margin: 0 0 var(--s8); }
.net-check { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); margin: 0 0 var(--s4); }
.net-check > p { margin: 0; }
.net-check > .alert { flex: 1 1 100%; margin: 0; }
.net-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); min-width: 0; }
.net-line > * { min-width: 0; overflow-wrap: anywhere; }
.row .alert { flex: 1 1 100%; margin: var(--s2) 0 0; }
.row .alert p { margin: 0 0 var(--s2); }
.row .alert p:last-child { margin-bottom: 0; }
.net-found .check { margin: 0; min-width: 0; }
.net-found .check span { overflow-wrap: anywhere; }
.net-env { display: flex; align-items: center; gap: var(--s2); }
.net-env select { min-height: 40px; padding: var(--s1) var(--s3); border: 1px solid var(--field-line); border-radius: var(--r-sm);
  background: var(--card); color: var(--ink); font: inherit; }
.net-env select:focus { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: 2px; }
.net-connect { margin: 0 0 var(--s2); }
.net-connect > form, .net-connect > .read-only { flex: 0 1 auto; }
.net-link h2 { margin-top: 0; }
.net-link .btn { max-width: 100%; overflow-wrap: anywhere; }
/* Calendar tab: a day per row and a posting time per column; on a phone each day becomes a card of time slots */
.cal-unit { margin: 0 0 var(--s8); }
.cal-table { table-layout: fixed; }
.cal-table th[scope="row"] { color: var(--ink); white-space: nowrap; }
.cal-table td:last-child { white-space: normal; }
.cal-cell > * { margin: 0 var(--s1) var(--s1) 0; }
.cal-title, .cal-nets { display: block; overflow-wrap: anywhere; }
.cal-nets { font-size: 13px; }
.cal-time { display: none; }
.cal-past, .cal-empty { color: var(--muted); }
@media (max-width: 639px) {
  .cal-table, .cal-table tbody { display: block; background: none; border: 0; }
  .cal-table thead { display: none; }
  .cal-table tr.cal-day { display: block; margin: 0 0 var(--s3); background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r); overflow: hidden; }
  .cal-table th[scope="row"] { display: block; border-top: 0; }
  .cal-table td.cal-cell { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); }
  .cal-cell > * { margin: 0; }
  .cal-time { display: inline; min-width: 3.5em; font-variant-numeric: tabular-nums; color: var(--muted); }
}
/* Posting panel on the video page */
.publish { margin: var(--s6) 0 0; }
.pub-form { margin: 0 0 var(--s4); }
.pub-nets { border: 0; margin: 0 0 var(--s4); padding: 0; min-width: 0; }
.pub-nets legend { padding: 0; margin: 0 0 var(--s2); font-size: 14px; font-weight: 500; }
.pub-nets .check span { overflow-wrap: anywhere; }
.pub-nets input:disabled { cursor: not-allowed; }
.pub-actions { margin: 0 0 var(--s4); }
.pub-move { margin: 0; min-width: 12em; }
.pub-done { margin: 0 0 var(--s4); }
.pub-done > summary { margin: 0 0 var(--s3); }
/* Comment replies tab */
.auto-unit { margin: 0 0 var(--s8); }
.auto-settings { margin: 0 0 var(--s4); }
.auto-message { white-space: pre-line; overflow-wrap: anywhere; margin: 0 0 var(--s3); }
.auto-what { overflow-wrap: anywhere; }
.auto-set { margin: var(--s2) 0 0; }
.auto-set > summary { margin: 0 0 var(--s3); }

/* בן, 2.12.2026: סימן טעינה מסתובב בזמן שהשרת מבצע בקשה; תמונה קטנה ברשימת המוצרים; סימון של תמונה שנבחרה */
.spinner { display: inline-block; width: 1em; height: 1em; margin-right: .6em; vertical-align: -.15em; border: 2px solid var(--line);
  border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.pick-state { min-height: 1.6em; margin: 0 0 var(--s3); }
.pick-state .tag { margin-right: var(--s2); }
.btn-picked { border-color: var(--brand); color: var(--brand); }
.row-thumb { display: flex; align-items: center; gap: var(--s4); }
.thumb { width: 56px; height: 56px; flex: none; object-fit: cover; border-radius: var(--r-sm); background: var(--bg); }
.thumb-empty { border: 1px dashed var(--line); }

/* רצוי, לא חובה (בן, 2.12.2026) */
.wanted { margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: .92rem; columns: 2; }
.wanted a { color: inherit; }

/* Character pages (read only): list tiles, photo gallery, traits table, video clips */
.char-card { display: flex; flex-direction: column; gap: var(--s3); transition: border-color .15s; }
.char-card:hover { border-color: var(--field-line); }
.char-card h2 { margin: 0; font-size: 18px; min-width: 0; }
.char-card h2 a { text-decoration: none; }
.char-card p { margin: 0; overflow-wrap: anywhere; }
.char-thumb { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: var(--bg);
  border-radius: var(--r-sm); }
span.char-thumb { border: 1px dashed var(--field-line); }
.char-tagline { margin: 0 0 var(--s2); overflow-wrap: anywhere; }
.char-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
.char-layout h2, .char-videos h2 { margin-top: 0; }
.char-layout section { min-width: 0; margin: 0 0 var(--s6); }
.gallery a { display: block; border-radius: var(--r-sm); }
.gallery-main { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: var(--bg); border-radius: var(--r-sm); }
.gallery-thumbs { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.gallery-thumbs img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; background: var(--bg);
  border-radius: var(--r-sm); }
.gallery-thumbs .photo-empty { min-height: 0; aspect-ratio: 1; margin: 0; padding: var(--s2); font-size: 13px; flex-direction: column; }
.gallery figcaption, .clips figcaption { margin: var(--s2) 0 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.gallery figure, .clips figure { margin: 0; }
.traits { width: 100%; border-collapse: collapse; }
.traits th, .traits td { padding: var(--s3) 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.traits tr:first-child th, .traits tr:first-child td { border-top: 0; padding-top: 0; }
.traits tr:last-child th, .traits tr:last-child td { padding-bottom: 0; }
.traits th { width: 40%; padding-right: var(--s3); color: var(--muted); font-weight: 400; font-size: 14px; }
.prose { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.chips { list-style: none; margin: 0 0 var(--s4); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips .tag { white-space: normal; font-size: 13px; color: var(--ink); }
.clips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--s4); }
.clip { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 80vh; background: var(--bg); border-radius: var(--r-sm); }
.clips .photo-empty { aspect-ratio: 9 / 16; min-height: 0; margin: 0; }
@media (min-width: 640px) {
  .gallery-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .clips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .char-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
}
