:root {
  --ink: #14171d;
  --ink-2: #1f242d;
  --ink-line: #2c323d;
  --paper: #f4f2ed;
  --card: #fffdf9;
  --line: #e3ded2;
  --text: #1b1e24;
  --mute: #6d7280;
  --amber: #f5a400;
  --amber-soft: #ffe9b3;
  --amber-ink: #6b4700;
  --ok: #1f8a4c;
  --ok-soft: #dff3e6;
  --info: #2a5db0;
  --info-soft: #e1eafb;
  --err: #b93a2b;
  --err-soft: #fbe4e0;
  --radius: 14px;
  --font: 'Commissioner', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--paper); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }
kbd, code { font-family: var(--mono); font-size: .85em; background: rgba(20, 23, 29, .07); border-radius: 5px; padding: 1px 6px; }
.muted { color: var(--mute); font-size: .875rem; }

/* ── Shell ─────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.main { padding: 28px 32px 64px; min-width: 0; }
.page { max-width: 1120px; display: grid; gap: 18px; }

.rail { background: var(--ink); color: #e9e6df; display: flex; flex-direction: column; gap: 28px; padding: 26px 18px 20px; position: sticky; top: 0; height: 100vh; }
.wordmark { text-decoration: none; display: grid; line-height: 1; padding: 0 8px; }
.wordmark span { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: #9aa0ac; }
.wordmark strong { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.wordmark i { color: var(--amber); font-style: normal; }
.rail-nav { display: grid; gap: 4px; }
.rail-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: #b9bdc7; font-weight: 600; }
.rail-nav a:hover { background: var(--ink-2); color: #fff; }
.rail-nav a.is-on { background: var(--amber); color: var(--ink); }
.rail-nav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail-foot { margin-top: auto; display: grid; gap: 12px; }
.rail-meter small { color: #9aa0ac; font-size: .75rem; }
.rail-meter { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--ink-line); text-decoration: none; }
.rail-meter b { font-family: var(--mono); font-size: 1.35rem; color: #fff; }
.rail-meter:hover { border-color: var(--amber); }

/* ── Common ────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.card h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin-bottom: 12px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.card h2 .muted { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .8125rem; }
.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-ink); }
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.work-head h1 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.work-note { font-family: var(--mono); font-size: .8125rem; color: var(--mute); }
.page .work-head { margin-bottom: 0; }

.btn { font: inherit; font-weight: 700; border: 1.5px solid transparent; border-radius: 10px; padding: 10px 16px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); font-weight: 600; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.flash { padding: 11px 15px; border-radius: 10px; font-weight: 600; margin-bottom: 16px; }
.flash-ok { background: var(--ok-soft); color: #14613a; }
.flash-error { background: var(--err-soft); color: var(--err); }
.flash-info { background: var(--info-soft); color: var(--info); }

.status { font-style: normal; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #ece8de; color: var(--mute); white-space: nowrap; }
.status-queued { background: var(--amber-soft); color: var(--amber-ink); }
.status-working { background: var(--info-soft); color: var(--info); }
.status-ready { background: var(--ok-soft); color: #14613a; }
.status-failed { background: var(--err-soft); color: var(--err); }
.status-stopped { background: #ece8de; color: var(--mute); }   /* hub #4536: stopped by the customer */
.status-lg { font-size: .875rem; padding: 5px 13px; }

.empty { background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 44px 28px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.empty h2 { font-size: 1.25rem; }

/* ── Forms ─────────────────────────────────────────── */
.field { display: grid; gap: 6px; }
.field + .field, .field + .field-grid, .field-grid + .field { margin-top: 16px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-grid .field { margin-top: 0; }
.field-row { display: flex; gap: 8px; }
.field-row select { flex: 1; min-width: 0; }
label, .label, summary { font-weight: 700; font-size: .875rem; }
label em, .label em { font-style: normal; font-weight: 500; color: var(--mute); margin-left: 4px; }
input:not([type=radio], [type=checkbox], [type=color], [type=file]), select, textarea { font: inherit; width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--amber-soft); }
::placeholder { color: #a39f95; }
summary { cursor: pointer; color: var(--mute); }
details[open] summary { margin-bottom: 6px; }

.segmented { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; width: fit-content; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 8px 16px; font-weight: 600; cursor: pointer; }
.segmented input:checked + span { background: var(--ink); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: -3px; }

/* ── Studio ────────────────────────────────────────── */
.composer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); gap: 28px; align-items: start; max-width: 980px; }
.brief-foot { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.brief-foot .muted { flex: 1; min-width: 200px; }

.draft { position: sticky; top: 28px; }
.draft-frame { --p: #171b23; --s: #ffffff; --a: #ffce6b; background: var(--p); color: var(--s); border-radius: 10px; padding: 9%; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(20, 23, 29, .55); }
.draft-top { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: .875rem; min-height: 46px; }
/* hub #4144, #4147: the chosen brand's logo larger than before (30px) but not too much, centred; a wide logo stops at 60% */
.draft-top img { height: 46px; width: auto; max-width: 60%; object-fit: contain; object-position: center; }
.draft-copy { margin-top: auto; display: flex; flex-direction: column; }
.draft-offer { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--a); letter-spacing: -.03em; overflow-wrap: anywhere; }
.draft-brief { margin-top: 10px; font-size: 1.05rem; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
.draft-brief.is-empty { opacity: .45; }
.draft-offer:empty { display: none; }
.draft-note { margin-top: 10px; text-align: center; }

.canvas { display: grid; grid-template-columns: minmax(280px, 440px) minmax(0, 1fr); gap: 28px; align-items: start; }
.canvas-stage { position: sticky; top: 28px; display: grid; gap: 12px; }
.stage-fit { position: relative; width: 100%; aspect-ratio: var(--w) / var(--h); border-radius: 10px; overflow: hidden; background: var(--ink); box-shadow: 0 22px 48px -20px rgba(20, 23, 29, .6); }
.stage-fit iframe { position: absolute; inset: 0 auto auto 0; border: 0; transform-origin: 0 0; transform: scale(var(--scale, .4)); }
.stage-empty { display: grid; place-items: center; text-align: center; color: #c9cdd6; padding: 24px; background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, .03) 14px 28px); }
.stage-empty b { display: block; color: #fff; font-size: 1.1rem; margin: 14px 0 4px; }
.stage-empty kbd { background: rgba(255, 255, 255, .14); color: #fff; }
.pulse { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.7); opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.stage-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stage-bar .btn { padding: 7px 12px; font-size: .875rem; }
.versions { display: flex; gap: 4px; margin-right: auto; }
.versions a { font-family: var(--mono); font-size: .8125rem; font-weight: 700; padding: 6px 10px; border-radius: 8px; text-decoration: none; border: 1.5px solid var(--line); }
.versions a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.canvas-side { display: grid; gap: 14px; min-width: 0; }
.facts dl { display: grid; gap: 4px; }
.facts dt { font-size: .75rem; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; margin-top: 10px; }
.facts dt:first-child { margin-top: 0; }
.facts .headline { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.brief-text { font-size: 1.02rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.chips li { font-size: .8125rem; font-weight: 600; background: #efebe1; border-radius: 8px; padding: 4px 10px; }
.chips span { color: var(--mute); font-weight: 500; margin-right: 6px; }

.usage-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.usage-strip > div { border-left: 3px solid var(--line); padding-left: 12px; min-width: 0; }
.usage-strip dt { font-size: .75rem; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.usage-strip dd { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.usage-strip small { display: block; font-size: .75rem; color: var(--mute); }
.usage-strip .is-cost { border-left-color: var(--amber); }

.thread { display: grid; gap: 10px; }
.thread h2 { margin-bottom: 2px; }
.msg { padding: 10px 13px; border-radius: 12px; font-size: .9375rem; max-width: 92%; overflow-wrap: anywhere; }
.msg small { display: block; font-size: .75rem; font-weight: 700; color: var(--mute); margin-bottom: 2px; }
.msg-user { background: var(--amber-soft); justify-self: end; }
.msg-studio { background: #efebe1; justify-self: start; }
.thread form { margin-top: 4px; }

/* ── Brands ────────────────────────────────────────── */
.page-wide { max-width: 1320px; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 18px; }
.brand-tile { display: grid; gap: 14px; padding: 16px; align-content: start; }
.brand-tile-body { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.brand-tile h2 { font-size: 1.15rem; text-transform: none; letter-spacing: -.01em; color: var(--text); margin: 0; }
.brand-colors { display: flex; gap: 4px; flex: none; }
.brand-colors i { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(0, 0, 0, .14); }
.logo-set { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.logo-slot { display: grid; gap: 6px; min-width: 0; overflow: hidden; }
.logo-slot input[type=file] { font-size: .8125rem; width: 100%; min-width: 0; }
.logo-panel { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 6px; border-radius: 10px; padding: 14px 10px 8px; height: 128px; border: 1px solid var(--line); }
.logo-panel-light { background: #fff; color: #6d7280; }
.logo-panel-dark { background: #14171d; color: #9aa0ac; border-color: #14171d; }
.logo-panel-icon { background: repeating-conic-gradient(#ece8de 0 25%, #fff 0 50%) 0 0 / 16px 16px; color: #6d7280; }
.logo-panel img { max-width: 100%; max-height: 100%; min-height: 0; width: auto; height: auto; place-self: center; object-fit: contain; }
.logo-panel-icon img { max-height: 64px; }
.logo-panel figcaption { font-size: .625rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-missing { place-self: center; font-size: .8125rem; opacity: .7; }
.brand-form { max-width: 760px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.color-row { display: flex; gap: 14px; flex-wrap: wrap; }
.color { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.color input { width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 10px; padding: 3px; background: #fff; cursor: pointer; }

/* ── Stats ─────────────────────────────────────────── */
.table-card { padding: 6px 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
.stats th, .stats td, .grid-table th, .grid-table td { padding: 12px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.stats thead th, .grid-table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.stats tbody tr:last-child td, .grid-table tbody tr:last-child td { border-bottom: 0; }
.stats tfoot th { border-top: 2px solid var(--ink); border-bottom: 0; font-size: 1rem; }
.stats td small, .grid-table td small { display: block; font-family: var(--font); font-size: .75rem; color: var(--mute); font-weight: 400; margin-top: 2px; }
.num { text-align: right !important; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats td:first-child { min-width: 280px; overflow-wrap: anywhere; }
.cost { font-weight: 700; }
.kind { font-family: var(--mono); font-size: .75rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: #efebe1; margin-right: 6px; white-space: nowrap; }
.kind-hub-task { background: var(--amber-soft); color: var(--amber-ink); }
.method { display: grid; gap: 10px; font-size: .9375rem; }
.method h2 { margin-bottom: 0; }
.prices { font-size: .8125rem; max-width: 760px; }
.prices th, .prices td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.prices th { color: var(--mute); font-weight: 600; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1180px) {
  .studio { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; }
  .canvas { grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }   /* not 1fr: a wide table scrolls inside its card, not the whole page (hub #3339) */
  .rail { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 14px; padding: 14px 16px; }
  .rail-nav { grid-auto-flow: column; max-width: 100%; overflow-x: auto; scrollbar-width: none; }   /* the menu scrolls sideways itself on a phone (hub #3339) */
  .rail-foot { margin: 0 0 0 auto; }
  .rail-meter small:last-child { display: none; }
  .main { padding: 20px 16px 48px; }
  .studio, .canvas, .composer, .brands { grid-template-columns: 1fr; }
  .queue, .canvas-stage, .draft { position: static; max-height: none; }
  .canvas-stage, .draft { max-width: 420px; }
  .usage-strip { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
}

/* Room for the Claude Hub widget docked on the right edge (local prototype only). */
@media (min-width: 961px) { .has-hub .main { padding-right: 104px; } }

/* MP4 export */
.video { display: grid; gap: 8px; }
.video .btn small { font-family: var(--mono); font-weight: 500; opacity: .7; margin-left: 4px; }
.video-progress { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); }
.video-progress-text { display: flex; align-items: center; gap: 10px; }
.video-progress-text .pulse { width: 10px; height: 10px; flex: none; }
.video-progress-text span:last-child { margin-left: auto; font-family: var(--mono); font-weight: 700; }
.video-bar { height: 8px; border-radius: 99px; background: #e9e4d8; overflow: hidden; }
.video-bar i { display: block; height: 100%; background: var(--amber); border-radius: 99px; transition: width .4s linear; }
.video-progress small { color: var(--mute); font-size: .8125rem; }
.video-error { color: var(--err); font-size: .875rem; font-weight: 600; }

/* Brands table */
.grid-table td { vertical-align: middle; }
.row-title { font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.row-title:hover { text-decoration: underline; }
/* what was asked, on the working tab */
.ask { margin-top: 6px; font-size: .875rem; font-weight: 600; color: var(--text); background: var(--amber-soft); border-radius: 8px; padding: 6px 10px; width: fit-content; max-width: 560px; }
.done-block { display: grid; gap: 12px; margin-top: 12px; }
.done-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.done-head h2 { font-size: 1.15rem; }
.done-head h2 i { font-style: normal; font-family: var(--mono); color: var(--mute); margin-left: 4px; }
.done-head p { font-size: .875rem; }
.done-empty { padding: 4px 0 12px; }
.ago { font-family: var(--mono); white-space: nowrap; }.row-actions { text-align: right; white-space: nowrap; }
.row-actions .btn { padding: 7px 12px; font-size: .875rem; }
.logo-set-compact { grid-template-columns: repeat(3, 92px); }
.logo-set-compact .logo-panel { height: 56px; padding: 8px; grid-template-rows: minmax(0, 1fr); }
.logo-set-compact .logo-panel-icon img { max-height: 100%; }

/* Still frames of a concept */
.frame-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.frame { display: grid; gap: 5px; text-decoration: none; text-align: center; }
.frame .stage-fit { display: block; border-radius: 6px; box-shadow: none; border: 1px solid var(--line); }
.frame iframe { pointer-events: none; }
.frame small { font-family: var(--mono); font-size: .75rem; color: var(--mute); }
.frame:hover .stage-fit { border-color: var(--ink); }

/* File picker: the native input is visually hidden, the label is the button */
.file-pick { position: relative; display: grid; gap: 4px; cursor: pointer; font-weight: 600; }
.file-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-pick-btn { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 10px; border: 1.5px dashed #c9c2b2; border-radius: 10px; background: #fff; font-size: .875rem; }
.file-pick-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.file-pick:hover .file-pick-btn { border-color: var(--ink); border-style: solid; }
.file-pick input:focus-visible + .file-pick-btn { outline: 3px solid var(--amber); outline-offset: 2px; }
.file-pick-name { font-size: .75rem; font-weight: 500; color: var(--mute); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.1em; }
.logo-slot.is-new .logo-panel { outline: 2.5px solid var(--amber); outline-offset: -2.5px; }

/* Requests table */
.request-cell { display: flex; align-items: center; gap: 14px; }
.thumb { flex: none; width: 76px; object-fit: cover; aspect-ratio: 4 / 5; border-radius: 6px; border: 1px solid rgba(0, 0, 0, .14); background-size: cover; background-position: center; display: block; }
tr[data-href] { cursor: pointer; }
tr[data-href]:hover td { background: #faf6ec; }
.requests-table td:first-child { min-width: 320px; }

/* Video button states: not produced yet (outlined) vs ready to download (solid green) */
.video .btn svg, .downloads .btn svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.video-make { background: var(--card); color: var(--text); border: 1.5px dashed #b9b2a2; }
.video-make:hover { border-style: solid; border-color: var(--ink); }
.video-ready { background: var(--ok); color: #fff; }
.video-ready:hover { background: #17703d; }

.brand-chip { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; white-space: nowrap; }
.brand-chip img, .brand-chip i { width: 30px; height: 30px; border-radius: 8px; flex: none; object-fit: contain; }
.brand-chip i { display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .875rem; }

/* Options of a request (Α, Β, Γ) */
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 18px; }
.option { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); text-decoration: none; min-width: 0; }
.option img { width: 44px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; flex: none; }
.option span { display: grid; min-width: 0; }
.option small { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.option b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.option:hover { border-color: var(--ink); }
.option.is-on { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--amber); }

/* Credits */
.price { font-family: var(--mono); font-size: .8125rem; font-weight: 700; background: var(--amber); color: var(--ink); border-radius: 99px; padding: 2px 9px; margin-left: 6px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.charge { display: grid; gap: 6px; justify-items: start; }
.rail-credits b span { font-family: var(--font); font-size: .8125rem; font-weight: 500; color: #9aa0ac; }
.delta-plus { color: var(--ok); }
.price-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.price-list > div { border-left: 3px solid var(--amber); padding-left: 12px; }
.price-list b { display: block; font-family: var(--mono); font-size: 1.5rem; }
.price-list small { color: var(--mute); }

/* Social from URL */
.sources ul { display: grid; gap: 10px; }
.sources li { font-size: .9375rem; border-left: 3px solid var(--amber); padding-left: 12px; }
.sources li a { display: block; font-size: .8125rem; color: var(--mute); overflow-wrap: anywhere; }
.count-pick { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; width: fit-content; }
.count-pick input { position: absolute; opacity: 0; }
.count-pick span { display: grid; place-items: center; width: 54px; height: 46px; font-family: var(--mono); font-weight: 700; font-size: 1.1rem; cursor: pointer; border-right: 1.5px solid var(--line); }
.count-pick label:last-child span { border-right: 0; }
.count-pick input:checked + span { background: var(--ink); color: #fff; }
.count-pick label.is-off span { opacity: .35; cursor: not-allowed; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(20, 23, 31, .05) 6px 12px); }   /* hub #5234: above the Mo Live cap */
.count-pick input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: -3px; }
.rule { background: var(--amber-soft); color: var(--amber-ink); border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.rule b { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.from-url { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); gap: 28px; align-items: start; max-width: 1020px; }
@media (max-width: 960px) { .from-url { grid-template-columns: 1fr; } }

/* Decisions waiting for the user */
.badge { margin-left: auto; font-family: var(--mono); font-size: .75rem; font-weight: 700; background: var(--amber); color: var(--ink); border-radius: 99px; padding: 1px 8px; }
.rail-nav a.is-on .badge { background: var(--ink); color: #fff; }
.decision { display: grid; gap: 10px; }
.decision h2 { font-size: 1.2rem; text-transform: none; letter-spacing: -.01em; color: var(--text); margin: 0; }
.decision-meta { font-size: .8125rem; color: var(--mute); }
.decision ol { list-style: decimal; padding-left: 22px; display: grid; gap: 4px; }
.decision-pick { background: var(--amber-soft); color: var(--amber-ink); border-radius: 10px; padding: 10px 14px; }
.decision.is-decided { opacity: .75; }
.decision.is-decided .decision-pick { background: var(--ok-soft); color: #14613a; }
.section-title { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin-top: 10px; }

/* All options of a request as images in the list */
.thumb-row { display: flex; gap: 8px; }
.thumb-row a { display: grid; gap: 3px; text-decoration: none; text-align: center; }
.thumb-row .thumb { width: 80px; }
.thumb-row small { font-size: .6875rem !important; font-weight: 700; color: var(--mute); margin: 0 !important; }
.thumb-row a:hover .thumb { outline: 2.5px solid var(--ink); outline-offset: 1px; }
.requests-table td:first-child { min-width: 200px; }
.requests-table th, .requests-table td { padding-left: 16px; padding-right: 16px; }
.requests-table th:first-child, .requests-table td:first-child { padding-left: 22px; }

.row-title, .brief-text, .work-head h1 { overflow-wrap: anywhere; }

/* Output formats */
.format-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.format-pick input { position: absolute; opacity: 0; }
.format-pick span { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 10px 16px 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.format-pick i { grid-row: span 2; height: 38px; border: 2px solid currentColor; border-radius: 4px; opacity: .55; }
.format-pick b { font-size: .9375rem; }
.format-pick small { font-family: var(--mono); font-size: .75rem; color: var(--mute); }
.format-pick input:checked + span { border-color: var(--ink); background: var(--amber-soft); }
.format-pick input:checked + span i { opacity: 1; background: var(--amber); border-color: var(--ink); }
.format-pick input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.format-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.format-tabs a { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-size: .875rem; background: var(--card); }
.format-tabs i { height: 18px; border: 2px solid currentColor; border-radius: 3px; }
.format-tabs a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.canvas-stage.is-tall .stage-fit { max-width: 330px; }

/* Hover card of a proposal in the requests list: what the concept is + the live animation */
.peek { position: fixed; z-index: 80; width: 300px; background: var(--ink); color: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); display: grid; gap: 10px; pointer-events: none; }
.peek .stage-fit { box-shadow: none; border-radius: 8px; }
.peek small { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.peek b { display: block; font-size: 1.05rem; line-height: 1.25; }
.peek p { font-size: .8125rem; line-height: 1.45; color: #c9cdd6; }
.peek .peek-headline { color: #fff; font-weight: 600; }
.brand-chip-icon img, .brand-chip-icon i { width: 44px; height: 44px; border-radius: 10px; }
.brand-chip-icon i { font-size: 1.1rem; }

/* Same design, new content */
.reuse svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.template-note { display: flex; gap: 16px; align-items: center; background: var(--amber-soft); border-radius: 14px; padding: 12px 16px 12px 12px; margin-bottom: 18px; }
.template-note img { width: 72px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; flex: none; }
.template-note p { font-size: .875rem; color: var(--amber-ink); }
.template-note small { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.template-note b { display: block; font-size: 1.1rem; color: var(--ink); }
.template-note a { display: inline-block; margin-top: 4px; }

/* The stage column must never grow past its track: long button labels wrap instead of pushing it over the side column. */
.canvas-stage { min-width: 0; }
.canvas-stage > * { min-width: 0; max-width: 100%; }
.canvas-stage .btn { white-space: normal; text-align: center; flex-wrap: wrap; row-gap: 2px; }
.stage-bar .btn { flex: 0 1 auto; }

.template-note { cursor: help; }
.template-note .hover-hint { display: block; font-weight: 700; }

/* Rename a request */
.rename { margin-top: 6px; }
.rename summary { font-size: .8125rem; font-weight: 600; color: var(--mute); width: fit-content; }
.rename[open] summary { margin-bottom: 8px; }
.rename form { display: flex; gap: 8px; max-width: 560px; }
.rename .btn { padding: 8px 14px; }
.work-head > div:first-child { min-width: 0; flex: 1 1 240px; }   /* hub #3737: a title is never squeezed to a few letters on a phone — the note goes under it */

.decision-form { display: grid; gap: 8px; justify-items: start; margin-top: 4px; }
.decision .msg { justify-self: stretch; max-width: none; }

/* The size of the artwork on screen: said once, above the preview */
.size-label { display: flex; align-items: center; gap: 9px; font-size: .875rem; }
.size-label i { height: 18px; border: 2px solid currentColor; border-radius: 3px; }
.size-label span, .format-tabs small { font-family: var(--mono); font-size: .75rem; color: var(--mute); }
.format-tabs a.is-on small { color: #c9cdd6; }

/* Requests list: tabs, brand filter, row actions */
.list-filters { display: flex; gap: 14px 24px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.tabs, .brand-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a, .brand-filter a { display: flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); text-decoration: none; font-weight: 600; font-size: .875rem; }
.tabs a { border-radius: 10px; }
.tabs i, .brand-filter i { font-style: normal; font-family: var(--mono); font-size: .75rem; color: var(--mute); }
.tabs a.is-on, .brand-filter a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs a.is-on i, .brand-filter a.is-on i { color: #c9cdd6; }
.brand-filter img { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; background: #fff; }
.row-actions form { display: inline-flex; gap: 4px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 1.5px solid transparent; background: none; cursor: pointer; color: var(--mute); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { border-color: var(--line); color: var(--text); background: #fff; }
.icon-btn-danger:hover { color: var(--err); border-color: var(--err); }

/* Carousels */
.slide-count { display: grid; gap: 6px; margin-top: 10px; }
.slide-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.slide-tabs a { display: grid; gap: 3px; width: 68px; text-decoration: none; text-align: center; border-radius: 8px; padding: 3px; border: 2px solid transparent; }
.slide-tabs .stage-fit { display: block; border-radius: 5px; box-shadow: none; border: 1px solid var(--line); }
.slide-tabs iframe { pointer-events: none; }
.slide-tabs small { font-family: var(--mono); font-size: .75rem; font-weight: 700; color: var(--mute); }
.slide-tabs a.is-on { border-color: var(--ink); background: var(--card); }
.slide-tabs a.is-on small { color: var(--text); }
.about-slide { display: flex; align-items: center; gap: 8px; font-size: .875rem; }
.about-slide select { width: auto; padding: 6px 10px; }
.to-carousel { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; display: grid; gap: 8px; justify-items: start; font-size: .9375rem; }
.to-carousel select { width: auto; padding: 6px 10px; }
.to-carousel input { max-width: 420px; }

/* Rights confirmation for site photos */
.rights { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .9375rem; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.rights input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.rights:has(input:checked) { border-color: var(--ink); background: var(--amber-soft); }
/* hub #4487 / #4492: where the texts and photos may come from — shown always, with or without photos */
.photo-scope { display: grid; gap: 8px; margin: 10px 0 0; }
.photo-scope .label { font-size: .875rem; }

/* Running cost of the request being composed: stays in view while the form scrolls */
.quote { background: var(--ink); color: #fff; border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; }
.quote h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #9aa0ac; margin-bottom: 10px; }
.quote dl { display: grid; gap: 6px; }
.quote dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.quote dd { font-family: var(--mono); font-size: .875rem; white-space: nowrap; color: #c9cdd6; }
.quote .quote-total { border-top: 1px solid var(--ink-line); padding-top: 10px; margin-top: 4px; font-weight: 700; }
.quote .quote-total dd { font-size: 1.35rem; font-weight: 700; color: var(--amber); }
.quote .muted { color: #9aa0ac; margin-top: 8px; }
.quote.is-short .muted { color: #ff8a7a; font-weight: 700; }
.sticky-side { position: sticky; top: 28px; }
@media (max-width: 960px) {
  /* small screens: the summary becomes a bar pinned to the bottom, total first */
  .quote { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; margin: 0; padding: 10px 14px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7); }
  .quote h2, .quote dl > div:not(.quote-total) { display: none; }
  .quote .quote-total { border: 0; padding: 0; margin: 0; }
  .quote .muted { margin-top: 2px; font-size: .75rem; }
  .sticky-side { position: static; }
  .main:has(.quote) { padding-bottom: 120px; }
}
}

/* Pricing page */
.pricing-table td:first-child { min-width: 200px; }
.pricing-table td.why { color: #4a4f5a; font-size: .9375rem; }
.big-credit { font-family: var(--mono); font-size: 1.35rem; font-weight: 700; }
.note-box { background: var(--amber-soft); color: var(--amber-ink); border-radius: 12px; padding: 14px 16px; font-size: .9375rem; }
.prose { display: grid; gap: 10px; font-size: .9375rem; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 4px; }
.steps-list { list-style: decimal; padding-left: 22px; display: grid; gap: 6px; margin: 4px 0 16px; }   /* hub #4373: Admin → Backup, Dropbox steps */

/* Admin area */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--line); padding-bottom: 12px; }
.admin-tabs a { padding: 7px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .9375rem; color: var(--mute); }
.admin-tabs a:hover { background: var(--card); color: var(--text); }
.admin-tabs a.is-on { background: var(--ink); color: #fff; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.admin-card { display: grid; gap: 4px; text-decoration: none; align-content: start; }
.admin-card:hover { border-color: var(--ink); }
.admin-card h2 { margin-bottom: 6px; }
.admin-card b { font-family: var(--mono); font-size: 1.6rem; line-height: 1.2; }
.admin-card small { color: var(--mute); font-size: .8125rem; }
.admin-card p { margin-top: 10px; font-size: .9375rem; color: #4a4f5a; }
.spec h2 { font-size: 1.05rem; text-transform: none; letter-spacing: 0; color: var(--text); margin-bottom: 4px; }
.spec ul { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.spec li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: .9375rem; }
.spec li i { font-style: normal; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 6px; padding: 3px 8px; height: fit-content; text-align: center; }
.must { background: var(--ink); color: #fff; } .should { background: var(--amber-soft); color: var(--amber-ink); } .ask { background: var(--info-soft); color: var(--info); }
.copy-box { position: relative; }
.copy-box textarea { font-family: var(--mono); font-size: .8125rem; line-height: 1.55; min-height: 420px; background: #fff; }
.copy-box .btn { position: absolute; right: 12px; top: 12px; padding: 6px 12px; font-size: .8125rem; }

.made-in { font-size: .9375rem; margin-bottom: 12px; }
.made-in .muted { display: block; font-size: .75rem; }

/* Requests table: fit seven columns without sideways scrolling */
.requests-table th, .requests-table td { padding-left: 10px; padding-right: 10px; }
.requests-table th:first-child, .requests-table td:first-child { padding-left: 22px; min-width: 170px; }
.requests-table td:last-child { padding-right: 14px; }
.thumb-row { gap: 6px; }
.thumb-row .thumb { width: 70px; }
.requests-table .row-actions form { gap: 0; }
.requests-table .icon-btn { width: 32px; height: 32px; }

.slide-tabs .all-slides { width: auto; align-self: center; margin-left: auto; padding: 9px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; font-size: .875rem; white-space: nowrap; }
.slide-tabs .all-slides:hover { background: #000; }

/* The total plan */
.plan-now { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.plan-now a, .plan-now span { background: #efebe1; border-radius: 10px; padding: 8px 14px; text-decoration: none; font-size: .9375rem; }
.plan-now a:hover { background: var(--amber-soft); }
.plan-now b { font-family: var(--mono); font-size: 1.1rem; margin-right: 4px; }
.plan-jump { display: flex; gap: 6px; flex-wrap: wrap; }
.plan-jump a { padding: 6px 12px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); text-decoration: none; font-weight: 600; font-size: .8125rem; }
.plan-jump a:hover { border-color: var(--ink); }
.plan-jump i { font-style: normal; font-family: var(--mono); color: var(--mute); margin-left: 4px; }
.plan { scroll-margin-top: 20px; }
.plan h2 { font-size: 1.15rem; text-transform: none; letter-spacing: -.01em; color: var(--text); margin-bottom: 4px; }
.plan-first { border-color: var(--ink); border-width: 2px; }
.plan-intro { color: #4a4f5a; font-size: .9375rem; max-width: 820px; }
.plan-bar { height: 6px; border-radius: 3px; background: #ece8de; margin: 12px 0 6px; overflow: hidden; }
.plan-bar i { display: block; height: 100%; background: var(--ok); border-radius: 3px; transition: width .3s; }
.plan ul { display: grid; }
.plan li { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; scroll-margin-top: 20px; }
.plan-tools { display: flex; gap: 8px; align-items: center; padding: 10px 4px; flex-wrap: wrap; justify-content: flex-end; }
.plan-tool { font: inherit; font-size: .8125rem; font-weight: 600; color: var(--mute); background: none; border: 1.5px solid var(--line); border-radius: 99px; padding: 4px 12px; cursor: pointer; white-space: nowrap; }
.plan-tool:hover { border-color: var(--ink); color: var(--text); }
.plan-task { font-family: var(--mono); font-size: .75rem; background: var(--amber-soft); border-radius: 99px; padding: 4px 10px; text-decoration: none; white-space: nowrap; margin-left: 6px; }
.plan-note { grid-column: 1 / -1; padding: 0 4px 14px 40px; display: grid; gap: 8px; }
.plan-note textarea { width: 100%; font: inherit; font-size: .9375rem; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; resize: vertical; background: #fffdf7; }
.plan-note textarea:focus { outline: none; border-color: var(--ink); }
.plan-note-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plan-note-actions .btn { padding: 6px 14px; font-size: .875rem; }
@media (max-width: 640px) { .plan li { grid-template-columns: minmax(0, 1fr); } .plan-tools { justify-content: flex-start; padding: 0 4px 10px 40px; } }.plan li:last-child { border-bottom: 0; }
.plan label { display: flex; gap: 14px; align-items: flex-start; padding: 12px 4px; font-weight: 500; font-size: .9688rem; cursor: pointer; }
.plan label:hover { background: #faf6ec; }
.plan input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--ok); }
.plan small { display: block; color: var(--mute); font-size: .8125rem; margin-top: 3px; }
.plan input:checked + span { color: var(--mute); text-decoration: line-through; text-decoration-color: rgba(109, 114, 128, .5); }
.plan input:checked + span small { text-decoration: none; }
.plan-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--mono); font-size: .75rem; margin-right: 8px; text-decoration: none; }

/* Studio – Currently Working */
.rail-nav a.rail-sub { margin-left: 30px; padding: 7px 12px; font-size: .875rem; }
.rail-sub .pulse, .tab-working .pulse { width: 9px; height: 9px; flex: none; }
.pulse.is-idle { background: #5b616e; animation: none; }
.rail-nav a.is-on .pulse { background: var(--ink); }

.brands-table td:first-child { min-width: 180px; }

/* Delete a brand */
.btn-danger { background: var(--err); color: #fff; }
.btn-danger:hover { background: #962c20; }
.danger-zone { display: grid; gap: 12px; }
.danger-zone h2 { color: var(--err); }
.danger-options { display: grid; gap: 8px; }
.danger-options label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 500; }
.danger-options label:has(input:checked) { border-color: var(--ink); background: #faf6ec; }
.danger-options label.is-off { opacity: .5; cursor: not-allowed; }
.danger-options input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.danger-options small { display: block; color: var(--mute); font-size: .8125rem; margin-top: 3px; }
.danger-options select { margin: 0 0 0 8px; width: auto; padding: 4px 8px; font-size: .875rem; }
.brand-chip .no-brand { background: #ece8de; color: var(--mute); }
.row-icons { display: inline-flex; gap: 6px; align-items: center; }
.delete-link { margin-top: 18px; }
.delete-link .btn { color: var(--err); }
/* Popups (<dialog>) and tooltips */
.popup { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px rgba(20, 23, 29, .6); color: var(--text); text-align: left; white-space: normal; }
.popup::backdrop { background: rgba(20, 23, 29, .55); }
.popup form { margin: 0; padding: 24px; border: 0; }
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); right: 0; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 600; padding: 4px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 5; }/* Carousel: slide-to-slide transition */
.transition-pick { display: flex; align-items: center; gap: 10px; font-size: .875rem; flex-wrap: wrap; }
.transition-pick label { font-weight: 700; margin: 0; }
.transition-pick select { width: auto; padding: 6px 10px; font-size: .875rem; margin: 0; }
.popup form { display: grid; }
.popup h2 { color: var(--err); }
.popup small { white-space: normal; }
.brands-table th, .brands-table td { padding-left: 14px; padding-right: 14px; }
.brands-table th:first-child, .brands-table td:first-child { padding-left: 22px; }

/* Brand picker (select with icons and search) */
.brand-picker { position: relative; flex: 1; min-width: 0; }
.brand-picker-button { width: 100%; display: flex; align-items: center; gap: 12px; font: inherit; font-weight: 700; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; color: var(--text); }
.brand-picker-button:hover, .brand-picker-button[aria-expanded=true] { border-color: var(--ink); }
.brand-picker-button span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-picker-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.brand-picker img, .brand-picker i { width: 34px; height: 34px; border-radius: 8px; flex: none; object-fit: contain; background: #f4f1ea; display: grid; place-items: center; font-style: normal; font-weight: 800; }
.brand-picker img { padding: 4px; }
.brand-picker-panel { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 0 24px 50px -20px rgba(20, 23, 29, .5); padding: 8px; }
.brand-picker-panel input { width: 100%; margin: 0 0 6px; }
.brand-picker-panel ul { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; display: grid; gap: 2px; }
.brand-picker-panel li { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.brand-picker-panel li:hover, .brand-picker-panel li.is-active { background: #faf6ec; }
.brand-picker-panel li[aria-selected=true] { background: var(--amber-soft); }
.brand-picker-panel li b { display: block; font-size: .9375rem; }
.brand-picker-panel li small { display: block; color: var(--mute); font-size: .75rem; }
.brand-picker-empty { color: var(--mute); font-size: .875rem; padding: 8px; }
.slow { color: var(--err); } .fast { color: var(--ok); }

/* Favourite concepts */
.fav-form { display: inline-flex; margin: 0; }
.fav-star.is-on { color: #c98600; border-color: var(--amber); background: var(--amber-soft); }
.icon-btn.fav-star { font-size: 1.2rem; }
.fav-brand { display: grid; gap: 14px; }
.fav-brand h2 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; text-transform: none; letter-spacing: -.01em; color: var(--text); }
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.fav { display: grid; gap: 8px; align-content: start; }
.fav-thumb { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--line); }
.fav-thumb:hover { border-color: var(--ink); }
.fav-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fav-thumb i { position: absolute; left: 8px; bottom: 8px; font-style: normal; font-family: var(--mono); font-size: .75rem; background: var(--ink); color: #fff; border-radius: 6px; padding: 2px 8px; }
.fav-text small { display: block; color: var(--mute); font-size: .75rem; margin-top: 2px; }
.fav-text .row-title { font-size: .9688rem; }
.fav-actions { display: flex; gap: 6px; align-items: center; justify-content: space-between; }
.fav-actions .btn { padding: 6px 10px; font-size: .8125rem; white-space: normal; text-align: left; }
.fav-actions form { margin: 0; }
/* Carousels: all slides at once (request page) and in the hover preview */
.slides-overview { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 14px; }
.slides-overview a { display: grid; gap: 6px; justify-items: center; text-decoration: none; min-width: 0; }
.slides-overview .stage-fit { width: 100%; }
.slides-overview iframe { pointer-events: none; }
.slides-overview small { font-family: var(--mono); font-weight: 700; color: var(--mute); }
.slides-overview a:hover .stage-fit { outline: 3px solid var(--amber); }
.slide-tabs .all-tab { align-self: center; font-weight: 700; font-size: .8125rem; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--line); text-decoration: none; white-space: nowrap; }
.slide-tabs .all-tab.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.peek-slides { display: flex; gap: 8px; }
.peek-slides .stage-fit { flex: 1; min-width: 0; }.slide-tabs .all-tab { width: auto; display: block; }
@media (min-width: 961px) { .canvas.is-overview { grid-template-columns: minmax(420px, 1.25fr) minmax(0, 1fr); } }

/* Admin → Παραγωγή */
.engine { display: grid; gap: 12px; }
.engine-miss { color: var(--err) !important; font-weight: 600; }
.prose pre { background: var(--ink); color: #fff; border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: .875rem; }

/* Change composer (new version / make it a carousel) */
.change { display: grid; gap: 12px; border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; }
.change:focus-within { border-color: var(--ink); }
.change-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.change-head b { font-size: 1rem; }
.change .segmented span { padding: 6px 14px; font-size: .875rem; }
.change-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.change-label { font-size: .8125rem; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pills input { position: absolute; opacity: 0; }
.pills span { display: block; padding: 5px 13px; border-radius: 99px; border: 1.5px solid var(--line); font-weight: 600; font-size: .875rem; cursor: pointer; }
.pills span:hover { border-color: var(--ink); }
.pills input:checked + span { background: var(--amber-soft); border-color: var(--amber); }
.pills input:focus-visible + span { outline: 3px solid var(--amber); }
.change textarea { margin: 0; background: #fffdf7; resize: vertical; }
.change-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.change-cost { font-size: .875rem; }
/* hub #3739: a «small fix» found to be a big change — nothing charged, the customer chooses */
.change-verdict { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--amber-soft); border: 1.5px solid var(--amber); color: var(--amber-ink); }
.change-verdict p { margin: 0; line-height: 1.45; }
.change-verdict .muted { color: var(--amber-ink); opacity: .85; font-size: .875rem; }
.change-verdict-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.change-verdict-actions .btn { white-space: normal; text-align: center; }
.change-verdict.is-good { background: var(--ok-soft); border-color: var(--ok); color: #14613a; } /* hub #3756: in the customer's favour */
.change-verdict.is-good .muted { color: #14613a; }
.open-changes { display: grid; gap: 12px; margin: 0 0 20px; } /* hub #3919: changes waiting for the customer's choice */
.open-changes > h2 { margin: 0; font-size: 1.125rem; }
.open-changes > .muted { margin: -6px 0 0; }
.open-change a:not(.btn) { color: inherit; text-decoration: underline; }
.open-change form { margin: 0; display: contents; }
.open-change-text { margin: 0; padding: 8px 12px; border-left: 3px solid currentColor; background: rgba(255,255,255,.45); border-radius: 6px; white-space: normal; overflow-wrap: anywhere; }
.open-change-text small { display: block; opacity: .8; margin-bottom: 2px; }
/* hub #4149: the size verdict as a popup right after sending (change_form.php) */
.verdict-popup { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; border-top: 6px solid var(--amber); }
.verdict-popup.is-good { border-top-color: var(--ok); }
.verdict-popup-body { position: relative; display: grid; gap: 12px; padding: 24px; }
.verdict-popup .popup-title { margin: 0 36px 0 0; }
.verdict-popup p { margin: 0; line-height: 1.5; }
.verdict-popup-reason { font-size: 1.0625rem; font-weight: 600; }
.verdict-popup .open-change-text { background: var(--paper); color: var(--text); border-left-color: var(--line); }
.verdict-popup .change-verdict-actions { margin-top: 4px; }
.verdict-popup-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--mute); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.verdict-popup-x:hover, .verdict-popup-x:focus-visible { background: rgba(0,0,0,.06); color: var(--text); }
@media (max-width: 560px) {
  .verdict-popup-body { padding: 20px 16px 16px; }
  .verdict-popup .change-verdict-actions { display: grid; }
  .verdict-popup .change-verdict-actions .btn { width: 100%; min-height: 44px; }
}
.change-cost b { font-family: var(--mono); font-size: 1.25rem; }
/* Studio: everything you can do with a proposal, in one card */
.actions { display: grid; gap: 16px; }
.action-group { display: grid; gap: 8px; }
.action-group + .action-group { border-top: 1px solid var(--line); padding-top: 14px; }
.action-group h3 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); font-weight: 700; }
.action-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.action-row .btn { padding: 9px 14px; font-size: .9375rem; }
.fav-star.is-on, .fav-form .fav-star { white-space: nowrap; }.canvas-side { min-width: 0; }
.canvas-side > * { min-width: 0; max-width: 100%; }
.actions .video .btn { white-space: normal; flex-wrap: wrap; row-gap: 2px; text-align: center; }
@media (max-width: 960px) { .canvas, .canvas.is-overview { grid-template-columns: minmax(0, 1fr); } }

/* Hover preview of a long carousel: a strip that scrolls sideways */
.peek.is-live { pointer-events: auto; }
.peek iframe { pointer-events: none; }
.peek-slides.is-scroll { overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-color: #5b6270 transparent; }
.peek-slides.is-scroll .stage-fit { flex: 0 0 230px; scroll-snap-align: start; }/* #2571: all slides of a carousel one under the other, each at the size of a single stage */
.slides-overview { grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 961px) { .canvas.is-overview { grid-template-columns: minmax(280px, 440px) minmax(0, 1fr); } }
.canvas.is-overview .canvas-stage { position: static; }

.key-form { display: grid; gap: 6px; }
.key-form input { font-family: var(--mono); }
.action-row form { margin: 0; }

/* #2573: request page — downloads under the creative; right: brief, conversation, three clear choices */
.downloads { display: grid; gap: 8px; }
.downloads .video .btn, .downloads .image-download { white-space: normal; flex-wrap: wrap; row-gap: 2px; text-align: center; }
.next { display: grid; gap: 14px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.choice { font: inherit; text-align: left; text-decoration: none; color: var(--text); background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; display: grid; gap: 4px; align-content: start; justify-items: start; }
.choice:hover { border-color: var(--ink); }
.choice.is-on { border-color: var(--ink); background: var(--amber-soft); }
.choice svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.choice b { font-size: .9688rem; line-height: 1.25; }
.choice small { color: var(--mute); font-size: .8125rem; line-height: 1.35; }
.choice .price { margin: 6px 0 0; }
/* #2576: sections that stay closed until clicked */
.fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h2 { margin: 0; }
.fold > summary::after { content: '＋'; font-weight: 700; color: var(--mute); }
.fold[open] > summary::after { content: '−'; }
.fold[open] > summary { margin-bottom: 12px; }
/* #2575: preview drawer (slides up from the bottom) and the eye button that opens it */
.thumb-item { position: relative; display: inline-grid; }
.thumb-eye { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(20, 23, 29, .82); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .12s; }
.thumb-eye svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.thumb-item:hover .thumb-eye, .thumb-eye:focus-visible { opacity: 1; }
.thumb-eye:hover { background: var(--amber); color: var(--ink); }
@media (hover: none) { .thumb-eye { opacity: 1; } }
/* More than three proposals (hub #3339): one row, as wide as three thumbnails (70px + 6px gap, the requests-table sizes),
   scrolled sideways inside the cell; a fade and an arrow say there is more, both gone at the end (scroll-driven, Chrome/Safari 26). */
@property --thumbs-fade { syntax: '<length>'; inherits: false; initial-value: 26px; }
.thumb-scroll { position: relative; timeline-scope: --thumbs; }
.thumb-scroll.many { width: calc(3 * 70px + 2 * 6px); max-width: 100%; }
.thumb-scroll.many .thumb-row { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; scroll-timeline: --thumbs x;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--thumbs-fade)), transparent); mask-image: linear-gradient(to right, #000 calc(100% - var(--thumbs-fade)), transparent);
  animation: thumbs-fade linear both; animation-timeline: --thumbs; border-radius: 6px; }
.thumb-scroll.many .thumb-row::-webkit-scrollbar { display: none; }
.thumb-scroll.many .thumb-row:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.thumb-scroll.many .thumb-item { flex: none; scroll-snap-align: start; }
.thumb-scroll.many::after { content: '›'; position: absolute; right: -4px; top: 34px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 16px/20px var(--font, sans-serif); text-align: center; pointer-events: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); animation: thumbs-arrow linear both; animation-timeline: --thumbs; }
@keyframes thumbs-fade { 0%, 92% { --thumbs-fade: 26px; } 100% { --thumbs-fade: 0px; } }
@keyframes thumbs-arrow { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
.cmp-side .thumb-scroll.many { width: auto; }
.cmp-side .thumb-scroll.many .thumb-row { overflow: visible; -webkit-mask-image: none; mask-image: none; animation: none; }
.cmp-side .thumb-scroll.many::after { display: none; }
.fav .thumb-item { display: grid; }
.fav .thumb-eye { width: 34px; height: 34px; top: 8px; right: 8px; }
.fav .thumb-eye svg { width: 19px; height: 19px; }
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(20, 23, 29, 0); transition: background .22s; }
.drawer.is-open { background: rgba(20, 23, 29, .55); }
.drawer-panel { position: absolute; left: 0; right: 0; bottom: 0; background: var(--ink); color: #fff; border-radius: 22px 22px 0 0; padding: 16px 22px 20px; display: grid; gap: 14px; transform: translateY(100%); transition: transform .22s ease-out; box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, .6); max-height: 94vh; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-panel header { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.drawer-panel header small { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.drawer-panel header b { font-size: 1.15rem; }
.drawer-tools { display: flex; gap: 8px; align-items: center; }
.drawer-tools .btn-ghost { color: #fff; border-color: #4a5160; }
.drawer-tools .btn-ghost:hover { border-color: #fff; }
.drawer-tools .btn-primary { background: var(--amber); color: var(--ink); }
.drawer-tools .icon-btn { color: #fff; font-size: 1.1rem; }
.drawer-tools .icon-btn:hover { background: #2a303b; color: #fff; border-color: #4a5160; }
.drawer-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; scrollbar-color: #5b6270 transparent; justify-content: safe center; }
.drawer-strip figure { margin: 0; flex: none; display: grid; gap: 6px; justify-items: center; scroll-snap-align: center; }
.drawer-strip .stage-fit { width: auto; height: min(64vh, 660px); box-shadow: none; }
.drawer-strip iframe { pointer-events: none; }
.drawer-strip figcaption { font-family: var(--mono); font-size: .75rem; font-weight: 700; color: #9aa1ad; }
.drawer-headline { font-weight: 600; color: #e6e8ec; text-align: center; }
body.has-drawer { overflow: hidden; }
/* Videos page */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; align-items: start; }
.video-card { display: grid; gap: 10px; padding: 12px; }
.video-card video { width: 100%; height: auto; display: block; border-radius: 10px; background: var(--ink); }
.video-card-text small { display: block; color: var(--mute); font-size: .75rem; margin-top: 2px; }
.video-card-text .row-title { font-size: .9688rem; }
.video-card .btn { padding: 8px 12px; font-size: .875rem; }
.video-card .btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Statistics: what was charged to our API key vs what was done through the hub */
.source-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.source-card { display: grid; gap: 4px; text-decoration: none; border-width: 2px; }
.source-card small { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.source-card b { font-family: var(--mono); font-size: 2rem; line-height: 1.1; }
.source-card span { font-family: var(--mono); font-size: .8125rem; color: var(--mute); }
.source-card em { font-style: normal; font-size: .8125rem; color: var(--mute); margin-top: 4px; }
.source-api { border-color: var(--ok); } .source-api small { color: var(--ok); }
.source-hub small { color: var(--amber-ink); }
.source-card.is-on { background: #faf6ec; }
.kind-api-call { background: var(--ok); color: #fff; }
.stats td.cost small { font-family: var(--font); }/* #2596: money really charged to the API key is red, everywhere */
.source-api { border-color: var(--err); } .source-api small, .source-api b { color: var(--err); }
.kind-api-call { background: var(--err); color: #fff; }
.stats tr.is-charged td.cost { color: var(--err); }
.rail-meter.is-charged b { color: #ff8b7b; }
.charged { color: var(--err); font-family: var(--mono); }

/* Statistics: detail of what the API key paid for */
.api-detail { display: grid; gap: 18px; }
.api-request { border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 12px; background: #fff; }
.api-request header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.api-request header small { display: block; color: var(--mute); font-size: .8125rem; margin-top: 2px; }
.api-total { text-align: right; }
.api-total b { font-family: var(--mono); font-size: 1.6rem; color: var(--err); line-height: 1.1; }
.api-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.api-facts div { background: #f7f4ec; border-radius: 10px; padding: 8px 12px; }
.api-facts dt { font-size: .75rem; color: var(--mute); }
.api-facts dd { margin: 0; font-family: var(--mono); font-weight: 700; }
.api-phases { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.api-phases th { font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); text-align: left; padding: 4px 10px 6px 0; }
.api-phases td { padding: 7px 10px 7px 0; border-top: 1px solid var(--line); vertical-align: top; }
.api-phases td small { display: block; color: var(--mute); font-size: .75rem; }
.api-phases .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.api-phases td.cost { color: var(--err); font-weight: 700; }
.api-bar { width: 22%; min-width: 110px; white-space: nowrap; }
.api-bar i { display: inline-block; height: 10px; border-radius: 5px; background: var(--err); vertical-align: middle; max-width: calc(100% - 44px); min-width: 2px; }
.api-bar span { font-family: var(--mono); font-size: .75rem; color: var(--mute); margin-left: 6px; }
.api-variants { display: flex; gap: 10px; flex-wrap: wrap; }
.api-variants span { background: #f7f4ec; border-radius: 10px; padding: 8px 12px; font-family: var(--mono); font-size: .875rem; }
.api-variants small { display: block; font-family: var(--font); color: var(--mute); font-size: .75rem; }
/* Videos page: the creative as a still, not a player */
.video-still { position: relative; display: block; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--line); }
.video-still:hover { border-color: var(--ink); }
.video-still img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-still i { position: absolute; left: 8px; bottom: 8px; font-style: normal; font-family: var(--mono); font-size: .75rem; font-weight: 700; background: var(--ink); color: #fff; border-radius: 6px; padding: 3px 9px; }
/* #2606: the brand sits left of the request title as a small icon */
.request-cell { align-items: flex-start; gap: 10px; }
.request-cell .brand-chip-icon img, .request-cell .brand-chip-icon i { width: 28px; height: 28px; border-radius: 7px; font-size: .8125rem; }
.request-cell .brand-chip-icon { margin-top: 2px; }

/* Admin → Συγκρίσεις (hub vs API) */
.cmp { display: grid; gap: 16px; scroll-margin-top: 20px; }
.cmp-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.cmp-head h2 { font-size: 1.1rem; text-transform: none; letter-spacing: -.01em; color: var(--text); margin: 0; }
.cmp-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.cmp-side { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 12px; align-content: start; background: #fff; }
.cmp-side.is-ours { border-color: var(--ink); }
.cmp-side.is-yours { box-shadow: 0 0 0 3px var(--amber); }
.cmp-label { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .875rem; }
.cmp-label b { font-size: 1rem; }
.cmp-api .cmp-label b { color: var(--err); }
.cmp-side .thumb-row { flex-wrap: wrap; }
.cmp-side .thumb-row .thumb { width: 120px; }
.cmp-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.cmp-facts div { background: #f7f4ec; border-radius: 10px; padding: 8px 10px; }
.cmp-facts dt { font-size: .75rem; color: var(--mute); }
.cmp-facts dd { margin: 0; font-family: var(--mono); font-weight: 700; }
.cmp-facts dd small { display: block; font-family: var(--font); font-weight: 400; font-size: .6875rem; color: var(--mute); }
.cmp-notes h3, .cmp-yours h3 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin-bottom: 6px; }
.cmp-notes p { font-size: .9375rem; margin: 0 0 6px; max-width: 900px; }
.cmp-verdict { background: var(--ink); color: #fff; border-radius: 99px; padding: 2px 10px; margin-left: 8px; text-transform: none; letter-spacing: 0; }
.cmp-yours { display: grid; gap: 8px; justify-items: start; border-top: 1px solid var(--line); padding-top: 14px; margin: 0; }
.cmp-yours textarea { margin: 0; max-width: 700px; }
.video-card-actions { display: flex; gap: 6px; align-items: center; }
.video-card-actions .btn { flex: 1; }
.video-card-actions form { margin: 0; }

/* #2610: smaller cards on the Videos page */
.video-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.video-card { padding: 10px; gap: 8px; }
.video-card-text .row-title { font-size: .875rem; line-height: 1.25; display: block; }
.video-card-text small { font-size: .6875rem; }
.video-card .btn { padding: 6px 8px; font-size: .8125rem; }
.video-card .icon-btn { width: 32px; height: 32px; }
/* production progress and the daily limit */
.doing { display: block; margin-top: 4px; font-size: .75rem; color: var(--mute); font-weight: 600; max-width: 260px; white-space: normal; }
p.doing { font-size: .875rem; max-width: none; }
.limit-bar { height: 10px; border-radius: 5px; background: #ece8de; overflow: hidden; max-width: 420px; }
.limit-bar i { display: block; height: 100%; background: var(--err); border-radius: 5px; }

/* Admin → Ποικιλία */
.variety-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.variety-row a { flex: none; width: 150px; display: grid; gap: 4px; text-decoration: none; }
.variety-row .thumb { width: 150px; border-radius: 8px; display: block; }
.variety-row small { font-size: .6875rem; color: var(--mute); line-height: 1.3; }
.variety-row b { font-size: .75rem; line-height: 1.25; }
.directions { columns: 2 320px; font-size: .875rem; padding-left: 18px; }
.directions li { margin-bottom: 6px; break-inside: avoid; }.page > section, .page > div { min-width: 0; }
.variety-row { max-width: 100%; }

/* Plan: finished items are tucked away under each section */
.plan-done { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }
.plan-done > summary { cursor: pointer; font-size: .8125rem; font-weight: 700; color: var(--mute); list-style: none; display: inline-flex; gap: 6px; align-items: center; padding: 4px 0; }
.plan-done > summary::-webkit-details-marker { display: none; }
.plan-done > summary::before { content: '▸'; }
.plan-done[open] > summary::before { content: '▾'; }
.plan-done > summary i { font-style: normal; font-family: var(--mono); background: #ece8de; border-radius: 99px; padding: 1px 8px; }
.plan-alldone { color: var(--ok); font-weight: 700; font-size: .9375rem; padding: 6px 4px; }
/* failures */
.why-failed { display: block; margin-top: 4px; font-size: .75rem; color: var(--err); max-width: 260px; white-space: normal; line-height: 1.35; }
.fail-detail { background: var(--ink); color: #d6dae2; border-radius: 10px; padding: 12px 14px; font-family: var(--mono); font-size: .75rem; white-space: pre-wrap; overflow-x: auto; margin-top: 8px; }
.fail-row td { vertical-align: top; }
.fail-reason { color: var(--err); font-weight: 600; }

/* which model made it */
.made-with { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
p .made-with { display: inline-flex; margin: 0 0 0 4px; vertical-align: middle; }
.mw { font-style: normal; font-family: var(--mono); font-size: .66rem; letter-spacing: .02em; padding: 2px 7px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); background: transparent; }
.mw-api { color: var(--err); border-color: color-mix(in srgb, var(--err) 35%, transparent); }
.mw em { font-style: normal; opacity: .7; }
.mw-hf { color: var(--amber-ink); background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 55%, transparent); }   /* Higgsfield, the scene of a Plus request (hub #3358) */
.mw-hf.is-planned { border-style: dashed; opacity: .8; }
/* in the Studio lists the chips stack under the status, so a Plus request (Claude + Higgsfield) keeps «Κατάσταση» narrow (hub #3367) */
.requests-table .made-with { flex-direction: column; align-items: flex-start; max-width: 150px; }
.requests-table .mw { white-space: nowrap; }

/* brief examples */
.brief-examples { margin: 10px 0 18px; }
/* the two groups of «Νέο concept» (hub #3345) */
.brief-section { margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.brief-section ~ .brief-section { margin-top: 28px; }
.example-dialog + .field { margin-top: 16px; }   /* the product cards' hidden dialog sits between two fields */
.brief-examples summary { cursor: pointer; font-weight: 600; font-size: .86rem; color: var(--ink); width: fit-content; }
.brief-examples[open] summary { margin-bottom: 8px; }
.brief-example { display: grid; grid-template-columns: 120px 1fr; gap: 12px; width: 100%; text-align: left; background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin-top: 6px; cursor: pointer; font: inherit; font-size: .86rem; line-height: 1.4; color: inherit; }
.brief-example:hover { border-color: var(--ink); }
.brief-example b { font-size: .78rem; }

/* API meter: today big, yesterday and total under it */
.meter-days { display: flex; justify-content: space-between; gap: 8px; margin: 2px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--ink-line); }
.meter-days i { font-style: normal; font-size: .72rem; color: #9aa0ac; }
.meter-days em { font-style: normal; font-family: var(--mono); color: #ffb3a8; }

/* word limit of the brief */
.word-count { margin: 4px 0 0; font-size: .76rem; color: var(--muted); text-align: right; font-family: var(--mono); }
.word-count.is-over { color: var(--err); font-weight: 600; }

/* admin-only toggle on the concept bar */
.btn.admin-only { border-style: dashed; }
.btn.admin-only.is-on { background: var(--ink); color: #fff; border-style: solid; }

/* credit price page */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.stat-row > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.stat-row b { font-family: var(--mono); font-size: 1.25rem; }
.stat-row small { color: var(--muted); font-size: .76rem; }
.stat-row > div.stat-demo { border-style: dashed; } .stat-row > div.stat-demo b { color: var(--muted); }   /* hub #4467: Demo, outside revenue */
tr.is-suggested td { background: color-mix(in srgb, var(--amber) 14%, transparent); }
.price-table td.num small { display: block; }

.price-table td.num { white-space: normal; }
.price-table td.num small { white-space: normal; }

.price-table th { white-space: normal; }
.price-table td, .price-table th { padding-left: 14px; padding-right: 14px; }
.price-table td:first-child { white-space: nowrap; }

/* accounts */
.as-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--err); color: #fff; padding: 10px 18px; border-radius: 12px; margin-bottom: 16px; font-size: .9rem; }
.as-banner .btn { background: #fff; color: var(--ink); border: 0; }
/* hub #3866: an admin page during a visit — amber, not red: nothing here acts on the customer's account */
.as-banner-admin { flex-wrap: wrap; justify-content: flex-start; background: var(--amber); color: var(--ink); }
.as-banner-admin span { flex: 1 1 320px; }
.as-banner-admin .btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
/* hub #3688: the row above every page — Admin (admins only) and the account, at the top right */
.topbar { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
.who { display: flex; justify-content: flex-end; align-items: center; gap: 10px; font-size: .86rem; color: var(--muted); }
.btn-small { padding: 6px 11px; font-size: .8rem; }
.users-table td { vertical-align: top; }
.users-table td small { display: block; }
.users-table tr.is-off td { opacity: .55; }
.users-table .row-actions { display: flex; flex-wrap: wrap; gap: 6px; max-width: 250px; }
.users-table .row-actions form { display: inline; }
.head-actions { display: flex; align-items: center; gap: 14px; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: var(--ink); }
.login { width: min(400px, calc(100vw - 32px)); display: grid; gap: 14px; padding: 28px; }
.login .wordmark { margin: 0; display: grid; }
.login .wordmark span { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.login .wordmark strong { font-size: 1.6rem; }
.login .wordmark i { color: var(--amber); font-style: normal; }
.login h1 { margin: 0; font-size: 1.2rem; }
.user-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.user-actions form { display: inline; }
.users-table td { white-space: normal; }
.users-table td.num { white-space: nowrap; }
.users-table td.num small { white-space: normal; }

.users-table td:first-child { min-width: 230px; }
/* the settings column — the 12th since «has made» became six columns of its own (hub #2929) */
.users-table td:nth-child(12) { min-width: 190px; }
.users-table th:nth-child(n+6):nth-child(-n+11), .users-table td:nth-child(n+6):nth-child(-n+11) { padding-left: 8px; padding-right: 8px; }
.user-actions .btn { padding: 4px 10px; font-size: .76rem; border-radius: 8px; }

/* videos as a table */
.video-table td { vertical-align: middle; }
/* hub #5097: a video that just got ready joins the list with a short amber glow */
.video-table tr.is-new td { animation: video-new 2.4s ease-out; }
@keyframes video-new { from { background: var(--amber-soft); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .video-table tr.is-new td { animation: none; } }
.video-table .pick { width: 30px; text-align: center; padding-left: 14px; padding-right: 0; }
.video-table .pick input { width: 18px; height: 18px; accent-color: var(--amber); cursor: pointer; }
.video-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.video-bulk .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.video-bulk [data-bulk-count] { font-style: normal; opacity: .75; }
.video-bulk small { flex-basis: 100%; }
.video-table td small { display: block; color: var(--muted); font-size: .76rem; }
.video-thumb { position: relative; display: inline-block; }
.video-thumb .thumb { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; display: block; border: 1px solid var(--line); }
.video-table .thumb-eye { opacity: 1; }
.video-table .row-actions { display: table-cell; text-align: right; white-space: nowrap; }
.video-table .row-actions form { display: inline-flex; vertical-align: middle; margin-left: 6px; }
.video-table .row-actions .btn { vertical-align: middle; }
.video-table .btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; }

/* thumbnails of long carousels: no hover preview, the eye is always there */
.thumb-item.eye-only .thumb-eye { opacity: 1; }

/* the DNA page */
.dna-text { background: var(--ink); color: #e3e6ec; border-radius: 12px; padding: 16px 18px; font-family: var(--mono); font-size: .78rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; margin: 8px 0 0; max-height: 620px; overflow: auto; }
.dna-file { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-top: 10px; }
.dna-file summary { cursor: pointer; }
.dna-file summary code, .dna-list code, .dna-tool code { font-family: var(--mono); font-size: .8rem; background: color-mix(in srgb, var(--ink) 7%, transparent); padding: 1px 6px; border-radius: 6px; }
.dna-phase, .dna-tool { margin-top: 22px; }
.dna-phase h3, .dna-tool h3 { margin: 0 0 4px; font-size: 1rem; }
.dna-phase h3 .muted, .dna-tool h3 .muted { font-weight: 400; font-size: .8rem; }
.dna-list { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: .9rem; line-height: 1.5; }

/* admin in groups */
:root { --muted: var(--mute); }
.admin-groups { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.admin-groups a { padding: 9px 18px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--text); background: var(--card); border: 1.5px solid var(--line); }
.admin-groups a:hover { border-color: var(--ink); }
.admin-groups a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-groups a.group-build { border-style: dashed; }
.admin-groups a.group-build.is-on { border-style: solid; }
.admin-groups i, .admin-tabs i { font-style: normal; font-family: var(--mono); font-size: .72rem; background: var(--amber); color: var(--ink); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.admin-tabs { align-items: center; }
.admin-tabs a.is-on { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); }
.admin-tabs-note { margin-left: auto; font-size: .8rem; color: var(--mute); }
.admin-section { margin-top: 26px; }
.admin-section > h2 { font-size: 1.05rem; margin: 0 0 12px; }
.admin-section > h2 .muted { font-weight: 400; font-size: .85rem; color: var(--mute); margin-left: 8px; }
.admin-card h3 { margin: 0 0 6px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
/* the DNA map */
.dna-flow { display: flex; align-items: stretch; gap: 10px; margin-top: 14px; }
.dna-arrow { font-style: normal; align-self: center; font-size: 1.4rem; color: var(--mute); flex: none; }
.dna-node { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--ink); background: var(--card); text-decoration: none; color: inherit; min-width: 0; }
.dna-node > small { font-family: var(--mono); font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.dna-node > b { font-size: 1.1rem; }
.dna-node > b a { color: inherit; text-decoration: none; }
.dna-node > span { font-size: .82rem; line-height: 1.4; color: #4a4f5a; }
.dna-node em, .dna-step em { font-style: normal; font-family: var(--mono); font-size: .72rem; color: var(--err); margin-top: 4px; }
.dna-in, .dna-out { flex: 0 0 150px; border-style: dashed; }
.dna-phase1 { flex: 0 0 190px; background: color-mix(in srgb, var(--amber) 18%, var(--card)); }
.dna-phase2 { flex: 1; background: var(--ink); color: #fff; border-color: var(--ink); }
.dna-phase2 > small { color: #aab0bd; }
.dna-loop { display: flex; align-items: stretch; gap: 6px; margin-top: 8px; }
.dna-loop .dna-arrow { color: #7d8492; font-size: 1rem; }
.dna-step { flex: 1; min-width: 0; display: grid; gap: 3px; align-content: start; padding: 9px 10px; border-radius: 10px; background: #232a38; color: #fff; text-decoration: none; }
.dna-step:hover { background: #2e3749; }
.dna-step b { font-size: .88rem; }
.dna-step code { font-family: var(--mono); font-size: .64rem; color: var(--amber); }
.dna-step span { font-size: .7rem; line-height: 1.35; color: #c3c8d2; }
.dna-step em { color: #ff9c8f; }
.dna-back { margin: 8px 0 0; font-size: .78rem; color: #c3c8d2; }
.dna-sent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 5%, transparent); font-size: .86rem; }
.dna-sent a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.dna-sent a i { font-style: normal; font-family: var(--mono); font-size: .7rem; background: var(--ink); color: #fff; border-radius: 999px; width: 18px; height: 18px; display: inline-grid; place-items: center; }
.dna-sent small { color: var(--mute); font-size: .74rem; }
.dna-alt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 10px; }
.dna-alt a { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: .82rem; line-height: 1.45; text-decoration: none; color: inherit; }
.dna-alt a:hover, .dna-sent a:hover, a.dna-node:hover { border-color: var(--amber); }
@media (max-width: 1250px) { .dna-flow { flex-direction: column; } .dna-flow > .dna-arrow { transform: rotate(90deg); } .dna-in, .dna-out, .dna-phase1 { flex: none; } .dna-loop { flex-wrap: wrap; } .dna-step { flex: 1 1 140px; } .dna-alt { grid-template-columns: 1fr; } }
.dna-phase2 { min-width: 0; }
.dna-loop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: step; }
.dna-loop .dna-arrow { display: none; }
.dna-step { counter-increment: step; }
.dna-step b::before { content: counter(step) ' · '; color: var(--amber); font-family: var(--mono); font-size: .78rem; }
/* the architecture map (views/pages/architecture.php) uses the same boxes, but they are pieces, not steps in an order */
.arch-map .dna-step b::before { content: none; }
.arch-map .dna-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1250px) { .dna-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* environments, payments */
.env { align-self: flex-start; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; padding: 2px 8px; border-radius: 999px; margin-bottom: -18px; }
.env-local { background: #2b3242; color: #aab0bd; }
.env-live { background: var(--err); color: #fff; }
.inline-form { display: inline; }
.inline-form select { padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font: inherit; font-size: .82rem; }
.pay-table td { vertical-align: top; white-space: normal; }
.pay-table td small { display: block; color: var(--mute); font-size: .74rem; }
.pay-table td.num { white-space: nowrap; }
/* hub #4464: the colour of every payment (chip + a subtle row tint + a left stripe), a legend, the «Παραστατικό» column */
.pay-table { --pay-c: var(--mute); --pay-soft: transparent; }
.pay-chip { display: inline-block; font-style: normal; font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; white-space: nowrap; background: #ece8de; color: var(--mute); border: 1px solid transparent; }
.pay-chip-pending  { background: var(--amber-soft); color: var(--amber-ink); border-color: #f0cf7a; }
.pay-chip-paid     { background: var(--ok-soft); color: #14613a; border-color: #b5e0c4; }
.pay-chip-failed   { background: var(--err-soft); color: var(--err); border-color: #f1c2b9; }
.pay-chip-refunded { background: #ece5fb; color: #5b3aa6; border-color: #d3c5f3; }
.pay-chip-gift     { background: #eeece6; color: #4a4f5b; border-color: var(--line); }
.pay-row-pending  { --pay-c: var(--amber); --pay-soft: rgba(245, 164, 0, .07); }
.pay-row-paid     { --pay-c: var(--ok); --pay-soft: rgba(31, 138, 76, .05); }
.pay-row-failed   { --pay-c: var(--err); --pay-soft: rgba(185, 58, 43, .05); }
.pay-row-refunded { --pay-c: #6d4bc2; --pay-soft: rgba(109, 75, 194, .06); }
.pay-row-gift     { --pay-c: #9a9ea8; --pay-soft: transparent; }
.pay-row td { background: var(--pay-soft); }
.pay-row td:first-child { box-shadow: inset 4px 0 0 var(--pay-c); }
.pay-row-failed td:not(:last-child):not(.pay-doc) { color: var(--mute); }
.pay-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 22px 6px; }
.pay-status-form { display: block; margin-top: 6px; }
.pay-price-link { margin: 0 2px; }
.pay-notify { margin-top: 6px; }
.pay-table th, .pay-table td { padding-left: 12px; padding-right: 12px; }
.pay-table td.num small { white-space: normal; max-width: 170px; margin-left: auto; }
.pay-table td:nth-child(3) { min-width: 120px; }
.pay-doc { min-width: 280px; }
.pay-doc-file { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.pay-doc-file small { display: inline !important; margin: 0 !important; }
.pay-doc-kind { display: inline-block; font-size: .8rem; padding: 1px 8px; border-radius: 6px; background: #ece8de; color: var(--text); }
.pay-doc-kind.is-invoice { background: var(--info-soft); color: var(--info); }
.pay-doc-lines { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; margin: 6px 0 4px; font-size: .78rem; line-height: 1.4; }
.pay-doc-lines dt { color: var(--mute); white-space: nowrap; }
.pay-doc-lines dd { margin: 0; overflow-wrap: anywhere; }
.pay-doc > .btn { margin-top: 6px; }
tr.is-off td { opacity: .55; }
.users-table th, .users-table td { padding-left: 12px; padding-right: 12px; }
.users-table td.num { white-space: normal; }
.users-table td.num b { white-space: nowrap; }

/* logged-out pages and my account */
.login-form { display: grid; gap: 14px; }
.login-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 4px 0 0; font-size: .86rem; }
.login-foot { margin: 0; font-size: .8rem; }
.login .flash { margin: 0; }
.login .rights { font-size: .84rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.who a { color: inherit; font-weight: 600; }
.verify-note { border-color: var(--amber); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mail-body { white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: .78rem; line-height: 1.55; background: color-mix(in srgb, var(--ink) 5%, transparent); border-radius: 10px; padding: 12px 14px; margin: 8px 0 0; }
.rail-account { display: grid; gap: 1px; padding: 8px 12px; border-radius: 10px; color: #e9e6df; text-decoration: none; font-weight: 600; font-size: .86rem; }
.rail-account small { color: #9aa0ac; font-weight: 400; font-size: .72rem; }
.rail-account:hover, .rail-account.is-on { background: var(--ink-2); }

/* my account: sub-pages and packs */
.account-tabs { margin-bottom: 18px; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 12px; }
.pack { display: grid; gap: 2px; justify-items: start; border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; }
.pack:hover { border-color: var(--ink); }
.pack > b { font-family: var(--mono); font-size: 1.8rem; line-height: 1; }
.pack > span { font-size: .8rem; color: var(--mute); }
.pack > strong { font-size: 1.15rem; margin-top: 8px; }
.pack > small { color: var(--mute); font-size: .78rem; line-height: 1.4; margin: 4px 0 10px; }
/* the list of pages with «checked» ticks */
.pages-table td { vertical-align: top; }
.pages-table td small { display: block; color: var(--mute); font-size: .74rem; }
.pages-table tr.is-checked td { background: color-mix(in srgb, var(--ok-soft) 45%, transparent); }
.btn-checked { background: #14613a; color: #fff; border-color: #14613a; }

/* admin only: what a pack leaves us */
.pack-profit { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--err); display: grid; gap: 2px; width: 100%; }
.pack-profit b { font-size: .84rem; color: var(--err); }
.pack-profit span { font-size: .7rem; color: var(--mute); line-height: 1.35; }
.pack-profit-note { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--err); font-size: .8rem; line-height: 1.5; }

/* logged-out pages: half the screen shows the service, half holds a compact form */
.auth-page { margin: 0; min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--card); }
.auth-show { background: var(--ink); color: #fff; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; overflow: hidden; position: relative; }
.auth-show .wordmark, .auth-card .wordmark { margin: 0; display: grid; }
.auth-show .wordmark span, .auth-card .wordmark span { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: #9aa0ac; }
.auth-show .wordmark strong { font-size: 1.7rem; color: #fff; }
.auth-show .wordmark i, .auth-card .wordmark i { color: var(--amber); font-style: normal; }
.auth-pitch h2 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1.1; margin: 0 0 12px; font-weight: 800; letter-spacing: -.01em; }
.auth-pitch h2 em { font-style: normal; color: var(--amber); }
.auth-pitch p { margin: 0; max-width: 46ch; color: #c3c8d2; font-size: 1rem; line-height: 1.55; }
.auth-demo { display: grid; justify-items: center; gap: 14px; }
.auth-brief { width: min(420px, 100%); background: #232a38; border: 1px solid #343c4d; border-radius: 14px; padding: 12px 16px; display: grid; gap: 4px; }
.auth-brief small { font-size: .62rem; letter-spacing: .16em; color: var(--amber); font-weight: 700; }
.auth-typed { display: inline-block; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--amber); width: 0; font-size: .95rem; animation: auth-type 9s steps(42) infinite; }
.auth-arrow { color: #7d8492; font-size: 1.2rem; animation: auth-fade 9s infinite; }
.auth-posts { display: flex; gap: 14px; justify-content: center; width: 100%; }
.auth-post { flex: 0 1 150px; aspect-ratio: 4 / 5; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; justify-content: center; gap: 6px; position: relative; overflow: hidden; opacity: 0; transform: translateY(18px) scale(.96); animation: auth-pop 9s infinite; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.auth-post b { font-size: 1.9rem; line-height: 1; font-weight: 800; }
.auth-post span { font-size: .62rem; letter-spacing: .12em; font-weight: 700; }
.auth-post i { position: absolute; left: 14px; bottom: 12px; width: 34px; height: 6px; border-radius: 3px; background: currentColor; opacity: .55; }
.auth-post.p1 { background: var(--amber); color: var(--ink); animation-delay: 0s; }
.auth-post.p2 { background: #fff; color: var(--ink); animation-delay: .35s; }
.auth-post.p3 { background: #c8352b; color: #fff; animation-delay: .7s; }
@keyframes auth-type { 0%, 4% { width: 0; } 30%, 92% { width: 100%; } 100% { width: 0; } }
@keyframes auth-fade { 0%, 30% { opacity: 0; } 38%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes auth-pop { 0%, 36% { opacity: 0; transform: translateY(18px) scale(.96); } 46%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .auth-typed, .auth-arrow, .auth-post { animation: none; width: 100%; opacity: 1; transform: none; } }
.auth-side { display: grid; place-items: center; padding: 32px 24px; background: var(--bg, #f3f2ee); }
.auth-card { width: min(360px, 100%); display: grid; gap: 12px; }
.auth-card h1 { margin: 0 0 2px; font-size: 1.35rem; }
.auth-wordmark-small { display: none !important; }
.auth-card .login-form { gap: 10px; }
.auth-card .field { margin: 0; }
.auth-card .field label { font-size: .8rem; margin-bottom: 3px; }
.auth-card input:not([type=checkbox]) { padding: 9px 11px; font-size: .92rem; }
.auth-card .btn-primary { padding: 10px 14px; }
.auth-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-card .rights { font-size: .78rem; line-height: 1.4; margin: 0; }
.auth-card .flash { margin: 0; font-size: .86rem; padding: 9px 12px; }
.auth-gift { margin: 0; font-size: .78rem; text-align: center; }
.auth-card .login-links { font-size: .82rem; }
@media (max-width: 860px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-show { display: none; }
  .auth-wordmark-small { display: grid !important; }
  .auth-card .wordmark strong { font-size: 1.5rem; }
}
.auth-post b { font-size: 1.55rem; line-height: 1.05; }
.auth-post { border: 1px solid rgba(255, 255, 255, .08); }

/* sidebar, compact (hub #2727, #2728): everything the foot showed, in a third of the height */
.rail { gap: 18px; padding: 20px 14px 14px; overflow-y: auto; }
.rail-nav { gap: 2px; }
.rail-nav a { padding: 8px 12px; }
.rail-nav a.rail-sub { padding: 6px 12px; }
.rail-foot { gap: 8px; }
.rail-me { display: flex; align-items: stretch; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 12px; overflow: hidden; }
.rail-me .rail-account { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 0; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-me .rail-account small { display: block; font-size: .68rem; }
.rail-me .rail-credits { display: grid; align-content: center; justify-items: end; gap: 0; padding: 8px 10px; border-left: 1px solid var(--ink-line); text-decoration: none; }
.rail-me .rail-credits b { font-family: var(--mono); font-size: 1.05rem; color: #fff; line-height: 1.1; }
.rail-me .rail-credits small { color: #9aa0ac; font-size: .66rem; }
.rail-me a:hover { background: #262d3c; }
.rail-api { display: grid; gap: 1px; padding: 7px 10px; border-radius: 12px; border: 1px solid var(--ink-line); text-decoration: none; }
.rail-api:hover { border-color: var(--amber); }
.rail-api span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rail-api b { font-family: var(--mono); font-size: 1rem; color: #ff8b7b; }
.rail-api small { color: #9aa0ac; font-size: .64rem; line-height: 1.35; }.rail { overflow-x: hidden; }
.rail-foot { grid-template-columns: minmax(0, 1fr); }
.rail-foot, .rail-foot > * { min-width: 0; }
.rail-api small { white-space: normal; }
.rail-api span small { white-space: nowrap; }
.rail-env { margin: 0; text-align: center; font-family: var(--mono); font-size: .56rem; letter-spacing: .18em; border-radius: 999px; padding: 1px 0; }
.rail-env.env-local { color: #6f7685; background: transparent; }
.rail-env.env-live { color: #fff; background: var(--err); }
/* the demo creatives of the logged-out pages: three real-looking posts, fanned, each with its own layout and motion */
.auth-demo { gap: 18px; }
.auth-posts { gap: 0; align-items: center; perspective: 900px; padding: 14px 0 6px; }
.auth-post { flex: 0 1 196px; min-width: 0; aspect-ratio: 4 / 5; padding: 0; border: 0; background: none; box-shadow: none; overflow: visible; opacity: 0; animation: auth-pop 9s infinite; display: block; }
.auth-post.n1 { transform-origin: 80% 100%; animation-delay: 0s; margin-right: -14px; z-index: 1; --tilt: -7deg; --lift: 10px; }
.auth-post.n2 { animation-delay: .3s; z-index: 3; --tilt: 0deg; --lift: -8px; flex-basis: 212px; }
.auth-post.n3 { transform-origin: 20% 100%; animation-delay: .6s; margin-left: -14px; z-index: 2; --tilt: 7deg; --lift: 10px; }
@keyframes auth-pop { 0%, 34% { opacity: 0; transform: translateY(40px) rotate(0) scale(.9); } 46%, 88% { opacity: 1; transform: translateY(var(--lift)) rotate(var(--tilt)) scale(1); } 96%, 100% { opacity: 0; transform: translateY(-14px) rotate(var(--tilt)) scale(.97); } }
.auth-post-in { position: absolute; inset: 0; border-radius: 16px; background: var(--bg); color: var(--fg); overflow: hidden; padding: 18px 16px 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; box-shadow: 0 26px 50px rgba(0, 0, 0, .5), 0 2px 0 rgba(255, 255, 255, .12) inset; animation: auth-float 6s ease-in-out infinite; }
.auth-post.n2 .auth-post-in { animation-delay: -2s; } .auth-post.n3 .auth-post-in { animation-delay: -4s; }
@keyframes auth-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
/* a slow shine that crosses every card */
.auth-post-in::after { content: ''; position: absolute; inset: -40% -60%; background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .22) 50%, transparent 58%); animation: auth-shine 9s infinite; pointer-events: none; }
@keyframes auth-shine { 0%, 50% { transform: translateX(-60%); } 72%, 100% { transform: translateX(60%); } }
.ap-kicker { font-size: .56rem; letter-spacing: .16em; font-weight: 800; opacity: .85; position: relative; }
.ap-big { font-size: 2.5rem; line-height: .95; font-weight: 800; letter-spacing: -.03em; position: relative; }
.ap-big.is-long { font-size: 1.55rem; line-height: 1.02; letter-spacing: -.02em; }
.ap-sub { font-size: .72rem; font-weight: 600; opacity: .9; position: relative; }
.ap-brand { position: absolute; right: 14px; top: 14px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid currentColor; opacity: .8; }
.ap-tag { position: absolute; left: -34px; top: 22px; rotate: -38deg; background: var(--fg); color: var(--bg); background-clip: padding-box; font-style: normal; font-size: .52rem; letter-spacing: .14em; font-weight: 800; padding: 4px 40px; }
.auth-post.is-burst .ap-tag { color: #fff; background: var(--fg); }
.ap-deco { position: absolute; border-radius: 50%; pointer-events: none; }
/* burst: a big figure over rings that breathe */
.is-burst .ap-deco { width: 150%; aspect-ratio: 1; right: -70%; top: -45%; border: 22px solid var(--ac); opacity: .28; animation: auth-ring 5s ease-in-out infinite; }
.is-burst .ap-deco.d2 { width: 80%; right: -30%; top: -12%; border-width: 12px; opacity: .4; animation-delay: -2.5s; }
@keyframes auth-ring { 0%, 100% { scale: 1; } 50% { scale: 1.08; } }
.is-burst .ap-big { font-size: 3.1rem; }
.is-burst .ap-big.is-long { font-size: 1.9rem; }
/* type: words do the work — an accent bar that draws itself and an outlined echo of the big line */
.is-type .auth-post-in { justify-content: center; }
.is-type .ap-deco { left: 16px; right: 16px; top: auto; bottom: 20px; height: 5px; width: auto; aspect-ratio: auto; border-radius: 3px; background: var(--ac); transform-origin: left; animation: auth-bar 9s infinite; }
.is-type .ap-deco.d2 { bottom: auto; top: 18px; right: auto; width: 34px; height: 5px; animation: none; }
@keyframes auth-bar { 0%, 44% { scale: 0 1; } 58%, 100% { scale: 1 1; } }
.is-type .ap-big { color: var(--ac); font-size: 2.2rem; }
.is-type .ap-kicker { margin-top: 10px; }
/* scene: a simple picture on top (sun / arch and a horizon), the words below */
.is-scene .ap-deco { width: 62%; aspect-ratio: 1; left: 19%; top: 9%; background: var(--ac); opacity: .92; animation: auth-rise 9s infinite; }
.is-scene .ap-deco.d2 { width: 150%; left: -25%; top: 47%; aspect-ratio: 2 / 1; background: var(--fg); opacity: .14; animation: none; }
@keyframes auth-rise { 0%, 40% { translate: 0 26px; scale: .86; } 58%, 100% { translate: 0 0; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .auth-post, .auth-post-in, .auth-post-in::after, .ap-deco { animation: none !important; opacity: 1; } .auth-post { opacity: 1; transform: rotate(var(--tilt)); } }
.auth-post .ap-brand { left: auto; bottom: auto; right: 14px; top: 14px; width: 18px; height: 18px; border-radius: 50%; background: none; border: 3px solid currentColor; opacity: .8; }
.auth-post .ap-sub { font-size: .72rem; letter-spacing: 0; }
.auth-post .ap-tag { font-size: .52rem; }

.auth-post .ap-tag, .auth-post.is-burst .ap-tag { background: #14171f; color: #fff; }
.is-scene .ap-deco { width: 50%; left: 25%; top: 8%; }
.is-scene .ap-deco.d2 { top: 44%; }

/* the logo: three frames (4:5, 1:1, 9:16) + the name */
.wordmark.has-mark { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; margin: 0; }
.wordmark.has-mark .mark { grid-row: 1 / span 2; height: 30px; width: auto; color: var(--amber); }
.wordmark.has-mark span { align-self: end; }
.wordmark.has-mark strong { align-self: start; margin-top: 3px; }
.rail .wordmark.has-mark strong { font-size: 1.6rem; }
.rail .wordmark.has-mark span { font-size: .66rem; }
.auth-wordmark-small { display: none; }
@media (max-width: 860px) { .auth-wordmark-small { display: block !important; } }
.auth-card .wordmark.has-mark strong { font-size: 1.4rem; color: var(--ink); }
.wordmark.has-mark span { white-space: nowrap; }
.rail .wordmark.has-mark { column-gap: 10px; padding: 0 6px; }
.rail .wordmark.has-mark .mark { height: 26px; }
.rail .wordmark.has-mark span { font-size: .58rem; letter-spacing: .18em; }
.rail .wordmark.has-mark strong { font-size: 1.45rem; }

/* a big line with a very long word (Χριστούγεννα) steps down so it never leaves the card */
.auth-post .ap-big.is-xlong, .is-burst .ap-big.is-xlong, .is-type .ap-big.is-xlong { font-size: 1.2rem; line-height: 1.08; letter-spacing: -.01em; }
.auth-post.n2 .ap-big.is-xlong { font-size: 1.3rem; }

/* on smaller screens the whole demo is drawn smaller — cards keep their proportions and nothing inside them is cut */
.auth-post { flex: 0 0 196px; }
.auth-post.n2 { flex-basis: 212px; }
@media (max-width: 1320px) { .auth-demo { zoom: .86; } }
@media (max-width: 1180px) { .auth-demo { zoom: .74; } }
@media (max-width: 1020px) { .auth-demo { zoom: .64; } }
/* menu: sub-items of Studio, and the account flyout */
.rail-nav a.rail-sub { margin-left: 26px; padding: 5px 12px; font-size: .84rem; gap: 9px; white-space: nowrap; }
.rail-nav a.rail-sub svg { width: 15px; height: 15px; }
.rail-nav a.rail-sub .badge { margin-left: auto; }
.rail-account-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
.rail-flyout { position: absolute; left: 0; bottom: calc(100% + 6px); min-width: 210px; display: none; background: #232a38; border: 1px solid #3a4253; border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); z-index: 50; }
/* an invisible bridge so the pointer can travel from the block to the menu without it closing */
.rail-flyout::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.rail-account-wrap:hover .rail-flyout, .rail-account-wrap:focus-within .rail-flyout { display: grid; gap: 1px; }
.rail-flyout a, .rail-flyout button { display: block; width: 100%; text-align: left; padding: 7px 10px; border-radius: 8px; color: #e9e6df; text-decoration: none; font: inherit; font-size: .84rem; background: none; border: 0; cursor: pointer; }
.rail-flyout a:hover, .rail-flyout button:hover { background: #2e3749; color: #fff; }
.rail-flyout form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid #3a4253; }
.rail-flyout .is-muted { color: #9aa0ac; margin-top: 4px; border-top: 1px solid #3a4253; border-radius: 0 0 8px 8px; padding-top: 9px; }
.rail { overflow: visible; }
/* history of credits: denser */
.ledger-table th, .ledger-table td { padding: 7px 18px; font-size: .82rem; }
.ledger-table td small { font-size: .72rem; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px 12px; font-size: .82rem; color: var(--mute); }
.pager nav { display: flex; gap: 4px; }
.pager a, .pager b { min-width: 30px; text-align: center; padding: 4px 9px; border-radius: 8px; text-decoration: none; color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.pager b { background: var(--ink); color: #fff; border-color: var(--ink); }
/* brands: can we read the site? */
.site-access { display: inline-block; font-size: .76rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--mute); }
.site-access.is-ok { background: var(--ok-soft); color: #14613a; }
.site-access.is-robots, .site-access.is-blocked { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.site-access.is-down { background: color-mix(in srgb, var(--amber) 22%, transparent); color: #7a5200; }
.brands-table td small { display: block; color: var(--mute); font-size: .72rem; }
/* the card must not clip the menu that opens above it */
.rail-me { overflow: visible; }
.rail-me .rail-account { border-radius: 11px 0 0 11px; }
.rail-me .rail-credits { border-radius: 0 11px 11px 0; }
.rail-foot { position: relative; z-index: 5; }

.site-line { margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-line small { display: inline; }

/* Pager above a table (hub #2739) */
.pager-top { padding: 12px 18px 10px; border-bottom: 1px solid var(--line); }

/* Sign-in pages: the three cards are real proposals of the service, playing (hub #2738) */
.auth-posts { padding: 22px 0 10px; }
.auth-post { flex: 0 0 31%; max-width: 250px; }
.auth-post.n2 { flex-basis: 34%; max-width: 272px; }
.auth-post.n1 { margin-right: -3%; } .auth-post.n3 { margin-left: -3%; }
.auth-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; background: #0c0e13; box-shadow: 0 28px 60px -22px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .12); }
.auth-shot-tag { position: absolute; left: 10px; top: 10px; font-size: .58rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(12, 14, 19, .78); padding: 5px 9px; border-radius: 999px; }

@keyframes auth-in { from { opacity: 0; transform: translateY(26px) rotate(var(--tilt)) scale(.94); } to { opacity: 1; transform: translateY(var(--lift)) rotate(var(--tilt)); } }
.auth-post { animation: auth-in .9s cubic-bezier(.2, .8, .2, 1) both; }
.auth-post.n1 { animation-delay: .5s; } .auth-post.n2 { animation-delay: .75s; } .auth-post.n3 { animation-delay: 1s; }
/* the brief is typed once, then the three proposals arrive and stay (they are films, they do the moving) */
@keyframes auth-type-once { from { width: 0; } to { width: 100%; } }
.auth-typed { animation: auth-type-once 1.6s steps(42) .2s both; max-width: 100%; }
.auth-arrow { animation: none; opacity: 0; display: none; }
.auth-post.n1 { animation-delay: 1.9s; } .auth-post.n2 { animation-delay: 2.15s; } .auth-post.n3 { animation-delay: 2.4s; }
.auth-posts { padding-bottom: 40px; }
.auth-shot-tag { top: auto; bottom: -30px; left: 50%; translate: -50% 0; white-space: nowrap; background: rgba(255, 255, 255, .08); color: #c9cdd6; }

/* Price report (hub #2766) */
.verdict-table td small { display: block; font-weight: 400; color: var(--mute); max-width: 46ch; line-height: 1.4; margin-top: 3px; }
.verdict-table td.num small { max-width: none; }
.price-table td.is-ok b { color: #1c7c4a; } .price-table td.is-warn b { color: #b86e00; } .price-table td.is-bad b { color: #c8352b; }
.verdict-table td:first-child { width: 44%; }
.verdict-table td small, .verdict-table td small i { white-space: normal; }
.verdict-table td.num { white-space: nowrap; vertical-align: top; }

/* Admin → Κείμενα (hub #2785) */
.texts-bar { display: grid; gap: 14px; padding: 16px 20px; }
/* hub #4390: texts between live and local */
.texts-sync ol { list-style: decimal; padding-left: 22px; }
.texts-sync-do { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.texts-sync-do form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sync-table td { vertical-align: top; }
.sync-table .sync-text { white-space: pre-wrap; max-width: 420px; overflow-wrap: anywhere; }
.sync-kind { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--line); }
.sync-kind.is-conflict, .sync-kind.is-refused { background: #f5a40033; }
.sync-kind.is-refused { background: #e5484d22; }
.sync-kind.is-money { background: #f5a40033; color: inherit; }   /* hub #4432 */
.sync-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.sync-lists code { overflow-wrap: anywhere; }
.sync-choice label { display: block; white-space: nowrap; }
.texts-langs, .texts-sections { display: flex; flex-wrap: wrap; gap: 6px; }
.texts-langs a, .texts-sections a { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; font-size: .86rem; background: #fff; }
.texts-langs a.on, .texts-sections a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.texts-langs small, .texts-sections small { font-weight: 500; opacity: .65; margin-left: 4px; }
.texts-sections a.is-filter { border-style: dashed; }
.texts-search { display: flex; gap: 8px; }
.texts-search input { flex: 1; min-width: 0; }
.texts-table td { vertical-align: top; }
.texts-table td.texts-base { width: 36%; white-space: normal; }
.texts-base div { white-space: pre-wrap; overflow-wrap: anywhere; }
.texts-base small { display: block; margin-top: 5px; font-family: var(--mono, monospace); font-size: .68rem; color: var(--mute); overflow-wrap: anywhere; }
.texts-edit textarea { width: 100%; font: inherit; line-height: 1.45; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; resize: vertical; }
.texts-edit textarea:focus { outline: 2px solid var(--amber); border-color: transparent; }
tr.is-changed .texts-edit textarea { border-color: var(--amber); background: #fffaf0; }
tr.is-missing .texts-edit textarea { border-style: dashed; }
.texts-msg { margin: 6px 0 0; font-size: .8rem; color: #1c7c4a; }
.texts-msg.is-bad { color: #c8352b; }
.texts-do { width: 150px; white-space: nowrap; }
.texts-do .btn { display: block; width: 100%; margin-bottom: 6px; padding: 7px 10px; font-size: .82rem; }
.texts-flag { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #b86e00; }
.texts-history td { white-space: normal; vertical-align: top; font-size: .85rem; overflow-wrap: anywhere; }

/* «Ζήτα ένα demo» (hub #2794): the questionnaire on the logged-out layout, and the admin's list */
.auth-card.is-wide { width: min(560px, 100%); }
.demo-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.demo-form legend { font-weight: 700; font-size: 1rem; padding: 0; margin-bottom: 4px; }
.demo-form.is-stepped legend { position: absolute; left: -9999px; }
.demo-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-form textarea { width: 100%; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); resize: vertical; background: #fff; }
.demo-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.demo-steps { list-style: none; margin: 0 0 6px; padding: 0; display: none; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: step; font-size: .76rem; font-weight: 700; color: var(--mute); }
.is-stepped .demo-steps { display: grid; }
.demo-steps li { counter-increment: step; padding-top: 9px; border-top: 3px solid var(--line); }
.demo-steps li::before { content: counter(step) '. '; }
/* hub #4509: the trial brand of a new account (Brands list) and the gate of the paid forms */
.demo-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--line); color: var(--mute); vertical-align: middle; }
.brand-gate { max-width: 560px; }
.demo-steps li.on, .demo-steps li.done { border-color: var(--amber); color: var(--text); }
.chip-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-pick { position: relative; cursor: pointer; }
.chip-pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-pick span { display: block; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .86rem; font-weight: 600; }
.chip-pick input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-pick input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.demo-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.demo-nav .btn { flex: 0 0 auto; }
.demo-small { font-size: .76rem; margin: 0; }
@media (max-width: 560px) { .demo-form .field-row { grid-template-columns: 1fr; } }
.lead { display: grid; gap: 14px; padding: 20px 22px; }
.lead.is-new { border-color: var(--amber); }
.lead header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.lead h2 { margin: 0 0 4px; font-size: 1.15rem; text-transform: none; letter-spacing: 0; color: var(--text); }
.lead h2 small { font-weight: 500; color: var(--mute); font-size: .85rem; margin-left: 6px; }
.lead header p { margin: 0; }
.lead-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 20px; margin: 0; padding: 14px 0; border-block: 1px solid var(--line); }
.lead-facts dt { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.lead-facts dd { margin: 3px 0 0; font-weight: 600; }
.lead-wants { margin: 0; }
.lead-wants small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.lead-form { display: flex; gap: 8px; }
.lead-delete { margin-top: 8px; display: flex; justify-content: flex-end; }
.lead-form input { flex: 1; min-width: 0; }

/* The brand kit's logo (hub #2842): frames + drawn wordmark in one SVG; the wordmark takes the colour set here. */
.wordmark.brand-logo { display: block; line-height: 0; padding: 0 8px; margin: 0; color: var(--ink); }
.wordmark.brand-logo svg { display: block; height: 30px; width: auto; }
.rail .wordmark.brand-logo { color: #f4f2ec; padding: 0 6px; }
.rail .wordmark.brand-logo svg { height: 27px; }
.auth-show .wordmark.brand-logo { color: #f4f2ec; padding: 0; }
.auth-card .wordmark.brand-logo { color: var(--ink); padding: 0; }

/* Dev / Live totals on the Κόστος and Στατιστικά pages (views/partials/env_split.php, hub #2915) */
.env-box { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.env-box.is-here { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.env-box small { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.env-box b { font-size: 1.7rem; line-height: 1.1; }
.env-box span { font-size: .85rem; }

/* Tables whose header stays in view while you scroll (hub #2939). The card is the scroll box, in both directions: a
   long table scrolls inside it under its fixed header, and a table wider than the card still scrolls sideways. */
.table-card.sticky-head { overflow: auto; max-height: calc(100vh - 32px); padding-top: 0; }
.table-card.sticky-head thead th { position: sticky; top: 0; z-index: 3; background: var(--card); box-shadow: 0 1px 0 var(--line); padding-top: 14px; }
.table-card.sticky-head thead th small { font-size: .62rem; letter-spacing: .04em; opacity: .8; }
.table-card.sticky-head tbody td:first-child { min-width: 300px; }

/* Admin → Μενού: the board where the user arranges the admin menus (views/pages/adminmenu.php, hub #2945). All menus
   stay on one row (hub #2952): the columns share the width and the names are cut with «…» — the full name is the tooltip. */
.menu-board { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0 10px; margin-top: 16px; }
.menu-col { flex: 1 1 0; min-width: 0; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 7px; }
.menu-col.is-dragging, .menu-pages li.is-dragging { opacity: .45; }
.menu-col header { display: flex; align-items: center; gap: 2px; margin-bottom: 6px; }
.menu-grip { cursor: grab; color: var(--mute); font-size: .95rem; line-height: 1; user-select: none; }
.menu-title { flex: 1; min-width: 0; font: 700 .8rem/1.2 var(--font); border: 1.5px solid transparent; border-radius: 7px; padding: 5px 5px; background: transparent; color: var(--text); overflow-wrap: break-word; hyphens: auto; cursor: text; }
.menu-title:empty::before { content: attr(data-placeholder); color: var(--mute); font-weight: 500; }
.menu-col header { align-items: flex-start; }
.menu-col { overflow: hidden; }
.menu-title:hover, .menu-title:focus { border-color: var(--line); background: #fff; outline: none; }
.menu-del { border: 0; background: none; color: var(--mute); font-size: 1rem; line-height: 1; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.menu-del:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--text); }
.menu-pages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; min-height: 40px; }
.menu-pages:empty::after { content: 'άδειο'; display: block; padding: 10px 6px; border: 1.5px dashed var(--line); border-radius: 9px; font-size: .75rem; color: var(--mute); text-align: center; }
.menu-pages li { display: flex; align-items: center; gap: 1px; padding: 6px 3px; border-radius: 9px; background: #fff; border: 1px solid var(--line); cursor: grab; font-size: .8rem; font-weight: 600; }
.menu-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 1px 3px; border-radius: 5px; }
.menu-name[contenteditable="true"] { outline: 2px solid var(--amber); background: #fff; cursor: text; text-overflow: clip; }
.menu-move, .menu-edit { border: 0; background: none; color: var(--mute); cursor: pointer; padding: 0 3px; font-size: .85rem; line-height: 1; border-radius: 5px; flex: none; }
.menu-edit { opacity: 0; font-size: .75rem; }
.menu-pages li:hover .menu-edit, .menu-edit:focus { opacity: 1; }
.menu-move:hover, .menu-edit:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--text); }
@media (max-width: 1000px) { .menu-board { flex-wrap: wrap; } .menu-col { flex: 1 1 200px; } }

/* Support form: pick the request a message is about, with search and thumbnails (hub #2947) */
.req-picker { display: grid; gap: 8px; }
.req-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; padding: 2px; }
.req-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; min-width: 0; }
.req-item[hidden] { display: none; }
.req-item input { position: absolute; opacity: 0; pointer-events: none; }
.req-item.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.req-item:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 2px; }
.req-item img, .req-nothumb { width: 54px; height: 68px; flex: none; border-radius: 6px; object-fit: cover; background: #efebe1; display: block; }
.req-item span { display: grid; gap: 2px; min-width: 0; }
.req-item b { font-size: .9rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.req-item small { font-size: .75rem; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req-none { min-height: 68px; font-weight: 600; font-size: .9rem; }
.req-empty { grid-column: 1 / -1; padding: 10px; }

/* «Τι μένει» (the plan as the one task list, hub #2937) */
.plan-built { font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .03em; padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--amber) 22%, transparent); color: #7a5200; white-space: nowrap; }
.plan-decisions { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.plan-decisions li { padding-left: 14px; position: relative; }
.plan-decisions li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }

/* Tickets: the design a message is about (hub #2948, #2949), and the «new message» form behind its button (#2950) */
.req-about { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: inherit; max-width: 560px; }
.req-about img, .req-about .req-nothumb { flex: none; border-radius: 6px; object-fit: cover; background: #efebe1; display: block; width: 54px; height: 68px; }
.req-about > span { display: grid; gap: 2px; min-width: 0; flex: 1; }
.req-about small { font-size: .75rem; color: var(--mute); }
.req-about-small { padding: 0; border: 0; background: none; gap: 9px; }
.req-about-small img, .req-about-small .req-nothumb { width: 36px; height: 45px; }
.req-about-small b { font-size: .875rem; font-weight: 600; }
.support-new > summary { list-style: none; cursor: pointer; display: inline-block; }
.support-new > summary::-webkit-details-marker { display: none; }
.support-new[open] > summary { margin-bottom: 4px; }
.support-new[open] > summary .btn { background: none; color: var(--mute); border-color: transparent; padding-left: 0; pointer-events: none; }
.req-filters { display: flex; gap: 8px; }
.req-filters input { flex: 1; min-width: 0; }
.req-filters select { flex: 0 0 220px; }
.req-item small b { display: inline; color: var(--text); font-weight: 700; font-size: inherit; -webkit-line-clamp: unset; overflow: visible; }
.grid-table tr.is-unread td { background: color-mix(in srgb, var(--amber) 9%, transparent); }
.support-new > summary { margin-bottom: 0; }

/* Admin menus: the pages of a menu drop under it on hover or keyboard focus (hub #2957) */
.admin-group { position: relative; display: inline-flex; }
.admin-drop { position: absolute; left: 0; top: 100%; z-index: 30; min-width: 100%; width: max-content; max-width: 280px; display: none; flex-direction: column; gap: 2px; padding: 6px; margin-top: 4px; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; box-shadow: 0 14px 30px -12px rgba(20, 23, 31, .35); }
.admin-drop::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }   /* keeps the pointer «inside» across the gap */
.admin-group:hover .admin-drop, .admin-group:focus-within .admin-drop { display: flex; }
.admin-groups .admin-drop a { padding: 7px 12px; border: 0; border-radius: 8px; background: none; font-weight: 600; font-size: .9rem; color: var(--text); white-space: nowrap; }
.admin-groups .admin-drop a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.admin-groups .admin-drop a.is-on { background: var(--ink); color: #fff; }

/* «Σελίδες»: «what to look at» is one line; a click opens the whole text (hub #2959) */
.pages-about { white-space: normal; max-width: 420px; }
.pages-about summary { list-style: none; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; color: var(--mute); }
.pages-about summary::-webkit-details-marker { display: none; }
.pages-about details[open] summary { display: none; }
.pages-about details p { margin: 0; }
.pages-table tr.is-checked td { opacity: .6; }

/* «Τι μένει»: the counts on top (hub #2968) */
.count-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 14px 0 12px; }
.count-box { display: grid; gap: 2px; align-content: start; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); text-decoration: none; color: inherit; }
.count-box b { font-size: 1.9rem; line-height: 1; font-weight: 800; }
.count-box span { font-size: .8rem; color: var(--mute); line-height: 1.3; }
.count-box.is-main { background: var(--ink); border-color: var(--ink); color: #fff; }
.count-box.is-main span { color: #c9ccd4; }
.count-box.is-you { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, var(--card)); }
a.count-box:hover { border-color: var(--ink); }


/* Admin overview (hub #2983, #2987, #2988): the month as a strip, today as a cockpit, cards that are picked while seen */
.overview-strip { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .8125rem; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; display: table; }
.overview-strip th, .overview-strip td { padding: 7px 12px; text-align: right; white-space: nowrap; }
.overview-strip thead th { font-weight: 600; color: var(--mute); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.overview-strip thead th a { color: inherit; text-decoration: none; }
.overview-strip thead th a:hover { color: var(--text); }
.overview-strip tbody th { text-align: left; font-weight: 700; }
.overview-strip tbody th small { font-weight: 400; color: var(--mute); }
.overview-strip td { font-family: var(--mono); }
.overview-strip thead th { white-space: normal; } .overview-strip td small { display: block; font-size: .6875rem; color: var(--mute); }   /* hub #3690: three cost columns + the lab under Higgsfield */
.overview-strip tbody tr + tr td, .overview-strip tbody tr + tr th { color: var(--mute); border-top: 1px solid var(--line); }
.cockpit > h2 { font-size: 1.5rem; }
.cockpit-dials { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1300px) { .cockpit-dials { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .cockpit-dials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dial { display: grid; gap: 3px; align-content: start; min-width: 0; padding: 14px 14px 12px; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; border: 1.5px solid var(--ink); }
.dial:hover { border-color: var(--amber); }
.dial small { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #aeb3bf; }
.dial b { font-size: 2.1rem; white-space: nowrap; line-height: 1.05; font-weight: 800; color: var(--amber); font-variant-numeric: tabular-nums; }
.dial i { font-style: normal; font-size: .78rem; font-family: var(--mono); }
.dial i.up { color: #7ddc9f; } .dial i.down { color: #ff9c8f; } .dial i.same { color: #aeb3bf; }
.dial span { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--ink-line); font-size: .8rem; color: #c9ccd4; line-height: 1.35; }
.dial.is-hot { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.dial.is-hot b, .dial.is-hot small, .dial.is-hot i.same, .dial.is-hot span { color: var(--ink); }
.dial.is-hot span { border-top-color: rgba(20, 23, 29, .25); }
.cockpit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.cockpit-panel { display: grid; gap: 12px; align-content: start; }
.cockpit-panel h3 { margin: 0; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); display: flex; align-items: baseline; gap: 10px; }
.cockpit-panel h3 .muted, .cockpit-panel h3 .legend { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; }
.cockpit-wide { grid-column: 1 / -1; }
.legend i, .keys i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 5px 0 10px; }
.k-designs { background: var(--amber); } .k-videos { background: var(--ink); }
.hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; height: 170px; }
.hour { display: grid; grid-template-rows: 16px 1fr 16px; justify-items: center; min-width: 0; }
.hour em { grid-row: 1; font-style: normal; font: 600 .7rem/16px var(--mono); color: var(--text); }
.hour .bar { grid-row: 2; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; background: color-mix(in srgb, var(--line) 45%, transparent); border-radius: 5px; overflow: hidden; }
.hour .bar i { display: block; }
.hour small { grid-row: 3; font: 500 .68rem/16px var(--mono); color: var(--mute); }
.hour.is-now .bar { outline: 1.5px solid var(--ink); outline-offset: 1px; }
/* hub #3913: three rows — the columns follow the panel's width (≥ 150px each, gap 14px) and only 3 rows' worth are shown */
.cockpit-latest { container-type: inline-size; }
.cockpit-designs { --cols: 1; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 14px; }
.cockpit-designs > figure:nth-child(n + 4) { display: none; }
@container (min-width: 314px) { .cockpit-designs { --cols: 2; } .cockpit-designs > figure:nth-child(n + 4) { display: grid; } .cockpit-designs > figure:nth-child(n + 7) { display: none; } }
@container (min-width: 478px) { .cockpit-designs { --cols: 3; } .cockpit-designs > figure:nth-child(n + 7) { display: grid; } .cockpit-designs > figure:nth-child(n + 10) { display: none; } }
@container (min-width: 642px) { .cockpit-designs { --cols: 4; } .cockpit-designs > figure:nth-child(n + 10) { display: grid; } .cockpit-designs > figure:nth-child(n + 13) { display: none; } }
@container (min-width: 806px) { .cockpit-designs { --cols: 5; } .cockpit-designs > figure:nth-child(n + 13) { display: grid; } .cockpit-designs > figure:nth-child(n + 16) { display: none; } }
@container (min-width: 970px) { .cockpit-designs { --cols: 6; } .cockpit-designs > figure:nth-child(n + 16) { display: grid; } .cockpit-designs > figure:nth-child(n + 19) { display: none; } }
@container (min-width: 1134px) { .cockpit-designs { --cols: 7; } .cockpit-designs > figure:nth-child(n + 19) { display: grid; } .cockpit-designs > figure:nth-child(n + 22) { display: none; } }
@container (min-width: 1298px) { .cockpit-designs { --cols: 8; } .cockpit-designs > figure:nth-child(n + 22) { display: grid; } .cockpit-designs > figure:nth-child(n + 25) { display: none; } }
@container (min-width: 1462px) { .cockpit-designs { --cols: 9; } .cockpit-designs > figure:nth-child(n + 25) { display: grid; } .cockpit-designs > figure:nth-child(n + 28) { display: none; } }
@container (min-width: 1626px) { .cockpit-designs { --cols: 10; } .cockpit-designs > figure:nth-child(n + 28) { display: grid; } .cockpit-designs > figure:nth-child(n + 31) { display: none; } }
.cockpit-latest figure { grid-template-rows: auto 1fr; } .cockpit-latest figcaption { display: flex; flex-direction: column; }
.cockpit-enter { margin: auto 0 0; padding-top: 6px; } .cockpit-enter .btn { width: 100%; justify-content: center; }   /* hub #3912: «Είσοδος ως», on one line across the row */
.cockpit-designs figure { margin: 0; display: grid; gap: 6px; align-content: start; }
.cockpit-designs img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); }
/* every design of the cockpit has the Studio's eye: all its slides, playing (hub #2995) */
.cockpit-thumb { display: block; cursor: pointer; }
.cockpit-thumb .thumb-eye { opacity: 1; width: 34px; height: 34px; top: 8px; right: 8px; }
.cockpit-thumb .thumb-eye svg { width: 19px; height: 19px; }
.cockpit-designs figcaption { display: grid; gap: 1px; font-size: .8rem; line-height: 1.3; }
.cockpit-designs figcaption small { color: var(--mute); font-size: .72rem; }
.stack { display: flex; height: 18px; border-radius: 9px; overflow: hidden; gap: 2px; }
.stack i { display: block; min-width: 6px; }
.st-ready { background: var(--ok); } .st-working, .st-queued, .st-new { background: var(--amber); } .st-failed { background: #b3261e; } .st-draft { background: var(--mute); }
.keys { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .875rem; }
.keys li i { margin-left: 0; } .keys li.plain { color: var(--mute); }
.meters { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .875rem; }
.meters li { display: grid; grid-template-columns: 120px 1fr 64px; gap: 10px; align-items: center; }
.meters li > i { display: block; height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--line) 60%, transparent); overflow: hidden; }
.meters li > i b { display: block; height: 100%; background: var(--amber); border-radius: 5px; }
.meters em { font-style: normal; font-family: var(--mono); text-align: right; font-size: .8rem; }
.cockpit-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 500 .75rem var(--mono); margin: 0; }
.cockpit-ok { margin: 0; font-size: .8125rem; color: var(--ok); } .cockpit-warn { margin: 0; font-size: .8125rem; color: #b3261e; } .cockpit-warn a { color: inherit; }
.cockpit-sub { margin: 4px 0 0; font-size: .8125rem; } .cockpit-sub b { font: 600 .8125rem var(--mono); }   /* Claude / Higgsfield parts of the cost (hub #3690) */
.cockpit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .875rem; }
.cockpit-list li { display: grid; gap: 1px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cockpit-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cockpit-list span, .cockpit-list small { color: var(--mute); font-size: .78rem; }
.cockpit-list a { color: inherit; }
.overview-choose { margin: 26px 0 0; display: flex; align-items: center; gap: 12px; font-size: .875rem; }
.overview-pick-bar { position: sticky; top: 0; z-index: 4; margin: 26px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--amber-soft); color: var(--amber-ink); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .9rem; }
.overview-pick-bar .btn:first-of-type { margin-left: auto; }
.pick-card { position: relative; cursor: pointer; user-select: none; transition: opacity .15s; }
.pick-card input { position: absolute; opacity: 0; }
.pick-mark { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line); background: var(--card); }
.pick-card:has(input:checked) { border-color: var(--ink); }
.pick-card:has(input:checked) .pick-mark { background: var(--ink); border-color: var(--ink); }
.pick-card:has(input:checked) .pick-mark::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pick-card:has(input:not(:checked)) { opacity: .4; border-style: dashed; }
.pick-card:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 2px; }
@media (max-width: 900px) { .cockpit-grid { grid-template-columns: 1fr; } }
@media (max-width: 1300px) { .overview-strip { display: block; overflow-x: auto; } .overview-strip th, .overview-strip td { padding: 7px 9px; } }

/* Admin → Tickets: every action of a ticket in one row — answer on the left, the two without an answer on the right (hub #2986) */
.ticket-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ticket-actions-side { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.btn-danger-text { color: #b3261e; }
.btn-danger-text:hover { border-color: #b3261e; }

.overview-cards { margin-top: 14px; }

/* Studio → working tab: is this row a new request or a change? (hub #2994) */
.job-kind { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 6px; font: 700 .68rem/1.5 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; }
.job-kind.is-new { background: var(--ink); color: #fff; }
.job-kind.is-change { background: var(--amber); color: var(--ink); }

/* cockpit: designs being made right now, under «Νέα designs» (hub #3013) */
.dial-live { display: block; margin-bottom: 4px; font-style: normal; font-weight: 700; color: var(--amber); }
.dial-live::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--amber); animation: dial-live 1.4s ease-in-out infinite; }
@keyframes dial-live { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .dial-live::before { animation: none; } }

/* Studio → working: how long a production has been going (hub #3014) */
.requests-table td.num .running { display: block; margin-top: 4px; font-family: var(--mono); font-size: 1.05rem; color: var(--amber-ink); }
.requests-table td.num .waited { display: block; white-space: nowrap; }
.doing .tick, .waited .tick { font-family: var(--mono); }
.dial-live small { font-weight: 500; color: #c9ccd4; letter-spacing: 0; text-transform: none; font-size: .78rem; }

/* «Ζήτα κι άλλες διαστάσεις» under the choices of a proposal (hub #3024) */
.more-sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.more-sizes > div:first-of-type { display: grid; gap: 2px; margin-right: auto; }
.more-sizes > div:first-of-type small { color: var(--mute); font-size: .8125rem; }
.more-sizes-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.more-sizes-pick label { cursor: pointer; }
.more-sizes-pick input { position: absolute; opacity: 0; }
.more-sizes-pick span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); font-weight: 600; font-size: .875rem; }
.more-sizes-pick span i { display: block; height: 18px; border: 1.5px solid currentColor; border-radius: 3px; }
.more-sizes-pick span small { color: var(--mute); font-weight: 500; }
.more-sizes-pick input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.more-sizes-pick input:checked + span small { color: #c9ccd4; }
.more-sizes-pick input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.rail-nav a.is-open { color: #fff; }

/* The app's own question window (hub #3029): replaces the browser's confirm everywhere */
.askbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(10, 12, 17, 0); transition: background .16s; }
.askbox.is-open { background: rgba(10, 12, 17, .62); }
.askbox-card { width: min(420px, 100%); padding: 28px 28px 24px; border-radius: 22px; background: var(--ink); color: #fff; text-align: center; box-shadow: 0 40px 90px rgba(0, 0, 0, .5); transform: translateY(14px) scale(.97); opacity: 0; transition: transform .16s, opacity .16s; }
.askbox.is-open .askbox-card { transform: none; opacity: 1; }
.askbox-mark { width: 57px; height: 20px; color: var(--amber); margin-bottom: 18px; }
.askbox-card h2 { margin: 0; font-size: 1.15rem; line-height: 1.35; font-weight: 700; color: #fff; }
.askbox-sentence { margin: 10px 0 0; font-size: 1.05rem; line-height: 1.5; font-weight: 600; color: #fff; }   /* hub #4536 */
.askbox-amount { margin: 6px 0 0; font: 800 2.6rem/1.1 var(--font, inherit); color: var(--amber); font-variant-numeric: tabular-nums; }
.askbox-euros { margin: 4px 0 0; color: #c9ccd4; font-size: .95rem; font-variant-numeric: tabular-nums; }
.askbox-text { margin: 10px 0 0; color: #c9ccd4; font-size: .95rem; }
.askbox-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.askbox-actions .btn { justify-content: center; width: 100%; }
.askbox-actions .btn-ghost { background: transparent; color: #fff; border-color: var(--ink-line); }
.askbox-actions .btn-ghost:hover { border-color: #fff; }
.askbox-actions .btn-primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.askbox-actions .btn-primary.is-danger { background: #e5484d; border-color: #e5484d; color: #fff; }
.askbox-actions .btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .askbox, .askbox-card { transition: none; } }

/* The brand's fonts (hub #3096): two pickers, one list split by «with Greek» / «Latin only», and a live preview */
.font-field { position: relative; }
.font-pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.font-picker { display: grid; gap: 4px; }
.font-picker small { color: var(--mute); font-size: .8125rem; }
.font-current { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-size: 1.05rem; text-align: left; cursor: pointer; color: var(--text); }
.font-current:hover { border-color: var(--ink); }
.font-current i { font-style: normal; color: var(--mute); }
.font-preview { margin-top: 12px; padding: 22px 24px; border-radius: 14px; background: var(--p); color: var(--s); display: grid; gap: 8px; }
.font-preview b { font-size: 2rem; line-height: 1.15; font-weight: 700; }
.font-preview p { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.font-preview small { font-size: .8125rem; opacity: .8; }
.font-preview small.is-warn { opacity: 1; padding: 6px 10px; border-radius: 8px; background: var(--amber-soft); color: var(--amber-ink); width: fit-content; }
.font-preview small:empty { display: none; }
.font-panel { position: absolute; z-index: 30; left: 0; right: 0; top: 92px; display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--ink); box-shadow: 0 30px 70px rgba(20, 23, 29, .25); }
.font-panel[hidden] { display: none; }
.font-panel-head { display: flex; gap: 8px; }
.font-panel-head input { flex: 1; }
.font-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.font-kinds button { padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-size: .8125rem; font-weight: 600; cursor: pointer; }
.font-kinds button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.font-list { max-height: 340px; overflow-y: auto; display: grid; gap: 2px; }
.font-group { position: sticky; top: 0; z-index: 1; margin: 6px 0 2px; padding: 6px 8px; background: var(--paper); border-radius: 8px; font: 700 .72rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.font-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; font-size: 1.25rem; color: var(--text); }
.font-row:hover, .font-row:focus-visible { background: var(--amber-soft); outline: none; }
.font-row.is-on { background: var(--ink); color: #fff; }
.font-row small { font-size: 1rem; color: var(--mute); white-space: nowrap; }
.font-row.is-on small { color: #c9ccd4; }
@media (max-width: 700px) { .font-pickers { grid-template-columns: 1fr; } .font-panel { top: 160px; } }

/* «Δοκίμασε ξανά» on a failed request (hub #3099) */
.retry-form { display: inline-block; margin: 6px 0; }
.row-actions .retry-form .btn { padding: 6px 12px; font-size: .8125rem; white-space: nowrap; }
/* hub #4536: «Σταμάτησε» — quiet, never the main action */
.stop-form { display: inline-block; margin: 6px 0; }
.stop-button { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.stop-button svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.requests-table td .stop-form { display: block; margin: 8px 0 0; }
.stage-empty .stop-form { margin-top: 14px; }
.stage-empty .stop-form .btn { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .45); }
.stage-empty .stop-form .btn:hover { border-color: #fff; }
.flash .stop-form { display: block; margin: 8px 0 0; }
.api-blocked { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: #b3261e; color: #fff; font-weight: 600; }
.api-blocked a { color: #fff; }

/* Admin → Usage log (hub #3101) */
.usage-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 18px 0; }
.usage-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 0 0 14px; font-size: .875rem; }
.usage-filter select { margin-left: 8px; }
.usage-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.usage-kinds a { padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); text-decoration: none; color: var(--text); font-weight: 600; font-size: .8125rem; }
.usage-kinds a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.usage-kinds a i { font-style: normal; color: var(--mute); margin-left: 4px; }
.usage-table td { vertical-align: top; }
.usage-table td small { display: block; color: var(--mute); font-size: .78rem; line-height: 1.35; }
.usage-table .nowrap { white-space: nowrap; font-family: var(--mono); font-size: .8125rem; }
.usage-asked { max-width: 300px; font-size: .875rem; overflow-wrap: anywhere; }
.usage-table { table-layout: auto; width: 100%; }
.usage-table th, .usage-table td { padding-left: 12px; padding-right: 12px; }
.usage-table td.num { white-space: nowrap; }
.usage-table td.num small { white-space: normal; }
.usage-table td.usage-cost-cell { white-space: normal; min-width: 140px; max-width: 190px; }   /* hub #3882: the whole cost and its parts, without pushing the table wider than the page */
.usage-table td.usage-asked { min-width: 180px; }
.usage-table thead th small { display: block; }
.table-card:has(.usage-table) { overflow-x: auto; }
.usage-kind { display: inline-block; padding: 2px 8px; border-radius: 6px; font: 700 .68rem/1.5 var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: #fff; margin-bottom: 3px; }
.usage-kind.is-change, .usage-kind.is-change_big, .usage-kind.is-carousel { background: var(--amber); color: var(--ink); }
.usage-kind.is-change_big { box-shadow: inset 0 0 0 2px var(--ink); }
.usage-kind.is-scene, .usage-kind.is-plus_version { background: #5b3fc4; }   /* hub #3692: the Plus actions */
.usage-kind.is-other { background: var(--mute); }
.usage-kind.is-sizes { background: var(--info-soft, #dde6f7); color: var(--info); }
.usage-kind.is-retry { background: #b3261e; }
.usage-table tr.is-refunded td { opacity: .6; }
.usage-back { color: #b3261e !important; }
.usage-note { max-width: 900px; margin-top: 14px; font-size: .8125rem; }

/* Videos page: what is being made right now (hub #3102) */
.video-making { margin-bottom: 18px; border-color: var(--amber); }
.video-making h2 { margin: 0; padding: 14px 18px 4px; font-size: 1rem; }
.video-making h2 i { font-style: normal; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--amber); color: var(--ink); font: 700 .75rem var(--mono); }
.video-making .thumb { width: 44px; height: 55px; object-fit: cover; border-radius: 6px; display: block; }
.video-state small { display: block; color: var(--mute); font-size: .78rem; margin-top: 3px; }
.video-bar { display: inline-block; vertical-align: middle; width: 140px; height: 8px; margin: 0 8px 0 10px; border-radius: 4px; background: var(--line); overflow: hidden; }
.video-bar b { display: block; height: 100%; background: var(--amber); }
.video-state .video-bar + small { display: inline; }
.video-making td.num b { font-family: var(--mono); font-size: 1.05rem; }
.video-making td.num small { display: block; color: var(--mute); font-size: .75rem; }

/* the finished videos got one more column (hub #3102): the title keeps its room, the numbers stay on one line */
section.table-card:has(> .video-table) { overflow-x: auto; }
.video-table th, .video-table td { padding-left: 9px; padding-right: 9px; }
.video-table td:has(> .row-title) { min-width: 190px; }   /* the title cell, wherever it stands (a tick column came first in hub #3237) */
.video-table .row-actions .btn-small { padding-left: 10px; padding-right: 10px; }
.video-table td.num, .video-table th.num { white-space: nowrap; }
.video-table td.num small { white-space: normal; }

/* Usage log: did this action leave money or cost money? (hub #3103) */
.usage-profit.is-loss { background: #f9dedc; }
.usage-profit.is-loss b { color: #b3261e; }
.usage-profit.is-gain b { color: var(--ok); }
.usage-table tr.is-refunded td.usage-profit.is-loss { opacity: 1; }
.count-box.is-loss { background: #f9dedc; border-color: #b3261e; } .count-box.is-loss b { color: #b3261e; }
.count-box.is-gain b { color: var(--ok); }
.usage-table tr:has(td.usage-profit.is-loss) td { background: #fdf1f0; }
.usage-table tr:has(td.usage-profit.is-loss) td.usage-profit { background: #f9dedc; }
.usage-profit.is-hub b { color: var(--mute); font-weight: 600; }

/* estimated balance at the API provider, in the side bar (hub #3106) */
.rail-api .rail-left b { color: #7fd6a0; }
.rail-api .rail-left.is-low b { color: #ff8b7b; }
.rail-api .rail-left.is-low small { color: #ff8b7b; }
/* usage log: where the design came from (hub #3107) */
.usage-source { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-style: normal; font-size: .72rem; font-weight: 700; border: 1.5px solid var(--line); color: var(--mute); }
.usage-source.is-url { border-color: #2f6fed; color: #2f6fed; }
.usage-source.is-same { border-color: var(--amber); color: #8a5d00; }
/* the two lines about extra sizes carry an example and need the width (hub #3108) */
@media (min-width: 720px) { .price-list > .is-wide { grid-column: span 2; } }
/* the request's credits in euros, small under the total (hub #3116) */
.quote .quote-eur { margin: 2px 0 0; text-align: right; font-size: .75rem; color: #9aa0ac; }

/* Admin → Emails (hub #3117): the SMTP form and the catalogue with live previews */
.smtp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; margin: 6px 0 14px; }
.smtp-grid input, .smtp-grid select { width: 100%; }
.smtp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.smtp-test { display: inline-flex; gap: 6px; align-items: center; }
.smtp-test input { width: 230px; }
.email-list { display: grid; gap: 16px; }
.email-card { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 620px); gap: 22px; align-items: start; }
.email-about h2 { font-size: 1.25rem; text-transform: none; letter-spacing: 0; color: var(--text); margin: 2px 0 12px; }
.email-about dl { display: grid; gap: 4px; margin: 0 0 14px; font-size: .9rem; }
.email-about dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin-top: 8px; }
.email-about dd { margin: 0; }
.email-frame { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 12px; background: #F4F2EC; }
@media (max-width: 1000px) { .smtp-grid { grid-template-columns: 1fr; } .email-card { grid-template-columns: 1fr; } }
.smtp-grid { align-items: end; }
/* the hidden radios are absolute: without this they are placed against the page and stretch it far below the list (hub #3126) */
.req-list { position: relative; }
.req-item { position: relative; }
.req-item input { top: 0; left: 0; }

/* the code by email (hub #3127) */
.code-input { font-family: var(--mono); font-size: 1.6rem; letter-spacing: .35em; text-align: center; padding: 12px 10px; }
.code-resend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: .86rem; margin: 2px 0 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; cursor: pointer; }

/* which emails the account wants (hub #3139) */
.mail-choices { display: grid; gap: 8px; margin: 4px 0 10px; }
.mail-choices .rights span b { font-weight: 700; }

/* «Οριστική διαγραφή» inside the account's danger dialog (hub #3136) */
.erase-zone { margin: 0; }
.erase-zone h2 { color: var(--err); }
.btn-danger { background: var(--err); color: #fff; border-color: var(--err); }

/* Admin → Backup (hub #3141) */
.backup-steps { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; gap: 4px; font-size: .9rem; }
.backup-steps b { display: inline-block; min-width: 150px; }

/* the admin's «Χρεώσαμε / Κέρδος» column in the Studio lists (hub #3204) */
.margin-cell small { display: block; }
.margin-cell .margin.is-gain { color: var(--ok, #14613a); font-weight: 700; }
.margin-cell .margin.is-loss { color: var(--err); font-weight: 700; }

/* small or big change, the customer's choice with its price (hub #3208) */
.size-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.size-pick label { position: relative; cursor: pointer; }
.size-pick input { position: absolute; opacity: 0; pointer-events: none; }
.size-pick label > span { display: grid; gap: 4px; height: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.size-pick label > span b { font-size: .92rem; }
.size-pick label > span small { font-size: .78rem; line-height: 1.4; color: var(--mute); font-weight: 400; }
.size-pick input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff8e1; }
.size-pick input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.change-size { align-items: flex-start; flex-direction: column; }
@media (max-width: 640px) { .size-pick { grid-template-columns: 1fr; } }
.video-table .row-actions .icon-btn { display: inline-grid; vertical-align: middle; }

/* Videos: downloaded or not (hub #3239) — a quieter second row of filters, and a small mark on the row */
.list-filters .dl-filter { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 10px; }
.dl-filter a { padding: 4px 11px; border-radius: 99px; text-decoration: none; font-size: .8rem; font-weight: 600; color: var(--mute); border: 1px dashed var(--line); }
.dl-filter a i { font-style: normal; font-family: var(--mono); font-size: .72rem; margin-left: 4px; }
.dl-filter a.is-on { color: var(--ink); background: var(--amber-soft); border: 1px solid var(--amber); }
.dl-mark { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: .74rem; font-weight: 600; color: #2f7a4a; }
.dl-mark svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* The language switch (hub #3241): two small codes, the one in use filled */
.lang-switch { display: inline-flex; gap: 2px; padding: 2px; border-radius: 99px; border: 1px solid var(--line); }
.lang-switch button { border: 0; background: none; cursor: pointer; font: 600 .72rem/1 var(--mono); letter-spacing: .04em; padding: 5px 9px; border-radius: 99px; color: inherit; opacity: .65; }
.lang-switch button.is-on { background: var(--amber); color: #0a0c11; opacity: 1; }
.rail-foot .lang-switch, aside .lang-switch { border-color: rgba(255,255,255,.18); margin: 8px 0 4px; }
.auth-card .lang-switch { position: absolute; top: 18px; right: 18px; }
.auth-card { position: relative; }

/* Admin → Go Live (hub #3245) */
.count-box.is-done { opacity: .85; }
.count-box small { font-size: .74rem; }
.golive-verdict { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.golive-verdict.is-keep { background: #e3f3e8; color: #22663d; }
.golive-verdict.is-change { background: var(--amber-soft); color: var(--amber-ink); }
.golive-verdict.is-local { background: #eceef3; color: #4b5263; }
.golive-sync { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 22px; margin: 6px 0 12px; }
.golive-sync p { margin: 4px 0 0; }

/* «Αγορά credits»: extra sizes as one table (hub #3247, #3248) */
.sizes-card h2 { padding: 18px 18px 0; }
.sizes-rule, .sizes-later { margin: 8px 18px 14px; }
.sizes-later { color: var(--mute); }
.sizes-table td.num b { font-family: var(--mono); font-size: 1.1rem; }
.sizes-table td.num small { display: block; color: var(--mute); font-size: .75rem; }

/* «Αγορά credits» → what each action costs, grouped (hub #3249) */
.costs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.costs-head h2 { margin: 0; }
.costs-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.costs-group { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px 6px; background: var(--card); }
.costs-group h3 { margin: 0 0 6px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.costs-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.costs-row:first-of-type { border-top: 0; }
.costs-row b { display: block; }
.costs-row small { display: block; color: var(--mute); font-size: .8rem; line-height: 1.35; margin-top: 2px; }
.costs-price { text-align: right; white-space: nowrap; }
.costs-price strong { display: block; font-family: var(--mono); font-size: 1.45rem; line-height: 1.1; }
.costs-price strong.is-free { font-family: inherit; font-size: .9rem; color: #22663d; background: #e3f3e8; padding: 3px 9px; border-radius: 99px; }
.costs-price span { font-size: .74rem; color: var(--mute); }
.costs-examples { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--amber-soft); }
.costs-examples h3 { margin: 0 0 8px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-ink); }
.costs-examples ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.costs-examples li { display: grid; grid-template-columns: 1fr auto 80px; gap: 12px; align-items: baseline; }
.costs-examples li b { font-family: var(--mono); }
.costs-examples li small { color: var(--amber-ink); text-align: right; }
.costs-foot { margin-top: 12px; }
@media (max-width: 560px) { .costs-examples li { grid-template-columns: 1fr auto; } .costs-examples li small { grid-column: 2; } }

/* Ποικιλία: «Καθαρισμός όλων» (hub #3252) */
.variety-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.variety-tools form { display: inline-flex; }

/* Admin → Κείμενα: every language side by side (hub #3251) */
.texts-langs span { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: .86rem; background: #fff; }
.texts-langs > small { align-self: center; }
.texts-side th.texts-key, .texts-side td.texts-key { width: 150px; }
.texts-side td.texts-key small { font-family: var(--mono, monospace); font-size: .68rem; color: var(--mute); overflow-wrap: anywhere; }
.texts-side td.texts-edit { width: calc((100% - 150px) / 2); }
.texts-side td.texts-edit.is-changed textarea { border-color: var(--amber); }
.texts-side td.texts-edit.is-missing textarea { background: #fff7e6; }
.texts-side .texts-do { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.texts-side .texts-do .texts-msg { flex-basis: 100%; margin: 0; }
.texts-side .texts-do [data-save]:disabled { display: none; }   /* the button shows only once something was typed */
.texts-side .texts-do:not(:has(> :not([hidden]):not(:disabled))) { margin-top: 0; }

/* Admin → Τελικές αποφάσεις (hub #3257) */
.final-group h2 { padding: 16px 18px 6px; }
.final-table th { width: 26%; text-align: left; font-weight: 700; vertical-align: top; }
.final-table th small { display: block; font-weight: 500; color: var(--mute); font-size: .74rem; }
.final-table td { vertical-align: top; }
.final-table td.final-src { width: 150px; color: var(--mute); font-size: .78rem; font-family: var(--mono); white-space: normal; }

/* Go Live progress (hub #3262) */
.golive-total { margin: 14px 0 4px; padding: 16px 18px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); }
.golive-total-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.golive-total-head b { font-size: 2rem; font-weight: 800; line-height: 1; }
.golive-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 8px 0 4px; }
.golive-bar.is-big { height: 12px; margin: 0; }
.golive-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--amber), #2f9a5a); transition: width .5s ease; }
.count-box.golive-box.is-done { opacity: 1; border-color: #2f9a5a; }
.count-box.golive-box.is-done b { color: #2f9a5a; }

/* Go Live: everything done in one list at the bottom (hub #3263) */
.golive-done { border-color: #bfe3cb; }
.golive-done .golive-done-cat { margin: 16px 0 4px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #22663d; }

/* Plan: three lines for the user's decisions (hub #3265) */
.plan-brief { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 4px 12px 40px; padding: 10px 12px; border-radius: 12px; background: #f6f4ee; border: 1px solid var(--line); }
.plan-brief div { min-width: 0; }
.plan-brief dt { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 3px; }
.plan-brief dd { margin: 0; font-size: .84rem; line-height: 1.45; }
.plan-brief .is-decide { padding-left: 10px; border-left: 3px solid var(--amber); }
.plan-brief .is-decide dt { color: var(--amber-ink); }
@media (max-width: 900px) { .plan-brief { grid-template-columns: 1fr; margin-left: 0; } }

/* A decision waiting for the user, inside the plan (hub #3266): a «?» instead of a tick box */
.plan-dec-mark { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: #0a0c11; font-weight: 800; font-size: .8rem; margin-top: 1px; }
.plan-brief dd ul { margin: 0; padding-left: 16px; display: grid; gap: 4px; }
.plan-brief dd li { padding-left: 2px; }
.plan-brief dd li::marker { color: var(--mute); }
.plan-brief .is-decide dd li::marker { color: var(--amber); }
.plan .plan-brief dd li { display: list-item; border-bottom: 0; grid-template-columns: none; }   /* not a plan row (.plan li is a grid) */
.plan .plan-brief dd ul { list-style: disc; }

/* Plan / Go Live: how a 'built' item becomes done (hub #4403) */
.plan-how { grid-column: 1 / -1; grid-row: 3; margin: 0 4px 12px 40px; padding: 9px 12px; border-radius: 12px; background: #f6f4ee; border: 1px solid var(--line); border-left: 3px solid #2f8a55; font-size: .84rem; line-height: 1.45; min-width: 0; overflow-wrap: anywhere; }
.plan-how b { color: #22663d; }
.plan-how-tag { display: inline-block; margin-left: 4px; font-size: .68rem; font-weight: 700; letter-spacing: .03em; padding: 1px 7px; border-radius: 6px; background: #e3efe7; color: #22663d; white-space: nowrap; }
.plan-how-tag.is-server { background: color-mix(in srgb, var(--amber) 22%, transparent); color: #7a5200; }
@media (max-width: 900px) { .plan-how { margin-left: 0; } }
/* steps the owner follows herself (hub #4409, config/plan_steps.php) */
.plan-steps { grid-column: 1 / -1; grid-row: 4; margin: 0 4px 12px 40px; padding: 10px 14px; border-radius: 12px; background: #f6f4ee; border: 1px solid var(--line); border-left: 3px solid var(--amber); font-size: .86rem; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.plan-steps ol { margin: 6px 0 0; padding-left: 1.4em; display: grid; gap: 6px; }
.plan .plan-steps li { display: list-item; border-bottom: 0; grid-template-columns: none; }   /* not a plan row (.plan li is a grid) */
@media (max-width: 900px) { .plan-steps { margin-left: 0; } }
/* Go Live: the figure without «Μετά το στήσιμο του VM», and that one on its own line (hub #4409) */
.golive-total-apart { margin: 10px 0 0; font-size: .9rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.golive-total-apart .golive-bar { flex: 1 1 160px; max-width: 320px; }
.golive-total-note { margin: 6px 0 0; font-size: .8rem; }
.golive-box.is-apart { border-style: dashed; }

/* Admin → Πληρωμές με κάρτα (hub #3287) */
.viva-addresses th { width: 140px; text-align: left; vertical-align: top; }
.viva-addresses td small { display: block; color: var(--mute); margin-top: 4px; }
.viva-copy { cursor: pointer; padding: 3px 7px; border-radius: 6px; background: #f6f4ee; word-break: break-all; }
.viva-copy.is-copied { background: #e3f3e8; }
.viva-form { display: grid; gap: 12px; max-width: 560px; }
.viva-form label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.viva-form input:not([type=radio]) { font: inherit; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.viva-env { border: 0; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.viva-env label { display: flex; gap: 6px; align-items: center; font-weight: 500; }
.viva-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
/* hub #3740: two key sets, and which one is in use */
.viva-now { border-left: 6px solid var(--ok); }
.viva-now-live { border-left-color: var(--err); }
.viva-now-line { font-size: 1.35rem; font-weight: 700; margin: 0 0 6px; }
.viva-now-live .viva-now-line b { color: var(--err); }
.viva-now-demo .viva-now-line b { color: var(--ok); }
.viva-use-form { display: grid; gap: 12px; margin-top: 14px; }
.viva-choices { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.viva-choices legend { font-weight: 700; margin-bottom: 6px; }
.viva-choices label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.viva-choices label:has(input:checked) { border-color: var(--amber); background: var(--amber-soft); }
.viva-choices label span { display: grid; }
.viva-choices small { color: var(--mute); }
.viva-sure { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-weight: 600; }
.viva-sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.viva-set.is-in-use { border: 2px solid var(--ok); }
.viva-set-live.is-in-use { border-color: var(--err); }
.viva-set-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.viva-set-head h2 { margin: 0; }
.viva-set .viva-form { max-width: none; }
.viva-set .viva-form input:not([type=radio]) { width: 100%; box-sizing: border-box; }
.viva-test { margin: 10px 0; }
.video-bulk [data-bulk-picked].is-over [data-bulk-count] { color: var(--err); opacity: 1; font-weight: 700; }

/* «Video Mo / Video Mo Plus» in «Νέο concept» (hub #3331) */
.product-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.product-card { position: relative; display: block; cursor: pointer; font-weight: 400; }
.product-card input { position: absolute; opacity: 0; }
.plus-note { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: var(--amber-soft); color: var(--amber-ink); font-size: .9375rem; }
.product-card > span { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.product-card:hover > span { border-color: var(--ink); }
.product-card input:checked + span { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.product-card input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.product-card b { font-size: 1rem; font-weight: 800; }
/* hub #3955: the product's logo in place of its name (img alt = the name); height chosen so «Live» stays readable */
.product-logo { display: block; height: 30px; width: auto; max-width: 100%; }
.product-card .product-name { display: block; min-height: 30px; margin-bottom: 2px; }
.product-card small { color: var(--mute); font-size: .8125rem; line-height: 1.4; }
.product-card em { font-style: normal; font-family: var(--mono); font-size: .75rem; font-weight: 700; color: var(--amber-ink); }
.product-example { justify-self: start; margin-top: 4px; font: inherit; font-size: .8125rem; font-weight: 700; background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; cursor: pointer; }
.example-dialog { border: 0; border-radius: var(--radius); padding: 14px; width: min(420px, 92vw); background: var(--card); }
.example-dialog::backdrop { background: rgba(10, 12, 17, .6); }
.example-dialog p { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.example-dialog video { width: 100%; border-radius: 10px; background: #000; display: block; }
/* «Τι στυλ θα σου άρεσε;» (hub #3643): a small window of six cards with a picture each */
.style-chosen { margin-top: 10px; font-size: .9375rem; }
.style-chosen .product-example { margin: 0; }
.style-dialog { border: 0; border-radius: var(--radius); padding: 18px; width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); background: var(--card); }
.style-dialog::backdrop { background: rgba(10, 12, 17, .6); }
.style-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.style-head h3 { font-size: 1.125rem; font-weight: 800; margin: 0 0 4px; }
.style-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.style-card { position: relative; display: block; cursor: pointer; font-weight: 400; }
.style-card input { position: absolute; opacity: 0; }
.style-card > span { display: grid; gap: 4px; align-content: start; height: 100%; padding: 8px 8px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.style-card:hover > span { border-color: var(--ink); }
.style-card input:checked + span { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.style-card input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.style-card b { font-size: .9375rem; font-weight: 800; margin-top: 4px; }
.style-card small { color: var(--mute); font-size: .8125rem; line-height: 1.35; }
.style-pic { display: block; width: 100%; height: 150px; border-radius: 8px; overflow: hidden; background: var(--line); }
.style-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.style-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }
.style-mosaic img { min-height: 0; }
@media (max-width: 560px) {
  .style-dialog { padding: 14px; }
  .style-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .style-pic { height: 104px; }
}
.product-tag { font-style: normal; display: inline-block; vertical-align: middle; font-size: .6875rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: var(--ink); color: var(--amber); white-space: nowrap; }
h1 .product-tag { font-size: .8125rem; padding: 4px 10px; letter-spacing: .02em; }
.style-tag { font-style: normal; display: inline-block; vertical-align: middle; font-size: .8125rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; border: 1.5px solid var(--amber); color: var(--amber-ink); background: var(--amber-soft); white-space: nowrap; }

.choice-form { display: contents; }
.choice-form .choice { width: 100%; height: 100%; }

/* a row of numbered choices (1–8 slides, 1–5 concepts) wraps on a phone instead of running off the edge */
@media (max-width: 560px) { .count-pick { display: flex; flex-wrap: wrap; width: auto; max-width: 100%; } .count-pick span { width: 44px; } }

/* «Brainstorming» (hub #3620): the sessions of the account and their ideas as cards */
.brainstorms { display: grid; gap: 16px; margin-top: 12px; }
.brainstorm { display: grid; gap: 14px; }
.brainstorm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.brainstorm-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .875rem; }
.brainstorm-cost { font-family: var(--mono); font-size: .75rem; padding: 2px 8px; border-radius: 6px; background: var(--info-soft); color: var(--info); }
.brainstorm-wait { display: flex; align-items: center; gap: 10px; color: var(--mute); }
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.idea-card { display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); min-width: 0; }
.idea-card h3 { margin: 0; font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.idea-line { font-weight: 600; font-size: .9rem; }
.idea-brief { font-size: .9rem; background: var(--card); border-left: 3px solid var(--amber); padding: 8px 10px; border-radius: 6px; overflow-wrap: anywhere; }
.idea-why { font-size: .8125rem; color: var(--mute); }
.idea-why b { color: var(--text); }
/* hub #3661: «Μόνο κείμενα από το site» — the page field shows only while the box is ticked; the passages of an idea */
.site-only .site-only-url { display: none; margin-top: .5rem; }
.site-only:has(input[name="site_only"]:checked) .site-only-url { display: block; }
.idea-sources { margin: .25rem 0 0; padding-left: 1.1rem; font-size: .8125rem; }
.idea-sources li { margin: .15rem 0; }
.idea-site { display: block; color: var(--accent, inherit); }
.idea-card footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.idea-card footer .muted { margin-right: auto; font-size: .8125rem; }
/* the ideas as one table (hub #3635): it scrolls inside its card on a phone */
.brainstorms .brand-filter { margin-bottom: 4px; }
.ideas-table { min-width: 980px; }
.ideas-table th, .ideas-table td { padding: 12px 14px; }
.ideas-table .idea-brand { font-size: .875rem; }
.ideas-table .idea-cell { max-width: 460px; }
.ideas-table .idea-title { display: block; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.ideas-table .idea-cell small { font-size: .8125rem; color: var(--text); }
.product-tag.is-mo { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }   /* hub #3702: the usual product, named but quieter */
.idea-made { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; font-size: .8125rem; }
.idea-made > span { color: var(--mute); font-weight: 700; }
.idea-made a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; padding: 3px 8px 3px 3px; border-radius: 99px; background: rgba(127,127,127,.1); }
.idea-made a:hover b { text-decoration: underline; }
.idea-made .status { font-size: .6875rem; }
.ideas-table .idea-session { font-size: .875rem; min-width: 150px; }
.ideas-table .idea-session .brainstorm-cost { display: inline-block; margin-top: 6px; }
.idea-more { margin-top: 6px; font-size: .8125rem; }
.idea-more summary { cursor: pointer; color: var(--mute); font-weight: 600; }
.idea-more .idea-brief { margin: 8px 0 6px; }
.idea-actions { white-space: nowrap; text-align: right; }
.idea-actions form { display: inline; }
.ideas-table .brainstorm-wait { margin: 0 0 6px; }
/* the status of an idea (hub #3682): three small buttons, the chosen one dark; Done and Archive rows step back */
.brainstorms .state-filter { margin-bottom: 4px; }
.idea-state { display: inline-flex; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--card); white-space: nowrap; }
.idea-state button { border: 0; background: none; padding: 5px 9px; font: inherit; font-size: .75rem; font-weight: 600; color: var(--mute); cursor: pointer; }
.idea-state button + button { border-left: 1px solid var(--line); }
.idea-state button:hover { color: var(--ink); }
.idea-state button.is-on { background: var(--ink); color: #fff; }
.idea-state button:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }
.ideas-table tr.idea-done .idea-title { color: var(--mute); }
.ideas-table tr.idea-archive td { opacity: .6; }

/* «Support» inside the account menu, with its unread badge (hub #3623) */
.rail-flyout a.rail-flyout-support { display: flex; align-items: center; gap: 8px; border-top: 1px solid #3a4253; margin-top: 4px; padding-top: 9px; border-radius: 0 0 8px 8px; }
.rail-account small .badge { margin-left: 4px; padding: 0 6px; font-size: .68rem; }

/* Brainstorming in the side menu (hub #3647): sessions being written (amber, pulsing) and new ideas not opened yet (green) */
.rail-badges { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; }
.rail-badges .badge { margin-left: 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.badge-working .pulse { width: 7px; height: 7px; background: var(--ink); }
.badge.badge-new, .rail-nav a.is-on .badge.badge-new { background: var(--ok); color: #fff; }
.rail-hf .rail-left small + small { color: var(--amber); text-decoration: underline; }

/* «Χαρακτήρες του brand» (hub #3687): the brand page's cards, the windows of the form, and the picker of the request forms */
.brand-characters { margin-bottom: 18px; }
.brand-characters-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.brand-characters-head h2 { font-size: 1.25rem; font-weight: 800; text-transform: none; letter-spacing: 0; color: var(--text); margin-bottom: 0; }
.brand-characters-head p { max-width: 60ch; margin-top: 4px; }
.character-empty { display: grid; gap: 4px; width: 100%; padding: 22px; border: 1.5px dashed #c9c2b2; border-radius: 12px; background: #fff; text-align: left; font: inherit; color: var(--text); }
.character-empty-add { cursor: pointer; }
.character-empty-add:hover { border-color: var(--ink); border-style: solid; }
.character-empty span { color: var(--mute); }
.character-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.character { display: grid; grid-template-rows: auto 1fr auto; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.character-pics { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; height: 170px; overflow: hidden; background: var(--paper); }
.character-pics img { width: 100%; height: 170px; min-width: 0; min-height: 0; object-fit: contain; display: block; background: var(--paper); }
.character-body { display: grid; gap: 4px; align-content: start; padding: 12px 14px 4px; }
.character-body b { font-size: 1rem; font-weight: 800; }
.character-body p { color: var(--mute); font-size: .875rem; line-height: 1.45; }
.character-actions { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 10px 12px; }
.character-actions form { margin: 0; }
.character-actions .btn { padding: 6px 12px; font-size: .875rem; }
.character-delete { color: var(--err); }
.popup .popup-title { color: var(--text); font-size: 1.125rem; font-weight: 800; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
.popup .popup-title + .muted { margin-bottom: 14px; }
.character-images { display: flex; gap: 8px; flex-wrap: wrap; }
.character-images:empty { display: none; }
.character-image { display: grid; gap: 4px; font-weight: 500; font-size: .8125rem; cursor: pointer; }
.character-image img, .character-images > img { width: 92px; height: 92px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); display: block; }
.character-count { display: block; margin-top: 2px; font-size: .8125rem; color: var(--mute); }
.character-count.has-characters { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 3px 10px 3px 3px; border-radius: 99px; background: rgba(127,127,127,.1); color: var(--text); font-weight: 700; text-decoration: none; }   /* hub #3703 */
.character-count.has-characters:hover span:last-child { text-decoration: underline; }
.character-faces { display: inline-flex; }
.character-faces img, .character-faces i { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--card); box-shadow: 0 0 0 2px var(--card); margin-left: -8px; display: inline-grid; place-items: center; font-style: normal; font-size: .75rem; font-weight: 800; }
.character-faces > :first-child { margin-left: 0; }
.character-faces i { background: var(--ink); color: var(--amber); }
.character-faces i.more { background: var(--line); color: var(--text); }
.character-field .muted { margin-bottom: 8px; }
.character-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.character-card { position: relative; display: block; cursor: pointer; font-weight: 400; }
.character-card input { position: absolute; opacity: 0; }
.character-card > span { display: grid; justify-items: center; gap: 4px; width: 112px; padding: 8px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; text-align: center; }
.character-card:hover > span { border-color: var(--ink); }
.character-card input:checked + span { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.character-card input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.character-card b { font-size: .8125rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.character-thumb { width: 80px; height: 80px; object-fit: contain; border-radius: 8px; background: var(--paper); display: grid; place-items: center; font-style: normal; color: var(--mute); }
/* hub #3832: the rights checkbox of a brand character, and the mark of a character not yet confirmed */
.character-rights { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; font-size: .875rem; line-height: 1.45; cursor: pointer; }
.character-rights input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--amber); }
.character-rights small { display: block; margin-top: 2px; }
.character-rights-missing { justify-self: start; margin-top: 4px; padding: 3px 10px; border: 1.5px solid var(--amber); border-radius: 999px; background: var(--amber-soft); color: var(--amber-ink); font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.style-dialog .character-field { margin-bottom: 14px; }
.keep-scenes { display: flex; gap: 8px; flex-wrap: wrap; }
.keep-scene { position: relative; cursor: pointer; }
.keep-scene input { position: absolute; opacity: 0; }
.keep-scene img { width: 96px; height: 120px; object-fit: cover; border-radius: 8px; border: 1.5px solid var(--line); display: block; }
.keep-scene input:checked + img { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.keep-scene input:focus-visible + img { outline: 3px solid var(--amber); outline-offset: 2px; }
@media (max-width: 560px) {
  .character-list { grid-template-columns: 1fr; }
  .character-card > span { width: 96px; }
  .character-thumb { width: 68px; height: 68px; }
}

/* ── Admin → Παραγωγή (redesign hub #3694) ─────────── */
.eng .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eng-status { background: #0a0c11; color: #f4f2ec; border-radius: var(--radius); padding: 18px 20px 20px; display: grid; gap: 10px; }
.eng-verdict { font-size: .9375rem; padding: 10px 14px; border-radius: 10px; background: #14171f; border-left: 4px solid #3ccf7a; }
.eng-verdict.is-bad { border-left-color: #ff7a66; }
.eng-row-name { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #9aa0ac; margin-top: 6px; }
.eng-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.eng-tile { display: grid; gap: 4px; align-content: start; text-decoration: none; background: #14171f; border: 1px solid #2c323d; border-top: 3px solid #3ccf7a; border-radius: 12px; padding: 12px 14px; min-width: 0; }
.eng-tile:hover { border-color: #4a5260; border-top-color: inherit; }
.eng-tile.is-ok { border-top-color: #3ccf7a; }
.eng-tile.is-warn { border-top-color: var(--amber); }
.eng-tile.is-bad { border-top-color: #ff7a66; background: #2a1715; }
.eng-tile-label { display: flex; align-items: center; gap: 7px; font-size: .8125rem; color: #c9c5bc; }
.eng-tile-label i { width: 9px; height: 9px; border-radius: 50%; background: #3ccf7a; flex: none; }
.eng-tile.is-warn .eng-tile-label i { background: var(--amber); }
.eng-tile.is-bad .eng-tile-label i { background: #ff7a66; }
.eng-tile-value { font-family: var(--mono); font-size: 1.125rem; color: #fff; overflow-wrap: anywhere; }
.eng-tile small { font-size: .78rem; color: #9aa0ac; line-height: 1.35; }
.eng-tile.is-bad small { color: #ffb3a6; }
.eng-bar { display: block; height: 6px; border-radius: 99px; background: rgba(154, 160, 172, .25); overflow: hidden; }
.eng-bar i { display: block; height: 100%; border-radius: 99px; background: #3ccf7a; }
.eng-tile.is-warn .eng-bar i, .eng-bar.is-warn i { background: var(--amber); }
.eng-tile.is-bad .eng-bar i, .eng-bar.is-bad i { background: #ff7a66; }
.eng-panel .eng-bar { background: var(--line); max-width: 420px; }
.eng-bar.is-ok i { background: var(--ok); }
.eng-bar.is-bad i { background: var(--err); }

.eng-sec { display: grid; gap: 16px; }
.eng-sec-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.eng-sec-head > div { flex: 1; min-width: 200px; }
.eng-sec .eng-sec-head h2 { font-size: 1.25rem; text-transform: none; letter-spacing: -.01em; color: var(--text); margin: 0; font-weight: 800; }
.eng-sec-head p { color: var(--mute); font-size: .9375rem; }
.eng-num { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--amber); font-family: var(--mono); font-weight: 700; display: grid; place-items: center; flex: none; }
.eng-chip { font-family: var(--mono); font-size: .8125rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; background: var(--ok-soft); color: #14613a; }
.eng-chip.is-warn { background: var(--amber-soft); color: var(--amber-ink); }
.eng-chip.is-bad { background: var(--err-soft); color: var(--err); }
.eng-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.eng-panel { display: grid; gap: 10px; align-content: start; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff; min-width: 0; }
.eng-panel h3 { font-size: 1rem; margin: 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.eng-figure { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eng-figure code { overflow-wrap: anywhere; }
.eng-big { font-family: var(--mono); font-size: 1.5rem; }
.eng-big.is-bad { color: var(--err); }
.eng-num-input { max-width: 160px; }
.eng-panel .form-actions { margin-top: 6px; }
.eng-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.eng-pair > div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.eng-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.eng-models { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.eng-models legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.eng-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.eng-facts > div { background: var(--paper); border-radius: 8px; padding: 8px 10px; }
.eng-facts dt { font-size: .78rem; color: var(--mute); }
.eng-facts dd { font-family: var(--mono); font-weight: 700; }
.eng-more summary { cursor: pointer; font-weight: 600; font-size: .875rem; color: var(--text); }
.eng-more[open] summary { margin-bottom: 8px; }
details.eng-panel.prose summary { font-size: 1rem; font-weight: 700; }
.eng-warn { background: var(--amber-soft); color: var(--amber-ink); border-radius: 10px; padding: 10px 14px; font-size: .9375rem; }
.eng-alert { background: var(--err-soft); color: var(--err); border-radius: 10px; padding: 10px 14px; overflow-wrap: anywhere; }
.eng-switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-radius: 12px; padding: 14px 16px; background: var(--ok-soft); color: #14613a; }
.eng-switch > div { flex: 1; min-width: 220px; }
.eng-switch.is-paused { background: var(--err-soft); color: var(--err); }
.eng-danger-link { color: var(--err); }
.eng-danger-link:hover { border-color: var(--err); }
@media (max-width: 1100px) { .eng-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .eng-grid, .eng-two, .eng-pair { grid-template-columns: minmax(0, 1fr); }
  .eng-status { padding: 14px; }
  .eng-tiles { gap: 8px; }
  .eng-tile { padding: 10px 12px; }
  .eng-tile-value { font-size: 1rem; }
  .eng-panel { padding: 14px; }
  .eng .field-row { flex-wrap: wrap; }
}
@media (max-width: 340px) { .eng-facts { grid-template-columns: minmax(0, 1fr); } }

/* The brand page on one page (hub #5219, before: three tabs of hub #3700): «Βασικά» and «Εμφάνιση» are sections of the one brand form, «Χαρακτήρες» under it */
.brand-panel { scroll-margin-top: 16px; }
.brand-form .brand-panel-title { font-size: 1.25rem; font-weight: 800; text-transform: none; letter-spacing: 0; color: var(--text); margin-bottom: 4px; }
.brand-panel-intro { margin-bottom: 16px; max-width: 62ch; }
.brand-panel + .brand-panel { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.brand-panel-characters { margin-top: 18px; }
.brand-panel-characters .brand-characters { margin-bottom: 0; scroll-margin-top: 16px; }
.character-empty .btn { justify-self: start; margin-top: 10px; }
/* Admin → Ιστορικό ενεργειών admin: «Καθαρισμός» hides, never deletes (hub #3709) */
.adminlog-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.adminlog-bar p { margin: 0; }
/* Admin menus (hub #3710): only the menu names on the page; the pages open on hover / focus, or with a tap on touch */
.admin-groups { margin-bottom: 18px; }
.admin-drop.is-right { left: auto; right: 0; }
.admin-drop { max-width: min(320px, calc(100vw - 32px)); }
.admin-groups .admin-drop a { white-space: normal; }
.admin-group.is-open .admin-drop { display: flex; }
@media (hover: none) {
  .admin-group:hover .admin-drop, .admin-group:focus-within .admin-drop { display: none; }
  .admin-group.is-open .admin-drop { display: flex; }
}

/* Higgsfield costs open the provider's billing page (hub #3716) */
a.hf-billing { color: inherit; text-decoration: underline dotted; text-underline-offset: 2px; }
a.hf-billing:hover { color: var(--amber, #F5A400); }

/* «Αγορά credits» (hub #3719): top, the two products, packs as videos, how it works, questions, every price folded */
.buy-page { gap: 26px; }
.buy-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; padding: 30px 32px 26px; border-radius: 20px; background: linear-gradient(135deg, var(--amber-soft) 0%, #fff6e0 55%, var(--card) 100%); border: 1px solid #f1dca6; overflow: hidden; }
.buy-hero h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.12; letter-spacing: -.01em; margin: 6px 0 10px; max-width: 18ch; }
.buy-hero-lead { margin: 0; max-width: 60ch; font-size: 1.02rem; }
.buy-promises { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.buy-promises li { display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, .75); border: 1px solid #f1dca6; border-radius: 99px; padding: 6px 12px; font-size: .84rem; font-weight: 600; }
.buy-promises li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }
.buy-hero-balance { margin: 18px 0 0; font-size: .92rem; color: var(--amber-ink); }
.buy-hero-mo { width: 118px; height: auto; align-self: end; margin-bottom: -6px; }
.buy-section { display: grid; gap: 14px; }
.buy-section-head h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.005em; }
.buy-section-head p { margin: 4px 0 0; color: var(--mute); max-width: 70ch; }
.buy-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.buy-products.is-single { grid-template-columns: minmax(0, 1fr); }
.buy-product { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; background: var(--ink); color: #f4f2ec; border-radius: 20px; padding: 18px; border: 1px solid var(--ink-line); }
.buy-product-plus { box-shadow: inset 0 0 0 1.5px rgba(245, 164, 0, .55); }
.buy-product-media { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: #0a0c11; display: grid; place-items: center; }
.buy-product-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.buy-product-mascot { width: 55%; height: auto; }
.buy-product-body { min-width: 0; display: flex; flex-direction: column; }
.buy-product h3 { margin: 2px 0 4px; font-size: 1.35rem; color: #fff; }
.buy-product-plus h3 { color: var(--amber); }
.buy-product-line { margin: 0; color: #c9c6bf; font-size: .9rem; line-height: 1.45; }
.buy-product-best { margin: 8px 0 0; color: #f4f2ec; font-size: .9rem; line-height: 1.45; }
.buy-product-from { margin: 14px 0 10px; font-size: .95rem; color: #c9c6bf; }
.buy-product-from b { font-family: var(--mono); font-size: 1.5rem; color: #fff; margin: 0 2px; }
.buy-product-from span { display: block; font-size: .8rem; color: #9da1ab; }
.buy-product-prices { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--ink-line); }
.buy-product-prices li { display: grid; grid-template-columns: minmax(0, 1fr) auto 68px; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--ink-line); font-size: .87rem; }
.buy-product-prices li:last-child { border-bottom: 0; }
.buy-product-prices small { display: block; font-size: .72rem; color: #9da1ab; }
.buy-product-prices b { font-family: var(--mono); white-space: nowrap; color: #fff; }
.buy-product-prices b.is-free { font-family: inherit; font-size: .78rem; color: #b8ecc8; }
.buy-product-prices em { font-style: normal; font-size: .76rem; color: #9da1ab; text-align: right; white-space: nowrap; }
/* hub #4362, #4364: prices before VAT, and the VAT of this customer under each pack */
/* hub #4372: the pack's own name and, when packs differ, its price per credit */
.pack > .pack-name { font-style: normal; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
/* Admin → Πακέτα credits (hub #4372) */
.pack-admin-list { display: grid; gap: 10px; margin-top: 10px; }
.pack-admin { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.pack-admin.is-off { opacity: .75; border-style: dashed; }
.pack-admin-main { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.pack-admin-what { flex: 1 1 260px; display: grid; gap: 2px; min-width: 0; }
.pack-admin-what em { font-style: normal; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); }
.pack-admin-what b { font-family: var(--mono); font-size: 1.15rem; }
.pack-admin-what span, .pack-admin-sold small { font-size: .84rem; color: var(--mute); }
.pack-admin-sold { min-width: 120px; }
.pack-admin-sold small { display: block; }
.pack-admin-sold b { font-family: var(--mono); font-size: 1.05rem; }
.pack-admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pack-admin-edit { margin-top: 8px; }
.pack-admin-edit summary { cursor: pointer; font-size: .84rem; font-weight: 600; }
.pack-admin-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 10px 0; width: 100%; }
.pack-admin-fields label { display: grid; gap: 4px; align-content: end; font-size: .84rem; font-weight: 600; }
.pack-admin-fields label em { font-style: normal; font-weight: 400; color: var(--mute); }
.pack-admin-fields input { width: 100%; min-width: 0; }
.pack-admin-form { display: grid; gap: 8px; justify-items: start; }
.pack-admin-form .check-line { display: flex; gap: 8px; align-items: center; font-size: .9rem; }
/* hub #4515: the discount the platform can afford + the pack for one customer (Admin → Πακέτα credits) */
.pack-margin-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 14px 0; }
.pack-margin-tiles > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; align-content: start; }
.pack-margin-tiles span { font-size: .8rem; font-weight: 600; color: var(--mute); }
.pack-margin-tiles > div > b { font-family: var(--mono); font-size: 1.35rem; }
.pack-margin-tiles small { font-size: .8rem; color: var(--mute); line-height: 1.4; }
.pack-margin-tiles .is-limit { border-color: var(--err); }
.pack-margin-tiles .is-limit > b { color: var(--err); }
.pack-margin-tiles .is-safe { border-color: var(--amber); background: var(--amber-soft); }
.pack-margin-target { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--mute); }
.pack-margin-target input { width: 4.6em; padding: 2px 6px; font: inherit; min-height: 0; }
.pack-margin .table-scroll { overflow-x: auto; }
.pack-margin-table td { white-space: nowrap; font-family: var(--mono); font-size: .88rem; }
.pack-margin-table thead th { font-size: .8rem; vertical-align: bottom; }
.pack-margin-table thead small, .pack-margin-table td small { font-weight: 400; color: var(--mute); font-family: var(--sans, inherit); }
.pack-margin-table tbody th { text-align: left; white-space: nowrap; }
.pack-margin-table tr.is-total th, .pack-margin-table tr.is-total td { font-weight: 700; }
.pack-private-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 18px; align-items: start; }
.pack-private-form .pack-admin-fields .is-wide { grid-column: 1 / -1; }
.pack-private-sum { margin: 0; font-size: .92rem; }
.pack-private-aside { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: .88rem; display: grid; gap: 6px; }
.pack-private-aside p { margin: 0; }
.pack-private-loss { color: var(--err) !important; font-weight: 700; }
@media (max-width: 960px) { .pack-private-grid { grid-template-columns: 1fr; } }
.pack-vat { margin: 6px 0 0; font-size: .8rem; line-height: 1.4; color: var(--mute); }
.pack-vat b { color: var(--text, inherit); font-weight: 700; }
.buy-vat-note { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: .88rem; line-height: 1.5; }
.buy-vat-note a { white-space: nowrap; }
.pack-fits { list-style: none; margin: 10px 0 14px; padding: 10px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 3px; font-size: .82rem; color: var(--mute); width: 100%; }
.pack-fits li:first-child { color: var(--text); font-size: .9rem; }
/* hub #4426: the required consent «start now / no withdrawal for the credits I use» above the buy button */
.pack-consent { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; font-size: .875rem; font-weight: 400; line-height: 1.4; color: var(--mute); cursor: pointer; }
.pack-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--amber, #F5A400); }
.pack-consent a { color: inherit; text-decoration: underline; }
.pack-fits b { font-family: var(--mono); color: var(--text); }
.buy-packs-foot, .buy-pay-note { margin: 0; font-size: .82rem; color: var(--mute); }
.buy-pay-note { padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.buy-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.buy-steps li { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.buy-steps li > span { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--amber); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; }
.buy-steps p { margin: 4px 0 0; font-size: .87rem; color: var(--mute); line-height: 1.45; }
.buy-all-prices { border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.buy-all-prices > summary { cursor: pointer; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.buy-all-prices > summary span { color: var(--mute); font-size: .85rem; }
.buy-all-prices[open] > summary { border-bottom: 1px solid var(--line); }
.buy-all-prices > .card { border: 0; border-radius: 0; background: transparent; }
.buy-all-prices > .card + .card { border-top: 1px solid var(--line); }
@media (max-width: 1100px) { .buy-products { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .buy-hero { grid-template-columns: minmax(0, 1fr); padding: 22px 18px 20px; }
  .buy-hero-mo { position: absolute; right: 12px; top: 14px; width: 54px; margin: 0; }
  .buy-hero h2 { padding-right: 60px; }
  .buy-product { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .buy-product-media { max-width: 260px; width: 100%; margin: 0 auto; }
  .buy-steps { grid-template-columns: minmax(0, 1fr); }
  .buy-product-prices li { grid-template-columns: minmax(0, 1fr) auto; }
  .buy-product-prices em { grid-column: 2; margin-top: -6px; }
}
/* hub #4453: packs first and redesigned — dark cards in one row (scrolling sideways when they do not fit, one per row on a
   phone), credits big, net price big, the total with VAT on one line, what the pack buys, full-width button; the middle pack
   has the amber border (no badge: the owner chose none). Compact hero above them. */
.buy-hero { padding: 20px 24px; border-radius: 16px; gap: 16px; align-items: center; }
.buy-hero h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); max-width: none; margin: 4px 0 6px; }
.buy-hero-lead { font-size: .95rem; }
.buy-promises { margin-top: 12px; gap: 6px; }
.buy-promises li { padding: 4px 10px; font-size: .8rem; }
.buy-hero-balance { margin-top: 12px; font-size: .9rem; }
.buy-hero-mo { width: 76px; margin: 0; align-self: center; }
.buy-packs { display: grid; grid-template-columns: repeat(var(--packs, 4), minmax(0, 1fr)); gap: 14px; margin: 0; padding: 4px 0 10px; }
.buy-packs .pack { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; min-width: 0; background: linear-gradient(180deg, #1c2029 0%, var(--ink) 55%); color: #f4f2ec; border: 1px solid var(--ink-line); border-radius: 18px; padding: 22px 20px 18px; transition: border-color .18s, transform .18s, box-shadow .18s; }
.buy-packs .pack:hover { border-color: rgba(245, 164, 0, .55); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(20, 23, 29, .2); }
.buy-packs .pack.is-middle { border: 1.5px solid var(--amber); box-shadow: 0 0 0 4px rgba(245, 164, 0, .14); background: linear-gradient(180deg, #2a2516 0%, var(--ink) 55%); }
.buy-packs .pack.is-middle:hover { box-shadow: 0 0 0 4px rgba(245, 164, 0, .18), 0 16px 34px rgba(20, 23, 29, .22); }
.buy-packs .pack-top { min-height: 0; }
.buy-packs .pack-name { display: block; font-style: normal; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); margin: 0 0 8px; }
.pack-credits { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.pack-credits b { font-family: var(--mono); font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: 1; letter-spacing: -.03em; color: #fff; }
.pack-credits span { font-size: .875rem; color: #9da1ab; }
.pack-price { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--ink-line); }
.pack-net { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.pack-net strong { font-size: 1.55rem; font-weight: 800; line-height: 1.1; color: #fff; letter-spacing: -.01em; }
.buy-packs .pack-net small.pack-excl { margin: 0; font-size: .8rem; color: #9da1ab; }
.buy-packs .pack-per-credit { display: block; margin: 4px 0 0; font-size: .8rem; font-family: var(--mono); color: #c9c6bf; }
.buy-packs .pack-vat { margin: 8px 0 0; font-size: .84rem; line-height: 1.4; color: #c9c6bf; }
/* hub #4515: a pack made for this account only */
.buy-packs .pack.is-private { border: 1.5px dashed var(--amber); }
.buy-packs .pack-private { display: inline-block; align-self: flex-start; margin: 0 0 10px; padding: 3px 10px; border-radius: 8px; line-height: 1.35; background: rgba(245, 164, 0, .16); color: var(--amber); font-size: .875rem; font-weight: 700; }
.buy-packs .pack-vat b { color: #fff; font-weight: 800; font-size: 1rem; white-space: nowrap; }
.buy-packs .pack-fits { list-style: none; margin: 16px 0 18px; padding: 14px 0 0; border-top: 1px dashed var(--ink-line); display: grid; gap: 5px; font-size: .84rem; line-height: 1.4; color: #9da1ab; width: auto; }
.buy-packs .pack-fits li:first-child { color: #f4f2ec; font-size: .92rem; }
.buy-packs .pack-fits b { font-family: var(--mono); color: #fff; }
.buy-packs .pack-buy { margin-top: auto; width: 100%; padding: 12px 14px; background: #f4f2ec; color: var(--ink); border-color: #f4f2ec; }
.buy-packs .pack-buy:hover, .buy-packs .pack-buy:focus-visible { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.buy-packs .pack.is-middle .pack-buy { background: var(--amber); border-color: var(--amber); }
.buy-packs .pack.is-middle .pack-buy:hover { background: #ffb81f; border-color: #ffb81f; }
.buy-packs .pack-buy:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
@media (max-width: 1240px) {
  .buy-packs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 2px; padding: 4px 2px 14px; -webkit-overflow-scrolling: touch; }
  .buy-packs .pack { flex: 0 0 220px; scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .buy-hero { padding: 18px 16px; }
  .buy-hero-mo { width: 48px; top: 12px; }
  .buy-packs { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; padding: 0; gap: 12px; }
  .buy-packs .pack { padding: 18px 16px 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; }
  .buy-packs .pack-top, .buy-packs .pack-price { grid-column: 1; }
  .buy-packs .pack-price { margin-top: 12px; padding-top: 12px; }
  .buy-packs .pack-fits { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0 0 0 14px; border-top: 0; border-left: 1px dashed var(--ink-line); align-content: center; }
  .buy-packs .pack-buy { grid-column: 1 / -1; margin-top: 16px; }
  .pack-credits b { font-size: 2rem; }
  .pack-net strong { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) { .buy-packs .pack, .buy-packs .pack:hover { transition: none; transform: none; } }
.buy-all-prices { min-width: 0; }
.buy-all-prices > .sizes-card { overflow-x: auto; }
.buy-product { align-items: start; }
.buy-product-body { align-self: stretch; }

/* «Αγορά credits», the questions (hub #3724): one card, two columns of rows with dividers, number, question, a «+» that turns */
.buy-faq-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.buy-faq .buy-faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 6px 28px; }
.buy-faq .buy-faq-col { min-width: 0; }
.buy-faq .buy-faq-item { background: none; border: 0; border-radius: 0; padding: 0; border-bottom: 1px solid var(--line); }
.buy-faq .buy-faq-item:last-child { border-bottom: 0; }
.buy-faq .buy-faq-item > summary { list-style: none; display: grid; grid-template-columns: 30px minmax(0, 1fr) 28px; gap: 12px; align-items: center; padding: 18px 0; cursor: pointer; font-weight: 700; font-size: 1rem; line-height: 1.35; color: var(--text); margin: 0; border-radius: 8px; }
.buy-faq .buy-faq-item > summary::-webkit-details-marker { display: none; }
.buy-faq .buy-faq-item > summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.buy-faq-n { font-family: var(--mono); font-size: .78rem; font-weight: 600; color: var(--mute); letter-spacing: .02em; }
.buy-faq-item[open] .buy-faq-n { color: var(--amber-ink, #8a5a00); }
.buy-faq-q { min-width: 0; }
.buy-faq .buy-faq-item > summary:hover .buy-faq-q { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.buy-faq-icon { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: #fff; transition: background .2s, border-color .2s, transform .25s; }
.buy-faq-icon::before, .buy-faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.8px; margin: -.9px 0 0 -5.5px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
.buy-faq-icon::after { transform: rotate(90deg); }
.buy-faq-item[open] .buy-faq-icon { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.buy-faq-item[open] .buy-faq-icon::before { background: var(--amber); }
.buy-faq-item[open] .buy-faq-icon::after { transform: rotate(0deg); opacity: 0; }
.buy-faq .buy-faq-a { padding: 0 40px 20px 42px; }
.buy-faq .buy-faq-a p { margin: 0; max-width: 58ch; font-size: .93rem; line-height: 1.6; color: #3b3f48; }
.buy-faq .buy-faq-a a { color: var(--text); font-weight: 600; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .buy-faq .buy-faq-list { grid-template-columns: minmax(0, 1fr); padding: 2px 16px; border-radius: 14px; }
  .buy-faq .buy-faq-col:first-child .buy-faq-item:last-child { border-bottom: 1px solid var(--line); }
  .buy-faq .buy-faq-item > summary { grid-template-columns: 24px minmax(0, 1fr) 26px; gap: 10px; padding: 16px 0; font-size: .96rem; }
  .buy-faq-icon { width: 26px; height: 26px; }
  .buy-faq .buy-faq-a { padding: 0 0 18px 34px; }
}
@media (prefers-reduced-motion: reduce) { .buy-faq-icon, .buy-faq-icon::before, .buy-faq-icon::after { transition: none; } }

/* Admin → Τιμοκατάλογος (hub #3728): tables only; the box scrolls sideways on a phone, the header and first column stay */
.pl-intro { display: grid; gap: 10px; margin-bottom: 8px; }
.pl-intro p { margin: 0; }
.pl-sizes { align-items: center; }
.pl-sizes span { font-weight: 600; font-size: .8125rem; margin-right: 4px; }
.pl-section { margin: 34px 0 0; display: grid; gap: 10px; min-width: 0; }
.pl-section h2 { margin: 0; font-size: 1.25rem; }
.pl-section h2 small { font-size: .8125rem; font-weight: 600; color: var(--mute); margin-left: 6px; }
.pl-section h3 { margin: 14px 0 0; font-size: 1rem; }
.pl-section > p { margin: 0; max-width: 80ch; }
.pl-box { max-width: 100%; max-height: 80vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.pl-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .875rem; }
.pl-table th, .pl-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; background: var(--card); }
.pl-table thead th { position: sticky; top: 0; z-index: 2; font-size: .75rem; color: var(--mute); white-space: nowrap; background: #f6f2ea; }
.pl-table .num { text-align: right; white-space: nowrap; }
.pl-table td.num b { font-size: 1rem; }
.pl-table td small { display: block; font-size: .75rem; color: var(--mute); }
.pl-table td small.pl-cost { color: #9a6a00; }
.pl-table .pl-first { position: sticky; left: 0; z-index: 1; min-width: 150px; max-width: 260px; font-weight: 600; border-right: 1px solid var(--line); }
.pl-table thead .pl-first { z-index: 3; }
.pl-table .pl-keys { font-family: var(--mono); font-size: .75rem; color: var(--mute); min-width: 120px; font-weight: 400; }
.pl-table tbody tr:last-child > * { border-bottom: 0; }
.pl-models summary { cursor: pointer; font-weight: 600; font-size: .875rem; }
.pl-mini { margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pl-mini th { width: 34%; font-weight: 600; }
.pl-measured { font-size: .8125rem; color: var(--mute); margin: 0; }
.pl-measured:empty { display: none; }
@media (max-width: 600px) { .pl-table .pl-first { min-width: 120px; max-width: 150px; } .pl-table th, .pl-table td { padding: 7px 9px; } }
/* Admin → Σενάρια (hub #3730): reuses the price list's tables (.pl-*) */
.sc-form { display: grid; gap: 0; }
.sc-default { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sc-steps select, .sc-models select, .sc-models input { width: auto; min-width: 0; padding: 6px 9px; }
.sc-models input { width: 9em; }
.sc-steps td { vertical-align: middle; }
.sc-fields { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; min-width: 320px; }
.sc-fields label, .sc-add label, .sc-saveform label { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.sc-fields .sc-check input { width: auto; }
.sc-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sc-add label { flex-wrap: wrap; white-space: normal; max-width: 100%; min-width: 0; }
.sc-add select { width: auto; max-width: 100%; min-width: 0; }
.sc-models th { font-weight: 600; min-width: 180px; }
.sc-go { margin: 18px 0 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sc-legend { font-size: .8125rem; color: var(--mute); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.sc-src { display: inline-block; font-size: .6875rem; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: #e9f3ea; color: #2c6b35; white-space: nowrap; vertical-align: 1px; }
.sc-src-pace { background: #eef0f7; color: #3d4a7a; }
.sc-src-estimate { background: #fff1d6; color: #8a5a00; }
.sc-src-rule { background: #f1ece3; color: #6b5a3a; }
.sc-result th.pl-first small, .sc-result td small.sc-why { display: block; font-weight: 400; font-size: .75rem; color: var(--mute); white-space: normal; max-width: 240px; }
.sc-result td.num small.sc-why { margin-left: auto; text-align: right; min-width: 200px; font-family: var(--font); letter-spacing: 0; }
.sc-result td.num { font-variant-numeric: tabular-nums; }
.sc-result small.sc-note { color: #8a5a00; }
.sc-mods { font-size: .75rem; color: var(--mute); min-width: 170px; }
.pl-table tr.sc-loss > * { background: #fbe9e6; }
.pl-table tr.sc-loss td.num b { color: #a3291b; }
.pl-table tr.sc-error > * { background: #fff6e0; color: #8a5a00; }
.pl-table tfoot td, .pl-table tfoot th { border-top: 2px solid var(--line); border-bottom: 0; }
.pl-table .sc-neg { color: #a3291b; font-weight: 700; }
.sc-assume { padding: 8px 12px; border-radius: 10px; background: #fff1d6; color: #6b4700; margin: 0; }
.sc-saveform { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sc-saveform input[type=text] { width: min(420px, 100%); }
.sc-saveform label { flex-wrap: wrap; white-space: normal; }
.sc-compare td.num { min-width: 140px; white-space: normal; }
@media (max-width: 600px) { .sc-fields { min-width: 220px; } .sc-models th { min-width: 120px; } }

/* «Βαθμολόγησε αυτό το concept» (hub #3738): a quiet line under the downloads */
.rate { display: grid; gap: 8px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.rate-stars { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin: 0; }
.rate-label { color: var(--mute); font-size: .875rem; }
.rate-row { display: inline-flex; gap: 2px; }
.rate-star { font: inherit; background: none; border: 0; padding: 4px; margin: 0; cursor: pointer; border-radius: 6px; line-height: 0; color: var(--mute); }
.rate-star svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.rate-star.is-on { color: var(--amber); }
.rate-star.is-on svg { fill: var(--amber); }
.rate.is-hover .rate-star svg { fill: none; }
.rate.is-hover .rate-star { color: var(--mute); }
.rate-star.is-hint, .rate.is-hover .rate-star.is-hint { color: var(--amber); }
.rate.is-hover .rate-star.is-hint svg { fill: var(--amber); }
.rate-star:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.rate-comment { display: grid; gap: 6px; margin: 0; }
.rate-comment[hidden] { display: none; }
.rate-comment label { font-size: .875rem; font-weight: 600; }
.rate-comment label small { display: block; font-weight: 400; color: var(--mute); }
.rate-comment textarea { font: inherit; width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; resize: vertical; background: #fff; color: var(--text); }
.rate-comment .btn { justify-self: start; }
.rate-status { margin: 0; font-size: .8125rem; color: var(--ok); min-height: 0; }
.rate-status:empty { display: none; }
.rate-status.is-bad { color: var(--err); }

/* Admin → Αξιολογήσεις (hub #3738) */
.rt-stars { color: var(--amber); letter-spacing: 1px; white-space: nowrap; }
.rt-stars i { color: var(--line); font-style: normal; }
.rt-avg { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; margin-bottom: 16px; }
.rt-avg .card { min-width: 0; overflow-x: auto; }
.rt-avg table { width: 100%; }
.rt-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.rt-filter label { display: grid; gap: 4px; font-size: .8125rem; color: var(--mute); }
.rt-comment { white-space: pre-wrap; min-width: 150px; max-width: 320px; }
.rt-table .req-about + .btn, .rt-table .req-about + form { display: inline-block; margin-top: 6px; }
.rt-act { margin-top: 6px; }   /* hub #4451: Σβήσιμο / Επαναφορά, under the stars */
.rt-act small { display: block; margin-bottom: 4px; white-space: nowrap; }
.rt-deleted-toggle { margin-left: auto; }

/* Invoicing details (hub #3743, #3744): required marks, errors under a field, the VAT prefix of the country */
.req { color: var(--err); text-decoration: none; font-weight: 700; margin-left: 2px; cursor: help; }
.req-legend { font-size: .8125rem; color: var(--mute); margin-bottom: 16px; }
.field-error { color: var(--err); font-size: .8125rem; font-weight: 600; }
[aria-invalid="true"] { border-color: var(--err) !important; background: var(--err-soft) !important; }
.vat-input { display: flex; align-items: stretch; }
.vat-prefix { display: flex; align-items: center; padding: 0 12px; border: 1.5px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; background: #ece8de; font-family: var(--mono); font-weight: 700; font-size: .9375rem; color: var(--text); }
.vat-prefix:not([hidden]) + input { border-radius: 0 10px 10px 0 !important; }
.vat-input input { font-family: var(--mono); letter-spacing: .02em; }
/* VIES answer under the VAT number (hub #4385) */
.vies-box { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 6px; }
.vies-status { margin: 0; padding: 8px 12px; border-radius: 10px; font-size: .875rem; line-height: 1.45; background: var(--info-soft); color: var(--text); max-width: 100%; overflow-wrap: anywhere; }
.vies-status[data-state="valid"] { background: var(--ok-soft); border-left: 3px solid var(--ok); }
.vies-status[data-state="invalid"], .vies-status[data-state="format"] { background: var(--err-soft); border-left: 3px solid var(--err); }
.vies-status[data-state="unavailable"], .vies-status[data-state="limit"] { background: var(--amber-soft); border-left: 3px solid var(--amber); }
.vies-status[data-state="busy"] { background: transparent; color: var(--mute); padding-left: 0; }
.vies-status small { display: block; color: var(--mute); }
.muted.small { font-size: .8125rem; }
form[data-billing] .field-grid { align-items: start; }
form[data-billing] > div[data-for], form[data-billing] > div[data-for] + .field { margin-top: 16px; }

/* hub #3747: the counter under the change text */
.count-warn { display: block; text-align: right; margin-top: 4px; font-size: .8rem; }
.count-warn.is-full { color: var(--danger, #c0392b); font-weight: 600; }
/* Billing: country left of the VAT number (hub #3749) — 40/60 for an invoice, the country alone for a receipt */
form[data-billing] .country-vat { grid-template-columns: 2fr 3fr; }
form[data-billing] .country-vat:has(> [data-for=invoice][hidden]) { grid-template-columns: minmax(0, 420px); }
form[data-billing] .field-grid:has(> [data-gr-only][hidden]) { grid-template-columns: 1fr; }
@media (max-width: 960px) { form[data-billing] .country-vat { grid-template-columns: 1fr; } }
/* The searchable country picker over the select (hub #3748, app.js): flags from the sprite img/flags.png (renderer/flags.py) */
.flag { display: inline-block; flex: none; width: 20px; height: 15px; border-radius: 2px; background: url(../img/flags.png) 0 0 / auto 15px no-repeat; box-shadow: 0 0 0 1px rgba(20, 23, 31, .12); }
.cpick { position: relative; }
.cpick > .flag { position: absolute; left: 12px; top: 50%; translate: 0 -50%; pointer-events: none; }
.cpick input.cpick-input { padding-left: 42px; padding-right: 40px; text-overflow: ellipsis; }
.cpick-toggle { position: absolute; right: 4px; top: 50%; translate: 0 -50%; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.cpick-toggle::before { content: ''; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -2px; transition: rotate .15s; }
.cpick.is-open .cpick-toggle::before { rotate: 225deg; translate: 0 2px; }
.cpick-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; max-height: min(320px, 50vh); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; box-shadow: 0 14px 30px -12px rgba(20, 23, 31, .35); }
.cpick-list[hidden] { display: none; }
.cpick-group { padding: 8px 10px 4px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.cpick-option { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.cpick-option .cpick-code { margin-left: auto; font-family: var(--mono); font-size: .8125rem; color: var(--mute); }
.cpick-option.is-active { background: var(--amber-soft, #fdeec4); }
.cpick-option[aria-selected=true] { font-weight: 700; }
.cpick-empty { padding: 10px; color: var(--mute); }

/* Admin → Usage log: profit per product, today / month / year (hub #3752) */
.usage-summary { margin: 18px 0 6px; overflow-x: auto; }
.usage-summary table { width: 100%; min-width: 560px; }
.usage-summary th, .usage-summary td { padding: 10px 14px; vertical-align: top; }
.usage-summary thead th small { color: var(--mute); font-weight: 500; margin-left: 4px; }
.usage-summary tbody th { text-align: left; font-weight: 700; white-space: nowrap; }
.usage-summary tbody th small, .usage-summary td small { display: block; color: var(--mute); font-size: .75rem; font-weight: 500; line-height: 1.35; white-space: normal; }
.usage-summary td b { font: 700 1.05rem var(--mono); }
.usage-summary td.is-gain b { color: var(--ok); }
.usage-summary td.is-loss { background: #f9dedc; }
.usage-summary td.is-loss b { color: #b3261e; }
.usage-summary tr.is-total th, .usage-summary tr.is-total td { border-top: 2px solid var(--ink); }
.usage-summary tr.is-total td b { font-size: 1.2rem; }
.usage-summary .usage-hub-left { font-style: italic; }
/* hub #3757: three sub-columns per period — Έσοδα · Κόστος · Κέρδος; a line between periods */
.usage-summary table { min-width: 900px; }
.usage-summary th, .usage-summary td { padding: 9px 8px; }
.usage-summary thead th.usage-period { text-align: center; border-bottom: 0; }
.usage-summary thead tr.usage-sub th { font-size: .72rem; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.usage-summary .usage-first, .usage-summary thead th.usage-period { border-left: 1.5px solid var(--line); }
.usage-summary td b { font-size: .92rem; white-space: nowrap; }
.usage-summary tr.is-total td b { font-size: 1rem; }
.usage-summary td b.usage-in, .usage-summary td b.usage-cost { font-weight: 600; }
.usage-summary td b.usage-cost { color: #8a5a00; }
.usage-summary td small.usage-part { white-space: nowrap; }
.usage-summary-note { margin: 0; padding: 10px 14px 14px; font-size: .78rem; max-width: 980px; }

/* hub #3761: the admin's cost table of one request, at the bottom of the request page */
.request-costs { margin-top: 8px; overflow-x: auto; }
.request-costs table { width: 100%; font-size: .85rem; }
.request-costs th, .request-costs td { padding: 8px 6px; }
.request-costs th:first-child, .request-costs td:first-child { padding-left: 12px; }
.request-costs th:last-child, .request-costs td:last-child { padding-right: 12px; }
.request-costs th { font-size: .7rem; white-space: nowrap; }
.request-costs td.num { white-space: nowrap; }
@media (max-width: 720px) { .request-costs table { min-width: 600px; } }
.request-costs small { display: block; color: var(--mute); font-size: .75rem; font-weight: 400; }
.request-costs .is-gain { color: var(--ok, #14613a); }
.request-costs .is-loss { color: var(--err); }
.request-costs tfoot tr.is-total td { border-top: 2px solid var(--line, currentColor); font-size: 1rem; }
.request-costs-note { font-size: .8rem; margin-top: 8px; }
.request-costs-note a { white-space: nowrap; font-weight: 600; }
.request-tokens { margin-top: 10px; }
.request-tokens summary { cursor: pointer; font-size: .85rem; }

/* hub #3828: the browsers that remember an account (Ο λογαριασμός μου) */
.device-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.device-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.device-list li small { display: block; }
.device-list form { margin: 0; }
.login-form .rights em { display: block; font-style: normal; opacity: .75; }

/* hub #3985: the admin pages have the full width. (The Admin pages nested in the side menu left with hub #4526.) */
.admin-body { min-width: 0; }
}

/* hub #3843: a restricted account sees it in red, on every page */
.restricted-banner { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: #b3261e; color: #fff; font-weight: 600; }
.restricted-banner svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.restricted-banner a { color: #fff; text-decoration: underline; }

/* hub #3838: long explanations behind a «Πληροφορίες» button, closed by default (details.info-fold; the open state
   is remembered per page in this browser when it has data-remember) */
.info-fold { margin: 0 0 16px; }
.info-fold > summary { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 700; font-size: .88rem; cursor: pointer; list-style: none; user-select: none; }
.info-fold > summary::-webkit-details-marker { display: none; }
.info-fold > summary::before { content: 'i'; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-family: Georgia, serif; font-style: italic; font-weight: 700; font-size: .8rem; }
.info-fold > summary:hover { border-color: var(--ink); }
.info-fold > summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.info-fold[open] > summary { margin-bottom: 10px; background: var(--ink); color: #fff; border-color: var(--ink); }
.info-fold[open] > summary::before { background: var(--amber); color: var(--ink); }
.info-fold > .card { margin: 0; }

/* hub #3841: header actions wrap on phones (Πληρωμές had «Διαγραφή όλων των demo» 9px past the edge at 390px) */
@media (max-width: 600px) {
  .head-actions { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; }
  .head-actions .btn { white-space: normal; max-width: 100%; }
}

/* hub #3847: the side menu folds into a narrow rail of icons (wide screens only; phones keep the menu on top) */
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.rail-toggle { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--ink-line); border-radius: 9px; background: transparent; color: #9aa0ac; cursor: pointer; }
.rail-toggle:hover { color: #fff; border-color: #9aa0ac; }
.rail-toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.rail-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 960px) { .rail-toggle { display: none; } }
@media (min-width: 961px) {
  html.rail-closed .shell { grid-template-columns: 72px minmax(0, 1fr); }
  html.rail-closed .rail { padding: 20px 8px 16px; gap: 20px; overflow-y: auto; scrollbar-width: none; }
  html.rail-closed .rail-head { flex-direction: column; gap: 14px; }
  html.rail-closed .rail .wordmark.brand-logo { width: 56px; padding: 0; overflow: hidden; }
  html.rail-closed .rail-toggle svg { transform: scaleX(-1); }
  html.rail-closed .rail-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html.rail-closed .rail-nav a, html.rail-closed .rail-nav a.rail-sub { position: relative; justify-content: center; margin-left: 0; padding: 10px 0; gap: 0; }
  html.rail-closed .rail-nav a.rail-sub svg { width: 16px; height: 16px; opacity: .85; }
  html.rail-closed .rail-nav .badge, html.rail-closed .rail-badges { position: absolute; top: 1px; right: 2px; margin: 0; font-size: .6rem; padding: 0 5px; }
  html.rail-closed .rail-badges .badge { position: static; }
  html.rail-closed .rail-badges .badge-new { display: none; }
  html.rail-closed .rail-api, html.rail-closed .rail-foot .lang-switch, html.rail-closed .rail-account-wrap { display: none; }
  html.rail-closed .rail-me { justify-content: center; }
  html.rail-closed .rail-me .rail-credits { border-left: 0; justify-items: center; padding: 8px 4px; }
  html.rail-closed .rail-env { font-size: .5rem; letter-spacing: .08em; }
}

/* hub #3849: admin tables without an inner vertical scroll box — the page scrolls, the header row sticks to the top
   of the window; .page-scroll is set by app.js (without it the old inner box stays), .is-wide = wider than its box */
.page-scroll { max-height: none !important; overflow: visible !important; }
.page-scroll.is-wide { overflow-x: auto !important; overflow-y: hidden !important; }

/* hub #3850: the admin overview is «home» — Mo's head, first in the row of menus */
/* hub #3906: no padding — the head itself fills the slot, as tall as the other menus; the open page = a dark ring */
.admin-groups a.admin-home { display: block; align-self: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; border-radius: 12px; overflow: hidden; }
.admin-groups a.admin-home svg { width: 100%; height: 100%; display: block; }
.admin-groups a.admin-home:hover { background: none; filter: brightness(1.04); }
.admin-groups a.admin-home.is-on { background: none; box-shadow: 0 0 0 2px var(--card, #fff), 0 0 0 4px var(--ink); }
.admin-groups a.admin-home:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
/* hub #3854: back into the customer's account the admin left for the panel */

/* hub #3853: Admin = the amber entry of the side menu, above the languages (inside a customer's account too, #3854) */
.rail-admin-item form { margin: 0; }
.rail-admin { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: var(--amber); color: var(--ink); font: inherit; font-weight: 700; font-size: .9rem; text-decoration: none; cursor: pointer; text-align: left; }
.rail-admin:hover { background: #ffb81f; }
.rail-admin:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rail-admin.is-on { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--amber); }
.rail-admin svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail-admin .badge { margin-left: auto; background: var(--ink); color: #fff; }

/* hub #3851: names and sub-menus beside the folded rail — hidden while the menu is open */
.rail-fly, .rail-account-icon, .rail-flyout .rail-fly-title { display: none; }
@media (min-width: 961px) {
  html.rail-closed .rail { z-index: 40; }
  html.rail-closed .rail-item { position: relative; }
  html.rail-closed .rail-fly { position: fixed; left: 78px; top: var(--fly-y, 0px); z-index: 60; background: #232a38; color: #fff; border: 1px solid #3a4253; border-radius: 10px; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); font-size: .86rem; font-weight: 600; white-space: nowrap; }
  html.rail-closed .rail-fly:not(.rail-fly-menu) { padding: 7px 12px; pointer-events: none; }
  html.rail-closed .rail-item:hover > .rail-fly, html.rail-closed .rail-item:focus-within > .rail-fly { display: block; }
  html.rail-closed .rail-item:hover > .rail-fly-menu, html.rail-closed .rail-item:focus-within > .rail-fly-menu { display: grid; gap: 1px; }
  html.rail-closed .rail-fly-menu { min-width: 200px; padding: 6px; }
  html.rail-closed .rail-fly-menu::before, html.rail-closed .rail-flyout::before { content: ''; position: absolute; right: 100%; top: 0; bottom: 0; width: 18px; }   /* the pointer crosses the gap without closing it */
  html.rail-closed .rail-fly-title { display: block; margin: 0 0 3px; padding: 4px 10px 5px; font-family: var(--mono); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9aa0ac; border-bottom: 1px solid #3a4253; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.rail-closed .rail-nav .rail-fly-menu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 7px 10px; border-radius: 8px; color: #e9e6df; font-size: .86rem; font-weight: 600; text-decoration: none; }
  html.rail-closed .rail-nav .rail-fly-menu a:hover, html.rail-closed .rail-nav .rail-fly-menu a:focus-visible { background: #2e3749; color: #fff; outline: none; }
  html.rail-closed .rail-nav .rail-fly-menu a.is-on { background: var(--amber); color: var(--ink); }
  html.rail-closed .rail-nav .rail-fly-menu .badge { position: static; font-size: .66rem; padding: 0 6px; }
  /* the account: an icon, its menu beside the rail */
  html.rail-closed .rail-me { flex-direction: column; align-items: stretch; }
  html.rail-closed .rail-account-wrap { display: flex; }
  html.rail-closed .rail-me .rail-account { justify-items: center; padding: 9px 0; border-radius: 11px 11px 0 0; }
  html.rail-closed .rail-account-name, html.rail-closed .rail-account small { display: none; }
  html.rail-closed .rail-account-icon { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  html.rail-closed .rail-me .rail-credits { border-top: 1px solid var(--ink-line); border-radius: 0 0 11px 11px; }
  html.rail-closed .rail-flyout { position: fixed; left: 78px; top: var(--fly-y, 0px); bottom: auto; }
  html.rail-closed .rail-flyout::after { display: none; }
  html.rail-closed .rail-flyout .rail-fly-title { display: block; }
  /* Admin: the amber square */
  html.rail-closed .rail-admin { justify-content: center; padding: 10px 0; }
  html.rail-closed .rail-admin .badge { position: absolute; top: -5px; right: -4px; margin: 0; font-size: .6rem; padding: 0 5px; }
  /* hub #3852: the 160px the menu gives back go to the page */
  html.rail-closed .page { max-width: 1280px; }
  html.rail-closed .page-wide { max-width: 1480px; }
  html.rail-closed .composer { max-width: 1140px; }
  html.rail-closed .from-url { max-width: 1180px; }
}

/* hub #3861: the admin's «Κόστη: ορατά / κρυφά» switch in the side menu, under Admin */
.rail-costs-form { margin: 0; }
.rail-costs { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 12px; border: 1px solid var(--ink-line); border-radius: 10px; background: transparent; color: #c9c4b8; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; text-align: left; }
.rail-costs:hover { border-color: var(--amber); color: #fff; }
.rail-costs:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.rail-costs svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail-costs.is-off { color: var(--amber); border-style: dashed; }
@media (min-width: 961px) {
  html.rail-closed .rail-costs { justify-content: center; padding: 7px 0; }
  html.rail-closed .rail-costs span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* hub #3860: Mo Live stands out on the Usage log — the same amber edge and tag on its rows and on its summary line */
.usage-table tr.is-live td { background: rgba(245, 164, 0, .07); }
.usage-table tr.is-live td:first-child { box-shadow: inset 4px 0 0 var(--amber); }
.usage-table tr.is-live .product-tag { margin: 0 4px 3px 0; }
.usage-table tr.is-live .usage-hf, .usage-table tr.is-live .usage-hf a { color: var(--text); font-weight: 700; }
.usage-summary tr.is-plus th, .usage-summary tr.is-plus td { background: rgba(245, 164, 0, .07); }
.usage-summary tr.is-plus th { box-shadow: inset 4px 0 0 var(--amber); }
.usage-summary tr.is-plus th .product-tag { font-size: .75rem; padding: 3px 10px; }

/* hub #3868: the admin's single «Κόστη» on/off switch (side menu under Admin; mirrored on «Ο λογαριασμός μου») */
.costs-switch-form { margin: 0; }
.costs-switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 6px 12px; border: 1px solid var(--ink-line); border-radius: 10px; background: transparent; color: #c9c4b8; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; text-align: left; }
.costs-switch:hover { border-color: var(--amber); color: #fff; }
.costs-switch:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.costs-switch:disabled { cursor: progress; }
.costs-switch-track { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: #5a5d66; transition: background .15s; }
.costs-switch-knob { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.costs-switch[aria-checked="true"] .costs-switch-track { background: var(--amber); }
.costs-switch[aria-checked="true"] .costs-switch-knob { transform: translateX(14px); }
.costs-switch-form.is-account .costs-switch { border: 0; padding: 0; color: var(--ink); font-size: 1rem; }
.costs-switch-form.is-account .costs-switch:hover { color: var(--ink); }
.costs-switch-form.is-account .costs-switch-track { background: #c8c4ba; }
.costs-switch-form.is-account .costs-switch[aria-checked="true"] .costs-switch-track { background: var(--amber); }
.costs-card { padding: 16px 22px; display: block; border-top: 0; }
.costs-switch-form.is-account .costs-switch { justify-content: flex-start; gap: 14px; }
@media (min-width: 961px) {
  html.rail-closed .costs-switch-form.is-rail .costs-switch { justify-content: center; padding: 7px 0; }
  html.rail-closed .costs-switch-form.is-rail .costs-switch-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* «Ρυθμίσεις του Mo» (hub #4490, #4491): Admin → Συνομιλίες με τον Mo #settings, and the resting state of the panel */
.mo-fold { margin-top: 16px; }
.mo-fold > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.mo-fold > summary::-webkit-details-marker { display: none; }
.mo-fold > summary h2 { margin: 0; }
.mo-fold > summary h2::after { content: '▸'; margin-left: 4px; color: var(--mute); }
.mo-fold[open] > summary { margin-bottom: 14px; }
.mo-fold[open] > summary h2::after { content: '▾'; }
.mo-fold-alert { background: var(--err-soft); color: var(--err); }
.mo-settings-alert { background: var(--err-soft); color: var(--err); border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; }
.mo-settings-spend { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.mo-settings-bar { flex: 1 1 100%; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; max-width: 520px; }
.mo-settings-bar span { display: block; height: 100%; background: var(--amber); }
.mo-settings-bar span.is-full { background: var(--err); }
.mo-settings-form { display: grid; gap: 14px; }
.mo-settings-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 14px; margin: 0; display: grid; gap: 10px; min-width: 0; }
.mo-settings-form legend { font-weight: 600; padding: 0 6px; }
.mo-settings-radio { display: flex; gap: 8px; align-items: flex-start; }
.mo-settings-radio input { margin-top: 4px; flex: none; }
.mo-settings-field { display: grid; gap: 2px; }
.mo-settings-field > span { display: flex; gap: 8px; align-items: center; }
.mo-settings-field input { width: 120px; }
.mo-chat-form.is-resting textarea { opacity: .55; }
.mo-chat-note.is-rest { color: var(--text); font-weight: 600; }
/* hub #4501: Admin → Συνομιλίες με τον Mo in two panes — the list on the left (own scroll), the opened one on the right */
.mo-split { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 16px; align-items: start; }
.mo-split-list { position: sticky; top: 12px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
/* hub #4532: the conversation scrolls with the page (no inner scroll); only the list on the left stays in place */
.mo-split-list { padding: 0; display: flex; flex-direction: column; }
.mo-split-tools { position: sticky; top: 0; z-index: 2; background: var(--card); padding: 14px 14px 10px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.mo-split-switch { display: flex; gap: 6px; margin: 0; }
/* hub #4533: filters gathered to the left in one compact row under the search */
.mo-split-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-start; }
.mo-split-filters input[type="search"] { flex: 1 1 100%; width: 100%; min-width: 0; }
.mo-split-filters select { flex: 1 1 0; width: auto; min-width: 0; padding: 5px 24px 5px 9px; font-size: .84rem; min-height: 32px; }
.mo-split-filter-go { display: inline-flex; gap: 6px; flex: none; }
.mo-split-note { display: block; margin: 0; padding: 8px 14px; }
.mo-split-bulk { margin: 0; }
.mo-split-bulkbar { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.mo-split-all { display: inline-flex; gap: 6px; align-items: center; margin-right: auto; }
.mo-split-items { list-style: none; margin: 0; padding: 0; }
.mo-split-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
.mo-split-item > input { margin-top: 3px; flex: none; }
.mo-split-item > a { flex: 1; min-width: 0; display: grid; gap: 2px; color: inherit; text-decoration: none; }
.mo-split-item:hover { background: var(--paper); }
.mo-split-item.is-sel { background: var(--amber-soft); border-left-color: var(--amber); }
.mo-split-item.is-sel .muted { color: var(--text); }
.mo-split-row { display: flex; justify-content: space-between; gap: 8px; font-size: .86rem; }
.mo-split-row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-split-row .cost { flex: none; font-variant-numeric: tabular-nums; }
.mo-split-row.muted { font-size: .78rem; }
.mo-split-first { font-size: .86rem; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mo-split-flags { font-size: .75rem; color: var(--amber-ink); }
.mo-split-pane { padding: 0; }
.mo-split-pane.is-loading { opacity: .55; }
.mo-split-head { position: sticky; top: 0; z-index: 2; background: var(--card); padding: 14px 18px 10px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.mo-split-head h2 { margin: 0; font-size: 1.1rem; }
.mo-split-meta { margin: 0; font-size: .86rem; overflow-wrap: anywhere; }
.mo-split-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 0; }
.mo-split-back { display: none; }
.mo-chat-log.mo-split-log { padding: 16px 18px; overflow: visible; max-width: 820px; }
.mo-split-empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 80px 20px; }
.mo-split-empty img { border-radius: 50%; background: #fff; border: 1px solid var(--line); }
.mo-split-empty p { margin: 0; }

/* ══ Mobile (hub #3878) ═══════════════════════════════════════════════════════════════════════════════════════════
   Phones and tablets (≤ 960px): a top bar with the menu button opens the side menu as a drawer from the left (the same
   menu as on a wide screen — Admin and «Κόστη» inside it); pages in one column, touch-sized controls (≥ 44px), inputs at
   16px (no zoom on iOS), wide tables scroll inside their own box. Wide screens are untouched: everything is in queries. */
.m-bar, .rail-close { display: none; }
@media (max-width: 960px) {
  .m-bar { position: sticky; top: 0; z-index: 70; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 12px 0 6px; background: var(--ink); color: #fff; box-shadow: 0 1px 0 var(--ink-line); }
  .m-bar .wordmark.brand-logo { color: #fff; padding: 0 4px; margin-right: auto; }
  .m-bar .wordmark.brand-logo svg { height: 24px; width: auto; display: block; }
  .m-menu { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
  .m-menu:focus-visible, .rail-close:focus-visible, .m-credits:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
  .m-menu svg, .rail-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .m-dot { position: absolute; top: 9px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 2px var(--ink); }
  .m-credits { display: inline-flex; align-items: baseline; gap: 4px; min-height: 44px; align-items: center; padding: 0 12px; border: 1px solid var(--ink-line); border-radius: 999px; color: #fff; text-decoration: none; }
  .m-credits b { font-family: var(--mono); font-size: 1rem; }
  .m-credits small { color: #9aa0ac; font-size: .78rem; }

  /* the drawer: the whole side menu, as on a wide screen */
  .rail { position: fixed; top: 0; bottom: 0; left: 0; z-index: 90; width: min(320px, 86vw); height: 100dvh; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 16px; padding: 12px 14px 20px; overflow-y: auto; overscroll-behavior: contain; transform: translateX(-104%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; box-shadow: 0 0 60px rgba(0, 0, 0, .5); }
  html.drawer-open .rail { transform: none; visibility: visible; transition: transform .22s ease; }
  html.drawer-open, html.drawer-open body { overflow: hidden; }
  .m-scrim { position: fixed; inset: 0; z-index: 85; background: rgba(10, 12, 17, .55); }
  .rail-head { min-height: 44px; }
  .rail-close { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ink-line); border-radius: 10px; background: transparent; color: #e9e6df; cursor: pointer; }
  .rail-nav { grid-auto-flow: row; overflow: visible; max-width: none; gap: 2px; }
  .rail-nav a, .rail-nav a.rail-sub { min-height: 44px; padding: 10px 12px; font-size: 1rem; }
  .rail-nav a.rail-sub { margin-left: 22px; font-size: .95rem; white-space: normal; }
  .rail-foot { margin: auto 0 0; display: grid; gap: 10px; }
  .rail-me { flex-direction: column; }
  .rail-me .rail-account { white-space: normal; padding: 12px; font-size: .95rem; }
  .rail-me .rail-account small { font-size: .8rem; }
  .rail-me .rail-credits { border-left: 0; border-top: 1px solid var(--ink-line); justify-items: start; min-height: 44px; padding: 10px 12px; }
  .rail-account-wrap { flex-direction: column; }
  /* the account's menu is a list in the drawer (no hover on a phone) */
  .rail-flyout, .rail-account-wrap:hover .rail-flyout, .rail-account-wrap:focus-within .rail-flyout { position: static; display: grid; gap: 0; min-width: 0; margin: 0 6px 6px; padding: 4px 0 0; background: transparent; border: 0; border-top: 1px solid var(--ink-line); border-radius: 0; box-shadow: none; }
  .rail-flyout::after { display: none; }
  .rail-flyout a, .rail-flyout button { min-height: 44px; display: flex; align-items: center; padding: 10px 8px; font-size: .95rem; }
  .rail-flyout .rail-fly-title { display: none; }
  .rail-admin { min-height: 46px; font-size: 1rem; }
  .costs-switch { min-height: 44px; font-size: .9rem; }
  .rail-foot .lang-switch button { min-height: 40px; min-width: 52px; font-size: .85rem; }
  .rail-env { font-size: .7rem; }
  .rail-api small { font-size: .74rem; }

  /* page frame */
  .main { padding: 16px 16px 56px; }
  .topbar { display: none; }   /* name + logout live in the drawer's account menu */
  .as-banner { flex-wrap: wrap; padding: 12px 14px; }
  .as-banner > span { flex: 1 1 100%; }
  .as-banner .btn { white-space: normal; }

  /* touch-sized controls; 16px in fields so iOS does not zoom */
  .btn { min-height: 44px; }
  .btn-small { min-height: 40px; }
  input:not([type=radio], [type=checkbox], [type=color], [type=file], [type=range]), select, textarea { font-size: 16px; min-height: 44px; }
  details:not(.info-fold) > summary { padding-block: 10px; }
  .count-pick { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; max-width: 420px; }
  .count-pick span { width: auto; min-width: 0; }
  .info-fold > summary { min-height: 44px; }
  .segmented span { min-height: 44px; display: grid; place-items: center; }
  .page-head .btn, .head-actions .btn { white-space: normal; }

  /* Studio: the composer's sketch is only a hint — on a phone the form comes first, the sketch is left out */
  .composer .draft { display: none; }
  .slides-overview { grid-template-columns: repeat(min(var(--n), 2), minmax(0, 1fr)); gap: 12px; }
  .canvas-stage, .draft { max-width: none; }
  .canvas-stage .stage-fit:not(.slides-overview .stage-fit, .slide-tabs .stage-fit) { max-width: min(100%, 420px); margin: 0 auto; }
  .stage-bar { flex-wrap: wrap; }
  .stage-bar .btn, .row-actions .btn, .action-row .btn, .fav-actions .btn { min-height: 44px; }

  /* admin: the menu row's links touch-sized */
  .admin-groups a { min-height: 40px; }

  /* wide tables scroll inside their card, never the page */
  .card { max-width: 100%; }
  .table-wrap, .card:has(> table) { overflow-x: auto; }
}
@media (max-width: 560px) {
  .work-head h1, .page-head h1 { font-size: 1.45rem; }
  .card { padding: 16px; }
  .askbox { padding: 12px; }
  .askbox-card { padding: 22px 18px 18px; }
  .askbox-actions .btn { min-height: 48px; white-space: normal; }
  .style-dialog, .example-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
}
@media (max-width: 760px) {
  /* the admin's menus: one row that scrolls sideways instead of six rows of pills */
  .admin-groups { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .admin-groups a { flex: none; white-space: nowrap; display: inline-flex; align-items: center; }
}
@media (max-width: 960px) {
  /* hub #4501: the Mo conversations in one pane — the list, or the conversation full width with «← Συνομιλίες» */
  .mo-split { grid-template-columns: minmax(0, 1fr); scroll-margin-top: 64px; }
  .mo-split-list, .mo-split-pane { position: static; max-height: none; overflow: visible; }
  .mo-split-tools, .mo-split-head { position: static; }
  .mo-split .mo-split-pane, .mo-split.is-open .mo-split-list { display: none; }
  .mo-split.is-open .mo-split-pane { display: block; }
  .mo-split-back { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; }
  .mo-split-item { padding: 12px 14px; }
  .mo-split-item > input { width: 22px; height: 22px; margin-top: 1px; }
  .mo-chat-log.mo-split-log { padding: 14px 12px; }
  .mo-split-log .mo-msg { max-width: 100%; }
}
@media (max-width: 960px) {
  /* hub #3878: tabs, filter chips and small icon buttons — touch-sized (≥ 40px) on phones and tablets */
  .account-tabs a, .tabs a, .brand-filter a, .usage-kinds a, .plan-jump a, .texts-sections a, .dna2-toc a, .dl-filter a,
  .dbg-filter a, .versions a, .admin-tabs a, .format-tabs a { min-height: 40px; display: inline-flex; align-items: center; }
  .icon-btn, .ib-icon, .rate-star, .plan-tool, .menu-move { min-width: 40px; min-height: 40px; }
  .thumb-eye { width: 34px; height: 34px; }
  .idea-state button, .ts-toggle, .product-example, .character-count { min-height: 40px; }
  .lang-switch button { min-height: 36px; min-width: 44px; }
  .login-links a, .cmp-label a { display: inline-block; padding-block: 10px; }
  td.pick input[type=checkbox], td > input[type=checkbox] { width: 22px; height: 22px; }
}
@media (max-width: 560px) {
  /* hub #3878: a long row of brand chips scrolls sideways instead of filling the first screen */
  .brand-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .brand-filter a { flex: none; white-space: nowrap; }
}
@media (max-width: 960px) {
  /* hub #4396 (plan u-mobile): the audit of every page at 390 / 768 — the last taps under 40px and, on the customer's
     pages (the app and the logged-out pages; never the Admin), no text under 14px. Phones and tablets only. */
  .m-bar .wordmark.brand-logo, .auth-wordmark-small .wordmark { min-height: 44px; display: inline-flex; align-items: center; }
  html .thumb-eye, html .fav .thumb-eye, html .cockpit-thumb .thumb-eye { width: 40px; height: 40px; }
  html .pager a, html .pager b { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  html .lang-switch button { min-height: 40px; }
  html .legal-nav a { min-height: 40px; }
  html .legal-links { gap: 0 14px; font-size: .875rem; }
  html .legal-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 44px; }
  html .rail-legal { font-size: .8rem; }
  html .cpick-toggle { width: 40px; height: 40px; }
  html .versions a { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  html .slide-tabs a, html .transition-pick a { min-height: 40px; display: inline-flex; align-items: center; }
  html .fav-text a.row-title, html .idea-made a { min-height: 40px; display: inline-flex; align-items: center; }
  html input[type=file] { min-height: 44px; }
  html :is(th, td) > input[type=checkbox], html .video-table .pick input { width: 24px; height: 24px; }
  /* admin pages: filters, chips and small buttons drawn by the page's own style */
  html :is(.ts-chip, .tp-tab, .er-filters a, .jb-filters a, .sh-filter button, .legal-chip, .ck-links a, .tp-where, .chg-tag, .hf-billing) { min-height: 40px; display: inline-flex; align-items: center; }
  html .ts-toggle, html .ts-seen { min-height: 40px; min-width: 40px; display: inline-flex; align-items: center; }
  html .sources li a { padding-block: 10px; }
  html .legal-pick-row > a { min-height: 40px; display: inline-flex; align-items: center; }
  html .ts-own.ts-reqs a { min-width: 40px; }
  html .ts-own.ts-reqs a, html li.ts-to-props a, html .admin-body .row-title, html .admin-body th > a, html .admin-body b > a { min-height: 40px; display: inline-flex; align-items: center; }
  html .ib-card-acts .btn, html .ib-add { min-height: 40px; }
  html .ib-reply-btn { min-height: 40px; font-size: .8rem; }
  html .menu-del { min-width: 40px; min-height: 40px; }
  html .code-resend .link-button { min-height: 40px; font-size: .875rem; }
  html .verdict-popup-x { min-width: 40px; min-height: 40px; }
  html .admin-body .btn-small { min-width: 40px; }
  /* the eye's preview drawer: its one column was as wide as the button row (465px on a 390 phone) */
  .drawer-panel { grid-template-columns: minmax(0, 1fr); padding: 14px 16px 18px; }
  .drawer-tools { flex-wrap: wrap; }
  .drawer-strip .stage-fit { height: auto; width: min(calc(100vw - 32px), calc(60dvh * var(--w) / var(--h))); }

  /* the customer's pages: nothing to read under 14px (labels, notes, prices, tags, table heads) */
  body:not(:has(.admin-body)) :is(small, .eyebrow, .muted, .field label, label.rights span, th, td, dt, .price, .work-note, .legal-links, .legal-updated,
    .legal-nav a, .lang-switch button, .as-banner .btn, .m-credits small, .pager, .pager a, .pager b, .pager span, .status, .product-tag, .style-tag,
    .card > h2, .brief-section, .rule b, .word-count, .brief-examples summary, .brief-example b, .brief-example span, .size-label span, .slide-tabs a,
    .chips li, .choice small, .choice .price, .quote-eur, .dl-filter a, .btn-small, .character-count span, .logo-missing, .site-access, .rename summary,
    .buy-promises li, .buy-product-from span, .pack > span, .pack-excl, .pack-vat, .pack-fits li, .pack-fits b, .buy-packs-foot, .buy-pay-note, .buy-faq-n,
    .buy-faq summary span, .costs-group h3, .costs-price span, .costs-examples h3, .costs-head h2, .req-legend, .demo-steps li, .chip-pick span, .demo-small,
    .auth-gift, .login-links a, .brand-chip i, .brand-filter a i, .dl-filter a i, .product-example, .eyebrow a, .why-failed, li > em, li > b, li > span, span > em,
    .msg small, .frame small, .retry-form .btn, .stop-form .btn, .tabs a i, .thumb-item small, .buy-how p, details > summary > span) { font-size: .875rem; }
  body:not(:has(.admin-body)) .thumb-row small { font-size: .875rem !important; }
}

/* hub #3910: a menu named with an emoji only — the emoji larger, centred, the box as tall as the text tabs */
.admin-groups a.is-emoji { min-width: 52px; padding-left: 14px; padding-right: 14px; text-align: center; }
.admin-emoji { display: inline-block; font-size: 1.45em; line-height: 0; vertical-align: -.14em; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
/* hub #3909: its readable name at the top of the dropdown, in the side menu and on the phone strip */
.admin-drop-head { display: block; padding: 4px 12px 6px; margin-bottom: 2px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); white-space: normal; }
.menu-label { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px; padding: 0 5px; font-size: .68rem; color: var(--mute); }
.menu-label input { font: 500 .78rem/1.2 var(--font); padding: 5px 6px; border: 1.5px solid var(--line); border-radius: 7px; background: var(--card); color: var(--text); min-width: 0; }

/* hub #3914: on a phone the menu row scrolls sideways, so the open dropdown is drawn fixed under the tapped name
   (app.js sets top / left / max-height) instead of inside the row, where it was cut off */
.admin-drop.is-fixed { position: fixed; margin-top: 0; z-index: 60; overflow-y: auto; min-width: 180px; max-width: min(320px, calc(100vw - 16px)); }
.admin-drop.is-fixed::before { display: none; }

/* hub #3914: Admin → Μενού — the board is the menu editor itself, so the page has no second side menu (layout) and the
   columns wrap into rows of at least 220px instead of squeezing into one row */
.menu-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); align-items: start; gap: 10px; }
.menu-col { min-width: 0; }

/* hub #3922: Admin → In Progress — every production of every account; red = past its expected time */
.ip-h { font-size: 1.05rem; margin: 22px 0 8px; }
.ip-table th, .ip-table td { padding: 10px 12px; vertical-align: top; }
.ip-table .ip-req { min-width: 200px; max-width: 280px; }
.ip-table .ip-what { min-width: 180px; max-width: 280px; }
.ip-table .row-actions { width: 1%; }
.ip-table .row-actions .btn { display: flex; width: 100%; justify-content: center; white-space: nowrap; }
.ip-table .row-actions > * + * { margin-top: 6px; }
.ip-table td small { display: block; margin-top: 2px; }
.ip-table .ip-clock { min-width: 120px; }
.ip-table td > b { font-size: .92rem; }
.ip-table .ip-clock b { font-family: 'JetBrains Mono', monospace; font-size: 1.05rem; }
.ip-table .ip-ask { color: var(--muted); white-space: normal; }
.ip-table .ip-part { white-space: nowrap; }
.ip-table tr.ip-over td:first-child { box-shadow: inset 4px 0 0 #E5484D; }
.ip-table tr.ip-over .ip-clock b, .ip-red, .ip-late-note { color: #E5484D; }
.ip-enter { display: block; margin: 0; }
.enter-link { display: inline; margin: 0; }   /* hub #4468: «Είσοδος ως» in a new tab, drawn as a link */
.enter-link-btn { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.enter-link-btn:hover { text-decoration-color: currentColor; }
.enter-link + small { display: block; }
@media (max-width: 640px) {
  .ip-table thead { display: none; }
  .ip-table, .ip-table tbody, .ip-table tr, .ip-table td { display: block; width: 100%; }
  .ip-table tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .ip-table td { padding: 3px 0; border: 0; min-width: 0 !important; max-width: none !important; text-align: left; }
  .ip-table td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
  .ip-table .ip-part { white-space: normal; }
  .ip-table .row-actions { width: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
  .ip-table .row-actions > * + * { margin-top: 0; }
  .ip-table .row-actions .btn { width: auto; min-height: 40px; }
  .ip-table td.num { text-align: left !important; }
  .ip-table tr.ip-over td:first-child { box-shadow: none; }
  .ip-table tr.ip-over { box-shadow: inset 4px 0 0 #E5484D; }
}

/* Legal pages and their links (hub #3929) */
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .78rem; }
.legal-links a { color: var(--mute); text-decoration: none; }
.legal-links a:hover { color: var(--text); text-decoration: underline; }
.auth-legal { margin-top: 4px; }
.rail-legal { justify-content: center; gap: 2px 8px; font-size: .68rem; padding: 0 4px; }
.rail-legal a { color: #8a909c; }
.rail-legal a:hover { color: #fff; }
html.rail-closed .rail-legal { display: none; }
.auth-page.is-legal { grid-template-columns: minmax(0, 1fr); }
.auth-card.is-legal, .auth-card.is-legal > * { min-width: 0; }
.auth-page.is-legal .auth-side { place-items: start center; padding: 40px 24px 56px; }
.auth-card.is-legal { width: min(760px, 100%); gap: 14px; }
.auth-card.is-legal h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.15; }
.legal-updated { font-size: .85rem; margin: 0; }
.legal-updated a { color: inherit; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.legal-nav a { padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-size: .85rem; background: var(--card); min-height: 36px; display: inline-flex; align-items: center; }
.legal-nav a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.legal-body { font-size: 1rem; line-height: 1.65; gap: 12px; overflow-wrap: anywhere; }
.legal-body h2 { font-size: 1.2rem; margin-top: 14px; line-height: 1.3; }
.legal-body h3 { font-size: 1.05rem; margin-top: 8px; }
.legal-body ul, .legal-body ol { padding-left: 22px; display: grid; gap: 6px; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body a { color: var(--info); }
.flash-warn { background: var(--amber-soft); color: var(--amber-ink); border: 1px solid #f1cf74; }
.flash-warn a { color: inherit; font-weight: 700; }
.legal-draft { margin: 0; }
/* Admin → Νομικά κείμενα */
.legal-company { display: grid; gap: 10px; margin-bottom: 16px; }
.legal-company-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 14px; align-items: end; }
.legal-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--text); }
.legal-chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.legal-chip.is-warn { background: var(--amber-soft); color: var(--amber-ink); border-color: #f1cf74; }
.legal-pick { display: grid; gap: 8px; margin-bottom: 16px; }
.legal-pick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.legal-pick-row > b { min-width: 170px; }
.legal-editor { display: grid; gap: 12px; margin-bottom: 18px; }
.legal-edit-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.legal-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.legal-pane { display: grid; gap: 6px; align-content: start; }
.legal-pane label, .legal-pane-label { font-weight: 700; font-size: .85rem; }
.legal-pane textarea { min-height: 640px; font: .86rem/1.55 var(--mono); padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; resize: vertical; width: 100%; }
.legal-preview { background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 18px; max-height: 680px; overflow: auto; }
.legal-save { display: flex; gap: 10px; flex-wrap: wrap; }
.legal-save input { flex: 1 1 320px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; }
.legal-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.legal-actions form { margin: 0; }
.legal-old { margin-bottom: 16px; display: grid; gap: 10px; }
@media (max-width: 960px) { .legal-panes { grid-template-columns: 1fr; } .legal-pane textarea { min-height: 380px; } }
@media (max-width: 600px) { .auth-page.is-legal .auth-side { padding: 24px 16px 40px; } }
.auth-page.is-legal .auth-wordmark-small { display: block !important; margin-bottom: 4px; }
/* hub #3984: admin pages on a phone must not scroll sideways. The menu row already scrolls inside itself (≤ 760px, with
   the «fixed» dropdown of #3914); what pushed the page were grid cards whose one implicit column grew to the widest
   child (a long title, a form row, a table box) — their direct children may shrink now, so wide content scrolls or
   wraps inside its own box. Phones only: tablets and wide screens are untouched. */
@media (max-width: 600px) {
  .admin-body :is(.card, .pl-section, .sc-form, .page, .api-request, .key-form, .smtp-grid, .card ul, .card ol) > * { min-width: 0; }
  .admin-body .card :is(h2, p, li) { overflow-wrap: anywhere; }
  .admin-body .field-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-body .field-row:has(input[type=file]) { flex-wrap: wrap; }
  .admin-body input[type=file] { max-width: 100%; }
  .admin-body .plan li label > span { min-width: 0; overflow-wrap: anywhere; }
  .admin-body :is(.card, .api-request) > table { display: block; max-width: 100%; overflow-x: auto; }
  .admin-body .smtp-test { flex-wrap: wrap; }
  .admin-body .smtp-test input { width: 100%; }
}

/* Cockpit cards (hub #3981; moved here from views/pages/cockpit.php in hub #4347 so Admin → Workers uses the same tiles) */
.ck-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 16px; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.ck-sum h2 { margin: 0; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.ck-sum.is-red { border-color: var(--err); background: var(--err-soft); }
.ck-sum.is-yellow { border-color: #e0b44a; background: var(--amber-soft); }
.ck-sum.is-green { border-color: var(--ok); background: var(--ok-soft); }
.ck-counts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 600; font-size: .9375rem; }
.ck-counts span { display: inline-flex; align-items: center; gap: 6px; }
.ck-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; display: inline-block; box-shadow: 0 0 0 3px #ffffffaa; }
.ck-dot.red { background: #d63b2a; } .ck-dot.yellow { background: #f0b400; } .ck-dot.green { background: #22a35a; } .ck-dot.grey { background: #a5a9b2; }
.ck-big .ck-dot { width: 16px; height: 16px; }
.ck-probe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 18px; }
.ck-probe label { display: inline-flex; align-items: center; gap: 6px; font-size: .9375rem; }
.ck-probe .muted { font-size: .875rem; }
.ck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 14px; }
.ck-tile { background: var(--card); border: 1px solid var(--line); border-left: 6px solid #a5a9b2; border-radius: var(--radius); padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ck-tile.red { border-left-color: #d63b2a; } .ck-tile.yellow { border-left-color: #f0b400; } .ck-tile.green { border-left-color: #22a35a; }
.ck-tile.grey { opacity: .82; }
.ck-head { display: flex; align-items: center; gap: 10px; }
.ck-head h3 { margin: 0; font-size: 1.0625rem; flex: 1; min-width: 0; }
.ck-state { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.ck-tile.red .ck-state { color: #b52a1b; } .ck-tile.yellow .ck-state { color: #8a6200; } .ck-tile.green .ck-state { color: #18723f; }
.ck-line { margin: 0; font-size: .9375rem; }
.ck-when { margin: 0; font-size: .875rem; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.ck-when dt { color: var(--muted); } .ck-when dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ck-err { color: #b52a1b; }
.ck-err.is-old { color: var(--muted); }
.ck-err details { margin-top: 2px; } .ck-err summary { cursor: pointer; color: var(--muted); font-size: .8125rem; }
.ck-err pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: .75rem; color: var(--text); background: var(--paper); border-radius: 8px; padding: 8px 10px; margin: 6px 0 0; max-height: 220px; overflow: auto; }
.ck-nums { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 3px 12px; margin: 0; font-size: .875rem; border-top: 1px solid var(--line); padding-top: 8px; }
.ck-nums dt { color: var(--muted); } .ck-nums dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.ck-who { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; font-size: .75rem; }
.ck-who li { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.ck-who .ck-dot { width: 8px; height: 8px; box-shadow: none; }
.ck-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .875rem; padding-top: 4px; }
.ck-probes { font-size: .875rem; }
.ck-probes td { vertical-align: top; }
@media (max-width: 600px) {
  .ck-grid { grid-template-columns: minmax(0, 1fr); }
  .ck-when { grid-template-columns: minmax(0, auto) minmax(0, 1fr); }
  .ck-probe label, .ck-probe .muted { flex: 1 1 100%; }
  .ck-sum { padding: 12px 14px; }
}

/* Admin → Server workers (ipHost) (hub #5007): the workers' VM, Cockpit tiles drawn by vm-status.js */
.vm-age { margin: 0 0 12px; }
.vm-h { font-size: 1.125rem; margin: 22px 0 10px; }
.vm-bar { display: inline-block; vertical-align: middle; width: 90px; max-width: 40%; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.vm-bar i { display: block; height: 100%; background: #22a35a; }
.vm-bar.yellow i { background: #f0b400; } .vm-bar.red i { background: #d63b2a; } .vm-bar.grey i { background: #a5a9b2; }
.vm-pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: .75rem; background: var(--paper); border-radius: 8px; padding: 8px 10px; margin: 0; max-height: 220px; overflow: auto; }
.vm-log { width: min(1000px, calc(100vw - 32px)); }
.vm-log-in { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 64px); }
.vm-log-in header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vm-log-in h2 { margin: 0; font-size: 1.0625rem; overflow-wrap: anywhere; }
.vm-log-in p { margin: 0; }
.vm-log-in pre { flex: 1; min-height: 120px; overflow: auto; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: .75rem; background: #0a0c11; color: #e8e6df; border-radius: 8px; padding: 10px 12px; }
@media (max-width: 600px) { .vm-log-in { padding: 14px; } }

/* Admin → Workers (hub #4347): the Cockpit tiles, one per worker */
.wk-type { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 18px 0 10px; }
.wk-type-head { margin: 0; font-size: 1.125rem; display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.wk-type-head .muted { font-size: .875rem; font-weight: 500; }
.wk-type-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.wk-grid { margin-bottom: 8px; }
.wk-progress { margin: 0; font-size: .875rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.wk-bar { display: inline-block; width: 120px; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.wk-bar i { display: block; height: 100%; background: #22a35a; }
.wk-act { align-items: center; }
.wk-note { flex: 1 1 140px; min-width: 0; font-size: .875rem; padding: 4px 8px; }
.wk-cost-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin: 0 0 10px; }
.wk-cost-form label { display: flex; flex-direction: column; gap: 4px; font-size: .875rem; }
.wk-cost-note { flex: 1 1 240px; } .wk-cost-note input { width: 100%; }
.wk-scroll { overflow-x: auto; max-width: 100%; }
.wk-scroll .grid-table { min-width: 560px; width: 100%; }
.wk-scroll .grid-table th { white-space: normal; vertical-align: bottom; }
.wk-scroll td.wk-none { text-align: left; }

/* «Ενημερώσαμε τους όρους» (hub #4427, views/partials/legal_accept.php): calm, no red, the text scrolls inside */
.legal-accept { border: 0; border-radius: var(--radius); padding: 0; width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); background: var(--card); color: var(--text); box-shadow: 0 24px 60px -24px rgba(10, 12, 17, .55); }
.legal-accept::backdrop { background: rgba(10, 12, 17, .5); }
.legal-accept-form { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 18px; max-height: calc(100dvh - 32px); box-sizing: border-box; }
.legal-accept h2 { margin: 0; font-size: 1.3rem; }
.legal-accept-lead, .legal-accept-gate, .legal-accept-admin { margin: 0; }
.legal-accept-gate, .legal-accept-admin { padding: 10px 12px; border-radius: 10px; background: var(--amber-soft); color: var(--amber-ink); font-size: .9375rem; }
.legal-accept-changed { padding: 10px 14px; border-left: 3px solid var(--amber); background: var(--paper); border-radius: 0 10px 10px 0; }
.legal-accept-changed h3 { margin: 0 0 4px; font-size: .9375rem; }
.legal-accept-changed p { margin: 0 0 4px; font-size: .9375rem; }
.legal-accept-text { flex: 1 1 auto; min-height: 160px; max-height: 46vh; overflow-y: auto; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .9375rem; overscroll-behavior: contain; }
.legal-accept-text section + section { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.legal-accept-page { margin: 0 0 6px; font-size: 1.05rem; }
.legal-accept-hint, .legal-accept-links { margin: 0; font-size: .875rem; }
.legal-accept-hint:empty { display: none; }
.legal-accept-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; }
.legal-accept [data-legal-agree]:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 600px) {
  .legal-accept { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .legal-accept-form { padding: 16px 16px 14px; max-height: calc(100dvh - 16px); }
  .legal-accept-text { max-height: none; }
  .legal-accept-actions .btn { min-height: 44px; flex: 1 1 auto; }
}
/* Admin → Νομικά κείμενα: «Ζήτα από τους πελάτες να τα ξαναδεχτούν» + «Τι άλλαξε» (hub #4427) */
.legal-save .legal-reaccept, .legal-save textarea, .legal-save > p { flex: 1 1 100%; margin: 0; }
.legal-save .legal-reaccept { display: flex; gap: 8px; align-items: flex-start; }
.legal-save .legal-reaccept input { flex: none; width: auto; padding: 0; margin-top: 4px; }
.legal-accept-text h2 { font-size: 1.05rem; margin: 14px 0 6px; }
.legal-accept-text h3, .legal-accept-text h4 { font-size: .975rem; margin: 12px 0 4px; }
.legal-accept-text:focus-visible { outline: 2px solid var(--amber-soft); outline-offset: 0; }

/* Admin → Αποφάσεις: counters that filter, status, actions (hub #4440) */
.decisions-counts { margin-bottom: 6px; }
.decisions-how { margin: 0 0 16px; }
.decision-status { display: inline-block; font-weight: 700; font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: var(--line); color: var(--text); margin-right: 6px; }
.decision-status.s-open { background: var(--amber); color: #14171F; }
.decision-status.s-decided { background: var(--ok-soft); color: #14613a; }
.decision-sugg { border-left: 3px solid var(--amber); padding-left: 10px; }
.decision.is-later { opacity: 1; }
.decision-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.decision-act { flex: 0 1 auto; }
.decision-act[open] { flex: 1 1 100%; }
.decision-act > summary { list-style: none; cursor: pointer; }
.decision-act > summary::-webkit-details-marker { display: none; }
.decision-act .decision-form { margin-top: 8px; justify-items: stretch; }
.decision-act textarea { width: 100%; }
.decision-act .decision-form .btn { justify-self: start; }
.decision-options { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: grid; gap: 6px; margin: 0; }
.decision-options legend { font-weight: 600; font-size: .875rem; padding: 0 4px; }
.decision-options label { display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; }
.decision-options input { margin-top: 3px; flex: none; }
.decision-reopen { margin: 0; }

/* hub #4470: the viva.com logo under the packs (Viva's approval of the Live source) */
.buy-pay-viva { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 0; color: var(--mute); font-size: .9rem; }
.buy-pay-viva img { height: 40px; width: auto; }

/* ══ «Ρώτα τον Mo» (hub #4475): the button of the side menu and the chat panel (views/partials/mo_chat.php) ══════════ */

.mo-chat { position: fixed; z-index: 60; right: 20px; bottom: 20px; width: 400px; max-width: calc(100vw - 32px); height: min(640px, calc(100vh - 40px)); display: flex; flex-direction: column;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(20, 23, 29, .22); overflow: hidden; }
.mo-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 16px; background: var(--ink); color: #f4f2ec; }
.mo-chat-face { width: 44px; height: 44px; border-radius: 50%; background: #fff; flex: none; object-fit: contain; }
.mo-chat-titles { min-width: 0; flex: 1; }
.mo-chat-titles h2 { font-size: 1.05rem; line-height: 1.2; }
.mo-chat-titles p { font-size: .8rem; color: #b9bdc7; line-height: 1.35; margin-top: 2px; }
.mo-chat-x { flex: none; width: 40px; height: 40px; border: 1px solid var(--ink-line); border-radius: 10px; background: transparent; color: #e9e6df; cursor: pointer; display: grid; place-items: center; }
.mo-chat-x:hover { border-color: #9aa0ac; color: #fff; }
.mo-chat-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mo-chat-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mo-chat-history { margin-left: auto; }
.mo-chat-past { padding: 10px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; max-height: 40%; overflow-y: auto; background: var(--paper); }
.mo-chat-past-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.mo-chat-past-item { display: grid; gap: 2px; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font: inherit; color: inherit; cursor: pointer; }
.mo-chat-past-item:hover { border-color: var(--ink); }
.mo-chat-past-item b { font-weight: 600; font-size: .875rem; }
.mo-chat-past-item small { color: var(--mute); font-size: .75rem; }
.mo-chat-readonly { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; background: var(--info-soft); color: var(--info); font-size: .85rem; }
.mo-chat-log { flex: 1; overflow-y: auto; padding: 14px; display: grid; align-content: start; gap: 12px; overscroll-behavior: contain; }
.mo-chat-log [data-mo-current], .mo-chat-log [data-mo-old] { display: grid; gap: 12px; }
.mo-msg { display: flex; gap: 8px; align-items: flex-start; max-width: 92%; }
.mo-msg.is-you { margin-left: auto; flex-direction: row-reverse; }
.mo-msg-face { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid var(--line); flex: none; object-fit: contain; }
.mo-msg-body { min-width: 0; padding: 9px 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.mo-msg.is-you .mo-msg-body { background: var(--amber-soft); border-color: #f2d48c; }
.mo-msg-who { font-size: .7rem; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.mo-msg-who time { font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: 4px; }
.mo-msg-text { font-size: .925rem; line-height: 1.45; overflow-wrap: anywhere; }
.mo-suggest { display: grid; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.mo-suggest-go { background: var(--amber); color: var(--ink); justify-self: start; white-space: normal; text-align: left; }
.mo-suggest-go:hover { background: #ffb81f; }
.mo-suggest-note { font-size: .78rem; color: var(--mute); line-height: 1.4; }
.mo-msg-admin { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; font-size: .75rem; color: var(--mute); }
.mo-chat-form { border-top: 1px solid var(--line); padding: 10px 14px 12px; display: grid; gap: 6px; }
.mo-chat-form textarea { width: 100%; resize: none; font: inherit; font-size: .95rem; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); min-height: 64px; }
.mo-chat-form textarea:focus { outline: none; border-color: var(--ink); }
.mo-chat-form .word-count { margin: 0; font-size: .75rem; }
.mo-chat-send { display: flex; justify-content: flex-end; }
.mo-chat-note { font-size: .8rem; color: var(--mute); }
.mo-chat-note.is-error { color: var(--err); }
.mo-chat-off { border-top: 1px solid var(--line); padding: 12px 14px 14px; display: grid; gap: 8px; justify-items: start; font-size: .875rem; background: var(--paper); }
.mo-chat .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* phone and tablet: a sheet over the whole width (touch targets ≥ 40px, 16px text so the phone does not zoom) */
@media (max-width: 960px) {
  .mo-chat { left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-width: none; height: min(88vh, 720px); height: min(88dvh, 720px); border-radius: 16px 16px 0 0; border-width: 1px 0 0; }
  .mo-chat-form textarea { font-size: 16px; }
  .mo-chat-tools .btn, .mo-chat-readonly .btn, .mo-suggest-go, .mo-chat-off .btn { min-height: 40px; }
  .mo-chat-past-item { min-height: 44px; }
  .mo-chat-send .btn { min-height: 44px; min-width: 96px; }
  .mo-msg { max-width: 100%; }
  html.mo-chat-open body { overflow: hidden; }
}
.mo-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: .78rem; color: var(--mute); }
.mo-pages .btn { background: var(--card); }
@media (max-width: 960px) { .mo-pages .btn { min-height: 40px; } }
.mo-msg-cost { margin-top: 6px; font-family: var(--mono); font-size: .7rem; color: var(--mute); }
.mo-chat-total { font-family: var(--mono); font-size: .72rem; color: var(--amber); margin-top: 2px; }
.mo-msg.is-pending .mo-msg-body { opacity: .75; }
.mo-msg.is-failed .mo-msg-body { border-color: var(--err); }
.mo-msg-retry { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: .78rem; color: var(--err); }
.mo-typing .mo-msg-text { color: var(--mute); font-style: italic; }
.mo-typing .mo-msg-text { display: flex; align-items: center; gap: 8px; }
.mo-dots { display: inline-flex; gap: 4px; }
.mo-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: mo-dot 1.1s ease-in-out infinite; }
.mo-dots i:nth-child(2) { animation-delay: .15s; }
.mo-dots i:nth-child(3) { animation-delay: .3s; }
.mo-typing .mo-msg-face { animation: mo-think 2.2s ease-in-out infinite; }
@keyframes mo-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes mo-think { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .mo-dots i, .mo-typing .mo-msg-face { animation: none; opacity: .7; } }
/* hub #4484: Mo's small Markdown (App\Support\MoMarkdown): paragraphs, bold, short lists, one small table */
.mo-md { display: grid; gap: 8px; }
.mo-md p, .mo-md ul, .mo-md ol { margin: 0; }
.mo-md b { font-weight: 700; color: var(--text); }
.mo-md ul, .mo-md ol { padding-left: 1.35em; display: grid; gap: 3px; }
.mo-md ul { list-style: disc; }
.mo-md ol { list-style: decimal; }
.mo-md li { display: list-item; }
.mo-md li::marker { color: var(--mute); }
.mo-table { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.mo-table table { border-collapse: collapse; width: 100%; font-size: .85rem; line-height: 1.35; }
.mo-table th, .mo-table td { padding: 6px 9px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: normal; word-break: normal; }
.mo-table th + th, .mo-table td + td { border-left: 1px solid var(--line); }
.mo-table tr:last-child td { border-bottom: 0; }
.mo-table thead th { background: var(--paper); font-weight: 700; font-size: .78rem; }
.mo-table tbody td:first-child { color: var(--mute); }
/* hub #4485: «Σχόλιο για τον Mo» (admin only) */
.mo-rule-box { margin-top: 8px; font-size: .8rem; }
.mo-rule-box summary { cursor: pointer; color: var(--mute); text-decoration: underline; text-underline-offset: 2px; width: max-content; }
.mo-rule-box[open] summary { color: var(--text); }
.mo-rule-box form { display: grid; gap: 6px; margin-top: 6px; }
.mo-rule-box textarea { width: 100%; font: inherit; font-size: .85rem; padding: 7px 9px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); resize: vertical; }
.mo-rule-box small { color: var(--mute); line-height: 1.35; }
.mo-rule-result { color: var(--ok, #1a7f4b); }
.mo-rule-result.is-error { color: var(--err); }
@media (max-width: 960px) {
  .mo-table table { font-size: .82rem; }
  .mo-table th, .mo-table td { padding: 6px 7px; }
  .mo-rule-box textarea { font-size: 16px; }
  .mo-rule-box summary { min-height: 40px; display: flex; align-items: center; }
  .mo-chat-history { min-height: 40px; }
}

/* ══ The Mo bubble (hub #4497): Mo's face at the bottom right opens «Ρώτα τον Mo»; its × hides it for 2 hours ══════════ */
.mo-bubble { position: fixed; z-index: 55; right: 22px; bottom: 22px; width: 62px; height: 62px; }
.mo-bubble[hidden] { display: none; }
.mo-bubble-open { width: 62px; height: 62px; padding: 0; border-radius: 50%; border: 2px solid var(--amber); background: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(10, 12, 17, .55), 0 2px 6px rgba(10, 12, 17, .18); transition: transform .15s ease, box-shadow .15s ease; }
.mo-bubble-open img { width: 50px; height: 50px; object-fit: contain; border-radius: 50%; }
.mo-bubble-open:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(10, 12, 17, .6), 0 2px 6px rgba(10, 12, 17, .2); }
.mo-bubble-open:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.mo-bubble-x { position: absolute; top: -6px; left: -6px; width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: var(--ink); color: #f4f2ec; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.mo-bubble-x svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.mo-bubble:hover .mo-bubble-x, .mo-bubble:focus-within .mo-bubble-x { opacity: 1; }
.mo-bubble-x:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.mo-bubble .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.mo-chat-open .mo-bubble, html.drawer-open .mo-bubble { display: none; }
.rail-flyout button.rail-flyout-mo { display: flex; align-items: center; gap: 8px; }
.rail-flyout-mo img { width: 20px; height: 20px; border-radius: 50%; background: #fff; object-fit: contain; flex: none; }
@media (hover: none) { .mo-bubble-x { opacity: 1; } }
@media (max-width: 960px) {
  .mo-bubble { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; }
  .mo-bubble-open { width: 56px; height: 56px; }
  .mo-bubble-open img { width: 44px; height: 44px; }
  .mo-bubble-x { width: 28px; height: 28px; top: -8px; left: -8px; }
  body:has(.quote) .mo-bubble { bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }   /* the price bar of the forms sits at the bottom */
}

/* ══ «Ο λογαριασμός μου» → Προφίλ (hub #4502): header card, one section per subject (title + line | card), danger last ══ */
.profile-page { max-width: 980px; }
.profile-page .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf-visit a { font-weight: 700; }
.pf-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px 24px; border-radius: 18px; background: var(--ink); color: #f4f2ec; border: 1px solid var(--ink-line); }
.pf-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--ink); font-size: 1.7rem; font-weight: 800; }
.pf-who { display: grid; gap: 3px; min-width: 0; }
.pf-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pf-mail { color: #d6d3cb; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pf-head .muted { color: #9aa0ac; }
.pf-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; background: rgba(244, 242, 236, .12); color: inherit; vertical-align: middle; }
.pf-tag.is-ok { background: var(--ok-soft); color: var(--ok); }
.pf-tag.is-warn { background: var(--amber-soft); color: var(--amber-ink); }
.pf-card .pf-tag { background: #efece4; color: var(--text); }
.pf-card .pf-tag.is-ok { background: var(--ok-soft); color: var(--ok); }
.pf-credits { display: grid; gap: 10px; justify-items: end; text-align: right; }
.pf-buy { background: var(--amber); color: var(--ink); }
.pf-buy:hover { background: #ffb81f; }
.pf-credits-n { display: grid; line-height: 1.1; }
.pf-credits-n b { font-family: var(--mono); font-size: 2rem; color: var(--amber); }
.pf-credits-n span { font-size: .8125rem; color: #9aa0ac; }
.pf-section { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 6px; }
.pf-side h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.pf-side p { color: var(--mute); font-size: .875rem; }
.pf-stack { display: grid; gap: 14px; }
.pf-card { display: grid; gap: 0; }
.pf-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 0; }
.pf-fieldset > .muted { margin-top: 12px; }
.pf-fieldset[disabled] input, .pf-fieldset[disabled] .rights, .pf-fieldset[disabled] .pf-switch { cursor: not-allowed; }
.pf-fieldset[disabled] input:not([type=radio], [type=checkbox]) { background: #f6f4ef; color: var(--mute); }
.pf-sub { font-size: .875rem; font-weight: 800; margin: 0 0 10px; padding: 0; color: var(--text); text-transform: none; letter-spacing: 0; }
.pf-card .form-actions { margin-top: 16px; }
.pf-empty { color: var(--mute); font-size: .875rem; padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: 12px; margin-top: 10px; }
.pf-card .device-list { margin-top: 12px; }
.pf-locked { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--info-soft); color: var(--info); font-size: .875rem; font-weight: 600; }
.pf-locked.is-short { background: transparent; padding: 0; color: var(--mute); font-weight: 600; }
.pf-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-choices .rights { min-width: 150px; }
.pf-group + .pf-group { margin-top: 18px; }
.pf-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; font-weight: 500; }
.pf-group .pf-switch:first-of-type, .pf-fieldset > .pf-switch:first-of-type, .pf-card > .pf-switch:first-of-type { border-top: 0; }
.pf-switch-text { display: grid; gap: 2px; min-width: 0; }
.pf-switch-title { font-weight: 700; font-size: .9375rem; }
.pf-switch-title b { font-weight: 700; }
.pf-switch-line { color: var(--mute); font-size: .84rem; }
.pf-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pf-switch-track { flex: none; position: relative; width: 44px; height: 26px; border-radius: 999px; background: #cfcabe; transition: background .15s; }
.pf-switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.pf-switch input:checked + .pf-switch-track { background: var(--ink); }
.pf-switch input:checked + .pf-switch-track::after { transform: translateX(18px); background: var(--amber); }
.pf-switch input:focus-visible + .pf-switch-track { outline: 3px solid var(--amber); outline-offset: 2px; }
.pf-fieldset[disabled] .pf-switch-track { opacity: .55; }
.pf-admin { display: grid; gap: 18px; padding: 20px 22px 22px; border-radius: 18px; border: 1.5px dashed var(--amber); background: #fffaf0; margin-top: 8px; }
.pf-admin-head h2 { font-size: 1.15rem; font-weight: 800; color: var(--amber-ink); margin-bottom: 4px; }
.pf-admin-head p { color: var(--mute); font-size: .875rem; }
.pf-admin .pf-section { grid-template-columns: 226px minmax(0, 1fr); }
.pf-pin-remove { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pf-danger .pf-side h2 { color: var(--err); }
.pf-danger .pf-card { border-color: #efc9c2; }
.pf-danger summary { color: var(--err); }
.pf-close-form { margin-top: 4px; }
@media (max-width: 960px) {
  .pf-section, .pf-admin .pf-section { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pf-switch { min-height: 48px; }
  .pf-card .btn, .pf-buy { min-height: 44px; }
}
@media (max-width: 640px) {
  .pf-head { grid-template-columns: auto minmax(0, 1fr); padding: 18px 16px; gap: 14px; }
  .pf-avatar { width: 52px; height: 52px; font-size: 1.4rem; }
  .pf-credits { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: start; text-align: left; padding-top: 12px; border-top: 1px solid var(--ink-line); }
  .pf-credits-n b { font-size: 1.6rem; }
  .pf-admin { padding: 16px 14px; }
  .pf-choices .rights { flex: 1 1 100%; }
  .pf-card .form-actions .btn { width: 100%; justify-content: center; }
}

/* ══ «Ο λογαριασμός μου» → Στοιχεία τιμολόγησης (hub #4511): header card, 1. document · 2. details | preview of the document ══ */
.bl-page { max-width: 1120px; }
.bl-head-icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--amber); color: var(--ink); }
.bl-head .pf-name { font-size: 1.15rem; }
.bl-form { display: grid; gap: 16px; }
.bl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.bl-steps, .bl-fieldset { display: grid; gap: 16px; min-width: 0; }
.bl-step { display: grid; gap: 0; }
.bl-step .bl-step-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 800; margin: 0 0 4px; text-transform: none; letter-spacing: -.005em; color: var(--text); }
.bl-num { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--amber); font: 700 .875rem/1 var(--mono); }
.bl-step-line { color: var(--mute); font-size: .875rem; margin: 0 0 16px 38px; }
.bl-step-line .req { margin-left: 0; }
.bl-step > :is(.field, .field-grid) + :is(.field, .field-grid), .bl-step > .bl-address, .bl-step > .bl-add { margin-top: 14px; }
.bl-address { display: grid; gap: 14px; }
.bl-types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bl-type { position: relative; display: block; cursor: pointer; }
.bl-type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bl-type-body { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s, background .15s; }
.bl-type:hover .bl-type-body { border-color: #b9b4a8; }
.bl-type input:checked + .bl-type-body { border-color: var(--ink); background: var(--amber-soft); box-shadow: inset 0 0 0 1px var(--ink); }
.bl-type input:focus-visible + .bl-type-body { outline: 3px solid var(--amber); outline-offset: 2px; }
.bl-type-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bl-type-top b { font-size: 1.05rem; font-weight: 800; }
.bl-type-tick { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid #b9b4a8; background: #fff; display: grid; place-items: center; }
.bl-type input:checked + .bl-type-body .bl-type-tick { border-color: var(--ink); background: var(--ink); }
.bl-type input:checked + .bl-type-body .bl-type-tick::after { content: ''; width: 9px; height: 5px; border: solid var(--amber); border-width: 0 0 2px 2px; rotate: -45deg; translate: 0 -1px; }
.bl-type-for { font-size: .8125rem; font-weight: 700; color: var(--text); }
.bl-type-line { font-size: .84rem; color: var(--mute); }
.bl-fieldset[disabled] .bl-type { cursor: not-allowed; }
.bl-fieldset[disabled] .bl-type-body { opacity: .75; }
.bl-add { justify-self: start; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1.5px dashed var(--line); border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer; }
.bl-add:hover { border-color: var(--ink); }
.bl-add[hidden] { display: none; }
.bl-place { grid-template-columns: 2fr 1fr; }
.bl-page .vies-status { border-radius: 12px; padding: 8px 14px; font-weight: 600; }
.bl-page .vies-status[data-state="busy"] { padding-left: 0; }
.bl-page .vies-status small { display: inline; font-weight: 500; margin-left: 4px; }
/* the preview: a sheet of paper, then the VAT on a dark card */
.bl-preview { position: sticky; top: 20px; display: grid; gap: 12px; }
.bl-doc { padding: 20px 20px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 30px -22px rgba(20, 23, 31, .45); border-top: 4px solid var(--amber); }
.bl-doc-eyebrow, .bl-vat-eyebrow { font: 700 .72rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin: 0 0 6px; }
.bl-doc-kind { font-size: 1.3rem; font-weight: 800; margin: 0 0 12px; }
.bl-doc-lines { display: grid; gap: 0; margin: 0; }
.bl-doc-lines > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.bl-doc-lines > div[hidden] { display: none; }
.bl-doc-lines dt { font-size: .78rem; color: var(--mute); font-weight: 600; }
.bl-doc-lines dd { margin: 0; font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.bl-mono { font-family: var(--mono); letter-spacing: .02em; }
.bl-empty { color: #a39e92; font-weight: 500; font-style: italic; font-family: var(--font); letter-spacing: 0; }
.bl-vat { padding: 16px 20px; border-radius: 14px; background: var(--ink); color: #f4f2ec; border: 1px solid var(--ink-line); }
.bl-vat .bl-vat-eyebrow { color: #9aa0ac; }
.bl-vat-label { font-size: 1.1rem; font-weight: 800; color: var(--amber); margin: 0 0 6px; }
.bl-vat-text { font-size: .84rem; color: #d6d3cb; margin: 0; }
.bl-preview-note { font-size: .8rem; color: var(--mute); margin: 0; }
.bl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.bl-actions-error { flex: 1 1 100%; margin: 0; color: var(--err); font-weight: 600; font-size: .875rem; }
.bl-actions-error[hidden] { display: none; }
@media (max-width: 1100px) { .bl-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; } }
@media (max-width: 960px) {
  .bl-layout { grid-template-columns: minmax(0, 1fr); }
  .bl-preview { position: static; }
  .bl-actions { position: sticky; bottom: 0; z-index: 30; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(244, 242, 237, .96); border-top: 1px solid var(--line); backdrop-filter: blur(6px); }
  .bl-actions .btn { width: 100%; justify-content: center; min-height: 48px; }
  body:has(.bl-actions) .mo-bubble { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 640px) {
  .bl-types { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bl-head-icon { width: 52px; height: 52px; border-radius: 14px; }
  .bl-step-line { margin-left: 0; }
  .bl-place { grid-template-columns: minmax(0, 1fr); }
  .bl-doc-lines > div { grid-template-columns: 92px minmax(0, 1fr); }
}

/* ══ «Social from URL» (hub #4582): four numbered steps (the .bl-step cards of the billing page) | the running price ══ */
.fu-page .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fu-intro { color: var(--mute); max-width: 62ch; margin: 6px 0 0; }
.fu-form { display: grid; gap: 16px; max-width: 1180px; }
.fu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.fu-steps { display: grid; gap: 16px; min-width: 0; }
.fu-step > :is(.field, .field-grid, .fu-counts, .fu-more, .fu-summary) + :is(.field, .field-grid, .fu-counts, .fu-more, .fu-add, .fu-summary, .muted) { margin-top: 16px; }
.fu-step > .bl-step-line + * { margin-top: 0; }
.fu-source { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: start; }
.fu-url-msg { margin: 0; font-size: .875rem; color: var(--mute); overflow-wrap: anywhere; }
.fu-url-msg:empty { display: none; }
.fu-url-msg.is-bad { color: var(--err); font-weight: 600; }
.fu-page input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 3px color-mix(in srgb, var(--err) 18%, transparent); }
.fu-page .rights.is-bad { border-color: var(--err); }
.fu-page .field-error { font-size: .875rem; margin: 0; }
.fu-page .field-error[hidden] { display: none; }
.fu-counts { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: start; margin-top: 18px; }
.fu-counts > .field { margin-top: 0; min-width: 0; }
.fu-more { border-top: 1px solid var(--line); padding-top: 4px; }
.fu-more > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: .9375rem; cursor: pointer; }
.fu-more-body { display: grid; gap: 8px; padding-bottom: 4px; }
.fu-add { margin-top: 16px; }
.fu-message[hidden] { display: none; }
.fu-summary { display: grid; margin: 0 0 16px; }
.fu-summary > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.fu-summary > div:last-child { border-bottom: 1px solid var(--line); }
.fu-summary dt { font-size: .84rem; color: var(--mute); font-weight: 600; }
.fu-summary dd { margin: 0; font-size: .9375rem; font-weight: 600; overflow-wrap: anywhere; }
.fu-price-line { margin: 12px 0 0; }
.fu-actions .btn { min-height: 48px; }
.fu-side .fu-plus-rule { margin-top: 12px; }
/* hub #4589: what we take from the site — three radio cards, required, none pre-selected */
.fu-content { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.fu-content > legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.fu-content-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fu-content-option { height: 100%; }
.fu-content-option > span { display: grid; gap: 4px; }
.fu-content-option b { font-weight: 700; }
.fu-content-option small { font-weight: 400; font-size: .84rem; line-height: 1.4; color: var(--mute); }
.fu-content.is-bad .fu-content-option { border-color: var(--err); }
.fu-content .muted { margin: 4px 0 0; }
@media (max-width: 760px) { .fu-content-options { grid-template-columns: minmax(0, 1fr); } }
/* hub #4593: «Διάλεξε φωτογραφίες» — thumbnails of the page through our own route, picked in order */
.fu-pick { margin-top: 16px; }
.fu-pick[hidden], .fu-pick-panel[hidden], .fu-pick-foot[hidden], .fu-pick-note[hidden] { display: none; }
.fu-pick > .fu-add { margin-top: 0; }
.fu-pick-line { margin: 6px 0 0; }
.fu-pick-panel { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--paper); display: grid; gap: 10px; }
.fu-pick-status { margin: 0; font-size: .9375rem; font-weight: 600; }
.fu-pick-status:empty { display: none; }
.fu-pick-status.is-bad { color: var(--err); }
.fu-pick-note { margin: 0; }
.fu-pick-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.fu-pick-item { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 2px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; cursor: pointer; }
.fu-pick-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fu-pick-item:hover { border-color: var(--mute); }
.fu-pick-item:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; }
.fu-pick-item[aria-pressed="true"] { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.fu-pick-item:disabled { opacity: .45; cursor: not-allowed; }
.fu-pick-num { position: absolute; top: 6px; right: 6px; min-width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; font-size: .9375rem; font-weight: 800; background: var(--amber); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.fu-pick-num:empty { display: none; }
.fu-pick-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.fu-pick-count { margin: 0 auto 0 0; font-size: .9375rem; font-weight: 600; }
.chips .chosen-photos { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.chosen-photos img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; display: block; }
@media (max-width: 960px) { .fu-pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .fu-pick-foot .btn { min-height: 44px; } }
@media (max-width: 1100px) { .fu-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; } }
@media (max-width: 960px) {
  /* one column: steps 1–3, the price, step 4, then the button pinned to the bottom (as on the billing page) */
  .fu-layout, .fu-steps { display: contents; }
  .fu-side { order: 1; }
  .fu-confirm { order: 2; }
  .fu-actions { order: 3; }
  .fu-page .quote { position: static; box-shadow: none; margin: 0 0 12px; padding: 16px 18px; }
  .fu-page .quote h2 { display: block; }
  .fu-page .quote dl > div:not(.quote-total):not([hidden]) { display: flex; }
  .fu-page .quote .quote-total { border-top: 1px solid var(--ink-line); padding-top: 10px; margin-top: 4px; }
  .fu-page .quote .muted { font-size: .875rem; margin-top: 8px; }
  .main:has(.fu-page) { padding-bottom: 0; }
  .fu-source { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .fu-summary > div { grid-template-columns: 96px minmax(0, 1fr); }
  .fu-counts .count-pick { max-width: 100%; overflow-x: auto; }
}

/* hub #4516: customer picker of «Ειδικό πακέτο» — live list under the field */
.pp-pick { position: relative; display: block; }
.pp-pick input[type=search] { width: 100%; }
.pp-pick-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); display: grid; max-height: 320px; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); padding: 4px; }
.pp-pick-list[hidden] { display: none; }
.pp-pick-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; cursor: pointer; }
.pp-pick-item span { opacity: .7; font-size: .88em; }
.pp-pick-item em { font-style: normal; font-size: .78em; padding: 1px 6px; border-radius: 6px; background: rgba(255,90,90,.15); color: var(--err); }
.pp-pick-item.is-on, .pp-pick-item:hover { background: rgba(245, 164, 0, .14); }
.pp-pick-none { margin: 0; padding: 9px 10px; opacity: .7; font-size: .9em; }
/* hub #4522: the admin's bulk delete on the Videos page */
.video-bulk-remove { margin-top: -6px; }
.btn-danger-ghost { color: var(--err); border-color: currentColor; }
.btn-danger-ghost:disabled { opacity: .45; }

/* hub #4526: the Admin search — a small box at the end of the menu row on every admin page, a large one on the overview.
   Results: page name, the menu it is in (as the owner arranged them), its one line. */
.admin-top { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.admin-top > .admin-groups { flex: 1 1 auto; min-width: 0; }
.admin-find, .admin-search { position: relative; }
.admin-find { flex: 0 0 220px; margin-bottom: 18px; }
.admin-find input, .admin-search input { width: 100%; font: inherit; color: var(--text); background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; outline: none; }
.admin-find input { height: 44px; padding: 0 34px 0 14px; font-size: .92rem; }
.admin-find input:focus, .admin-search input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 45%, transparent); }
.admin-find kbd, .admin-search kbd { position: absolute; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: .72rem; color: var(--mute); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; pointer-events: none; background: var(--paper); }
.admin-find kbd { right: 10px; }
.admin-find input:focus ~ kbd, .admin-search input:focus ~ kbd, .admin-find input:not(:placeholder-shown) ~ kbd, .admin-search input:not(:placeholder-shown) ~ kbd { display: none; }
.admin-search { margin: 4px 0 22px; }
.admin-search > svg { position: absolute; left: 18px; top: 31px; transform: translateY(-50%); width: 24px; height: 24px; fill: none; stroke: var(--mute); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.admin-search input { height: 62px; padding: 0 52px 0 54px; font-size: 1.15rem; border-width: 2px; border-radius: 16px; box-shadow: 0 2px 10px rgb(20 23 29 / 6%); }
.admin-search kbd { right: 16px; top: 31px; }
.admin-find-list { display: grid; gap: 2px; padding: 6px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgb(20 23 29 / 16%); max-height: min(70vh, 560px); overflow-y: auto; }
.admin-find-list[hidden] { display: none; }
.admin-find .admin-find-list { position: absolute; z-index: 60; top: calc(100% + 6px); right: 0; width: min(460px, calc(100vw - 32px)); }
.admin-search .admin-find-list { margin-top: 8px; box-shadow: 0 6px 22px rgb(20 23 29 / 8%); }
.admin-find-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); }
.admin-find-list a.is-active { background: var(--amber-soft); }
.admin-find-list .af-name { font-weight: 700; font-size: 1rem; min-width: 0; overflow-wrap: anywhere; }
.admin-find-list .af-name small { font-weight: 500; color: var(--mute); }
.admin-find-list .af-menu { justify-self: end; align-self: start; font-family: var(--mono); font-size: .72rem; color: var(--amber-ink); background: color-mix(in srgb, var(--amber) 16%, transparent); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.admin-find-list .af-about { grid-column: 1 / -1; font-size: .86rem; color: var(--mute); line-height: 1.4; }
.admin-find-list .af-none { margin: 0; padding: 12px; color: var(--mute); }
@media (max-width: 760px) {
  .admin-top { flex-wrap: wrap; gap: 0; }
  .admin-top > .admin-groups { flex-basis: 100%; }
  .admin-find { flex: 1 1 100%; margin: 0 0 14px; }
  .admin-find .admin-find-list { left: 0; right: auto; width: 100%; }
  .admin-find input { font-size: 16px; }
  .admin-search input { height: 54px; font-size: 16px; padding-left: 48px; }
  .admin-search > svg { left: 15px; top: 27px; }
  .admin-search kbd { display: none; }
  .admin-find kbd { display: none; }
  .admin-find-list .af-menu { white-space: normal; }
}

/* hub #4530: the cost boxes of the side menu name their provider on top */
.rail-api-head { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #F4F2EC; margin-bottom: 2px; }

/* hub #5253: «Beta» beside the wordmark (views/partials/logo.php, config app.beta) */
.wordmark.brand-logo:has(.beta-chip) { display: flex; align-items: center; gap: 5px; line-height: 1; }
.wordmark.brand-logo .beta-chip { flex: none; font: 600 9px/1 'JetBrains Mono', ui-monospace, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase;
  color: #8A5A00; border: 1px solid currentColor; border-radius: 999px; padding: 2px 5px 1px; margin: 0 0 0 -8px; }
.rail .wordmark.brand-logo .beta-chip, .m-bar .wordmark.brand-logo .beta-chip, .auth-show .wordmark.brand-logo .beta-chip { color: var(--amber); }
html.rail-closed .rail .wordmark.brand-logo .beta-chip { display: none; }
@media (max-width: 960px) {
  body:not(:has(.admin-body)) .wordmark.brand-logo .beta-chip { font-size: 14px; padding: 2px 6px 1px; letter-spacing: .02em; }
  .auth-wordmark-small .wordmark.brand-logo .beta-chip, .m-bar .wordmark.brand-logo .beta-chip { display: none; }   /* no room: the language switch / the credits sit beside it; the drawer's menu shows it */
}
/* hub #5253: in the side menu the wordmark + «Beta» share the head with the fold button — the logo gives way, the button stays inside */
.rail .rail-head .wordmark.brand-logo:has(.beta-chip) { flex: 0 1 auto; min-width: 0; padding: 0 0 0 4px; }
.rail .rail-head .wordmark.brand-logo:has(.beta-chip) svg { height: 24px; flex: 0 1 auto; min-width: 0; }
