@font-face { font-family: "Brinnan"; src: url("../assets/fonts/brinnan-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Brinnan"; src: url("../assets/fonts/brinnan-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Brinnan"; src: url("../assets/fonts/brinnan-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Elixir Script"; src: local("Segoe Script"), local("SegoeScript"); }
@font-face { font-family: "Elixir Script Fallback"; src: url("../assets/fonts/dancing-script-500.woff2") format("woff2"); font-display: swap; }

/* Same system as the Crônicas reports (and the Elixir Labs hub): neutral graphite dark, flat cards, purple only in details. */
:root {
  --bg: #f6f6fa;
  --bg-2: #e9e9f0;
  --panel: #ffffff;
  --panel-2: #f3f3f8;
  --panel-3: #e9e9f2;
  --ink: #19183d;
  --ink-2: #4b4a6b;
  --ink-3: #676685;
  --line: #e3e3ec;
  --line-2: #d1d1de;
  --brand: #31307b;
  --brand-light: #6f6bf2;
  --violet: #31307b;
  --lilac: #31307b;
  --primary-soft: #e9e8f7;
  --accent: #31307b;
  --accent-hover: #3f3d99;
  --on-accent: #ffffff;
  --focus: #31307b;
  --halo: rgba(49, 48, 123, 0.12);
  --ok: #1d7a4f;
  --ok-bg: #e6f4ec;
  --warn: #9a5b0b;
  --warn-bg: #fbf1e2;
  --bad: #b3352f;
  --bad-bg: #fbebe9;
  --hover-veil: rgba(255, 255, 255, 0.65);
  --shadow-sm: 0 1px 2px rgba(25, 24, 61, 0.05);
  --shadow: 0 1px 2px rgba(25, 24, 61, 0.04), 0 10px 28px -14px rgba(25, 24, 61, 0.16);
  --shadow-lg: 0 2px 6px rgba(25, 24, 61, 0.06), 0 24px 48px -18px rgba(25, 24, 61, 0.28);
  --mono-filter: brightness(0) saturate(100%) invert(14%) sepia(30%) saturate(2400%) hue-rotate(225deg) brightness(90%);
  --r-sm: 10px; --r: 14px; --r-lg: 20px;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --script: "Elixir Script", "Elixir Script Fallback", cursive;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #212026;
  --bg-2: #1c1b21;
  --panel: #29282f;
  --panel-2: #25242a;
  --panel-3: #302f37;
  --ink: #ededf2;
  --ink-2: #bcbbc7;
  --ink-3: #9a99a6;
  --line: #35343d;
  --line-2: #45444e;
  --brand: #3d3b94;
  --brand-light: #6f6bf2;
  --violet: #9592ff;
  --lilac: #b9b7ff;
  --primary-soft: #36354f;
  --accent: #9592ff;
  --accent-hover: #a9a6ff;
  --on-accent: #17161f;
  --focus: #9592ff;
  --halo: rgba(149, 146, 255, 0.18);
  --ok: #7fd6a8;
  --ok-bg: #233229;
  --warn: #f0b866;
  --warn-bg: #3a2f20;
  --bad: #ff8f86;
  --bad-bg: #3b2529;
  --hover-veil: rgba(255, 255, 255, 0.05);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 30px -14px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.35), 0 24px 48px -18px rgba(0, 0, 0, 0.7);
  --mono-filter: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--violet); color: #fff; }
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: var(--lilac); text-decoration: none; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
a.card, a.feed__item, a.nav-item, a.tab, a.crumb { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.script { font-family: var(--script); font-weight: 400; color: var(--lilac); }
.icon { width: 18px; height: 18px; flex: none; }

.boot { display: grid; place-items: center; min-height: 100svh; }
.boot img { width: 120px; opacity: 0.6; filter: var(--mono-filter); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

/* ---------- buttons, fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 0.875rem; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease), opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: #3f3c86; }
.btn--ghost { border-color: var(--line-2); background: transparent; color: var(--ink); }
.btn--ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn--danger { border-color: color-mix(in srgb, var(--bad) 40%, transparent); color: var(--bad); background: transparent; }
.btn--danger:hover { background: color-mix(in srgb, var(--bad) 10%, transparent); }
.btn--sm { height: 34px; padding: 0 13px; font-size: 0.8125rem; }
.btn--block { width: 100%; }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }

.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 0.8125rem; font-weight: 700; }
.field small { color: var(--ink-3); font-size: 0.75rem; }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 60%, transparent); color: var(--ink); font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 20%, transparent); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.code-input { letter-spacing: 0.5em; text-align: center; font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }
.alert { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 0.8125rem; font-weight: 700; }
.alert--error { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.alert--ok { color: var(--ok); background: var(--ok-bg); }

/* ---------- auth screens ---------- */
.auth { display: grid; place-items: center; min-height: 100svh; padding: 32px 20px; }
.auth__card {
  width: min(100%, 420px); padding: clamp(26px, 5vw, 38px);
  border: 1px solid var(--line-2); border-radius: 28px; background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(18px); box-shadow: var(--shadow);
  display: grid; gap: 18px;
}
.auth__logo { width: 112px; filter: var(--mono-filter); }
.auth__title { margin: 6px 0 0; font-size: 1.625rem; line-height: 1.15; letter-spacing: -0.02em; }
.auth__title .script { font-size: 1.1em; }
.auth__text { margin: -8px 0 0; color: var(--ink-2); font-size: 0.875rem; }
.auth__links { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8125rem; }
.auth__links button { padding: 0; border: 0; background: none; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.auth__links button:hover { color: var(--ink); }
.auth__back { justify-self: start; }
.qr { justify-self: center; width: 180px; padding: 10px; border-radius: 16px; background: #fff; }
.secret { word-break: break-all; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); font-size: 0.75rem; color: var(--ink-2); }
.auth__foot { text-align: center; font-size: 0.75rem; color: var(--ink-3); }
.auth__foot a { color: var(--ink-3); }

/* ---------- shell ---------- */
.shell { display: grid; min-height: 100svh; grid-template-columns: minmax(0, 1fr); }
.shell > * { min-width: 0; }
.side {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px);
}
.side__logo { width: 92px; filter: var(--mono-filter); }
.side__who { display: none; }
.side__nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.side__nav::-webkit-scrollbar { display: none; }
.side__label { display: none; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 0; border-radius: 12px; background: none; color: var(--ink-2); font-size: 0.875rem; cursor: pointer; text-align: left; white-space: nowrap;
}
.nav-item:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nav-item.is-active { color: var(--ink); background: var(--panel-2); font-weight: 700; }
.nav-item .badge { margin-left: auto; }
.nav-item__text { display: none; }
.side__foot { display: flex; gap: 6px; }
.side__foot .nav-item__text { display: none; }

@media (min-width: 960px) {
  .shell { grid-template-columns: 264px minmax(0, 1fr); }
  .side {
    flex-direction: column; align-items: stretch; gap: 14px; height: 100svh; padding: 22px 16px;
    border-bottom: 0; border-right: 1px solid var(--line);
  }
  .side__logo { width: 104px; margin: 0 6px 6px; }
  .side__who {
    display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
  }
  .side__nav { flex-direction: column; margin: 0; overflow: visible; }
  .side__label { display: block; margin: 8px 12px 2px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
  .nav-item__text { display: inline; }
  .side__foot { margin-top: auto; flex-direction: column; padding-top: 14px; border-top: 1px solid var(--line); }
  .side__foot .nav-item__text { display: inline; }
}
.avatar {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 0.75rem; font-weight: 700;
}
.who__name { font-size: 0.875rem; font-weight: 700; line-height: 1.2; }
.who__sub { font-size: 0.75rem; color: var(--ink-3); }

.main { min-width: 0; padding: clamp(20px, 3.4vw, 40px); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 26px; }
.page-head h1 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; letter-spacing: -0.02em; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 0.875rem; }
.crumb { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 0; border: 0; background: none; color: var(--ink-3); font-size: 0.8125rem; cursor: pointer; }
.crumb:hover { color: var(--ink); }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 700; font-size: 0.8125rem; cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- cards ---------- */
.card { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: var(--shadow); }
.card__pad { padding: clamp(18px, 2.4vw, 24px); }
.grid { display: grid; gap: 16px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--posts { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.section-title { margin: 30px 0 12px; font-size: 1rem; font-weight: 700; }
.section-title:first-child { margin-top: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 0.8125rem; }

.badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.6875rem; font-weight: 700;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 999px; font-size: 0.6875rem; font-weight: 700; white-space: nowrap;
  border: 1px solid var(--line-2); color: var(--ink-2);
}
.pill--pending { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.pill--approved { color: var(--ok); background: var(--ok-bg); border-color: transparent; }
.pill--changes { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); border-color: transparent; }
.pill--brand { color: #fff; background: var(--brand); border-color: transparent; }

.stat-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 24px; }
.stat { padding: 18px 20px; }
.stat__label { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 0.8125rem; }
.stat__num { margin-top: 8px; font-size: 1.875rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }

.report-card { display: grid; gap: 14px; text-align: left; cursor: pointer; color: inherit; transition: transform 0.35s var(--ease), border-color 0.2s; }
.report-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.report-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--brand-light) 22%, transparent); color: var(--lilac); }
.report-card__title { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.report-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-3); font-size: 0.8125rem; }
.report-card__open { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 0.8125rem; font-weight: 700; }

.row-list { display: grid; }
.row {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; }
.row__main { min-width: 0; flex: 1; }
.row__title { font-weight: 700; font-size: 0.9375rem; }
.row__sub { color: var(--ink-3); font-size: 0.8125rem; }
.row button.row__link { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; }
.row button.row__link:hover .row__title { color: var(--lilac); }

/* posts */
.post { overflow: hidden; display: flex; flex-direction: column; }
.post__media { position: relative; aspect-ratio: 4 / 5; background: var(--panel-2); overflow: hidden; }
.post__media img, .post__media video { width: 100%; height: 100%; object-fit: cover; }
.post__nav { position: absolute; inset: auto 0 10px 0; display: flex; justify-content: center; gap: 5px; }
.post__nav button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.5); cursor: pointer; }
.post__nav button.is-on { background: #fff; width: 18px; border-radius: 4px; }
.post__arrow {
  position: absolute; top: 50%; display: grid; place-items: center; width: 32px; height: 32px; margin-top: -16px;
  border: 0; border-radius: 50%; background: rgba(12, 10, 24, 0.55); color: #fff; cursor: pointer; opacity: 0; transition: opacity 0.2s;
}
.post__media:hover .post__arrow, .post__arrow:focus-visible { opacity: 1; }
.post__arrow--l { left: 8px; } .post__arrow--r { right: 8px; }
.post__format { position: absolute; left: 10px; top: 10px; background: rgba(12, 10, 24, 0.55); color: #fff; border: 0; backdrop-filter: blur(8px); }
.post__body { display: grid; gap: 8px; padding: 14px 16px 16px; }
.post__date { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 0.75rem; }
.post__caption { margin: 0; font-size: 0.8125rem; color: var(--ink-2); white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post__caption.is-open { -webkit-line-clamp: unset; display: block; }
.link-btn { justify-self: start; padding: 0; border: 0; background: none; color: var(--lilac); font-size: 0.75rem; font-weight: 700; cursor: pointer; }

/* approvals */
.approval { display: grid; gap: 16px; }
.approval__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.approval__title { margin: 0; font-size: 1.0625rem; line-height: 1.3; }
.approval__meta { color: var(--ink-3); font-size: 0.75rem; }
.files { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.file {
  position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2);
  aspect-ratio: 4 / 5; padding: 0; cursor: zoom-in; color: inherit;
}
.file img, .file video { width: 100%; height: 100%; object-fit: cover; }
.file--doc { display: grid; place-items: center; gap: 8px; align-content: center; padding: 14px; cursor: pointer; text-align: center; font-size: 0.75rem; color: var(--ink-2); }
.decision { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.decision__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.decided { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); font-size: 0.8125rem; }
.decided b { font-size: 0.8125rem; }

.prose { max-width: 72ch; font-size: 0.9375rem; line-height: 1.7; color: var(--ink-2); }
.prose h1, .prose h2, .prose h3 { color: var(--ink); line-height: 1.25; margin: 1.6em 0 0.5em; }
.prose h1 { font-size: 1.5rem; } .prose h2 { font-size: 1.2rem; } .prose h3 { font-size: 1rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.prose blockquote { margin: 1em 0; padding: 4px 16px; border-left: 2px solid var(--violet); color: var(--ink-2); }
.prose code { padding: 1px 6px; border-radius: 6px; background: var(--panel-2); font-size: 0.85em; }
.prose img { border-radius: 12px; }

.empty { display: grid; justify-items: center; gap: 8px; padding: 44px 20px; text-align: center; color: var(--ink-3); }
.empty b { color: var(--ink); font-size: 0.9375rem; }
.empty .icon { width: 28px; height: 28px; color: var(--violet); }

/* overlay: report viewer / lightbox / reader */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-rows: auto 1fr; background: rgba(6, 5, 14, 0.82); backdrop-filter: blur(6px); animation: fade 0.25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.overlay__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.overlay__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 0.9375rem; }
.overlay__frame { width: 100%; height: 100%; border: 0; background: #fff; }
.overlay__scroll { overflow: auto; padding: clamp(20px, 4vw, 48px); background: var(--bg); }
.overlay__center { display: grid; place-items: center; padding: 20px; overflow: auto; }
.overlay__center img, .overlay__center video { max-height: calc(100svh - 110px); border-radius: 12px; }

/* admin forms */
.panel-form { display: grid; gap: 16px; margin-bottom: 22px; }
.panel-form__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-form__head h3 { margin: 0; font-size: 1rem; }
.drop {
  display: grid; justify-items: center; gap: 6px; padding: 22px; border: 1.5px dashed var(--line-2); border-radius: 16px;
  color: var(--ink-3); font-size: 0.8125rem; text-align: center; cursor: pointer; transition: border-color 0.2s, background-color 0.2s;
}
.drop:hover, .drop.is-over { border-color: var(--violet); background: color-mix(in srgb, var(--violet) 6%, transparent); }
.drop b { color: var(--ink); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chosen { display: flex; flex-wrap: wrap; gap: 6px; }
.chosen span { padding: 4px 10px; border-radius: 999px; background: var(--panel-2); font-size: 0.75rem; color: var(--ink-2); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.confirm { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--bad); }

.feed { display: grid; }
.feed__item { display: flex; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 0.8125rem; }
.feed__item:first-child { border-top: 0; }
.feed__dot { width: 9px; height: 9px; margin-top: 6px; flex: none; border-radius: 50%; }
.dot--approved { background: var(--ok); } .dot--changes_requested { background: var(--bad); } .dot--resubmitted { background: var(--warn); }

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); z-index: 60; transform: translateX(-50%);
  padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 0.875rem; font-weight: 700; box-shadow: var(--shadow);
  animation: fade 0.25s var(--ease);
}
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }


/* mobile: client nav becomes a bottom tab bar; admin nav a scrolling row */
@media (max-width: 959px) {
  .side { flex-wrap: wrap; }
  .shell--client .side { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .side__foot { margin-left: auto; }
  .shell--client .side__nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    padding: 6px 8px calc(env(safe-area-inset-bottom, 0px) + 6px);
    border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(16px);
  }
  .shell--client .side__nav .nav-item { flex-direction: column; justify-content: center; gap: 3px; padding: 7px 4px; font-size: 0.6875rem; position: relative; }
  .shell--client .side__nav .nav-item__text { display: inline; }
  .shell--client .side__nav .badge { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; min-width: 17px; height: 17px; font-size: 0.625rem; }
  .shell--client .main { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); }
  .shell--admin .side__nav { order: 3; flex-basis: 100%; margin: 4px -16px 0; padding: 0 16px 2px; }
  .shell--admin .side__nav .nav-item__text { display: inline; }
  .shell--admin .side__label { display: none; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; } }
.card-who { display: flex; align-items: center; gap: 12px; }


/* ---------- report skin: flat, quiet, same rhythm as the Crônicas dashboards ---------- */
h1, h2, h3, .auth__title, .page-head h1, .stat__num, .report-card__title, .approval__title, .who__name { font-family: var(--display); }
.page-head h1 { font-size: 22px; font-weight: 650; letter-spacing: -0.01em; }
.page-head p { font-size: 13.5px; }
.section-title { font-size: 15px; font-weight: 650; color: var(--ink); }
.auth__title { font-size: 24px; font-weight: 650; }
.auth__card { background: var(--panel); backdrop-filter: none; border-color: var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.auth { background: var(--bg-2); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card__pad { padding: 18px 20px; }
.report-card:hover { transform: none; border-color: var(--line-2); box-shadow: var(--shadow); }
.report-card__icon, .step__icon { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--primary-soft); color: var(--lilac); }
.report-card__icon .icon { width: 17px; height: 17px; }
.report-card__title { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.report-card__meta { font-size: 12.5px; }
.report-card__open { color: var(--lilac); font-weight: 600; }
.stat { padding: 18px 20px; }
.stat__label { font-size: 13.5px; font-weight: 600; }
.stat__label .icon { width: 16px; height: 16px; color: var(--lilac); }
.stat__num { font-size: 32px; font-weight: 650; letter-spacing: -0.022em; font-variant-numeric: tabular-nums; }

/* sidebar = report shell */
@media (min-width: 960px) {
  .side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 20px 14px; gap: 12px; }
  .side__who { background: var(--panel); border-color: var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
  .side__label { color: var(--ink-2); font-size: 11px; font-weight: 600; letter-spacing: 0.07em; }
  .side__foot { border-top-color: var(--line-2); }
}
.nav-item { height: 34px; padding: 0 10px; border-radius: var(--r-sm); font-size: 14px; color: var(--ink-2); }
.nav-item .icon { color: var(--ink-3); width: 17px; height: 17px; }
.nav-item:hover { background: var(--hover-veil); color: var(--ink); }
.nav-item.is-active { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.nav-item.is-active .icon { color: var(--lilac); }
.avatar { background: var(--brand); color: #f3f3ff; }

/* controls */
.btn { font-weight: 600; font-family: var(--sans); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--brand { background: var(--brand); color: #f3f3ff; }
.btn--brand:hover { background: color-mix(in srgb, var(--brand) 85%, #fff); }
.btn--ghost { border-color: var(--line-2); }
.btn--ghost:hover { background: var(--panel-2); }
.tabs { padding: 4px; gap: 4px; background: var(--panel-3); border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tab { height: 32px; padding: 0 14px; font-weight: 500; font-size: 13px; border-color: transparent; background: transparent; color: var(--ink-2); }
.tab.is-active { background: var(--brand); border-color: var(--brand); color: #f3f3ff; }
.tab .badge { background: var(--panel); color: var(--ink); }
.tab.is-active .badge { background: rgba(255, 255, 255, 0.2); color: #fff; }
.badge { background: var(--accent); color: var(--on-accent); }
.input, .select, .textarea { background: var(--panel); border-color: var(--line-2); border-radius: var(--r-sm); font-family: var(--sans); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--focus); box-shadow: 0 0 0 4px var(--halo); }
.drop { border-color: var(--line-2); border-radius: var(--r); background: var(--panel-2); }
.pill { font-weight: 600; font-size: 11.5px; border-color: var(--line); background: var(--panel-2); }
.pill--brand { background: var(--brand); border-color: var(--brand); color: #f3f3ff; }
.pill--pending { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.pill--approved { color: var(--ok); background: var(--ok-bg); border-color: transparent; }
.pill--changes { color: var(--bad); background: var(--bad-bg); border-color: transparent; }
.post__format { background: rgba(12, 10, 24, 0.6); color: #fff; border: 0; }
.pill--glass { color: #fff; }
.alert--error { color: var(--bad); background: var(--bad-bg); }
.decided { background: var(--panel-2); border: 1px solid var(--line); }
.file { background: var(--panel-2); border-color: var(--line); border-radius: var(--r); }
.post__media { background: var(--panel-2); }
.overlay__bar { background: var(--bg-2); }
.overlay__scroll { background: var(--bg); }
.toast { background: var(--ink); color: var(--bg); border-radius: var(--r); }
.empty .icon { color: var(--lilac); }
@media (max-width: 959px) {
  .side, .shell--client .side { background: var(--bg-2); }
  .shell--client .side__nav { background: var(--bg-2); border-top-color: var(--line); }
  .shell--client .side__nav .nav-item { height: auto; }
  .shell--client .side__nav .nav-item.is-active { background: var(--panel); }
}

/* ---------- logo: keep its proportions everywhere ---------- */
.side__logo, .auth__logo { height: auto; aspect-ratio: 153 / 50; flex: none; align-self: flex-start; object-fit: contain; }
@media (max-width: 959px) { .side__logo { align-self: center; } }

/* ---------- report cards with a preview ---------- */
.grid--reports { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.report-card--visual { padding: 0; overflow: hidden; display: flex; flex-direction: column; gap: 0; cursor: default; }
.report-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; overflow: hidden; cursor: pointer;
  background: linear-gradient(135deg, var(--panel-3), var(--panel-2)); border-bottom: 1px solid var(--line);
}
.report-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity 0.4s var(--ease), transform 0.6s var(--ease); }
.report-thumb.has-img img { opacity: 1; }
.report-thumb:hover img { transform: scale(1.02); }
.report-thumb__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); }
.report-thumb__ph .icon { width: 28px; height: 28px; }
.report-thumb.has-img .report-thumb__ph { display: none; }
.report-card__body { display: grid; gap: 14px; padding: 16px 18px 18px; }

/* ---------- client home ---------- */
.home { display: grid; gap: 22px; }
.home .stat-row { margin: 0; }
.home-alert {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--panel));
}
.home-alert:hover { box-shadow: var(--shadow); }
.home-alert__icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent); }
.home-alert > div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.home-alert b { font-size: 15px; font-weight: 650; }
.home-alert div span { font-size: 13px; color: var(--ink-2); }
.home-grid { display: grid; gap: 22px; }
@media (min-width: 1100px) { .home-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; } }
.home-block { display: grid; gap: 12px; min-width: 0; }
.home-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.home-block__head .section-title { margin: 0; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--lilac); }
.link-more .icon { width: 14px; height: 14px; }
.plan-list { display: grid; padding: 4px 0; }
.plan-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line); color: inherit; }
.plan-row:first-child { border-top: 0; }
.plan-row:hover { background: var(--panel-2); }
.plan-row__text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.plan-row__text b { font-size: 15px; font-weight: 650; }
.plan-row__text span { font-size: 12.5px; color: var(--ink-3); }
.plan-row > .icon { color: var(--ink-3); width: 16px; height: 16px; }
.plan-strip { display: flex; gap: 6px; }
.plan-strip__thumb, .post-tile__img { position: relative; display: block; overflow: hidden; background: var(--panel-3); }
.plan-strip__thumb { width: 40px; aspect-ratio: 4 / 5; border-radius: 8px; }
.plan-strip__thumb img, .post-tile__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 520px) { .plan-strip__thumb:nth-child(n+3) { display: none; } }
.home-block--wide { grid-column: 1 / -1; }
.post-strip { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.post-tile { display: grid; gap: 8px; color: inherit; }
.post-tile__img { aspect-ratio: 4 / 5; border-radius: var(--r); border: 1px solid var(--line); }
.post-tile:hover .post-tile__img { box-shadow: var(--shadow); }
.post-tile__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-3); }
.post-tile__meta b { color: var(--ink-2); font-weight: 600; }
@media (max-width: 640px) {
  .home-alert { flex-wrap: wrap; }
  .home-alert > div { flex-basis: calc(100% - 60px); }
  .home-alert .btn { width: 100%; }
  .home .stat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .home .stat { padding: 14px 16px; }
  .home .stat__num { font-size: 26px; }
  .shell--client .side__nav .nav-item { font-size: 0.625rem; }
}

/* ---------- covers: a collage of the posts behind a report or a cycle ---------- */
.cover { position: absolute; inset: 0; display: grid; gap: 6px; padding: 14px; background: linear-gradient(140deg, var(--brand), #1d1b4a); }
.cover--1 { grid-template-columns: 1fr; padding: 22px 30%; }
.cover--2 { grid-template-columns: repeat(2, 1fr); padding: 18px 18%; }
.cover--3 { grid-template-columns: repeat(3, 1fr); padding: 18px 8%; }
.cover--4, .cover--5, .cover--6 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
.cover--4 .cover__tile:nth-child(1) { grid-row: span 2; }
.cover--5 .cover__tile:nth-child(1) { grid-row: span 2; }
.cover__tile { position: relative; overflow: hidden; border-radius: 10px; background: rgba(255, 255, 255, 0.08); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.6); }
.cover__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover__ph { grid-column: 1 / -1; display: grid; place-items: center; color: rgba(255, 255, 255, 0.6); }
.report-thumb { aspect-ratio: 16 / 10; background: var(--brand); }
.report-thumb .cover { transition: transform 0.6s var(--ease); }
.report-thumb:hover .cover { transform: scale(1.02); }
.report-thumb__badge {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 999px; background: rgba(12, 10, 24, 0.55); color: #fff; font-size: 11.5px; font-weight: 600; backdrop-filter: blur(8px);
}
.report-thumb__badge .icon { width: 13px; height: 13px; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.filters__years { margin: 0; }
.filters__month { width: auto; min-width: 170px; height: 40px; padding: 0 12px; border-radius: 999px; }

/* ---------- cycles list ---------- */
.cycles { display: grid; gap: 14px; }
.cycle {
  display: grid; gap: 18px; align-items: center; padding: 18px; color: inherit;
  transition: border-color 0.2s, box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.cycle:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.cycle__info { display: grid; gap: 8px; align-content: start; }
.cycle__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cycle__period { font-size: 12.5px; color: var(--ink-3); }
.cycle__title { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 650; letter-spacing: -0.015em; }
.cycle__stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-3); }
.cycle__stats b { color: var(--ink); font-weight: 650; }
.cycle .link-more { margin-top: 4px; }
.cycle__strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.cycle__tile { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--panel-3); }
.cycle__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.cycle:hover .cycle__tile img { transform: scale(1.03); }
.cycle__fmt { position: absolute; left: 6px; top: 6px; z-index: 1; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 600; color: #fff; background: rgba(12, 10, 24, 0.55); backdrop-filter: blur(6px); }
.cycle__more { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 12px; background: var(--panel-2); border: 1px dashed var(--line-2); color: var(--ink-3); font-weight: 650; }
@media (min-width: 900px) { .cycle { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); padding: 20px 22px; } }
@media (max-width: 600px) { .cycle__strip .cycle__tile:nth-child(n+4) { display: none; } .cycle__more { display: none; } }

/* ---------- one cycle: weeks ---------- */
.cycle-page { display: grid; gap: 26px; }
.stat-row--5 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; }
.week { display: grid; gap: 14px; }
.week__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.week__title { margin: 0; font-family: var(--display); font-size: 17px; font-weight: 650; }
.week__meta { font-size: 12.5px; color: var(--ink-3); }
.post__headline { margin: 0; font-size: 14px; font-weight: 650; line-height: 1.35; font-family: var(--display); }
.metrics { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.metric .icon { width: 14px; height: 14px; color: var(--ink-3); }

/* ---------- profile evolution chart ---------- */
.chart { padding: 18px 20px 12px; display: grid; gap: 10px; }
.chart__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.chart__head .section-title { margin: 0; }
.chart__how { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.chart__tabs { margin: 0; }
.chart__tabs .tab { height: 30px; padding: 0 12px; font-size: 12.5px; }
.chart__plot { color: var(--lilac); }
.chart__svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__line { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart__dot { fill: var(--panel); stroke: currentColor; stroke-width: 2; }
.chart__dot.is-last { fill: currentColor; }
.chart__val { fill: var(--ink); font-size: 12px; font-weight: 650; font-family: var(--sans); }
.chart__x { fill: var(--ink-3); font-size: 11px; font-family: var(--sans); }
.report-thumb .cover__tile img { opacity: 1; transform: none; }
.cycle__strip { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 600px) { .cycle__strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- round 15: calendar, this week, approvals by week */
@media (max-width: 959px) { .shell--client .side__nav { grid-template-columns: repeat(5, 1fr); } }
.form-grid--3 { display: grid; gap: 14px; }
@media (min-width: 720px) { .form-grid--3 { grid-template-columns: 2fr 1fr 1fr; } }
.icon-btn--sm { width: 30px; height: 30px; }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.select--sm { width: auto; height: 30px; padding: 0 28px 0 10px; font-size: 12.5px; }
.textarea--sm { min-height: 64px; font-size: 14px; }
.btn--quiet { border-color: transparent; color: var(--ink-3); }
.pill--cancelled { color: var(--ink-3); background: var(--panel-3); border-color: transparent; text-decoration: line-through; }

/* stage colours (calendar) */
.stage { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.stage--planned { --c: var(--ink-3); }
.stage--producing { --c: var(--warn); }
.stage--review { --c: var(--accent); }
.stage--approved { --c: var(--ok); }
.stage--scheduled { --c: #3fa8ae; }
.stage--published { --c: var(--ink-2); }
.stage[class*="stage--"] { color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.dot[class*="stage--"] { background: var(--c); }

/* calendar */
.cal-wrap { display: grid; gap: 14px; }
.cal-bar { display: flex; align-items: center; gap: 10px; }
.cal-bar__title { margin: 0 4px; min-width: 190px; text-align: center; font-family: var(--display); font-size: 18px; font-weight: 650; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: hidden; padding: 0; }
.cal__wd { padding: 10px 10px 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.cal__cell { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-height: 108px; padding: 8px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: inherit; min-width: 0; }
.cal__cell:nth-child(7n) { border-right: 0; }
.cal__cell:hover { background: var(--hover-veil); }
.cal__cell.is-out { color: var(--ink-3); background: color-mix(in srgb, var(--panel-2) 60%, transparent); }
.cal__cell.is-out .cal__chips { opacity: 0.55; }
.cal__cell.is-sel { box-shadow: inset 0 0 0 2px var(--accent); }
.cal__num { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cal__cell.is-today .cal__num { display: inline-grid; place-items: center; width: 24px; height: 24px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.cal__chips { display: grid; gap: 3px; min-width: 0; }
.cal__chip { display: block; overflow: hidden; padding: 3px 6px; border-radius: 6px; font-size: 11.5px; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); background: color-mix(in srgb, var(--c) 16%, transparent); border-left: 3px solid var(--c); }
.cal__chip b { margin-right: 4px; font-weight: 650; font-variant-numeric: tabular-nums; }
.cal__more { font-size: 11px; color: var(--ink-3); padding-left: 4px; }
.cal__dots { display: none; flex-wrap: wrap; gap: 3px; }
.cal-day { display: grid; gap: 4px; }
.cal-day__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 6px; }
.cal-day__head h3 { margin: 0; font-size: 15px; font-weight: 650; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ink-3); }
.cal-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.sched { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.cal-day__head + .sched { border-top: 0; }
.sched__when { display: grid; min-width: 46px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sched__when b { color: var(--ink); }
.sched__main { flex: 1; display: grid; gap: 2px; min-width: 0; }
.sched__title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.sched__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--ink-3); }
@media (max-width: 720px) {
  .cal-bar__title { min-width: 0; flex: 1; font-size: 16px; }
  .cal__cell { min-height: 54px; padding: 6px 4px; align-items: center; }
  .cal__chips { display: none; }
  .cal__dots { display: flex; justify-content: center; }
  .cal__wd { padding: 8px 0; text-align: center; font-size: 10.5px; }
  .cal__cell.is-today .cal__num { margin: -3px 0 0; }
  .sched { flex-wrap: wrap; gap: 6px 12px; }
  .sched__main { flex-basis: calc(100% - 60px); }
  .sched .stage { margin-left: 58px; }
}

/* this week on Início */
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week-strip__day { display: grid; align-content: start; gap: 8px; min-height: 120px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); min-width: 0; }
.week-strip__day.is-today { border-color: var(--accent); box-shadow: 0 0 0 3px var(--halo); }
.week-strip__day.is-past { opacity: 0.6; }
.week-strip__date { display: flex; align-items: baseline; gap: 6px; }
.week-strip__date span { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }
.week-strip__date b { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.week-strip__posts { display: grid; gap: 8px; }
.week-strip__post { display: flex; gap: 7px; align-items: flex-start; min-width: 0; }
.week-strip__post .dot { margin-top: 6px; }
.week-strip__post div { display: grid; gap: 2px; min-width: 0; }
.week-strip__post b { font-size: 12.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.week-strip__post span { font-size: 11px; color: var(--ink-3); }
.week-strip__none { color: var(--ink-3); font-size: 12px; }
@media (max-width: 900px) {
  .week-strip { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
  .week-strip__day { grid-template-columns: 54px minmax(0, 1fr); min-height: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
  .week-strip__day:first-child { border-top: 0; }
  .week-strip__day.is-today { box-shadow: inset 3px 0 0 var(--accent); }
  .week-strip__date { flex-direction: column; gap: 0; }
}

/* approvals: batches > weeks > topics / arts */
.batches { display: grid; gap: 22px; }
.all-done { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--ok); }
.all-done b { color: var(--ink); }
.batch { display: grid; gap: 0; overflow: hidden; }
.batch.is-closed { box-shadow: none; }
.batch__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.batch__info { display: grid; gap: 8px; min-width: 0; }
.batch__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.batch__title { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 650; letter-spacing: -0.01em; }
.batch__progress { display: flex; align-items: center; gap: 10px; }
.bar { position: relative; width: 140px; height: 6px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--ok); transition: width 0.5s var(--ease); }
.batch__weeks { display: grid; gap: 0; }
.wk { display: grid; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.wk__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.wk__title { margin: 0; font-family: var(--display); font-size: 16px; font-weight: 650; }
.wk__dates { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wk__count { font-size: 12px; color: var(--ink-3); }
.wk__list { display: grid; gap: 10px; min-height: 52px; padding: 2px; border-radius: var(--r); transition: background 0.2s, box-shadow 0.2s; }
.wk__list.is-over { background: var(--halo); box-shadow: inset 0 0 0 2px var(--accent); }
.wk__empty { margin: 0; display: grid; place-items: center; min-height: 52px; border: 1px dashed var(--line-2); border-radius: var(--r); font-size: 12.5px; color: var(--ink-3); }
.wk__add { justify-self: start; }

.topic { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-2); }
.topic[draggable="true"] { cursor: grab; }
.topic.is-dragging { opacity: 0.45; }
.topic.is-approved { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.topic.is-changes { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.topic.is-cancelled .topic__headline, .topic.is-cancelled .topic__brief { opacity: 0.55; }
.topic__main { display: grid; gap: 6px; min-width: 0; }
.topic__top { display: flex; align-items: flex-start; gap: 8px; }
.topic__grip { color: var(--ink-3); margin: 2px -2px 0 -6px; }
.topic__grip .icon { stroke-width: 3; }
.topic__headline { flex: 1; margin: 0; font-size: 15px; font-weight: 650; line-height: 1.35; }
.topic__brief { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); white-space: pre-wrap; }
.topic__why { margin: 0; padding: 8px 12px; border-radius: var(--r-sm); background: var(--panel); font-size: 13px; color: var(--ink-2); }
.topic__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.topic__move { display: flex; align-items: center; gap: 6px; }
.topic-new { padding: 12px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.decide { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1; }
.decide__form { display: grid; gap: 8px; width: 100%; }
.admin-tools, .admin-edit { width: 100%; }

.thread { display: grid; gap: 8px; }
.batch > .thread { padding: 18px 22px 22px; }
.thread__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.thread--compact > summary { list-style: none; cursor: pointer; font-size: 12.5px; color: var(--ink-3); }
.thread--compact > summary::-webkit-details-marker { display: none; }
.thread--compact[open] > summary { color: var(--ink-2); }
.thread__title .icon { width: 15px; height: 15px; }
.thread__list { display: grid; gap: 8px; }
.thread__list:empty { display: none; }
.thread__item { padding: 10px 12px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); }
.thread__item.is-studio { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.thread__item p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; }
.thread__who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12px; }
.thread__new { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }

/* art weeks: an accordion */
.wk--art { padding: 0; gap: 0; }
.wk--art > summary { list-style: none; padding: 16px 22px; cursor: pointer; align-items: center; }
.wk--art > summary::-webkit-details-marker { display: none; }
.wk--art > summary:hover { background: var(--hover-veil); }
.wk--art > summary .badge { margin: 0; }
.wk__chev { margin-left: auto; color: var(--ink-3); transition: transform 0.25s var(--ease); }
.wk--art[open] > summary .wk__chev { transform: rotate(180deg); }
.wk__arts { display: grid; gap: 18px; padding: 4px 22px 22px; }
.art { display: grid; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel-2); }
.art.is-approved { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.art.is-changes { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
@media (min-width: 900px) { .art { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); align-items: start; } }
.car { position: relative; border-radius: var(--r); overflow: hidden; background: #000; aspect-ratio: 4 / 5; }
.car__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.car__track::-webkit-scrollbar { display: none; }
.car__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; display: grid; place-items: center; }
.car__slide img, .car__slide video { width: 100%; height: 100%; object-fit: contain; }
.car__slide--empty { gap: 8px; color: var(--ink-3); background: var(--panel-3); font-size: 13px; align-content: center; }
.car__count { position: absolute; right: 10px; top: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(12, 10, 24, 0.6); color: #fff; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.car__count:empty { display: none; }
.car__dots { position: absolute; inset: auto 0 10px 0; display: flex; justify-content: center; gap: 5px; }
.car__dots button { position: relative; width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.5); cursor: pointer; }
.car__dots button.is-on { background: #fff; width: 18px; border-radius: 4px; }
.car__dots button.has-c::after { content: ""; position: absolute; top: -5px; right: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--warn); }
.car:hover .post__arrow, .car .post__arrow:focus-visible { opacity: 1; }
@media (hover: none) { .car .post__arrow { display: none; } }
.art__info { display: grid; gap: 14px; min-width: 0; }
.art__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12.5px; color: var(--ink-3); }
.art__meta > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.art__meta .icon { width: 15px; height: 15px; }
.art__field { display: grid; gap: 4px; }
.art__label { font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.art__headline { margin: 0; font-size: 17px; font-weight: 650; line-height: 1.35; }
.art__caption { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.art__caption.is-open { display: block; }
.art__tags { margin: 0; font-size: 13px; color: var(--lilac); word-break: break-word; }

.closed-batches { display: grid; gap: 16px; }
.closed-batches > summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }

/* admin planning builder */
.builder__weeks { display: grid; gap: 14px; }
@media (min-width: 1100px) { .builder__weeks { grid-template-columns: 1fr 1fr; } }
.builder__week { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-2); align-content: start; }
.builder__week > .btn { justify-self: start; }
.builder__list { display: grid; gap: 10px; }
.builder__topic { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; }
.builder__n { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 10px; border-radius: 50%; background: var(--panel-3); font-size: 11px; font-weight: 700; color: var(--ink-3); }

@media (max-width: 640px) {
  .batch__head, .wk, .batch > .thread { padding-left: 16px; padding-right: 16px; }
  .wk--art { padding: 0; }
  .wk--art > summary { padding: 14px 16px; }
  .wk__arts { padding: 4px 12px 16px; }
  .art { padding: 12px; }
  .batch__head .toolbar, .batch__head .toolbar .btn--accent { width: 100%; }
  .topic { padding: 12px 13px; }
  .thread__new { grid-template-columns: 1fr; }
  .thread__new .btn { justify-self: end; }
}

/* ---------------------------------------------------------------- round 16 */
/* login: the round seal (the wide logo was getting squeezed) */
.auth__seal { position: relative; width: 84px; aspect-ratio: 1; flex: none; }
.auth__seal img { position: absolute; inset: 0; width: 100%; height: 100%; filter: var(--mono-filter); }
.auth__ring { animation: spin 22s linear infinite; }

/* coloured decisions */
.btn--ok, .btn--warn, .btn--bad { border-color: transparent; color: #fff; }
.btn--ok { background: #1f8a57; }
.btn--ok:hover { background: #18774a; }
.btn--warn { background: #d08a12; color: #1c1405; }
.btn--warn:hover { background: #b97a0d; }
.btn--bad { background: #c2413a; }
.btn--bad:hover { background: #a9352f; }
:root[data-theme="dark"] .btn--ok { background: #2e9e66; }
:root[data-theme="dark"] .btn--warn { background: #e0a23a; }
:root[data-theme="dark"] .btn--bad { background: #d4544c; }
.btn--ok .icon, .btn--warn .icon, .btn--bad .icon { width: 16px; height: 16px; }

/* report preview: two arts tilted on a quiet ground */
.duo { position: absolute; inset: 0; background: linear-gradient(150deg, var(--panel-3), var(--panel-2)); overflow: hidden; }
.duo__card { position: absolute; width: 38%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: var(--panel); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.45); transition: transform 0.6s var(--ease); }
.duo__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.report-thumb .duo__card img { opacity: 1; transform: none; }
.duo--2 .duo__card--1 { left: 15%; top: 9%; transform: rotate(-6deg); }
.duo--2 .duo__card--2 { left: 43%; top: 17%; transform: rotate(4deg); z-index: 1; }
.duo--1 .duo__card--1 { left: 31%; top: 10%; transform: rotate(-3deg); }
.report-thumb:hover .duo--2 .duo__card--1 { transform: rotate(-8deg) translateX(-4px); }
.report-thumb:hover .duo--2 .duo__card--2 { transform: rotate(6deg) translateX(4px); }
.duo .cover__ph { position: absolute; inset: 0; color: var(--ink-3); }

/* chart text (drawn at the real width now) */
.chart__val { font-size: 12px; }
.chart__x { font-size: 11.5px; }

/* home: this week as its own card */
.home-week { display: grid; gap: 14px; padding: 18px 20px 20px; }
.home-week__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.home-week__head .section-title { margin: 0; }
.home-week__range { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.home-week .week-strip { gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel-2); }
.home-week .week-strip__day { border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; min-height: 150px; }
.home-week .week-strip__day:first-child { border-left: 0; }
.home-week .week-strip__day.is-today { background: color-mix(in srgb, var(--accent) 9%, transparent); box-shadow: inset 0 3px 0 var(--accent); }
.week-strip__post { display: grid; gap: 6px; }
.week-strip__info { display: grid; gap: 3px; min-width: 0; }
.week-strip__info > span { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-3); }
.week-strip__info .dot { margin: 0; width: 7px; height: 7px; }
.week-strip__none { font-size: 11.5px; color: var(--ink-3); opacity: 0.7; }
@media (max-width: 900px) {
  .home-week .week-strip__day { border-left: 0; border-top: 1px solid var(--line); min-height: 0; }
  .home-week .week-strip__day:first-child { border-top: 0; }
  .home-week .week-strip__day.is-today { box-shadow: inset 3px 0 0 var(--accent); }
  .week-strip__post { grid-template-columns: 44px minmax(0, 1fr); align-items: center; }
}

/* art previews from the calendar (missing ones simply don't show) */
.sthumb { position: relative; display: block; overflow: hidden; border-radius: 8px; background: var(--panel-3); flex: none; }
.sthumb:not(.has-img) { display: none; }
.sthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sthumb--week { width: 100%; aspect-ratio: 4 / 5; border-radius: 10px; }
.sthumb--chip { width: 22px; height: 27px; border-radius: 4px; }
.sthumb--row { width: 52px; aspect-ratio: 4 / 5; border-radius: 8px; }
.cal__chip { display: flex; align-items: center; gap: 6px; }
.cal__chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .sthumb--week { width: 44px; } }

/* home: report and plannings side by side, same height; posts fill the row */
@media (min-width: 1100px) {
  .home-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .home-grid .home-block { grid-template-rows: auto 1fr; }
  .home-grid .report-card--visual, .home-grid .plan-list { height: 100%; }
  .home-grid .report-card--visual .report-thumb { flex: 1; aspect-ratio: auto; min-height: 180px; }
  .home-grid .plan-list { align-content: center; }
}
.post-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) { .post-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* plannings: finished or still going */
.pill--done { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); background: var(--ok-bg); border-color: transparent; }
.pill--done .icon { width: 12px; height: 12px; }
.pill--going { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.page-head p .pill { margin-left: 6px; vertical-align: 1px; }

/* ---------------------------------------------------------------- round 17 */
/* the site's hero ground: a faint grid under purple light (login always, the app in dark) */
:root { --grid-line: rgba(49, 48, 123, 0.06); --glow-a: rgba(111, 107, 242, 0.18); --glow-b: rgba(120, 100, 235, 0.10); }
:root[data-theme="dark"] {
  --bg: #0d0b17; --bg-2: #0a0912; --panel: #15122a; --panel-2: #121026; --panel-3: #1d1938;
  --line: #262144; --line-2: #343059; --ink-3: #9d9ab4;
  --grid-line: rgba(255, 255, 255, 0.035); --glow-a: rgba(124, 92, 255, 0.24); --glow-b: rgba(84, 80, 196, 0.18);
  --hover-veil: rgba(255, 255, 255, 0.04);
}
.hero-ground, .auth, :root[data-theme="dark"] body {
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 640px at 88% 8%, var(--glow-a), transparent 70%),
    radial-gradient(700px 600px at 6% 92%, var(--glow-b), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, auto, 84px 84px, 84px 84px;
  background-attachment: fixed;
}
:root[data-theme="dark"] .side { background: color-mix(in srgb, var(--bg-2) 82%, transparent); backdrop-filter: blur(14px); }
.auth__card { background: color-mix(in srgb, var(--panel) 82%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

/* login never wider than the phone */
.auth { grid-template-columns: minmax(0, 1fr); padding: max(24px, env(safe-area-inset-top)) 16px 24px; }
.auth__card { width: 100%; max-width: 420px; justify-self: center; min-width: 0; }
.auth__card input, .auth__card .btn { max-width: 100%; }
.auth .secret { overflow-wrap: anywhere; }

/* report card: open it from the pill row */
.report-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.pill--open { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.pill--open:hover { background: var(--accent-hover); }
.pill--open .icon { width: 12px; height: 12px; }

/* calendar: the art in the month grid too */
.sthumb--chip { width: 30px; height: 37px; border-radius: 5px; }
.cal__chip { padding: 3px 6px 3px 3px; }
.cal__chip-text { display: grid; gap: 0; line-height: 1.25; }
.cal__chip-text > b { margin: 0; font-size: 10.5px; }
.cal__chip-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal__pics { display: none; gap: 3px; justify-content: center; }
.sthumb--cell { width: 24px; height: 30px; border-radius: 4px; }
@media (max-width: 720px) {
  .cal__pics { display: flex; }
  .cal__cell { min-height: 64px; gap: 3px; }
  .cal__pics:has(.has-img) + .cal__dots { display: none; }
}

/* ---------------------------------------------------------------- round 18 */
/* the hero ground, quieter (about half) */
:root { --grid-line: rgba(49, 48, 123, 0.03); --glow-a: rgba(111, 107, 242, 0.09); --glow-b: rgba(120, 100, 235, 0.05); }
:root[data-theme="dark"] { --grid-line: rgba(255, 255, 255, 0.017); --glow-a: rgba(124, 92, 255, 0.12); --glow-b: rgba(84, 80, 196, 0.09); }
.boot { background-color: var(--bg); background-image: radial-gradient(900px 640px at 88% 8%, var(--glow-a), transparent 70%), linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: auto, 84px 84px, 84px 84px; }
.boot .auth__seal { width: 96px; }
.boot .auth__seal img { width: 100%; opacity: 1; animation: none; }
.boot .auth__ring { animation: spin 3s linear infinite; }
/* a blurred header traps the fixed bottom bar inside it: blur only on the desktop sidebar */
:root[data-theme="dark"] .side { backdrop-filter: none; }
@media (min-width: 960px) { :root[data-theme="dark"] .side { backdrop-filter: blur(14px); } }

/* ---------------------------------------------------------------- round 18: approvals, simpler */
.batches { gap: 34px; }
.batch { display: grid; gap: 14px; border: 0; background: none; box-shadow: none; overflow: visible; }
.batch.is-closed { opacity: 0.75; }
.batch__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; padding: 0 2px 4px; border: 0; }
.batch__info { display: grid; gap: 6px; }
.batch__title { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 650; letter-spacing: -0.015em; }
.batch__sub { margin: 0; font-size: 13px; color: var(--ink-3); }
.batch__progress { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-3); }
.batch__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.batch__weeks { display: grid; gap: 12px; }
.batch__general { padding: 16px 18px; }

.wk { gap: 10px; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.wk__head { align-items: baseline; gap: 4px 10px; }
.wk__title { font-size: 15px; }
.wk__list { gap: 8px; }

/* a topic: one clean row */
.topic { padding: 0; gap: 0; background: var(--panel-2); border-color: transparent; border-left: 3px solid transparent; }
.topic.is-approved { border-color: transparent; border-left-color: var(--ok); }
.topic.is-changes { border-color: transparent; border-left-color: #d08a12; }
.topic.is-cancelled { border-left-color: var(--bad); }
.topic__row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 13px 14px 12px 10px; }
.topic__grip, .topic__n { margin: 2px 0 0; display: grid; place-items: center; color: var(--ink-3); }
.topic__n { width: 22px; height: 22px; border-radius: 50%; background: var(--panel-3); font-size: 11px; font-weight: 700; }
.topic__body { display: grid; gap: 4px; min-width: 0; }
.topic__headline { margin: 0; font-size: 15px; font-weight: 650; line-height: 1.35; }
.topic__brief { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; white-space: normal; }
.topic__brief.is-open { display: block; }
.topic__state { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); }
.topic__state .icon { width: 14px; height: 14px; }
.topic.is-approved .topic__state, .art.is-approved .topic__state { color: var(--ok); }
.topic.is-changes .topic__state, .art.is-changes .topic__state { color: #c47f0c; }
.topic.is-cancelled .topic__state, .art.is-cancelled .topic__state { color: var(--bad); }
:root[data-theme="dark"] .topic.is-changes .topic__state, :root[data-theme="dark"] .art.is-changes .topic__state { color: #e8b04f; }
.topic.is-cancelled .topic__headline { text-decoration: line-through; opacity: 0.6; }
.topic__side { display: grid; justify-items: end; gap: 8px; }
.topic__more { display: flex; align-items: center; gap: 6px; opacity: 0.55; transition: opacity 0.2s; }
.topic:hover .topic__more, .topic__more:focus-within { opacity: 1; }
.topic > .thread, .topic > .admin-tools { padding: 0 14px 14px 46px; }
.decide { justify-content: flex-end; flex: none; gap: 6px; }
.decide.is-asking { width: min(420px, 100%); }
.chip-btn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 12px; cursor: pointer; }
.chip-btn .icon { width: 14px; height: 14px; }
.chip-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.chip-btn.has-n { color: var(--lilac); border-color: color-mix(in srgb, var(--lilac) 45%, transparent); }
@media (max-width: 760px) {
  .topic__row { grid-template-columns: 18px minmax(0, 1fr); }
  .topic__side { grid-column: 1 / -1; justify-items: stretch; }
  .decide { justify-content: flex-start; }
  .decide .btn { flex: 1; }
  .topic__more { opacity: 1; }
  .topic > .thread, .topic > .admin-tools { padding-left: 14px; }
}

/* arts: a review card per art */
.wk--art { padding: 0; }
.wk--art > summary { padding: 15px 18px; border-radius: var(--r-lg); }
.wk--art[open] > summary { border-bottom: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.wk__arts { gap: 14px; padding: 16px 18px 18px; }
.art { gap: 20px; padding: 14px; border: 0; border-left: 3px solid transparent; background: var(--panel-2); }
.art.is-approved { border-color: transparent; border-left-color: var(--ok); }
.art.is-changes { border-color: transparent; border-left-color: #d08a12; }
.art.is-cancelled { border-left-color: var(--bad); }
@media (min-width: 900px) { .art { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); } }
.art__info { gap: 10px; align-content: start; }
.art__meta { justify-content: space-between; font-size: 12.5px; text-transform: capitalize; }
.art__headline { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.art__caption { -webkit-line-clamp: 4; }
.art__tags { font-size: 12.5px; }
.art__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.art__foot .decide { justify-content: flex-start; }
.art__thread:empty { display: none; }

/* carousel: the image box, so marks land where they were drawn */
.car__slide { padding: 0; }
.car__fit { position: relative; width: 100%; max-height: 100%; }
.car__fit.is-wide { width: 100%; height: auto; }
.car__fit:not(.is-wide) { height: 100%; width: auto; }
.car__fit img { display: block; width: 100%; height: 100%; object-fit: contain; }
.marks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.marks path { fill: none; stroke: #ff3b5c; stroke-width: 3.5px; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.45)); }
.car__draw { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(12, 10, 24, 0.62); color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; backdrop-filter: blur(8px); }
.car__draw .icon { width: 14px; height: 14px; }
.car__draw:hover { background: rgba(12, 10, 24, 0.8); }
.car .car__dots { bottom: 14px; left: auto; right: 12px; justify-content: flex-end; }
.pill--mark { display: inline-flex; align-items: center; gap: 4px; color: #ff3b5c; border-color: transparent; background: color-mix(in srgb, #ff3b5c 12%, transparent); }
.pill--mark .icon { width: 11px; height: 11px; }

/* drawing on a slide */
.draw { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 0; overflow: hidden; }
.draw__stage { display: grid; place-items: center; min-height: 0; padding: 16px; overflow: auto; }
.draw__box { position: relative; max-width: 100%; max-height: calc(100svh - 120px); aspect-ratio: 4 / 5; height: calc(100svh - 120px); }
.draw__box img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; border-radius: 8px; }
.marks--draw { pointer-events: auto; cursor: crosshair; touch-action: none; }
.draw__panel { display: grid; align-content: start; gap: 12px; padding: 18px; background: var(--bg); border-left: 1px solid var(--line); overflow: auto; }
.draw__hint { display: flex; gap: 8px; margin: 0; font-size: 13.5px; color: var(--ink-2); }
.draw__hint .icon { flex: none; width: 16px; height: 16px; color: #ff3b5c; margin-top: 2px; }
@media (max-width: 760px) {
  .draw { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .draw__box { height: auto; width: min(100%, calc((100svh - 330px) * 0.8)); max-height: none; }
  .draw__panel { border-left: 0; border-top: 1px solid var(--line); }
}
/* the drawing box hugs the image (never wider than its column) */
.draw__stage { overflow: hidden; }
.draw__box { display: inline-block; height: auto; width: auto; aspect-ratio: auto !important; max-width: 100%; max-height: none; }
.draw__box img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100svh - 130px); }
@media (max-width: 760px) { .draw__box img { max-height: calc(100svh - 360px); } .draw__box { width: auto; } }
.draw { background: var(--bg); width: 100%; }
@media (max-width: 760px) { .draw { grid-template-columns: minmax(0, 1fr); } }
.draw__stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.draw__box { max-width: 100%; }
.overlay__title { min-width: 0; }
.overlay { grid-template-columns: minmax(0, 1fr); }

/* ---------------------------------------------------------------- round 19 */
/* nothing may push the app sideways on a phone */
html, body { overflow-x: clip; max-width: 100%; }
.shell, .main { min-width: 0; }
/* login: the card in the middle of the screen, the back link at the bottom */
.auth { position: relative; min-height: 100svh; align-content: center; }
.auth__foot { position: absolute; left: 0; right: 0; bottom: max(20px, env(safe-area-inset-bottom)); margin: 0; }
/* waiting for you: red, so it can't be missed */
.home-alert { border-color: color-mix(in srgb, #e5484d 55%, transparent); background: color-mix(in srgb, #e5484d 12%, var(--panel)); }
.home-alert__icon { background: #e5484d; color: #fff; }
.home-alert .btn { background: #e5484d; border-color: #e5484d; color: #fff; }
.home-alert .btn:hover { background: #cf3a40; }
.nav-item .badge, .tab .badge { background: #e5484d; color: #fff; }
/* chart filters on a phone: plain words, only the chosen one in a pill */
@media (max-width: 640px) {
  .chart__tabs { background: none; padding: 0; gap: 2px; flex-wrap: wrap; width: auto; overflow: visible; }
  .chart__tabs .tab { height: 28px; padding: 0 10px; background: none; border-color: transparent; }
  .chart__tabs .tab.is-active { background: var(--brand); color: #f3f3ff; }
}

/* previews open big */
.sthumb.has-img { cursor: zoom-in; }
.sthumb.has-img:hover { box-shadow: 0 0 0 2px var(--accent); }
.overlay__center img { max-width: min(92vw, 1080px); max-height: calc(100svh - 110px); object-fit: contain; border-radius: 10px; }

/* ---------------------------------------------------------------- round 20 */
/* report viewer: a message while the (big) report is drawn, then the frame */
.overlay__center:has(.overlay__frame) { position: relative; padding: 0; display: grid; place-items: center; gap: 12px; align-content: center; }
.overlay__center:has(.overlay__frame) .overlay__frame { position: absolute; inset: 0; z-index: 1; transition: opacity 0.3s; }
.overlay__frame.is-loading { opacity: 0; pointer-events: none; }
.overlay__center.is-done .overlay__note, .overlay__center.is-done .spinner { display: none; }
.overlay__note { margin: 0; color: var(--ink-2); font-size: 14px; }
/* login and loading screen: the site's hero ground, at full strength */
.auth, .boot {
  background-color: #0d0b17;
  background-image:
    radial-gradient(900px 700px at 92% 12%, rgba(84, 80, 196, 0.34), transparent 70%),
    radial-gradient(800px 700px at 4% 88%, rgba(108, 84, 230, 0.22), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 84px 84px, 84px 84px;
  background-attachment: fixed;
}
:root:not([data-theme="dark"]) .auth, :root:not([data-theme="dark"]) .boot {
  background-color: #f4f3fb;
  background-image:
    radial-gradient(900px 700px at 92% 12%, rgba(111, 107, 242, 0.20), transparent 70%),
    radial-gradient(800px 700px at 4% 88%, rgba(120, 100, 235, 0.12), transparent 70%),
    linear-gradient(rgba(49, 48, 123, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 48, 123, 0.06) 1px, transparent 1px);
  background-size: auto, auto, 84px 84px, 84px 84px;
}
/* planning builder: weeks one under the other, topics wide */
.builder__weeks { grid-template-columns: 1fr !important; }
.builder__fields { display: grid; gap: 8px; min-width: 0; }
.builder__head { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 8px; }
@media (max-width: 560px) { .builder__head { grid-template-columns: 1fr; } }
/* content type */
.type-pill { justify-self: start; display: inline-block; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--lilac) 16%, transparent); color: var(--lilac); font-size: 11.5px; font-weight: 650; letter-spacing: 0.02em; }

/* planning topic: caption and slide text, one tap away */
.topic__more-info { margin-top: 4px; font-size: 13px; }
.topic__more-info > summary { cursor: pointer; color: var(--lilac); font-weight: 600; font-size: 12.5px; list-style: none; }
.topic__more-info > summary::-webkit-details-marker { display: none; }
.topic__more-info > summary::after { content: " +"; }
.topic__more-info[open] > summary::after { content: " –"; }
.topic__block { display: grid; gap: 3px; margin-top: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--panel); }
.topic__block p { margin: 0; white-space: pre-wrap; line-height: 1.55; color: var(--ink-2); }

.period-edit { grid-column: 1 / -1; width: 100%; }
.batch__head { align-items: flex-start; }
/* loading screen: the seal big, as the main thing on screen */
.boot .auth__seal { width: clamp(180px, 22vw, 260px); }

/* ---------------------------------------------------------------- round 21: review of the arts */
/* arrows also on touch screens (they used to be hidden without a mouse) */
@media (hover: none) {
  .car .post__arrow, .post__media .post__arrow { display: grid; opacity: 0.92; width: 34px; height: 34px; margin-top: -17px; background: rgba(12, 10, 24, 0.62); }
  .car .post__arrow--l, .post__media .post__arrow--l { left: 6px; }
  .car .post__arrow--r, .post__media .post__arrow--r { right: 6px; }
}
.wk--art { scroll-margin-top: 12px; }
.pill--link { cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 600; }
.pill--link:hover { filter: brightness(1.1); text-decoration: underline; }
.cycle__updated { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); }
.cycle__updated .icon { width: 13px; height: 13px; }
.page-head p .cycle__updated { vertical-align: middle; }

/* a change request lives on its own slide */
.car__slide--zoom { cursor: zoom-in; }
.car__zoom { position: absolute; left: 10px; top: 10px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(12, 10, 24, 0.62); color: #fff; cursor: pointer; backdrop-filter: blur(8px); }
.car__zoom .icon { width: 16px; height: 16px; }
.car__zoom:hover { background: rgba(12, 10, 24, 0.82); }
.car__flag { position: absolute; left: 10px; top: 50px; z-index: 2; padding: 3px 10px; border-radius: 99px; background: #e5484d; color: #fff; font-size: 11.5px; font-weight: 650; }
.car__flag[hidden] { display: none; }
.car__dots button.has-adj::after { content: ""; position: absolute; top: -5px; right: -3px; width: 6px; height: 6px; border-radius: 50%; background: #e5484d; }
.adj { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bad-bg); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); }
.adj__row { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; line-height: 1.5; }
.adj__row .pill { flex: none; }
.decide__slide { font-size: 13px; }

/* caption: editable, with its own conversation */
.cap { display: grid; gap: 8px; }
.cap__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cap__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cap__edit { min-height: 170px; }
.cap__changes { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel-2); }
.cap__changes > summary { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; cursor: pointer; }
.cap__changes > summary .icon { width: 14px; height: 14px; }
.cap__changes .btn { justify-self: start; }
.diff { margin: 0; font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.diff ins { text-decoration: none; background: var(--ok-bg); color: var(--ok); }
.diff del { background: var(--bad-bg); color: var(--bad); }

/* full-screen review */
.view { position: relative; display: grid; min-height: 0; overflow: hidden; }
.view__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.view__track::-webkit-scrollbar { display: none; }
.view__slide { flex: 0 0 100%; min-width: 0; height: 100%; box-sizing: border-box; padding: 10px 56px; display: grid; place-items: center; scroll-snap-align: start; }
.view__slide--empty { gap: 8px; color: #cfcfe0; align-content: center; justify-items: center; }
.view__box { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.view__box img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100svh - 84px); border-radius: var(--r-sm); user-select: none; -webkit-user-drag: none; }
.view__slide video { max-width: 100%; max-height: calc(100svh - 96px); border-radius: var(--r-sm); }
.view__arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 0; border-radius: 50%; background: rgba(12, 10, 24, 0.66); color: #fff; cursor: pointer; backdrop-filter: blur(8px); }
.view__arrow:disabled { opacity: 0.25; cursor: default; }
.view__arrow--l { left: 8px; } .view__arrow--r { right: 8px; }
.view__count { position: absolute; top: 10px; left: 50%; z-index: 2; transform: translateX(-50%); padding: 3px 11px; border-radius: 99px; background: rgba(12, 10, 24, 0.66); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.view__count:empty { display: none; }
@media (max-width: 640px) {
  .view__slide { padding: 8px 6px; }
  .view__arrow { width: 38px; height: 38px; margin-top: -19px; }
  .view__arrow--l { left: 4px; } .view__arrow--r { right: 4px; }
}

/* the small bar: approve / adjust / refuse / caption. Drag it by the dots if it covers something. */
.dock { position: fixed; z-index: 70; left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); display: flex; align-items: stretch; max-width: calc(100vw - 16px); border-radius: var(--r); border: 1px solid var(--line-2); background: color-mix(in srgb, var(--panel) 94%, transparent); color: var(--ink); box-shadow: var(--shadow-lg); backdrop-filter: blur(14px); }
.dock.is-open { width: min(360px, calc(100vw - 16px)); }
.dock__grip { display: grid; place-items: center; flex: none; width: 26px; border-right: 1px solid var(--line); color: var(--ink-3); cursor: grab; touch-action: none; }
.dock.is-dragging .dock__grip { cursor: grabbing; }
.dock__body { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px; }
.dock.is-open .dock__body { flex: 1; padding: 10px; }
.dock__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.dock__btn:hover { background: var(--panel-3); }
.dock__btn--ok { color: var(--ok); }
.dock__btn--warn { color: var(--warn); }
.dock__btn--bad { color: var(--bad); }
.dock__btn.is-on { background: var(--primary-soft); border-color: var(--line-2); }
.dock__body > .pill { flex: none; }
@media (max-width: 640px) {
  .dock__btn { width: 42px; padding: 0; }
  .dock__btn:has(.dock__lbl--always) { width: auto; padding: 0 12px; }
  .dock__lbl:not(.dock__lbl--always) { display: none; }
  .dock__body > .pill { font-size: 12px; }
}
.dock__bubble { display: grid; gap: 8px; width: 100%; }
.dock__bubble-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dock__bubble .textarea { font-size: 16px; }
.dock__panel { position: absolute; left: 0; bottom: calc(100% + 8px); width: min(430px, calc(100vw - 16px)); max-height: min(60svh, 480px); overflow: auto; padding: 14px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel); box-shadow: var(--shadow-lg); }
.dock__panel[hidden] { display: none; }
.dock--below .dock__panel { bottom: auto; top: calc(100% + 8px); }
.dock__panel .textarea { font-size: 16px; }

/* edit / delete what the client sent */
.thread__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.thread__tools .btn { height: 26px; font-size: 12px; }
.thread__edit { display: grid; gap: 8px; margin-top: 6px; }
.thread__filter { margin-left: auto; }
.thread__title { flex-wrap: wrap; }
.topic__state .link-btn { margin-left: 8px; }

/* ---------------------------------------------------------------- round 22: profile, admin overview, inline caption */
.avatar { position: relative; overflow: hidden; }
.avatar[data-shape="square"] { border-radius: 24%; }
.avatar-art .av-bg, .avatar-art .av-m { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-art .av-m { transform-origin: left bottom; object-position: left bottom; }
.avatar--sm { width: 36px; height: 36px; }
.avatar-xl { width: 128px; height: 128px; font-size: 2.375rem; }
a.side__who { color: inherit; text-decoration: none; }
a.side__who:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.side__who-text { min-width: 0; }
.side__who-edit { width: 14px; height: 14px; margin-left: auto; color: var(--ink-3); opacity: 0; transition: opacity 0.15s; }
a.side__who:hover .side__who-edit, a.side__who:focus-visible .side__who-edit { opacity: 1; }

.pf { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; align-items: start; }
.pf__preview { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: sticky; top: 20px; }
.pf__pv-name { margin-top: 8px; font-size: 15px; font-weight: 650; }
.pf__pv-role { font-size: 13px; color: var(--ink-2); }
.pf__form { display: grid; gap: 18px; min-width: 0; max-width: 720px; }
.pf__swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.pf__bg { width: 44px; height: 44px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: var(--r-sm); background: none; cursor: pointer; }
.pf__bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf__bg.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--halo); }
.pf__group { margin: 4px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.pf__chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.pf__char { display: grid; justify-items: center; gap: 4px; padding: 6px; border: 2px solid transparent; border-radius: var(--r-sm); background: none; color: var(--ink-2); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.pf__char:hover { background: var(--panel-2); }
.pf__char.is-on { border-color: var(--accent); background: var(--primary-soft); color: var(--ink); }
.pf__thumb { position: relative; display: block; width: 64px; height: 64px; overflow: hidden; border-radius: 50%; }
.pf__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf__thumb .av-m { transform-origin: left bottom; object-position: left bottom; }
.pf__none { display: inline-flex; margin-top: 8px; padding: 7px 12px; }
.pf__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px; }
.pf__zoom { flex: 1; min-width: 180px; }
.pf__seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--panel-3); width: fit-content; }
.pf__seg button { padding: 6px 14px; border: 0; border-radius: 99px; background: none; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; }
.pf__seg button.is-on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-sm); }
@media (max-width: 720px) { .pf { grid-template-columns: 1fr; } .pf__preview { position: static; } }

/* admin overview */
.ov { display: grid; gap: 22px; }
.ov__kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.ov__kpi { display: grid; gap: 0; align-content: start; }
.ov__kpi.is-bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.ov__kpi.is-bad .stat__num { color: var(--bad); }
.ov__hint { margin-top: 6px; font-size: 12px; color: var(--ink-3); min-height: 1em; }
.ov__cols { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .ov__cols { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); } }
.ov__col { display: grid; gap: 14px; min-width: 0; align-content: start; }
.ov__col > .section-title { margin: 10px 0 0; }
.ov__card { padding: 0; overflow: hidden; }
.ov__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 10px; }
.ov__head .section-title { margin: 0; }
.ov__pad { padding: 0 18px 18px; margin: 0; }
.ov__more { padding: 10px 18px 14px; margin: 0; }
.ov__ok { display: flex; align-items: center; gap: 12px; padding: 6px 18px 20px; color: var(--ok); }
.ov__ok > div { display: grid; gap: 2px; }
.ov__ok span { color: var(--ink-2); font-size: 13px; }
.ov__row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; transition: background 0.15s; }
.ov__row:hover { background: var(--panel-2); }
.ov__row > .icon { flex: none; margin-top: 8px; color: var(--ink-3); }
.ov__main { min-width: 0; flex: 1; }
.ov__meta { font-size: 12.5px; color: var(--ink-2); }
.ov__title { margin: 2px 0; font-size: 14.5px; font-weight: 650; line-height: 1.35; }
.ov__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.ov__tags:empty { display: none; }
.ov__lines { display: grid; gap: 4px; margin-top: 6px; }
.ov__clients { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ov__client { display: grid; gap: 12px; padding: 16px; align-content: start; }
.ov__client-top { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.ov__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ov__next { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.ov__next .icon { flex: none; width: 15px; height: 15px; margin-top: 1px; color: var(--ink-3); }
.ov__links { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.ov__links a { color: var(--lilac); text-decoration: none; }
.ov__links a:hover { text-decoration: underline; }
.ov__post { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.ov__post:hover { background: var(--panel-2); }
.ov__date { display: grid; place-items: center; flex: none; width: 42px; padding: 5px 0; border-radius: var(--r-sm); background: var(--panel-3); line-height: 1.1; }
.ov__date b { font-size: 16px; }
.ov__date span { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); }
.ov__quote { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ov .feed__item { color: inherit; text-decoration: none; }
.ov .feed__item:hover { background: var(--panel-2); }
.dot--resubmitted { background: var(--ink-3); }

/* caption edited where it is written */
.art__caption.is-editable { cursor: text; border-radius: var(--r-sm); transition: background 0.15s; }
.art__caption.is-editable:hover { background: var(--panel-2); box-shadow: 0 0 0 6px var(--panel-2); }
.cap__inline { display: block; width: 100%; box-sizing: border-box; resize: none; overflow: hidden; margin: 0; padding: 0; border: 0; border-radius: var(--r-sm); background: var(--panel-2); box-shadow: 0 0 0 6px var(--panel-2), 0 0 0 7px var(--accent); color: var(--ink); font: inherit; -webkit-line-clamp: unset; }
.cap__inline:focus { outline: none; }

/* filter of the arts by status */
.afilter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 4px; }
.afilter:empty { display: none; }
.afilter__label { font-size: 12.5px; font-weight: 650; color: var(--ink-3); }
.afilter__chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 99px; background: transparent; color: var(--ink-3); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 55%, transparent); }
.afilter__chip .icon { width: 14px; height: 14px; }
.afilter__chip.is-on { border-color: var(--accent); background: var(--primary-soft); color: var(--ink); text-decoration: none; }
.afilter__n { min-width: 18px; padding: 0 6px; border-radius: 99px; background: var(--panel-3); font-size: 11.5px; font-variant-numeric: tabular-nums; text-align: center; line-height: 18px; }
.art[hidden], .wk__nofilter[hidden] { display: none; }

/* what was asked stays visible after the studio resends */
.art__media { display: grid; gap: 10px; min-width: 0; align-content: start; }
.car__note { display: grid; gap: 3px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--warn-bg); color: var(--ink); font-size: 13px; line-height: 1.5; }
.car__note[hidden] { display: none; }
.car__note b { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--warn); }
.car__note .icon { width: 13px; height: 13px; }
.adj--past { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.adj--past > summary { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; cursor: pointer; color: var(--warn); }
.adj--past > summary .icon { width: 14px; height: 14px; }
.adj__when { margin-left: auto; flex: none; }
.view__note { position: absolute; top: 46px; left: 50%; z-index: 2; display: grid; gap: 2px; max-width: min(520px, calc(100% - 32px)); padding: 8px 12px; transform: translateX(-50%); border-radius: var(--r-sm); background: rgba(12, 10, 24, 0.78); color: #fff; font-size: 12.5px; line-height: 1.45; backdrop-filter: blur(8px); }
.view__note b { font-size: 11.5px; color: #ffcf7a; }
.view__note[hidden] { display: none; }

/* planning builder: optional fields switched on per planning */
.field-switches { display: flex; flex-wrap: wrap; gap: 8px; }
.field-switch { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font-size: 13px; cursor: pointer; user-select: none; }
.field-switch input { width: 15px; height: 15px; margin: 0; accent-color: var(--lilac); cursor: pointer; }
.field-switch:hover { color: var(--ink); border-color: var(--ink-3); }
.field-switch:has(input:checked) { color: var(--lilac); border-color: color-mix(in srgb, var(--lilac) 45%, transparent); background: color-mix(in srgb, var(--lilac) 8%, transparent); }
.field-switch:has(input:focus-visible) { outline: 2px solid var(--lilac); outline-offset: 2px; }
