/* app.css — componentes das páginas da plataforma (entrar, acervo, admin, importar, 404).
   FAMÍLIA VISUAL = editor original. Cada componente copia o equivalente do editor (studio/editor.html, studio/cover.css, studio/ed-40-export.css):
   botão = .mb/.tb (.btn--primary = .mb.pri: laranja com texto navy) · diálogo = .mdl (faixa laranja/navy, ícone, sobretítulo em mono) ·
   diálogo largo = .xp-box · menu = .xmenu · aviso = #toast (tema claro) / .cv-note (prancha) · cartão = .cv-hcard · selo = .cv-htag ·
   busca = .cv-search · abas = .cv-seg / .seg · sobretítulo = .cv-eyebrow / .mdl-ey (JetBrains Mono) · barra = #top · fundo = .cv-bg.
   Dois temas, como no original: CLARO (= editor; admin) e PRANCHA (= capa; acervo, importar, entrar, 404): body.theme-prancha.
   Sem estilos inline em lugar nenhum (CSP estrita): estados viram classes; barras de progresso usam <progress>. */

/* ───────── papéis de cor: tema claro (= editor) e superfícies brancas dentro da prancha ───────── */
:root,
.theme-prancha :is(dialog:not(.dlg--prancha), .menu, .auth__card) {
  --page-bg: var(--bg);
  --text: var(--ink);
  --text-strong: var(--navy);
  --text-mut: var(--mut);
  --text-faint: var(--steel-600);
  --border-soft: var(--line);
  --panel: var(--surface);
  --panel-line: var(--line);
  --ctl-bg: var(--surface);
  --ctl-line: var(--line);
  --ctl-text: var(--navy);
  --ctl-hover-bg: var(--hover-2);
  --ctl-hover-line: var(--line-strong);
  --ghost-hover: var(--hover);
  --fld-bg: var(--field);
  --fld-line: var(--field-line);
  --fld-line-hover: var(--steel-600);
  --fld-text: var(--ink);
  --fld-ph: #66758a;
  --fld-focus-bg: var(--surface);
  --seg-bg: var(--field);
  --seg-line: var(--line);
  --seg-text: var(--mut);
  --seg-on-bg: var(--navy);
  --seg-on-text: #fff;
  --link: var(--info);
  --link-hover: var(--navy);
  --skel-a: #e4e9f0;
  --skel-b: #f1f4f8;
  --state-bg: var(--surface);
  --state-line: var(--line-strong);
  color-scheme: light;
}
/* ───────── papéis de cor: PRANCHA (= capa do editor, #cover) ───────── */
.theme-prancha,
.dlg--prancha {
  --page-bg: var(--navy-900);
  --text: #dce5f0;
  --text-strong: #fff;
  --text-mut: var(--steel-300);
  --text-faint: var(--steel);
  --border-soft: rgba(163, 184, 214, 0.12);
  --panel: rgba(255, 255, 255, 0.035);
  --panel-line: rgba(163, 184, 214, 0.16);
  --ctl-bg: transparent;
  --ctl-line: rgba(163, 184, 214, 0.26);
  --ctl-text: #fff;
  --ctl-hover-bg: rgba(247, 140, 22, 0.1);
  --ctl-hover-line: var(--orange);
  --ghost-hover: rgba(126, 161, 195, 0.16);
  --fld-bg: rgba(0, 20, 36, 0.45);
  --fld-line: rgba(163, 184, 214, 0.5);      /* a capa usa .26; .5 dá 3,1:1 contra o campo (WCAG 1.4.11) */
  --fld-line-hover: rgba(163, 184, 214, 0.75);
  --fld-text: #fff;
  --fld-ph: var(--steel);
  --fld-focus-bg: rgba(0, 20, 36, 0.72);
  --seg-bg: rgba(0, 20, 36, 0.35);
  --seg-line: rgba(163, 184, 214, 0.2);
  --seg-text: var(--steel-300);
  --seg-on-bg: rgba(126, 161, 195, 0.2);
  --seg-on-text: #fff;
  --link: var(--steel-300);
  --link-hover: #fff;
  --skel-a: rgba(255, 255, 255, 0.04);
  --skel-b: rgba(255, 255, 255, 0.09);
  --state-bg: rgba(255, 255, 255, 0.02);
  --state-line: rgba(163, 184, 214, 0.24);
  color-scheme: dark;
}

/* ───────── base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--text);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; color: var(--text-strong); }
h1 { font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1.1; letter-spacing: 0.005em; }
h2 { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.005em; }
h3 { font-size: 14px; }
p { margin: 0 0 var(--sp-3); }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
ul[role='list'] { list-style: none; margin: 0; padding: 0; }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }
kbd { font: 600 10px/1 var(--font-mono); letter-spacing: 0.02em; }
.btn kbd { opacity: 0.8; }
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 5px; border: 1px solid rgba(163, 184, 214, 0.3); border-bottom-width: 2px; background: rgba(255, 255, 255, 0.04); font: 600 10.5px/1 var(--font-mono); color: #fff; white-space: nowrap; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus-out); outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-in); }
/* prancha: anel laranja da capa (#cover :focus-visible) — 7,1:1 sobre o navy; superfícies brancas voltam ao anel duplo */
.theme-prancha :focus-visible, .dlg--prancha :focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; box-shadow: none; }
.theme-prancha :is(dialog:not(.dlg--prancha), .menu, .auth__card) :focus-visible { outline: 2px solid var(--focus-out); outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-in); }
.topbar :focus-visible, .on-dark :focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 2px var(--navy); }
main:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: var(--r-ctl);
  background: var(--orange); color: var(--navy); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 10px; }
.muted { color: var(--text-mut); }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }

/* ───────── prancha: fundo navy com grade fina (cópia de .cv-bg da capa) ───────── */
.theme-prancha { background-color: var(--navy-900); }
.theme-prancha::before,
.theme-prancha::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.theme-prancha::before {
  background:
    linear-gradient(180deg, rgba(0, 30, 50, 0) 70%, rgba(0, 22, 38, 0.55)),
    radial-gradient(1100px 760px at 76% 42%, rgba(74, 111, 165, 0.26), transparent 62%),
    radial-gradient(900px 600px at 0% 100%, rgba(0, 42, 70, 0.9), transparent 70%),
    linear-gradient(160deg, #002a46 0%, #00223a 45%, #001e32 100%);
}
.theme-prancha::after {
  background-image:
    linear-gradient(rgba(126, 161, 195, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 161, 195, 0.075) 1px, transparent 1px),
    linear-gradient(rgba(126, 161, 195, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 161, 195, 0.035) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.25) 10%, #000 75%);
  mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.25) 10%, #000 75%);
}

/* ───────── ícones ───────── */
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.22em; fill: none; stroke: currentColor; }
.ic--lg { width: 1.75em; height: 1.75em; }
.ic--xl { width: 2.5em; height: 2.5em; }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────── botões (= .mb / .tb do editor; .cv-ghost na prancha) ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 16px;
  border: 1px solid var(--ctl-line); border-radius: var(--r-ctl);
  background: var(--ctl-bg); color: var(--ctl-text);
  font-family: var(--font-ui); font-weight: 600; font-size: 13px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.1s var(--ease);
}
.btn .ic { width: 16px; height: 16px; }
.btn:hover { background: var(--ctl-hover-bg); border-color: var(--ctl-hover-line); color: var(--ctl-text); }
.btn:active { transform: translateY(1px); }
.btn--primary, .btn--accent { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.btn--primary:hover, .btn--accent:hover { background: var(--orange-600); border-color: var(--orange-600); color: var(--navy); }
.btn--strong { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--strong:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn--strong .ic { color: var(--orange); }
.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--danger:hover { background: #8f1d17; border-color: #8f1d17; color: #fff; }
.btn--ghost { background: transparent; border-color: transparent; }
.btn--ghost:hover { background: var(--ghost-hover); border-color: transparent; }
/* ação de cartão (= .cv-hgo): sem borda, ícone laranja que anda 3 px no hover */
.btn--link { min-height: 32px; gap: 7px; padding: 0 10px 0 8px; border-color: transparent; border-radius: 7px; background: transparent; color: var(--text-strong); font-size: var(--fs-sm); }
.btn--link .ic { width: 15px; height: 15px; color: var(--orange); transition: transform 0.25s var(--ease); }
.btn--link:hover { background: rgba(247, 140, 22, 0.12); border-color: transparent; color: var(--text-strong); }
.btn--link:hover .ic, .btn--link:focus-visible .ic { transform: translateX(3px); }
.btn--sm { min-height: 32px; padding: 0 12px; font-size: var(--fs-sm); }
.btn--icon { padding: 0; width: 38px; }
.btn--icon.btn--sm { width: 32px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn.is-busy { cursor: progress; pointer-events: none; }
.btn.is-busy .ic:first-child { animation: spin 0.9s linear infinite; }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.link-btn:hover { color: var(--link-hover); }

/* ───────── formulários (= .pf do editor; .cv-search na prancha) ───────── */
.field { display: grid; gap: 6px; margin-bottom: var(--sp-4); }
.field > label, .label, .field__label { font-family: var(--font-ui); font-weight: 600; font-size: var(--fs-xs); line-height: 1.3; color: var(--text-strong); }
.input, .select, .textarea {
  width: 100%; min-height: 40px; padding: 0 12px;
  background: var(--fld-bg); color: var(--fld-text);
  border: 1px solid var(--fld-line); border-radius: var(--r-ctl);
  font-family: var(--font-ui); font-size: var(--fs-md); line-height: 1.3;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.textarea { min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--fld-line-hover); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-color: var(--orange); background: var(--fld-focus-bg); }
.input::placeholder, .textarea::placeholder { color: var(--fld-ph); opacity: 1; }
.input[aria-invalid='true'], .textarea[aria-invalid='true'], .select[aria-invalid='true'] { border-color: var(--danger); background: #fffafa; }
.input-wrap { position: relative; display: block; }
.input-wrap .input { padding-right: 46px; }
.input-wrap .toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.input--search { padding-left: 37px; }
.search-wrap { position: relative; }
.search-wrap > .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-faint); pointer-events: none; }
.hint { font-size: var(--fs-xs); color: var(--text-mut); margin: 0; }
.field-error { font-size: var(--fs-xs); color: var(--danger); font-weight: 600; margin: 0; display: flex; gap: 6px; align-items: flex-start; }
.field-error::before { content: '!'; flex: none; width: 16px; height: 16px; margin-top: 0; border-radius: 50%; background: var(--danger); color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
.checkline { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.checkline input { width: 18px; height: 18px; accent-color: var(--orange); flex: none; }
.row { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }
.row--end { justify-content: flex-end; }
.row--between { justify-content: space-between; }
.stack { display: grid; gap: var(--sp-3); }
.grid-2 { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ───────── alertas, selos ───────── */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; border: 1px solid; font-size: var(--fs-md); margin-bottom: var(--sp-4); }
.alert > .ic { margin-top: 2px; }
.alert p { margin: 0; }
.alert--error { background: var(--danger-wash); border-color: #f1b8b3; color: #7d1a14; }
.alert--info { background: var(--info-wash); border-color: #b9d4ee; color: #174b7a; }
.alert--ok { background: var(--ok-wash); border-color: #a9d8bd; color: #14633a; }
.alert--warn { background: var(--warn-wash); border-color: #f0cf8c; color: var(--warn-ink); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
/* chip (= .msel span do editor) */
.badge {
  display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 2px 9px; border-radius: 99px;
  font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; line-height: 1.3;
  background: var(--hover); color: var(--navy); border: 0;
}
.badge .ic { width: 13px; height: 13px; }
.badge--own { background: var(--orange); color: var(--navy); }
.badge--admin { background: var(--navy); color: #fff; }
.badge--ok { background: var(--ok-wash); color: #14633a; }
.badge--warn { background: var(--warn-wash); color: var(--warn-ink); }
.badge--danger { background: var(--danger-wash); color: #7d1a14; }
.badge--info { background: var(--info-wash); color: #174b7a; }
/* selo sobre a miniatura (= .cv-htag) */
.tag, .card__badges .badge, .topbar .badge--admin {
  min-height: 0; padding: 4px 7px; border-radius: var(--r-tag);
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; line-height: 1.1; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--orange); color: var(--navy); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.55);
}
.card__badges .badge--danger { background: var(--danger-wash); color: #7d1a14; }

/* avatares: só tons A&M (navy, aços, gelo, laranja) */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%; font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
  background: var(--hover); color: var(--navy);
}
.avatar--lg { width: 40px; height: 40px; font-size: 14px; }
.av-0 { background: #dbe7f3; color: #002a46; }
.av-1 { background: #fde6c7; color: #6b3a00; }
.av-2 { background: #e3eaf2; color: #0b2545; }
.av-3 { background: #a3b8d6; color: #001e32; }
.av-4 { background: #7ea1c3; color: #001e32; }
.av-5 { background: #43698f; color: #ffffff; }
.av-6 { background: #002a46; color: #ffffff; }
.av-7 { background: #f78c16; color: #002a46; }
.theme-prancha .avatar { box-shadow: 0 0 0 1px rgba(163, 184, 214, 0.35); }

/* ───────── barra superior (= #top do editor: navy, 54 px, marca + menu) ───────── */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; }
.theme-prancha .topbar { background: rgba(0, 32, 54, 0.94); border-bottom: 1px solid rgba(163, 184, 214, 0.12); }
.topbar__in { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); min-height: var(--topbar-h); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; white-space: nowrap; min-height: var(--topbar-h); }
.brand:hover { color: #fff; }
.brand__wm { display: block; height: 16px; width: auto; }
.brand__sub { display: flex; align-items: center; gap: 7px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.2); font-size: 12px; color: var(--steel-300); }
.brand__sub em { font-style: normal; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: #fff; letter-spacing: 0.01em; }
.brand__sub em i { display: inline-block; width: 0.24em; height: 0.24em; margin-left: 0.06em; background: var(--orange); border-radius: 1px; vertical-align: baseline; }
.topnav { display: flex; align-items: center; gap: 1px; margin-left: 2px; }
.topnav a { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 7px; font-size: var(--fs-sm); font-weight: 500; color: rgba(255, 255, 255, 0.8); text-decoration: none; white-space: nowrap; transition: background-color 0.15s var(--ease), color 0.15s var(--ease); }
.topnav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.topnav a[aria-current='page'] { color: #fff; background: rgba(255, 255, 255, 0.15); box-shadow: inset 0 -2px 0 var(--orange); }
.userbox { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.userbox__who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.userbox__name { font-weight: 600; font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.92); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userbox .avatar { background: var(--steel); color: var(--navy-900); box-shadow: none; }
/* "Sair" = .tb do editor */
.topbar .btn { min-height: 34px; padding: 0 13px; border-color: rgba(255, 255, 255, 0.2); background: transparent; color: #fff; }
.topbar .btn:hover { border-color: var(--orange); background: rgba(247, 140, 22, 0.12); color: #fff; }
@media (max-width: 1099px) { .brand__sub2 { display: none; } }
@media (max-width: 760px) {
  .topbar__in { gap: 0 var(--sp-3); }
  .topnav { order: 3; flex: 1 0 100%; margin: 0 -4px; padding-bottom: 8px; overflow-x: auto; }
  .userbox__name, .userbox .badge { display: none; }
  .brand__wm { height: 14px; }
}

/* ───────── layout de página (cabeçalho = .cv-ph da capa) ───────── */
.page { max-width: var(--maxw); margin: 0 auto; padding: 26px var(--gutter) var(--sp-7); }
.page__head { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; justify-content: space-between; padding-bottom: clamp(12px, 2.2vh, 20px); margin-bottom: clamp(14px, 2.6vh, 22px); border-bottom: 1px solid var(--border-soft); }
.page__head .lead { margin: 6px 0 0; font-size: 13px; color: var(--text-mut); max-width: 74ch; }
.page__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* sobretítulo grande (= .cv-eyebrow) e pequeno (= .mdl-ey) — JetBrains Mono */
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; line-height: 1; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-faint); }
.eyebrow i { display: block; flex: none; width: 26px; height: 2px; background: var(--orange); }
.ey { display: flex; align-items: center; gap: 8px; margin: 1px 0 6px; font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 600; line-height: 1.2; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-faint); }
.ey::before { content: ''; width: 16px; height: 2px; background: var(--orange); flex: none; }
.panel { background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--r-card); padding: var(--sp-5); }
.panel + .panel { margin-top: var(--sp-4); }
.panel__title { margin-bottom: var(--sp-3); }
.section-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 600; line-height: 1.2; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.section-title::before { content: ''; width: 16px; height: 2px; background: var(--orange); flex: none; }

/* ───────── abas segmentadas (= .cv-seg na prancha, .seg no editor) ───────── */
.tabs { display: inline-flex; gap: 2px; max-width: 100%; min-height: 38px; padding: 3px; border-radius: var(--r-field); border: 1px solid var(--seg-line); background: var(--seg-bg); overflow-x: auto; scrollbar-width: none; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; min-height: 30px;
  background: none; border: 0; border-radius: 6px;
  font-weight: 600; font-size: var(--fs-sm); color: var(--seg-text); white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.tab .ic { width: 15px; height: 15px; }
.tab:hover { color: var(--text-strong); }
.tab[aria-selected='true'] { background: var(--seg-on-bg); color: var(--seg-on-text); box-shadow: inset 0 -2px 0 var(--orange); }
.page > .tabs { margin-bottom: var(--sp-4); }

/* ───────── telas de acesso (= capa: prancha, herói "Canteiro." e cartão branco como o .mdl) ───────── */
.auth {
  min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'top' 'hero' 'main' 'base';
  column-gap: clamp(24px, 4vw, 72px); padding: 0 var(--gutter);
}
.auth__top { grid-area: top; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding-top: 20px; }
.auth__brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.auth__wm { display: block; height: 19px; width: auto; }
.dts { display: flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid rgba(163, 184, 214, 0.25); font-size: 12px; color: var(--steel-300); letter-spacing: 0.02em; white-space: nowrap; }
.dts b { font-family: var(--font-mono); font-size: 10px; font-weight: 600; line-height: 1; letter-spacing: 0.14em; color: #fff; border: 1px solid rgba(163, 184, 214, 0.38); border-radius: 4px; padding: 4px 6px 4px 7px; }
.auth__log { font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 500; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); white-space: nowrap; }
.auth__aside { grid-area: hero; padding: clamp(20px, 4vh, 44px) 0 8px; min-width: 0; }
.auth__aside > p { margin: 0; }
.auth__aside > .eyebrow { margin-bottom: clamp(10px, 1.8vh, 18px); }
.hero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(52px, 11vh, 116px); line-height: 0.86; letter-spacing: -0.012em; color: #fff; white-space: nowrap; }
.hero__dot { display: inline-block; width: 0.15em; height: 0.15em; margin-left: 0.07em; background: var(--orange); border-radius: 0.012em; }
.auth__aside .hero__line { margin-top: clamp(12px, 2vh, 20px); font-family: var(--font-display); font-weight: 400; font-size: clamp(13px, 1.9vh, 16px); line-height: 1.2; letter-spacing: 0.22em; text-transform: uppercase; color: var(--steel-300); }
.hero__line b { color: var(--orange); font-weight: 700; }
.auth__aside .hero__tag { margin-top: clamp(8px, 1.4vh, 14px); font-size: clamp(15px, 2.2vh, 19px); line-height: 1.45; color: #dce5f0; letter-spacing: -0.005em; }
.hero__list { list-style: none; margin: clamp(22px, 4vh, 36px) 0 0; padding: 0; display: grid; gap: 10px; max-width: 48ch; font-size: 13px; color: var(--steel-300); }
.hero__list li { display: flex; gap: 10px; align-items: flex-start; }
.hero__list .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--orange); }
.auth__main { grid-area: main; display: flex; align-items: center; justify-content: center; padding: 20px 0 32px; min-width: 0; }
.auth__card {
  position: relative; width: 100%; max-width: 440px; overflow: hidden;
  background: var(--surface); color: var(--ink); border-radius: var(--r-dlg);
  box-shadow: 0 30px 80px -12px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.25);
  padding: 32px 30px 26px;
}
.auth__card::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--orange) 0 64px, var(--navy) 64px); }
.auth__card h1 { font-size: 26px; margin-bottom: 6px; color: var(--navy); }
.auth__card .lead { color: var(--mut); font-size: 13px; line-height: 1.55; margin-bottom: 22px; }
.auth__card #conta-email { margin: calc(-1 * var(--sp-3)) 0 var(--sp-4); }
.auth__foot { margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--mut); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.auth__foot .row { gap: 6px; }
/* login corporativo (SSO): divisória "ou" em mono (rótulo do editor) + botão .mb de largura total; sem indicador do servidor, o botão fica discreto */
.auth__or { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 600; line-height: 1; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--mut); }
.auth__or::before, .auth__or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
#btn-sso .ic { color: var(--steel-600); }
#btn-sso:hover .ic { color: var(--orange-ink); }
.auth__sso { display: flex; justify-content: center; margin-top: 10px; }
.auth__sso .btn { color: var(--steel-600); }
.auth__sso .btn:hover { color: var(--navy); }
.auth__center { text-align: center; padding: var(--sp-3) 0 0; }
.auth__center .ic--xl { color: var(--steel-600); margin-bottom: var(--sp-3); }
.auth__center .ic--xl.is-ok { color: var(--ok); }
.auth__center .ic--xl.is-warn { color: var(--orange-ink); }
.auth__center .row { justify-content: center; }
.auth__base { grid-area: base; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 14px 0 18px; border-top: 1px solid rgba(163, 184, 214, 0.12); font-size: var(--fs-xs); color: var(--steel); }
.auth__base p { margin: 0; display: flex; align-items: center; gap: 9px; }
.auth__base .ic { width: 16px; height: 16px; color: var(--orange); }
@media (min-width: 960px) {
  .auth { grid-template-columns: minmax(0, 1fr) minmax(380px, 440px); grid-template-rows: auto 1fr auto; grid-template-areas: 'top top' 'hero main' 'base base'; align-items: center; }
  .auth__main { padding: 24px 0; }
}
@media (max-width: 959px) {
  .auth__aside .hero__tag, .hero__list { display: none; }
  .hero__title { font-size: clamp(48px, 15vw, 72px); }
  .auth__card { padding: 26px 20px 22px; }
}
@media (max-width: 640px) {
  .dts span, .auth__log { display: none; }
  .auth__wm { height: 16px; }
}

.strength { display: grid; gap: 6px; margin: 2px 0 var(--sp-3); }
.strength__bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strength__bars i { height: 6px; border-radius: 99px; background: #dce5f0; }
.strength[data-level='1'] .strength__bars i:nth-child(-n + 1) { background: var(--danger); }
.strength[data-level='2'] .strength__bars i:nth-child(-n + 2) { background: var(--orange); }
.strength[data-level='3'] .strength__bars i:nth-child(-n + 3) { background: var(--steel-500); }
.strength[data-level='4'] .strength__bars i:nth-child(-n + 4) { background: var(--ok); }
.strength__label { font-size: var(--fs-xs); font-weight: 600; color: var(--navy); }
.checklist { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: grid; gap: 4px; font-size: var(--fs-xs); color: var(--mut); }
.checklist li { display: flex; gap: 8px; align-items: center; }
.checklist li::before { content: '○'; width: 16px; text-align: center; color: var(--mut); }
.checklist li.is-ok { color: #14633a; font-weight: 600; }
.checklist li.is-ok::before { content: '✓'; color: var(--ok); }

/* ───────── acervo: ferramentas (= .cv-htools: busca .cv-search + .cv-seg) ───────── */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.toolbar__search, .toolbar > .search-wrap { flex: 0 1 360px; min-width: min(220px, 100%); margin: 0; }
.toolbar__sp { flex: 1; }
.toolbar__sort { display: flex; align-items: center; gap: 10px; }
.toolbar__sort label { font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }
.toolbar__sort .select { width: auto; min-width: 200px; }
.theme-prancha .toolbar .input, .theme-prancha .toolbar .select { min-height: 38px; border-radius: var(--r-field); }
.status-line { min-height: 20px; font-size: var(--fs-xs); color: var(--text-faint); margin: 0 0 12px; }
/* nota discreta (= .cv-hnote) */
.note { display: flex; gap: 9px; align-items: center; font-size: var(--fs-xs); line-height: 1.4; color: var(--text-faint); margin: 0 0 12px; }
.note .ic { width: 15px; height: 15px; color: var(--orange); }
.note p { margin: 0; }

/* ───────── cartões (= .cv-hcard de "Minhas obras") ───────── */
.cards { display: grid; gap: clamp(12px, 1.3vw, 18px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 272px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border-radius: var(--r-card); border: 1px solid var(--panel-line); background: var(--panel);
  transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.35s var(--ease), background-color 0.25s;
}
.card:hover, .card:focus-within { transform: translateY(-3px); border-color: rgba(247, 140, 22, 0.55); box-shadow: 0 24px 46px -24px rgba(0, 30, 50, 0.45); }
.theme-prancha .card:hover, .theme-prancha .card:focus-within { background: rgba(255, 255, 255, 0.06); box-shadow: var(--sh-lift); }
.card:has(.menu), .card:focus-within { z-index: 5; }
.card:has(.card__title:focus-visible) { outline: 2px solid var(--focus-out); outline-offset: 2px; }
.theme-prancha .card:has(.card__title:focus-visible) { outline-color: var(--orange); }
.card.is-removing { opacity: 0.4; pointer-events: none; }
.card__thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer;
  border-radius: calc(var(--r-card) - 1px) calc(var(--r-card) - 1px) 0 0; background: #fff; border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}
.card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
/* sem miniatura (= .cv-pv.cv-pv-bad) */
.card__thumb:has(.ph), .drawer__thumb:has(.ph) { background: repeating-linear-gradient(135deg, #e3eaf2 0 10px, #ebeef1 10px 20px); }
.card__thumb .ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--steel-600); font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.card__badges { position: absolute; left: 8px; top: 8px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 11px 14px 4px; }
/* metadados e aviso de leitura: a capa usa o aço #7EA1C3 (.cv-hmeta), que cai para 3,6:1 sobre o cartão no ponto claro do degradê;
   aqui vão no aço claro #A3B8D6 (--s4 da capa, ≥ 4,8:1 medido em pixels) — mesma fonte, corpo, espaçamento e caixa */
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; font-family: var(--font-mono); font-size: 10px; font-weight: 500; line-height: 1.2; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mut); white-space: nowrap; }
.card__meta span:last-child { overflow: hidden; text-overflow: ellipsis; }
.card h3 { margin: 0; font-size: inherit; }
.card__title {
  display: -webkit-box; width: 100%; min-height: 2.44em; text-align: left; background: none; border: 0; padding: 0;
  font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; line-height: 1.22; color: var(--text-strong);
  overflow-wrap: anywhere; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__title:hover { text-decoration: underline; text-decoration-color: rgba(247, 140, 22, 0.7); text-underline-offset: 3px; }
.card__title:focus-visible { outline: none; box-shadow: none; }
.card__owner { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-mut); min-width: 0; }
.card__owner .avatar { width: 22px; height: 22px; font-size: 9px; }
.card__owner span.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.card__readonly { font-size: 11.5px; line-height: 1.4; color: var(--text-mut); margin: 0; display: flex; gap: 6px; align-items: flex-start; }
.card__readonly .ic { width: 13px; height: 13px; margin-top: 1px; color: var(--text-mut); }
/* ações (= .cv-hact): link laranja + botão de ícone 32 px; o "⋯" fica na MESMA linha */
.card__actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; margin-top: auto; padding: 6px 8px 10px; min-width: 0; }
.card__actions .btn { flex: 0 1 auto; min-width: 0; }
.card__actions .more { margin-left: auto; position: relative; flex: none; }
.more > .btn { width: 32px; min-height: 32px; padding: 0; border-color: transparent; background: transparent; color: var(--text-mut); border-radius: 7px; }
.more > .btn:hover, .more > .btn[aria-expanded='true'] { color: var(--text-strong); background: var(--ghost-hover); border-color: transparent; }
/* entrada escalonada (= .cv-hfresh .cv-hcard: cvRise 45 ms por cartão, até o 12º) */
.cards > li:not(.card--skel) { animation: cvRise 0.55s var(--ease) backwards; animation-delay: 60ms; }
.cards > li:nth-child(2) { animation-delay: 105ms; }
.cards > li:nth-child(3) { animation-delay: 150ms; }
.cards > li:nth-child(4) { animation-delay: 195ms; }
.cards > li:nth-child(5) { animation-delay: 240ms; }
.cards > li:nth-child(6) { animation-delay: 285ms; }
.cards > li:nth-child(7) { animation-delay: 330ms; }
.cards > li:nth-child(8) { animation-delay: 375ms; }
.cards > li:nth-child(9) { animation-delay: 420ms; }
.cards > li:nth-child(10) { animation-delay: 465ms; }
.cards > li:nth-child(11) { animation-delay: 510ms; }
.cards > li:nth-child(12) { animation-delay: 555ms; }
@keyframes cvRise { from { opacity: 0; transform: translateY(14px); } }

.skeleton { background: linear-gradient(100deg, var(--skel-a) 30%, var(--skel-b) 50%, var(--skel-a) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; border-radius: 6px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.card--skel .card__thumb { background: none; cursor: default; border-bottom-color: transparent; }
.card--skel .skeleton { display: block; }
.card--skel .card__body { padding-bottom: 16px; }
.sk-line { height: 12px; margin: 5px 0; }
.sk-line--w60 { width: 60%; }
.sk-line--w40 { width: 40%; }
.sk-line--w90 { width: 90%; }
.sk-fill { position: absolute; inset: 0; border-radius: 0; }

/* estado vazio (= .cv-hempty) */
.state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 240px; padding: 28px 20px; text-align: center; border: 1px dashed var(--state-line); border-radius: var(--r-dlg); background: var(--state-bg); }
.state > .ic--xl { color: var(--text-faint); margin-bottom: 4px; }
.state h2 { font-size: clamp(19px, 2.8vh, 24px); }
.state p { max-width: 540px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-mut); }
.state .row { justify-content: center; margin-top: 10px; gap: 10px; }
.state__art { width: 150px; height: 93px; margin-bottom: 6px; }
.state__art .a { fill: rgba(0, 37, 63, 0.6); stroke: rgba(163, 184, 214, 0.38); stroke-width: 1; }
.state__art .b { fill: #00253f; stroke: var(--steel-300); stroke-width: 1.2; stroke-dasharray: 4 3; }
.state__art .o { fill: var(--orange); stroke: none; }
.state__art .t { fill: none; stroke: rgba(163, 184, 214, 0.5); stroke-width: 3; stroke-linecap: round; }
.state__art .w { fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; }
.more-wrap { display: flex; justify-content: center; padding: var(--sp-5) 0 0; }

/* ───────── menu (= .xmenu do editor) ───────── */
.menu {
  position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 30; min-width: 244px; max-width: 340px;
  display: grid; padding: 6px; white-space: nowrap;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-pop); box-shadow: var(--sh-menu);
  font-size: 13px; animation: xpop 0.16s var(--ease); transform-origin: bottom right;
}
.menu--down { bottom: auto; top: calc(100% + 6px); transform-origin: top right; }
@keyframes xpop { from { opacity: 0; transform: translateY(-4px) scale(0.985); } }
.menu__item {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 9px;
  width: 100%; min-height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: none;
  text-align: left; text-decoration: none; font-weight: 500; color: var(--ink);
}
.menu__item > .ic { justify-self: center; width: 16px; height: 16px; color: var(--steel-600); }
.menu__item > .ic:last-child:not(:first-child) { width: 13px; height: 13px; color: var(--mut); }
.menu__item:hover, .menu__item:focus-visible { background: var(--hover); color: var(--ink); }
.menu__item:hover > .ic:first-child, .menu__item:focus-visible > .ic:first-child { color: var(--orange); }
.menu__item--danger, .menu__item--danger:hover, .menu__item--danger:focus-visible, .menu__item--danger > .ic:first-child, .menu__item--danger:hover > .ic:first-child { color: var(--danger); }
.menu__sep { height: 1px; background: var(--line); margin: 5px 8px; }
.menu__hd { padding: 7px 10px 5px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-600); }

/* ───────── diálogos (= .mdl: faixa, ícone 44 px, sobretítulo em mono, fundo com desfoque) ───────── */
dialog { padding: 0; border: 0; color: var(--ink); background: var(--surface); }
dialog::backdrop { background: var(--backdrop); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dlg { width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: auto; overflow: auto; border-radius: var(--r-dlg); box-shadow: var(--sh-dlg); }
.dlg[open] { animation: mdlin 0.3s var(--ease); }
@keyframes mdlin { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.dlg::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; z-index: 2; background: linear-gradient(90deg, var(--orange) 0 64px, var(--navy) 64px); }
.dlg__in { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 30px 30px 6px; }
.dlg__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--hover); color: var(--navy); }
.dlg__ic .ic { width: 22px; height: 22px; }
.dlg__ic--warn { background: var(--orange-tint); color: #b35f00; }
.dlg h2 { margin: 0 0 8px; font-family: var(--font-ui); font-size: var(--fs-xl); font-weight: 700; line-height: 1.3; letter-spacing: -0.005em; color: var(--navy); }
.dlg p { margin: 0; color: var(--mut); line-height: 1.6; font-size: var(--fs-md); }
.dlg--prancha p { color: inherit; font-size: inherit; line-height: inherit; }   /* na prancha, o texto segue a cor clara do bloco (o --mut do .mdl some no navy) */
.dlg .field { margin: 16px 0 0; }
.dlg input[readonly] { margin-top: 14px; background: var(--field); }
.dlg__a { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; padding: 22px 30px 26px; }
/* diálogo largo (= .xp-box): cabeçalho com ícone, corpo com rolagem e rodapé */
.dlg--wide { width: min(780px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: hidden; box-shadow: var(--sh-wide); }
.dlg--wide[open] { display: flex; flex-direction: column; }
.dlg__h { display: flex; align-items: flex-start; gap: 14px; padding: 22px 20px 14px; border-bottom: 1px solid var(--hover); }
.dlg__h .dlg__ic { width: 42px; height: 42px; background: var(--orange-tint); color: #b35f00; }
.dlg__hd { flex: 1; min-width: 0; }
.dlg__hd h2 { margin: 2px 0 2px; font-family: var(--font-display); font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.dlg__hd p { font-size: 12.5px; line-height: 1.45; }
.dlg__x { flex: none; width: 34px; min-height: 34px; padding: 0; border-color: transparent; background: none; color: var(--mut); border-radius: 9px; }
.dlg__x:hover { background: var(--hover); border-color: transparent; color: var(--navy); }
.dlg__b { flex: 1; min-height: 0; overflow: auto; padding: 16px 20px 8px; }
.dlg__f { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 20px 18px; border-top: 1px solid var(--hover); }
.dlg__f .note { margin: 0 auto 0 0; color: var(--mut); }

/* ───────── respostas e participações (no diálogo largo; só dono/admin) ───────── */
.resp { padding: 14px 0 18px; border-top: 1px solid var(--line); }
.resp:first-child { border-top: 0; padding-top: 2px; }
.resp__h { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.resp__ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--hover); color: var(--steel-600); }
.resp__ic .ic { width: 18px; height: 18px; }
.resp__hd { flex: 1 1 240px; min-width: 0; }
.resp__hd .ey { margin: 0 0 4px; }
.resp__hd h3 { margin: 0; font-family: var(--font-display); font-size: 17px; line-height: 1.25; color: var(--navy); overflow-wrap: anywhere; }
.resp__count { margin: 2px 0 0; font-size: var(--fs-xs); color: var(--mut); }
.resp__acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.resp__body { margin-top: 12px; }
.resp__empty { margin: 8px 0 0; font-size: var(--fs-sm); color: var(--mut); }
.resp__scroll { overflow: auto; max-height: 300px; border: 1px solid var(--line); border-radius: 10px; }
.resp__scroll .tbl { font-size: var(--fs-sm); }
.resp__scroll .tbl td { vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; min-width: 130px; max-width: 340px; }
.resp__scroll .tbl td.nowrap { white-space: nowrap; min-width: 0; }
.resp__more { margin: 8px 0 0; font-size: var(--fs-xs); color: var(--mut); }
/* votação: barras com o total de pontos de todas as pessoas (como o resultado do componente) */
.votes { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.votes li { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 13px; }
.votes__l { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.votes__v { min-width: 72px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--navy); text-align: right; white-space: nowrap; }
.votes li.is-top .votes__l { font-weight: 700; color: var(--navy); }
/* quadro: colunas com as notas, nas cores dos post-its do componente */
.board { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.board__col { min-width: 0; padding: 10px; border-radius: 10px; background: #f4f7fa; }
.board__col h4 { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 8px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-600); }
.board__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board__col .resp__empty { margin: 0; font-size: var(--fs-xs); }
.postit { padding: 8px 10px; border-radius: 6px; background: #ffe89a; box-shadow: 0 2px 4px rgba(0, 30, 50, 0.08); }
.postit p { margin: 0; font-size: var(--fs-sm); line-height: 1.35; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.postit small { display: block; margin-top: 4px; font-size: 11px; line-height: 1.3; color: #3e4c5e; }
.postit--p { background: #ffc9d6; }
.postit--b { background: #c9e1f7; }
.postit--g { background: #cdefd4; }
.postit--o { background: #ffd5a8; }
.postit.is-seed { background: var(--surface); box-shadow: none; outline: 1px dashed var(--line-strong); }

/* ───────── "Projetos prontos" (= vista #cvTpl da capa, em diálogo) ───────── */
.dlg--prancha {
  width: min(1320px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  color: var(--text); border: 1px solid rgba(163, 184, 214, 0.2); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.75);
  background:
    linear-gradient(rgba(126, 161, 195, 0.06) 1px, transparent 1px) -1px -1px / 96px 96px,
    linear-gradient(90deg, rgba(126, 161, 195, 0.06) 1px, transparent 1px) -1px -1px / 96px 96px,
    linear-gradient(rgba(126, 161, 195, 0.03) 1px, transparent 1px) -1px -1px / 24px 24px,
    linear-gradient(90deg, rgba(126, 161, 195, 0.03) 1px, transparent 1px) -1px -1px / 24px 24px,
    radial-gradient(900px 600px at 78% 30%, rgba(74, 111, 165, 0.26), transparent 62%),
    linear-gradient(160deg, #002a46 0%, #00223a 45%, #001e32 100%);
  background-color: var(--navy-900);
}
.dlg--prancha::before { display: none; }
.tpl__in { padding: clamp(18px, 3vh, 30px) clamp(18px, 2.6vw, 40px) clamp(16px, 2.4vh, 24px); }
.tpl__h { display: flex; align-items: center; gap: 22px; padding-bottom: clamp(12px, 2.2vh, 20px); margin-bottom: clamp(14px, 2.6vh, 26px); border-bottom: 1px solid rgba(163, 184, 214, 0.12); }
.tpl__h .btn { flex: none; min-height: 36px; padding: 0 8px 0 10px; gap: 9px; }
.tpl__h .btn .kbd { height: 18px; min-width: 0; font-size: 9.5px; color: var(--text); }
.tpl__ht { min-width: 0; }
.tpl__ht h2 { font-size: clamp(22px, 3.4vh, 30px); line-height: 1.1; color: #fff; }
.tpl__ht p { margin: 4px 0 0; font-size: 13px; color: var(--steel-300); }
.tpl__n { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 500; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); text-align: right; white-space: nowrap; }
.tpl__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.3vw, 20px); }
.tpl__grid > li { display: flex; min-width: 0; }
.tpl {
  position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0; padding: 0; overflow: hidden;
  border-radius: var(--r-card); border: 1px solid rgba(163, 184, 214, 0.16); background: rgba(255, 255, 255, 0.035); color: inherit; text-align: left;
  transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.35s var(--ease), background-color 0.25s;
  animation: cvRise 0.6s var(--ease) backwards; animation-delay: 80ms;
}
.tpl__grid > li:nth-child(2) .tpl { animation-delay: 140ms; }
.tpl__grid > li:nth-child(3) .tpl { animation-delay: 200ms; }
.tpl__grid > li:nth-child(4) .tpl { animation-delay: 260ms; }
.tpl__grid > li:nth-child(5) .tpl { animation-delay: 320ms; }
.tpl__grid > li:nth-child(6) .tpl { animation-delay: 380ms; }
.tpl:hover, .tpl:focus-visible { transform: translateY(-4px); border-color: rgba(247, 140, 22, 0.6); background: rgba(255, 255, 255, 0.06); box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.8); }
.tpl__pv { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #fff; border-bottom: 1px solid rgba(0, 0, 0, 0.25); }
.tpl__b { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.tpl__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--font-mono); font-size: 10px; font-weight: 500; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-300); }
.tpl__meta .kbd { height: 18px; min-width: 18px; font-size: 10px; color: var(--text); transition: border-color 0.2s, color 0.2s; }
.tpl:hover .tpl__meta .kbd, .tpl:focus-visible .tpl__meta .kbd { border-color: var(--orange); color: #fff; }
.tpl__name { margin-top: 3px; font-family: var(--font-display); font-size: 16.5px; font-weight: 700; line-height: 1.2; color: #fff; }
.tpl__desc { font-size: var(--fs-xs); line-height: 1.42; color: var(--steel-300); }
.dlg--prancha.is-busy .tpl:not(.is-busy) { opacity: 0.45; pointer-events: none; }
.tpl.is-busy { cursor: progress; border-color: var(--orange); }
.tpl__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: clamp(16px, 3vh, 28px); padding-top: 14px; border-top: 1px solid rgba(163, 184, 214, 0.12); font-size: var(--fs-xs); color: var(--steel); }
.tpl__foot .note { margin: 0; color: var(--steel); }
.tpl__keys { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; white-space: nowrap; }
.tpl__keys em { font-style: normal; margin: 0 8px 0 2px; }
.tpl__keys .kbd { min-width: 18px; height: 18px; font-size: 10px; color: var(--text); }
@media (max-width: 1099px) { .tpl__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tpl__keys { display: none; } .tpl__h { flex-wrap: wrap; gap: 12px 16px; } .tpl__n { display: none; } }
@media (max-width: 640px) { .tpl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .tpl__b { padding: 10px 11px 12px; } .tpl__desc { display: none; } }

/* gaveta de detalhes (painel branco à direita, como o painel de propriedades do editor) */
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(560px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; box-shadow: var(--sh-wide); display: none; flex-direction: column; }
.drawer[open] { display: flex; animation: slide-in 0.26s var(--ease); }
.drawer::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; z-index: 2; background: linear-gradient(90deg, var(--orange) 0 64px, var(--navy) 64px); }
@keyframes slide-in { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__head { display: flex; align-items: flex-start; gap: 12px; padding: 22px 20px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.drawer__head > div { flex: 1; min-width: 0; }
.drawer__head h2 { font-size: 20px; overflow-wrap: anywhere; color: var(--navy); }
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 18px; background: var(--surface); }
.drawer__body > * { flex: none; }
.drawer__sec { border-top: 1px solid var(--line); padding-top: 14px; }
.drawer__thumb { position: relative; width: min(100%, 360px); aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.drawer__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.drawer__thumb .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--steel-600); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 7px 16px; margin: 0; font-size: 13px; }
.dl dt { color: var(--mut); font-weight: 600; }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: var(--orange-wash); border: 1px solid #f7c99a; border-radius: 10px; color: #5a3300; font-size: 12.5px; }
.callout .ic { color: #b35f00; margin-top: 2px; }
.callout p { margin: 0 0 4px; font-weight: 600; }
.callout div { flex: 1; }

.comments { display: grid; gap: 10px; margin: var(--sp-3) 0; }
.comment { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: #f4f7fa; }
.comment.is-resolved { opacity: 0.8; }
.comment__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-sm); }
.comment__head strong { font-weight: 600; color: var(--navy); }
.comment__body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; color: #3e4c5e; }
.comment__actions { display: flex; gap: 4px; flex-wrap: wrap; }
.counter { font-size: var(--fs-xs); color: var(--mut); text-align: right; }

/* ───────── avisos (= #toast do editor no tema claro; = .cv-note da capa na prancha) ───────── */
.toasts { position: fixed; z-index: 2000; left: 0; right: 0; bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: min(560px, 100%);
  padding: 8px 8px 8px 16px; border-radius: 10px; background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 600; line-height: 1.4; box-shadow: var(--sh-banner); animation: toast-in 0.3s var(--ease);
}
.toast > .ic:first-child { width: 17px; height: 17px; color: var(--steel); }
.toast--ok > .ic:first-child { color: #5fd38d; }
.toast--error { background: #7d1a14; }
.toast--error > .ic:first-child { color: #ffb4a8; }
.toast .btn { min-height: 30px; padding: 0 12px; background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); font-size: var(--fs-sm); }
.toast .btn:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
.toast .toast__x { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: none; color: rgba(255, 255, 255, 0.8); }
.toast .toast__x:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.toast :focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 2px var(--navy); }
.theme-prancha .toast { background: var(--surface); color: var(--navy); border-left: 3px solid var(--orange); border-radius: var(--r-pop); padding-left: 14px; box-shadow: var(--sh-note); }
.theme-prancha .toast > .ic:first-child { color: var(--steel-600); }
.theme-prancha .toast--ok > .ic:first-child { color: var(--ok); }
.theme-prancha .toast--error { border-left-color: var(--danger); }
.theme-prancha .toast--error > .ic:first-child { color: var(--danger); }
.theme-prancha .toast .btn { color: var(--navy); border-color: var(--line); background: var(--surface); }
.theme-prancha .toast .btn:hover { border-color: var(--line-strong); background: var(--hover-2); color: var(--navy); }
.theme-prancha .toast .toast__x { color: var(--mut); }
.theme-prancha .toast .toast__x:hover { background: var(--hover); color: var(--navy); }
.theme-prancha .toast :focus-visible { outline: 2px solid var(--focus-out); outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-in); }
@keyframes toast-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ───────── tabelas (admin; cabeçalho em mono como os rótulos do editor) ───────── */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pop); overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl caption { text-align: left; }
.tbl th, .tbl td { padding: 10px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.tbl thead th { background: var(--field); color: var(--steel-600); font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; position: sticky; top: 0; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--hover-2); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tbl .who > div { min-width: 0; overflow-wrap: anywhere; }
.tbl .who strong { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-weight: 600; color: var(--ink); }
.tbl .who .sub, .tbl .sub { display: block; color: var(--mut); font-size: var(--fs-xs); overflow-wrap: anywhere; }
.tbl .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tbl details summary { cursor: pointer; color: var(--info); font-weight: 600; }
.tbl pre { margin: 6px 0 0; padding: 8px 10px; background: var(--field); border: 1px solid var(--line); border-radius: 6px; max-width: 460px; overflow: auto; font-family: var(--font-mono); font-size: 11.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .table-wrap { border: 0; background: none; overflow: visible; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pop); margin-bottom: 12px; padding: 6px 0; }
  .tbl td { border: 0; padding: 6px 14px; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: start; overflow-wrap: anywhere; }
  .tbl td::before { content: attr(data-label); font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-600); padding-top: 3px; }
  .tbl td.num { text-align: left; }
  .tbl tbody tr:hover td { background: none; }
}

.filters { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; margin-bottom: var(--sp-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pop); padding: var(--sp-4); }
.filters .field { margin: 0; }
@media (min-width: 720px) { .filters { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; } }
.filters__btns { display: flex; gap: 8px; }

/* indicadores (faixa laranja/navy no topo, como o .mdl) */
.stats { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); margin-bottom: var(--sp-5); }
.stat { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--r-pop); padding: 18px var(--sp-4) var(--sp-4); }
.stat::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--orange) 0 48px, var(--navy) 48px); }
.theme-prancha .stat::before { background: linear-gradient(90deg, var(--orange) 0 48px, rgba(163, 184, 214, 0.35) 48px); }
.stats--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
@media (min-width: 900px) { .stats--3 { grid-template-columns: repeat(3, 1fr); } }
.stat__v { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1.05; color: var(--text-strong); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat__l { margin-top: 6px; font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.stat__s { color: var(--text-mut); font-size: var(--fs-xs); margin-top: 2px; }

.setting { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; }
.setting__info h3 { font-size: 13.5px; margin-bottom: 2px; }
.setting__key { font-size: var(--fs-xs); color: var(--mut); }
.setting__form { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.setting__form .field { margin: 0; flex: 1 1 220px; }
.setting__form .btn { min-height: 40px; }
@media (min-width: 860px) { .setting { grid-template-columns: minmax(240px, 1fr) minmax(300px, 1.2fr); align-items: start; } }

/* ───────── importar (passos = .cv-step do Manual da obra; soltar = .cv-drop) ───────── */
/* sobretítulo da capa sobre o título (a marcação da página vem de importar.js; o traço laranja é um fundo de 26 × 2 px) */
.page-importar .page__head > div::before { content: 'Do computador para a nuvem'; display: block; margin: 0 0 12px; padding-left: 38px; background: linear-gradient(var(--orange), var(--orange)) 0 50% / 26px 2px no-repeat; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; line-height: 1; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-faint); }
.steps { counter-reset: step; display: grid; gap: var(--sp-3); list-style: none; padding: 0; margin: 0 0 var(--sp-5); grid-template-columns: 1fr; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px 14px 14px; border-radius: var(--r-card); border: 1px solid var(--panel-line); background: var(--panel); font-size: 13px; line-height: 1.5; color: var(--text); }
.steps li::before { content: counter(step, decimal-leading-zero); flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(126, 161, 195, 0.12); font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--orange-ink); }
.theme-prancha .steps li::before { color: var(--orange); }
.steps b { color: var(--text-strong); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.drop { display: grid; place-items: center; gap: 8px; text-align: center; padding: var(--sp-6) var(--sp-4); border: 2px dashed var(--state-line); border-radius: var(--r-dlg); background: var(--state-bg); transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease); }
.drop.is-over { background: rgba(247, 140, 22, 0.08); border-color: var(--orange); }
.drop .ic--xl { color: var(--orange); }
.drop p { margin: 0; color: var(--text-mut); }
.drop strong { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text-strong); }
.sr-only:focus-visible + label.btn { outline: 2px solid var(--orange); outline-offset: 3px; }
.queue { display: grid; gap: 10px; margin: var(--sp-4) 0; padding: 0; list-style: none; }
#fila, #geral, #relatorio, #problemas { margin-top: var(--sp-4); }
#relatorio { margin-bottom: var(--sp-6); }
.qi { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--r-pop); }
.qi__top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.qi__title { font-weight: 600; color: var(--text-strong); overflow-wrap: anywhere; }
.qi__title .muted { font-weight: 500; }
.qi__msg { font-size: var(--fs-xs); color: var(--text-mut); margin: 0; overflow-wrap: anywhere; }
.qi.is-error { border-color: #f1b8b3; background: #fffafa; }
.qi.is-error .qi__msg { color: #7d1a14; }
.theme-prancha .qi.is-error { border-color: rgba(255, 140, 128, 0.5); background: rgba(179, 38, 30, 0.14); }
.theme-prancha .qi.is-error .qi__msg { color: #ffc2b8; }
.report { display: grid; gap: var(--sp-3); }
/* barras de progresso (= .xp-bar: trilho claro, valor laranja) */
progress { appearance: none; -webkit-appearance: none; width: 100%; height: 8px; border: 0; border-radius: 99px; background: #dce5f0; overflow: hidden; display: block; }
progress::-webkit-progress-bar { background: #dce5f0; border-radius: 99px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, #f78c16, #fdb833); border-radius: 99px; transition: width 0.25s var(--ease); }
progress::-moz-progress-bar { background: linear-gradient(90deg, #f78c16, #fdb833); border-radius: 99px; }
.theme-prancha progress { background: rgba(255, 255, 255, 0.1); }
.theme-prancha progress::-webkit-progress-bar { background: rgba(255, 255, 255, 0.1); }
.qi--done progress::-webkit-progress-value { background: var(--ok); }

/* ───────── 404 ───────── */
.notfound { min-height: 100vh; display: grid; place-items: center; padding: var(--sp-5) var(--gutter); }
.notfound__in { width: min(640px, 100%); }
.notfound__in > img { display: block; height: 19px; width: auto; margin-bottom: clamp(32px, 8vh, 72px); }
.notfound .code { margin: 0 0 18px; font-family: var(--font-display); font-size: clamp(88px, 18vw, 160px); font-weight: 700; line-height: 0.86; letter-spacing: -0.012em; color: var(--text-strong); }
.notfound .code i { display: inline-block; width: 0.15em; height: 0.15em; margin-left: 0.07em; background: var(--orange); border-radius: 0.012em; }
.notfound h1 { font-size: clamp(24px, 3.4vh, 30px); margin-bottom: 8px; }
.notfound .muted { font-size: 15px; max-width: 46ch; }
.notfound .row { margin-top: 22px; }

/* ───────── carregando ───────── */
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: var(--sp-6); color: var(--text-mut); }
.gate { min-height: 60vh; display: grid; place-items: center; }

@media (max-width: 480px) {
  h1 { font-size: 24px; }
  .btn { min-height: 44px; }
  .btn--sm, .btn--link, .more > .btn { min-height: 40px; }
  .btn--icon.btn--sm, .more > .btn { width: 40px; }
  .input, .select { min-height: 44px; }
  .menu__item { min-height: 40px; }
  .drawer__body { padding: var(--sp-4); }
  .drawer__head { padding: 18px var(--sp-4) 12px; }
  .toolbar__sort { width: 100%; }
  .toolbar__sort .select { flex: 1; min-width: 0; }
  .dlg__in { grid-template-columns: 1fr; gap: 12px; padding: 26px 20px 4px; }
  .dlg__a { padding: 18px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .skeleton { background: var(--skel-a); }
  .btn:active, .card:hover, .card:focus-within, .tpl:hover, .tpl:focus-visible { transform: none; }
}
@media (forced-colors: active) {
  .btn, .input, .select, .textarea, .card, .tpl { border: 1px solid CanvasText; }
  :focus-visible { outline: 3px solid Highlight; }
}
