/* On Point — content desk. Layout after the Dribbble "Dashboard - Social Media Analytics" shot (Orizon):
   dark icon rail, big title, pill controls, soft 28px cards, gradient hero, highlighted-day bars.
   Colors are On Point PLACEHOLDERS (blue/green) until they send theirs: swap the tokens in :root only. */
@font-face { font-family: Poppins; src: url(/fonts/poppins-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url(/fonts/poppins-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Poppins; src: url(/fonts/poppins-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Poppins; src: url(/fonts/poppins-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --rail: #0a1d3d;            /* icon rail, dark buttons, tab bar */
  --navy: #0d4594;            /* headings accent, active states */
  --blue: #1f6fd1;            /* links, lined-up, charts */
  --blue-ink: #0b4fa8;
  --blue-soft: #e2ecfb;
  --green: #2f7a17;           /* primary action (Accept, Save) */
  --green-bar: #4fae3b;
  --green-soft: #e3f4da;
  --hero: linear-gradient(128deg, #1559c4 0%, #1f6fd1 38%, #2f9b8c 74%, #4fae3b 100%);
  --red: #c4271b;
  --red-soft: #fde8e6;
  --amber: #e2a41f;
  --amber-ink: #8f5400;
  --amber-soft: #fff1d0;
  --ground: #eaeef4;
  --panel: #ffffff;
  --soft: #f3f6fa;            /* rows, wells, inputs */
  --zebra: #f5f8fc;
  --line: #e1e7ef;
  --ring-rest: #c9d2df;
  --ink: #0f1b2f;
  --ink-2: #35455f;
  --muted: #5e6c82;
  --nav-muted: #9fb0c8;
  --radius: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 27, 47, .04), 0 10px 30px -12px rgba(15, 27, 47, .10);
  --side: 104px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --b-amber: #d98a1c; --b-rose: #d14d72; --b-teal: #13897c; --b-blue: #1f6fd1; --b-violet: #7451c9;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 400 14px/1.55 Poppins, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink); background: var(--ground);
  font-variant-numeric: tabular-nums;
}
::selection { background: #bcd6f7; color: var(--ink); }
a { color: var(--blue-ink); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; }
h1 { font-size: 20px; font-weight: 600; color: var(--ink); }
h2 { font-size: 16px; font-weight: 500; color: var(--ink); }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; border-radius: 6px; }
svg.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
* { scrollbar-width: thin; scrollbar-color: #b6c3d6 transparent; }

/* ---------- shell: dark icon rail ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100dvh; }
.side {
  position: sticky; top: 0; z-index: 10; height: 100dvh; display: flex; flex-direction: column; align-items: center;
  padding: 26px 0 22px; background: var(--rail); color: #fff;
}
.logo {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 34px; border-radius: 16px;
  background: var(--hero); color: #fff; font-size: 17px; font-weight: 700; letter-spacing: .02em; text-decoration: none;
  box-shadow: 0 8px 20px -6px rgba(31, 111, 209, .7);
}
.nav { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0; margin: 0; list-style: none; }
.nav a, .rail-btn {
  position: relative; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 18px;
  background: none; color: var(--nav-muted); text-decoration: none; cursor: pointer; transition: background .2s var(--ease), color .2s;
}
.nav a:hover, .rail-btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav svg.icon, .rail-btn svg.icon { width: 21px; height: 21px; }
.rail-label { display: none; }
/* Pinned by the reference: the active item is a pill that runs past the rail edge, with a white dot. */
.nav a[aria-current="page"] { width: 96px; margin-left: 22px; padding-right: 44px; border-radius: 99px; background: #c8d3e3; color: var(--rail); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #fff; }
/* Label tooltip on hover/focus (desktop rail only). */
.nav a::after, .rail-btn::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; z-index: 50; translate: -4px -50%;
  padding: 6px 12px; border-radius: 10px; background: var(--rail); color: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(10, 29, 61, .3); opacity: 0; pointer-events: none; transition: opacity .15s, translate .15s var(--ease);
}
.nav a[aria-current="page"]::after { left: calc(100% + 8px); }
.nav a:hover::after, .nav a:focus-visible::after, .rail-btn:hover::after, .rail-btn:focus-visible::after { opacity: 1; translate: 0 -50%; }
.nav .count {
  position: absolute; top: 4px; right: 4px; min-width: 18px; padding: 0 5px; border-radius: 99px; border: 2px solid var(--rail);
  background: #ef4b3f; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 15px; text-align: center;
}
.nav a[aria-current="page"] .count { right: 48px; border-color: #c8d3e3; }
.side-foot { margin-top: auto; display: grid; justify-items: center; gap: 14px; }
.who { display: grid; justify-items: center; }
.avatar {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; border: 2px solid #fff;
  background: linear-gradient(140deg, #d6e4f7, #b9d8c4); color: var(--rail); font-weight: 700; font-size: 18px; flex: none;
}
.who-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.who b { display: block; font-weight: 500; font-size: 13px; line-height: 1.3; }
.who-text span { font-size: 12px; color: var(--nav-muted); text-transform: capitalize; }

.main { min-width: 0; padding: 30px 40px 48px; }
.topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.title-block { margin-right: auto; min-width: 0; }
.topbar h1 { font-size: 40px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.topbar .sub { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.brand-pick { position: relative; display: flex; align-items: center; }
.brand-pick .brand-dot { position: absolute; left: 18px; width: 12px; height: 12px; pointer-events: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 22%, transparent); }
.topbar select {
  width: auto; min-width: 230px; min-height: 48px; padding: 10px 44px 10px 42px; border: 0; border-radius: 99px; background-color: var(--panel);
  font-weight: 500; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235e6c82' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.bell { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--ink); background: var(--panel); text-decoration: none; }
.bell svg.icon { width: 21px; height: 21px; }
.dot-count { position: absolute; top: 4px; right: 3px; min-width: 18px; padding: 0 5px; border-radius: 99px; border: 2px solid var(--ground); background: #ef4b3f; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 15px; text-align: center; }
.view { display: grid; gap: 24px; animation: in .45s var(--ease); }
@keyframes in { from { opacity: .3; transform: translateY(8px); } }

/* ---------- surfaces ---------- */
.panel, .card { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; min-width: 0; }
.panel-head, .card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-head h2, .card-head h2 { margin-right: auto; }
.panel-head h2 { font-size: 18px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* ---------- controls: pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 20px;
  border: 1px solid transparent; border-radius: 99px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px -6px rgba(47, 122, 23, .55); }
.btn-primary:hover:not(:disabled) { background: #276714; }
.btn-dark, .btn-blue { background: var(--rail); color: #fff; min-height: 48px; padding: 10px 24px; }
.btn-dark:hover:not(:disabled), .btn-blue:hover:not(:disabled) { background: #14305e; }
.btn-light { background: #fff; color: var(--rail); min-height: 40px; padding: 7px 16px; }
.btn-light:hover { background: #eef4fd; }
.btn-ghost { background: var(--panel); border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--soft); }
.btn-danger { background: var(--panel); border-color: #f1b4ae; color: var(--red); }
.btn-danger:hover:not(:disabled) { background: var(--red-soft); }
.btn-danger-solid { background: var(--red); color: #fff; }
/* Round icon actions: view (dark), edit (blue), remove (red). */
.act { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; color: #fff; cursor: pointer; text-decoration: none; }
.act svg.icon { width: 16px; height: 16px; }
.act-view { background: var(--rail); }
.act-edit { background: var(--blue); }
.act-del { background: #e5483b; }
.act:hover { filter: brightness(1.15); }
.acts { display: inline-flex; gap: 6px; }

label { display: block; font-weight: 500; font-size: 13px; margin-bottom: 6px; color: var(--ink-2); }
.field { display: grid; gap: 0; }
.field + .field { margin-top: 16px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=datetime-local], input[type=date], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 111, 209, .16); }
input::placeholder, textarea::placeholder { color: #7a879b; }
[aria-invalid="true"] { border-color: var(--red) !important; }
.hint { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.hint .over { color: var(--red); font-weight: 600; }
.err { margin-top: 6px; font-size: 12.5px; color: var(--red); font-weight: 500; }
.checks { display: flex; gap: 10px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--soft); cursor: pointer; margin: 0; font-weight: 500; }
.check:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-ink); }
.check input { width: 16px; height: 16px; accent-color: var(--blue); margin: 0; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters select, .filters input { width: auto; min-width: 160px; min-height: 42px; border-radius: 99px; }
/* Underlined tabs, as in the reference ("Post Activity | User"). */
.tabs, .u-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button, .u-tabs button {
  position: relative; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 10px 2px 14px; min-height: 44px;
  cursor: pointer; font-size: 15px; font-weight: 500; color: #8592a6; white-space: nowrap;
}
.tabs button:hover, .u-tabs button:hover { color: var(--ink); }
.tabs button[aria-pressed="true"], .tabs button[aria-selected="true"], .u-tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-pressed="true"]::after, .tabs button[aria-selected="true"]::after, .u-tabs button[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--rail);
}
.tab-n { min-width: 22px; padding: 0 7px; border-radius: 99px; background: #dfe6f0; color: var(--ink-2); font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; }
.tab-n.bad { background: var(--red-soft); color: #b42318; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #e9eef5; color: var(--ink-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-pending { background: var(--amber-soft); color: var(--amber-ink); }
.s-accepted, .s-scheduled { background: var(--blue-soft); color: var(--blue-ink); }
.s-published { background: var(--green-soft); color: #1d6b12; }
.s-refused, .s-failed { background: var(--red-soft); color: #b42318; }
.s-fix { background: #ffe8d6; color: #9a3d00; }
/* Planned = a slot with no media yet: outlined, not filled, so it never reads as "done". */
.s-planned { background: transparent; color: #44546e; border: 1px dashed #8193ad; padding: 3px 10px; }
.chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 500; background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); }
.brand-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--b-blue)); flex: none; }
.brand { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

/* ---------- table: airy rows, rounded hover ---------- */
.table-wrap { position: relative; overflow-x: auto; margin: 0 -8px; padding: 0 8px; } /* relative: keeps .sr-only headers from widening the page */
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
thead th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody td { padding: 12px 14px; vertical-align: middle; color: var(--ink-2); border-bottom: 1px solid var(--soft); }
tbody tr:hover td { background: var(--soft); }
tbody tr:hover td:first-child { border-radius: 16px 0 0 16px; }
tbody tr:hover td:last-child { border-radius: 0 16px 16px 0; }
td.num, th.num { text-align: right; }
.thumb { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--blue-soft); display: block; }
.t-title { font-weight: 500; color: var(--ink); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* ---------- overview ---------- */
.ov { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); grid-template-areas: "top side" "lists side"; gap: 28px 28px; align-items: start; }
.ov-top { grid-area: top; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.ov-side { grid-area: side; display: grid; gap: 24px; align-content: start; }
.lists { grid-area: lists; min-width: 0; }

.hero-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 300px; color: #fff; background: var(--hero);
  box-shadow: 0 22px 44px -20px rgba(21, 89, 196, .65);
}
.hero-card::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.22), rgba(255,255,255,0)); pointer-events: none; }
.hero-card h2 { color: #fff; font-weight: 500; }
.hero-num { font-size: 72px; font-weight: 600; line-height: 1; letter-spacing: -.03em; margin: 2px 0 10px; }
.hero-note { font-size: 13px; color: rgba(255, 255, 255, .88); max-width: 34ch; }
.hero-split { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: auto 0 0; padding-top: 22px; }
.hero-split div { padding: 0 14px; border-left: 1.5px dashed rgba(255, 255, 255, .45); min-width: 0; }
.hero-split div:first-child { padding-left: 0; border-left: 0; }
.hero-split dt { font-size: 12.5px; color: rgba(255, 255, 255, .85); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-split dd { margin: 2px 0 0; font-size: 24px; font-weight: 600; }

.mix-card { display: flex; flex-direction: column; min-height: 300px; }
.more { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink-2); text-decoration: none; }
.more:hover { background: var(--soft); }
.mix-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 1; }
.big-num { font-size: 44px; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; margin-bottom: 16px; }
.big-num span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legend li { display: grid; grid-template-columns: 10px auto auto; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.legend b { color: var(--ink); font-weight: 600; font-size: 14px; }
.ring-wrap { position: relative; display: grid; place-items: center; flex: none; }
.ring { display: block; }
.ring-track { fill: none; stroke: var(--soft); stroke-width: 16; }
.ring-seg { fill: none; stroke-width: 16; stroke-linecap: round; }
.ring-center { position: absolute; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.ring-center svg.icon { width: 28px; height: 28px; }

.stat-tile { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 20px; padding: 14px 24px 14px 14px; }
.stat-num { display: grid; place-items: center; align-content: center; gap: 4px; width: 104px; height: 104px; border-radius: 22px; background: var(--blue-soft); color: var(--rail); }
.stat-num b { font-size: 28px; font-weight: 600; line-height: 1; }
.stat-tile.dark .stat-num { background: #dfe9e1; }
.stat-body h2 { font-size: 17px; }
.stat-body .small { margin: 2px 0 10px; }
.meter { height: 12px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.meter i { display: block; height: 100%; width: max(calc(var(--p) * 100%), 12px); border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--green-bar)); }
.stat-tile.dark .meter i { background: var(--rail); }

.bars { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; height: 230px; }
.bars li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; }
.bars i {
  position: relative; display: block; width: 20px; height: calc(14px + var(--h) * 150px); border-radius: 99px;
  background: linear-gradient(180deg, #d5dde8, #e6ebf2); transform-origin: bottom; animation: grow .7s var(--ease) both;
}
.bars li:nth-child(2) i { animation-delay: .04s; } .bars li:nth-child(3) i { animation-delay: .08s; } .bars li:nth-child(4) i { animation-delay: .12s; }
.bars li:nth-child(5) i { animation-delay: .16s; } .bars li:nth-child(6) i { animation-delay: .2s; } .bars li:nth-child(7) i { animation-delay: .24s; }
@keyframes grow { from { transform: scaleY(0); } }
.bars li.today i { background: linear-gradient(180deg, var(--green-bar), var(--blue)); box-shadow: 0 10px 20px -8px rgba(31, 111, 209, .7); }
.bars li.today i::before { content: ""; position: absolute; top: 5px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #fff; }
.bar-n { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.bars li.today .bar-n { color: var(--blue-ink); }
.bar-d { font-size: 13px; color: var(--muted); }
.bars li.today .bar-d { color: var(--ink); font-weight: 600; }
.bars-foot { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.bars-foot b { display: block; font-weight: 500; font-size: 15px; line-height: 1.3; }
.ic-round { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--green-soft); color: #1d6b12; flex: none; }
.foot-num { margin-left: auto; font-size: 26px; font-weight: 600; }

.post-rows { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.post-row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 150px) 190px auto 40px; align-items: center; gap: 18px;
  padding: 12px 14px; border-radius: 20px; transition: background .15s;
}
.post-row:first-child, .post-row:hover { background: var(--panel); }
.post-row .thumb, .post-row .tw { width: 52px; height: 52px; }
.pr-main { min-width: 0; }
.pr-title { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.pr-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-title svg.icon { width: 15px; height: 15px; color: #8a97ab; }
.pr-title:hover span { text-decoration: underline; }
.pr-sub { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-brand { min-width: 0; font-size: 13px; font-weight: 500; overflow: hidden; }
.pr-when { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.pr-when svg.icon { width: 16px; height: 16px; color: #8a97ab; }
.pr-open { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); }
.pr-open:hover { background: var(--soft); }
.lists .empty { padding: 36px 12px; }

.row-list { list-style: none; margin: 0; padding: 0; }
.row-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.row-list li:first-child { border-top: 0; }
.row-list .grow { flex: 1; min-width: 0; }
.row-list .grow b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.when { font-size: 12.5px; color: var(--muted); }
.stats { display: flex; gap: 6px; flex-wrap: wrap; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius-md); background: var(--red-soft); color: #7a1a12; }
.alert.info { background: var(--blue-soft); color: #0b3f86; }
.alert.ok { background: var(--green-soft); color: #164f0e; }
.alert svg.icon { margin-top: 2px; }

/* ---------- review queue ---------- */
.queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(480px, 100%), 1fr)); gap: 16px; align-items: start; }
.queue > .empty { grid-column: 1 / -1; }
.queue-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.search { position: relative; flex: 1 1 320px; max-width: 520px; margin: 0; }
.search svg.icon { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.search input { padding-left: 44px; border-radius: 99px; background: var(--panel); }
/* Queue cards: thumbnail column + text, captions folded, so several decisions fit on one screen. */
.queue .rcard { grid-template-columns: 132px minmax(0, 1fr); gap: 18px; padding: 16px; }
.queue .rcard img, .queue .rcard video, .queue .rcard .ph-big { border-radius: 16px; }
.queue .rcard h2 { font-size: 16px; margin-bottom: 6px; }
.queue .rcard .due { margin: 10px 0 12px; font-size: 13.5px; }
.queue .rcard .decide .btn { min-width: 0; min-height: 42px; padding: 8px 18px; }
.caption.folded { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.linkish { border: 0; background: none; padding: 4px 0; min-height: 32px; color: var(--blue-ink); font-weight: 500; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rcard { display: grid; grid-template-columns: 240px 1fr; gap: 26px; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; transition: opacity .3s, transform .3s var(--ease); }
.rcard.leaving { opacity: 0; transform: translateX(24px); }
.rcard img, .rcard video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; background: var(--blue-soft); }
.rcard video { object-fit: contain; background: #0c1a30; }
.rcard .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.rcard h2 { font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.caption { white-space: pre-wrap; color: var(--ink-2); max-width: 68ch; }
.rcard .due { display: flex; align-items: center; gap: 8px; margin: 16px 0 18px; font-weight: 500; color: var(--navy); }
.decide { display: flex; gap: 10px; flex-wrap: wrap; }
.decide .btn { min-width: 140px; min-height: 48px; }
.refuse-box { margin-top: 14px; padding: 16px; border-radius: var(--radius-md); background: var(--soft); border: 1px solid var(--line); }
.refuse-box textarea { min-height: 70px; background: #fff; }

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.cal .dow { padding: 8px; font-size: 12px; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft); }
.cal .cell { min-height: 116px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; align-content: start; gap: 4px; }
.cal .cell.out { background: #fafbfd; }
.cal .cell.out .n { color: #a3b0c2; }
.cal .cell.today .n { background: var(--rail); color: #fff; }
.cal .n { justify-self: start; min-width: 24px; padding: 1px 6px; border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ev { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 10px; font-size: 11.5px; color: var(--ink); text-decoration: none; background: color-mix(in srgb, var(--dot) 12%, #fff); border: 1px solid color-mix(in srgb, var(--dot) 28%, #fff); overflow: hidden; }
.ev span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev:hover { background: color-mix(in srgb, var(--dot) 22%, #fff); }
.ev.dim { opacity: .65; }
.ev.planned { background: #fff; border-style: dashed; border-color: color-mix(in srgb, var(--dot) 60%, #fff); }
.ev svg.icon { width: 13px; height: 13px; margin-left: auto; color: var(--muted); }
.agenda { display: none; }

/* ---------- forms / detail ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 20px; align-items: start; }
.drop { display: grid; place-items: center; gap: 8px; aspect-ratio: 1; border: 2px dashed #b9cbe4; border-radius: 22px; background: var(--soft); text-align: center; color: var(--muted); cursor: pointer; overflow: hidden; position: relative; }
.drop:hover, .drop:focus-within { border-color: var(--blue); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.detail img.hero { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; background: var(--blue-soft); }
.detail video.hero { display: block; width: 100%; max-height: 72vh; border-radius: 22px; background: #0c1a30; }
dl.facts { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0; }
dl.facts dt { color: var(--muted); font-size: 13px; }
dl.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; white-space: pre-line; } /* briefs keep the slide-by-slide script */
.secret { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; }
.secret code { padding: 6px 10px; border-radius: 6px; background: #fff; border: 1px solid var(--line); }

/* ---------- analytics ---------- */
.totals { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.total { padding: 20px 24px; border-radius: 24px; background: var(--panel); box-shadow: var(--shadow); }
.total .k { font-size: 12.5px; color: var(--muted); }
.total .v { font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1.25; letter-spacing: -.01em; }
.delta { font-size: 12.5px; font-weight: 600; }
.delta.up { color: #1d6b12; }
.delta.down { color: #b42318; }
.brief { padding: 18px 20px; border-radius: var(--radius-md); background: var(--soft); }
.brief + .brief { margin-top: 12px; }
.brief p { margin-top: 6px; max-width: 75ch; }
.bar { height: 8px; border-radius: 99px; background: var(--blue-soft); overflow: hidden; min-width: 60px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--green-bar)); border-radius: inherit; }

/* ---------- toast + mobile chrome ---------- */
.toast { position: fixed; z-index: 30; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 12px 20px; border-radius: 99px; background: var(--rail); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.2); font-weight: 500; max-width: calc(100vw - 32px); }
.tabbar, .drawer-backdrop { display: none; }
.skeleton { height: 160px; border-radius: var(--radius); background: linear-gradient(90deg, #e6edf7 25%, #f3f7fc 50%, #e6edf7 75%) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(320px, 460px) 1fr; padding: 16px; gap: 16px; }
.login .brandside { position: relative; overflow: hidden; background: var(--rail); color: #fff; padding: 40px 38px; display: flex; flex-direction: column; justify-content: space-between; border-radius: var(--radius); }
.login .brandside::before { content: ""; position: absolute; right: -90px; bottom: -90px; width: 340px; height: 340px; border-radius: 50%; background: var(--hero); opacity: .9; filter: blur(2px); }
.login .brandside > * { position: relative; }
.login .brandside .logo { width: auto; height: auto; margin: 0; padding: 0; background: none; box-shadow: none; place-items: start; font-size: 28px; font-weight: 600; }
.login .brandside .logo small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--nav-muted); }
.login .brandside p { color: #c9d6ea; max-width: 32ch; }
.login .brandside h2 { color: #fff; font-size: 28px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
.login form { align-self: center; justify-self: center; width: min(400px, 100% - 40px); }
.login form h1 { font-size: 36px; letter-spacing: -.02em; margin-bottom: 6px; }
.login form .muted { margin-bottom: 26px; }
.login .btn { width: 100%; min-height: 50px; margin-top: 24px; }

/* ---------- media: placeholders, video thumbs, upload ---------- */
.ph { display: grid; place-items: center; align-content: center; gap: 6px; border: 2px dashed #b9cbe4; background: var(--soft); color: var(--muted); }
.ph.thumb { border-width: 1px; border-radius: 12px; width: 48px; height: 48px; }
.ph.thumb svg.icon { width: 18px; height: 18px; }
.ph-big { width: 100%; aspect-ratio: 1; border-radius: 22px; font-size: 13px; font-weight: 500; }
.ph-big svg.icon { width: 28px; height: 28px; }
.tw { position: relative; display: block; width: 48px; height: 48px; flex: none; }
.tw svg.icon { position: absolute; right: 3px; bottom: 3px; width: 16px; height: 16px; padding: 2px; border-radius: 4px; background: rgba(12, 26, 48, .72); color: #fff; }
.drop { margin: 0; font-size: 14px; font-weight: 400; transition: border-color .15s, background .15s; }
.drop svg.icon { width: 28px; height: 28px; color: var(--blue); }
.drop.over { border-color: var(--blue); background: var(--blue-soft); }
.drop-band { aspect-ratio: auto; min-height: 132px; padding: 16px; }
.upload { padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--soft); display: grid; gap: 12px; }
.upload-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.upload-row .small { overflow-wrap: anywhere; }
.progress { height: 8px; border-radius: 99px; background: var(--blue-soft); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .2s var(--ease); }
.storage { display: grid; gap: 6px; margin-top: 14px; }
.storage.warn .progress i { background: var(--amber-ink); }
.storage.full .progress i { background: var(--red); }
.storage.full .small { color: var(--red); font-weight: 600; }
.brief-box { margin-bottom: 14px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--blue-soft); color: #0b3f86; }
.brief-box b { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 2px; }
.brief-box p { white-space: pre-wrap; max-width: 68ch; color: var(--ink); }
ul.plain { margin: 6px 0 0; padding-left: 18px; }
.steps { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); }
.seg label { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; margin: 0; cursor: pointer; font-weight: 500; color: var(--ink-2); background: transparent; border-radius: 99px; }

.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--rail); color: #fff; }
.seg label:has(input:focus-visible) { outline: 3px solid #f2b705; outline-offset: -3px; }
.seg label:has(input:disabled) { cursor: not-allowed; opacity: .6; }

/* ---------- import & generate ---------- */
.src-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.src-row .field { flex: 1 1 220px; max-width: 360px; }
.src-row .field + .field { margin-top: 0; }
input.file { width: 100%; min-height: 46px; padding: 8px; border: 1px dashed #b9cbe4; border-radius: 14px; background: var(--soft); cursor: pointer; }
input.file::file-selector-button { margin-right: 12px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink-2); font: inherit; font-weight: 500; cursor: pointer; }
.working { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 500; color: var(--navy); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--blue-soft); border-top-color: var(--blue); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
table.imp { min-width: 1180px; }
.imp td { vertical-align: top; }
.imp td[data-k="brandId"] { width: 170px; }
.imp td[data-k="publishAt"] { width: 200px; }
.imp td[data-k="platforms"] { width: 130px; }
.imp td[data-k="type"] { width: 110px; }
.imp td[data-k="acts"] { width: 56px; }
.imp input, .imp select, .imp textarea { min-height: 38px; padding: 7px 10px; font-size: 13px; }
.imp textarea { min-height: 62px; resize: vertical; }
.imp .src { margin-top: 6px; }
.checks.mini { flex-direction: column; gap: 4px; }
.checks.mini .check { min-height: 34px; padding: 4px 10px; font-size: 12.5px; }
.imp .err { font-size: 12px; }
.grow-note { margin-right: auto; align-self: center; }

/* ---------- mid widths: side column moves under ---------- */
@media (max-width: 1280px) {
  .ov { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "side" "lists"; }
  .ov-side { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: start; }
  .ov-side .bars-card { grid-row: span 2; }
  .ov-side .stat-tile { align-self: stretch; }
  .post-row { grid-template-columns: 52px minmax(0, 1fr) 150px auto 40px; }
  .pr-when { display: none; }
}

/* ---------- phone: bottom tab bar, stacked content ---------- */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: fixed; z-index: 40; inset: 0 auto 0 0; width: min(290px, 84vw); align-items: stretch; padding: 22px 16px;
    transform: translateX(-105%); transition: transform .3s var(--ease); border-radius: 0 28px 28px 0;
  }
  .side.open { transform: none; }
  .logo { margin: 0 0 24px 8px; }
  .nav { align-items: stretch; gap: 4px; }
  .nav a, .rail-btn { display: flex; justify-content: flex-start; gap: 14px; width: auto; height: auto; min-height: 50px; padding: 12px 16px; border-radius: 16px; color: #dbe4f1; }
  .nav a[aria-current="page"] { width: auto; margin: 0; padding-right: 16px; border-radius: 16px; }
  .nav a[aria-current="page"]::before { display: none; }
  .nav a::after, .rail-btn::after { display: none; }
  .rail-label { display: inline; font-weight: 500; }
  .nav .count, .nav a[aria-current="page"] .count { position: static; margin-left: auto; border: 0; font-size: 12px; line-height: 18px; }
  .side-foot { justify-items: stretch; gap: 10px; }
  .who { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
  .avatar { width: 42px; height: 42px; border-radius: 13px; font-size: 16px; }
  .who-text { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .drawer-backdrop.open { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(10, 29, 61, .45); }
  .main { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
  .topbar { flex-wrap: wrap; gap: 10px 12px; margin-bottom: 18px; }
  .topbar h1 { font-size: 28px; }
  .topbar .sub { font-size: 12.5px; }
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .bell { grid-column: 2; grid-row: 1; justify-self: end; }
  .brand-pick { grid-column: 1; grid-row: 2; min-width: 0; }
  .topbar select { width: 100%; min-width: 0; min-height: 46px; }
  .topbar .btn-dark { grid-column: 2; grid-row: 2; padding: 10px 16px; min-height: 46px; }
  .bell { width: 46px; height: 46px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    background: var(--rail); border-radius: 26px; box-shadow: 0 14px 34px rgba(10, 29, 61, .4); padding: 7px;
  }
  .tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; gap: 2px; min-height: 54px; padding: 7px 0 5px; border: 0; border-radius: 20px; background: none; color: var(--nav-muted); font-size: 11px; font-weight: 500; text-decoration: none; cursor: pointer; }
  .tabbar svg.icon { width: 22px; height: 22px; }
  .tabbar [aria-current="page"] { background: #c8d3e3; color: var(--rail); }
  .tabbar .count { position: absolute; top: 3px; right: calc(50% - 24px); min-width: 18px; padding: 0 5px; border-radius: 99px; background: #ef4b3f; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
  .panel, .card { padding: 20px; border-radius: 24px; }
  .ov { gap: 18px; }
  .ov-top, .ov-side { grid-template-columns: 1fr; gap: 18px; }
  .hero-card, .mix-card { min-height: 0; }
  .hero-num { font-size: 60px; }
  .mix-body { gap: 8px; }
  .ring { width: 132px; height: 132px; }
  .ring-center { width: 58px; height: 58px; }
  .stat-tile { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; }
  .stat-num { width: 84px; height: 84px; border-radius: 20px; }
  .stat-num b { font-size: 24px; }
  .bars { height: 190px; }
  .bars i { height: calc(12px + var(--h) * 120px); }
  .u-tabs { gap: 20px; }
  .post-row { grid-template-columns: 52px minmax(0, 1fr) 40px; gap: 4px 14px; padding: 12px; }
  .post-row .thumb, .post-row .tw, .post-row > .ph { grid-row: span 2; }
  .pr-brand { display: none; }
  .post-row .badge { grid-column: 2; justify-self: start; }
  .pr-open { grid-row: 1 / 3; grid-column: 3; width: 44px; height: 44px; }
  .rcard { grid-template-columns: 1fr; padding: 14px; gap: 14px; }
  /* Phone: the thumbnail floats top-left and the text wraps round it, so the text keeps the full card width. */
  .queue .rcard { display: block; padding: 14px; }
  .queue .rcard > :first-child { float: left; width: 76px; margin: 0 12px 4px 0; }
  .queue .rcard .decide, .queue .rcard .refuse-box, .queue .rcard .alert { clear: both; }
  .queue .rcard .decide { grid-template-columns: 1fr 1fr; }
  .queue .rcard .decide .btn { min-height: 44px; font-size: 14px; padding: 8px 10px; }
  .search { flex-basis: 100%; max-width: none; }
  .decide { display: grid; grid-template-columns: 1fr 1fr; }
  .decide .btn { min-width: 0; min-height: 52px; font-size: 15px; }
  /* Tables become stacked rows on phones. */
  .stack thead { display: none; }
  .stack, .stack tbody { display: block; width: 100%; }
  .table-wrap:has(.stack) { margin: 0; padding: 0; }
  .stack tbody tr { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .stack tbody td { padding: 0; border: 0; background: none !important; }
  .stack td[data-k="img"] { grid-row: span 3; }
  .stack td[data-k="title"] { grid-column: 2 / 4; }
  .stack td[data-k="brand"], .stack td[data-k="when"] { grid-column: 2; font-size: 12.5px; white-space: normal; }
  .stack td[data-k="platforms"], .stack td[data-k="hide-m"] { display: none; }
  .stack td[data-k="status"] { grid-column: 3; grid-row: 2; justify-self: end; }
  .stack td[data-k="acts"] { grid-column: 3; grid-row: 3; justify-self: end; }
  .t-title { max-width: none; white-space: normal; }
  .cal-wrap .cal { display: none; }
  .agenda { display: grid; gap: 14px; }
  .agenda h3 { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
  .agenda .ev { padding: 10px 12px; font-size: 13.5px; min-height: 44px; }
  .agenda .day-list { display: grid; gap: 6px; }
  dl.facts { grid-template-columns: 1fr; gap: 2px; }
  dl.facts dd { margin-bottom: 10px; }
  .filters select, .filters input { flex: 1 1 140px; min-width: 0; }
  .login { grid-template-columns: 1fr; padding: 12px; }
  .login .brandside { padding: 26px 24px; min-height: 0; }
  .login .brandside .tagline { display: none; }
  .login form { padding: 32px 4px 48px; }
  .toast { bottom: calc(100px + env(safe-area-inset-bottom)); }
  /* Import preview: one card per row, labels from data-l. */
  table.imp { min-width: 0; }
  .imp thead { display: none; }
  .imp, .imp tbody, .imp tr, .imp td { display: block; width: auto !important; }
  .table-wrap:has(.imp) { margin: 0; padding: 0; overflow: visible; }
  .imp tbody tr { position: relative; padding: 14px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
  .imp tbody tr:hover td { background: none; }
  .imp td { padding: 0; border: 0; }
  .imp td + td { margin-top: 12px; }
  .imp td[data-l]::before { content: attr(data-l); display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
  .imp td[data-k="acts"] { position: absolute; top: 8px; right: 8px; margin: 0; }
  .imp td[data-k="brandId"] { padding-right: 52px; }
  .imp .act { width: 44px; height: 44px; }
  .imp input, .imp select, .imp textarea { min-height: 44px; font-size: 16px; }
  .checks.mini { flex-direction: row; }
  .checks.mini .check { min-height: 44px; flex: 1; }
  .src-row .field { max-width: none; }
  .src-row .btn { width: 100%; min-height: 48px; }
  .seg { display: flex; }
  .seg label { flex: 1; justify-content: center; min-height: 46px; }
  .seg label { padding: 8px 10px; gap: 6px; min-width: 0; }
  .form-actions .btn { min-height: 46px; }
  .act { width: 44px; height: 44px; }
  input[type=text], input[type=email], input[type=password], input[type=search], input[type=datetime-local], input[type=date], select, textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
td[data-k="when"] { white-space: nowrap; }
td[data-k="platforms"] .stats { flex-wrap: nowrap; }
.panel-head select { width: auto; border-radius: 99px; }
.alert > div, .alert > span { flex: 1; min-width: 0; }
.view > * { min-width: 0; }

/* ---------- carousel ---------- */
.stack-n { position: absolute; right: 3px; bottom: 3px; display: inline-flex; align-items: center; gap: 2px; padding: 1px 4px; border-radius: 6px; background: rgba(12, 26, 48, .78); color: #fff; font-size: 10px; font-weight: 600; line-height: 14px; }
.stack-n svg.icon { position: static; width: 11px; height: 11px; padding: 0; background: none; }
.strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; border-radius: 20px; scrollbar-width: thin; }
.strip img { flex: 0 0 88%; width: auto; min-width: 0; aspect-ratio: 1; object-fit: cover; scroll-snap-align: start; border-radius: 20px; background: var(--blue-soft); }
.mstrip { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.mstrip li { position: relative; width: 76px; height: 76px; }
.mstrip img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; background: var(--blue-soft); }
.mstrip .act { position: absolute; top: -8px; right: -8px; width: 32px; height: 32px; box-shadow: 0 0 0 2px var(--panel); }
.new-brands { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.new-brands .btn { white-space: normal; text-align: left; min-height: 44px; }
@media (prefers-reduced-motion: no-preference) { .strip { scroll-behavior: smooth; } }
@media (max-width: 860px) { .mstrip .act { width: 44px; height: 44px; top: -12px; right: -12px; } .mstrip { gap: 16px; padding-top: 4px; } }

/* Carousel in a review card: the first image, badged "1/N"; all images are on the post page. */
.cover { position: relative; display: block; align-self: start; }
.cover img { display: block; }
.cover .stack-n { right: 8px; bottom: 8px; padding: 2px 7px; font-size: 12px; line-height: 18px; gap: 4px; }
.cover .stack-n svg.icon { width: 13px; height: 13px; }
