/* Pensor · base: identidade, tipografia, casca e peças usadas em todas as telas.
   Preto e branco com um acento. Cantos de 2px. Títulos em Inter Tight, texto em Inter, rótulos e números em JetBrains Mono. */
:root {
  --ink: #0A0A0A; --paper: #F2F0EA; --card: #FBFAF6;
  --line: #C9C6BC; --line2: #D8D5CB;
  --mute: #5E5C55; --mute2: #8A877D;
  --accent: #2B4BFF; --accent-l: #5C7CFF; --accent-bg: rgba(43, 75, 255, .09);
  --ink-line: #3A3936; --ink-mute: #A8A59B; --ink-soft: #C9C6BC; --ink-2: #1A1A18;
  --r: 2px;
  --f-head: 'Inter Tight', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --f-body: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pad: clamp(16px, 3vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink); font: 400 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, ul, ol, dl, dd, dt, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: #fff; }

.pular { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--accent); color: #fff; font-weight: 600; }
.pular:focus { left: 8px; }
.sem-js { padding: 40px; }

/* ── tipografia ── */
.rotulo { font: 500 11.5px/1.35 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.rotulo-esc { color: var(--ink-mute); }
.rotulo-leve { margin-top: 14px; }
.titulo { font: 800 clamp(30px, 4.2vw, 44px)/1.03 var(--f-head); letter-spacing: -.04em; text-wrap: balance; overflow-wrap: anywhere; }
.h2 { font: 700 24px/1.15 var(--f-head); letter-spacing: -.025em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.h2-n { font: 500 12px/1 var(--f-mono); letter-spacing: .03em; color: var(--mute); }
.h3 { font: 700 18px/1.2 var(--f-head); letter-spacing: -.015em; }
.sub { color: var(--mute); font-size: 14px; max-width: 70ch; }
.numero { font: 800 44px/.95 var(--f-head); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.acento { color: var(--accent); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.lk { font-weight: 600; }
.lk:hover { color: var(--accent); }
.lk-p { font-size: 13px; }
.lk-b { border: 0; background: none; padding: 4px 0; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lk-b:hover { color: var(--accent); }

/* ── casca ── */
.topo { display: flex; align-items: center; gap: 12px 24px; min-height: 60px; padding: 10px var(--pad); background: var(--ink); color: var(--paper); }
.marca { display: inline-flex; align-items: baseline; flex: none; font: 800 25px/1 var(--f-head); letter-spacing: -.045em; color: var(--paper); text-decoration: none; }
.marca-o { display: inline-block; width: .57em; height: .57em; margin: 0 .03em; border-radius: 50%; background: currentColor; }
.marca:focus-visible, .topo :focus-visible { outline-color: var(--accent-l); }
.topo-emp { display: flex; align-items: center; gap: 10px; min-width: 0; padding-left: 20px; border-left: 1px solid var(--ink-line); font-size: 14px; font-weight: 500; }
.topo-emp-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topo-fim { display: flex; align-items: center; gap: 12px 22px; margin-left: auto; min-width: 0; }
.topo-cred { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.topo-n { font: 800 22px/1 var(--f-head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.topo-cred-r { font: 500 11px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); }
.topo-eu { display: grid; min-width: 0; text-align: right; line-height: 1.3; }
.eu-l1 { display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; min-width: 0; font-size: 14px; }
.eu-nome { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eu-papel { flex: none; font: 500 11px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); }
.eu-faz { max-width: 68ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--ink-mute); }
#conteudo:focus { outline: none; }
.pagina { max-width: 1480px; margin: 0 auto; padding: clamp(18px, 2.6vw, 32px) var(--pad) 96px; }
.pagina-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; }
.abrindo { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
@media (max-width: 900px) { .eu-faz { display: none; } }
/* a conta, no celular: o botão com as iniciais e o painel com quem entrou, o papel, a conta e o sair */
.topo { position: relative; }
.topo-conta-b { display: none; flex: none; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ink-line); border-radius: 50%; background: var(--ink-2); color: var(--paper); font: 700 14px/1 var(--f-body); letter-spacing: .02em; cursor: pointer; }
.topo-conta-b[aria-expanded="true"], .topo-conta-b:hover { border-color: var(--paper); }
.topo-conta { position: absolute; top: calc(100% - 6px); right: var(--pad); z-index: 70; display: grid; gap: 2px; width: min(300px, calc(100vw - 2 * var(--pad))); padding: 14px 16px; border: 1px solid var(--ink-line); border-radius: var(--r); background: var(--ink); color: var(--paper); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.tc-nome { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.tc-papel { font: 500 11.5px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); }
.tc-emp { margin-bottom: 8px; font-size: 13.5px; color: var(--ink-soft); }
.tc-emp:empty { display: none; }
.tc-l, .tc-sair { display: flex; align-items: center; min-height: 44px; padding: 0; border: 0; border-top: 1px solid var(--ink-line); background: none; color: var(--paper); font: 500 15px var(--f-body); text-align: left; text-decoration: none; cursor: pointer; }
.tc-l:hover, .tc-sair:hover { color: var(--accent-l); }
@media (max-width: 640px) {
  .topo { gap: 8px 12px; padding-top: 8px; padding-bottom: 0; }
  .topo-emp { display: flex; flex: 1 1 0; min-width: 0; padding-left: 12px; font-size: 13.5px; }
  .topo-emp .etq { display: none; }
  .topo-cred-r { display: none; }
  .topo-cred::after { content: 'cr'; font: 500 11px var(--f-mono); color: var(--ink-mute); text-transform: uppercase; }
  .topo-fim { gap: 10px; margin-left: 0; }
  .topo .topo-eu, .topo .topo-sair, .topo .topo-fb { display: none; }
  .topo-conta-b { display: inline-grid; }
  /* as abas numa linha só, de ponta a ponta, embaixo */
  .topo-nav { order: 10; flex: 1 0 100%; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); overflow-x: auto; scrollbar-width: none; gap: 0; border-top: 1px solid var(--ink-line); }
  .topo-nav::-webkit-scrollbar { display: none; }
  .topo .topo-nav a { flex: 1 0 auto; padding: 13px 12px 11px; border-radius: 0; border-bottom: 2px solid transparent; text-align: center; }
  .topo .topo-nav a[aria-current='page'] { background: none; color: var(--paper); border-bottom-color: var(--paper); }
}

/* ── botões ── */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: var(--r); background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center; transition: background .12s, color .12s, border-color .12s; }
.bt:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.bt-cheio { background: var(--ink); color: var(--paper); }
.bt-cheio:hover:not(:disabled) { background: #33322F; border-color: #33322F; }
.bt-acento { background: var(--accent); border-color: var(--accent); color: #fff; }
.bt-acento:hover:not(:disabled) { background: #1E38D6; border-color: #1E38D6; color: #fff; }
.bt-escuro { border-color: #55534E; color: var(--paper); }
.bt-escuro:hover:not(:disabled) { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.bt-claro { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.bt-claro:hover:not(:disabled) { background: #fff; border-color: #fff; color: var(--ink); }
.bt-p { min-height: 36px; padding: 0 12px; font-size: 13px; }
.bt-g { min-height: 52px; padding: 0 22px; font-size: 16px; }
.bt:disabled { opacity: .45; cursor: not-allowed; }
.bt[aria-busy='true'] { cursor: progress; background-image: linear-gradient(90deg, transparent, rgba(138, 135, 125, .35), transparent); background-size: 200% 100%; animation: ocupado 1s linear infinite; }
@keyframes ocupado { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (pointer: coarse) { .bt-p { min-height: 44px; } }

/* ── estados ── */
.g { display: inline-block; flex: none; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; }
.g-confirmado { background: currentColor; }
.g-premissa { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.g-subtotal { background: radial-gradient(circle, currentColor 0 34%, transparent 40%); }
.g-nao_aplicavel { border-color: transparent; background: radial-gradient(circle, var(--mute2) 0 28%, transparent 34%); }
.g-nada { border-style: dotted; border-color: var(--mute2); }
.estado { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.estado-subtotal .g, .estado-pendente .g { color: var(--accent); }
.estado-nao_aplicavel, .estado-nada { font-weight: 500; color: var(--mute); }

.etq { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); font: 500 11px/1 var(--f-mono); letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
a.etq-lk:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.etq-acento { border-color: var(--accent); color: var(--accent); background: transparent; }
.etq-cheia { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.etq-escura { border-color: var(--ink-line); background: transparent; color: var(--ink-mute); }
@media (pointer: coarse) { a.etq-lk { min-height: 30px; padding: 0 10px; } }

.ponto { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.vivo { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-l); animation: pulso 1.7s ease-out infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(92, 124, 255, .65); } 70% { box-shadow: 0 0 0 9px rgba(92, 124, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(92, 124, 255, 0); } }

/* ── blocos ── */
.cartao { padding: 20px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--card); }
.barra { height: 4px; background: var(--line2); }
.barra span { display: block; height: 100%; background: var(--ink); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.barra-esc { background: var(--ink-line); }
.barra-esc span { background: var(--paper); }
.carregando { display: flex; align-items: center; gap: 12px; padding: 28px 0; color: var(--mute); font: 500 12px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; }
.carregando .vivo { background: var(--accent); }
.vazio { padding: 36px 24px; border: 1px dashed var(--line); border-radius: var(--r); text-align: center; }
.vazio-t { font: 700 20px/1.2 var(--f-head); letter-spacing: -.02em; }
.vazio-d { max-width: 52ch; margin: 8px auto 0; color: var(--mute); font-size: 14px; }
.erro { display: grid; gap: 8px; justify-items: start; padding: 14px 16px; border: 1px solid var(--ink); border-left-width: 6px; border-radius: var(--r); background: var(--card); font-size: 14px; overflow-wrap: anywhere; }
.dica { font-size: 13px; color: var(--mute); }

.ficha { display: grid; }
.ficha-l { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line2); font-size: 14px; }
.ficha-l dt { flex: none; color: var(--mute); }
.ficha-l dd { min-width: 0; text-align: right; font: 400 13px/1.45 var(--f-mono); overflow-wrap: anywhere; }
.ficha-dlg .ficha-l dd { font: 500 14px/1.45 var(--f-body); }

/* ── formulários ── */
.campo { display: grid; gap: 6px; }
.campo label { font-size: 14px; font-weight: 600; }
.campo-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.campo-linha { display: flex; align-items: center; gap: 10px; }
.campo-suf { font: 500 14px var(--f-mono); color: var(--mute); }
input[type='text'], input[type='password'], input[type='search'], textarea, select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--ink); border-radius: var(--r); background: #fff; font-size: 16px; line-height: 1.4; }
textarea { resize: vertical; min-height: 88px; }
input::placeholder, textarea::placeholder { color: var(--mute2); }
[aria-invalid='true'] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.campo-num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; max-width: 14em; }
input[type='radio'], input[type='checkbox'] { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); flex: none; }

/* ── diálogo ── */
.dlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--ink); border-radius: var(--r); background: var(--card); color: var(--ink); box-shadow: 8px 8px 0 rgba(10, 10, 10, .9); }
.dlg[open] { display: flex; flex-direction: column; }
.dlg::backdrop { background: rgba(10, 10, 10, .55); }
.dlg-topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--line2); }
.dlg-t { font: 700 20px/1.2 var(--f-head); letter-spacing: -.02em; }
.dlg-x { flex: none; width: 36px; height: 36px; border: 1px solid transparent; border-radius: var(--r); background: none; font-size: 24px; line-height: 1; }
.dlg-x:hover { border-color: currentColor; }
.dlg-corpo { display: grid; gap: 14px; padding: 20px; overflow: auto; }
.dlg-form { display: grid; gap: 14px; }
.dlg-p { font-size: 15px; }
.dlg-acoes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.dlg > .dlg-acoes { padding: 0 20px 20px; }
.dlg-form .dlg-acoes { margin-top: 4px; }

/* ── avisos ── */
.avisos { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90; display: grid; gap: 8px; width: min(560px, calc(100vw - 24px)); transform: translateX(-50%); pointer-events: none; }
.aviso { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 12px 12px 16px; border-radius: var(--r); background: var(--ink); color: var(--paper); font-size: 14px; box-shadow: 0 8px 28px rgba(10, 10, 10, .28); pointer-events: auto; animation: subir .25s ease-out; overflow-wrap: anywhere; }
.aviso-erro { border-left: 6px solid var(--accent-l); }
.aviso-x { flex: none; width: 28px; height: 28px; border: 0; background: none; color: var(--ink-mute); font-size: 20px; line-height: 1; }
.aviso-x:hover { color: var(--paper); }
@keyframes subir { from { opacity: 0; transform: translateY(8px); } }

/* ── entrar ── */
.entrar { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 100dvh; }
.entrar-lado { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(24px, 5vw, 64px); background: var(--ink); color: var(--paper); }
.marca-g { font-size: 38px; }
.entrar-h { max-width: 11.5em; font: 800 clamp(34px, 4.8vw, 64px)/.98 var(--f-head); letter-spacing: -.048em; text-wrap: balance; }
.entrar-fala p { max-width: 46ch; margin-top: 20px; color: var(--ink-soft); font-size: 16px; }
.entrar-estados { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--ink-line); font-size: 14px; color: var(--ink-mute); }
.entrar-estados li { display: flex; align-items: baseline; gap: 12px; }
.entrar-estados .g { position: relative; top: 1px; color: var(--paper); }
.entrar-estados .g-subtotal, .entrar-estados .g-pendente { color: var(--accent-l); }
.entrar-estados strong { margin-right: 10px; color: var(--paper); font-weight: 600; }
.entrar-main { display: grid; place-items: center; padding: clamp(24px, 5vw, 64px); }
.entrar-form { display: grid; gap: 16px; width: min(420px, 100%); }
.entrar-t { font: 800 40px/1 var(--f-head); letter-spacing: -.04em; }
.entrar-form input { font-family: var(--f-mono); font-size: 16px; }
.entrar-form .entrar-codigo { min-height: 72px; padding: 12px 16px; border-width: 2px; font: 500 clamp(24px, 6.4vw, 34px)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.entrar-form .entrar-codigo::placeholder { color: var(--line); }
.entrar-form .entrar-codigo:focus-visible { outline-offset: 3px; }
.entrar-nota { padding: 12px 14px; border: 1px solid var(--accent); border-left-width: 6px; border-radius: var(--r); background: var(--accent-bg); font-size: 14px; }
.entrar-pe { display: grid; gap: 10px; justify-items: start; padding-top: 14px; border-top: 1px solid var(--line2); }
@media (max-width: 860px) {
  .entrar { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .entrar-lado { gap: 28px; }
  .entrar-estados { display: none; }
  .entrar-main { place-items: start center; }
}

/* ── obras ── */
.quem { display: grid; gap: 2px; max-width: 56ch; padding-left: 14px; border-left: 2px solid var(--ink); font-size: 14px; }
.quem-n { font-weight: 600; }
.quem-f { color: var(--mute); }
.obras { display: grid; gap: 12px; margin-top: 28px; }
.obra-c { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(150px, 1fr) minmax(130px, .8fr) 20px; align-items: center; gap: 16px 36px; padding: 24px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--card); color: inherit; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.obra-c:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.obra-c-sit { display: inline-flex; align-items: center; gap: 8px; font: 500 11.5px var(--f-mono); letter-spacing: .05em; text-transform: uppercase; }
.obra-c-sit .ponto { width: 8px; height: 8px; }
.vivo-on .obra-c-sit { color: var(--accent); }
.vivo-on .ponto { background: var(--accent); animation: pulso 1.7s ease-out infinite; }
.pausada .ponto { background: transparent; border: 2px solid var(--ink); }
.encerrada { border-color: var(--line); }
.obra-c-nome { margin-top: 8px; font: 700 clamp(20px, 2.1vw, 27px)/1.12 var(--f-head); letter-spacing: -.028em; overflow-wrap: anywhere; }
.obra-c-meta { margin-top: 6px; font-size: 13.5px; color: var(--mute); }
.obra-c-n { display: flex; align-items: baseline; gap: 8px; }
.obra-c-de { font: 700 18px/1 var(--f-head); letter-spacing: -.02em; color: var(--mute); }
.obra-c .barra { margin-top: 10px; }
.obra-c-leg { margin-top: 6px; font-size: 13px; color: var(--mute); }
.obra-c-seta { font-size: 20px; }
@media (max-width: 760px) {
  .obra-c { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 18px; gap: 16px 20px; }
  .obra-c-a { grid-column: 1 / -1; }
  .obra-c-seta { display: none; }
}

/* ── quadro da obra ── */
.migalha { font-size: 14px; }
.migalha a { color: var(--mute); }
.migalha a:hover { color: var(--ink); }
.obra-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 28px; margin-top: 6px; }
.obra-cab-t { min-width: 0; }
.obra-meta { margin-top: 6px; }
.obra-meta::first-letter { text-transform: uppercase; }
.obra-sit { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 4px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.obra-sit[data-sit='em_execucao'] .ponto, .obra-sit[data-sit='preparando'] .ponto, .obra-sit[data-sit='na_fila'] .ponto { background: var(--accent); animation: pulso 1.7s ease-out infinite; }
.obra-sit[data-sit='pausado'] .ponto, .obra-sit[data-sit='aguardando_conferencia'] .ponto { background: transparent; border: 2px solid var(--ink); }
.obra-sit[data-sit='cancelado'] .ponto, .obra-sit[data-sit='falhou'] .ponto { background: var(--mute2); }
.abas { position: sticky; top: 0; z-index: 20; display: flex; gap: 2px; margin: 18px calc(-1 * var(--pad)) 0; padding: 0 var(--pad); border-bottom: 1px solid var(--ink); background: var(--paper); overflow-x: auto; scrollbar-width: none; }
.abas::-webkit-scrollbar { display: none; }
.aba { display: inline-flex; align-items: baseline; gap: 8px; margin-bottom: -1px; padding: 13px 14px 11px; border-bottom: 3px solid transparent; color: var(--mute); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.aba:first-child { padding-left: 2px; }
.aba:hover { color: var(--ink); }
.aba[aria-current='page'] { border-bottom-color: var(--ink); color: var(--ink); font-weight: 600; }
.aba:focus-visible { outline-offset: -3px; }
.aba-n { font: 500 12px/1 var(--f-mono); }
.obra-off { margin-top: 14px; padding: 10px 14px; border: 1px solid var(--ink); border-left-width: 6px; background: var(--card); font-size: 14px; }
.obra-corpo { margin-top: clamp(18px, 2.4vw, 28px); }
.bloco { min-width: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ── dicas: a explicação que aparece ao passar o mouse, focar ou tocar (dica.js) ── */
.dica-bolha { position: fixed; z-index: 90; max-width: min(320px, calc(100vw - 16px)); padding: 10px 12px; border-radius: var(--r); background: var(--ink); color: var(--paper); box-shadow: 0 8px 24px rgba(10, 10, 10, .24); font: 400 13px/1.45 var(--f-body); letter-spacing: 0; text-align: left; text-transform: none; white-space: normal; pointer-events: none; }
.dica-bolha p + p { margin-top: 6px; }
.dica-b { position: relative; display: inline-grid; flex: none; place-items: center; width: 18px; height: 18px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--mute); font: 600 11px/1 var(--f-body); letter-spacing: 0; vertical-align: middle; cursor: help; }
.dica-b::after { position: absolute; inset: -8px; content: ''; } /* a área de toque passa do desenho */
.dica-b:hover, .dica-b:focus-visible, .dica-b[aria-expanded="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
