/* Vunima – light theme from the Vunima brand book (arculat): paper surface, ink text, anima orange as the brand
   colour (always with dark text on it), teal as the second colour. Fonts: Bricolage Grotesque (headings) and
   Manrope (text), served from this server (no Google Fonts call). */

@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/static/fonts/bricolage-grotesque-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/static/fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/static/fonts/bricolage-grotesque-latin-ext-800-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/static/fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/static/fonts/manrope-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/static/fonts/manrope-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/static/fonts/manrope-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/static/fonts/manrope-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/static/fonts/manrope-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/static/fonts/manrope-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* palette – Vunima design tokens (light theme); change these to retheme everything */
  --paper: #FAF6F0;       /* surface */
  --surface: #FFFFFF;     /* surface-raised */
  --ink: #16131F;
  --ink-2: #3B3645;
  --muted: #5E5868;       /* ink-muted */
  --line: #E6DFD5;
  --line-strong: #CFC6BA;
  --control: #8A8393;     /* control borders (inputs) */
  --brand: #FF5B2E;       /* anima */
  --on-brand: #16131F;    /* on-anima: text on orange is always dark */
  --brand-hover: #FF7650;
  --brand-ink: #B83A12;   /* anima-text: links and highlighted text */
  --brand-tint: #FFE3D8;  /* anima-soft */
  --brand-ring: rgba(255, 91, 46, .35);
  --teal: #0F6B68; --teal-soft: #D7ECE9;
  --lumen: #FFC94A;

  --ok: #0F6B68;   --ok-bg: #D7ECE9;
  --wait: #8A5A12; --wait-bg: #FBF0DC;
  --busy: #3E4F6B; --busy-bg: #E9EDF4;
  --bad: #A3302A;  --bad-bg: #FBE8E6;

  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-tile: 16px; --r-phone: 34px; --r-pill: 999px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --side: 248px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 500 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; font-family: var(--font-display); font-weight: 700; }
h1 { font-size: 32px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 19px; line-height: 1.25; }
h3 { font-size: 16px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.nav .count, .tabs .n { font-variant-numeric: tabular-nums; }
.small { font-size: 13px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── app shell ───────── */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side {
  align-self: start;
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--line); padding: 22px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; padding: 0 8px 22px; }
.brand svg { flex: none; }
.brand b { font: 700 20px/1 var(--font-display); letter-spacing: -.02em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-radius: var(--r); color: var(--ink-2); text-decoration: none; font-weight: 500;
  position: relative;
}
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-ink); font-weight: 700; }
.nav .count {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center;
  background: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 700;
}
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 8px 0; font-size: 13px; }
.side-foot a { color: var(--ink-2); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; }
.side-foot a:hover { color: var(--ink); }
/* a button that looks like a link (Kijelentkezés, Törlés): must override the filled button look, hover included */
.linkbtn { background: none; border: 0; padding: 0; height: auto; margin-top: 6px; font: inherit; color: var(--muted);
  cursor: pointer; border-radius: 0; }
.linkbtn:hover, .linkbtn:active { background: none; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }

.main { min-width: 0; padding: 34px 40px 60px; }
.wrap { max-width: 1180px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.head p { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
.back { display: inline-block; margin-bottom: 14px; font-size: 14px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--brand-ink); }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; gap: 8px; padding: 10px 14px; overflow-x: auto; }
  .brand { padding: 0 8px 0 0; }
  .brand b { display: none; }
  .nav { flex-direction: row; }
  .nav a { white-space: nowrap; padding: 8px 10px; }
  .side-foot { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; gap: 12px; align-items: center; white-space: nowrap; }
  .side-foot a { display: none; }
  .linkbtn { margin: 0; }
  .main { padding: 22px 16px 48px; }
  h1 { font-size: 25px; }
}

/* ───────── surfaces ───────── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 20px; }
.panel > h2 { margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.section { padding: 22px 0; border-top: 1px solid var(--line); }
.section:first-child { border-top: 0; padding-top: 0; }
.section > h3 { margin-bottom: 4px; }
.section > .muted { margin-bottom: 12px; font-size: 14px; }

.alert { padding: 12px 16px; border-radius: var(--r); margin-bottom: 18px; border: 1px solid; font-size: 14px; }
.alert.ok { background: var(--ok-bg); border-color: #B5D8D3; color: #0B4F4C; }
.alert.err { background: var(--bad-bg); border-color: #F0C7C2; color: #7A211C; }
.alert.info { background: var(--wait-bg); border-color: #EFD9B0; color: #5E3D0A; }
.alert div + div { margin-top: 4px; }

/* ───────── buttons ───────── */
.btn, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--r-pill); border: 1px solid transparent; font: 700 14px/1 var(--font); cursor: pointer;
  text-decoration: none; white-space: nowrap; background: var(--brand); color: var(--on-brand);
}
.btn:hover, button:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn.ghost, button.ghost { background: var(--surface); color: var(--ink); border-color: var(--control); }
.btn.ghost:hover, button.ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--ink-2); }
button.danger { background: var(--surface); color: var(--bad); border-color: #EBC3BF; }
button.danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn.sm, button.sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn.lg, button.lg { height: 46px; padding: 0 22px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions form { display: contents; }

/* ───────── forms ───────── */
label.field { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
label.field:first-child { margin-top: 0; }
.hint { display: block; color: var(--muted); font-weight: 400; font-size: 13px; margin-top: 2px; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--control); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font: 400 15px/1.45 var(--font);
}
textarea { min-height: 104px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8A8393; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
input[type=number] { width: 120px; }
select { appearance: none; padding-right: 36px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237A6F73' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; }

/* toggle pills (checkbox / radio) */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-opt { position: relative; }
.pill-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill-opt span {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 99px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 14px;
  user-select: none;
}
.pill-opt input:hover + span { border-color: var(--ink-2); }
.pill-opt input:checked + span { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-ink); font-weight: 700; }
.pill-opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-ring); }
.pill-opt input:disabled { cursor: not-allowed; }
.pill-opt input:disabled + span { border-style: dashed; color: var(--muted); background: transparent; }
.pills.days .pill-opt span { width: 46px; justify-content: center; padding: 0; }

/* segmented control (radio) */
.seg { display: inline-flex; padding: 3px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; gap: 2px; flex-wrap: wrap; }
.seg .pill-opt span { border: 0; height: 34px; border-radius: 9px; background: transparent; }
.seg .pill-opt input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(22,19,31,.12), 0 0 0 1px var(--line); }

.checkline { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.checkline input { width: 18px; height: 18px; accent-color: var(--brand); }

.form-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 36px; }
@media (max-width: 980px) { .form-grid { grid-template-columns: 1fr; } }
.form-foot { display: flex; gap: 8px; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 6px; }

/* ───────── status chips ───────── */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px;
  font-size: 12px; font-weight: 700; background: var(--paper); color: var(--ink-2); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ready, .chip.review { background: var(--wait-bg); color: var(--wait); }
.chip.approved, .chip.delivered { background: var(--ok-bg); color: var(--ok); }
.chip.error, .chip.failed { background: var(--bad-bg); color: var(--bad); }
.chip.changes_requested { background: #FCEBDD; color: #8E4A14; }
.chip.queued, .chip.generating, .chip.production { background: var(--busy-bg); color: var(--busy); }
.chip.rejected, .chip.closed, .chip.brief { background: #EFEAE3; color: var(--muted); }
.chip.active { background: var(--ok-bg); color: var(--ok); }
.chip.paused { background: #EFEAE3; color: var(--muted); }
.chip.plain::before { display: none; }

/* ───────── video wall (the 9:16 tiles) ───────── */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 12px; margin-bottom: -1px; color: var(--muted); text-decoration: none; font-weight: 600;
  border-bottom: 2px solid transparent; display: inline-flex; gap: 8px; align-items: center; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.tabs .n { font-size: 12px; color: var(--muted); font-weight: 600; }

.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 26px 18px; }
@media (max-width: 600px) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } .tile .poster .chip { top: 8px; left: 8px; } }
.tile { color: var(--ink); text-decoration: none; display: block; min-width: 0; }
.tile .poster {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-tile); overflow: hidden;
  background: #16131F; outline: 1px solid rgba(22,19,31,.06); outline-offset: -1px;
}
.tile .poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile:hover .poster { outline: 2px solid var(--brand); outline-offset: 2px; }
.tile .poster .chip { position: absolute; top: 10px; left: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.tile .poster .empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; text-align: center;
  color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.4;
  background: #16131F; }
.tile .poster .empty.working { background: #1E1B26; }
.tile .poster .empty.working::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 22px; height: 3px;
  border-radius: 3px; background: linear-gradient(90deg, transparent, var(--brand), transparent); background-size: 200% 100%;
  animation: sweep 1.6s linear infinite; }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.tile .meta { padding: 10px 2px 0; }
.tile .title { font-weight: 700; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.tile .sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--wait);
  margin-bottom: 22px; }

.empty-state { text-align: center; padding: 56px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--muted); }
.empty-state h3 { color: var(--ink); margin-bottom: 6px; font-size: 17px; }

/* composer: shown via #compose:target – no JavaScript */
.compose { display: none; }
.compose:target, .compose.show { display: block; }
.compose-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0 28px; }
@media (max-width: 860px) { .compose-grid { grid-template-columns: 1fr; } }

/* ───────── job detail ───────── */
.job { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 36px; align-items: start; }
.job-side { position: sticky; top: 24px; display: grid; gap: 14px; max-width: 340px; }
.job-side .dl { justify-content: center; }
/* phones/tablets: one column, the player scrolls with the page (must come after the sticky rule) */
@media (max-width: 980px) { .job { grid-template-columns: 1fr; } .job-side { position: static; top: auto; margin: 0 auto; width: 100%; max-width: 300px; } }
.phone { width: 100%; max-width: 340px; aspect-ratio: 9 / 16; border-radius: var(--r-phone);
  background: var(--ink); padding: 9px; box-shadow: 0 24px 48px -20px rgba(22,19,31,.45); }
.phone.f16x9 { aspect-ratio: 16 / 9; border-radius: 18px; padding: 7px; }
.phone.f1x1 { aspect-ratio: 1 / 1; border-radius: 22px; }
.phone.f16x9 video { border-radius: 12px; }
.phone.f1x1 video { border-radius: 16px; }
.phone video, .phone .empty { width: 100%; height: 100%; border-radius: 26px; display: block; object-fit: cover; background: #000; }
.phone .empty { display: grid; place-items: center; color: rgba(255,255,255,.7); text-align: center; padding: 24px; font-size: 14px;
  background: #16131F; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

.scenes { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.scenes li { display: grid; grid-template-columns: 30px 1fr; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.scenes li:first-child { border-top: 0; }
.scenes li::before { counter-increment: s; content: counter(s); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.scenes .src { font-size: 12.5px; color: var(--muted); }


/* ───────── themes ───────── */

.rows { list-style: none; margin: 0; padding: 0; }
.list-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(150px, .9fr) auto; gap: 18px; align-items: center;
  padding: 18px 0; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; padding-top: 4px; }
.list-row .name { font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; }
.list-row .name:hover { color: var(--brand); }
.list-row .desc { color: var(--muted); font-size: 13.5px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-row .when { font-size: 14px; }
.list-row .when .muted { font-size: 13px; }
@media (max-width: 980px) { .list-row { grid-template-columns: 1fr; gap: 8px; } }

/* ───────── platforms ───────── */
.panel code { font-size: 12.5px; background: var(--paper); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; word-break: break-all; }

/* ───────── accounts ───────── */
.inline-form { display: flex; gap: 10px; }
.inline-form input { flex: 1; }
@media (max-width: 600px) { .inline-form { flex-direction: column; } }
.accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.account-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; color: var(--ink); text-decoration: none; }
.account-card:hover { border-color: var(--brand); color: var(--ink); }
.account-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.conn-list { list-style: none; margin: 0; padding: 0; }
.conn-list li { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: center; padding: 8px 0;
  border-top: 1px solid var(--line); font-size: 14px; }
.conn-list li:first-child { border-top: 0; }
.conn-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn-list li.on span { color: var(--ok); font-weight: 600; }
.conn-list li.off span { color: var(--muted); }
.conn-list li::before { display: none; }
details.manual > summary { cursor: pointer; color: var(--ink-2); font-size: 14px; font-weight: 600; }
details.manual > summary:hover { color: var(--brand); }
.pick-list { display: flex; flex-direction: column; gap: 8px; }
.pick { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-strong);
  border-radius: var(--r); cursor: pointer; }
.pick:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.pick input { accent-color: var(--brand); width: 18px; height: 18px; }
.pick > span { display: flex; flex-direction: column; }
.warn { color: var(--wait); font-size: 13px; }

/* ───────── auth pages ───────── */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-brand { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 26px; color: var(--ink); }
.auth-brand b { font-size: 20px; font-weight: 800; }
.auth .panel { padding: 28px; }
.auth h1 { font-size: 24px; margin-bottom: 6px; }
.auth .lead { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.auth .row-between { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 12px; }
.auth .below { text-align: center; margin-top: 16px; font-size: 14px; }
.code-input { font-size: 22px !important; letter-spacing: .4em; text-align: center; font-weight: 700; }

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

/* voice picker */
.voice-pick select { flex: 1; min-width: 0; }
.voice-pick button { flex: none; }
.voice-now { margin: 0 0 12px; }

/* ───────── video list: toolbar, list view, pager ───────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.toolbar { display: flex; align-items: center; gap: 12px; margin: -6px 0 18px; flex-wrap: wrap; }
.toolbar select { width: auto; min-width: 180px; padding-top: 7px; padding-bottom: 7px; }
.toolbar .num { margin-left: auto; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.seg a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; font-size: 13px; font-weight: 600;
  color: var(--ink-2); text-decoration: none; }
.seg a + a { border-left: 1px solid var(--line-strong); }
.seg a[aria-current="true"] { background: var(--brand-tint); color: var(--brand-ink); }
.tile .poster .views { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 999px;
  background: rgba(22, 19, 31, .72); color: #fff; font-size: 11.5px; font-weight: 600; }

.table-panel { padding: 0; overflow-x: auto; }
.jobs-table, .data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.jobs-table th, .data-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 12px 14px;
  border-bottom: 1px solid var(--line); white-space: nowrap; }
.jobs-table td, .data-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.jobs-table tbody tr { cursor: pointer; }
.jobs-table tbody tr:hover { background: var(--paper); }
.jobs-table tr:last-child td, .data-table tr:last-child td { border-bottom: 0; }
.jobs-table .r, .data-table .r { text-align: right; }
.jobs-table .th-thumb { width: 44px; padding-right: 0; }
.jobs-table .th-thumb img, .thumb-empty { display: block; width: 36px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--line); }
.jobs-table .t-title { min-width: 220px; }
.jobs-table .t-title a { color: var(--ink); font-weight: 600; text-decoration: none; }
.jobs-table .t-title a:hover { color: var(--brand); }
.jobs-table .chip { position: static; }

.pager { display: flex; justify-content: center; align-items: center; gap: 4px; margin: 28px 0 8px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; padding: 7px 11px; border-radius: var(--r); text-align: center; font-size: 14px;
  font-weight: 600; text-decoration: none; color: var(--ink-2); }
.pager a:hover { background: var(--surface); color: var(--ink); }
.pager .cur { background: var(--brand); color: var(--on-brand); }
.pager .off, .pager .gap { color: var(--line-strong); }
@media (max-width: 700px) {
  .jobs-table th:nth-child(3), .jobs-table td:nth-child(3), .jobs-table th:nth-child(5), .jobs-table td:nth-child(5),
  .jobs-table th:nth-child(8), .jobs-table td:nth-child(8) { display: none; }
  .jobs-table .t-title { min-width: 0; }
}

/* ───────── statistics ───────── */
.stat-acc { margin-bottom: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-card { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--paper); min-width: 0; }
.stat-card.off { opacity: .6; }
.stat-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 8px; }
.stat-head .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-card .big { font-size: 30px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 12px 0 0; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; }
.delta { margin-left: 6px; font-size: 12px; font-weight: 700; }
.delta.up { color: var(--ok); }
.delta.down { color: var(--bad); }
.stat-card .note { margin: 10px 0 0; color: var(--ink-2); }
.video-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.video-stats .stat-card .big { font-size: 22px; }
@media (max-width: 700px) { .video-stats { grid-template-columns: 1fr; } }

/* ───────── backups ───────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: auto; margin: 0; }
.row-actions { display: inline-flex; align-items: center; gap: 8px; position: relative; }
.row-actions .linkbtn { margin: 0; }
.danger-text:hover { color: var(--bad); }
.confirm summary { list-style: none; cursor: pointer; }
.confirm summary::-webkit-details-marker { display: none; }
.confirm[open] .confirm-box { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: 320px; text-align: left;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 14px;
  box-shadow: 0 10px 30px rgba(22, 19, 31, .12); display: grid; gap: 10px; }
.confirm-box p { margin: 0; }
input[type="file"] { font: inherit; }

/* ───────── projects ───────── */
.list-row .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.versions { list-style: none; margin: 0; padding: 0; }
.versions li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 14px; align-items: start;
  padding: 14px 0; border-top: 1px solid var(--line); }
.versions li:first-child { border-top: 0; padding-top: 2px; }
.versions .vthumb { width: 74px; aspect-ratio: 9 / 16; border-radius: 10px; background: var(--paper); object-fit: cover;
  border: 1px solid var(--line); display: block; }
.versions .vtitle { font-weight: 700; color: var(--ink); text-decoration: none; }
.versions .vtitle:hover { color: var(--brand); }
.versions .note-box { margin-top: 8px; font-size: 13.5px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; white-space: pre-wrap; }
.decision { border: 1px solid var(--brand); }
.decision textarea { min-height: 96px; }
.brief-kv dd { white-space: pre-wrap; }
@media (max-width: 600px) { .versions li { grid-template-columns: 56px minmax(0, 1fr); } .versions li > :last-child { grid-column: 1 / -1; } }

/* client materials (project page) */
.materials { list-style: none; margin: 0 0 14px; padding: 0; }
.materials li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--line); }
.materials li:first-child { border-top: 0; padding-top: 0; }
.materials .mthumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--paper);
  border: 1px solid var(--line); display: block; }
.materials .mname { overflow-wrap: anywhere; }
.formats-dl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.formats-dl .btn { flex: 1 1 auto; }

[hidden] { display: none !important; }

/* two-factor setup */
.qr { margin: 12px 0 8px; }
.qr svg { width: 200px; height: 200px; display: block; border-radius: 12px; border: 1px solid var(--line); }
.steps { padding-left: 20px; margin: 0 0 8px; display: grid; gap: 10px; }
.codes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 28px;
  font-size: 17px; letter-spacing: .04em; }
/* data protection page */
.inline-filter { display: flex; gap: 8px; align-items: center; }
.inline-filter select { width: auto; min-width: 220px; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
