/* ForecastHub · temas.
   Claro "Grafite & Cobre": cinzas quentes, menu grafite, cobre nos dados.
   Escuro "Meia-noite Marinho" (10G): fundo quase preto, menu marinho da marca, azul nos dados, areia e cobre de destaque.
   Papéis de cor: --ink (fundo sólido do menu e da faixa), --ink-2 (borda de apoio), --highlight (destaque sobre o menu e a faixa),
   --strong (botão principal e alertas fortes), --warm (bordas quentes e marcas de dados). Os gráficos usam as cores de Charts.cs
   e trocam para a paleta escura em forecasthub.js. Família Roboto. */
:root {
  --ink: #1C1D21;
  --ink-2: #3A3D44;
  --strong: #9A4F22;
  --warm: #C0743A;
  --highlight: #E8A672;
  --side: linear-gradient(180deg, #1C1D21 0%, #2A2C31 100%);
  --band: linear-gradient(180deg, #1C1D21 0%, #33363D 100%);
  --band-text: #FFFFFF;
  --band-muted: #CFCBC4;
  --band-accent: #E8A672;
  --band-line: rgba(255, 255, 255, .16);
  --band-panel: rgba(255, 255, 255, .05);

  --canvas: #F3F2EF;
  --surface: #FFFFFF;
  --surface-alt: #ECE8E1;
  --border: #DEDAD2;
  --text: #1E1F22;
  --heading: #16171A;
  --muted: #5F5B54;
  --accent: #9A4F22;          /* texto de destaque sobre fundo claro (6,0:1) */
  --data: #C0743A;            /* gráficos e barras */
  --data-strong: #9A4F22;
  --track: #E8E4DC;
  --grid: rgba(28, 29, 33, .08);
  --focus: #2F6FED;
  --radius: 12px;
  --gutter: clamp(16px, 3vw, 44px);

  --info-bg: #ECEDF0; --info-text: #2A2C31;
  --warning-bg: #F5E6D6; --warning-text: #6B3416;
  --error-bg: #F6DED6; --error-text: #7A2410;
  --success-bg: #E3EFE6; --success-text: #1E5A33;
  color-scheme: light;

  --cond: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --sans: Roboto, Arial, sans-serif;
}

:root[data-theme="dark"] {
  --ink: #0D1733;
  --ink-2: #5B8DEF;
  --strong: #8D4623;
  --warm: #C98A57;
  --highlight: #EFD6AA;
  --side: linear-gradient(180deg, #0D1733 0%, #182B61 100%);
  --band: linear-gradient(120deg, #0D1733 0%, #123A63 55%, #0E5E7A 100%);
  --band-muted: #C9CFDF;
  --band-accent: #EFD6AA;

  --canvas: #070B16;
  --surface: #101A30;
  --surface-alt: #16223D;
  --border: #22304F;
  --text: #E9EDF7;
  --heading: #FFFFFF;
  --muted: #9AA4BE;
  --accent: #EFD6AA;
  --data: #5B8DEF;
  --data-strong: #8FB4FF;
  --track: #1A2540;
  --grid: rgba(222, 230, 245, .08);
  --info-bg: #15264A; --info-text: #DCE4F7;
  --warning-bg: #3A2A16; --warning-text: #F6E6C9;
  --error-bg: #3D1C14; --error-text: #F5C2B2;
  --success-bg: #15362A; --success-text: #B5E3C6;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--canvas); color: var(--text); font: 15px/1.55 var(--sans); font-feature-settings: "tnum" 1, "lnum" 1; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--cond); }

/* ---------- Side menu (icons only by default; expands; drawer on phones) ---------- */
.fh-shell { --rail: 76px; --side-open: 252px; }
.fh-side { position: fixed; inset: 0 auto 0 0; z-index: 90; width: var(--rail); display: flex; flex-direction: column;
  background: var(--side); color: #EEF0F5; transition: width .18s ease; }
.fh-shell.expanded .fh-side { width: var(--side-open); }
.fh-page { margin-left: var(--rail); min-width: 0; min-height: 100vh; transition: margin-left .18s ease; }
.fh-shell.expanded .fh-page { margin-left: var(--side-open); }
.fh-side-head { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 0 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.fh-side-brand { flex: 1 1 auto; display: flex; align-items: center; gap: 12px; min-width: 0; overflow: hidden; color: #FFFFFF; text-decoration: none; }
.fh-side-brand:focus-visible { outline: 3px solid var(--highlight); outline-offset: 3px; border-radius: 6px; }
.fh-side-brand .fh-brand-name b { font-size: 18px; }
.fh-side-brand .fh-brand-name small { font-size: 10px; }
.fh-side-close { display: none; }
.fh-side-partner { padding: 12px 18px 0; }
.fh-side-partner img { display: block; max-width: 100%; height: 56px; width: auto; }
.fh-side-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.fh-side-group { margin: 14px 8px 6px; min-height: 14px; font: 600 10.5px var(--cond); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); white-space: nowrap; }
.fh-side-item { position: relative; display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 0 14px; border-radius: 10px; color: #DDE2EE; text-decoration: none; font: 500 15px var(--cond); white-space: nowrap; }
.fh-side-button { width: 100%; border: 0; background: transparent; cursor: pointer; text-align: left; }
.fh-side-item svg { flex: none; width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fh-side-item:hover { background: rgba(255, 255, 255, .07); color: #FFFFFF; }
.fh-side-item.active { background: color-mix(in srgb, var(--highlight) 16%, transparent); color: #FFFFFF; font-weight: 700; }
.fh-side-item.active::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--highlight); }
.fh-side-item:focus-visible { outline: 3px solid var(--highlight); outline-offset: 1px; }
.fh-side-item .fh-badge { margin-left: auto; }
.fh-side-foot { padding: 10px 12px 14px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 4px; }
.fh-side-toggle svg { transition: transform .18s ease; }
.fh-shell.expanded .fh-side-toggle svg { transform: rotate(180deg); }
.fh-side .fh-user > summary { width: 100%; min-height: 48px; padding: 0 8px; gap: 12px; border-radius: 10px; }
.fh-side .fh-user > summary:hover { background: rgba(255, 255, 255, .07); }
.fh-side .fh-user-avatar { flex: none; width: 34px; height: 34px; }
.fh-side .fh-user-name { display: flex; flex-direction: column; max-width: 170px; line-height: 1.2; font: 600 14px var(--cond); color: #FFFFFF; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-side .fh-user-name small { font: 400 11px var(--sans); color: #C9CFDF; }
.fh-side .fh-user-panel { left: calc(100% + 10px); right: auto; top: auto; bottom: 0; }
.fh-scrim, .fh-mobilebar { display: none; }
.fh-brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.fh-brand-lockup { display: inline-flex; align-items: center; gap: 12px; }
.fh-mark { display: block; flex: none; }
.fh-brand-name b { font: 800 22px Archivo, var(--cond); letter-spacing: .05em; text-transform: uppercase; }
.fh-brand-name b em { font-style: normal; color: var(--highlight); }
.fh-brand-name small { font: 500 11px var(--cond); letter-spacing: .08em; text-transform: uppercase; color: #C9CFDF; }
/* Collapsed (computer): icons only; the name appears on hover and stays available to screen readers. */
@media (min-width: 641px) {
  .fh-shell:not(.expanded) .fh-side-text, .fh-shell:not(.expanded) .fh-side-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fh-shell:not(.expanded) .fh-side-group { margin: 10px 14px; min-height: 0; height: 1px; background: rgba(255, 255, 255, .12); }
  .fh-shell:not(.expanded) .fh-side-nav { overflow: visible; }
  .fh-shell:not(.expanded) .fh-side-item .fh-badge { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; margin: 0; padding: 0 4px; font-size: 10px; }
  .fh-shell:not(.expanded) .fh-side-item[data-tip]:hover::after,
  .fh-shell:not(.expanded) .fh-side-item[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); z-index: 95; padding: 6px 10px; border-radius: 8px; background: #FFFFFF; color: var(--ink); font: 600 13px var(--cond); white-space: nowrap; box-shadow: 0 6px 18px rgba(8, 14, 32, .25); pointer-events: none; }
}
/* Phone: the menu is a drawer opened by the button at the top. */
@media (max-width: 640px) {
  .fh-side { width: min(288px, 86vw); transform: translateX(-100%); transition: transform .2s ease; }
  .fh-shell.drawer .fh-side { transform: none; box-shadow: 10px 0 30px rgba(8, 14, 32, .3); }
  .fh-page, .fh-shell.expanded .fh-page { margin-left: 0; }
  .fh-side-head { padding: 0 12px 0 18px; }
  .fh-side-brand .fh-brand-name b { font-size: 16px; }
  .fh-side-close { flex: none; display: inline-grid; place-items: center; margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #FFFFFF; font-size: 26px; line-height: 1; cursor: pointer; }
  .fh-side-toggle { display: none; }
  .fh-side .fh-user-panel { left: 0; bottom: calc(100% + 8px); }
  .fh-shell.drawer .fh-scrim { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(8, 14, 32, .35); }
  .fh-mobilebar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--ink); }
  .fh-burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; background: transparent; color: #FFFFFF; cursor: pointer; }
  .fh-burger svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
  .fh-mobile-brand { color: #FFFFFF; text-decoration: none; }
  .fh-mobile-brand .fh-brand-name b { font-size: 18px; }
}

/* ---------- Filter bar ---------- */
.fh-filterbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--canvas) 94%, transparent); backdrop-filter: blur(6px); color: var(--text); border-bottom: 1px solid var(--border); }
.fh-filterbar-inner { padding: 10px var(--gutter) 14px; display: flex; flex-direction: column; }
.fh-filter-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.fh-filter-lead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.fh-filter-summary { font-size: 13px; color: var(--muted); }

/* Collapsible filter panel: the arrow expands it (height via grid rows, then fade/slide). */
.fh-filter-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px 0 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: 700 14px var(--cond); letter-spacing: .03em; text-transform: uppercase; cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.fh-filter-toggle:hover { border-color: var(--warm); }
.fh-filter-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fh-chevron { flex: none; color: var(--warm); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.fh-filterbar.open .fh-chevron { transform: rotate(180deg); }
.fh-filter-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .7, .2, 1); }
.fh-filterbar.open .fh-filter-panel { grid-template-rows: 1fr; }
.fh-filter-panel-inner { min-height: 0; overflow: hidden; opacity: 0; transform: translateY(-8px); visibility: hidden;
  transition: opacity .18s ease, transform .35s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .35s; }
.fh-filterbar.open .fh-filter-panel-inner { opacity: 1; transform: none; visibility: visible;
  transition: opacity .28s ease .07s, transform .35s cubic-bezier(.2, .7, .2, 1), visibility 0s;
  animation: fh-panel-settled 0s linear .35s forwards; }
/* Once open, let the Classificações/Centros dropdowns overflow the panel. */
@keyframes fh-panel-settled { to { overflow: visible; } }
.fh-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; padding-top: 12px; }
.fh-filters .fh-field { flex: 1 1 170px; max-width: 260px; margin: 0; }
.fh-filters .fh-field.wide { max-width: 340px; flex-basis: 220px; }
.fh-filters .fh-field.narrow { flex: 0 1 120px; }
.fh-filters .fh-label { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.fh-filters .fh-radio input, .fh-filters .fh-range { accent-color: var(--warm); }
.fh-filter-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fh-btn.ghost { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, .4); }
.fh-btn.ghost:hover { border-color: var(--highlight); }
.fh-btn.sand { background: var(--highlight); border-color: var(--highlight); color: var(--ink); }
.fh-btn.sand:hover { background: color-mix(in srgb, var(--highlight) 70%, #FFF); }
details.fh-status { position: relative; font-size: 13px; }
details.fh-status > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font: 500 14px var(--cond); }
details.fh-status > summary::-webkit-details-marker { display: none; }
details.fh-status[open] > .fh-status-panel { position: absolute; right: 0; z-index: 60; margin-top: 6px; width: min(360px, 90vw); padding: 14px 16px; border-radius: 10px; background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.fh-status-panel p { margin: 0 0 6px; }
.fh-status-stale { color: var(--warning-text); font-size: 13px; }

/* ---------- Page band (title + executive content) ---------- */
.fh-main { padding: 0 var(--gutter) 64px; }
.fh-band { margin: 20px 0 24px; padding: 26px clamp(20px, 2.5vw, 34px) 30px; background: var(--band); color: var(--band-text); border-radius: 20px; display: flex; flex-direction: column; gap: 20px; }
.fh-band .fh-eyebrow { color: var(--band-accent); }
.fh-band h1 { margin: 4px 0 0; color: #FFFFFF; font: 700 clamp(30px, 4vw, 46px)/1.04 var(--cond); text-transform: uppercase; letter-spacing: -0.005em; }
.fh-band p.fh-band-sub { margin: 6px 0 0; color: var(--band-muted); max-width: 760px; }
.fh-band .fh-caption { color: var(--band-muted); }
.fh-band .fh-kpi { background: var(--band-panel); border-color: var(--band-line); box-shadow: none; }
.fh-band .fh-kpi-label { color: var(--band-muted); }
.fh-band .fh-kpi-value { color: #FFFFFF; }
.fh-band .fh-kpi-detail { color: var(--band-muted); }
.fh-band .fh-kpi--warning, .fh-band .fh-kpi--negative { background: var(--highlight); border-color: var(--highlight); }
.fh-band .fh-kpi--warning .fh-kpi-label, .fh-band .fh-kpi--negative .fh-kpi-label,
.fh-band .fh-kpi--warning .fh-kpi-detail, .fh-band .fh-kpi--negative .fh-kpi-detail { color: #5C2C14; }
.fh-band .fh-kpi--warning .fh-kpi-value, .fh-band .fh-kpi--negative .fh-kpi-value { color: var(--ink); }
.fh-eyebrow { font: 600 13px var(--cond); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* Pace (burn-up) block inside the band */
.fh-pace { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: stretch; }
.fh-pace-chart { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fh-pace-scroll { overflow-x: auto; }
/* Pace chart animation: plays when the chart is drawn or its data changes; the end state is the static chart
   (with reduced motion, nothing moves). Timings match RunDelayMs/RunMs in PaceChart.razor. */
.fh-pace-exp { animation: fh-pace-reveal .8s cubic-bezier(.4, 0, .2, 1) both; }
.fh-pace-label { animation: fh-pace-fade .4s ease-out .6s both; }
.fh-pace-run { animation: fh-pace-reveal 1.5s cubic-bezier(.4, 0, .2, 1) .35s both; }
.fh-pace-dot, .fh-pace-end, .fh-pace-ring { transform-box: fill-box; transform-origin: center; }
.fh-pace-dot { animation: fh-pace-pop .35s cubic-bezier(.3, 1.6, .5, 1) both; }
.fh-pace-end { animation: fh-pace-pop .45s cubic-bezier(.3, 1.6, .5, 1) 1.8s both; }
.fh-pace-ring { fill: none; opacity: 0; animation: fh-pace-ring 1.3s ease-out 2.05s 2; }
.fh-pace-drop { transform-box: fill-box; transform-origin: top; animation: fh-pace-drop .45s ease-out 2s both; }
.fh-pace-note { animation: fh-pace-note .5s ease-out 2.15s both; }
@keyframes fh-pace-reveal { from { clip-path: inset(-20px 100% -20px -20px); } to { clip-path: inset(-20px -20px -20px -20px); } }
@keyframes fh-pace-fade { from { opacity: 0; } }
@keyframes fh-pace-pop { from { transform: scale(0); } }
@keyframes fh-pace-ring { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(3.4); } }
@keyframes fh-pace-drop { from { transform: scaleY(0); } }
@keyframes fh-pace-note { from { opacity: 0; transform: translateY(8px); } }
.fh-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font: 600 13px var(--cond); color: #DCE1EC; }
.fh-legend span { display: inline-flex; align-items: center; gap: 8px; }
.fh-legend i { display: inline-block; width: 22px; height: 0; }
.fh-legend i.sand { border-top: 4px solid var(--highlight); border-radius: 2px; }
.fh-legend i.dash { border-top: 2px dashed #FFFFFF; }
.fh-ledger { flex: 1 1 280px; margin: 0; display: flex; flex-direction: column; border: 1px solid var(--band-line); border-radius: 16px; background: var(--band-panel); padding: 6px 22px; }
.fh-ledger > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.fh-ledger > div:first-child { border-top: 0; }
.fh-ledger dt { font: 600 13px var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--band-muted); }
.fh-ledger dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.fh-ledger dd b { font: 700 28px/1.1 var(--cond); color: #FFFFFF; }
.fh-ledger dd span { font-size: 13px; color: var(--band-muted); display: inline-flex; gap: 6px; align-items: center; }
.fh-ledger .exec dd b { color: var(--highlight); font-size: 36px; }
.fh-ledger .exec dd span { color: #F6E6C9; font-weight: 500; }

/* Attention cards */
.fh-attention { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.fh-att { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--strong); border-radius: var(--radius); }
.fh-att-label { font: 600 13px var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fh-att b { font: 700 34px/1.1 var(--cond); color: var(--heading); }
.fh-att p { margin: 0; font-size: 13px; color: var(--muted); }
.fh-att.pend { background: var(--surface-alt); border-top-color: var(--warm); }
.fh-att .fh-btn { align-self: flex-start; margin-top: 8px; }

/* Execution bars with calendar marker */
.fh-exec { display: flex; flex-direction: column; gap: 6px; }
.fh-exec-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 14px; }
.fh-exec-line b { font: 600 15px var(--cond); }
.fh-exec-line span { font: 700 15px var(--cond); white-space: nowrap; }
.fh-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font: 600 12px var(--cond); text-transform: uppercase; letter-spacing: .04em; }
.fh-tag.ahead { background: var(--surface-alt); color: var(--accent); }
.fh-tag.within { background: var(--info-bg); color: var(--info-text); }
.fh-track { position: relative; height: 8px; border-radius: 4px; background: var(--track); }
.fh-track > div { height: 8px; border-radius: 4px; background: var(--data); max-width: 100%; }
.fh-track > div.hi { background: var(--data-strong); }
.fh-track > i { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px solid var(--text); }

/* Actual by cost center (Visão geral): ranked rows with a bar relative to the largest center */
/* All centers in a box about ten rows tall that scrolls on its own (thin scrollbar, focusable for the keyboard). */
.fh-centers-scroll { margin: 14px 0 4px; max-height: 556px; overflow-y: auto; overscroll-behavior: contain; padding: 0 14px 0 8px; border: 1px solid var(--grid); border-radius: 12px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.fh-centers-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fh-centers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fh-centers li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(80px, 3fr) 7.5em 4.5em; align-items: center; gap: 4px 16px; min-height: 44px; padding: 6px 0; border-top: 1px solid var(--grid); }
.fh-centers li:first-child { border-top: 0; }
.fh-center-name { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
button.fh-center-name { margin: 0; padding: 4px 6px; margin-left: -6px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; max-width: calc(100% + 6px); }
button.fh-center-name:hover { background: var(--surface-alt); }
button.fh-center-name:hover b { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
button.fh-center-name:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.fh-center-name b { max-width: 100%; }
.fh-center-name b { font: 600 15px var(--cond); color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-center-name small { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fh-center-bar { height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; }
.fh-center-bar > span { display: block; height: 100%; border-radius: 5px; background: var(--data); transform-origin: left; animation: fh-center-grow .6s cubic-bezier(.4, 0, .2, 1) both; }
.fh-centers li:first-child .fh-center-bar > span { background: var(--data-strong); }
.fh-center-value { font: 700 16px var(--cond); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fh-center-share { font: 600 14px var(--cond); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
@keyframes fh-center-grow { from { transform: scaleX(0); } }
@media (max-width: 560px) {
  .fh-centers li { grid-template-columns: minmax(0, 1fr) auto auto; }
  .fh-center-name { grid-column: 1 / -1; }
  .fh-centers-scroll { max-height: 70vh; }
}

/* ---------- Toast (one-shot confirmations) ---------- */
.fh-toast { position: fixed; right: 20px; bottom: 20px; z-index: 80; max-width: min(440px, calc(100vw - 40px)); display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--success-bg); color: var(--success-text); box-shadow: 0 16px 40px rgba(13, 23, 51, .22); }
.fh-toast button { border: 0; background: none; color: inherit; cursor: pointer; font-weight: 700; min-height: 32px; }

/* ---------- Form controls ---------- */
.fh-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; min-width: 0; }
.fh-label { font: 600 14px var(--cond); color: var(--text); }
.fh-field select, .fh-field input[type="text"], .fh-field input[type="number"], .fh-field textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text);
}
.fh-field textarea { min-height: 96px; resize: vertical; }
.fh-field input::placeholder, .fh-field textarea::placeholder { color: var(--muted); opacity: 1; }
.fh-field :disabled { opacity: .65; }
.fh-radio { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fh-radio label { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; font-size: 15px; }
.fh-radio input { accent-color: var(--strong); width: 18px; height: 18px; }
.fh-check { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0 12px; cursor: pointer; }
.fh-check input { accent-color: var(--strong); width: 18px; height: 18px; margin-top: 2px; }
.fh-range { width: 100%; min-height: 32px; accent-color: var(--strong); }

.fh-multi { position: relative; }
.fh-multi .fh-multi-summary { width: 100%; text-align: left; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 44px; padding: 6px 32px 6px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; position: relative; }
.fh-multi .fh-multi-summary::after { content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); opacity: .75; }
.fh-placeholder { color: var(--muted); }
.fh-chip { display: inline-flex; align-items: center; max-width: 100%; padding: 2px 8px; border-radius: 999px; background: var(--surface-alt); font: 600 13px var(--cond); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-multi-panel { position: absolute; z-index: 70; left: 0; min-width: 100%; width: max-content; max-width: min(420px, 92vw); margin-top: 6px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.fh-multi-panel input[type="text"] { width: 100%; min-height: 40px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
/* Classificações: the supplier and its pending expenses in a compact column, not the full page width */
.fh-class-narrow { max-width: 640px; }
.fh-class-picks { margin: 0 0 12px; padding: 0; border: 0; min-width: 0; }
.fh-class-picks legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 0; margin-bottom: 4px; }
.fh-class-picks legend span { font: 400 13px var(--sans); color: var(--muted); }
.fh-class-picks-actions { display: flex; gap: 14px; margin-bottom: 4px; }
.fh-class-picks-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); scrollbar-width: thin; }
.fh-class-picks-list label { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 12px; border-top: 1px solid var(--grid); cursor: pointer; }
.fh-class-picks-list label:first-child { border-top: 0; }
.fh-class-picks-list label:hover { background: var(--surface-alt); }
.fh-class-picks-list label.on { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.fh-class-picks-list input { accent-color: var(--strong); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.fh-class-pick-text { display: flex; flex-direction: column; min-width: 0; }
.fh-class-pick-text b { font: 600 14px var(--sans); color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-class-pick-text small { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fh-multi-list { max-height: 280px; overflow-y: auto; margin-top: 6px; }
.fh-multi-list label { display: flex; align-items: flex-start; gap: 8px; min-height: 36px; padding: 6px; border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--text); }
.fh-multi-list label:hover { background: var(--surface-alt); }
.fh-multi-list input { accent-color: var(--strong); margin-top: 3px; }
.fh-multi-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; }
.fh-link { border: 0; padding: 6px 4px; background: none; color: var(--accent); font: 700 14px var(--cond); cursor: pointer; min-height: 32px; }

/* Code search: free text plus a browsable list of expense codes. */
.fh-combo-box { position: relative; }
.fh-combo-control { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: text; }
.fh-combo-control:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.fh-combo-control.has-chip { padding-left: 6px; }
.fh-field .fh-combo-control input[type="text"] { flex: 1 1 120px; min-width: 0; min-height: 40px; padding: 0; border: 0; border-radius: 0; background: transparent; outline: none; }
.fh-combo-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 60%; min-width: 0; padding: 4px 10px; border-radius: 999px; background: var(--surface-alt); font: 600 14px var(--cond); white-space: nowrap; }
.fh-combo-chip-code { color: var(--accent); font-variant-numeric: tabular-nums; }
.fh-combo-chip-name { overflow: hidden; text-overflow: ellipsis; }
.fh-combo-clear { flex: none; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.fh-combo-clear:hover { background: var(--surface-alt); color: var(--text); }
.fh-combo-panel { position: absolute; z-index: 70; left: 0; right: 0; margin-top: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); overflow: hidden; animation: fh-combo-in .14s ease-out; }
@keyframes fh-combo-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fh-combo-panel { animation: none; } }
.fh-combo-head { padding: 8px 12px; border-bottom: 1px solid var(--border); font: 600 12px var(--cond); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fh-combo-list { list-style: none; margin: 0; padding: 4px; max-height: 320px; overflow-y: auto; }
.fh-combo-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.fh-combo-option.active { background: var(--surface-alt); }
.fh-combo-option.selected { box-shadow: inset 3px 0 0 var(--accent); }
.fh-combo-code { font: 700 14px var(--cond); color: var(--accent); font-variant-numeric: tabular-nums; }
.fh-combo-name { display: flex; flex-direction: column; min-width: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.fh-combo-name small { font-size: 12px; font-weight: 400; color: var(--muted); }
.fh-combo-total { font: 600 13px var(--cond); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fh-combo-empty { padding: 12px; font-size: 14px; color: var(--muted); }
.fh-combo-hint { min-height: 22px; margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.fh-combo-hint strong { color: var(--text); }
@media (max-width: 520px) { .fh-combo-total { display: none; } .fh-combo-option { grid-template-columns: auto minmax(0, 1fr); } }

.fh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; white-space: nowrap; padding: 0 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: 700 15px var(--cond); letter-spacing: .02em; text-decoration: none; cursor: pointer; }
.fh-btn:hover { border-color: var(--strong); }
.fh-btn.primary { background: var(--strong); border-color: var(--strong); color: #FFFFFF; text-transform: uppercase; letter-spacing: .03em; }
.fh-btn.primary:hover { background: color-mix(in srgb, var(--strong) 82%, #000); }
.fh-btn.block { width: 100%; }
.fh-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Content ---------- */
.fh-section-title { margin: 2px 0 12px; color: var(--heading); font: 700 21px/1.2 var(--cond); text-transform: uppercase; }
.fh-caption { margin: 4px 0 12px; color: var(--muted); font-size: 13px; }
.fh-text { margin: 6px 0 12px; line-height: 1.6; }
.fh-grid { display: grid; gap: 14px; margin-bottom: 18px; }
.fh-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fh-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fh-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fh-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fh-grid.split-wide { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.fh-grid.split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.fh-grid.split-narrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.fh-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 10px; }
.fh-row > .fh-field { flex: 1 1 220px; }
.fh-spread { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.fh-card { min-width: 0; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 18px; }

.fh-kpi { min-height: 120px; padding: 18px 20px; border: 1px solid var(--border); border-top: 4px solid var(--warm); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.fh-kpi--positive { border-top-color: var(--ink-2); }
.fh-kpi--warning { border-top-color: var(--warm); }
.fh-kpi--negative { border-top-color: var(--strong); }
.fh-kpi--neutral { border-top-color: #8A93AD; }
.fh-kpi-label { font: 600 13px var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fh-kpi-value { font: 700 clamp(26px, 2.6vw, 36px)/1.08 var(--cond); color: var(--heading); overflow-wrap: anywhere; }
.fh-kpi-detail { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

.fh-notice { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; line-height: 1.5; font-size: 14px; }
.fh-notice.info { background: var(--info-bg); color: var(--info-text); }
.fh-notice.warning { background: var(--warning-bg); color: var(--warning-text); }
.fh-notice.error { background: var(--error-bg); color: var(--error-text); }
.fh-notice.success { background: var(--success-bg); color: var(--success-text); }

.fh-empty { padding: 40px 24px; border: 1px dashed var(--border); border-radius: var(--radius); text-align: center; color: var(--muted); margin-bottom: 18px; background: var(--surface); }
.fh-empty strong { display: block; margin-top: 10px; color: var(--text); font: 700 17px var(--cond); text-transform: uppercase; }
.fh-empty p { margin: 4px 0 0; }
.fh-empty-mark { display: inline-block; width: 28px; height: 3px; border-radius: 999px; background: var(--warm); }

.fh-metric { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.fh-metric-label { font: 600 13px var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fh-metric-value { margin-top: 2px; font: 700 28px var(--cond); color: var(--heading); }

details.fh-expander { margin: 0 0 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
details.fh-expander > summary { padding: 12px 18px; min-height: 44px; cursor: pointer; font: 700 16px var(--cond); text-transform: uppercase; }
details.fh-expander > div { padding: 0 18px 18px; }

.fh-tabs { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 4px 0 16px; border-bottom: 1px solid var(--border); }
.fh-tabs button { min-height: 44px; padding: 0 2px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font: 600 16px var(--cond); cursor: pointer; }
.fh-tabs button[aria-selected="true"] { color: var(--heading); border-bottom-color: var(--warm); }

.fh-chart { width: 100%; min-height: 120px; }

.fh-table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); margin-bottom: 10px; }
table.fh-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.fh-table th { position: sticky; top: 0; z-index: 1; padding: 10px 12px; background: var(--surface-alt); color: var(--heading); font: 700 14px var(--cond); text-transform: uppercase; letter-spacing: .03em; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border); }
.fh-table th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; min-height: 28px; }
.fh-table th button:focus-visible { outline: 3px solid var(--focus); }
.fh-table td { height: 35px; padding: 6px 12px; border-bottom: 1px solid var(--grid); white-space: nowrap; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
.fh-table .num { text-align: right; font-family: var(--cond); font-size: 15px; }
.fh-table tr:hover td { background: color-mix(in srgb, var(--warm) 7%, transparent); }
.fh-table td.input-cell { padding: 4px 8px; }
.fh-table td.input-cell input { width: 100%; min-width: 9rem; min-height: 36px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); text-align: right; }

.fh-upload { padding: 18px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; }

.fh-markdown { line-height: 1.65; max-width: 920px; }
.fh-markdown h1, .fh-markdown h2, .fh-markdown h3 { color: var(--heading); text-transform: uppercase; }
.fh-markdown table { border-collapse: collapse; margin: 16px 0; }
.fh-markdown th, .fh-markdown td { border: 1px solid var(--border); padding: 6px 10px; }
.fh-markdown code { padding: 1px 5px; border-radius: 5px; background: var(--surface-alt); }
.fh-markdown pre { overflow-x: auto; padding: 12px; border-radius: 10px; background: var(--surface-alt); }

@media (max-width: 1100px) {
  .fh-grid.cols-4, .fh-grid.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fh-grid.split-wide, .fh-grid.split, .fh-grid.split-narrow { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .fh-filters .fh-field, .fh-filters .fh-field.wide, .fh-filters .fh-field.narrow { max-width: none; flex: 1 1 100%; }
  .fh-grid.cols-2, .fh-grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .fh-pace-chart svg { min-width: 680px; }
}

@media (max-width: 560px) {
  .fh-grid.cols-4, .fh-grid.cols-5 { grid-template-columns: minmax(0, 1fr); }
  .fh-brand img { height: 70px; }
}

/* ---------- Projeção: answer, decisions ---------- */
.fh-proj-toolbar { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: flex-end; margin-bottom: 6px; }
.fh-proj-toolbar .fh-field { margin-bottom: 0; }
.fh-proj-class { flex: 0 1 340px; }
.fh-proj-codes { flex: 0 1 380px; min-width: 220px; }
.fh-proj-codes .fh-field { margin-bottom: 0; }
details.fh-disclosure { margin: 6px 0 18px; }
details.fh-disclosure > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--muted); font-size: 14px; list-style: none; }
details.fh-disclosure > summary::-webkit-details-marker { display: none; }
details.fh-disclosure > summary::before { content: "▸"; color: var(--accent); transition: transform .2s ease; }
details.fh-disclosure[open] > summary::before { transform: rotate(90deg); }
details.fh-disclosure > summary b { color: var(--text); font-weight: 500; }
details.fh-disclosure[open] > summary { margin-bottom: 10px; }
.fh-proj-settings { padding: 0 2px; }
.fh-proj-settings .fh-row { gap: 6px 32px; }

.fh-proj-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px 32px; align-items: center; border-top: 4px solid var(--ink-2); }
.fh-proj-big { font: 700 clamp(34px, 4.4vw, 52px)/1.05 var(--cond); color: var(--heading); margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.fh-proj-compare { margin: 0 0 6px; font-size: 16px; }
.fh-proj-compare .up { color: var(--error-text); font-weight: 700; }
.fh-proj-compare .down { color: var(--success-text); font-weight: 700; }
.fh-proj-whatif { margin: 10px 0 4px; padding: 8px 12px; border-radius: 8px; background: var(--surface-alt); font-size: 14px; }
.fh-proj-quarters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fh-proj-quarter { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); display: flex; flex-direction: column; gap: 2px; }
.fh-proj-quarter span { font: 600 13px var(--cond); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.fh-proj-quarter b { font: 700 22px var(--cond); color: var(--heading); }
.fh-proj-quarter small { color: var(--muted); font-size: 12.5px; }
.fh-proj-quarter.on { border-color: var(--warm); box-shadow: inset 0 3px 0 var(--warm); }

.fh-decisions { border-top: 4px solid var(--warm); }
.fh-decisions-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 24px; }
.fh-decisions-head > div:first-child { flex: 1 1 420px; }
.fh-decisions-who { width: 240px; margin-bottom: 8px; }
.fh-decisions-msg { color: var(--success-text); font-weight: 500; }
.fh-decision-list { display: grid; gap: 10px; margin: 6px 0 12px; }
.fh-decision { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 14px 16px; border: 1px solid var(--border); border-left-width: 4px; border-radius: 10px; background: var(--surface); }
.fh-decision.sev-alta { border-left-color: var(--error-text); }
.fh-decision.sev-media { border-left-color: var(--warm); }
.fh-decision.sev-baixa { border-left-color: #8A93AD; }
.fh-decision.sev-alta .fh-ai-chip { background: var(--error-bg); color: var(--error-text); }
.fh-decision.sev-media .fh-ai-chip { background: var(--warning-bg); color: var(--warning-text); }
.fh-decision-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 4px; }
.fh-decision-title strong { font-size: 15.5px; }
.fh-decision-main p { margin: 3px 0 0; font-size: 14px; }
.fh-decision-numbers { display: flex; gap: 18px; align-items: flex-start; text-align: right; }
.fh-decision-numbers div { display: flex; flex-direction: column; }
.fh-decision-numbers span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; font-family: var(--cond); }
.fh-decision-numbers b { font: 700 18px var(--cond); font-variant-numeric: tabular-nums; }
.fh-decision-numbers .suggested b { color: var(--accent); }
.fh-decision-numbers small { color: var(--muted); font-size: 12.5px; }
.fh-decision-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.fh-decision-confirm { width: 100%; padding: 12px 14px 2px; border-radius: 10px; background: var(--surface-alt); }
.fh-decision-confirm .fh-field.narrow { flex: 0 0 auto; }
.fh-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 20px; }
.fh-card-head .fh-field { margin-bottom: 6px; }
.fh-proj-item { width: min(100%, 460px); }
details.fh-proj-more { padding: 14px 22px; }
details.fh-proj-more > summary { color: var(--text); font: 700 16px var(--cond); text-transform: uppercase; }
.fh-proj-api { margin-top: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); }
@media (max-width: 1000px) {
  .fh-proj-hero { grid-template-columns: minmax(0, 1fr); }
  .fh-decision { grid-template-columns: minmax(0, 1fr); }
  .fh-decision-numbers { text-align: left; }
}
@media (max-width: 560px) {
  .fh-proj-quarters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fh-decisions-who { width: 100%; }
}

/* ---------- Projeção: pending board ---------- */
.fh-board { border-top: 4px solid var(--warm); }
.fh-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; align-items: start; }
.fh-notice { overflow-wrap: anywhere; }
.fh-lane { background: var(--surface-alt); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; max-height: 760px; overflow-y: auto; }
.fh-lane-title { position: sticky; top: -10px; z-index: 1; margin: -10px -10px 2px; padding: 10px 14px 8px; background: var(--surface-alt); display: flex; justify-content: space-between;
  font: 700 14px var(--cond); text-transform: uppercase; letter-spacing: .04em; color: var(--heading); }
.fh-lane-title span { min-width: 24px; padding: 0 8px; border-radius: 999px; background: var(--surface); text-align: center; }
.fh-lane-empty { margin: 6px 4px; color: var(--muted); font-size: 13.5px; }
.fh-lane-effect { margin: 0 4px 2px; font-size: 13.5px; color: var(--muted); }
.fh-kcard { background: var(--surface); border: 1px solid var(--border); border-left-width: 4px; border-left-color: var(--border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.fh-kcard.sev-alta { border-left-color: var(--error-text); }
.fh-kcard.sev-media { border-left-color: var(--warm); }
.fh-kcard.sev-baixa { border-left-color: #8A93AD; }
.fh-kcard.sev-alta .fh-ai-chip, .fh-ai-chip.alta { background: var(--error-bg); color: var(--error-text); }
.fh-kcard.sev-media .fh-ai-chip, .fh-ai-chip.media { background: var(--warning-bg); color: var(--warning-text); }
.fh-ai-chip.ok { background: var(--success-bg); color: var(--success-text); }
.fh-kcard.late { border-left-color: var(--error-text); }
.fh-kcard.late .fh-kcard-who { color: var(--error-text); font-weight: 600; }
.fh-kcard.done { border-left-color: var(--success-text); }
.fh-kcard-top { display: flex; align-items: baseline; gap: 8px; }
.fh-link { all: unset; cursor: pointer; font-weight: 700; color: var(--heading); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; overflow-wrap: anywhere; }
.fh-link:hover { text-decoration-color: var(--warm); }
.fh-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.fh-kcard-what { margin: 0; font-size: 13.5px; }
.fh-kcard-question { margin: 2px 0; font-size: 13.5px; font-style: italic; color: var(--accent); }
.fh-kcard-values { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.fh-kcard-values b { font: 700 18px var(--cond); font-variant-numeric: tabular-nums; }
.fh-kcard-values b.suggested { color: var(--accent); }
.fh-kcard-values small { color: var(--muted); }
.fh-kcard-who { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.fh-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--ink-2); color: #FFFFFF; font: 700 10px/22px var(--sans); text-align: center; flex: none; }
.fh-kcard-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.fh-kcard-editor { margin-top: 6px; padding: 10px; border-radius: 8px; background: var(--surface-alt); display: flex; flex-direction: column; gap: 2px; }
.fh-kcard-editor .fh-field { margin-bottom: 8px; }
.fh-kcard-editor .fh-row { gap: 8px 12px; margin-bottom: 0; }
.fh-field textarea { min-height: 56px; }
@media (max-width: 1100px) { .fh-lanes { grid-template-columns: minmax(0, 1fr); } .fh-lane { max-height: none; } }

/* ---------- Item detail modal ---------- */
.fh-table tr.clickable { cursor: pointer; }
.fh-table tr.clickable:focus-visible td { outline: none; background: color-mix(in srgb, var(--warm) 14%, transparent); }
.fh-modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(13, 23, 51, .08); backdrop-filter: blur(8px) saturate(.9); -webkit-backdrop-filter: blur(8px) saturate(.9); display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px; overflow-y: auto; }
.fh-modal { width: min(1100px, 100%); background: var(--canvas); color: var(--text); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); padding: 0 22px 22px; outline: none; }
.fh-modal-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin: 0 -22px 14px; padding: 18px 22px 16px; border-radius: 16px 16px 0 0; background: var(--band); color: #FFFFFF; }
.fh-modal-head .fh-eyebrow { color: var(--band-accent); }
.fh-modal-head h2 { margin: 4px 0 6px; font: 700 clamp(20px, 2.4vw, 28px)/1.15 var(--cond); text-transform: uppercase; color: #FFFFFF; }
.fh-modal-tags { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13.5px; color: var(--band-muted); }
/* One scrollbar while a window is open: the page behind stops scrolling; tables inside grow with the window (DataGrid Inline). */
html:has(.fh-modal-backdrop), body:has(.fh-modal-backdrop) { overflow: hidden; }
.fh-modal-close { all: unset; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; text-align: center; font: 400 28px/40px var(--sans); color: #FFFFFF; background: rgba(255, 255, 255, .08); flex: none; }
.fh-modal-close:hover { background: rgba(255, 255, 255, .18); }
.fh-modal-close:focus-visible { outline: 3px solid var(--highlight); }
.fh-modal-range { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-end; margin-bottom: 10px; }
.fh-modal-range .fh-field { margin-bottom: 0; }
.fh-modal-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.fh-modal-kpis > div { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); display: flex; flex-direction: column; }
.fh-modal-kpis > div.total { border-color: var(--ink-2); box-shadow: inset 0 3px 0 var(--ink-2); }
.fh-modal-kpis span { font: 600 12px var(--cond); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.fh-modal-kpis b { font: 700 20px var(--cond); font-variant-numeric: tabular-nums; }
.fh-modal-kpis small { color: var(--muted); font-size: 12.5px; }
.fh-modal-kpis small.up { color: var(--error-text); font-weight: 700; }
.fh-modal-kpis small.down { color: var(--success-text); font-weight: 700; }
.fh-table tr.partial td { background: color-mix(in srgb, var(--warm) 12%, transparent); }
.fh-table tr.future td { color: var(--muted); }
.fh-table tfoot td { font-weight: 700; border-top: 2px solid var(--border); background: var(--surface-alt); }
.fh-modal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px 28px; margin-top: 10px; }
.fh-modal-grid p { margin: 4px 0; font-size: 14px; }
.fh-modal-grid.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fh-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 10px; font-size: 14px; }
.fh-facts dt { color: var(--muted); }
.fh-facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.fh-season { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 70px; align-items: end; }
.fh-season div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.fh-season i { width: 100%; background: var(--ink-2); border-radius: 3px 3px 0 0; min-height: 2px; }
.fh-season span { font-size: 11px; color: var(--muted); }
@media (max-width: 760px) {
  .fh-modal-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fh-modal-grid, .fh-modal-grid.even { grid-template-columns: minmax(0, 1fr); }
  .fh-modal { padding: 0 14px 16px; }
  .fh-modal-head { margin: 0 -14px 12px; padding: 14px; }
}

/* ---------- Projection adjustments ---------- */
.fh-adjust-form { padding: 14px 16px 4px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-alt); }
.fh-adjust-form .fh-check { margin: 0 0 14px; align-self: center; }
.fh-btn.small { min-height: 34px; padding: 0 12px; font-size: 14px; }
.fh-btn.ghost-dark { background: transparent; color: var(--text); border-color: var(--border); }
.fh-btn.ghost-dark:hover { border-color: var(--warm); }

/* ---------- AI analysis (Projeção) ---------- */
.fh-ai { border-top: 4px solid var(--ink-2); }
.fh-ai-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-start; justify-content: space-between; }
.fh-ai-head > div:first-child { flex: 1 1 420px; }
.fh-ai-summary { margin: 4px 0 16px; font-size: 16px; line-height: 1.6; color: var(--text); max-width: 980px; }
.fh-ai-subtitle { margin: 18px 0 8px; font: 700 15px var(--cond); text-transform: uppercase; letter-spacing: .04em; color: var(--heading); }
.fh-ai-alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fh-ai-alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-left-width: 4px; border-radius: 10px; background: var(--surface); }
.fh-ai-alert p { margin: 4px 0 0; }
.fh-ai-alert.sev-alta { border-left-color: var(--error-text); }
.fh-ai-alert.sev-media { border-left-color: var(--warm); }
.fh-ai-alert.sev-baixa { border-left-color: var(--neutral, #8A93AD); }
.fh-ai-chip { flex: none; min-width: 52px; text-align: center; padding: 2px 8px; border-radius: 999px; font: 700 12px var(--cond); text-transform: uppercase; letter-spacing: .04em; background: var(--surface-alt); color: var(--heading); }
.fh-ai-alert.sev-alta .fh-ai-chip { background: var(--error-bg); color: var(--error-text); }
.fh-ai-alert.sev-media .fh-ai-chip { background: var(--warning-bg); color: var(--warning-text); }
.fh-ai-item { color: var(--muted); }
.fh-ai-question { color: var(--accent); font-style: italic; }
.fh-ai-list { margin: 0; padding-left: 20px; }
.fh-ai-list li { margin: 4px 0; }
.fh-ai-claude { margin-top: 22px; padding-top: 6px; border-top: 1px solid var(--border); }
.fh-ai-claude .fh-row { align-items: center; }

/* ---------- Loading: budget bars in the band + shimmering page skeleton ---------- */
.fh-bars { display: block; width: min(100%, 280px); height: auto; overflow: visible; }
.fh-bars.small { width: 64px; flex: none; }
.fh-bars-base { stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.fh-bars-bar { fill: var(--warm); transform-box: fill-box; transform-origin: 50% 100%; animation: fh-bars-grow 3.4s cubic-bezier(.2, .7, .2, 1) infinite; animation-delay: calc(var(--i) * 75ms); }
.fh-bars-bar.hot { fill: var(--strong); }
.fh-bars-line { fill: none; stroke: var(--highlight); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: fh-bars-line 3.4s ease-in-out .35s infinite; }
@keyframes fh-bars-grow { 0% { transform: scaleY(0); opacity: 1; } 28%, 80% { transform: scaleY(1); opacity: 1; } 94%, 100% { transform: scaleY(1); opacity: 0; } }
@keyframes fh-bars-line { 0% { stroke-dashoffset: 100; opacity: 1; } 45%, 78% { stroke-dashoffset: 0; opacity: 1; } 92%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.fh-dots i { display: inline-block; width: 4px; height: 4px; margin-left: 3px; border-radius: 50%; background: currentColor; vertical-align: middle; animation: fh-dot 1.2s ease-in-out infinite; }
.fh-dots i:nth-child(2) { animation-delay: .15s; }
.fh-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes fh-dot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.fh-loading { min-height: 236px; }
.fh-loading-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.fh-loading-stage .fh-band-sub { margin: 0; }
.fh-loading-inline { display: flex; align-items: center; gap: 12px; margin: 12px 0; color: var(--muted); }
.fh-loading-inline .fh-bars-base { stroke: var(--border); }
.fh-loading-inline .fh-bars-line { stroke: var(--ink-2); }
:root[data-theme="dark"] .fh-loading-inline .fh-bars-line { stroke: var(--highlight); }

.fh-sk { display: block; border-radius: var(--radius); background: linear-gradient(100deg, var(--track) 30%, var(--sk-hi, var(--surface)) 50%, var(--track) 70%); background-size: 300% 100%; animation: fh-shimmer 1.5s linear infinite; }
:root[data-theme="dark"] .fh-sk { --sk-hi: #2A3A60; }
@keyframes fh-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.fh-skeleton { display: flex; flex-direction: column; gap: 14px; }
.fh-skeleton-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fh-skeleton-kpis .fh-sk { height: 112px; }
.fh-skeleton-split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; }
.fh-skeleton-split .fh-sk { height: 300px; }
.fh-sk-row { height: 18px; border-radius: 8px; }
.fh-sk-row.short { width: 62%; }

/* First load, before the interactive layout exists. */
.fh-boot { min-height: 100vh; background: var(--canvas); }
body:has(.fh-shell, .fh-login) .fh-boot { display: none; }
.fh-boot-top { background: var(--ink); color: #FFFFFF; padding: 18px var(--gutter); min-height: 98px; display: flex; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.fh-boot-band { background: var(--band); color: var(--band-text); border-radius: 0 0 28px 28px; padding: 36px var(--gutter) 40px; min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.fh-boot-band p { margin: 0; color: var(--band-muted); }
.fh-boot .fh-skeleton { padding: 24px var(--gutter); }

@media (max-width: 900px) {
  .fh-skeleton-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fh-skeleton-split { grid-template-columns: minmax(0, 1fr); }
  .fh-skeleton-split .fh-sk:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fh-filterbar.open .fh-filter-panel-inner { overflow: visible; }
  .fh-bars-line { stroke-dashoffset: 0; }
}

/* MultiSelect and RadioGroup carry their own .fh-field wrapper inside a filter cell. */
.fh-filters .fh-field .fh-field { max-width: none; flex: none; margin: 0; }

/* Compact tables whose text wraps (e.g. long supplier names on phones). */
.fh-table-text { table-layout: fixed; }
.fh-table-text td { white-space: normal; overflow-wrap: anywhere; }
.fh-table-text td.num { white-space: nowrap; width: 9.5rem; }

/* Phone-only toggles (must beat .fh-btn's display). */
.fh-btn.fh-menu-toggle { display: none; }
@media (max-width: 900px) {
  .fh-btn.fh-menu-toggle { display: inline-flex; }
}

/* Focus moves to the page title on navigation (for screen readers); no ring for that programmatic focus. */
.fh-band h1:focus, .fh-login-form h1:focus { outline: none; }

/* ---------- Access control: user menu, admin badge, request and admin pages ---------- */
.fh-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--highlight); color: var(--ink); font: 700 12px var(--sans); }
.fh-user { position: relative; }
.fh-user > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; color: #EEF0F5; font: 500 15px var(--cond); }
.fh-user > summary::-webkit-details-marker { display: none; }
.fh-user > summary:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; border-radius: 6px; }
.fh-user-avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--highlight); color: var(--ink); font: 700 13px var(--sans); }
.fh-user-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-user-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 120; width: min(300px, calc(100vw - 32px)); padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 14px 34px rgba(8, 14, 32, .25); display: flex; flex-direction: column; gap: 8px; }
.fh-user-panel p { margin: 0; overflow-wrap: anywhere; }
.fh-user-panel .fh-btn { align-self: flex-start; }
.fh-install-note { padding: 8px var(--gutter); background: var(--warning-bg); color: var(--warning-text); font-size: 13.5px; }
.fh-request-card { display: flex; flex-direction: column; gap: 8px; }
.fh-request-who { margin: 0; font: 700 18px var(--cond); color: var(--heading); text-transform: uppercase; }
.fh-request-items { display: flex; flex-direction: column; gap: 8px; }
.fh-request-items .fh-label { display: block; margin-bottom: 4px; }
.fh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fh-request-why { margin: 0; font-style: italic; color: var(--muted); overflow-wrap: anywhere; }
.fh-warn-text { color: var(--warning-text); font-weight: 700; }
.fh-btn.danger { background: var(--error-text); border-color: var(--error-text); color: #FFFFFF; }
.fh-access-flags { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.fh-check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; }
.fh-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--strong); }
.fh-check span { display: flex; flex-direction: column; }
.fh-check small { color: var(--muted); }
.fh-dimmed { opacity: .55; }
.fh-access-preview { margin: 4px 0 14px; padding: 10px 12px; border-left: 4px solid var(--warm); background: var(--surface); border-radius: 6px; }
.fh-access-history { margin: 0; padding-left: 18px; font-size: 13.5px; }
.fh-access-history li { margin: 4px 0; overflow-wrap: anywhere; }
.fh-access-history small { color: var(--muted); }

/* Phone: the filter bar scrolls with the page (its panel can be tall). */
@media (max-width: 640px) { .fh-filterbar { position: static; } }

/* ---------- Sign-in page (/entrar): "Editorial" layout; only the large background mark is animated ---------- */
/* Always the dark version (Meia-noite Marinho), whatever theme the person chose inside the platform. */
.fh-login { --canvas: #070B16; --surface: #101A30; --border: #22304F; --text: #E9EDF7; --heading: #FFFFFF; --muted: #9AA4BE; --accent: #EFD6AA;
  --surface-alt: #16223D; --info-bg: #15264A; --info-text: #DCE4F7; --error-bg: #3D1C14; --error-text: #F5C2B2; --login-accent: #EFD6AA; --login-art: #EFD6AA;
  color-scheme: dark; position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); overflow: hidden; background: var(--canvas); color: var(--text); }
body:has(.fh-login) { background: #070B16; }
.fh-login-art { position: absolute; left: 40%; top: -5vh; height: 78vh; min-height: 440px; width: auto; color: var(--login-art); opacity: .07; pointer-events: none; }
.fh-login-art rect, .fh-login-arrow { fill: currentColor; }
.fh-login-line { fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
/* Plays once on load: the letters appear one by one (CSS), then forecasthub.js draws the trend line with the arrow riding on its tip.
   Until the script runs the line and arrow stay hidden (html.fh-js); without motion, or without the script, the mark is shown whole. */
.fh-login-letters rect { animation: fh-login-fade .45s ease-out both; }
.fh-login-letters rect:nth-child(2) { animation-delay: .1s; }
.fh-login-letters rect:nth-child(3) { animation-delay: .2s; }
.fh-login-letters rect:nth-child(4) { animation-delay: .3s; }
@keyframes fh-login-fade { from { opacity: 0; } }
.fh-js .fh-login-art:not(.fh-drawn) .fh-login-line { stroke-dasharray: 200; stroke-dashoffset: 200; }
.fh-js .fh-login-art:not(.fh-drawn) .fh-login-arrow { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .fh-js .fh-login-art:not(.fh-drawn) .fh-login-line { stroke-dashoffset: 0; }
  .fh-js .fh-login-art:not(.fh-drawn) .fh-login-arrow { opacity: 1; }
}
.fh-login-intro { display: flex; flex-direction: column; min-height: 100vh; padding: 56px clamp(24px, 5vw, 64px); }
.fh-login .fh-brand-name b { color: var(--heading); }
.fh-login .fh-brand-name b em { color: var(--login-accent); }
.fh-login .fh-brand-name small { color: var(--muted); }
.fh-login-title { margin: auto 0 0; padding-top: 48px; max-width: 640px; font: 700 clamp(36px, 4.4vw, 58px)/1.03 var(--cond); color: var(--heading); }
.fh-login-title em { font-style: normal; color: var(--accent); }
.fh-login-list { list-style: none; margin: 34px 0 0; padding: 0; max-width: 660px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fh-login-list li { border-top: 2px solid var(--accent); padding-top: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.fh-login-list b { display: block; margin-bottom: 2px; color: var(--heading); font: 700 16px var(--cond); }
.fh-login-panel { display: flex; align-items: center; padding: 56px 44px; background: var(--surface); border-left: 1px solid var(--border); }
.fh-login-form { width: 100%; max-width: 360px; }
.fh-login-form .fh-eyebrow { margin: 0; }
.fh-login-form h1 { margin: 10px 0 6px; font: 700 30px/1.1 var(--cond); color: var(--heading); }
.fh-login-lead { margin: 0 0 22px; color: var(--muted); }
/* "Você saiu" -> "Entrar": each letter moves on its own (forecasthub.js, resetSignedOut); pre keeps the space between words. */
.fh-reset-letter { display: inline-block; white-space: pre; }
/* Microsoft's sign-in button style (light version, for contrast on the dark page). */
.fh-login-ms { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 0 16px; border: 1px solid #FFFFFF; border-radius: 6px; background: #FFFFFF; color: #1E1F22; font: 600 15px "Segoe UI", var(--sans); text-decoration: none; }
.fh-login-ms:hover { background: #E9EDF7; }
.fh-login-ms:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.fh-login-foot { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.fh-login-foot a { color: var(--accent); }
/* "Fale com o TI" dialog on the sign-in page: GLPI ticket or the IT WhatsApp. */
.fh-support { width: min(380px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.fh-support[open] { animation: fh-support-in .18s ease-out; }
@keyframes fh-support-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.fh-support::backdrop { background: rgba(3, 6, 14, .62); backdrop-filter: blur(4px); }
.fh-support-body { position: relative; padding: 26px 24px 22px; }
.fh-support .fh-eyebrow { margin: 0; }
.fh-support h2 { margin: 8px 0 4px; font: 700 24px/1.1 var(--cond); color: var(--heading); }
.fh-support-lead { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.fh-support-close { position: absolute; top: 10px; right: 10px; margin: 0; }
.fh-support-close button { width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.fh-support-close button:hover { background: var(--surface-alt); color: var(--heading); }
.fh-support-close button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fh-support-actions { display: flex; flex-direction: column; gap: 10px; }
.fh-support-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 16px; border-radius: 10px; font: 600 15px var(--sans); text-decoration: none; }
.fh-support-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fh-support-btn.glpi { background: #FFFFFF; color: #1E1F22; }
.fh-support-btn.glpi:hover { background: #E9EDF7; }
.fh-support-btn.whatsapp { background: #25D366; color: #0B2A17; }
.fh-support-btn.whatsapp:hover { background: #3EDC7B; }
@media (max-width: 900px) {
  .fh-login { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .fh-login-art { left: 32%; top: 0; height: min(560px, 72vh); min-height: 0; }
  .fh-login-intro { min-height: 0; padding: 26px 22px 0; }
  .fh-login-title { margin-top: 0; padding-top: 30px; font-size: 32px; }
  .fh-login-list { display: none; }
  .fh-login-panel { align-items: flex-start; padding: 26px 22px 40px; background: transparent; border-left: 0; }
  .fh-login-form { max-width: none; }
}
