/* Foliovert dashboards. An operating surface: dense, calm, scannable. No external resources. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --blue: #2a40d4;
  --blue-dark: #1d2fb3;
  --navy: #0d1330;
  --navy-2: #182046;
  --lime: #d8ff4f;
  --ink: #111529;
  --text: #3a4055;
  --muted: #5b6278;
  --line: #e1e4ee;
  --line-strong: #c3c8d8;
  --band: #f3f5fa;
  --white: #ffffff;
  --ok-bg: #e2f5e9;
  --ok-fg: #12573a;
  --ok-line: #b5e0c6;
  --wait-bg: #fff2d4;
  --wait-fg: #6f4400;
  --wait-line: #f0d48f;
  --bad-bg: #fde8e8;
  --bad-fg: #9a1b1b;
  --bad-line: #f3baba;
  --off-bg: #eceef4;
  --off-fg: #474d63;
  --info-bg: #e8ecff;
  --info-fg: #1d2fb3;
  --info-line: #c3cdfa;
  --input-line: #858ca3;
  --placeholder: #6b7288;
  --shadow-sm: 0 1px 2px rgb(17 24 64 / 0.06), 0 2px 8px rgb(17 24 64 / 0.05);
  --head: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --r: 10px;
  --r-card: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--band); color: var(--text); font: 15px/1.5 var(--body); }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 10px; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--band); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 12px; z-index: 100; background: var(--white); color: var(--ink); padding: 8px 12px; border-radius: 8px; }

/* Shell ---------------------------------------------------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; background: var(--navy); color: var(--white); }
.brand, .side-brand, .bare-brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--head); font-weight: 750; letter-spacing: -0.015em; text-decoration: none; }
.brand { color: var(--white); font-size: 19px; }
.brand:hover { color: var(--white); }
.mark { display: block; width: 24px; height: 24px; flex: none; }
.bare-brand .mark { width: 28px; height: 28px; }
.area { color: var(--lime); font-size: 13px; font-weight: 600; }
.menu-btn { margin-left: auto; min-height: 44px; padding: 6px 16px; border: 1.5px solid rgba(255, 255, 255, 0.45); border-radius: 10px; background: transparent; color: var(--white); font: 600 14px var(--body); cursor: pointer; }
.menu-btn:focus-visible { outline-color: var(--lime); }

.shell { display: grid; grid-template-columns: minmax(0, 1fr); }
.sidebar { background: var(--navy); color: #c8cde4; display: flex; flex-direction: column; }
.sidebar :focus-visible { outline-color: var(--lime); }
.side-brand { padding: 20px 20px 10px; color: var(--white); font-size: 21px; }
.side-brand span:last-child { margin-left: -1px; font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--lime); }
.nav { list-style: none; margin: 6px 0; padding: 0 10px; }
.nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 8px; color: #c8cde4; text-decoration: none; font-weight: 500; }
.nav a:hover { background: rgba(255, 255, 255, 0.07); color: var(--white); }
.nav a[aria-current="page"] { background: var(--navy-2); color: var(--lime); font-weight: 650; }
.count { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--lime); color: var(--navy); font-size: 12px; font-weight: 700; text-align: center; line-height: 20px; font-variant-numeric: tabular-nums; }
.side-foot { margin-top: auto; padding: 14px 20px 20px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.who { margin: 0 0 10px; font-size: 13px; }
.who-mail { display: block; color: var(--white); overflow-wrap: anywhere; }
.who-role { display: block; color: #9aa1c0; }
.sidebar .btn-side { width: 100%; justify-content: center; background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.3); }
.sidebar .btn-side:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--white); color: var(--white); }

.main { min-width: 0; padding: 20px 16px 64px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.page-title { min-width: 0; }
.page-head h1 { font-size: 26px; font-weight: 750; overflow-wrap: anywhere; }
.lede { margin: 4px 0 0; color: var(--muted); max-width: 70ch; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 4px; padding: 0; font-size: 13px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--muted); }
.crumbs a { display: inline-block; padding: 3px 0; color: var(--muted); }

@media (max-width: 959px) {
  .side-brand { display: none; }
  .js .sidebar { display: none; }
  .js.nav-open .sidebar { display: flex; position: sticky; top: 56px; z-index: 15; max-height: calc(100vh - 56px); overflow-y: auto; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.45); }
}
@media (min-width: 960px) {
  .topbar { display: none; }
  .shell { grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
  .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .main { padding: 28px 36px 72px; max-width: 1320px; }
  .page-head h1 { font-size: 30px; }
}

/* Surfaces ---------------------------------------------------------------------------------------------------------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); padding: 18px; min-width: 0; }
.card-warn { border-color: var(--wait-line); }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.card-head h2 { font-size: 18px; font-weight: 700; }
.card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.stack { display: grid; gap: 16px; }
.cards { gap: 16px; }
.section-title { font-size: 19px; margin: 8px 0 0; }
.sub-head { font-size: 16px; margin: 20px 0 10px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 16px; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); padding: 14px 16px; min-width: 0; }
.tile dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.tile-value { margin: 4px 0 0; font-family: var(--head); font-size: 24px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile-sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.kv { display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr); gap: 8px 16px; margin: 0 0 12px; }
.kv > div { display: contents; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kv dt { font-size: 13px; }
  .kv dd { margin-bottom: 10px; }
}

.empty { background: var(--white); border: 1px dashed var(--line-strong); border-radius: var(--r-card); padding: 26px 20px; text-align: center; }
.error-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 20px; }
.error-box p:last-child { margin-bottom: 0; }
.empty p { color: var(--text); margin: 0 0 12px; }
.empty p:last-child { margin-bottom: 0; }

/* Tables ------------------------------------------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.card .table-wrap { border-radius: 10px; box-shadow: none; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
caption { text-align: left; padding: 10px 12px; color: var(--muted); }
th { background: var(--band); color: var(--muted); font-size: 12.5px; font-weight: 650; text-align: left; padding: 9px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); }
td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink); }
tbody tr:first-child td { border-top: 0; }
tbody tr:hover td { background: #fafbfe; }
tfoot td { background: var(--band); font-weight: 650; border-top: 1px solid var(--line-strong); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td .sub, .sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.neg { color: var(--bad-fg); }
.nowrap { white-space: nowrap; }
.pos { color: var(--ok-fg); }
/* Phones: every row becomes a small card. The first cell leads, money follows, then the rest, each with its label. */
@media (max-width: 559px) {
  table.data, table.data tbody, table.data tfoot, table.data tr, table.data td { display: block; }
  table.data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  table.data tr { display: flex; flex-direction: column; padding: 10px 12px; border-top: 1px solid var(--line); }
  table.data tbody tr:first-child { border-top: 0; }
  table.data td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; border: 0; text-align: right; white-space: normal; }
  table.data td::before { content: attr(data-label); flex: none; max-width: 45%; color: var(--muted); font-size: 12.5px; font-weight: 600; text-align: left; }
  table.data td:not([data-label])::before { content: none; }
  table.data td:not([data-label]) { justify-content: flex-start; }
  table.data td > .cv { min-width: 0; text-align: right; overflow-wrap: anywhere; }
  table.data td.cell-main > .cv, table.data td:not([data-label]) > .cv { text-align: left; }
  table.data td.cell-main { order: -2; display: block; padding-bottom: 4px; text-align: left; font-weight: 600; }
  table.data td.cell-main::before { display: block; margin-bottom: 1px; font-weight: 600; }
  table.data td.cell-money { order: -1; font-weight: 650; }
  table.data tbody tr:hover td { background: none; }
  table.data tfoot tr { background: var(--band); }
  table.data tfoot td { background: none; }
  table.data .decision { min-width: 0; width: 100%; }
}

/* Status pills always carry text; colour only reinforces it. */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 999px; border: 1px solid transparent; font-size: 12.5px; font-weight: 650; line-height: 20px; white-space: nowrap; vertical-align: middle; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.pill-ok { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-line); }
.pill-wait { background: var(--wait-bg); color: var(--wait-fg); border-color: var(--wait-line); }
.pill-bad { background: var(--bad-bg); color: var(--bad-fg); border-color: var(--bad-line); }
.pill-off { background: var(--off-bg); color: var(--off-fg); border-color: var(--line); }
.pill-info { background: var(--info-bg); color: var(--info-fg); border-color: var(--info-line); }

.tabs ul { display: flex; gap: 2px; list-style: none; margin: 0 0 14px; padding: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; color: var(--muted); text-decoration: none; font-weight: 550; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); font-weight: 650; }
.tabs .count { background: var(--off-bg); color: var(--off-fg); }
.pager { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; color: var(--muted); }

/* Notices ------------------------------------------------------------------------------------------------------------ */
.notice { border: 1px solid; border-radius: var(--r); padding: 11px 14px; margin: 0 0 16px; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }
.notice-ok { background: var(--ok-bg); border-color: var(--ok-line); color: #0f4a31; }
.notice-info { background: var(--info-bg); border-color: var(--info-line); color: #1a2a99; }
.notice-warn { background: var(--wait-bg); border-color: var(--wait-line); color: #5c3900; }
.notice-error { background: var(--bad-bg); border-color: var(--bad-line); color: #7f1616; }
.notice a { color: inherit; font-weight: 650; }
.notice li a { display: inline-block; padding: 2px 0; }
.callout { background: var(--band); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 6px 0 16px; }
.callout h3, .callout-title { font-size: 15px; margin: 0 0 6px; }
.prohibited { margin: 0; padding-left: 20px; }
.prohibited li { margin: 2px 0; }

/* Buttons ------------------------------------------------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 15px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--white); color: var(--ink); font: 650 14px/1.2 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: var(--white); box-shadow: 0 6px 16px -8px rgb(42 64 212 / 0.7); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-danger { color: var(--bad-fg); border-color: var(--bad-line); }
.btn-danger:hover { background: var(--bad-bg); border-color: var(--bad-fg); color: var(--bad-fg); }
.btn-quiet { border-color: transparent; background: transparent; color: var(--blue); }
.btn-quiet:hover { border-color: var(--line); color: var(--blue-dark); }
.btn-sm { min-height: 32px; padding: 4px 11px; font-size: 13px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.72; cursor: progress; transform: none; }
@media (max-width: 640px) {
  .btn, .btn-sm { min-height: 44px; }
  .btn-sm { padding: 8px 14px; font-size: 14px; }
}
.inline-form { display: inline-flex; margin: 0; }
.js-only { display: none !important; }
.js .js-only { display: inline-flex !important; }

/* Forms --------------------------------------------------------------------------------------------------------------- */
.form { margin: 0; }
.field { display: grid; gap: 5px; margin: 0 0 14px; min-width: 0; align-content: start; }
.field > label, .label, legend { color: var(--ink); font-weight: 650; font-size: 14px; }
.opt { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.hint { margin: 0; color: var(--muted); font-size: 13px; }
.hint-line { display: block; }
.error { margin: 0; color: #a31616; font-size: 13.5px; font-weight: 650; }
.static { margin: 0; padding: 8px 0; color: var(--ink); font-weight: 600; }
input, select, textarea { font: inherit; color: var(--ink); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, .filters input, .filters select {
  width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid var(--input-line); border-radius: 10px; background: var(--white); font-size: 16px;
}
::placeholder { color: var(--placeholder); opacity: 1; }
.field textarea { resize: vertical; line-height: 1.45; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input[readonly] { background: var(--band); }
.has-error input:not([type="checkbox"]):not([type="radio"]), .has-error select, .has-error textarea { border-color: #b42318; box-shadow: 0 0 0 1px #b42318; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
input[type="file"] { padding: 7px; background: var(--band) !important; }
.affix { display: flex; min-width: 0; }
.affix-text { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--input-line); border-right: 0; border-radius: 10px 0 0 10px; background: var(--band); color: var(--muted); }
.affix input:not([type="checkbox"]) { border-radius: 0 10px 10px 0 !important; }
fieldset { min-width: 0; }
fieldset.section { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 16px 0 4px; }
fieldset.section:first-of-type { border-top: 0; padding-top: 0; }
fieldset.section > legend { font-family: var(--head); font-size: 17px; font-weight: 700; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
fieldset.section > legend + * { clear: both; }
fieldset.choices { border: 0; padding: 0; margin: 0 0 14px; }
fieldset.choices > legend { padding: 0; margin-bottom: 6px; }
fieldset.choices .hint { margin-bottom: 6px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 6px 16px; }
.choice-grid.cols-3, .choice-grid.cols-4, .choice-grid.cols-5 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choice-grid.cols-7 { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
.choice-grid.cols-12 { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
.check { display: flex; align-items: flex-start; gap: 8px; color: var(--ink); font-weight: 450; cursor: pointer; }
.single-check { margin-bottom: 14px; }
.single-check .check { font-weight: 600; }
.grid-2, .grid-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 6px; }
.form-actions .hint { flex-basis: 100%; }
.form-actions + p, .form-actions + .muted { margin-top: 12px; }
.form-actions > a:not(.btn) { display: inline-block; padding: 4px 0; }
table.data td a:not(.btn) { display: inline-block; padding: 3px 0; }
.sticky-actions { background: var(--white); padding: 12px 0 0; border-top: 1px solid var(--line); margin-top: 12px; }
@media (min-width: 720px) and (min-height: 640px) { .sticky-actions { position: sticky; bottom: 0; z-index: 5; padding-bottom: 12px; } }
.inline-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0; }
.inline-fields .field { flex: 1 1 200px; margin: 0; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 16px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
.filters .field { flex: 1 1 150px; margin: 0; }
.filter-actions { display: flex; gap: 8px; }
.decision { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.decision form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; margin: 0; }
.decision .field { flex: 1 1 140px; margin: 0; }
.decision .field > label { font-size: 12.5px; }
.action-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.counter { justify-self: end; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.counter.over { color: #a31616; font-weight: 650; }
.instructions { display: grid; gap: 10px; margin-bottom: 14px; }
.instruction { background: var(--band); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.instruction h3, .instruction-title { font-size: 14px; margin: 0 0 4px; }
.inline-details summary { cursor: pointer; color: var(--blue); font-weight: 600; margin-top: 4px; padding: 3px 0; }
.inline-details ul { margin: 6px 0 0; padding-left: 18px; }

/* Code, copy and steps ------------------------------------------------------------------------------------------------- */
.copy-block { margin: 8px 0 14px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--band); }
.copy-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 12px; border-bottom: 1px solid var(--line); background: var(--white); }
.copy-label { font-size: 13px; font-weight: 650; color: var(--ink); }
.copy-block pre { margin: 0; padding: 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; font: 13px/1.5 var(--mono); color: var(--ink); }
.copy-block code { background: none; border: 0; padding: 0; }
.steps { margin: 0 0 12px; padding-left: 20px; }
.steps > li { margin-bottom: 14px; }
.mono { font-family: var(--mono); font-size: 13px; }
.break { overflow-wrap: anywhere; word-break: break-word; }
.pre { white-space: pre-wrap; }
.muted { color: var(--muted); }
.detail { display: block; max-width: 520px; white-space: pre-wrap; word-break: break-all; font-size: 12px; background: none; border: 0; padding: 0; }
.reasons { color: var(--bad-fg); margin: 6px 0 10px; padding-left: 20px; }
.chain { margin: 6px 0; padding-left: 20px; font-size: 13px; }

/* Charts and creatives -------------------------------------------------------------------------------------------------- */
.chart { margin: 0; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .chart-narrow { display: none; }
@media (max-width: 559px) {
  .chart .chart-wide { display: none; }
  .chart .chart-narrow { display: block; }
}
.chart figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { stroke: var(--line-strong); stroke-width: 1; }
.chart-line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--white); stroke: var(--blue); stroke-width: 2; }
.chart-label { fill: var(--muted); font-family: var(--body); }
.cr { max-width: 340px; }
.cr-img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--band); }
.cr-icon { width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--line); object-fit: cover; flex: none; }
.cr-push { display: flex; gap: 10px; align-items: flex-start; }
.cr-title { margin: 6px 0 2px; color: var(--ink); font-weight: 700; }
.cr-body { margin: 0; color: var(--text); font-size: 14px; }
.cr-meta { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.cr-cta { font-weight: 650; color: var(--blue); }
.creative-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.creative-cell { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }

/* Pages without navigation ----------------------------------------------------------------------------------------------- */
.bare { background: var(--band); }
.bare-main { max-width: 460px; margin: 0 auto; padding: 36px 16px 48px; }
.bare-wide { max-width: 660px; }
.bare-brand { color: var(--ink); font-size: 24px; margin-bottom: 18px; }
.bare-brand:hover { color: var(--ink); }
.bare-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); padding: 24px 20px; }
.bare-card h1 { font-size: 24px; font-weight: 750; margin-bottom: 6px; }
.bare-card .lede { margin-bottom: 18px; }
.bare-card .form-actions { margin-top: 10px; }
.bare .app-foot { margin-top: 18px; border-top: 0; padding-top: 0; }
.bare .app-foot ul { justify-content: center; }
@media (min-width: 560px) { .bare-card { padding: 30px 32px; } }

/* Footer ------------------------------------------------------------------------------------------------------------- */
.app-foot { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.app-foot ul { display: flex; flex-wrap: wrap; gap: 2px 18px; list-style: none; margin: 0; padding: 0; }
.app-foot a { display: inline-block; padding: 4px 0; color: var(--muted); }
.app-foot a:hover { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a, .tabs a { transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.1s ease-out; }
}
@media print {
  .sidebar, .topbar, .page-actions, form, .btn { display: none !important; }
  .shell { display: block; }
  body { background: var(--white); }
}
/* Same type rhythm as foliovert.com: balanced headings, no one-word last lines in body copy. */
h1, h2, h3 { text-wrap: balance; }
p, li, dd, .hint { text-wrap: pretty; }
