/* Foje Studio — estilos da aplicação. Tokens em src/ui/tokens.css (copiados aqui para não haver pedidos extra). */

/* Fonte opcional: coloque SchibstedGrotesk.woff2 em public/fonts/ para a usar; sem ela, usa a fonte do sistema. */
@font-face { font-family: "Schibsted Grotesk"; src: url("/static/fonts/SchibstedGrotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  /* Papel quente e tinta quase preta: editorial, neutro para as imagens das marcas. */
  --ink: #191714; --ink-2: #4d4840; --ink-3: #6b655c;
  --paper: #f3f0ea; --surface: #ffffff; --surface-2: #f8f6f2; --line: #e2ddd4; --line-strong: #b8b1a6;
  --foje: #e05634; --on-foje: #101216; --foje-ink: #b43d1f; --foje-wash: #fbe7df;
  --ok: #24704f; --ok-wash: #e3f0e8; --warn: #8a5a00; --warn-wash: #f9edd3; --muted-wash: #ebe6dd;
  --danger: #b42318; --danger-wash: #fde8e6;
  --del-wash: #f6dcd6; --add-wash: #d9efe4; --focus: #1f5fd1; --phone: #141210;
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-control: 6px; --r-panel: 12px;
  --ease: cubic-bezier(.2,.7,.2,1); --dur: 160ms;
  --shadow: 0 1px 0 rgba(25,23,20,.05), 0 16px 40px -18px rgba(25,23,20,.30);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-reduced-motion: reduce) { :root { --dur: 0ms; } }

[data-status="draft"], [data-status="archived"] { --st-fg: var(--ink-2); --st-bg: var(--muted-wash); --st-dot: var(--line-strong); }
[data-status="internal_review"] { --st-fg: var(--ink); --st-bg: var(--surface); --st-dot: var(--ink); }
[data-status="internal_changes"], [data-status="client_changes"] { --st-fg: var(--warn); --st-bg: var(--warn-wash); --st-dot: #c58a12; }
[data-status="client_review"] { --st-fg: var(--foje-ink); --st-bg: var(--foje-wash); --st-dot: var(--foje); }
[data-status="approved"], [data-status="scheduled"], [data-status="published"], [data-status="published_external"] { --st-fg: var(--ok); --st-bg: var(--ok-wash); --st-dot: var(--ok); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--foje-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: var(--r-control); z-index: 50; }
.skip:focus { left: 8px; }
.i { flex: none; }
.muted, .quiet { color: var(--ink-3); }
.small, small { font-size: .8125rem; }
.n { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
[hidden] { display: none !important; }

/* ── Barra superior ───────────────────────── */
.top { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); }
.top-in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter-r) 0 var(--gutter); min-height: 60px; }
.mark { font-weight: 900; font-size: 1.375rem; letter-spacing: -0.06em; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--ink); }
.mark i { width: 11px; height: 11px; border-radius: 50%; background: var(--foje); display: inline-block; }
.mark.big { font-size: 2.25rem; }
.mark.big i { width: 16px; height: 16px; }
.nav { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; align-self: stretch; }
.nav::-webkit-scrollbar { display: none; }
/* Separador editorial: o item ativo é sublinhado a tinta, sem pastilhas. */
.nav a { text-decoration: none; display: flex; align-items: center; color: var(--ink-2); white-space: nowrap; font-weight: 600; font-size: .9375rem; border-bottom: 2px solid transparent; border-top: 2px solid transparent; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.nav a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.top-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.bell { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink-2); }
.bell:hover { background: var(--surface-2); color: var(--ink); }
.bell .count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: var(--paper); font-size: .6875rem; font-weight: 700; display: grid; place-items: center; }
.bell.has-action .count { background: var(--foje); color: var(--on-foje); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow); min-width: 240px; padding: 8px; display: grid; gap: 2px; z-index: 30; }
.menu-who { display: grid; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: .875rem; }
.menu-who span { color: var(--ink-3); }
.menu-pop a, .menu-pop button { text-align: left; padding: 8px 10px; border-radius: var(--r-control); text-decoration: none; background: none; border: 0; cursor: pointer; width: 100%; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); color: var(--ink); }

.menu-pop a[aria-current="page"] { font-weight: 700; }

@media (max-width: 760px) {
  .top-in { flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
  .nav { order: 3; flex-basis: 100%; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); gap: 20px; min-height: 44px; }
}

/* ── Página ───────────────────────────────── */
main { display: block; }
.page { max-width: 1240px; margin: 0 auto; padding: 36px var(--gutter-r) 120px var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.narrow-page { max-width: 760px; }
.page-head { display: grid; gap: 6px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-title-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; }
.page-title-row h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1; letter-spacing: -0.045em; font-weight: 800; min-width: 0; flex: 1 1 320px; overflow-wrap: anywhere; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.page-actions form { display: contents; }
.page-sub { color: var(--ink-2); }
.post-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: .9375rem; color: var(--ink-2); }

.flash { max-width: 1240px; margin: 16px auto 0; padding: 12px 16px; border-radius: var(--r-panel); font-weight: 500; width: calc(100% - 32px); }
.flash-ok { background: var(--ok-wash); color: var(--ok); }
.flash-error { background: var(--danger-wash); color: var(--danger); }
.notice { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ink-3); border-radius: var(--r-panel); padding: 12px 16px; display: grid; gap: 6px; }
.notice.warn { border-left-color: #c58a12; background: var(--warn-wash); }
.notice.ok { border-left-color: var(--ok); }
.notice ul { margin: 0; padding-left: 20px; }

/* ── Controlos ────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r-control); padding: 8px 14px; font-weight: 600; font-size: .9375rem; cursor: pointer; text-decoration: none; color: var(--ink); line-height: 1.3; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); white-space: nowrap; }
.btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink-3); }
.btn.primary { background: var(--foje); border-color: var(--foje); color: var(--on-foje); }
.btn.primary:hover { background: #e86a4a; border-color: #e86a4a; color: var(--on-foje); }
/* Ação firme mas não a principal da página (ex.: Guardar ao lado de Submeter). */
.btn.ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.ink:hover { background: #2e2a25; border-color: #2e2a25; color: var(--paper); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--muted-wash); }
.btn.danger { color: var(--danger); border-color: #f0b3ad; }
.btn.danger:hover { background: var(--danger-wash); }
.btn.small { padding: 4px 9px; font-size: .8125rem; }
.btn.wide { width: 100%; }
.btn.icon-btn { padding: 6px; }
.btn[disabled] { opacity: .45; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--foje-ink); text-decoration: underline; cursor: pointer; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; border: 1px solid var(--line-strong); color: var(--ink-2); border-radius: 4px; padding: 0 6px; background: none; line-height: 1.6; }
button.chip { cursor: pointer; }
.chip.internal { border-color: var(--ink); color: var(--ink); background: var(--muted-wash); }
.chip.action { background: var(--foje); color: var(--on-foje); border-color: var(--foje); }
.chip.quiet { border-color: var(--line); color: var(--ink-3); }

.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; padding: 2px 9px 2px 7px; border-radius: 999px; background: var(--st-bg); color: var(--st-fg); white-space: nowrap; border: 1px solid transparent; }
.tag[data-status="internal_review"] { border-color: var(--line-strong); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--st-dot); }

.field { display: grid; gap: 5px; min-width: 0; }
.field > span { font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--ink-3); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="date"], input[type="datetime-local"], input:not([type]), select, textarea {
  width: 100%; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r-control); padding: 9px 11px; line-height: 1.4; min-width: 0;
}
input[readonly] { background: var(--surface-2); color: var(--ink-2); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 2px solid color-mix(in srgb, var(--focus) 25%, transparent); outline-offset: 0; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: .9375rem; }
.check input { margin-top: 4px; accent-color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
fieldset[disabled] { opacity: .7; }
.stack { display: grid; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.row > .field { flex: 1 1 180px; }
.row-end { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-form .field { flex: 1 1 200px; }
.form-error { background: var(--danger-wash); color: var(--danger); padding: 10px 12px; border-radius: var(--r-control); font-weight: 500; }
.counter { justify-self: end; font-variant-numeric: tabular-nums; }
.counter.over { color: var(--danger); font-weight: 700; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; }

/* Painéis sem contorno: separam-se do papel pela superfície. O título é um rótulo editorial. */
.block { background: var(--surface); border-radius: var(--r-panel); padding: 22px 24px; display: grid; gap: 16px; min-width: 0; }
.block > h2, .kicker { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-2); display: flex; align-items: baseline; gap: 8px; }
.block > h2 .n { letter-spacing: .02em; }
.block-details { background: var(--surface); border-radius: var(--r-panel); padding: 16px 24px; }
@media (max-width: 520px) { .block { padding: 18px 16px; } .block-details { padding: 14px 16px; } .block .table-wrap { margin: 0 -16px; } }
.block-details > summary { cursor: pointer; font-weight: 600; }
.block-details[open] > summary { margin-bottom: 14px; }
.block-details > form { margin-top: 10px; }
.danger-zone .row { gap: 8px; }
.kv { display: grid; gap: 8px; margin: 0; }
.kv div { display: flex; gap: 12px; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.dialog { border: 0; border-radius: 14px; padding: 24px; width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow); background: var(--surface); color: var(--ink); }
.dialog.wide { width: min(680px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(16,18,22,.45); }
.dialog h2 { font-size: 1.375rem; font-weight: 800; }

.empty-state { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-panel); padding: 40px 24px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.empty-title { font-weight: 700; font-size: 1.125rem; }
.empty-state p:not(.empty-title) { color: var(--ink-2); max-width: 46ch; }

.table-wrap { position: relative; overflow-x: auto; border-radius: var(--r-panel); background: var(--surface); }
.block .table-wrap { border-radius: 0; margin: 0 -24px; }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th { text-align: left; font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; padding: 12px 14px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tbody tr:hover td { background: var(--surface-2); }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.muted td { color: var(--ink-3); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .col-check { width: 40px; }
.table td.actions { display: flex; gap: 4px; justify-content: flex-end; }
/* Lista de planeamento (como uma tabela do Notion) */
.plan-table td { font-size: .875rem; }
.plan-table .col-title { min-width: 180px; font-weight: 600; }
.plan-table .col-text { min-width: 220px; max-width: 360px; }
.plan-table .clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.plan-table .nowrap { white-space: nowrap; }
.plan-table td:first-child .tag, .plan-table td .tag { white-space: nowrap; }
.warn-text { color: var(--warn); font-weight: 600; }

/* ── Autenticação ─────────────────────────── */
body.auth { min-height: 100vh; }
.auth-wrap { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 24px; padding: 40px var(--gutter-r) 40px var(--gutter); }
.auth-card { width: min(420px, 100%); background: var(--surface); border-radius: 14px; padding: 28px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; }
.auth-foot { color: var(--ink-3); font-size: .8125rem; }
.error-page { padding: 60px 0; display: grid; gap: 12px; justify-items: start; max-width: 520px; margin: 0 auto; }
.big-code { font-size: 5rem; font-weight: 900; letter-spacing: -0.06em; line-height: .9; color: var(--line-strong); }

/* ── Hoje ─────────────────────────────────── */
.home-head h1 { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.lede { font-size: 1.25rem; color: var(--ink-2); margin-top: 8px; }
.lede b { color: var(--foje-ink); }
.home-cols { display: grid; gap: 24px; }
@media (min-width: 980px) { .home-cols { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.home-main { display: grid; gap: 28px; }
.home-sec { display: grid; gap: 6px; }
.home-sec h2 { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.025em; display: flex; gap: 8px; align-items: baseline; }
.home-side h2 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-2); padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.hint { color: var(--ink-3); font-size: .9375rem; margin-bottom: 6px; }
.todo { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r-panel); overflow: hidden; }
.all-clear { background: var(--surface); border-radius: var(--r-panel); padding: 32px 28px; display: grid; gap: 8px; justify-items: start; }
.all-clear .empty-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.all-clear p:not(.empty-title) { color: var(--ink-2); max-width: 52ch; }
.all-clear .btn { margin-top: 8px; }
.todo li + li { border-top: 1px solid var(--line); }
.todo a { display: flex; align-items: center; gap: 14px; padding: 10px 14px; text-decoration: none; min-width: 0; }
.todo a:hover { background: var(--surface-2); color: var(--ink); }
.todo-thumb { width: 48px; height: 60px; border-radius: 4px; overflow: hidden; background: var(--muted-wash); flex: none; position: relative; display: grid; place-items: center; color: var(--ink-3); }
.todo-thumb img, .todo-thumb video { width: 100%; height: 100%; object-fit: cover; }
.todo-text { display: grid; min-width: 0; flex: 1; }
.todo-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-text small { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-side { display: grid; gap: 28px; }
.home-side section { display: grid; gap: 10px; }
.upcoming { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.upcoming li { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.upcoming time { grid-column: 1 / -1; font-size: .8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.upcoming a { font-weight: 600; text-decoration: none; }
.upcoming span:not(.tag) { font-size: .8125rem; color: var(--ink-3); grid-column: 1; }
.upcoming .tag { grid-row: 2 / span 2; grid-column: 2; align-self: center; }
.activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .9375rem; }
.activity li { display: grid; gap: 2px; padding-left: 14px; position: relative; }
.activity li.unread::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--foje); }
.activity a { text-decoration: none; color: var(--ink-2); }
.activity a b { color: var(--ink); font-weight: 600; }
.activity time { font-size: .8125rem; color: var(--ink-3); }

/* ── Listas de clientes e projetos ────────── */
.client-list, .project-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line-strong); }
.client-list li, .project-list li { border-bottom: 1px solid var(--line); }
.client-list a { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 24px; padding: 16px 0; text-decoration: none; }
@media (min-width: 760px) { .client-list a { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, .8fr); align-items: baseline; } }
.client-name { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.03em; }
.client-name small { font-weight: 500; color: var(--ink-3); font-size: .875rem; }
.client-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-2); font-size: .9375rem; }
.client-stats [data-status] { color: var(--st-fg); font-weight: 600; }
.client-next { color: var(--ink-3); font-size: .875rem; }
.archived { opacity: .6; }
.project-list a { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 14px 0; text-decoration: none; }
.project-list b { font-size: 1.125rem; }
.project-list .kind { font-size: .8125rem; color: var(--ink-3); }
.project-list .stats { flex-basis: 100%; color: var(--ink-2); font-size: .9375rem; }
.project-list .stats [data-status] { color: var(--st-fg); font-weight: 600; }
.add-person { display: grid; gap: 10px; }
.add-person summary { justify-self: start; list-style: none; }
.add-person summary::-webkit-details-marker { display: none; }
.add-person[open] summary { margin-bottom: 10px; }
.assign-list { list-style: none; margin: 0; padding: 0; display: grid; }
.assign-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.assign-list small { color: var(--ink-3); margin-left: 6px; }

/* ── Barra de ferramentas e vistas ────────── */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.seg { display: inline-flex; background: var(--muted-wash); border-radius: 8px; padding: 3px; gap: 2px; }
.seg a { text-decoration: none; padding: 5px 12px; border-radius: 6px; font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
.seg a[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 360px; justify-content: flex-end; }
.filters input[type="search"] { flex: 1 1 200px; max-width: 280px; }
.filters select { width: auto; flex: 0 1 auto; }
.seg-field { display: flex; gap: 16px; }
.seg-field legend { font-size: .875rem; color: var(--ink-2); font-weight: 600; }
.seg-field label { display: flex; gap: 6px; align-items: center; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
@media (max-width: 480px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.card { position: relative; background: var(--surface); border-radius: var(--r-panel); overflow: hidden; transition: box-shadow var(--dur) var(--ease); }
.card:hover { box-shadow: var(--shadow); }
.card-link { display: grid; text-decoration: none; }
.card-link:hover h3 { text-decoration: underline; }
.card-thumb { aspect-ratio: 4 / 5; background: var(--muted-wash); overflow: hidden; position: relative; display: grid; place-items: center; color: var(--ink-3); }
.card-thumb img, .card-thumb video { width: 100%; height: 100%; object-fit: cover; }
.card-count { position: absolute; top: 8px; right: 8px; background: rgba(16,18,22,.7); color: #fff; font-size: .75rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.card-body { padding: 10px 12px 12px; display: grid; gap: 4px; }
.card-body h3 { font-size: 1rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.card-meta { font-size: .8125rem; color: var(--ink-3); }
.card-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; margin-top: 4px; }
.card-select { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--surface); border-radius: 4px; width: 26px; height: 26px; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.card-select input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.card:has(input[data-select]:checked) { outline: 2px solid var(--ink); }

/* 6 colunas cabem em 1240 px; em ecrãs estreitos o quadro desloca-se na horizontal, dentro de si. */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(184px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.board-col { background: var(--muted-wash); border-radius: var(--r-panel); padding: 10px; display: grid; align-content: start; gap: 8px; min-width: 0; border-top: 3px solid var(--st-dot); }
.board-col h2 { font-size: .8125rem; font-weight: 700; display: flex; justify-content: space-between; gap: 6px; padding: 2px 4px; }
.board-items { display: grid; gap: 8px; }
.board-empty { font-size: .875rem; color: var(--ink-3); padding: 4px; }
.mini { background: var(--surface); border-radius: 8px; position: relative; }
.mini a { display: flex; gap: 10px; padding: 8px; text-decoration: none; align-items: center; min-width: 0; }
.mini-thumb { width: 44px; height: 55px; border-radius: 4px; overflow: hidden; background: var(--muted-wash); flex: none; display: grid; place-items: center; color: var(--ink-3); position: relative; }
.mini-thumb img, .mini-thumb video { width: 100%; height: 100%; object-fit: cover; }
.mini-thumb .play svg { width: 14px; }
.mini span:not(.play) { display: grid; min-width: 0; font-size: .875rem; }
.mini b { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; overflow-wrap: anywhere; }
.mini small { color: var(--ink-3); }
.mini .card-select { top: auto; bottom: 6px; left: auto; right: 6px; width: 22px; height: 22px; box-shadow: none; }
.mini:has(.card-select) a { padding-right: 32px; }

.cal { display: grid; gap: 12px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cal-head h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; text-transform: capitalize; }
.cal-nav { display: flex; gap: 4px; }
.cal-grid { background: var(--surface); border-radius: var(--r-panel); overflow: hidden; }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-row + .cal-row { border-top: 1px solid var(--line); }
.cal-wd div { padding: 8px 10px; font-size: .8125rem; color: var(--ink-3); font-weight: 600; text-transform: lowercase; }
.cal-day { min-height: 112px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day + .cal-day { border-left: 1px solid var(--line); }
.cal-day.out { background: var(--surface-2); }
.cal-day.out .cal-n { color: var(--line-strong); }
.cal-n { font-size: .8125rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.today .cal-n { background: var(--ink); color: var(--paper); }
.cal-item { display: flex; gap: 5px; align-items: baseline; font-size: .8125rem; text-decoration: none; padding: 2px 6px; border-radius: 4px; background: var(--st-bg); color: var(--ink); border-left: 3px solid var(--st-dot); min-width: 0; }
.cal-item time { color: var(--ink-3); font-variant-numeric: tabular-nums; flex: none; font-size: .75rem; }
.cal-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-item:hover { filter: brightness(.97); color: var(--ink); }
@media (max-width: 720px) {
  .cal-wd { display: none !important; }
  .cal-row { grid-template-columns: 1fr; }
  .cal-day { min-height: 0; border-left: 0 !important; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .cal-day:not(.has) { display: none; }
  .cal-row:not(:has(.cal-day.has)) { display: none; }
  .cal-day .cal-n { width: auto; padding: 0 6px; border-radius: 4px; }
  .cal-item { flex: 1 1 100%; }
  .cal-day.out { display: none; }
}
.undated summary { cursor: pointer; color: var(--ink-2); }
.undated ul { list-style: none; padding: 8px 0 0; margin: 0; display: grid; gap: 6px; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 0; font-size: .8125rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--st-dot); }

.select-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--paper); border-radius: 12px; padding: 8px 8px 8px 16px; display: flex; gap: 8px; align-items: center; box-shadow: var(--shadow); z-index: 25; max-width: calc(100vw - 32px); }
.select-bar .btn.ghost { color: var(--paper); }
.select-bar .btn.ghost:hover { background: rgba(255,255,255,.12); }
.select-bar span { font-weight: 600; white-space: nowrap; }

/* ── Publicação ───────────────────────────── */
.post-layout { display: grid; gap: 24px; }
@media (min-width: 980px) {
  .post-layout { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: start; }
  .post-preview { position: sticky; top: 84px; }
}
.post-preview { display: grid; gap: 14px; justify-items: center; min-width: 0; }
.post-main { display: grid; gap: 20px; min-width: 0; }
.versions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.versions-label { font-size: .8125rem; color: var(--ink-3); }
.versions ol { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.versions a { display: inline-flex; align-items: center; gap: 3px; font-size: .8125rem; font-weight: 600; padding: 3px 9px; border: 1px solid var(--line); border-radius: var(--r-control); text-decoration: none; color: var(--ink-2); font-variant-numeric: tabular-nums; background: var(--surface); }
.versions a[aria-current="true"] { border-color: var(--ink); color: var(--ink); }
.versions a .i { width: 14px; height: 14px; color: var(--ok); }
.review-box, .attention { box-shadow: inset 0 0 0 2px var(--ink); }
/* Revisão do cliente: a legenda completa (o preview corta-a em Reels e Stories). */
.caption-full { white-space: pre-line; overflow-wrap: anywhere; font-size: 1.0625rem; line-height: 1.55; }
.caption-tags { display: block; margin-top: 10px; color: var(--ink-2); font-weight: 600; }
.ok-text { color: var(--ok); font-weight: 600; }

.pv { margin: 0; display: grid; gap: 8px; justify-items: center; width: 100%; }
.pv figcaption { font-size: .75rem; color: var(--ink-3); text-align: center; }
.pv-phone { width: 100%; max-width: 380px; background: var(--phone); border-radius: 30px; padding: 10px; box-shadow: 0 30px 60px -30px rgba(16,18,22,.55); }
.pv-screen { background: #fff; color: #111; border-radius: 22px; overflow: hidden; position: relative; }
.pv-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: .8125rem; font-weight: 600; }
.pv-head .i { margin-left: auto; }
.pv-name { display: grid; line-height: 1.2; }
.pv-name small { font-weight: 400; color: #666; font-size: .6875rem; }
.pv-av { width: 30px; height: 30px; border-radius: 50%; background: #1a1d24; color: #fff; display: grid; place-items: center; font-size: .6875rem; font-weight: 800; flex: none; }
.pv-media { position: relative; background: #e8e8e8; overflow: hidden; max-width: 100%; }
.pv-track { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
.pv-slides { display: flex; height: 100%; transition: transform calc(var(--dur) * 2) var(--ease); }
.pv-slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; background: #f2f2f2; }
.pv-slide img, .pv-slide video { width: 100%; height: 100%; object-fit: cover; }
.pv-vertical .pv-slide video { object-fit: contain; background: #000; }
.pv-slide[data-comment-slide] { cursor: crosshair; }
.pv-counter { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.62); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; z-index: 2; }
.pv-nav { position: absolute; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #111; display: grid; place-items: center; cursor: pointer; z-index: 2; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.pv-nav .i { width: 18px; height: 18px; }
.pv-nav[disabled] { opacity: 0; pointer-events: none; }
.pv-nav.prev { left: 8px; } .pv-nav.next { right: 8px; }
.pv-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: #888; font-size: .875rem; }
.pv-actions { display: flex; align-items: center; gap: 12px; padding: 10px 12px 2px; position: relative; }
.pv-actions .i { width: 22px; height: 22px; }
.pv-spacer { flex: 1; }
.pv-dots { display: flex; gap: 4px; position: absolute; left: 50%; transform: translateX(-50%); }
.pv-dots i { width: 6px; height: 6px; border-radius: 50%; background: #c8c8c8; }
.pv-dots i.on { background: #0095f6; }
.pv-caption { padding: 6px 12px 14px; font-size: .8125rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.pv-tags { color: #00376b; }
.pv-muted { color: #999; }
.pv-vertical .pv-screen { background: #000; }
.pv-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 18px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; pointer-events: none; }
.pv-overlay .pv-caption { color: #fff; padding: 4px 0 0; max-height: 7.5em; overflow: hidden; }
.pv-overlay .pv-tags { color: #fff; font-weight: 600; }
.pv-account { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .875rem; }
.pv-account .pv-av { background: #fff; color: #111; }
.pv-vertical .pv-dots { top: 10px; bottom: auto; }

.editor fieldset { gap: 14px; }
.media-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.media-list li { display: flex; align-items: center; gap: 10px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); min-width: 0; flex-wrap: wrap; }
.media-list li.dragging { opacity: .5; }
.media-list li.over { border-color: var(--ink); }
.grip { color: var(--ink-3); cursor: grab; display: grid; }
.pos { font-weight: 800; font-variant-numeric: tabular-nums; width: 24px; text-align: center; }
.media-thumb { width: 52px; height: 65px; object-fit: cover; border-radius: 4px; background: var(--muted-wash); }
.media-name { display: grid; flex: 1 1 160px; min-width: 0; font-size: .875rem; }
.media-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.media-name small { color: var(--ink-3); }
.media-actions { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.media-actions form { display: contents; }
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--r-panel); padding: 18px; text-align: center; display: grid; gap: 4px; justify-items: center; transition: background var(--dur) var(--ease); }
.dropzone.small { padding: 10px; }
.dropzone.over { background: var(--foje-wash); border-color: var(--foje); }
.dropzone p { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; }
.upload-progress { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; width: 100%; text-align: left; }
.upload-progress li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: .8125rem; }
.upload-progress li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-progress progress { grid-column: 1 / -1; width: 100%; height: 6px; accent-color: var(--ink); }
.upload-progress li.error { color: var(--danger); }
.refs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.refs li { display: flex; gap: 8px; align-items: center; }

.diff { background: var(--surface-2); border-radius: 8px; padding: 14px 16px; display: grid; gap: 8px; white-space: pre-line; }
del { background: var(--del-wash); text-decoration: line-through; text-decoration-thickness: 1px; color: var(--ink-2); padding: 0 2px; border-radius: 2px; }
ins { background: var(--add-wash); text-decoration: none; padding: 0 2px; border-radius: 2px; }
.changes { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .9375rem; color: var(--ink-2); }
.changes li { display: flex; gap: 10px; }
.changes li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: .6em; border-radius: 50%; background: var(--line-strong); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.timeline > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
.tl-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: var(--line); color: var(--ink); }
.tl-av.staff { background: var(--ink); color: var(--paper); }
.tl-head { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .875rem; align-items: baseline; }
.tl-head time { color: var(--ink-3); margin-left: auto; font-size: .8125rem; }
.tl-body { white-space: pre-line; overflow-wrap: anywhere; margin-top: 2px; }
.tl-meta { font-size: .75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl-comment.internal .tl-body { background: var(--muted-wash); border-radius: 0 8px 8px 8px; padding: 8px 10px; }
.tl-decision.approved .tl-av { background: var(--ok); color: #fff; }
.tl-decision.changes_requested .tl-av { background: #c58a12; color: #fff; }
.tl-event { grid-template-columns: 32px minmax(0, 1fr) auto !important; align-items: center; color: var(--ink-3); font-size: .875rem; }
.tl-event .i { justify-self: center; }
.tl-event time { font-size: .8125rem; }
.comment-form { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.comment-opts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: flex-end; }
.comment-opts .inline { display: flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--ink-2); }
.comment-opts select { width: auto; padding: 5px 8px; }

/* Revisão do cliente */
.review-head { display: grid; gap: 10px; }
.state { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--st-bg); color: var(--st-fg); }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--st-dot); }
.review-head h1 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; overflow-wrap: anywhere; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font-size: .9375rem; color: var(--ink-2); }
.facts div { display: flex; gap: 6px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.vnum { font-variant-numeric: tabular-nums; color: var(--ink); }
.vmeta { color: var(--ink-2); font-size: .9375rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.decide { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); z-index: 15; box-shadow: 0 -8px 24px -16px rgba(16,18,22,.3); }
.decide-in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 12px var(--gutter-r) 12px var(--gutter); flex-wrap: wrap; }
.decide-in form { display: contents; }
.decide-text { font-size: .9375rem; color: var(--ink-2); flex: 1 1 260px; min-width: 0; }
.decide-text b { color: var(--ink); }
@media (max-width: 520px) { .decide-in .btn { flex: 1 1 0; } .decide-in { padding-top: 10px; padding-bottom: 10px; gap: 8px; } .decide-text { font-size: .875rem; } }
/* A barra fixa não tapa o fim da página (comentários). */
.page:has(.decide) { padding-bottom: 200px; }

/* ── Pessoas, atividade, exportações ──────── */
.roles { display: grid; gap: 6px; }
.role-opt { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; align-items: flex-start; }
.role-opt:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }
.role-opt input { margin-top: 4px; accent-color: var(--ink); }
.role-opt span { display: grid; }
.role-opt small { color: var(--ink-3); }
.audit { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r-panel); }
.audit li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .9375rem; align-items: baseline; }
.audit li:last-child { border-bottom: 0; }
.audit time { color: var(--ink-3); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.audit small { color: var(--ink-3); }
@media (max-width: 560px) { .audit li { grid-template-columns: 1fr; } }
.notif-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r-panel); }
.notif-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: baseline; }
.notif-list li:last-child { border-bottom: 0; }
.notif-list li.unread { background: var(--surface-2); }
.notif-list a { text-decoration: none; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.notif-list a b { color: var(--ink); }
.notif-list time { font-size: .8125rem; color: var(--ink-3); white-space: nowrap; }
.opts { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tree { background: var(--ink); color: #e9ebef; border-radius: 8px; padding: 14px 16px; font-size: .8125rem; line-height: 1.6; overflow-x: auto; max-height: 420px; margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.warn-list { margin: 0; padding-left: 18px; color: var(--warn); font-size: .9375rem; }
.exports { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r-panel); }
.exports li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.exports li:last-child { border-bottom: 0; }
.exports small { color: var(--ink-3); display: block; }
.sessions li { font-size: .9375rem; }
.block-details form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 12px; }

.confirm-dialog p { margin-bottom: 12px; }

/* ── Sugestões de legenda e pedidos do cliente ── */
.sg-list, .req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sg, .req { display: grid; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sg:last-child, .req:last-child { border-bottom: 0; padding-bottom: 0; }
.sg-head { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: .875rem; }
.sg-head time { margin-left: auto; color: var(--ink-3); font-size: .8125rem; }
.sg-state { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.sg[data-state="open"] .sg-state, .req[data-state="open"] .sg-state { color: var(--foje-ink); }
.sg[data-state="accepted"] .sg-state, .req[data-state="done"] .sg-state { color: var(--ok); }
.sg[data-state="rejected"] { opacity: .75; }
.sg-diff p { white-space: pre-line; overflow-wrap: anywhere; }
.sg-quote { margin: 0; padding: 6px 12px; border-left: 3px solid var(--line-strong); color: var(--ink-2); white-space: pre-line; }
.sg-note { white-space: pre-line; overflow-wrap: anywhere; }
.sg-reply { background: var(--surface-2); border-radius: 8px; padding: 8px 12px; font-size: .9375rem; white-space: pre-line; }
.sg-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sg-actions input { flex: 1 1 220px; }
.sg-new > summary { list-style: none; justify-self: start; }
.sg-new > summary::-webkit-details-marker { display: none; }
.sg-new[open] > summary { margin-bottom: 12px; }
.req-body { margin: 0; display: grid; gap: 8px; }
.req-body dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.req-body dd { margin: 2px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.req-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.req-actions .inline-form { flex: 0 1 260px; }
.caption-full::selection, .pv-caption::selection { background: var(--foje-wash); }

/* ── Conversas ───────────────────────────── */
.threads { display: grid; gap: 14px; }
.thread { background: var(--surface); border-radius: var(--r-panel); padding: 18px 22px; display: grid; gap: 10px; }
.thread.unread { box-shadow: inset 3px 0 0 var(--foje); }
.thread-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.thread-title { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.thread-title:hover { text-decoration: underline; }
.next-step { font-size: .9375rem; color: var(--ink-2); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.next-step b { color: var(--ink); }
.msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.msg { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .9375rem; }
.msg time { color: var(--ink-3); font-size: .8125rem; white-space: nowrap; }
.msg.human .tl-av { width: 28px; height: 28px; font-size: .6875rem; }
.msg.human p { background: var(--surface-2); border-radius: 0 10px 10px 10px; padding: 8px 12px; overflow-wrap: anywhere; }
.msg.human q { font-style: normal; color: var(--ink); }
.msg.sys { color: var(--ink-3); font-size: .875rem; }
.msg.sys .i { justify-self: center; width: 16px; height: 16px; margin-top: 2px; }
.msg.new p { font-weight: 500; color: var(--ink); }
.msg.more { display: block; font-size: .8125rem; }

/* ── Área de trabalho do cliente ───────────── */
.tabs { justify-self: start; }
.tabs a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.plan-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.plan-col { display: grid; gap: 10px; align-content: start; }
.plan-col h2 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-2); padding-bottom: 8px; border-bottom: 1px solid var(--ink); display: flex; gap: 8px; }
.plan-col .hint { margin: 0; font-size: .875rem; }
.plan-card { background: var(--surface); border-radius: var(--r-panel); padding: 14px 16px; display: grid; gap: 8px; }
.plan-card h3 { font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.plan-card[data-status="discarded"] { opacity: .6; }
.plan-card[data-status="converted"] h3::after { content: " ✓"; color: var(--ok); }
.plan-body { white-space: pre-line; color: var(--ink-2); font-size: .9375rem; overflow-wrap: anywhere; }
.plan-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .8125rem; }
.plan-refs { margin: 0; padding-left: 18px; font-size: .875rem; }
.plan-add > summary, .plan-more > summary { cursor: pointer; font-weight: 600; font-size: .875rem; color: var(--ink-2); display: inline-flex; gap: 4px; align-items: center; }
.plan-add[open] > summary, .plan-more[open] > summary { margin-bottom: 10px; }
.plan-add { background: var(--surface); border-radius: var(--r-panel); padding: 10px 14px; }
.plan-more { display: grid; gap: 8px; }
.plan-more form { margin: 0; }
.ref-add .ref-url { flex: 2 1 320px; }
.ref-grid, .mat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ref-card, .mat-card { background: var(--surface); border-radius: var(--r-panel); overflow: hidden; display: grid; align-content: start; }
.ref-thumb, .mat-thumb { aspect-ratio: 4 / 5; background: var(--muted-wash); display: grid; place-items: center; overflow: hidden; position: relative; text-decoration: none; }
.ref-thumb img, .mat-thumb img, .mat-thumb video { width: 100%; height: 100%; object-fit: cover; }
.ref-src, .mat-ext { font-weight: 900; font-size: 1.5rem; letter-spacing: -0.04em; color: var(--ink-3); }
.ref-body, .mat-body { padding: 12px 14px 14px; display: grid; gap: 6px; min-width: 0; }
.ref-body h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.ref-body h3 a { text-decoration: none; }
.ref-note, .mat-note { font-size: .9375rem; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.mat-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-av.mini { width: 18px; height: 18px; font-size: .5625rem; display: inline-grid; vertical-align: -4px; }
@media (max-width: 520px) {
  .ref-grid, .mat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ref-body, .mat-body { padding: 10px; }
  .ref-src, .mat-ext { font-size: 1.125rem; }
}

/* ── Pronto a publicar ───────────────────── */
.publish-kit { gap: 12px; }
.publish-go { font-size: 1.125rem; padding: 14px 18px; width: 100%; }
.publish-go[disabled] { opacity: .7; }
.publish-kit progress { width: 100%; height: 6px; accent-color: var(--ink); }
.publish-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.publish-steps .ok { color: var(--ok); font-weight: 600; }
.publish-steps .warn { color: var(--warn); font-weight: 600; }
.publish-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.publish-files li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.publish-page textarea[readonly] { background: var(--surface-2); color: var(--ink); white-space: pre-wrap; }

/* ── Resultados do Instagram e relatórios ─── */
.ig-account { display: grid; gap: 8px; }
.ig-account .row { gap: 8px; align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0; }
.kpi { background: var(--surface); border-radius: var(--r-panel); padding: 14px 16px; display: grid; gap: 2px; }
.kpi dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.kpi dd { margin: 0; font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi.missing dd { color: var(--ink-3); }
.kpi-note { font-size: .8125rem; color: var(--ink-3); }
.kpi-note .up { color: var(--ok); font-weight: 700; }
.kpi-note .down { color: var(--danger); font-weight: 700; }
.results-cols { display: grid; gap: 14px; }
@media (min-width: 980px) { .results-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.chart { margin: 0; display: grid; gap: 6px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .axis { stroke: var(--line-strong); stroke-width: 1; }
.chart .bar path { fill: var(--line-strong); }
.chart .bar.current path { fill: var(--ink); }
.chart .bar:hover path { fill: var(--ink-2); }
.chart .val { font-size: 12px; font-weight: 700; fill: var(--ink); font-variant-numeric: tabular-nums; }
.chart .lbl { font-size: 11px; fill: var(--ink-3); }
.chart figcaption { font-size: .8125rem; color: var(--ink-3); }
.chart-table summary { cursor: pointer; font-size: .8125rem; color: var(--ink-2); }
.top-media { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.top-media li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; }
.top-thumb { width: 72px; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--muted-wash); display: grid; place-items: center; font-weight: 900; color: var(--ink-3); text-decoration: none; }
.top-thumb img { width: 100%; height: 100%; object-fit: cover; }
.top-cap { font-weight: 600; overflow-wrap: anywhere; }
.top-metrics { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 0; font-size: .8125rem; }
.top-metrics div { display: flex; gap: 4px; }
.top-metrics dt { color: var(--ink-3); }
.top-metrics dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.report-list li { display: flex; gap: 10px; align-items: center; }
.setup-steps { display: grid; gap: 8px; padding-left: 20px; margin: 0; }
.setup-steps code, .block code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: .875em; overflow-wrap: anywhere; }
.report-head { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.report-head h1 { font-size: clamp(2.5rem, 7vw, 4rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.report-sec { display: grid; gap: 10px; }
.report-sec p { line-height: 1.6; white-space: pre-line; }
.report-foot { border-top: 1px solid var(--line); padding-top: 10px; }
@media print {
  @page { margin: 16mm; }
  body { background: #fff; }
  .top, .flash, .no-print, .chart-table, .skip { display: none !important; }
  .page { padding: 0; max-width: none; gap: 18px; }
  .kpi, .block, .table-wrap { background: #fff; border: 1px solid var(--line); }
  .report-sec, .kpis, .top-media li { break-inside: avoid; }
  a { text-decoration: none; }
}

/* ── Plano de comunicação mensal (0011) ─────────────────────── */
[data-plan-status="preparing"], [data-plan-status="done"] { --st-fg: var(--ink-2); --st-bg: var(--muted-wash); --st-dot: var(--line-strong); }
[data-plan-status="internal_review"] { --st-fg: var(--ink); --st-bg: var(--surface); --st-dot: var(--ink); }
[data-plan-status="internal_changes"], [data-plan-status="client_changes"] { --st-fg: var(--warn); --st-bg: var(--warn-wash); --st-dot: #c58a12; }
[data-plan-status="sent"] { --st-fg: var(--foje-ink); --st-bg: var(--foje-wash); --st-dot: var(--foje); }
[data-plan-status="approved"], [data-plan-status="in_production"] { --st-fg: var(--ok); --st-bg: var(--ok-wash); --st-dot: var(--ok); }
.tag[data-plan-status="internal_review"] { border-color: var(--line-strong); }
.pre { white-space: pre-line; overflow-wrap: anywhere; }
.kicker { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-2); }
.section-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-2); padding-bottom: 8px; border-bottom: 1px solid var(--ink); display: flex; gap: 8px; }

.plan-bar { gap: 14px; }
.plan-bar-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.plan-bar-head .row { align-items: center; gap: 8px; }
.plan-bar-head form { margin: 0; }
.plan-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; counter-reset: s; }
.plan-steps li { font-size: .75rem; line-height: 1.3; color: var(--ink-3); border-top: 3px solid var(--line); padding-top: 6px; display: grid; gap: 2px; }
.plan-steps li span { font-weight: 800; font-variant-numeric: tabular-nums; }
.plan-steps li[data-state="done"] { border-top-color: var(--ink); color: var(--ink-2); }
.plan-steps li[data-state="current"] { border-top-color: var(--foje); color: var(--ink); font-weight: 600; }
@media (max-width: 720px) { .plan-steps { grid-template-columns: 1fr; } .plan-steps li { border-top: 0; border-left: 3px solid var(--line); padding: 2px 0 2px 8px; display: flex; gap: 6px; }
  .plan-steps li[data-state="done"] { border-left-color: var(--ink); } .plan-steps li[data-state="current"] { border-left-color: var(--foje); } }
.plan-next { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; border-left: 4px solid var(--foje); }
.plan-next-text { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }
.plan-blockers { margin: 4px 0 0; padding-left: 18px; color: var(--warn); font-size: .875rem; }

.plan-layout { display: grid; gap: 20px; }
.plan-main { display: grid; gap: 20px; min-width: 0; }
@media (min-width: 1100px) { .plan-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .plan-aside { position: sticky; top: 16px; } }
.plan-concept { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.plan-weeks { display: grid; gap: 14px; }
.week { display: grid; gap: 8px; }
.week > h3 { font-size: .9375rem; font-weight: 800; }
.week-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: start; }
.prop-card { border-top: 3px solid var(--line); }
.prop-card[data-tone="approved"], .prop-card[data-tone="done"] { border-top-color: var(--ok); }
.prop-card[data-tone="changes_requested"] { border-top-color: #c58a12; background: linear-gradient(var(--warn-wash), var(--surface) 90px); }
.prop-card[data-tone="rejected"], .prop-card[data-tone="muted"] { opacity: .75; }
.prop-card[data-tone="pending"] { border-top-color: var(--foje); }
.prop-head { display: grid; gap: 6px; }
.prop-state[data-tone="approved"], .prop-state[data-tone="done"] { border-color: var(--ok); color: var(--ok); background: var(--ok-wash); }
.prop-state[data-tone="changes_requested"] { border-color: #c58a12; color: var(--warn); background: var(--warn-wash); }
.prop-state[data-tone="rejected"] { border-color: var(--danger); color: var(--danger); background: var(--danger-wash); }
.prop-state[data-tone="pending"] { border-color: var(--foje); color: var(--foje-ink); background: var(--foje-wash); }
.prop-facts { margin: 0; display: grid; gap: 6px; font-size: .875rem; }
.prop-facts > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; }
.prop-facts dt { color: var(--ink-3); font-weight: 600; }
.prop-facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .prop-facts > div { grid-template-columns: 1fr; gap: 0; } }
.prop-note { font-size: .875rem; background: var(--muted-wash); border-radius: 8px; padding: 6px 10px; }
.prop-request { font-size: .875rem; border-left: 3px solid #c58a12; padding: 2px 0 2px 10px; white-space: pre-line; }
.prop-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.prop-actions > form { margin: 0; }
.prop-actions .plan-more { flex: 1 1 100%; }
.rubric-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rubric-list > li { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tl-request .tl-body { background: var(--warn-wash); border-radius: 0 8px 8px 8px; padding: 8px 10px; }
.tl-sys { grid-template-columns: 32px minmax(0, 1fr) !important; color: var(--ink-3); font-size: .875rem; align-items: center; }
.tl-sys > span { justify-self: center; }
.origin-block .prop-facts > div { grid-template-columns: 90px minmax(0, 1fr); }

/* Apresentação ao cliente: editorial, não um documento. */
.pres { display: grid; gap: 40px; max-width: 1080px; }
.pres-hero { display: grid; gap: 12px; padding: 36px 0 8px; border-bottom: 2px solid var(--ink); padding-bottom: 28px; }
.pres-hero h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); font-weight: 900; letter-spacing: -0.05em; line-height: .95; }
.pres-concept { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; color: var(--foje-ink); max-width: 30ch; }
.pres-summary { max-width: 62ch; color: var(--ink-2); font-size: 1.0625rem; }
.pres-numbers { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9375rem; color: var(--ink-2); }
.pres-numbers b { font-size: 1.5rem; font-weight: 900; color: var(--ink); margin-right: 4px; font-variant-numeric: tabular-nums; }
.pres-sec { display: grid; gap: 16px; }
.pres-sec > h2 { font-size: .8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; display: flex; align-items: center; gap: 12px; }
.pres-sec > h2::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.pres-goals { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: g; }
.pres-goals li { counter-increment: g; background: var(--surface); border-radius: var(--r-panel); padding: 20px; display: grid; gap: 6px; align-content: start; }
.pres-goals li::before { content: counter(g, decimal-leading-zero); font-size: 2rem; font-weight: 900; color: var(--foje); letter-spacing: -0.04em; line-height: 1; }
.pres-goals h3, .pres-themes h3, .pres-dates h3 { font-size: 1.1875rem; font-weight: 800; }
.pres-goals p, .pres-themes p, .pres-dates p { color: var(--ink-2); }
.pres-themes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pres-themes article { border-top: 2px solid var(--ink); padding-top: 12px; display: grid; gap: 6px; align-content: start; }
.pres-themes article.rubric { border-top-color: var(--foje); }
.pres-dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pres-dates li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; background: var(--surface); border-radius: var(--r-panel); padding: 16px 20px; }
.pres-date { font-weight: 800; color: var(--foje-ink); }
@media (max-width: 560px) { .pres-dates li { grid-template-columns: 1fr; gap: 4px; } }
.pres-week { display: grid; gap: 12px; }
.pres-week + .pres-week { margin-top: 18px; }
.pres-week > h3 { font-size: 1rem; font-weight: 800; color: var(--ink-2); }
.pres-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
@media (max-width: 400px) { .pres-cards { grid-template-columns: minmax(0, 1fr); } }
.pres-card { background: var(--surface); border-radius: 16px; overflow: hidden; display: grid; box-shadow: var(--shadow); border-top: 4px solid var(--line); }
.pres-card[data-tone="approved"], .pres-card[data-tone="done"] { border-top-color: var(--ok); }
.pres-card[data-tone="changes_requested"] { border-top-color: #c58a12; }
.pres-card[data-tone="pending"] { border-top-color: var(--foje); }
.pres-card[data-tone="rejected"] { opacity: .7; }
.pres-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--muted-wash); }
.pres-body { padding: 18px 20px 20px; display: grid; gap: 10px; }
.pres-body h4 { margin: 0; font-size: 1.3125rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.pres-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--foje-ink); }
.pres-goal b, .pres-body .small b { color: var(--ink-3); font-weight: 700; margin-right: 4px; }
.pres-caption summary { cursor: pointer; font-weight: 600; font-size: .875rem; }
.pres-caption p { margin-top: 6px; background: var(--surface-2); border-radius: 8px; padding: 10px 12px; font-size: .9375rem; }
.pres-needs { display: flex; gap: 8px; font-size: .875rem; background: var(--foje-wash); border-radius: 8px; padding: 8px 10px; }
.pres-decide { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 12px; }
.pres-decide form { margin: 0; }
.pres-decide details { flex: 1 1 auto; }
.pres-decide details > summary { list-style: none; }
.pres-decide details > summary::-webkit-details-marker { display: none; }
.pres-decide details[open] { flex-basis: 100%; }
.pres-decide details[open] form { margin-top: 10px; }
.pres-decision { border: 2px solid var(--ink); }
.pres-decision .row { align-items: flex-start; }
.pres-decision .row > form { flex: 1 1 280px; }
.pres .plan-history { max-width: 760px; }

/* ── Radar de oportunidades e questionário (0012) ───────────── */
.radar-intro { gap: 8px; }
.opp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.opp { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; background: var(--surface); border-radius: var(--r-panel); padding: 14px 16px; border-left: 4px solid var(--line); }
.opp[data-kind="client"] { border-left-color: var(--foje); }
.opp[data-kind="local"] { border-left-color: #c58a12; }
.opp[data-kind="commercial"] { border-left-color: var(--ink); }
.opp[data-status="discarded"] { opacity: .6; }
.opp[data-status="planned"] { border-left-color: var(--ok); }
.opp-date { display: grid; align-content: start; font-variant-numeric: tabular-nums; }
.opp-date b { font-size: 1.25rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.opp-date span { font-size: .75rem; color: var(--ink-3); }
.opp-main { display: grid; gap: 4px; min-width: 0; }
.opp-title { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.opp-reason { color: var(--ink-2); }
.opp-why { font-size: .8125rem; color: var(--ok); display: flex; gap: 6px; align-items: flex-start; }
.opp-why .i { width: 16px; height: 16px; margin-top: 2px; }
.opp-state[data-status="planned"] { border-color: var(--ok); color: var(--ok); background: var(--ok-wash); }
.opp-state[data-status="open"] { border-color: var(--foje); color: var(--foje-ink); background: var(--foje-wash); }
.opp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: flex-start; }
.opp-actions form { margin: 0; }
.opp-actions details > summary { list-style: none; }
.opp-actions details > summary::-webkit-details-marker { display: none; }
.opp-actions details[open] { flex-basis: 100%; }
.opp-clients { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.opp-clients a.chip { text-decoration: none; }
.warn-text { color: var(--warn); font-weight: 600; }
@media (max-width: 520px) { .opp { grid-template-columns: 1fr; gap: 6px; } .opp-date { display: flex; gap: 6px; align-items: baseline; } }
.questionnaire .field small { margin-top: -2px; }
.avoid-list { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.avoid-list legend { font-weight: 600; font-size: .875rem; padding: 0 4px; }
.date-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.date-list > li { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chip.ok { border-color: var(--ok); color: var(--ok); background: var(--ok-wash); }
