/* Projeto Gilliard — Portal de Transparência
 * Tokens e componentes. Fonte única: DESIGN.md (raiz do projeto).
 * Sem framework: o portal público funciona sem JS e pesa pouco. */

/* Fontes servidas do próprio projeto (21/11/2026): as mesmas famílias, pesos e faixas de letras que o
 * Google Fonts entregava, sem o pedido a outro servidor. Arquivos e licença em assets/fonts/. */
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/fraunces-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/fraunces-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* tinta (cromo) */
  --gy-ink-900: #08121F;
  --gy-ink-800: #0D1B2C;
  --gy-ink-700: #16283F;
  --gy-ink-600: #23384F;
  /* petróleo (primária) */
  --gy-primary-50: #E8F5F9;
  --gy-primary-300: #5FBACD;
  --gy-primary-500: #128BA8;
  --gy-primary-600: #0E7490;
  --gy-primary-700: #0B5B72;
  /* âmbar (acento, três degraus) */
  --gy-accent-500: #F2A413;
  --gy-accent-600: #C67F05;
  --gy-accent-text: #8A5703;
  --gy-accent-50: #FFF5E1;
  /* semânticas */
  --gy-success-500: #12805C;
  --gy-success-600: #0C6A4C;   /* jade de texto sobre o jade claro (o 500 dá 4,4:1 ali) */
  --gy-success-50: #E4F6EF;
  --gy-danger-500: #C8352A;
  --gy-danger-50: #FDECEA;
  /* superfície e texto */
  --gy-canvas: #F3F6F8;
  --gy-surface: #FFFFFF;
  --gy-surface-sunken: #F7F9FB;
  --gy-border: #E3E9EF;
  --gy-border-strong: #CBD6E2;
  --gy-text: #0F1E33;
  --gy-text-muted: #5A6B82;
  /* bloco de código (resposta de API), sobre a tinta 900 */
  --gy-code-text: #DCE7F2;
  --gy-code-key: #7FD0E2;
  --gy-code-string: #FFD58A;
  --gy-code-number: #9BE3C1;
  /* forma */
  --gy-radius-sm: 8px;
  --gy-radius-md: 12px;
  --gy-radius-lg: 16px;
  /* botões: retângulo de canto curto. A pílula (999px) fica SÓ para etiquetas de status —
     assim a forma diz o que é clicável (pedido de Roberto, 29/09/2026: "ovais estão ultrapassados") */
  --gy-radius-btn: 8px;
  --gy-shadow-sm: 0 1px 2px rgba(15,30,51,.06), 0 1px 3px rgba(15,30,51,.05);
  --gy-shadow-md: 0 4px 12px rgba(15,30,51,.07), 0 2px 4px rgba(15,30,51,.04);
  --gy-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* voz de acento: serifa itálica para grifos e numeração editorial */
  --gy-font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--gy-border-strong) transparent; }
::selection { background: rgba(18,139,168,.22); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--gy-border-strong); border-radius: 999px; border: 2px solid var(--gy-canvas); }
::-webkit-scrollbar-track { background: transparent; }
body {
  margin: 0;
  font-family: var(--gy-font);
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--gy-text);
  background: var(--gy-canvas);
}
img { max-width: 100%; }
a { color: var(--gy-primary-600); }
a:hover { color: var(--gy-primary-700); }
:focus-visible { outline: 2px solid var(--gy-primary-500); outline-offset: 2px; border-radius: 2px; }

h1, h2 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; font-weight: 700; }

.gy-eyebrow {
  display: block;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gy-text-muted);
}
.gy-muted { color: var(--gy-text-muted); font-size: .8125rem; }

.gy-skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--gy-surface); color: var(--gy-primary-700);
  padding: 8px 16px; border-radius: 0 0 var(--gy-radius-sm) 0;
  font-weight: 700;
}
.gy-skip:focus { left: 0; }

kbd {
  display: inline-block; min-width: 1.6em; text-align: center;
  padding: 1px 6px; font: 700 .8125rem/1.5 var(--gy-font);
  background: var(--gy-surface-sunken); border: 1px solid var(--gy-border-strong);
  border-bottom-width: 2px; border-radius: 6px;
}

/* ---------------------------------------------------- ícones inline */
.gy-icone { width: 1.25em; height: 1.25em; vertical-align: -0.25em; flex: none; }

/* ---------------------------------------------------- barra de utilidades */
.gy-utilbar { background: var(--gy-ink-900); font-size: .8125rem; }
.gy-utilbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.gy-utilbar nav { display: flex; flex-wrap: wrap; gap: 2px; }
.gy-utilbar nav a {
  color: #B9C6D6; text-decoration: none; padding: 6px 10px; border-radius: var(--gy-radius-sm);
}
.gy-utilbar nav a:hover { background: var(--gy-ink-600); color: #fff; }
.gy-utilbar-acess { display: flex; gap: 4px; }
.gy-utilbar-acess button {
  min-width: 34px; min-height: 28px; padding: 2px 8px; cursor: pointer;
  background: var(--gy-ink-700); color: #D4DDE7; border: 1px solid var(--gy-ink-600);
  border-radius: var(--gy-radius-sm); font: inherit; font-weight: 700;
}
.gy-utilbar-acess button:hover { background: var(--gy-ink-600); color: #fff; }

/* ---------------------------------------------------- cabeçalho com marca */
.gy-header {
  background: var(--gy-surface);
  border-bottom: 1px solid var(--gy-border);
  box-shadow: var(--gy-shadow-sm);
  position: relative; z-index: 2; /* a sombra assenta sobre o hero */
}
.gy-header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.gy-marca { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--gy-text); }
.gy-marca strong { display: block; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; font-size: 1.0625rem; }
.gy-marca small { color: var(--gy-text-muted); }
.gy-brasao {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  background: var(--gy-primary-50); color: var(--gy-primary-600);
  border-radius: var(--gy-radius-md);
}
.gy-brasao .gy-icone { width: 28px; height: 28px; }
.gy-brasao-img { height: 52px; width: auto; max-width: 120px; object-fit: contain; flex: none; }
.gy-header-nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gy-header-nav > a:not(.gy-btn) { color: var(--gy-text-muted); text-decoration: none; font-weight: 500; font-size: .875rem; }
.gy-header-nav > a:not(.gy-btn):hover { color: var(--gy-primary-700); }

/* ---------------------------------------------------- hero */
.gy-hero {
  position: relative; overflow: hidden;
  background: var(--gy-ink-900);
  background-image:
    radial-gradient(rgba(255,255,255,.045) 1px, transparent 1.5px),
    radial-gradient(90% 150% at 20% -50%, rgba(18,139,168,.42), transparent 60%),
    radial-gradient(60% 90% at 95% 110%, rgba(242,164,19,.10), transparent 65%);
  background-size: 22px 22px, auto, auto;
  color: #fff;
  padding: 56px 0 44px;
  border-bottom: 3px solid var(--gy-accent-500);
}
.gy-hero-foto { background-size: cover; background-position: center; }
.gy-hero-marca {
  position: absolute; right: -50px; bottom: -80px; width: 420px; height: 420px;
  color: #fff; opacity: .05; pointer-events: none;
}
.gy-hero-marca .gy-icone { width: 100%; height: 100%; stroke-width: .6; }
.gy-hero .gy-container { position: relative; }
.gy-hero-eyebrow {
  display: block; margin-bottom: 10px;
  font-size: .6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--gy-accent-500);
}
.gy-hero h1 {
  margin: 0 0 10px; color: #fff;
  font-size: clamp(1.875rem, 4.2vw, 2.625rem);
  letter-spacing: -0.03em; line-height: 1.08; max-width: 22ch;
}
.gy-grifo {
  font-family: var(--gy-font-display); font-style: italic; font-weight: 600;
  color: var(--gy-accent-500); position: relative; white-space: nowrap;
  padding: 0 .06em;
}
.gy-grifo::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -.14em; height: .3em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 25 3, 55 3, 70 6 S 105 10, 118 4' fill='none' stroke='%23F2A413' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.gy-hero > .gy-container > p, .gy-hero-texto > p { margin: 0; color: #B9C6D6; max-width: 62ch; font-size: 1rem; }
.gy-hero-stats {
  display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 20px;
  color: #8FA3B8; font-size: .8125rem;
}
.gy-hero-stats span { padding: 0 16px; border-left: 1px solid var(--gy-ink-600); }
.gy-hero-stats span:first-child { padding-left: 0; border-left: 0; }
.gy-hero-stats strong { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.gy-trilha { font-size: .8125rem; color: #7E90A5; margin-bottom: 10px; }
.gy-trilha a { color: var(--gy-primary-300); text-decoration: none; }
.gy-trilha a:hover { text-decoration: underline; }
.gy-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.gy-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; min-height: 40px; border-radius: var(--gy-radius-btn);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #E4EBF2; text-decoration: none; font-weight: 600; font-size: .875rem;
}
.gy-pill:hover { background: rgba(255,255,255,.12); border-color: var(--gy-accent-500); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.gy-pill:focus-visible { outline: 2px solid var(--gy-accent-500); outline-offset: 2px; }
.gy-pill .gy-icone { color: var(--gy-accent-500); }

.gy-container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.gy-main-publico { padding-top: 28px; padding-bottom: 48px; }
.gy-resultado-busca { margin: 0 0 20px; }

/* ---------------------------------------------------- grupos e cards */
/* sem numeração (01, 02…) nem linha divisória entre as seções: retiradas a pedido do
   cliente (28/09/2026) — a separação é só o espaço entre os grupos */
.gy-grupo { margin-bottom: 48px; }
.gy-grupo-cab { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.gy-grupo-icone {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  background: linear-gradient(160deg, var(--gy-primary-50), rgba(18,139,168,.16));
  color: var(--gy-primary-600);
  border-radius: var(--gy-radius-md);
}
.gy-grupo-icone .gy-icone { width: 24px; height: 24px; }
.gy-grupo-textos { flex: 1; min-width: 240px; }
.gy-grupo-cab h2 { margin: 0; font-size: 1.375rem; letter-spacing: -0.025em; }
.gy-grupo-cab p { margin: 2px 0 0; color: var(--gy-text-muted); font-size: .875rem; max-width: 78ch; }
.gy-chip-lei {
  align-self: center;   /* sem "nowrap": texto comprido quebra em vez de empurrar a página para o lado no celular */
  font-size: .6875rem; font-weight: 700; letter-spacing: .04em;
  color: var(--gy-accent-text); background: var(--gy-accent-50);
  border: 1px solid rgba(198,127,5,.3); border-radius: 15px;   /* numa linha continua pílula; em duas, cantos redondos */
  padding: 5px 12px;
}

.gy-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.gy-card-item {
  position: relative; display: flex; align-items: center; gap: 12px;
  background: var(--gy-surface); border: 1px solid transparent;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15,30,51,.05), 0 4px 14px rgba(15,30,51,.055);
  padding: 15px 16px; min-height: 62px;
  color: var(--gy-text); text-decoration: none; font-weight: 600; font-size: .875rem;
}
.gy-card-item:hover {
  border-color: rgba(18,139,168,.35);
  color: var(--gy-primary-700);
  box-shadow: 0 12px 28px rgba(11,91,114,.16), 0 2px 6px rgba(15,30,51,.08);
}
.gy-card-icone {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  background: var(--gy-primary-50); color: var(--gy-primary-600);
  border-radius: 10px;
}
.gy-card-item:hover .gy-card-icone { background: var(--gy-primary-500); color: #fff; }
.gy-card-icone .gy-icone { width: 20px; height: 20px; }
.gy-card-item .gy-badge { position: absolute; top: -8px; right: 10px; }
.gy-ext { color: var(--gy-text-muted); font-weight: 400; }

/* ---------------------------------------------------- busca clara (FAQ, legislação) */
.gy-busca-clara { display: flex; gap: 8px; max-width: 560px; margin-bottom: 20px; }
.gy-busca-clara .gy-input { min-height: 48px; }

/* ---------------------------------------------------- perguntas frequentes */
.gy-faq-cat { margin-bottom: 28px; }
.gy-faq-cat-titulo {
  font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--gy-primary-700); margin: 0 0 10px; padding-bottom: 8px;
  border-bottom: 2px solid var(--gy-primary-50);
}
.gy-faq {
  background: var(--gy-surface); border: 1px solid var(--gy-border);
  border-radius: 12px; margin-bottom: 8px; box-shadow: var(--gy-shadow-sm);
  overflow: hidden;
}
.gy-faq summary {
  display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none;
  padding: 15px 18px; font-weight: 700; min-height: 44px;
}
.gy-faq summary::-webkit-details-marker { display: none; }
.gy-faq summary::before {
  content: "+"; flex: none; width: 22px; height: 22px; display: grid; place-items: center;
  font-size: 1.1rem; color: var(--gy-primary-600); background: var(--gy-primary-50);
  border-radius: 6px; line-height: 1;
}
.gy-faq[open] summary::before { content: "−"; }
.gy-faq[open] summary { color: var(--gy-primary-700); }
.gy-faq-resp { padding: 0 18px 18px 52px; color: var(--gy-text); }
.gy-faq-cta {
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; margin-top: 20px; border-top: 3px solid var(--gy-accent-500);
}

/* ---------------------------------------------------- legislação */
.gy-lei-lista { display: grid; gap: 8px; }
.gy-lei {
  display: flex; align-items: flex-start; gap: 14px; text-decoration: none;
  background: var(--gy-surface); border: 1px solid var(--gy-border);
  border-radius: 12px; padding: 15px 18px; color: var(--gy-text);
  box-shadow: var(--gy-shadow-sm); border-left: 3px solid transparent;
}
.gy-lei:hover { border-left-color: var(--gy-accent-500); box-shadow: var(--gy-shadow-md); color: var(--gy-primary-700); }
.gy-lei-inativa { opacity: .7; box-shadow: none; }
.gy-lei-icone {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  background: var(--gy-primary-50); color: var(--gy-primary-600); border-radius: 10px;
}
.gy-lei-icone .gy-icone { width: 20px; height: 20px; }
.gy-lei-texto strong { display: block; font-weight: 700; }
.gy-lei-texto small { display: block; margin-top: 2px; color: var(--gy-text-muted); }

/* ---------------------------------------------------- mapa do site */
.gy-mapa-servicos { margin-bottom: 20px; border-top: 3px solid var(--gy-accent-500); }
.gy-mapa-servicos .gy-mapa-links { columns: 2; }
@media (max-width: 560px) { .gy-mapa-servicos .gy-mapa-links { columns: 1; } }
.gy-mapa-cols { columns: 3; column-gap: 24px; }
@media (max-width: 900px) { .gy-mapa-cols { columns: 2; } }
@media (max-width: 560px) { .gy-mapa-cols { columns: 1; } }
.gy-mapa-secao { break-inside: avoid; margin-bottom: 24px; }
.gy-mapa-secao h3 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 8px;
  font-size: .9375rem; padding-bottom: 6px; border-bottom: 1px solid var(--gy-border);
}
.gy-mapa-icone {
  display: grid; place-items: center; width: 28px; height: 28px; flex: none;
  background: var(--gy-primary-50); color: var(--gy-primary-600); border-radius: 8px;
}
.gy-mapa-icone .gy-icone { width: 16px; height: 16px; }
.gy-mapa-links { list-style: none; margin: 0; padding: 0; }
.gy-mapa-links li { margin: 0 0 5px; }
.gy-mapa-links a { color: var(--gy-primary-700); text-decoration: none; font-size: .875rem; }
.gy-mapa-links a:hover { text-decoration: underline; }

/* ---------------------------------------------------- protocolo (e-SIC/Ouvidoria) */
.gy-protocolo-card { border-top: 3px solid var(--gy-success-500); }
.gy-protocolo-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.gy-protocolo-grid > div {
  background: var(--gy-surface-sunken); border: 1px dashed var(--gy-border-strong);
  border-radius: var(--gy-radius-md); padding: 14px 16px;
}
.gy-protocolo-num {
  display: block; margin-top: 2px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1.375rem; letter-spacing: .04em; font-weight: 700;
  color: var(--gy-primary-700);
}

/* ---------------------------------------------------- satisfação */
.gy-satisfacao {
  background: var(--gy-surface); border-top: 1px solid var(--gy-border);
  padding: 36px 0 40px; text-align: center;
}
.gy-satisfacao h2 { margin: 0 0 4px; font-size: 1.25rem; letter-spacing: -0.02em; }
.gy-satisfacao-opcoes { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.gy-satisfacao-opcoes button {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 104px; padding: 14px 10px; cursor: pointer;
  background: var(--gy-surface); border: 1px solid var(--gy-border);
  border-radius: var(--gy-radius-md); font: inherit;
  box-shadow: 0 1px 2px rgba(15,30,51,.05);
}
.gy-satisfacao-opcoes button span { font-size: 1.75rem; line-height: 1; filter: grayscale(.35); }
.gy-satisfacao-opcoes button small { color: var(--gy-text-muted); font-size: .75rem; font-weight: 600; }
.gy-satisfacao-opcoes button:hover {
  border-color: var(--gy-primary-500); background: var(--gy-primary-50);
  box-shadow: 0 8px 20px rgba(11,91,114,.14);
}
.gy-satisfacao-opcoes button:hover span { filter: none; }

/* ---------------------------------------------------- acessibilidade: fonte e contraste */
/* A− também reduz ABAIXO do padrão (pedido do cliente): dois degraus menores, três maiores */
html.gy-fonte-m2 { font-size: 75%; }
html.gy-fonte-m1 { font-size: 87.5%; }
html.gy-fonte-1 { font-size: 112.5%; }
html.gy-fonte-2 { font-size: 125%; }
html.gy-fonte-3 { font-size: 137.5%; }
/* (o alto contraste fica no fim do arquivo: sobrepõe todos os componentes) */

/* ---------------------------------------------------- busca */
.gy-busca { position: relative; margin: 24px 0 0; max-width: 580px; }
.gy-busca input[type="search"] {
  width: 100%; min-height: 56px; padding: 8px 132px 8px 22px;
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--gy-radius-md);
  background: rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font: inherit; font-size: 1rem;
  box-shadow: 0 14px 36px rgba(0,0,0,.28);
}
.gy-busca input::placeholder { color: #7E90A5; }
.gy-busca input:focus {
  outline: none; border-color: var(--gy-accent-500);
  box-shadow: 0 0 0 3px rgba(242,164,19,.22), 0 14px 36px rgba(0,0,0,.32);
}
.gy-busca .gy-btn {
  position: absolute; top: 6px; right: 6px; bottom: 6px;
  min-height: 0; border-radius: var(--gy-radius-btn); padding: 0 24px;
}

/* ---------------------------------------------------- badges de status */
.gy-badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid transparent;
}
.gy-badge-vigente  { color: var(--gy-success-500); background: var(--gy-success-50); border-color: rgba(18,128,92,.25); }
.gy-badge-a-vencer { color: var(--gy-accent-text); background: var(--gy-accent-50); border-color: rgba(198,127,5,.3); }
.gy-badge-vencido  { color: var(--gy-danger-500); background: var(--gy-danger-50); border-color: rgba(200,53,42,.25); }
.gy-badge-oculto   { color: var(--gy-text-muted); background: var(--gy-surface-sunken); border-color: var(--gy-border-strong); }
.gy-badge-pendente { color: var(--gy-danger-500); background: var(--gy-danger-50); border-color: rgba(200,53,42,.25); }
.gy-badge-ok       { color: var(--gy-success-500); background: var(--gy-success-50); border-color: rgba(18,128,92,.25); }

/* ---------------------------------------------------- cards e KPIs */
.gy-card {
  background: var(--gy-surface); border: 1px solid var(--gy-border);
  border-radius: var(--gy-radius-lg); box-shadow: var(--gy-shadow-sm);
  padding: 20px;
}
.gy-grid { display: grid; gap: 12px; }
.gy-grid-kpi { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.gy-stat { position: relative; overflow: hidden; padding-top: 23px; }
.gy-stat::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--gy-primary-500);
}
.gy-stat.tom-acento::before  { background: var(--gy-accent-500); }
.gy-stat.tom-sucesso::before { background: var(--gy-success-500); }
.gy-stat.tom-perigo::before  { background: var(--gy-danger-500); }
.gy-stat .valor {
  font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums;
  line-height: 1.1; margin-top: 4px;
}
.gy-stat-ic {
  position: absolute; top: 16px; right: 16px;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  color: var(--gy-primary-600); background: var(--gy-primary-50);
}
.gy-stat-ic .gy-icone { width: 20px; height: 20px; }
.gy-stat.tom-acento  .gy-stat-ic { color: var(--gy-accent-text); background: var(--gy-accent-50); }
.gy-stat.tom-sucesso .gy-stat-ic { color: var(--gy-success-600, #0c6a4c); background: var(--gy-success-50, #e6f4ee); }
.gy-stat.tom-perigo  .gy-stat-ic { color: var(--gy-danger-500); background: rgba(200,53,42,.10); }
.gy-stat .gy-eyebrow { padding-right: 46px; }
.gy-stat .valor small { font-weight: 500; }
.gy-stat-link { text-decoration: none; color: inherit; }
.gy-stat-link::before { background: var(--gy-primary-300); }
.gy-stat-link:hover .gy-stat-ic { background: var(--gy-primary-500); color: #fff; }

/* ---------------------------------------------------- dashboard refinado */
.gy-dash { display: grid; grid-template-columns: minmax(280px, 340px) 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 900px) { .gy-dash { grid-template-columns: 1fr; } }

.gy-conform {
  display: flex; align-items: center; gap: 22px;
  background:
    radial-gradient(120% 100% at 100% 0, var(--gy-primary-50), transparent 60%),
    var(--gy-surface);
}
.gy-conform-ring { position: relative; width: 122px; height: 122px; flex: none; }
.gy-conform-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gy-conform-ring circle { fill: none; stroke-width: 11; }
.gy-conform-ring .trilha { stroke: var(--gy-surface-sunken); }
.gy-conform-ring .prog { stroke-linecap: round; transition: stroke-dashoffset .7s cubic-bezier(.2,.7,.3,1); }
.gy-conform-ok  .prog { stroke: var(--gy-success-500, #12805C); }
.gy-conform-warn .prog { stroke: var(--gy-accent-500); }
.gy-conform-bad .prog { stroke: var(--gy-danger-500); }
.gy-conform-num { position: absolute; inset: 0; display: grid; place-items: center; }
.gy-conform-num strong { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.gy-conform-num small { font-size: 1rem; color: var(--gy-text-muted); font-weight: 700; }
.gy-conform-info p { margin: 8px 0 12px; color: var(--gy-text-muted); font-size: .875rem; }
.gy-conform-info p strong { color: var(--gy-text); }

.gy-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }

/* armazenamento em linha */
.gy-armaz { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.gy-armaz-ic {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  background: var(--gy-primary-50); color: var(--gy-primary-600); border-radius: 12px;
}
.gy-armaz-ic .gy-icone { width: 24px; height: 24px; }
.gy-armaz-corpo { flex: 1; min-width: 0; }
.gy-armaz-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.gy-armaz-bar { height: 9px; background: var(--gy-surface-sunken); border-radius: 999px; overflow: hidden; }
.gy-armaz-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gy-primary-500), var(--gy-primary-300)); transition: width .5s cubic-bezier(.2,.7,.3,1); }
.gy-armaz-fill.cheio { background: linear-gradient(90deg, var(--gy-danger-500), #e07a70); }

.gy-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gy-card-head h3 { margin: 0; }

.gy-dash-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }

.gy-lista-prazos { list-style: none; margin: 0; padding: 0; }
.gy-lista-prazos li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--gy-border); }
.gy-lista-prazos li:last-child { border-bottom: 0; }
.gy-lista-prazos a { text-decoration: none; color: var(--gy-primary-700); }
.gy-lista-prazos a:hover { text-decoration: underline; }

.gy-lista-atividade { list-style: none; margin: 0; padding: 0; }
.gy-lista-atividade li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--gy-border); font-size: .875rem; }
.gy-lista-atividade li:last-child { border-bottom: 0; }
.gy-ativ-quando { flex: none; color: var(--gy-text-muted); font-variant-numeric: tabular-nums; font-size: .8125rem; min-width: 74px; }

/* ---------------------------------------------------- tabelas */
.gy-tabela-wrap { overflow-x: auto; border: 1px solid var(--gy-border); border-radius: var(--gy-radius-md); background: var(--gy-surface); }
table.gy-tabela { width: 100%; border-collapse: collapse; font-size: .875rem; }
.gy-tabela th {
  background: var(--gy-surface-sunken); text-align: left;
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--gy-text-muted); padding: 10px 14px; white-space: nowrap;
  border-bottom: 1px solid var(--gy-border);
}
.gy-tabela th a { color: inherit; text-decoration: none; }
.gy-tabela td { padding: 10px 14px; border-bottom: 1px solid var(--gy-border); vertical-align: top; }
.gy-tabela tr:last-child td { border-bottom: 0; }
.gy-tabela tbody tr:hover { background: rgba(18,139,168,.04); }
.gy-tabela td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------------------------------------------------- botões e formulários
   Sistema de botões (revisão de 29/09/2026). Preenchimento chapado nos tokens — o degradê com
   brilho interno datava e o seu primeiro tom era literal, ignorando a cor do órgão —, borda um
   tom abaixo e sombra curta. Estados completos: hover escurece e eleva 1 px, clique afunda,
   foco em anel duplo (branco + petróleo 700: aparece em fundo claro e em fundo escuro),
   desabilitado neutro e "enviando" com indicador. */
.gy-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 18px; border-radius: var(--gy-radius-btn);
  font: inherit; font-size: .875rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.005em;
  cursor: pointer; text-decoration: none; text-align: center;
  border: 1px solid var(--gy-primary-700);
  background: var(--gy-primary-600); color: #fff;
  box-shadow: 0 1px 2px rgba(8,18,31,.18);
  -webkit-tap-highlight-color: transparent;
}
.gy-btn:hover { background: var(--gy-primary-700); color: #fff; box-shadow: 0 6px 16px rgba(11,91,114,.26), 0 1px 2px rgba(8,18,31,.18); }
.gy-btn:active { background: var(--gy-primary-700); box-shadow: inset 0 2px 4px rgba(8,18,31,.28); }
.gy-btn:focus-visible { outline: 2px solid var(--gy-primary-700); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.gy-btn .gy-icone { width: 18px; height: 18px; }

/* secundário: superfície com contorno; perigo: contorno tijolo que preenche ao confirmar a intenção */
.gy-btn-sec { background: var(--gy-surface); color: var(--gy-primary-700); border-color: var(--gy-border-strong); box-shadow: 0 1px 2px rgba(8,18,31,.06); }
.gy-btn-sec:hover { background: var(--gy-primary-50); color: var(--gy-primary-700); border-color: var(--gy-primary-500); box-shadow: 0 4px 12px rgba(11,91,114,.14); }
.gy-btn-sec:active { background: var(--gy-primary-50); box-shadow: inset 0 1px 3px rgba(8,18,31,.14); }
.gy-btn-perigo { background: var(--gy-surface); color: var(--gy-danger-500); border-color: rgba(200,53,42,.45); box-shadow: 0 1px 2px rgba(8,18,31,.06); }
.gy-btn-perigo:hover { background: var(--gy-danger-500); color: #fff; border-color: var(--gy-danger-500); box-shadow: 0 6px 16px rgba(200,53,42,.24); }
.gy-btn-perigo:active { background: var(--gy-danger-500); color: #fff; box-shadow: inset 0 2px 4px rgba(8,18,31,.28); }
.gy-btn-perigo:focus-visible { outline-color: var(--gy-danger-500); }

.gy-btn-sm { min-height: 32px; padding: 4px 12px; font-size: .8125rem; }
.gy-btn-sm .gy-icone { width: 16px; height: 16px; }
.gy-btn-lg { min-height: 48px; padding: 12px 24px; font-size: 1rem; }
.gy-btn-icon { width: 40px; padding: 8px; }
/* dedo, não mouse: alvo de toque de 44 px */
@media (pointer: coarse) {
  .gy-btn { min-height: 44px; }
  .gy-btn-sm { min-height: 40px; }
  .gy-btn-icon { width: 44px; }
  .gy-btn-sm.gy-btn-icon { width: 40px; }
}
/* desabilitado: neutro, sem sombra nem elevação (vem depois das variantes para valer sobre o hover) */
.gy-btn[disabled], .gy-btn[aria-disabled="true"],
.gy-btn[disabled]:hover, .gy-btn[aria-disabled="true"]:hover {
  background: var(--gy-surface-sunken); color: var(--gy-text-muted); border-color: var(--gy-border-strong);
  box-shadow: none; cursor: not-allowed;
}
/* enviando: o rótulo some, entra o indicador e o botão ignora novos cliques (evita envio em dobro) */
.gy-btn[aria-busy="true"] { color: transparent; pointer-events: none; }
.gy-btn[aria-busy="true"] > * { visibility: hidden; }
.gy-btn[aria-busy="true"]::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: gy-gira .7s linear infinite;
}
.gy-btn-sec[aria-busy="true"]::after, .gy-btn-perigo[aria-busy="true"]::after { border-color: rgba(11,91,114,.25); border-top-color: var(--gy-primary-700); }
@keyframes gy-gira { to { transform: rotate(360deg); } }
/* com "reduzir movimento": o anel fica parado, mas continua visível (nunca herdar currentColor
   aqui — o texto do botão está transparente neste estado) */
@media (prefers-reduced-motion: reduce) {
  .gy-btn[aria-busy="true"]::after { animation: none; }
}

label.gy-label { display: block; font-weight: 700; font-size: .8125rem; margin: 14px 0 4px; }
.gy-input, select.gy-input, textarea.gy-input {
  width: 100%; padding: 9px 12px; min-height: 40px;
  border: 1px solid var(--gy-border-strong); border-radius: var(--gy-radius-md);
  font: inherit; color: var(--gy-text); background: var(--gy-surface);
}
textarea.gy-input { min-height: 120px; resize: vertical; }
.gy-input:focus { border-color: var(--gy-primary-500); outline: none; box-shadow: 0 0 0 3px rgba(18,139,168,.15); }

.gy-alerta { padding: 12px 16px; border-radius: var(--gy-radius-md); margin: 0 0 16px; border: 1px solid; font-size: .875rem; }
.gy-alerta-ok     { background: var(--gy-success-50); color: var(--gy-success-500); border-color: rgba(18,128,92,.3); }
.gy-alerta-erro   { background: var(--gy-danger-50); color: var(--gy-danger-500); border-color: rgba(200,53,42,.3); }
.gy-alerta-aviso  { background: var(--gy-accent-50); color: var(--gy-accent-text); border-color: rgba(198,127,5,.35); }
/* aviso de erro de formulário público: recebe o foco ao abrir a página, para o leitor de tela falar
   primeiro. Não é um controle, então não ganha contorno; a margem evita que cole na borda ao rolar. */
#erro-formulario { scroll-margin: 96px 0; }
#erro-formulario:focus { outline: none; }

/* ---------------------------------------------------- rodapé público */
.gy-rodape {
  background: var(--gy-ink-900);
  background-image: radial-gradient(70% 120% at 50% -60%, rgba(18,139,168,.28), transparent 65%);
  color: #B9C6D6; font-size: .875rem;
  border-top: 3px solid var(--gy-accent-500);
}
.gy-rodape-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  padding-top: 40px; padding-bottom: 36px;
}
@media (max-width: 900px) { .gy-rodape-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gy-rodape-grid { grid-template-columns: 1fr; gap: 24px; } }
.gy-rodape h3 {
  color: #8FA3B8; margin: 0 0 12px;
  font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.gy-rodape p { margin: 0 0 9px; }
.gy-rodape a { color: #D4DDE7; text-decoration: none; }
.gy-rodape a:hover { color: #fff; text-decoration: underline; }
.gy-rodape-logo { display: flex; align-items: center; gap: 12px; }
.gy-rodape-logo img { height: 48px; width: auto; max-width: 110px; object-fit: contain; }
.gy-rodape-logo > span[aria-hidden] {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  background: var(--gy-ink-700); color: var(--gy-primary-300); border-radius: var(--gy-radius-md);
}
.gy-rodape-logo .gy-icone { width: 24px; height: 24px; }
.gy-rodape-logo strong { display: block; color: #fff; font-weight: 800; letter-spacing: -0.01em; }
.gy-rodape-logo small { color: #8FA3B8; }
.gy-rodape-slogan { margin: 14px 0 0; max-width: 34ch; color: #8FA3B8; }
.gy-social { display: flex; gap: 8px; margin-top: 16px; }
.gy-social a {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: var(--gy-ink-700); border: 1px solid var(--gy-ink-600);
  border-radius: var(--gy-radius-sm); color: #D4DDE7;
}
.gy-social a:hover { background: var(--gy-ink-600); color: #fff; border-color: var(--gy-primary-500); text-decoration: none; }
.gy-social .gy-icone { width: 18px; height: 18px; }
.gy-rodape-sub { background: rgba(0,0,0,.35); border-top: 1px solid var(--gy-ink-700); }
.gy-rodape-sub-in {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 14px; padding-bottom: 14px; font-size: .8125rem; color: #8FA3B8;
}
.gy-rodape-sub a { color: #8FA3B8; }

/* ---------------------------------------------------- layout do admin */
.gy-app { display: flex; min-height: 100vh; background: var(--gy-canvas); }
/* O menu veste as cores do órgão (tema_css_painel() em includes/bootstrap.php): fundo na tinta,
   brilho e item ativo na primária, filete no acento. Os textos têm token próprio (--gy-side-*)
   porque são eles que clareiam quando o fundo do órgão é mais claro que a tinta padrão. */
.gy-sidebar {
  width: 264px; flex: none; color: var(--gy-side-texto, #C6D2E0);
  background: var(--gy-ink-900);
  background-image:
    radial-gradient(130% 60% at 50% -20%, rgba(18,139,168,.30), transparent 60%),
    radial-gradient(80% 50% at 100% 100%, rgba(242,164,19,.07), transparent 60%);
  /* navegador sem color-mix fica com as duas linhas de cima (as cores padrão) */
  background-image:
    radial-gradient(130% 60% at 50% -20%, color-mix(in srgb, var(--gy-primary-500) 30%, transparent), transparent 60%),
    radial-gradient(80% 50% at 100% 100%, color-mix(in srgb, var(--gy-accent-500) 7%, transparent), transparent 60%);
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 16px 14px; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
/* marca / brasão */
.gy-side-marca {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 8px 10px 16px; margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.gy-side-marca img { height: 40px; width: auto; max-width: 52px; object-fit: contain; }
.gy-side-brasao {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  background: linear-gradient(160deg, rgba(18,139,168,.9), rgba(18,139,168,.45));
  background: linear-gradient(160deg, color-mix(in srgb, var(--gy-primary-500) 90%, transparent), color-mix(in srgb, var(--gy-primary-500) 45%, transparent));
  color: #fff; border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.gy-side-brasao-pf { background: linear-gradient(160deg, #F2A413, #C87F05); }
.gy-side-brasao .gy-icone { width: 24px; height: 24px; }
.gy-side-marca small { display: block; font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gy-side-rotulo, var(--gy-accent-500)); font-weight: 700; }
.gy-side-marca strong { display: block; color: #fff; font-weight: 800; letter-spacing: -0.01em; font-size: .95rem; line-height: 1.2; }
/* menu */
.gy-side-menu { display: flex; flex-direction: column; gap: 2px; }
.gy-side-grupo {
  display: block; padding: 14px 12px 6px; font-size: .625rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gy-side-fraco, #6C7E93);
}
.gy-sidebar a {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 10px;
  color: var(--gy-side-texto, #C6D2E0); text-decoration: none; font-weight: 500; font-size: .875rem;
}
.gy-side-ic { display: grid; place-items: center; width: 22px; height: 22px; flex: none; color: var(--gy-side-medio, #8497AC); }
.gy-side-ic .gy-icone { width: 19px; height: 19px; }
.gy-sidebar a:hover { background: rgba(255,255,255,.05); color: #fff; }
.gy-sidebar a:hover .gy-side-ic { color: var(--gy-side-texto, #C6D2E0); }
.gy-sidebar a.ativo {
  background: linear-gradient(90deg, rgba(18,139,168,.28), rgba(18,139,168,.08));
  background: linear-gradient(90deg, color-mix(in srgb, var(--gy-primary-500) 28%, transparent), color-mix(in srgb, var(--gy-primary-500) 8%, transparent));
  color: #fff; font-weight: 700;
}
.gy-sidebar a.ativo::before {
  content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--gy-accent-500);
}
.gy-sidebar a.ativo .gy-side-ic { color: var(--gy-accent-500); }
/* rodapé da sidebar: ver portal + chip de usuário */
.gy-side-fim { margin-top: auto; padding-top: 12px; }
.gy-side-portal {
  color: var(--gy-side-medio, #8497AC) !important; font-size: .8125rem; margin-bottom: 8px;
}
.gy-side-user {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 12px;
}
.gy-side-avatar {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  /* a 600, não a 500: letra branca pequena pede 4,5:1 (a 500 padrão dava 3,98:1) */
  background: var(--gy-primary-600); color: #fff; border-radius: 9px; font-weight: 800; font-size: .9rem;
}
.gy-side-avatar-pf { background: var(--gy-accent-500); color: #201400; }
.gy-side-user-nome { flex: 1; min-width: 0; line-height: 1.25; }
.gy-side-user-nome strong { display: block; color: #fff; font-size: .8125rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gy-side-user-nome small { display: block; color: var(--gy-side-fraco, #6C7E93); font-size: .6875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gy-side-sair { flex: none; display: grid; place-items: center; width: 32px; height: 32px; color: var(--gy-side-medio, #8497AC); text-decoration: none; border-radius: 9px; }
.gy-side-sair .gy-icone { width: 18px; height: 18px; }
.gy-side-sair:hover { background: rgba(200,53,42,.2); color: #ff9a90; }

/* ---------------------------------------------------- tela de entrada (includes/entrada.php)
   Duas metades, minimalista (PLANO, 19/11/2026): de um lado a cor escura do órgão, lisa, com o
   brasão, o nome e uma frase; do outro, o formulário sobre branco. O único traço de cor é o fio
   acima da frase, da primária ao acento do cliente (--gy-en-a → --gy-en-b). Nada de neon,
   brilho, foto, cartão ou ícone dentro de campo. Serve à entrada do painel e da plataforma, ao
   pedido de acesso e às telas dos dois fatores. */
.gy-en { margin: 0; min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--gy-surface); color: var(--gy-text); -webkit-font-smoothing: antialiased; }
.gy-en-lado { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 26px 48px 34px 36px; background: var(--gy-ink-900); color: #fff; }
.gy-en-marca { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: .9375rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.gy-en-marca > span:last-child { min-width: 0; }
/* brasão sobre placa clara: serve para qualquer brasão, de fundo claro ou escuro */
.gy-en-marca img { flex: none; display: block; height: 36px; width: auto; max-width: 50px; padding: 4px; object-fit: contain; background: #fff; border-radius: 9px; }
.gy-en-selo { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--gy-accent-500); color: #201400; }
.gy-en-selo .gy-icone { width: 20px; height: 20px; }
.gy-en-fio { display: block; width: 44px; height: 3px; margin: 0 0 24px; border-radius: 3px; background: linear-gradient(90deg, var(--gy-en-a, #128BA8), var(--gy-en-b, #F2A413)); }
/* a plataforma não tem paleta de cliente: o fio dela é o âmbar da própria plataforma */
.gy-en-plataforma .gy-en-fio { background: linear-gradient(90deg, var(--gy-accent-500), var(--gy-accent-600)); }
.gy-en-fala h1 { margin: 0; font-size: 3.25rem; font-weight: 800; letter-spacing: -0.045em; line-height: 1.04; color: #fff; }
.gy-en-sub { margin: 12px 0 0; font-size: 1.0625rem; line-height: 1.5; color: var(--gy-side-texto, #C6D2E0); }
.gy-en-pe { margin: 28px 0 0; font-size: .75rem; color: var(--gy-side-medio, #8497AC); }
/* foto da cidade (opcional, enviada pelo órgão): por baixo de um véu na cor escura do cliente. No alto e
   no pé, onde há texto, a força do véu é calculada por órgão (entrada_veu) para o branco passar de 4,5:1
   até sobre foto toda branca; no meio a foto aparece mais. Navegador sem color-mix fica com o véu liso. */
.gy-en-lado.gy-en-com-foto {
  background-size: cover; background-position: center;
  background-image: linear-gradient(rgba(0,0,0,.76), rgba(0,0,0,.76)), var(--gy-en-foto);
  background-image:
    linear-gradient(180deg, color-mix(in srgb, var(--gy-ink-900) var(--gy-en-veu-topo), transparent) 0, color-mix(in srgb, var(--gy-ink-900) var(--gy-en-veu-topo), transparent) 12%,
      color-mix(in srgb, var(--gy-ink-900) 25%, transparent) 36%, color-mix(in srgb, var(--gy-ink-900) var(--gy-en-veu-pe), transparent) 56%, color-mix(in srgb, var(--gy-ink-900) var(--gy-en-veu-pe), transparent) 100%),
    linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)),
    var(--gy-en-foto);
}
.gy-en-com-foto .gy-en-sub, .gy-en-com-foto .gy-en-pe { color: #fff; }
.gy-en-porta { display: flex; flex-direction: column; min-width: 0; }
.gy-en-topo { display: flex; justify-content: flex-end; min-height: 66px; padding: 22px 32px; }
.gy-en-fora { font-size: .8125rem; white-space: nowrap; color: var(--gy-text-muted); text-decoration: none; }
.gy-en-fora:hover { color: var(--gy-text); text-decoration: underline; }
.gy-en-meio { flex: 1; display: grid; place-items: center; padding: 8px 20px 56px; }
.gy-en-col { width: 100%; max-width: 368px; }
.gy-en-col h2 { margin: 0 0 4px; font-size: 1.625rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; }
.gy-en-col > .gy-eyebrow { margin-bottom: 8px; }
.gy-en-col .gy-alerta { margin: 14px 0 0; }
.gy-en-col form { margin-top: 14px; }
.gy-en-col label.gy-label { margin: 16px 0 7px; }
.gy-en-col .gy-input { min-height: 50px; padding: 12px 14px; font-size: 1rem; border-radius: 12px; }
.gy-en-col .gy-input:focus { outline: none; border-color: var(--gy-ink-900); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gy-primary-500) 20%, transparent); }
.gy-en-senha { position: relative; }
.gy-en-senha .gy-input { padding-right: 52px; }
.gy-en-ver { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--gy-text-muted); cursor: pointer; }
.gy-en-ver[hidden] { display: none; }
.gy-en-ver .gy-icone { width: 20px; height: 20px; }
.gy-en-ver:hover, .gy-en-ver[aria-pressed="true"] { color: var(--gy-text); }
/* o botão da entrada: a cor escura do cliente, letra branca (8:1 garantido por tema_css_painel) */
.gy-en-entrar { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 24px; padding: 10px 18px; border: 0; border-radius: 12px; background: var(--gy-ink-900); color: #fff;
  font: inherit; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; text-align: center; text-decoration: none; cursor: pointer; transition: opacity .16s cubic-bezier(.2,.7,.3,1); }
.gy-en-entrar:hover { opacity: .88; color: #fff; }
.gy-en-entrar:focus-visible { outline: 2px solid var(--gy-primary-700); outline-offset: 3px; }
.gy-en-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 22px 0 0; font-size: .8125rem; }
.gy-en-links a { color: var(--gy-text-muted); text-decoration: none; }
.gy-en-links a:hover { color: var(--gy-text); text-decoration: underline; }
.gy-en-nota { margin: 8px 0 0; font-size: .9375rem; line-height: 1.5; color: var(--gy-text-muted); }
/* tela baixa (notebook): a frase encolhe um pouco e o formulário aperta, para caber sem rolar */
@media (min-width: 861px) and (max-height: 700px) {
  .gy-en-fala h1 { font-size: 2.75rem; } .gy-en-topo { min-height: 52px; padding: 16px 32px; } .gy-en-meio { padding-bottom: 28px; }
  .gy-en-col label.gy-label { margin-top: 12px; } .gy-en-col .gy-input { min-height: 46px; padding: 10px 14px; } .gy-en-entrar { min-height: 48px; margin-top: 18px; } .gy-en-links { margin-top: 16px; }
}
/* celular: a metade do órgão vira a faixa de cima; o link do canto desce para o pé */
@media (max-width: 860px) {
  .gy-en { display: flex; flex-direction: column; }
  .gy-en-lado { padding: 18px 20px 22px; gap: 26px; }
  /* na faixa do celular há texto de cima a baixo: o véu vai inteiro na força do pé */
  .gy-en-lado.gy-en-com-foto { background-image: linear-gradient(rgba(0,0,0,.76), rgba(0,0,0,.76)), var(--gy-en-foto);
    background-image: linear-gradient(color-mix(in srgb, var(--gy-ink-900) var(--gy-en-veu-pe), transparent), color-mix(in srgb, var(--gy-ink-900) var(--gy-en-veu-pe), transparent)), linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)), var(--gy-en-foto); }
  .gy-en-fala h1 { font-size: 2rem; } .gy-en-fio { margin-bottom: 16px; } .gy-en-pe { display: none; }
  .gy-en-porta { flex: 1; } .gy-en-topo { order: 2; justify-content: center; min-height: 0; padding: 0 20px 22px; }
  .gy-en-meio { place-items: start center; padding: 26px 20px 28px; }
}
@media (prefers-reduced-motion: reduce) { .gy-en-entrar { transition: none; } }

/* dois fatores (includes/dois_fatores_tela.php), dentro da coluna da entrada */
.gy-df-texto { margin: 0 0 14px; font-size: .9375rem; line-height: 1.55; color: var(--gy-text-muted); }
.gy-df-texto strong { color: var(--gy-text); }
.gy-en-col .gy-df-codigo { min-height: 62px; font-size: 1.625rem; font-weight: 800; letter-spacing: .28em; text-align: center; font-variant-numeric: tabular-nums; }
.gy-df-codigo::placeholder { color: var(--gy-border-strong); font-weight: 700; }
.gy-df-passos { margin: 0; padding-left: 22px; font-size: .9375rem; line-height: 1.5; }
.gy-df-passos > li { margin: 0 0 16px; padding-left: 4px; }
.gy-df-passos > li::marker { font-weight: 800; color: var(--gy-primary-700); }
/* o QR sempre sobre branco, com margem: é o que o leitor do celular precisa */
.gy-df-qr { width: 208px; height: 208px; margin: 12px 0 8px; padding: 12px; background: #fff; border: 1px solid var(--gy-border-strong); border-radius: 12px; }
.gy-df-qr svg { display: block; width: 100%; height: 100%; }
.gy-df-chave { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0; }
.gy-df-chave code { padding: 8px 10px; border-radius: 8px; background: var(--gy-primary-50); color: var(--gy-text); font-size: .9375rem; font-weight: 700; letter-spacing: .06em; word-break: break-word; }
.gy-df-ajuda { margin-top: 12px; font-size: .8125rem; color: var(--gy-text-muted); }
.gy-df-ajuda summary { cursor: pointer; font-weight: 700; color: var(--gy-primary-700); }
.gy-df-ajuda p { margin: 8px 0 0; line-height: 1.5; }
.gy-df-reservas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.gy-df-reservas li { padding: 10px 8px; text-align: center; border: 1px solid var(--gy-border-strong); border-radius: 10px; background: var(--gy-surface-sunken);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.0625rem; font-weight: 700; letter-spacing: .06em; }
.gy-df-acoes { display: flex; gap: 8px; margin: 0 0 4px; }
.gy-df-opcoes { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.gy-df-sair { margin: 18px 0 0; font-size: .8125rem; }
.gy-df-sair a { color: var(--gy-text-muted); }
/* imprimir os códigos de reserva: sai só a lista, com o nome do órgão */
@media print { .gy-en { display: block; } .gy-en-lado, .gy-en-lado.gy-en-com-foto { background: none; color: #000; padding: 0 0 12px; } .gy-en-lado h1, .gy-en-marca { color: #000; } .gy-en-fio, .gy-en-sub, .gy-en-pe, .gy-en-topo, .gy-en-col form, .gy-df-acoes, .gy-df-sair { display: none; } .gy-en-meio { display: block; padding: 0; } }
/* escudo ao lado do "Sair": a pessoa cuida dos dois fatores da própria conta */
.gy-side-conta { flex: none; display: grid; place-items: center; width: 32px; height: 32px; color: var(--gy-side-medio, #8497AC) !important; text-decoration: none; border-radius: 9px; padding: 0 !important; }
.gy-side-conta .gy-icone { width: 18px; height: 18px; }
.gy-side-conta:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }
.gy-side-conta.ligado { color: #6EE7A0 !important; }
/* cartão "Dois fatores na plataforma" (plataforma/usuarios.php) */
.gy-df-config { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 24px; align-items: start; }
@media (max-width: 760px) { .gy-df-config { grid-template-columns: 1fr; } }
.gy-df-config textarea { min-height: 76px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .875rem; }

/* cadastro de instituição (plataforma): linhas de campos que se empilham no celular (antes eram grades fixas) */
.gy-pf-campos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.gy-pf-campos-nome { grid-template-columns: 2fr 1fr; }
@media (max-width: 760px) { .gy-pf-campos { grid-template-columns: 1fr 1fr; } .gy-pf-campos-nome { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .gy-pf-campos { grid-template-columns: 1fr; } }
/* cadastro de instituição (plataforma): bloco "Marca do órgão" — brasão e cores */
.gy-pf-sub { margin: 20px 0 8px; font-size: .9375rem; font-weight: 800; letter-spacing: -0.01em; }
.gy-pf-marca { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.4fr); gap: 16px; align-items: start; }
.gy-pf-marca .gy-pf-rotulo { display: block; font-weight: 700; font-size: .8125rem; margin: 0 0 4px; }
.gy-pf-marca .gy-swatches { margin-top: 0; grid-template-columns: 1fr; gap: 8px; }   /* uma cor por linha: o nome cabe inteiro */
.gy-pf-marca .gy-swatch { padding: 8px 12px; }
.gy-pf-marca .gy-swatch input[type="color"] { width: 40px; height: 40px; }
.gy-pf-marca .gy-muted { margin: 8px 0 0; }
@media (max-width: 760px) { .gy-pf-marca { grid-template-columns: 1fr; } }
/* lista de instituições: brasão ao lado do nome */
.gy-pf-inst { display: flex; align-items: center; gap: 10px; }
/* "Nome no endereço" na lista de instituições: campo estreito logo abaixo do nome, sugestões em botões */
.gy-pf-endereco { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: .75rem; color: var(--gy-text-muted); }
.gy-pf-endereco .gy-input { width: 230px; min-height: 30px; padding: 3px 8px; font-size: .8125rem; }
.gy-endereco-sugestoes { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.gy-endereco-sugestoes:empty { display: none; }
.gy-pf-campos .gy-endereco-sugestoes { margin-top: 6px; }
/* nome e endereço compridos quebram dentro do campo em vez de alargar o formulário (celular) */
.gy-pf-campos > * { min-width: 0; }
.gy-endereco-sugestoes .gy-btn { max-width: 100%; height: auto; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.gy-endereco-previa { overflow-wrap: anywhere; }
/* aviso junto ao campo (conferência): a frase diz o que corrigir */
.gy-erro-campo { margin: 4px 0 0; flex-basis: 100%; font-size: .8125rem; color: var(--gy-danger-500); }
.gy-erro-campo[hidden] { display: none; }
.gy-input[aria-invalid="true"] { border-color: var(--gy-danger-500); }
.gy-input[aria-invalid="true"]:focus { border-color: var(--gy-danger-500); box-shadow: 0 0 0 3px rgba(200,53,42,.15); }
html.gy-contraste .gy-erro-campo { color: #FF9A90; }
html.gy-contraste .gy-input[aria-invalid="true"] { border-color: #FF9A90; }
.gy-pf-inst-brasao { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--gy-surface-sunken); border: 1px solid var(--gy-border); color: var(--gy-text-muted); }
.gy-pf-inst-brasao img { max-width: 28px; max-height: 28px; object-fit: contain; display: block; }
.gy-pf-inst-brasao .gy-icone { width: 18px; height: 18px; }

/* ---------------------------------------------------- listas de admin (edição expansível) */
.gy-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 620px) { .gy-form-grid { grid-template-columns: 1fr; } }

.gy-nova > summary {
  display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.05rem;
}
.gy-nova > summary::-webkit-details-marker { display: none; }
.gy-nova > summary .gy-side-ic { color: var(--gy-primary-600); }

.gy-adm-lista { display: flex; flex-direction: column; gap: 8px; }
.gy-adm-item { border: 1px solid var(--gy-border); border-radius: 12px; background: var(--gy-surface); overflow: hidden; }
.gy-adm-item[open] { border-color: var(--gy-primary-300); box-shadow: var(--gy-shadow-sm); }
.gy-adm-item > summary {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer;
  list-style: none; min-height: 40px;
}
.gy-adm-item > summary::-webkit-details-marker { display: none; }
.gy-adm-item > summary:hover { background: var(--gy-surface-sunken); }
.gy-adm-item[open] > summary { border-bottom: 1px solid var(--gy-border); background: var(--gy-surface-sunken); }
.gy-adm-ic {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  background: var(--gy-primary-50); color: var(--gy-primary-600); border-radius: 9px;
}
.gy-adm-ic .gy-icone { width: 18px; height: 18px; }
.gy-adm-nome { flex: 1; min-width: 0; }
.gy-adm-nome strong { display: block; font-weight: 700; font-size: .9375rem; }
.gy-adm-nome small { display: block; color: var(--gy-text-muted); font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gy-adm-badges { display: flex; gap: 6px; flex: none; }
.gy-adm-item > summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-left: 4px;
  border-right: 2px solid var(--gy-text-muted); border-bottom: 2px solid var(--gy-text-muted);
  transform: rotate(45deg); transition: transform .15s ease;
}
.gy-adm-item[open] > summary::after { transform: rotate(-135deg); }
.gy-adm-form { padding: 16px; }
.gy-adm-acoes { display: flex; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--gy-border); }

/* ---------------------------------------------------- seletor de ícone + mover registros */
.gy-ic-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.gy-ic-opt {
  position: relative; display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--gy-border); border-radius: 9px; background: var(--gy-surface);
  color: var(--gy-text-muted); cursor: pointer;
}
.gy-ic-opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.gy-ic-opt .gy-icone { width: 18px; height: 18px; }
.gy-ic-auto { font-size: .625rem; font-weight: 700; letter-spacing: .06em; }
.gy-ic-opt.ativo, .gy-ic-opt:has(input:checked) {
  border-color: var(--gy-primary-500); background: var(--gy-primary-50); color: var(--gy-primary-700);
  box-shadow: 0 0 0 2px var(--gy-primary-50);
}
.gy-ic-opt:has(input:focus-visible) { outline: 2px solid var(--gy-primary-500); outline-offset: 2px; }
.gy-mover { min-width: 30px; padding-left: 6px; padding-right: 6px; font-size: .75rem; }

/* ---------------------------------------------------- tabelas: ações, publicar, download */
.gy-acoes { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.gy-pub { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--gy-border); }
.gy-pub select.gy-input { min-height: 32px; padding: 4px 8px; max-width: 220px; font-size: .8125rem; }
.gy-dl { display: inline-flex; align-items: center; gap: 6px; color: var(--gy-primary-700); text-decoration: none; font-weight: 600; }
.gy-dl:hover { text-decoration: underline; }
.gy-dl .gy-icone { width: 16px; height: 16px; color: var(--gy-primary-500); flex: none; }

/* ---------------------------------------------------- editor de item (2 colunas) */
.gy-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .gy-editor-grid { grid-template-columns: 1fr; } }
.gy-editor-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gy-editor-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }
@media (max-width: 900px) { .gy-editor-side { position: static; } }
.gy-editor-acoes { display: flex; flex-direction: column; gap: 8px; }
.gy-editor-acoes .gy-btn { width: 100%; }
.gy-input-lg { font-size: 1.0625rem; font-weight: 700; padding: 11px 14px; }

.gy-atricon-aviso {
  display: flex; gap: 12px; align-items: center;
  background: var(--gy-accent-50); border: 1px solid rgba(198,127,5,.3);
  border-left: 3px solid var(--gy-accent-500); border-radius: var(--gy-radius-md);
  padding: 12px 16px; margin-bottom: 16px;
}
.gy-atricon-ic {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  background: rgba(198,127,5,.14); color: var(--gy-accent-text); border-radius: 9px;
}
.gy-atricon-ic .gy-icone { width: 18px; height: 18px; }
.gy-atricon-aviso div { font-size: .875rem; color: var(--gy-text); }

/* toggle switch */
.gy-switch-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-weight: 600; font-size: .875rem; }
.gy-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.gy-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.gy-switch-ui { position: absolute; inset: 0; background: var(--gy-border-strong); border-radius: 999px; transition: background .18s cubic-bezier(.2,.7,.3,1); }
.gy-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .18s cubic-bezier(.2,.7,.3,1); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.gy-switch input:checked + .gy-switch-ui { background: var(--gy-primary-500); }
.gy-switch input:checked + .gy-switch-ui::after { transform: translateX(18px); }
.gy-switch input:focus-visible + .gy-switch-ui { outline: 2px solid var(--gy-primary-500); outline-offset: 2px; }

/* área principal */
.gy-main { flex: 1; min-width: 0; padding: 28px 32px; }
.gy-main-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.gy-main-head h1 { margin: 2px 0 0; letter-spacing: -0.02em; }
.gy-nav-abrir { display: none; }
.gy-nav-toggle { position: absolute; }

@media (max-width: 860px) {
  .gy-app { flex-direction: column; }
  .gy-sidebar {
    position: fixed; z-index: 50; top: 0; left: 0; bottom: 0; width: 270px;
    transform: translateX(-100%); transition: transform .22s cubic-bezier(.2,.7,.3,1);
    box-shadow: 0 0 40px rgba(0,0,0,.4);
  }
  .gy-nav-toggle:checked ~ .gy-app .gy-sidebar { transform: translateX(0); }
  .gy-nav-abrir {
    display: grid; place-items: center; width: 40px; height: 40px; flex: none;
    background: var(--gy-surface); border: 1px solid var(--gy-border); border-radius: 10px;
    font-size: 1.25rem; cursor: pointer; color: var(--gy-text);
  }
  .gy-main { padding: 20px 16px; }
}
/* grade de itens no celular: colunas secundárias somem e as ações (Editar / Excluir)
   ficam à vista sem rolagem lateral — a tabela inteira cabia só com rolagem, e o
   cliente não achava o botão Excluir */
@media (max-width: 720px) {
  .gy-oculta-mobile { display: none !important; }
  /* a lista vira cartões: nome, situação e os botões um embaixo do outro, sem rolagem lateral */
  .gy-tabela-cards thead { display: none; }
  .gy-tabela-cards, .gy-tabela-cards tbody { display: block; width: 100%; }
  .gy-tabela-cards tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--gy-border); }
  .gy-tabela-cards tr:last-child { border-bottom: 0; }
  .gy-tabela-cards td { display: block; padding: 2px 0; border: 0; white-space: normal; }
  .gy-tabela-cards td:first-child { display: none; }   /* alça de arrastar: no celular não se arrasta */
  .gy-tabela-cards td.gy-acoes { text-align: left; padding-top: 10px; }
  .gy-tabela-cards td.gy-acoes .gy-acoes-grupo { display: flex; flex-wrap: wrap; }
}

/* ---------------------------------------------------- menu suspenso (details) e botões de ícone */
.gy-dd { position: relative; display: inline-block; }
.gy-dd > summary { list-style: none; cursor: pointer; }
.gy-dd > summary::-webkit-details-marker { display: none; }
.gy-dd-seta { display: inline-block; width: 6px; height: 6px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.gy-dd[open] > summary { background: var(--gy-primary-50); color: var(--gy-primary-700); }
.gy-dd-menu {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 240px;
  background: var(--gy-surface); border: 1px solid var(--gy-border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15,30,51,.16), 0 2px 6px rgba(15,30,51,.08); padding: 6px;
}
.gy-dd-menu button {
  display: flex; flex-direction: column; align-items: flex-start; width: 100%; gap: 1px;
  padding: 9px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer;
  font: inherit; text-align: left; color: var(--gy-text);
}
.gy-dd-menu button:hover { background: var(--gy-primary-50); color: var(--gy-primary-700); }
.gy-dd-menu button strong { font-size: .8125rem; }
.gy-dd-menu button small { font-size: .75rem; color: var(--gy-text-muted); }
.gy-btn-sm.gy-btn-icon { width: 32px; padding: 4px; }
.gy-btn-icon .gy-icone { width: 18px; height: 18px; }
.gy-tip { display: inline-flex; }
.gy-acoes .gy-btn-sm .gy-icone { width: 15px; height: 15px; }

/* ---------------------------------------------------- busca do painel (cabeçalho) */
.gy-main-head-titulo { flex: 1; min-width: 0; }
.gy-head-busca { position: relative; flex: 0 1 380px; min-width: 200px; }
.gy-head-busca input {
  width: 100%; min-height: 42px; padding: 8px 14px 8px 40px;
  border: 1px solid var(--gy-border-strong); border-radius: var(--gy-radius-md); background: var(--gy-surface);
  font: inherit; font-size: .875rem; color: var(--gy-text);
}
.gy-head-busca input:focus { outline: none; border-color: var(--gy-primary-500); box-shadow: 0 0 0 3px rgba(18,139,168,.15); }
.gy-head-busca-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--gy-text-muted); display: grid; }
.gy-head-busca-ic .gy-icone { width: 18px; height: 18px; }
@media (max-width: 860px) { .gy-main-head { flex-wrap: wrap; } .gy-head-busca { flex-basis: 100%; } }

/* resultados de busca (painel e portal) */
.gy-res-grupo { margin-bottom: 22px; }
.gy-res-grupo h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gy-text-muted); }
.gy-res-grupo h3 .gy-badge { text-transform: none; letter-spacing: 0; }
.gy-res { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--gy-border); border-radius: 12px; background: var(--gy-surface); text-decoration: none; color: var(--gy-text); margin-bottom: 8px; }
.gy-res:hover { border-color: rgba(18,139,168,.4); box-shadow: var(--gy-shadow-md); color: var(--gy-primary-700); }
.gy-res-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; background: var(--gy-primary-50); color: var(--gy-primary-600); border-radius: 9px; }
.gy-res-ic .gy-icone { width: 18px; height: 18px; }
.gy-res-txt { flex: 1; min-width: 0; }
.gy-res-txt strong { display: block; font-weight: 700; }
.gy-res-txt small { display: block; color: var(--gy-text-muted); font-size: .8125rem; margin-top: 2px; }
.gy-res-txt mark { background: var(--gy-accent-50); color: var(--gy-accent-text); border-radius: 3px; padding: 0 2px; }

/* ---------------------------------------------------- arrastar para reordenar */
.gy-grip {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px;
  color: var(--gy-border-strong); cursor: grab; touch-action: none; vertical-align: middle;
}
.gy-grip .gy-icone { width: 16px; height: 16px; }
.gy-grip:hover { color: var(--gy-primary-600); background: var(--gy-primary-50); }
tr.gy-arrastando { opacity: .45; }
tr.gy-drop-antes td { box-shadow: inset 0 3px 0 var(--gy-accent-500); }
tr.gy-drop-depois td { box-shadow: inset 0 -3px 0 var(--gy-accent-500); }
.gy-ord-aviso { font-size: .75rem; color: var(--gy-text-muted); }

/* ---------------------------------------------------- upload em lote com progresso */
.gy-lote-lista { list-style: none; margin: 12px 0 0; padding: 0; max-height: 280px; overflow: auto; border: 1px solid var(--gy-border); border-radius: 10px; }
.gy-lote-lista li { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--gy-border); font-size: .8125rem; }
.gy-lote-lista li:last-child { border-bottom: 0; }
.gy-lote-nome { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gy-lote-st { flex: none; min-width: 70px; text-align: right; font-variant-numeric: tabular-nums; color: var(--gy-text-muted); }
.gy-lote-st.ok { color: var(--gy-success-500); font-weight: 700; }
.gy-lote-st.erro { color: var(--gy-danger-500); font-weight: 700; }
.gy-prog { height: 10px; background: var(--gy-surface-sunken); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.gy-prog > div { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--gy-primary-500), var(--gy-primary-300)); transition: width .2s linear; }
.gy-prog-txt { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--gy-text-muted); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------- quarentena */
.gy-quar-origem { display: inline-block; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gy-text-muted); background: var(--gy-surface-sunken); border-radius: 999px; padding: 2px 9px; }

/* ---------------------------------------------------- medidor de contraste (Aparência) */
.gy-contraste-lista { display: grid; gap: 8px; margin-top: 14px; }
.gy-contraste-par { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--gy-border); border-radius: 10px; font-size: .8125rem; }
.gy-contraste-amostra { flex: none; display: grid; place-items: center; width: 64px; height: 36px; border-radius: 8px; font-weight: 800; font-size: .9rem; border: 1px solid rgba(0,0,0,.08); }
.gy-contraste-txt { flex: 1; min-width: 0; }
.gy-contraste-txt small { display: block; color: var(--gy-text-muted); }
.gy-contraste-val { font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.gy-contraste-val.ok { color: var(--gy-success-500); }
.gy-contraste-val.grande { color: var(--gy-accent-text); }
.gy-contraste-val.falha { color: var(--gy-danger-500); }

/* ---------------------------------------------------- catálogo de dados abertos (público) */
.gy-catalogo { display: grid; gap: 12px; }
.gy-catalogo-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; background: var(--gy-surface); border: 1px solid var(--gy-border); border-radius: 14px; padding: 16px 18px; box-shadow: var(--gy-shadow-sm); }
@media (max-width: 640px) { .gy-catalogo-item { grid-template-columns: 44px 1fr; } .gy-catalogo-acoes { grid-column: 1 / -1; } }
.gy-catalogo-item .gy-grupo-icone { width: 44px; height: 44px; }
.gy-catalogo-txt strong { display: block; font-size: 1rem; }
.gy-catalogo-txt small { display: block; color: var(--gy-text-muted); margin-top: 2px; }
.gy-catalogo-acoes { display: flex; gap: 6px; flex-wrap: wrap; }
.gy-catalogo-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.gy-catalogo-meta span { font-size: .6875rem; font-weight: 700; color: var(--gy-text-muted); background: var(--gy-surface-sunken); border-radius: 999px; padding: 2px 9px; }

/* ---------------------------------------------------- "Informações atualizadas em" (todas as páginas) */
.gy-atualizado {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  background: var(--gy-accent-50); color: var(--gy-accent-text); border: 1px solid rgba(198,127,5,.35);
  font-size: .8125rem; font-weight: 600; white-space: nowrap;
}
.gy-atualizado .gy-icone { width: 16px; height: 16px; }
.gy-atualizado strong { font-weight: 800; font-variant-numeric: tabular-nums; }
.gy-atualizado-pagina { margin: 0 0 12px; }
/* celular pequeno (320 px): a etiqueta não cabia numa linha e empurrava a página para o lado; ali ela quebra em duas */
@media (max-width: 359px) {
  .gy-atualizado { white-space: normal; max-width: 100%; border-radius: 15px; font-size: .75rem; gap: 6px; padding-left: 10px; padding-right: 10px; }
  .gy-atualizado .gy-icone { flex: none; }
}

/* selos: no hero ("onde tem a imagem", pedido do cliente) e no rodapé; cada um com página própria */
.gy-hero-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.gy-hero-texto { flex: 1 1 auto; min-width: 0; }
.gy-hero-selos { flex: 0 0 auto; display: grid; grid-template-columns: repeat(2, 108px); gap: 14px 12px; margin: 0; padding: 0; list-style: none; }
.gy-hero-selos-1 { grid-template-columns: 108px; }
.gy-hero-selos-3, .gy-hero-selos-5, .gy-hero-selos-6, .gy-hero-selos-7, .gy-hero-selos-8 { grid-template-columns: repeat(3, 108px); }
/* alinhamento escolhido por selo (pedido do cliente, 29/09/2026): esquerda e direita são
   colunas ao lado do título; centro é uma linha abaixo dele */
.gy-hero-selos-centro { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; margin-top: 28px; }
.gy-hero-selo {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; color: #E4EBF2; font-size: .75rem; font-weight: 600; text-align: center; line-height: 1.25;
}
.gy-hero-selo img {
  width: 108px; height: 108px; object-fit: contain; display: block;
  background: #fff; border-radius: 16px; padding: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s cubic-bezier(.2,.7,.3,1);
}
.gy-hero-selo:hover img, .gy-hero-selo:focus-visible img { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--gy-accent-500), 0 14px 32px rgba(0,0,0,.4); }
.gy-hero-selo:hover, .gy-hero-selo:focus-visible { color: #fff; }
.gy-hero-selo span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 108px; }
@media (max-width: 760px) {
  .gy-hero-in { flex-direction: column; align-items: stretch; gap: 20px; }
  .gy-hero-selos, .gy-hero-selos-1, .gy-hero-selos-3 { display: flex; flex-wrap: wrap; gap: 10px; }
  .gy-hero-selos-esquerda { order: 2; }   /* no celular o título vem primeiro */
  .gy-hero-selos-direita { order: 3; justify-content: flex-end; }
  .gy-hero-selos-centro { margin-top: 20px; }
  .gy-hero-selo img { width: 84px; height: 84px; padding: 8px; border-radius: 14px; }
  .gy-hero-selo span { max-width: 84px; }
}
@media (prefers-reduced-motion: reduce) { .gy-hero-selo img { transition: none; } .gy-hero-selo:hover img { transform: none; } }
/* página dos selos (/selos e /selos/{slug}) */
.gy-selos-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.gy-selo-pub { display: flex; flex-direction: column; gap: 12px; }
.gy-selo-pub .gy-selo-figura, .gy-selo-destaque .gy-selo-figura { display: grid; place-items: center; }
.gy-selo-figura img { width: 140px; height: 140px; object-fit: contain; background: #fff; border: 1px solid var(--gy-border); border-radius: 18px; padding: 12px; }
.gy-selo-destaque { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.gy-selo-destaque .gy-selo-figura img { width: 200px; height: 200px; }
@media (max-width: 640px) { .gy-selo-destaque { grid-template-columns: 1fr; } }
.gy-selo-pub h2 { margin: 0; font-size: 1.0625rem; }
.gy-selo-pub h2 a { color: inherit; text-decoration: none; }
.gy-selo-pub h2 a:hover { color: var(--gy-primary-700); text-decoration: underline; text-decoration-color: var(--gy-accent-500); text-underline-offset: 4px; }
.gy-selo-texto p { margin: 0 0 10px; }
.gy-selo-texto p:last-child { margin-bottom: 0; }
/* compatibilidade: a classe antiga do cabeçalho segue válida, mas não é mais gerada */
.gy-selos { display: inline-flex; align-items: center; gap: 8px; }
.gy-selos img { height: 40px; width: auto; max-width: 120px; object-fit: contain; display: block; }
.gy-selos a { display: inline-flex; }
/* rodapé: três faixas (esquerda | centro | direita); o centro fica centrado de verdade
   mesmo quando os lados têm quantidades diferentes */
.gy-rodape-selos { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 22px; padding: 0 16px 28px; }
.gy-rodape-selos-grupo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.gy-rodape-selos-esquerda { grid-column: 1; justify-content: flex-start; }
.gy-rodape-selos-centro { grid-column: 2; justify-content: center; }
.gy-rodape-selos-direita { grid-column: 3; justify-content: flex-end; }
@media (max-width: 640px) {
  .gy-rodape-selos { grid-template-columns: 1fr; }
  .gy-rodape-selos-grupo { grid-column: 1; }
}
.gy-rodape-selos img { height: 56px; width: auto; max-width: 160px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; }
.gy-rodape-selos a { display: inline-flex; border-radius: 8px; }

/* rodapé: colunas configuráveis + linha fixa de serviços essenciais */
.gy-rodape-grid { grid-template-columns: 1.4fr repeat(var(--cols, 3), 1fr); }
@media (max-width: 900px) { .gy-rodape-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gy-rodape-grid { grid-template-columns: 1fr; gap: 24px; } }
.gy-rodape-fixos { color: #8FA3B8; }
.gy-rodape-fixos a { color: #B9C6D6; }
.gy-rodape-sub-in { align-items: center; }

/* trilha clicável */
.gy-trilha a:not(:first-child) { color: #B9C6D6; }
.gy-trilha a:not(:first-child):hover { color: #fff; }
.gy-grupo-link { color: inherit; text-decoration: none; }
.gy-grupo-link:hover { color: var(--gy-primary-700); text-decoration: underline; text-decoration-color: var(--gy-accent-500); text-underline-offset: 4px; }

/* ver / baixar */
.gy-dl-par { display: inline-flex; align-items: center; gap: 8px; }
.gy-dl-baixar { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--gy-primary-50); }
.gy-dl-baixar:hover { background: var(--gy-primary-500); color: #fff; text-decoration: none; }
.gy-dl-baixar .gy-icone { width: 15px; height: 15px; color: inherit; }
.gy-docs { list-style: none; margin: 0; padding: 0; }
.gy-docs li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--gy-border); }
.gy-docs li:last-child { border-bottom: 0; }

/* botões flutuantes de contato (embaixo, nunca no meio da lateral direita — é do VLibras) */
.gy-flutuantes {
  position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; flex-direction: column-reverse; gap: 10px; align-items: flex-end;
}
.gy-flutuantes-direita-baixo { right: 20px; }
.gy-flutuantes-esquerda-baixo { left: 20px; align-items: flex-start; }
.gy-flutuante {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px 0 12px;
  border-radius: var(--gy-radius-md); background: var(--gy-primary-600); color: #fff; text-decoration: none; font-weight: 700; font-size: .875rem;
  box-shadow: 0 8px 24px rgba(15,30,51,.28), 0 2px 6px rgba(15,30,51,.18);
}
.gy-flutuante .gy-icone { width: 22px; height: 22px; }
.gy-flutuante:hover, .gy-flutuante:focus-visible { background: var(--gy-primary-700); color: #fff; }
.gy-flutuante-whatsapp { background: #1F8F4E; } .gy-flutuante-whatsapp:hover { background: #16703C; }
.gy-flutuante-instagram { background: #B5307B; } .gy-flutuante-instagram:hover { background: #8F255F; }
.gy-flutuante-telefone, .gy-flutuante-email { background: var(--gy-ink-700); } .gy-flutuante-telefone:hover, .gy-flutuante-email:hover { background: var(--gy-ink-600); }
@media (max-width: 560px) {
  .gy-flutuante { width: 48px; padding: 0; justify-content: center; }
  .gy-flutuante span { position: absolute; left: -9999px; }
}

/* relatórios estatísticos (barras CSS, uma cor só) */
.gy-barras { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gy-barras li { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 64px; gap: 10px; align-items: center; font-size: .875rem; }
.gy-barras .rot { color: var(--gy-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gy-barras .bar { height: 12px; background: var(--gy-surface-sunken); border-radius: 999px; overflow: hidden; }
.gy-barras .bar > i { display: block; height: 100%; border-radius: 999px; background: var(--gy-primary-500); }
.gy-barras .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.gy-rel-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }

/* ---------------------------------------------------- editor de listas (navegação configurável) */
.gy-lista-editor { display: grid; gap: 6px; }
.gy-lista-linha { display: grid; grid-template-columns: 26px minmax(120px, 1fr) minmax(160px, 1.4fr) 32px; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid var(--gy-border); border-radius: 10px; background: var(--gy-surface); }
.gy-lista-linha.gy-arrastando { opacity: .45; }
.gy-lista-linha.gy-drop-antes { box-shadow: inset 0 3px 0 var(--gy-accent-500); }
.gy-lista-linha.gy-drop-depois { box-shadow: inset 0 -3px 0 var(--gy-accent-500); }
.gy-lista-linha .gy-input { min-height: 34px; padding: 5px 10px; font-size: .8125rem; }
.gy-lista-linha .gy-grip { cursor: grab; }
.gy-lista-modelo { display: none; }
.gy-lista-url { grid-column: 3; }
/* ---------------------------------------------------- envio de arquivo (painel): zona de soltar no lugar do input nativo */
.gy-drop {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; min-height: 84px; padding: 12px 14px;
  border: 1.5px dashed var(--gy-border-strong); border-radius: 12px; background: var(--gy-surface-sunken);
  transition: border-color .15s cubic-bezier(.2,.7,.3,1), background .15s cubic-bezier(.2,.7,.3,1);
}
.gy-drop:hover, .gy-drop.gy-drop-over { border-color: var(--gy-primary-500); background: var(--gy-primary-50); }
.gy-drop:focus-within { outline: 2px solid var(--gy-primary-500); outline-offset: 2px; }
.gy-drop-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; }
.gy-drop-ic {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  background: var(--gy-primary-50); color: var(--gy-primary-600); border-radius: 10px;
}
.gy-drop-ic[hidden] { display: none; }
.gy-drop-ic .gy-icone { width: 22px; height: 22px; }
.gy-drop-preview { display: block; flex: none; }
.gy-drop-preview[hidden] { display: none; }
.gy-drop-preview img { width: 64px; height: 64px; object-fit: contain; display: block; background: #fff; border: 1px solid var(--gy-border); border-radius: 10px; padding: 4px; }
.gy-drop-txt { flex: 1; min-width: 160px; font-size: .8125rem; line-height: 1.4; }
.gy-drop-txt strong { display: block; font-size: .875rem; }
.gy-drop-txt .gy-drop-link { color: var(--gy-primary-700); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.gy-drop-txt small { display: block; color: var(--gy-text-muted); margin-top: 2px; }
.gy-drop-nome { flex-basis: 100%; font-size: .8125rem; font-weight: 600; color: var(--gy-primary-700); word-break: break-all; }
.gy-drop-nome:empty { display: none; }
.gy-check { display: flex; gap: 8px; align-items: center; font-size: .8125rem; margin-top: 8px; }

/* Aparência: cartões lado a lado, amostras de cor e galeria de selos */
.gy-apar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; align-items: start; }
.gy-apar-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .gy-apar-2 { grid-template-columns: 1fr; } }
.gy-card-titulo { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 1rem; }
.gy-card-titulo .gy-icone { color: var(--gy-primary-600); }
.gy-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.gy-swatch { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--gy-border); border-radius: 12px; background: var(--gy-surface); }
.gy-swatch input[type="color"] { width: 48px; height: 48px; flex: none; padding: 0; border: 0; background: none; border-radius: 10px; cursor: pointer; }
.gy-swatch input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.gy-swatch input[type="color"]::-webkit-color-swatch { border: 1px solid rgba(0,0,0,.12); border-radius: 10px; }
.gy-swatch input[type="color"]::-moz-color-swatch { border: 1px solid rgba(0,0,0,.12); border-radius: 10px; }
.gy-swatch-txt { min-width: 0; font-size: .8125rem; }
.gy-swatch-txt strong { display: block; }
.gy-swatch-txt label { display: flex; gap: 6px; align-items: center; margin-top: 4px; color: var(--gy-text-muted); }
.gy-apar-medidor { margin-top: 14px; }
.gy-apar-medidor summary { cursor: pointer; font-weight: 700; font-size: .875rem; }
.gy-apar-medidor .gy-contraste-lista { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 10px; }
.gy-apar-acoes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.gy-selos-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.gy-selo-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; border: 1px solid var(--gy-border); border-radius: 14px; padding: 14px; background: var(--gy-surface); }
.gy-selo-card .gy-selo-figura { align-content: start; }
.gy-selo-card .gy-selo-figura img { width: 96px; height: 96px; border-radius: 12px; padding: 8px; }
.gy-selo-campos .gy-label { margin: 8px 0 3px; font-size: .75rem; }
.gy-selo-campos .gy-label:first-child { margin-top: 0; }
.gy-selo-campos .gy-input { min-height: 34px; padding: 5px 10px; font-size: .8125rem; }
.gy-selo-campos textarea.gy-input { min-height: 64px; }
.gy-selo-rodape { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: .75rem; }
.gy-selo-novo { margin-top: 16px; padding: 16px; border: 1px dashed var(--gy-border-strong); border-radius: 14px; background: var(--gy-surface-sunken); }
.gy-selo-novo h4 { margin: 0 0 10px; display: flex; gap: 8px; align-items: center; }
.gy-selo-card .gy-input { min-height: 32px; padding: 4px 8px; font-size: .8125rem; margin-top: 6px; }

/* ---------------------------------------------------- movimento */
@media (prefers-reduced-motion: no-preference) {
  .gy-btn, .gy-sidebar a, .gy-pill, .gy-utilbar nav a, .gy-utilbar-acess button, .gy-popup-fechar, a { transition: background-color .16s cubic-bezier(.2,.7,.3,1), color .16s cubic-bezier(.2,.7,.3,1), border-color .16s cubic-bezier(.2,.7,.3,1), box-shadow .16s cubic-bezier(.2,.7,.3,1), transform .16s cubic-bezier(.2,.7,.3,1); }
  /* botão responde ao ponteiro: sobe 1 px no hover e volta ao clicar */
  .gy-btn:hover, .gy-pill:hover, .gy-flutuante:hover { transform: translateY(-1px); }
  .gy-btn:active, .gy-pill:active, .gy-flutuante:active { transform: none; }
  .gy-busca .gy-btn:hover, .gy-btn[disabled]:hover, .gy-btn[aria-disabled="true"]:hover { transform: none; }   /* preso no campo / sem ação */
  .gy-card, .gy-stat, .gy-card-item, .gy-satisfacao-opcoes button { transition: box-shadow .18s cubic-bezier(.2,.7,.3,1), transform .18s cubic-bezier(.2,.7,.3,1), border-color .18s cubic-bezier(.2,.7,.3,1), background-color .18s cubic-bezier(.2,.7,.3,1), color .18s cubic-bezier(.2,.7,.3,1); }
  .gy-card-icone { transition: background-color .18s cubic-bezier(.2,.7,.3,1), color .18s cubic-bezier(.2,.7,.3,1); }
  .gy-stat:hover { transform: translateY(-2px); box-shadow: var(--gy-shadow-md); }
  .gy-card-item:hover { transform: translateY(-3px); }
  .gy-satisfacao-opcoes button:hover { transform: translateY(-2px); }
}

@media print {
  .gy-topo, .gy-nav, .gy-rodape, .gy-sidebar, .gy-busca, .gy-flutuantes, .gy-utilbar, .gy-satisfacao, .gy-a11y, .gy-popup, [vw] { display: none; }
  body { background: #fff; }
}

/* ---------------------------------------------------- ferramentas de acessibilidade (botão flutuante + painel)
   Pedido do cliente (modelo carnaubadosdantas.rn.leg.br): símbolo universal no canto inferior
   direito abrindo "Ferramentas de acessibilidade". Só <button>, estados em aria-pressed. */
.gy-a11y {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 45;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.gy-a11y[hidden] { display: none; }
.gy-a11y-btn {
  width: 56px; height: 56px; padding: 0; border-radius: var(--gy-radius-lg); cursor: pointer;
  background: var(--gy-primary-600); border: 3px solid #fff;
  box-shadow: 0 8px 24px rgba(15,30,51,.28), 0 2px 6px rgba(15,30,51,.18);
  display: grid; place-items: center;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s cubic-bezier(.2,.7,.3,1), background .18s cubic-bezier(.2,.7,.3,1);
}
.gy-a11y-btn img { width: 34px; height: 32px; display: block; filter: brightness(0) invert(1); }
.gy-a11y-btn:hover, .gy-a11y-btn[aria-expanded="true"] {
  background: var(--gy-primary-700); transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11,91,114,.3), 0 2px 6px rgba(15,30,51,.18);
}
.gy-a11y-btn:focus-visible { outline: 3px solid var(--gy-accent-500); outline-offset: 3px; }
.gy-a11y-menu {
  width: 290px; max-height: min(70vh, 600px); overflow: auto; padding: 8px;
  background: var(--gy-surface); border: 1px solid var(--gy-border); border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15,30,51,.2), 0 2px 6px rgba(15,30,51,.08);
}
.gy-a11y-menu[hidden] { display: none; }
.gy-a11y-titulo { margin: 4px 8px 6px; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gy-text-muted); }
.gy-a11y-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 10px 6px 8px;
  border: 0; border-left: 3px solid transparent; border-radius: 10px; background: none;
  font: inherit; font-weight: 600; font-size: .875rem; color: var(--gy-text); cursor: pointer; text-align: left;
}
.gy-a11y-menu button:hover { background: var(--gy-surface-sunken); }
.gy-a11y-menu button:focus-visible { outline: 2px solid var(--gy-primary-500); outline-offset: -2px; }
.gy-a11y-menu button[aria-pressed="true"] { border-left-color: var(--gy-accent-500); background: var(--gy-primary-50); color: var(--gy-primary-700); }
.gy-a11y-menu button[aria-pressed="true"]::after { content: "✓"; margin-left: auto; font-weight: 800; color: var(--gy-primary-700); }
.gy-a11y-menu button[disabled] { opacity: .5; cursor: not-allowed; }
.gy-a11y-ic { display: grid; place-items: center; width: 28px; height: 28px; flex: none; background: var(--gy-primary-50); color: var(--gy-primary-600); border-radius: 8px; }
.gy-a11y-ic .gy-icone { width: 16px; height: 16px; }
.gy-a11y-sep { height: 1px; margin: 6px 8px; background: var(--gy-border); }
.gy-a11y-link { display: block; margin: 4px 8px 6px; font-size: .8125rem; }
@media (max-width: 560px) {
  .gy-a11y { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .gy-a11y-btn { width: 48px; height: 48px; }
  .gy-a11y-btn img { width: 28px; height: 26px; }
  .gy-a11y-menu { position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-height: 70vh; border-radius: 16px 16px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .gy-a11y-btn { transition: none; } .gy-a11y-btn:hover { transform: none; } }
/* os botões de contato sobem para não cobrir o botão de acessibilidade (mesmo canto) */
.gy-flutuantes-direita-baixo { bottom: calc(92px + env(safe-area-inset-bottom)); }
@media (max-width: 560px) { .gy-flutuantes-direita-baixo { bottom: calc(72px + env(safe-area-inset-bottom)); } }
/* frase que o leitor de tela está lendo */
mark.gy-lendo { background: var(--gy-accent-50); color: inherit; outline: 2px solid var(--gy-accent-500); border-radius: 3px; }

/* ---------------------------------------------------- pop-up de aviso (<dialog>): texto, imagem e vídeo
   Pedido do cliente (29/09/2026). Caixa de 640 px com filete âmbar (atenção, não decoração),
   imagem em faixa no alto, título 800, texto, vídeo 16:9 e ações à direita. */
.gy-popup {
  width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: 16px; overflow: auto;
  background: var(--gy-surface); color: var(--gy-text);
  box-shadow: 0 24px 64px rgba(8,18,31,.38), 0 4px 12px rgba(8,18,31,.18);
}
.gy-popup::backdrop { background: rgba(8,18,31,.62); }
.gy-popup[open] { animation: gy-popup-entra .2s cubic-bezier(.2,.7,.3,1); }
@keyframes gy-popup-entra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gy-popup[open] { animation: none; } }
.gy-popup-in { position: relative; border-top: 3px solid var(--gy-accent-500); }
.gy-popup-fechar {
  position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0; border-radius: var(--gy-radius-btn); cursor: pointer;
  background: var(--gy-surface); color: var(--gy-text); border: 1px solid var(--gy-border-strong);
  box-shadow: var(--gy-shadow-md);
}
.gy-popup-fechar:hover { background: var(--gy-primary-50); color: var(--gy-primary-700); border-color: var(--gy-primary-500); }
.gy-popup-fechar .gy-icone { width: 18px; height: 18px; }
.gy-popup-midia { background: var(--gy-surface-sunken); }
.gy-popup-midia img { display: block; width: 100%; max-height: 52vh; object-fit: contain; }
.gy-popup-corpo { padding: 20px 24px 24px; }
.gy-popup-corpo h2 { margin: 4px 48px 10px 0; font-size: 1.375rem; letter-spacing: -0.02em; }
.gy-popup-midia + .gy-popup-corpo h2 { margin-right: 0; }
.gy-popup-texto { font-size: .9375rem; }
.gy-popup-texto > :first-child { margin-top: 0; }
.gy-popup-texto > :last-child { margin-bottom: 0; }
.gy-popup-texto img { max-width: 100%; height: auto; border-radius: 8px; }
.gy-popup-video { margin-top: 16px; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.gy-popup-video iframe, .gy-popup-video video { display: block; width: 100%; height: 100%; border: 0; }
.gy-popup-acoes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin: 20px 0 0; }
@media (max-width: 560px) {
  .gy-popup { width: calc(100vw - 16px); border-radius: 14px; }
  .gy-popup-corpo { padding: 16px 16px 18px; }
  .gy-popup-acoes .gy-btn { flex: 1; }
}
/* painel: lista dos avisos criados */
.gy-popup-lista { display: grid; gap: 10px; margin-top: 12px; }
.gy-popup-adm {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--gy-border); border-radius: 14px; background: var(--gy-surface);
}
@media (max-width: 760px) { .gy-popup-adm { grid-template-columns: 64px minmax(0, 1fr); } .gy-popup-adm .gy-acoes { grid-column: 1 / -1; } }
.gy-popup-thumb { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--gy-primary-50); color: var(--gy-primary-600); }
.gy-popup-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gy-popup-thumb .gy-icone { width: 26px; height: 26px; }
.gy-popup-dados strong { font-size: .9375rem; }
.gy-popup-dados small { display: block; margin-top: 3px; color: var(--gy-text-muted); font-size: .8125rem; }

/* ---------------------------------------------------- modos do painel (combináveis: legível, cinza, sublinhados; excludentes: contraste, negativo, claro) */
html.gy-legivel body, html.gy-legivel h1, html.gy-legivel h2, html.gy-legivel h3, html.gy-legivel .gy-grifo { font-family: Arial, Verdana, "Segoe UI", sans-serif; }
html.gy-legivel body { letter-spacing: .02em; word-spacing: .08em; line-height: 1.7; }
html.gy-legivel .gy-grifo { font-style: normal; }
/* links sublinhados: só os links de TEXTO. Botões, cards, pílulas, marca e títulos de seção já se
   mostram clicáveis pela forma — o cliente pediu para nunca sublinhá-los (29/09/2026) */
html.gy-sublinhar a { text-decoration: underline !important; text-underline-offset: 2px; }
html.gy-sublinhar a.gy-btn, html.gy-sublinhar a.gy-card-item, html.gy-sublinhar a.gy-pill, html.gy-sublinhar a.gy-grupo-link,
html.gy-sublinhar a.gy-marca, html.gy-sublinhar a.gy-hero-selo, html.gy-sublinhar a.gy-flutuante, html.gy-sublinhar a.gy-lei,
html.gy-sublinhar a.gy-res, html.gy-sublinhar a.gy-dl-baixar, html.gy-sublinhar .gy-social a, html.gy-sublinhar .gy-selo-pub h2 a,
html.gy-sublinhar .gy-rodape-selos a, html.gy-sublinhar .gy-selo-figura a { text-decoration: none !important; }
/* cinza e negativo: filtro nos BLOCOS, nunca no html/body — filter cria bloco de contenção e
   quebra position: fixed (botões flutuantes, VLibras, folha do painel no mobile) */
html.gy-cinza .gy-utilbar, html.gy-cinza .gy-header, html.gy-cinza .gy-hero, html.gy-cinza .gy-main-publico,
html.gy-cinza .gy-satisfacao, html.gy-cinza .gy-rodape, html.gy-cinza .gy-flutuantes, html.gy-cinza .gy-a11y-btn, html.gy-cinza .gy-a11y-menu, html.gy-cinza .gy-popup { filter: grayscale(1); }
html.gy-negativo .gy-utilbar, html.gy-negativo .gy-header, html.gy-negativo .gy-hero, html.gy-negativo .gy-main-publico,
html.gy-negativo .gy-satisfacao, html.gy-negativo .gy-rodape, html.gy-negativo .gy-flutuantes, html.gy-negativo .gy-popup { filter: invert(1) hue-rotate(180deg); }
html.gy-negativo img, html.gy-negativo video, html.gy-negativo iframe { filter: invert(1) hue-rotate(180deg); }
html.gy-negativo .gy-main-publico { background: var(--gy-canvas); }
html.gy-negativo body { background: #0C0907; }
/* fundo claro: topo, hero e rodapé em branco com texto de tinta; foto e gradientes saem */
html.gy-claro { --gy-ink-900: #FFFFFF; --gy-ink-800: #F3F6F8; --gy-ink-700: #E3E9EF; --gy-ink-600: #CBD6E2; }
html.gy-claro .gy-utilbar, html.gy-claro .gy-hero, html.gy-claro .gy-rodape { background-image: none !important; background-color: #FFFFFF; }
html.gy-claro .gy-utilbar { border-bottom: 1px solid var(--gy-border); }
html.gy-claro .gy-hero { border-top: 1px solid var(--gy-border); }
html.gy-claro .gy-rodape-sub { background: var(--gy-surface-sunken); border-top: 1px solid var(--gy-border); }
html.gy-claro .gy-hero-marca { display: none; }
html.gy-claro .gy-hero h1, html.gy-claro .gy-hero-stats strong, html.gy-claro .gy-rodape-logo strong, html.gy-claro .gy-hero-selo,
html.gy-claro .gy-pill, html.gy-claro .gy-busca input[type="search"], html.gy-claro .gy-utilbar-acess button, html.gy-claro .gy-social a,
html.gy-claro .gy-trilha a:not(:first-child) { color: var(--gy-text); }
html.gy-claro .gy-hero p, html.gy-claro .gy-hero-stats, html.gy-claro .gy-trilha, html.gy-claro .gy-utilbar nav a, html.gy-claro .gy-rodape,
html.gy-claro .gy-rodape h3, html.gy-claro .gy-rodape-logo small, html.gy-claro .gy-rodape-slogan, html.gy-claro .gy-rodape-sub-in,
html.gy-claro .gy-rodape-fixos { color: var(--gy-text-muted); }
html.gy-claro .gy-busca input::placeholder { color: var(--gy-text-muted); opacity: 1; }
html.gy-claro .gy-rodape a, html.gy-claro .gy-rodape-sub a, html.gy-claro .gy-rodape-fixos a, html.gy-claro .gy-trilha a { color: var(--gy-primary-700); }
html.gy-claro .gy-rodape a:hover, html.gy-claro .gy-trilha a:hover, html.gy-claro .gy-trilha a:not(:first-child):hover, html.gy-claro .gy-hero-selo:hover { color: var(--gy-primary-700); text-decoration: underline; }
html.gy-claro .gy-hero-eyebrow, html.gy-claro .gy-grifo { color: var(--gy-accent-text); }
html.gy-claro .gy-pill .gy-icone { color: var(--gy-primary-600); }
html.gy-claro .gy-pill, html.gy-claro .gy-busca input[type="search"], html.gy-claro .gy-utilbar-acess button, html.gy-claro .gy-social a {
  background: var(--gy-surface); border: 1px solid var(--gy-border-strong); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
html.gy-claro .gy-pill:hover, html.gy-claro .gy-social a:hover, html.gy-claro .gy-utilbar-acess button:hover, html.gy-claro .gy-utilbar nav a:hover {
  background: var(--gy-primary-50); color: var(--gy-primary-700); border-color: var(--gy-primary-500);
}
html.gy-claro .gy-utilbar-acess [data-contraste][aria-pressed="true"], html.gy-claro .gy-utilbar-acess button:hover { color: var(--gy-primary-700); }
html.gy-claro .gy-hero-stats span { border-left-color: var(--gy-border-strong); }
html.gy-claro .gy-rodape-logo > span[aria-hidden] { background: var(--gy-primary-50); color: var(--gy-primary-600); }
html.gy-claro .gy-hero-selo img { box-shadow: var(--gy-shadow-md); border: 1px solid var(--gy-border); }
html.gy-claro .gy-rodape-selos img { border: 1px solid var(--gy-border); }
html.gy-claro .gy-flutuante-telefone, html.gy-claro .gy-flutuante-email { background: var(--gy-primary-600); }

/* ---------------------------------------------------- confirmação em modal (painel)
   Nunca confirm()/alert() do navegador: caixa de 520 px com filete âmbar (atenção) —
   tijolo quando a ação é destrutiva —, pergunta em 800, "o que será afetado" em muted
   e ações à direita (Cancelar secundário + ação primária/perigo). Montada por admin.js. */
.gy-confirm {
  width: min(520px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 16px;
  background: var(--gy-surface); color: var(--gy-text);
  box-shadow: 0 24px 64px rgba(8,18,31,.38), 0 4px 12px rgba(8,18,31,.18);
}
.gy-confirm::backdrop { background: rgba(8,18,31,.62); }
.gy-confirm[open] { animation: gy-popup-entra .2s cubic-bezier(.2,.7,.3,1); }
@media (prefers-reduced-motion: reduce) { .gy-confirm[open] { animation: none; } }
.gy-confirm-in { padding: 18px 24px 22px; border-top: 3px solid var(--gy-accent-500); }
.gy-confirm-perigo .gy-confirm-in { border-top-color: var(--gy-danger-500); }
.gy-confirm h2 { margin: 6px 0 8px; font-size: 1.125rem; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.gy-confirm-detalhe { margin: 0; color: var(--gy-text-muted); font-size: .9375rem; }
.gy-confirm-detalhe:empty { display: none; }
.gy-confirm-acoes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 20px; }
@media (max-width: 560px) { .gy-confirm { width: calc(100vw - 16px); } .gy-confirm-acoes .gy-btn { flex: 1; } }

/* título que abre um cartão: sem margem em cima (antes era style inline em cada tela) */
.gy-card > h2:first-child, .gy-card > h3:first-child { margin-top: 0; }
/* página de tabela: grupo "Baixar: CSV XLSX …" à direita da barra de filtro */
.gy-exportar { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
/* nota em muted sobre o hero de tinta (portal indisponível) */
.gy-hero-nota { margin: 24px 0 0; color: #B9C6D6; font-size: .8125rem; }

/* ==================================================== alto contraste (e-MAG / WCAG AAA)
   O botão ◐ precisa MUDAR de verdade (pedido do cliente). Padrão dos portais
   gov.br: fundo preto, texto branco, links e destaques amarelos, bordas
   visíveis, sem gradiente, sombra ou foto de fundo. Todo par texto/fundo fica
   ≥ 7:1 (AAA) — medido no navegador, não estimado. Fica no fim do arquivo e
   com `html.` na frente para vencer qualquer componente e também as cores do
   órgão (tema_css_tenant), que só valem no modo normal. */
html.gy-contraste {
  color-scheme: dark;
  --gy-ink-900: #000; --gy-ink-800: #000; --gy-ink-700: #000; --gy-ink-600: #000;
  --gy-primary-50: #000; --gy-primary-300: #FFD200; --gy-primary-500: #FFD200; --gy-primary-600: #FFD200; --gy-primary-700: #FFD200;
  --gy-accent-500: #FFD200; --gy-accent-600: #FFD200; --gy-accent-text: #FFD200; --gy-accent-50: #000;
  --gy-success-500: #6EE7A0; --gy-success-50: #000;
  --gy-danger-500: #FF9A90; --gy-danger-50: #000;
  --gy-canvas: #000; --gy-surface: #000; --gy-surface-sunken: #000;
  --gy-border: #FFF; --gy-border-strong: #FFF;
  --gy-text: #FFF; --gy-text-muted: #E6E6E6;
  --gy-shadow-sm: none; --gy-shadow-md: none;
}
html.gy-contraste body { background: #000; color: #FFF; }
html.gy-contraste ::selection { background: #FFD200; color: #000; }
html.gy-contraste ::-webkit-scrollbar-thumb { background: #FFF; border-color: #000; }
html.gy-contraste a { color: #FFD200; text-decoration: underline; }
html.gy-contraste a:hover { color: #FFF; }
/* botões, cards, pílulas, marca e títulos de seção nunca sublinhados (pedido do cliente, 29/09/2026):
   no contraste eles já se distinguem pela borda e pela cor */
html.gy-contraste a.gy-card-item, html.gy-contraste a.gy-pill, html.gy-contraste a.gy-grupo-link, html.gy-contraste a.gy-marca,
html.gy-contraste a.gy-hero-selo, html.gy-contraste a.gy-flutuante, html.gy-contraste a.gy-lei, html.gy-contraste a.gy-res,
html.gy-contraste a.gy-dl-baixar, html.gy-contraste .gy-social a, html.gy-contraste .gy-selo-pub h2 a { text-decoration: none; }
html.gy-contraste :focus-visible { outline: 3px solid #FFD200; outline-offset: 3px; }
html.gy-contraste mark { background: #FFD200; color: #000; }
html.gy-contraste kbd { background: #000; color: #FFF; border-color: #FFF; }
html.gy-contraste .gy-skip { background: #FFD200; color: #000; }
html.gy-contraste .gy-muted, html.gy-contraste .gy-eyebrow { color: #E6E6E6; }
/* só cor chapada: nada de gradiente, sombra, vidro ou foto (a foto do hero vem inline, por isso !important) */
html.gy-contraste .gy-utilbar, html.gy-contraste .gy-header, html.gy-contraste .gy-hero, html.gy-contraste .gy-rodape,
html.gy-contraste .gy-rodape-sub, html.gy-contraste .gy-satisfacao, html.gy-contraste .gy-card, html.gy-contraste .gy-card-item,
html.gy-contraste .gy-faq, html.gy-contraste .gy-lei, html.gy-contraste .gy-res, html.gy-contraste .gy-catalogo-item,
html.gy-contraste .gy-tabela-wrap, html.gy-contraste .gy-protocolo-grid > div, html.gy-contraste .gy-pill,
html.gy-contraste .gy-busca input[type="search"], html.gy-contraste .gy-input, html.gy-contraste .gy-satisfacao-opcoes button,
html.gy-contraste .gy-social a, html.gy-contraste .gy-utilbar-acess button, html.gy-contraste .gy-atualizado,
html.gy-contraste .gy-chip-lei, html.gy-contraste .gy-badge, html.gy-contraste .gy-alerta, html.gy-contraste .gy-barras .bar,
html.gy-contraste .gy-catalogo-meta span, html.gy-contraste .gy-tabela th, html.gy-contraste .gy-mapa-servicos,
html.gy-contraste .gy-rel-kpis > *, html.gy-contraste .gy-stat, html.gy-contraste .gy-docs li {
  background-image: none !important; background-color: #000; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
html.gy-contraste .gy-hero-marca { display: none; }
/* bordas visíveis onde havia sombra ou transparência */
html.gy-contraste .gy-card, html.gy-contraste .gy-card-item, html.gy-contraste .gy-faq, html.gy-contraste .gy-lei,
html.gy-contraste .gy-res, html.gy-contraste .gy-catalogo-item, html.gy-contraste .gy-tabela-wrap,
html.gy-contraste .gy-satisfacao-opcoes button, html.gy-contraste .gy-pill, html.gy-contraste .gy-busca input[type="search"],
html.gy-contraste .gy-input, html.gy-contraste .gy-utilbar-acess button, html.gy-contraste .gy-social a,
html.gy-contraste .gy-protocolo-grid > div, html.gy-contraste .gy-stat { border: 1px solid #FFF; }
html.gy-contraste .gy-lei { border-left-width: 3px; }
html.gy-contraste .gy-header { border-bottom: 2px solid #FFF; }
html.gy-contraste .gy-hero { border-bottom: 3px solid #FFD200; }
html.gy-contraste .gy-rodape { border-top: 3px solid #FFD200; }
html.gy-contraste .gy-rodape-sub { border-top: 1px solid #FFF; }
html.gy-contraste .gy-satisfacao { border-top: 2px solid #FFF; }
/* ícones em bloco: preto com contorno e ícone amarelo */
html.gy-contraste .gy-grupo-icone, html.gy-contraste .gy-card-icone, html.gy-contraste .gy-lei-icone, html.gy-contraste .gy-mapa-icone,
html.gy-contraste .gy-res-ic, html.gy-contraste .gy-brasao, html.gy-contraste .gy-rodape-logo > span[aria-hidden],
html.gy-contraste .gy-faq summary::before, html.gy-contraste .gy-dl-baixar, html.gy-contraste .gy-atricon-ic, html.gy-contraste .gy-stat-ic,
html.gy-contraste .gy-drop-ic { background: #000; color: #FFD200; border: 1px solid #FFD200; box-shadow: none; }
html.gy-contraste .gy-card-item:hover .gy-card-icone, html.gy-contraste .gy-dl-baixar:hover { background: #FFD200; color: #000; }
html.gy-contraste .gy-card-item:hover, html.gy-contraste .gy-lei:hover, html.gy-contraste .gy-res:hover, html.gy-contraste .gy-pill:hover,
html.gy-contraste .gy-satisfacao-opcoes button:hover, html.gy-contraste .gy-social a:hover, html.gy-contraste .gy-utilbar-acess button:hover,
html.gy-contraste .gy-catalogo-item:hover { border-color: #FFD200; color: #FFD200; background: #000; box-shadow: none; }
html.gy-contraste .gy-lei:hover { border-left-color: #FFD200; }
/* topo, hero e rodapé: texto branco, links amarelos */
html.gy-contraste .gy-utilbar nav a, html.gy-contraste .gy-header-nav > a:not(.gy-btn), html.gy-contraste .gy-rodape a,
html.gy-contraste .gy-rodape-sub a, html.gy-contraste .gy-rodape-fixos a, html.gy-contraste .gy-trilha a,
html.gy-contraste .gy-trilha a:not(:first-child), html.gy-contraste .gy-mapa-links a, html.gy-contraste .gy-dl, html.gy-contraste .gy-grupo-link { color: #FFD200; }
html.gy-contraste .gy-utilbar nav a:hover, html.gy-contraste .gy-rodape a:hover, html.gy-contraste .gy-trilha a:hover,
html.gy-contraste .gy-trilha a:not(:first-child):hover, html.gy-contraste .gy-grupo-link:hover { color: #FFF; background: #000; }
html.gy-contraste .gy-hero, html.gy-contraste .gy-hero p, html.gy-contraste .gy-hero-stats, html.gy-contraste .gy-hero-stats strong,
html.gy-contraste .gy-hero-selo, html.gy-contraste .gy-trilha, html.gy-contraste .gy-rodape, html.gy-contraste .gy-rodape h3,
html.gy-contraste .gy-rodape-logo small, html.gy-contraste .gy-rodape-slogan, html.gy-contraste .gy-rodape-sub-in,
html.gy-contraste .gy-rodape-fixos, html.gy-contraste .gy-marca, html.gy-contraste .gy-marca small, html.gy-contraste .gy-pill,
html.gy-contraste .gy-busca input[type="search"], html.gy-contraste .gy-input, html.gy-contraste .gy-utilbar-acess button,
html.gy-contraste .gy-social a, html.gy-contraste .gy-tabela th, html.gy-contraste .gy-faq summary,
html.gy-contraste .gy-satisfacao-opcoes button small, html.gy-contraste .gy-card-item, html.gy-contraste .gy-lei, html.gy-contraste .gy-res { color: #FFF; }
html.gy-contraste .gy-busca input::placeholder { color: #E6E6E6; opacity: 1; }
html.gy-contraste .gy-hero-stats span { border-left-color: #FFF; }
html.gy-contraste .gy-hero-eyebrow, html.gy-contraste .gy-grifo, html.gy-contraste .gy-pill .gy-icone,
html.gy-contraste .gy-faq[open] summary, html.gy-contraste .gy-faq-cat-titulo, html.gy-contraste .gy-protocolo-num, html.gy-contraste .gy-stat strong { color: #FFD200; }
html.gy-contraste .gy-grifo::after { display: none; }
html.gy-contraste .gy-grifo { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 2px; }
/* botões: amarelo com texto preto; secundário e perigo: contorno amarelo */
html.gy-contraste .gy-btn { background: #FFD200; color: #000; border: 2px solid #FFD200; box-shadow: none; text-decoration: none; }
html.gy-contraste .gy-btn:hover, html.gy-contraste .gy-btn:active, html.gy-contraste .gy-btn:focus-visible { background: #FFF; border-color: #FFF; color: #000; }
html.gy-contraste .gy-btn-sec, html.gy-contraste .gy-btn-perigo { background: #000; color: #FFD200; border-color: #FFD200; }
html.gy-contraste .gy-btn-sec:hover, html.gy-contraste .gy-btn-perigo:hover { background: #FFD200; color: #000; }
html.gy-contraste .gy-btn .gy-icone { color: inherit; }
html.gy-contraste .gy-btn:focus-visible { outline: 3px solid #FFD200; outline-offset: 3px; box-shadow: none; }
html.gy-contraste .gy-btn[disabled], html.gy-contraste .gy-btn[aria-disabled="true"] { background: #000; color: #E6E6E6; border: 2px dashed #E6E6E6; }
html.gy-contraste .gy-btn[aria-busy="true"] { color: transparent; }
html.gy-contraste .gy-btn[aria-busy="true"]::after { border-color: rgba(0,0,0,.3); border-top-color: #000; }
html.gy-contraste .gy-btn-sec[aria-busy="true"]::after, html.gy-contraste .gy-btn-perigo[aria-busy="true"]::after { border-color: rgba(255,210,0,.35); border-top-color: #FFD200; }
/* o próprio controle ◐ mostra que está ligado */
html.gy-contraste .gy-utilbar-acess [data-contraste] { background: #FFD200; color: #000; border-color: #FFD200; }
/* chips, badges e alertas: fundo preto, a cor vai para o texto e a borda */
html.gy-contraste .gy-atualizado, html.gy-contraste .gy-chip-lei, html.gy-contraste .gy-catalogo-meta span { color: #FFD200; border: 1px solid #FFD200; }
html.gy-contraste .gy-badge, html.gy-contraste .gy-alerta { border-width: 1px; border-style: solid; }
html.gy-contraste .gy-badge-vigente, html.gy-contraste .gy-badge-ok, html.gy-contraste .gy-alerta-ok { color: #6EE7A0; border-color: #6EE7A0; }
html.gy-contraste .gy-badge-a-vencer, html.gy-contraste .gy-alerta-aviso { color: #FFD200; border-color: #FFD200; }
html.gy-contraste .gy-badge-vencido, html.gy-contraste .gy-badge-pendente, html.gy-contraste .gy-alerta-erro { color: #FF9A90; border-color: #FF9A90; }
html.gy-contraste .gy-badge-oculto { color: #FFF; border-color: #FFF; }
/* formulários, tabelas e listas */
html.gy-contraste .gy-input:focus, html.gy-contraste .gy-busca input:focus { border-color: #FFD200; box-shadow: none; outline: 3px solid #FFD200; outline-offset: 2px; }
html.gy-contraste .gy-tabela th { border-bottom: 2px solid #FFF; }
html.gy-contraste .gy-tabela td { border-bottom-color: #FFF; }
html.gy-contraste .gy-tabela tbody tr:hover { background: #000; }
html.gy-contraste .gy-docs li { border-bottom-color: #FFF; }
html.gy-contraste .gy-faq-cat-titulo, html.gy-contraste .gy-mapa-secao h3 { border-bottom-color: #FFF; }
html.gy-contraste .gy-barras .bar { border: 1px solid #FFF; }
html.gy-contraste .gy-barras .bar > i { background: #FFD200; }
html.gy-contraste .gy-satisfacao-opcoes button span { filter: none; }
html.gy-contraste .gy-res-txt mark { background: #FFD200; color: #000; }
/* imagens (brasão, selos) ganham fundo branco para não sumir no preto */
html.gy-contraste .gy-brasao-img, html.gy-contraste .gy-rodape-logo img, html.gy-contraste .gy-rodape-selos img,
html.gy-contraste .gy-selo-figura img { background: #FFF; padding: 4px; border-radius: 8px; }
html.gy-contraste .gy-hero-selo img { box-shadow: 0 0 0 2px #FFD200; }
html.gy-contraste .gy-hero-selo:hover img { box-shadow: 0 0 0 3px #FFF; transform: none; }
html.gy-contraste .gy-rodape-selos a, html.gy-contraste .gy-selo-figura img { outline: 2px solid #FFD200; }
/* botões flutuantes */
html.gy-contraste .gy-flutuante { background: #000; color: #FFD200; border: 2px solid #FFD200; box-shadow: none; }
html.gy-contraste .gy-flutuante:hover, html.gy-contraste .gy-flutuante:focus-visible { background: #FFD200; color: #000; }
/* ferramentas de acessibilidade e leitor no alto contraste */
html.gy-contraste .gy-a11y-btn { background: #FFD200; border-color: #000; box-shadow: 0 0 0 2px #FFD200; }
html.gy-contraste .gy-a11y-btn img { filter: brightness(0); }
html.gy-contraste .gy-a11y-btn:hover, html.gy-contraste .gy-a11y-btn[aria-expanded="true"] { background: #FFF; box-shadow: 0 0 0 2px #FFF; }
html.gy-contraste .gy-a11y-menu { background: #000; border: 1px solid #FFF; box-shadow: none; }
html.gy-contraste .gy-a11y-titulo { color: #E6E6E6; }
html.gy-contraste .gy-a11y-menu button { color: #FFF; background: #000; }
html.gy-contraste .gy-a11y-menu button:hover { background: #000; color: #FFD200; }
html.gy-contraste .gy-a11y-menu button[aria-pressed="true"] { background: #000; color: #FFD200; border-left-color: #FFD200; }
html.gy-contraste .gy-a11y-menu button[aria-pressed="true"]::after { color: #FFD200; }
html.gy-contraste .gy-a11y-ic { background: #000; color: #FFD200; border: 1px solid #FFD200; }
html.gy-contraste .gy-a11y-sep { background: #FFF; }
html.gy-contraste mark.gy-lendo { background: #FFD200; color: #000; outline-color: #FFF; }
/* pop-up de aviso no alto contraste */
html.gy-contraste .gy-popup { background: #000; color: #FFF; box-shadow: 0 0 0 2px #FFF; }
html.gy-contraste .gy-popup::backdrop { background: rgba(0,0,0,.85); }
html.gy-contraste .gy-popup-in { border-top-color: #FFD200; }
html.gy-contraste .gy-popup-midia { background: #000; }
html.gy-contraste .gy-popup-fechar { background: #FFD200; color: #000; border-color: #FFD200; box-shadow: none; }
html.gy-contraste .gy-popup-fechar:hover { background: #FFF; border-color: #FFF; color: #000; }
html.gy-contraste .gy-popup-video { outline: 1px solid #FFF; }

/* ---------------------------------------------------- tabela de arquivos: abas por ano + títulos de grupo (26/10/2026) */
.gy-abas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0 0 0 4px; border-bottom: 1px solid var(--gy-border); }
.gy-aba {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 14px; margin-bottom: -1px;
  border: 1px solid transparent; border-bottom: 0; border-radius: var(--gy-radius-md) var(--gy-radius-md) 0 0;
  color: var(--gy-primary-700); font-weight: 700; font-size: .9375rem; text-decoration: none; font-variant-numeric: tabular-nums;
}
.gy-aba small { font-weight: 600; font-size: .75rem; color: var(--gy-text-muted); }
.gy-aba:hover { background: var(--gy-primary-50); text-decoration: none; }
.gy-aba.ativo { background: var(--gy-surface); border-color: var(--gy-border); color: var(--gy-text); box-shadow: inset 0 3px 0 var(--gy-accent-500); }
.gy-aba:focus-visible { outline: 2px solid var(--gy-accent-500); outline-offset: 2px; }
.gy-tabela-arquivos .gy-arq-grupo th {
  background: var(--gy-surface-sunken); color: var(--gy-text); text-align: left;
  font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 10px 14px;
}
.gy-tabela-arquivos .gy-arq-acoes { white-space: nowrap; text-align: right; }
.gy-tabela-arquivos .gy-arq-acoes .gy-btn + .gy-btn { margin-left: 4px; }
.gy-sem-movimento { display: flex; gap: 8px; align-items: flex-start; }
.gy-sem-movimento .gy-icone { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* "Atualizar a cada": linha do prazo "outro" (hidden vence porque não há display inline) */
.gy-periodicidade-outro { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.gy-periodicidade-outro[hidden] { display: none; }

/* ---------------------------------------------------- mapa do site na vertical (lista única aninhada) */
.gy-mapa-arvore, .gy-mapa-arvore ul { margin: 0; padding-left: 22px; }
.gy-mapa-arvore { list-style: none; padding-left: 0; }
.gy-mapa-arvore ul { list-style: disc; margin: 6px 0 0; }
.gy-mapa-arvore ul ul { list-style: circle; }
.gy-mapa-arvore li { margin: 0 0 6px; font-size: .9375rem; }
.gy-mapa-arvore > li { margin: 0 0 18px; padding-left: 0; }
.gy-mapa-arvore > li:last-child { margin-bottom: 0; }
.gy-mapa-topo {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 2px;
  font-size: .875rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--gy-text); text-decoration: none;
}
a.gy-mapa-topo:hover { color: var(--gy-primary-700); text-decoration: underline; }
.gy-mapa-arvore ul a { color: var(--gy-primary-700); text-decoration: none; }
.gy-mapa-arvore ul a:hover { text-decoration: underline; }
.gy-mapa-arvore .gy-ext { font-size: .75em; }

/* alto contraste para os componentes acima */
html.gy-contraste .gy-aba { color: #FFD200; }
html.gy-contraste .gy-aba:hover, html.gy-contraste .gy-aba.ativo { background: #000; border-color: #FFF; color: #FFF; box-shadow: inset 0 3px 0 #FFD200; }
html.gy-contraste .gy-abas { border-bottom-color: #FFF; }
html.gy-contraste .gy-tabela-arquivos .gy-arq-grupo th { background: #000; color: #FFD200; border-bottom: 1px solid #FFF; }
html.gy-contraste .gy-mapa-topo { color: #FFF; }
html.gy-contraste .gy-mapa-arvore ul a, html.gy-contraste a.gy-mapa-topo:hover { color: #FFD200; }

/* ---------------------------------------------------------------- Escolha do portal
   (portais.php) — raiz de um endereço compartilhado: hero curto + grade de cards,
   um por instituição no ar, com o brasão do órgão em bloco 56px. Mesmo card do
   item (.gy-card-item), só maior; nenhuma cor nova. */
.gy-portais-hero { padding: 56px 0 40px; }
.gy-portais-cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 32px; }
.gy-portais .gy-card-item { padding: 18px; min-height: 92px; gap: 16px; }
.gy-portais-brasao { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; }
.gy-portais-brasao img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.gy-portais-brasao .gy-icone { width: 26px; height: 26px; }
.gy-portais .gy-card-item:hover .gy-portais-brasao:has(img) { background: var(--gy-surface); }
.gy-portais-nome { display: flex; flex-direction: column; gap: 2px; font-size: 1rem; line-height: 1.3; }
.gy-portais-nome small { font-weight: 500; font-size: .8125rem; color: var(--gy-text-muted); }
.gy-portais-rodape { margin-top: 56px; }
html.gy-contraste .gy-portais-nome small { color: #fff; }

/* ================================================================ Modelos de topo (03/11/2026)
   O órgão escolhe em Aparência → "Modelo do topo"; includes/topo.php monta as mesmas
   peças em arranjos diferentes e o <body> ganha gy-topo-<modelo>. O modelo "cromo" é
   o de sempre (.gy-header + .gy-hero acima). Nenhuma cor nova fora dos tokens, salvo
   os claros medidos para texto sobre a primária (ver DESIGN.md). */

/* ---- 2 · Capa: a foto ocupa o topo; faixa clara com "atualizado em", números e selos */
.gy-capa { position: relative; color: #fff; min-height: 560px; display: flex; flex-direction: column; background: var(--gy-ink-900) center / cover no-repeat; }
.gy-capa::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,18,31,.84) 0%, rgba(8,18,31,.62) 45%, rgba(8,18,31,.9) 100%); }
.gy-capa-sem-foto { background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1.5px), radial-gradient(90% 150% at 20% -50%, rgba(18,139,168,.42), transparent 60%); background-size: 22px 22px, auto; }
.gy-capa-sem-foto::before { display: none; }
.gy-capa-interna { min-height: 0; }
.gy-capa > * { position: relative; }
.gy-capa > .gy-container { width: 100%; }   /* no flex em coluna, margin auto + max-width encolhe ao conteúdo sem isto */
.gy-capa-topo { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.gy-capa-marca { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.gy-capa-marca .gy-brasao-img { height: 64px; max-width: 140px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.45)); }
.gy-capa-marca strong { display: block; font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.gy-capa-marca small { color: #C9D4E0; }
.gy-capa-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .875rem; }
.gy-capa-links > a:not(.gy-btn) { color: #E4EBF2; text-decoration: none; font-weight: 500; }
.gy-capa-links > a:not(.gy-btn):hover { color: #fff; text-decoration: underline; }
.gy-capa-centro { flex: 1; display: grid; place-items: center; text-align: center; padding: 40px 16px 56px; }
.gy-capa-interna .gy-capa-centro { padding: 16px 16px 36px; }
.gy-capa-texto { max-width: 760px; }
.gy-capa-centro .gy-trilha { color: #B9C6D6; }
.gy-capa-centro h1 { margin: 0 auto 12px; color: #fff; font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -0.03em; line-height: 1.08; max-width: 18ch; }
.gy-capa-interna .gy-capa-centro h1 { font-size: clamp(1.625rem, 3.6vw, 2.25rem); max-width: 26ch; }
.gy-capa-centro p { color: #D4DDE7; margin: 0 auto; max-width: 56ch; font-size: 1.0625rem; }
.gy-capa-centro .gy-busca { margin: 28px auto 0; }
.gy-capa-centro .gy-pills { justify-content: center; }
.gy-capa-faixa { background: var(--gy-surface); border-bottom: 1px solid var(--gy-border); box-shadow: var(--gy-shadow-sm); }
.gy-capa-faixa .gy-container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 12px; padding-bottom: 12px; min-height: 60px; }
.gy-capa-num { display: flex; gap: 14px; color: var(--gy-text-muted); font-size: .8125rem; }
.gy-capa-num strong { color: var(--gy-text); font-variant-numeric: tabular-nums; }
.gy-capa-selos { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.gy-capa-selos a { display: flex; align-items: center; gap: 10px; color: var(--gy-text); text-decoration: none; font-weight: 600; font-size: .8125rem; }
.gy-capa-selos a:hover { color: var(--gy-primary-700); }
.gy-capa-selos img { height: 48px; width: 48px; object-fit: contain; }

/* ---- 3 · Institucional claro: sem bloco escuro; menu das seções na primária */
.gy-utilbar-clara { background: var(--gy-surface-sunken); border-bottom: 1px solid var(--gy-border); }
.gy-utilbar-clara nav a { color: var(--gy-text-muted); }
.gy-utilbar-clara nav a:hover { background: var(--gy-border); color: var(--gy-text); }
.gy-utilbar-clara .gy-utilbar-acess button { background: var(--gy-surface); color: var(--gy-text); border-color: var(--gy-border-strong); }
.gy-utilbar-clara .gy-utilbar-acess button:hover { background: var(--gy-primary-50); color: var(--gy-primary-700); }
.gy-claro-header { background: var(--gy-surface); }
.gy-claro-header .gy-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.gy-claro-marca { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--gy-text); }
.gy-claro-marca .gy-brasao-img { height: 80px; max-width: 160px; }
.gy-claro-marca .gy-brasao { width: 64px; height: 64px; }
.gy-claro-marca strong { display: block; font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.gy-claro-marca small { display: block; color: var(--gy-text-muted); font-size: .9375rem; margin-top: 2px; }
.gy-claro-acoes { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gy-claro-acoes > a:not(.gy-btn) { color: var(--gy-text-muted); text-decoration: none; font-weight: 500; font-size: .875rem; }
.gy-claro-acoes > a:not(.gy-btn):hover { color: var(--gy-primary-700); }
.gy-claro-menu { background: var(--gy-primary-700); }
.gy-claro-menu .gy-container { display: flex; flex-wrap: wrap; align-items: stretch; }
.gy-claro-menu a, .gy-claro-mais > summary { display: block; color: #fff; text-decoration: none; font-weight: 600; font-size: .8125rem; padding: 13px 14px; border-bottom: 3px solid transparent; cursor: pointer; list-style: none; }
.gy-claro-mais > summary::-webkit-details-marker { display: none; }
.gy-claro-menu a:hover, .gy-claro-menu a[aria-current], .gy-claro-mais[open] > summary { border-bottom-color: var(--gy-accent-500); background: rgba(255,255,255,.07); color: #fff; }
.gy-claro-mais { position: relative; }
.gy-claro-mais-menu { position: absolute; z-index: 30; top: 100%; right: 0; min-width: 260px; padding: 6px; background: var(--gy-surface); border: 1px solid var(--gy-border); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,30,51,.16), 0 2px 6px rgba(15,30,51,.08); }
.gy-claro-mais-menu a { color: var(--gy-text); padding: 9px 12px; border: 0; border-radius: 8px; font-weight: 600; }
.gy-claro-mais-menu a:hover { background: var(--gy-primary-50); color: var(--gy-primary-700); border: 0; }
.gy-claro-titulo { background: var(--gy-surface); border-bottom: 1px solid var(--gy-border); }
.gy-claro-titulo .gy-container { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 36px; padding-bottom: 32px; flex-wrap: wrap; }
.gy-claro-texto { flex: 1 1 520px; min-width: 0; }
.gy-claro-titulo h1 { margin: 6px 0 8px; font-size: clamp(1.625rem, 3.4vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.1; max-width: 22ch; }
.gy-claro-titulo .gy-grifo, .gy-comp-faixa .gy-grifo { color: var(--gy-accent-text); }
.gy-claro-titulo .gy-trilha, .gy-comp-faixa .gy-trilha { color: var(--gy-text-muted); }
.gy-claro-titulo .gy-trilha a, .gy-comp-faixa .gy-trilha a { color: var(--gy-primary-700); }
.gy-claro-titulo p { margin: 0 0 18px; color: var(--gy-text-muted); max-width: 60ch; }
.gy-pills-claras { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.gy-pills-claras a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: var(--gy-radius-btn); border: 1px solid var(--gy-border-strong); background: var(--gy-surface); color: var(--gy-primary-700); font-weight: 600; font-size: .875rem; text-decoration: none; }
.gy-pills-claras a:hover { border-color: var(--gy-primary-500); background: var(--gy-primary-50); }
.gy-pills-claras .gy-icone { color: var(--gy-primary-600); }
.gy-claro-selos { display: flex; flex-wrap: wrap; gap: 16px; }
.gy-claro-selos a { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--gy-text-muted); font-size: .75rem; font-weight: 600; text-align: center; }
.gy-claro-selos a:hover { color: var(--gy-primary-700); }
.gy-claro-selos img { width: 96px; height: 96px; object-fit: contain; background: #fff; border: 1px solid var(--gy-border); border-radius: 16px; padding: 8px; }

/* ---- 4 · Cor da marca: cabeçalho e destaque na primária (claros medidos sobre --gy-primary-700) */
.gy-cor-header { background: var(--gy-primary-700); color: #fff; }
.gy-cor-header .gy-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; min-height: 84px; }
.gy-cor-header .gy-marca { color: #fff; }
.gy-cor-header .gy-marca small { color: #E6F3F7; }
.gy-cor-moldura { display: grid; place-items: center; width: 64px; height: 64px; background: #fff; border-radius: var(--gy-radius-md); padding: 6px; flex: none; }
.gy-cor-moldura .gy-brasao-img { max-height: 52px; height: auto; }
.gy-cor-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .875rem; }
.gy-cor-nav > a:not(.gy-btn-amb) { color: #E6F3F7; text-decoration: none; font-weight: 500; }
.gy-cor-nav > a:not(.gy-btn-amb):hover { color: #fff; text-decoration: underline; }
.gy-cor-header .gy-atualizado { color: #E6F3F7; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }
.gy-cor-header .gy-atualizado strong { color: #fff; }
.gy-btn-amb { display: inline-flex; align-items: center; gap: 8px; background: var(--gy-accent-500); color: var(--gy-ink-900); font-weight: 700; border-radius: var(--gy-radius-btn); padding: 7px 14px; text-decoration: none; min-height: 36px; }
.gy-btn-amb:hover { background: var(--gy-accent-600); color: #fff; }
.gy-cor-hero { background: var(--gy-primary-700); background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.5px), linear-gradient(135deg, var(--gy-primary-700), var(--gy-primary-700) 45%, rgba(8,18,31,.55)); background-size: 22px 22px, auto; color: #fff; padding: 52px 0 44px; border-bottom: 3px solid var(--gy-accent-500); }
.gy-cor-hero .gy-hero-eyebrow { color: #FFD58A; }
.gy-cor-hero h1 { color: #fff; font-size: clamp(1.875rem, 4.2vw, 2.625rem); letter-spacing: -0.03em; line-height: 1.08; max-width: 22ch; margin: 0 0 10px; }
.gy-cor-hero .gy-grifo { color: #FFD58A; }
.gy-cor-hero .gy-trilha { color: #E6F3F7; }
.gy-cor-hero .gy-trilha a { color: #FFD58A; }
.gy-cor-hero .gy-hero-texto > p { color: #E6F3F7; }
.gy-cor-hero .gy-busca input[type="search"] { background: #fff; color: var(--gy-text); border-color: #fff; }
.gy-cor-hero .gy-busca input::placeholder { color: var(--gy-text-muted); }
.gy-cor-hero .gy-pill { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.gy-cor-hero .gy-pill .gy-icone { color: #FFD58A; }
.gy-cor-hero .gy-hero-stats { color: #E6F3F7; }
.gy-cor-hero .gy-hero-stats span { border-left-color: rgba(255,255,255,.28); }

/* ---- 5 · Compacto: brasão, busca e e-SIC numa linha; título numa faixa curta */
.gy-comp-header { background: var(--gy-surface); border-bottom: 3px solid var(--gy-primary-600); box-shadow: var(--gy-shadow-sm); position: relative; z-index: 2; }
.gy-comp-header .gy-container { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.gy-comp-busca { display: flex; gap: 8px; max-width: 640px; width: 100%; margin: 0 auto; }
.gy-comp-busca .gy-input { min-height: 46px; }
.gy-comp-acoes { display: flex; gap: 8px; }
.gy-comp-faixa { padding: 28px 0 4px; }
.gy-comp-faixa .gy-container { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.gy-comp-texto { flex: 1 1 520px; min-width: 0; }
.gy-comp-faixa h1 { margin: 4px 0 6px; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; }
.gy-comp-faixa p { margin: 0; color: var(--gy-text-muted); max-width: 70ch; }
.gy-comp-meta, .gy-claro-meta { display: flex; gap: 8px 20px; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: .8125rem; color: var(--gy-text-muted); }
.gy-comp-meta > a, .gy-claro-meta > a { color: var(--gy-text-muted); text-decoration: none; font-weight: 500; }
.gy-comp-meta > a:hover { color: var(--gy-primary-700); }
.gy-comp-num { display: contents; }
.gy-comp-num strong, .gy-comp-meta strong, .gy-claro-meta strong { color: var(--gy-text); font-variant-numeric: tabular-nums; }
.gy-comp-selos { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.gy-comp-selos a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gy-text-muted); font-size: .8125rem; font-weight: 600; }
.gy-comp-selos a:hover { color: var(--gy-primary-700); }
.gy-comp-selos img { width: 60px; height: 60px; object-fit: contain; }
@media (max-width: 860px) {
  .gy-comp-header .gy-container { grid-template-columns: 1fr; gap: 10px; }
  .gy-comp-busca { max-width: none; }
}

/* ---- escolha do modelo (Aparência): cartões com miniatura */
.gy-topo-opcoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gy-topo-opcao { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 2px solid var(--gy-border); border-radius: 12px; background: var(--gy-surface); cursor: pointer; }
.gy-topo-opcao:hover { border-color: var(--gy-primary-300); }
.gy-topo-opcao:has(input:checked) { border-color: var(--gy-primary-500); box-shadow: 0 0 0 3px rgba(18,139,168,.15); }
.gy-topo-opcao input { position: absolute; top: 14px; left: 14px; margin: 0; width: 18px; height: 18px; accent-color: var(--gy-primary-600); }
.gy-topo-opcao img { display: block; width: 100%; aspect-ratio: 560 / 236; object-fit: cover; border-radius: 8px; border: 1px solid var(--gy-border); }
.gy-topo-opcao strong { font-size: .9375rem; }
.gy-topo-opcao > span { font-size: .8125rem; color: var(--gy-text-muted); line-height: 1.4; }
.gy-topo-opcao > a { font-size: .8125rem; align-self: flex-start; }

/* ---- alto contraste: os modelos novos seguem a mesma regra (fundo preto, texto branco, links e destaques amarelos) */
html.gy-contraste .gy-capa, html.gy-contraste .gy-capa-faixa, html.gy-contraste .gy-utilbar-clara, html.gy-contraste .gy-claro-header,
html.gy-contraste .gy-claro-menu, html.gy-contraste .gy-claro-titulo, html.gy-contraste .gy-claro-mais-menu, html.gy-contraste .gy-cor-header,
html.gy-contraste .gy-cor-hero, html.gy-contraste .gy-comp-header, html.gy-contraste .gy-comp-faixa, html.gy-contraste .gy-pills-claras a,
html.gy-contraste .gy-cor-moldura, html.gy-contraste .gy-claro-selos img, html.gy-contraste .gy-topo-opcao {
  background-image: none !important; background-color: #000; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
html.gy-contraste .gy-capa::before { display: none; }
html.gy-contraste .gy-capa-faixa, html.gy-contraste .gy-claro-header, html.gy-contraste .gy-claro-titulo, html.gy-contraste .gy-comp-header { border-bottom: 2px solid #FFF; }
html.gy-contraste .gy-capa, html.gy-contraste .gy-cor-hero { border-bottom: 3px solid #FFD200; }
html.gy-contraste .gy-claro-menu { border-top: 1px solid #FFF; border-bottom: 1px solid #FFF; }
html.gy-contraste .gy-pills-claras a, html.gy-contraste .gy-claro-selos img, html.gy-contraste .gy-cor-moldura, html.gy-contraste .gy-claro-mais-menu { border: 1px solid #FFF; }
html.gy-contraste .gy-capa, html.gy-contraste .gy-capa-marca, html.gy-contraste .gy-capa-marca small, html.gy-contraste .gy-capa-centro p,
html.gy-contraste .gy-capa-centro .gy-trilha, html.gy-contraste .gy-capa-num, html.gy-contraste .gy-capa-selos a, html.gy-contraste .gy-claro-marca,
html.gy-contraste .gy-claro-marca small, html.gy-contraste .gy-claro-titulo p, html.gy-contraste .gy-claro-selos a, html.gy-contraste .gy-cor-header,
html.gy-contraste .gy-cor-header .gy-marca small, html.gy-contraste .gy-cor-hero, html.gy-contraste .gy-cor-hero .gy-hero-texto > p,
html.gy-contraste .gy-cor-hero .gy-hero-stats, html.gy-contraste .gy-cor-hero .gy-trilha, html.gy-contraste .gy-comp-faixa p,
html.gy-contraste .gy-comp-meta, html.gy-contraste .gy-claro-meta, html.gy-contraste .gy-comp-selos a, html.gy-contraste .gy-claro-titulo .gy-trilha, html.gy-contraste .gy-comp-faixa .gy-trilha,
html.gy-contraste .gy-cor-hero .gy-busca input[type="search"] { color: #FFF; }
html.gy-contraste .gy-capa-links > a, html.gy-contraste .gy-claro-menu a, html.gy-contraste .gy-claro-mais > summary, html.gy-contraste .gy-claro-mais-menu a,
html.gy-contraste .gy-claro-acoes > a:not(.gy-btn), html.gy-contraste .gy-cor-nav > a:not(.gy-btn-amb), html.gy-contraste .gy-pills-claras a,
html.gy-contraste .gy-pills-claras .gy-icone, html.gy-contraste .gy-comp-meta > a, html.gy-contraste .gy-claro-titulo .gy-trilha a,
html.gy-contraste .gy-comp-faixa .gy-trilha a, html.gy-contraste .gy-cor-hero .gy-trilha a, html.gy-contraste .gy-cor-hero .gy-hero-eyebrow,
html.gy-contraste .gy-cor-hero .gy-grifo, html.gy-contraste .gy-cor-hero .gy-pill .gy-icone, html.gy-contraste .gy-claro-titulo .gy-grifo, html.gy-contraste .gy-comp-faixa .gy-grifo { color: #FFD200; }
html.gy-contraste .gy-claro-menu a:hover, html.gy-contraste .gy-claro-menu a[aria-current], html.gy-contraste .gy-claro-mais[open] > summary { background: #000; color: #FFF; border-bottom-color: #FFD200; }
html.gy-contraste .gy-pills-claras a:hover, html.gy-contraste .gy-claro-mais-menu a:hover { background: #000; border-color: #FFD200; color: #FFD200; }
html.gy-contraste .gy-btn-amb { background: #FFD200; color: #000; border: 2px solid #FFD200; }
html.gy-contraste .gy-btn-amb:hover { background: #FFF; border-color: #FFF; color: #000; }
html.gy-contraste .gy-cor-hero .gy-busca input[type="search"] { background: #000; border: 1px solid #FFF; }
html.gy-contraste .gy-cor-hero .gy-pill { background: #000; border: 1px solid #FFF; color: #FFF; }
html.gy-contraste .gy-cor-header .gy-atualizado { background: #000; }
html.gy-contraste .gy-comp-header { border-bottom-color: #FFF; }

/* ---------------------------------------------------------------- "Baixar esta tela" (05/11/2026)
   A linha do chip "Informações atualizadas em" ganha, à direita, os dez formatos do
   documento da tela (documento.php); nas telas sem chip (seção, FAQ, legislação) a
   linha fica solta acima do conteúdo. Mesma cara do "Baixar:" das tabelas. */
.gy-tela-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 0 0 12px; }
.gy-tela-acoes .gy-atualizado-pagina { margin: 0; }
.gy-tela-acoes-solta { margin: 0 0 16px; }
.gy-baixar-tela { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.gy-baixar-tela > .gy-muted { display: inline-flex; align-items: center; gap: 4px; margin-right: 2px; white-space: nowrap; }
.gy-tela-acoes-solta .gy-baixar-tela { margin-left: 0; }
.gy-pasta-itens { display: block; margin-top: 16px; }
@media (max-width: 720px) { .gy-baixar-tela { margin-left: 0; } }

/* ====================================================================
   Grade pública de dados no padrão de grades (PLANO, 11/11/2026)
   includes/grade_publica.php · assets/js/grade.js
   Barra (busca, filtro avançado, colunas, baixar, imprimir), etiquetas,
   tabela com primeira coluna presa, totais, contagem e paginação.
   Só tokens; no alto contraste os tokens já viram preto, branco e amarelo.
   ==================================================================== */
.gy-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gy-nowrap { white-space: nowrap; }
.gy-grade { margin-top: 16px; padding: 0; }
.gy-grade-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 18px 20px 14px; border-bottom: 1px solid var(--gy-border); }
.gy-grade-cab h2 { margin: 2px 0 0; font-size: 1.25rem; letter-spacing: -0.02em; }
.gy-grade-cab .gy-eyebrow a { color: inherit; text-decoration: none; }
.gy-grade-cab .gy-atualizado { margin: 0; }
.gy-grade > .gy-abas { margin: 14px 20px 0; }

/* barra: todos os controles com a mesma altura (36 px) */
.gy-grade-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 20px 0; }
.gy-grade-busca { display: flex; gap: 8px; flex: 1 1 300px; max-width: 480px; min-width: 0; margin: 0; }
.gy-grade-busca-campo { position: relative; flex: 1 1 auto; min-width: 0; }
.gy-grade-busca-campo > .gy-icone { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--gy-text-muted); pointer-events: none; }
.gy-grade-busca-campo > .gy-input { padding: 6px 12px 6px 36px; min-height: 36px; border-radius: var(--gy-radius-btn); font-size: .875rem; }
.gy-grade-acoes { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; align-items: center; }
.gy-grade-barra .gy-btn-sm { min-height: 36px; }
.gy-grade-barra .gy-btn-sm.gy-btn-icon { width: 36px; padding: 6px; }
.gy-grade-barra summary small { font-weight: 600; color: var(--gy-text-muted); }
.gy-grade-cont { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--gy-accent-500); color: var(--gy-ink-900); font-size: .6875rem; font-weight: 800; }

/* painéis suspensos (filtro, colunas, baixar) */
/* painel próprio (não .gy-dd-menu, que transforma todo <button> em item de menu) */
.gy-grade-painel {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: min(660px, calc(100vw - 32px)); padding: 16px;
  background: var(--gy-surface); border: 1px solid var(--gy-border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15,30,51,.16), 0 2px 6px rgba(15,30,51,.08);
}
.gy-grade-painel-dir { left: auto; right: 0; }
.gy-grade-painel-colunas { width: min(320px, calc(100vw - 32px)); }
.gy-grade-painel-baixar { width: min(360px, calc(100vw - 32px)); }
.gy-grade-painel-titulo { margin: 0 0 10px; font-weight: 800; font-size: .875rem; color: var(--gy-text); }
.gy-grade-painel-nota { margin: 10px 0 0; font-size: .75rem; }
.gy-grade-painel-acoes { margin: 8px 0 0; }
.gy-grade-painel-pe { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.gy-filtro-linha { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .9fr) 36px; gap: 6px; margin-bottom: 6px; align-items: center; }
.gy-filtro-linha .gy-input { min-height: 36px; padding: 6px 10px; font-size: .8125rem; border-radius: var(--gy-radius-btn); }
.gy-filtro-linha .gy-btn-icon { width: 36px; min-height: 36px; padding: 6px; }
.gy-filtro-linha [hidden] { display: block; visibility: hidden; }   /* guarda a coluna da grade */
.gy-grade-modo { border: 0; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .8125rem; }
.gy-grade-modo legend { padding: 0; margin-bottom: 4px; color: var(--gy-text-muted); }
.gy-grade-modo label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.gy-grade-cols { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.gy-grade-cols label { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; font-size: .875rem; cursor: pointer; }
.gy-grade-cols label:hover { background: var(--gy-primary-50); }
.gy-grade-formatos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gy-grade-formatos a { display: flex; flex-direction: column; gap: 1px; height: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--gy-border); text-decoration: none; color: var(--gy-text); }
.gy-grade-formatos a:hover { background: var(--gy-primary-50); border-color: var(--gy-primary-500); color: var(--gy-primary-700); }
.gy-grade-formatos strong { font-size: .8125rem; }
.gy-grade-formatos small { font-size: .6875rem; color: var(--gy-text-muted); line-height: 1.3; }

/* contagem e etiquetas do filtro */
.gy-grade-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 20px; font-size: .875rem; min-height: 46px; }
.gy-grade-total-txt strong { font-weight: 800; font-variant-numeric: tabular-nums; }
.gy-etiqueta { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--gy-primary-50); color: var(--gy-primary-700); border: 1px solid var(--gy-primary-300); font-size: .8125rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.gy-etiqueta:hover { background: var(--gy-surface); border-color: var(--gy-primary-500); color: var(--gy-primary-700); }
.gy-etiqueta > span[aria-hidden] { font-weight: 800; }
.gy-grade-limpar { font-size: .8125rem; font-weight: 700; }
.gy-grade-dica { margin-left: auto; font-size: .75rem; font-weight: 700; color: var(--gy-accent-text); background: var(--gy-accent-50); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.gy-grade-ordenar { display: none; }

/* rolagem lateral também no alto, primeira coluna presa */
.gy-grade-rolagem-topo { overflow-x: auto; overflow-y: hidden; margin: 0 20px 4px; }
.gy-grade-rolagem-topo > div { height: 1px; }
.gy-grade-wrap { margin: 0 20px; }
.gy-grade-wrap:focus-visible { outline: 2px solid var(--gy-primary-500); outline-offset: 2px; }
.gy-grade-tabela th a { display: inline-flex; align-items: center; gap: 6px; }
.gy-grade-tabela th a:hover, .gy-grade-tabela th a.ativo { color: var(--gy-text); }
.gy-ord-seta { font-size: .5625rem; color: var(--gy-accent-600); }
.gy-grade-tabela th.num { text-align: right; }
.gy-grade-tabela .gy-col-longa { min-width: 380px; max-width: 520px; }
.gy-grade-tabela .gy-col-fixa { position: sticky; left: 0; z-index: 1; background: var(--gy-surface); min-width: 190px; max-width: 280px; }
.gy-grade-tabela thead .gy-col-fixa, .gy-grade-total .gy-col-fixa { background: var(--gy-surface-sunken); }
.gy-grade-tabela tbody tr:hover .gy-col-fixa { background-image: linear-gradient(rgba(18,139,168,.04), rgba(18,139,168,.04)); }
.gy-grade-wrap.rolada .gy-col-fixa { box-shadow: 6px 0 10px -6px rgba(15,30,51,.22); }
.gy-cel-mais > summary { list-style: none; cursor: pointer; }
.gy-cel-mais > summary::-webkit-details-marker { display: none; }
.gy-cel-ver { color: var(--gy-primary-700); font-weight: 700; font-size: .8125rem; white-space: nowrap; text-decoration: underline; }
.gy-cel-mais:not([open]) [data-fechar], .gy-cel-mais[open] [data-abrir], .gy-cel-mais[open] .gy-cel-curto { display: none; }
.gy-cel-todo { margin-top: 4px; }
.gy-grade-total td { background: var(--gy-surface-sunken); font-weight: 800; font-variant-numeric: tabular-nums; border-top: 2px solid var(--gy-border-strong); border-bottom: 0; }
.gy-grade-total small { font-weight: 500; color: var(--gy-text-muted); }
.gy-grade-vazio { text-align: center; padding: 36px 20px; }
.gy-grade-vazio > .gy-icone { width: 34px; height: 34px; color: var(--gy-border-strong); }
.gy-grade-vazio p { margin: 6px 0 0; }

/* pé: contagem, paginação em quadrados e linhas por página */
.gy-grade-pe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 20px 18px; font-size: .8125rem; color: var(--gy-text-muted); }
.gy-grade-mostrando strong { color: var(--gy-text); font-weight: 800; font-variant-numeric: tabular-nums; }
.gy-grade-pp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; }
.gy-grade-pp label, .gy-grade-ordenar label { display: inline-flex; align-items: center; gap: 8px; }
.gy-grade-pp select.gy-input, .gy-grade-ordenar select.gy-input { width: auto; min-height: 32px; padding: 4px 8px; border-radius: var(--gy-radius-sm); font-size: .8125rem; }
.gy-grade-check { cursor: pointer; }
.gy-pag { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.gy-pag-item { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: var(--gy-radius-sm); border: 1px solid var(--gy-border); background: var(--gy-surface); color: var(--gy-text); font-weight: 700; font-size: .8125rem; font-variant-numeric: tabular-nums; text-decoration: none; }
a.gy-pag-item:hover { background: var(--gy-primary-50); border-color: var(--gy-primary-500); color: var(--gy-primary-700); }
.gy-pag-item.ativo { background: var(--gy-primary-600); border-color: var(--gy-primary-700); color: #fff; }
.gy-pag-item[aria-disabled] { color: var(--gy-border-strong); background: var(--gy-surface-sunken); }
.gy-pag-elipse { border-color: transparent; background: none; min-width: 20px; color: var(--gy-text-muted); }
.gy-pag-seta .gy-icone { width: 16px; height: 16px; }
@media (pointer: coarse) { .gy-pag-item { min-width: 40px; height: 40px; } }

html.gy-contraste .gy-pag-item, html.gy-contraste .gy-etiqueta, html.gy-contraste .gy-grade-formatos a, html.gy-contraste .gy-grade-tabela th a { text-decoration: none; }
html.gy-contraste .gy-pag-item.ativo, html.gy-contraste .gy-grade-cont { background: #FFD200; color: #000; }
html.gy-contraste .gy-grade-painel { border: 2px solid #FFF; box-shadow: none; }
html.gy-contraste .gy-grade-total td { border-top-color: #FFD200; }
html.gy-contraste .gy-grade-wrap.rolada .gy-col-fixa { box-shadow: 2px 0 0 #FFF; }

/* até 720 px: a barra quebra em duas linhas e os painéis sobem do pé da tela;
   até 640 px (celular): cada registro vira cartão, rótulo em cima e valor embaixo, sem rolagem lateral */
@media (max-width: 720px) {
  .gy-grade-cab, .gy-grade-barra, .gy-grade-info, .gy-grade-pe { padding-left: 14px; padding-right: 14px; }
  .gy-grade-wrap { margin-left: 14px; margin-right: 14px; }
  .gy-grade > .gy-abas { margin-left: 14px; margin-right: 14px; }
  .gy-grade-busca { flex-basis: 100%; max-width: none; }
  .gy-grade-acoes { margin-left: 0; width: 100%; }
  .gy-grade-acoes > .gy-dd, .gy-grade-acoes > a.gy-btn { flex: 1 1 auto; }
  .gy-grade-acoes > .gy-dd > summary { width: 100%; }
  .gy-grade-dd { position: static; }
  .gy-grade-painel, .gy-grade-painel-colunas, .gy-grade-painel-baixar { position: fixed; left: 8px; right: 8px; bottom: 8px; top: auto; width: auto; max-height: 78vh; overflow-y: auto; box-shadow: 0 -8px 40px rgba(15,30,51,.28), 0 0 0 100vmax rgba(8,18,31,.45); }
  .gy-filtro-linha { grid-template-columns: 1fr 1fr; padding-bottom: 8px; border-bottom: 1px solid var(--gy-border); }
  .gy-filtro-linha [hidden] { display: none; }
}
@media (max-width: 640px) {
  .gy-grade-rolagem-topo, .gy-grade-dica { display: none !important; }
  .gy-grade-ordenar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; margin: 4px 0 0; font-size: .8125rem; color: var(--gy-text-muted); }
  .gy-grade-wrap { overflow-x: visible; border: 0; background: none; border-radius: 0; }
  .gy-grade-tabela, .gy-grade-tabela tbody, .gy-grade-tabela tfoot { display: block; width: 100%; }
  .gy-grade-tabela thead { display: none; }
  .gy-grade-tabela tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 16px; border: 1px solid var(--gy-border); border-radius: var(--gy-radius-md); background: var(--gy-surface); padding: 10px 12px; margin-bottom: 10px; }
  .gy-grade-tabela tr:hover { background: var(--gy-surface); }
  .gy-grade-tabela td, .gy-grade-tabela .gy-col-fixa, .gy-grade-tabela .gy-col-longa { display: block; position: static; min-width: 0; max-width: none; padding: 4px 0; border: 0; text-align: left; white-space: normal; box-shadow: none; background: none; }
  .gy-grade-tabela td[data-rotulo]::before { content: attr(data-rotulo); display: block; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gy-text-muted); }
  .gy-grade-tabela td.num { text-align: left; white-space: normal; }
  .gy-grade-tabela td.gy-col-fixa { font-weight: 800; font-size: .9375rem; }
  /* título do cartão, texto longo e ações ocupam a largura inteira; o resto vai em duas colunas */
  .gy-grade-tabela td.gy-col-fixa, .gy-grade-tabela td.gy-col-longa, .gy-grade-tabela td.gy-arq-acoes, .gy-grade-tabela tr.gy-arq-grupo th { grid-column: 1 / -1; }
  .gy-grade-tabela td:empty { display: none; }
  .gy-grade-tabela tr.gy-arq-grupo { border: 0; background: none; padding: 8px 0 0; margin-bottom: 6px; }
  .gy-grade-tabela tr.gy-arq-grupo th { display: block; }
  .gy-grade-tabela td.gy-arq-acoes { text-align: left; padding-top: 8px; }
  .gy-grade-tabela tr.gy-grade-total { background: var(--gy-surface-sunken); border-color: var(--gy-border-strong); }
  .gy-grade-total td { border-top: 0; }
  .gy-grade-pe { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) { .gy-grade-tabela tr { grid-template-columns: minmax(0, 1fr); } }

/* versão para impressão do recorte (?imprimir=1) */
.gy-imp { background: var(--gy-canvas); }
.gy-imp-barra { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 16px; background: var(--gy-ink-900); color: #C6D2E0; }
.gy-imp-barra strong { color: #fff; margin-right: auto; }
.gy-imp-folha { max-width: 21cm; margin: 20px auto; background: var(--gy-surface); padding: 28px 32px; box-shadow: var(--gy-shadow-md); border-radius: var(--gy-radius-md); color: var(--gy-text); }
.gy-imp-paisagem { max-width: 29.7cm; page: gy-paisagem; }
.gy-imp-cab { display: flex; gap: 16px; align-items: center; padding-bottom: 12px; border-bottom: 3px solid var(--gy-accent-500); }
.gy-imp-cab img { height: 60px; width: auto; max-width: 100px; object-fit: contain; }
.gy-imp-cab h1 { margin: 2px 0; font-size: 1.25rem; letter-spacing: -0.02em; }
.gy-imp-cab p { margin: 0; color: var(--gy-text-muted); font-size: .8125rem; }
.gy-imp-meta { margin-left: auto; text-align: right; font-size: .75rem; color: var(--gy-text-muted); white-space: nowrap; }
.gy-imp-meta strong { display: block; color: var(--gy-text); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.gy-imp-recorte { font-size: .8125rem; margin: 12px 0; }
.gy-imp-tabela { width: 100%; border-collapse: collapse; font-size: .75rem; }
.gy-imp-tabela th { text-align: left; font-size: .625rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gy-text-muted); background: var(--gy-surface-sunken); padding: 5px 7px; border-bottom: 1px solid var(--gy-border-strong); }
.gy-imp-tabela td { padding: 5px 7px; border-bottom: 1px solid var(--gy-border); vertical-align: top; overflow-wrap: anywhere; }
.gy-imp-tabela .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gy-imp-tabela tfoot td { font-weight: 800; background: var(--gy-surface-sunken); border-top: 2px solid var(--gy-border-strong); }
.gy-imp-pe { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: .6875rem; color: var(--gy-text-muted); overflow-wrap: anywhere; }
@page gy-paisagem { size: A4 landscape; margin: 1cm; }
@media print {
  @page { size: A4; margin: 1cm; }
  .gy-imp { background: #fff; }
  .gy-imp-barra { display: none; }
  .gy-imp-folha { max-width: none; margin: 0; padding: 0; box-shadow: none; border-radius: 0; }
  .gy-imp-tabela { font-size: 7.5pt; }
  .gy-imp-tabela thead { display: table-header-group; }
  .gy-imp-tabela tr { break-inside: avoid; }
  /* a grade na página normal: sem barra nem paginação no papel */
  .gy-grade-barra, .gy-grade-pe .gy-pag, .gy-grade-pp, .gy-grade-rolagem-topo, .gy-grade-dica, .gy-grade-ordenar { display: none !important; }
}

/* ====================================================================
   Acabamento do topo (PLANO, 11/11/2026)
   - .gy-container vinha depois de .gy-header-in e zerava o respiro vertical:
     quando o conteúdo quebrava linha, a marca encostava na barra escura.
   - barra de utilidades numa linha só; abaixo de 760 px os links vão para o
     botão "Menu".
   - selo de atualização, links externos e e-SIC com a mesma altura; abaixo de
     900 px: marca + e-SIC na primeira linha, selo + links na segunda.
   ==================================================================== */
.gy-header .gy-header-in { padding-top: 12px; padding-bottom: 12px; flex-wrap: nowrap; }
.gy-marca { min-width: 0; }
.gy-header-nav { margin-left: auto; gap: 6px; justify-content: flex-end; min-width: 0; }
.gy-header-nav > a:not(.gy-btn) { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.gy-header-nav > a:not(.gy-btn):hover { background: var(--gy-primary-50); }
.gy-header-nav > .gy-atualizado { min-height: 32px; padding-top: 4px; padding-bottom: 4px; margin-right: 4px; }
.gy-header-cta { flex: none; display: flex; }
.gy-header-cta .gy-btn { white-space: nowrap; }
@media (max-width: 900px) {
  .gy-header .gy-header-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; }
  .gy-header-nav { grid-column: 1 / -1; grid-row: 2; margin-left: 0; justify-content: flex-start; padding-top: 10px; border-top: 1px solid var(--gy-border); }
  .gy-header-nav > .gy-atualizado { margin-right: 2px; }
}

.gy-utilbar-in { position: relative; }
.gy-utilbar nav { flex-wrap: nowrap; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.gy-utilbar nav::-webkit-scrollbar { display: none; }
.gy-utilbar nav a { white-space: nowrap; }
.gy-utilbar-acess { flex: none; }
.gy-utilbar-menu {
  display: none; align-items: center; gap: 6px; min-height: 28px; padding: 2px 10px; cursor: pointer;
  background: var(--gy-ink-700); color: #D4DDE7; border: 1px solid var(--gy-ink-600);
  border-radius: var(--gy-radius-sm); font: inherit; font-weight: 700;
}
.gy-utilbar-menu:hover { background: var(--gy-ink-600); color: #fff; }
.gy-utilbar-menu .gy-icone { width: 16px; height: 16px; }
.gy-utilbar-clara .gy-utilbar-menu { background: var(--gy-surface); color: var(--gy-text); border-color: var(--gy-border-strong); }
@media (max-width: 760px) {
  .gy-js .gy-utilbar-menu { display: inline-flex; }
  .gy-js .gy-utilbar nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
    flex-direction: column; gap: 0; padding: 6px 12px 10px; overflow: visible;
    background: var(--gy-ink-900); border-top: 1px solid var(--gy-ink-600); box-shadow: 0 16px 28px rgba(0,0,0,.35);
  }
  .gy-js .gy-utilbar.aberto nav { display: flex; }
  .gy-js .gy-utilbar nav a { padding: 10px 8px; }
  .gy-js .gy-utilbar-clara nav { background: var(--gy-surface-sunken); border-top-color: var(--gy-border); }
  html.gy-js.gy-claro .gy-utilbar nav { background: #FFFFFF; border-top-color: var(--gy-border); }
  html:not(.gy-js) .gy-utilbar nav { flex-wrap: wrap; overflow: visible; }
}
html.gy-claro .gy-utilbar-menu { background: #FFFFFF; color: var(--gy-text); border-color: var(--gy-border-strong); }
html.gy-contraste .gy-utilbar-menu { background: #000; color: #FFD200; border-color: #FFD200; }
.gy-btn.copiado { border-color: var(--gy-success-500); color: var(--gy-success-500); }

/* ====================================================================
   Checklist do PNTP no painel (PLANO, 11/11/2026) — admin/pntp.php
   Cor com significado: verde atende, âmbar pede olhar a página, tijolo não
   atende, cinza não se aplica; Essencial em âmbar cheio (atenção: decide o selo).
   ==================================================================== */
.gy-pntp-sub { margin: -12px 0 16px; color: var(--gy-text-muted); }
.gy-pntp-resumo { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.gy-pntp-resumo .valor small { font-size: 1rem; color: var(--gy-text-muted); }
.gy-pntp-barra { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 12px; }
.gy-pntp-barra > form:first-child { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; flex: 1 1 520px; margin: 0; }
.gy-pntp-barra > form:first-child > div { flex: 1 1 150px; min-width: 0; }
.gy-pntp-barra .gy-label { margin-top: 0; }
.gy-pntp-barra .gy-input { min-height: 36px; padding: 6px 10px; font-size: .875rem; }
.gy-pntp-barra .gy-btn-sm { min-height: 36px; }
.gy-pntp-barra-ok { flex: 0 0 auto !important; display: flex; gap: 6px; }
.gy-pntp-acoes { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.gy-pntp-legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 0 0 8px; font-size: .8125rem; color: var(--gy-text-muted); }
.gy-pntp-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.gy-pntp-contagem { margin: 0 0 12px; font-size: .875rem; }
.gy-pntp-contagem strong { font-weight: 800; font-variant-numeric: tabular-nums; }

.gy-pntp-dim { margin-bottom: 14px; padding: 0; overflow: hidden; }
.gy-pntp-dim > header { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px 10px; border-bottom: 1px solid var(--gy-border); }
.gy-pntp-dim > header h2 { margin: 0; font-size: 1rem; letter-spacing: -0.01em; }
.gy-pntp-dim > header small { margin-left: auto; color: var(--gy-text-muted); font-variant-numeric: tabular-nums; }
.gy-pntp-lin { display: grid; grid-template-columns: minmax(0, 1.25fr) 132px minmax(0, 1fr) 96px; gap: 14px; align-items: start; padding: 12px 18px; border-bottom: 1px solid var(--gy-border); scroll-margin-top: 16px; }
.gy-pntp-lin:last-child { border-bottom: 0; }
.gy-pntp-lin.sem { background: var(--gy-danger-50); }
.gy-pntp-lin:target { box-shadow: inset 3px 0 0 var(--gy-accent-500); }
.gy-pntp-txt { font-size: .875rem; line-height: 1.4; }
.gy-pntp-cod { font-weight: 800; font-variant-numeric: tabular-nums; margin-right: 4px; text-decoration: none; color: var(--gy-text); }
a.gy-pntp-cod:hover { color: var(--gy-primary-700); text-decoration: underline; }
.gy-pntp-selos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.gy-pntp-ex.ess { color: var(--gy-ink-900); background: var(--gy-accent-500); }
.gy-pntp-ex.obr { color: var(--gy-primary-700); background: var(--gy-primary-50); border-color: var(--gy-primary-300); }
.gy-pntp-ex.rec { color: var(--gy-text-muted); background: var(--gy-surface-sunken); border-color: var(--gy-border-strong); }
.gy-pntp-its { display: inline-flex; gap: 4px; }
.gy-pntp-it { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1px solid transparent; font-size: .6875rem; font-weight: 800; font-style: normal; }
.gy-pntp-it.ok { color: var(--gy-success-500); background: var(--gy-success-50); border-color: var(--gy-success-500); }
.gy-pntp-it.falta, .gy-pntp-it.sem { color: var(--gy-surface); background: var(--gy-danger-500); }
.gy-pntp-it.conferir { color: var(--gy-accent-text); background: var(--gy-accent-50); border-color: var(--gy-accent-600); border-style: dashed; }
.gy-pntp-it.na { color: var(--gy-border-strong); background: var(--gy-surface-sunken); }
.gy-pntp-alvos { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: .8125rem; }
.gy-pntp-alvo { display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.gy-pntp-alvo > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.gy-pntp-tipo { flex: none; font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gy-text-muted); border: 1px solid var(--gy-border-strong); border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.gy-pntp-nota { color: var(--gy-text-muted); font-size: .75rem; }
.gy-pntp-acao { text-align: right; }

/* ficha do critério */
.gy-pntp-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: -8px 0 14px; }
.gy-pntp-nav > span { display: flex; gap: 6px; }
.gy-pntp-cab h2 { margin: 4px 0 8px; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.3; }
.gy-pntp-cab p { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gy-pntp-itens { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .875rem; }
.gy-pntp-itens li { display: inline-flex; align-items: center; gap: 6px; }
.gy-pntp-ficha { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.gy-pntp-ficha h3 { margin-top: 0; }
.gy-pntp-vinculos { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gy-pntp-vinculos li { border: 1px solid var(--gy-border); border-left: 3px solid var(--gy-primary-500); border-radius: var(--gy-radius-sm); padding: 10px 12px; }
.gy-pntp-vinculos li > div:first-child { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; }
.gy-pntp-evid { margin: 6px 0 8px; padding: 6px 8px; background: var(--gy-surface-sunken); border-radius: 6px; font-family: ui-monospace, Consolas, monospace; font-size: .75rem; overflow-wrap: anywhere; user-select: all; }
.gy-pntp-vinc-acoes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gy-pntp-vincular { border-top: 1px solid var(--gy-border); padding-top: 12px; }
.gy-pntp-form-titulo { margin: 0; font-weight: 800; font-size: .875rem; }
.gy-pntp-url { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 6px; }
.gy-pntp-conf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gy-pntp-conf .gy-label { margin-top: 0; display: flex; align-items: center; gap: 6px; }
.gy-pntp-conf-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.gy-pntp-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .875rem; }
.gy-pntp-hist li { padding-left: 12px; border-left: 2px solid var(--gy-border-strong); overflow-wrap: anywhere; }

/* cartão na edição do item */
.gy-pntp-pilha { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gy-pntp-vinc { border: 1px solid var(--gy-border); border-left: 3px solid var(--gy-accent-500); border-radius: var(--gy-radius-sm); padding: 8px 10px; font-size: .875rem; }
.gy-pntp-vinc-top { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 4px; }
.gy-pntp-item-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 0; }
.gy-pntp-item-add > div { flex: 1 1 320px; min-width: 0; }
.gy-pntp-item-add .gy-label { margin-top: 0; }

html.gy-contraste .gy-pntp-it.falta, html.gy-contraste .gy-pntp-it.sem { color: #000; }
@media (max-width: 1180px) { .gy-pntp-resumo { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
@media (max-width: 900px) {
  .gy-pntp-lin { grid-template-columns: 1fr; gap: 8px; }
  .gy-pntp-acao { text-align: left; }
  .gy-pntp-ficha { grid-template-columns: 1fr; }
  .gy-pntp-acoes { margin-left: 0; }
  .gy-pntp-url { grid-template-columns: 1fr; }
}
@media print { .gy-pntp-it { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ====================================================================
   Assistente do PNTP (PLANO, 12/11/2026) — admin/assistente.php e o balão
   que acompanha a edição de página e o painel. Fala no alto com filete
   âmbar (atenção); cada pendência é um cartão com filete no tom do peso:
   tijolo tira o selo, âmbar perde ponto, petróleo é aviso.
   ==================================================================== */
.gy-as-sub { margin: -12px 0 16px; color: var(--gy-text-muted); }
.gy-as-fala { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px 20px; margin-bottom: 16px; border-left: 3px solid var(--gy-accent-500); }
.gy-as-rosto { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--gy-ink-900); color: var(--gy-accent-500); box-shadow: var(--gy-shadow-md); }
.gy-as-rosto .gy-icone { width: 30px; height: 30px; }
.gy-as-fala h2 { margin: 0 0 6px; font-size: 1.125rem; letter-spacing: -0.02em; line-height: 1.3; }
.gy-as-fala p { margin: 0 0 12px; max-width: 76ch; line-height: 1.5; }
.gy-as-fala p strong { font-weight: 800; }
.gy-as-fala-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gy-as-resumo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.gy-as-resumo .valor small { font-size: 1rem; color: var(--gy-text-muted); }
.gy-as-titulo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 10px; }
.gy-as-titulo h2 { margin: 0; font-size: 1rem; letter-spacing: -0.01em; }
.gy-as-filtros { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.gy-as-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--gy-border-strong); background: var(--gy-surface); color: var(--gy-text); font-size: .8125rem; font-weight: 600; text-decoration: none; }
.gy-as-chip b { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gy-text-muted); }
.gy-as-chip:hover { border-color: var(--gy-primary-500); }
.gy-as-chip.ativo { background: var(--gy-ink-900); border-color: var(--gy-ink-900); color: var(--gy-surface); }
.gy-as-chip.ativo b { color: var(--gy-accent-500); }
.gy-as-contagem { margin: 0 0 12px; font-size: .875rem; }
.gy-as-contagem strong { font-weight: 800; font-variant-numeric: tabular-nums; }
.gy-as-vazio p { margin: 0; }
.gy-as-pe { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 4px 0 24px; }

.gy-as-item { padding: 0; margin-bottom: 14px; overflow: hidden; border-left: 3px solid var(--gy-border-strong); scroll-margin-top: 16px; }
.gy-as-item.tom-perigo { border-left-color: var(--gy-danger-500); }
.gy-as-item.tom-acento { border-left-color: var(--gy-accent-500); }
.gy-as-item.tom-primario { border-left-color: var(--gy-primary-500); }
.gy-as-item:target { box-shadow: 0 0 0 2px var(--gy-accent-500), var(--gy-shadow-md); }
.gy-as-item > header { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 16px 18px 12px; }
.gy-as-num { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--gy-surface-sunken); border: 1px solid var(--gy-border); font-weight: 800; font-variant-numeric: tabular-nums; font-size: .875rem; }
.gy-as-item > header h3 { margin: 2px 0 0; font-size: 1.0625rem; letter-spacing: -0.02em; line-height: 1.3; overflow-wrap: anywhere; }
.gy-as-item > header .gy-eyebrow a { color: inherit; }
.gy-as-selos { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.gy-as-selo { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 6px; font-size: .6875rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; border: 1px solid transparent; }
.gy-as-selo.selo { background: var(--gy-danger-500); color: var(--gy-surface); }
.gy-as-selo.risco { background: var(--gy-accent-50); color: var(--gy-accent-text); border-color: var(--gy-accent-600); }
.gy-as-corpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--gy-border); }
.gy-as-bloco { padding: 12px 18px 14px; min-width: 0; }
.gy-as-bloco + .gy-as-bloco { border-left: 1px solid var(--gy-border); background: var(--gy-surface-sunken); }
.gy-as-rot { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gy-text-muted); margin-bottom: 4px; }
.gy-as-bloco p { margin: 0 0 8px; font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.gy-as-vi { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .875rem; line-height: 1.5; }
.gy-as-vi li, .gy-as-balao li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 10px; align-items: baseline; overflow-wrap: anywhere; }
.gy-as-vi li::before, .gy-as-balao li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gy-accent-500); transform: translateY(-1px); }
.gy-as-vi li.selo::before, .gy-as-vi li.alta::before, .gy-as-balao li.selo::before, .gy-as-balao li.alta::before { background: var(--gy-danger-500); }
.gy-as-vi li.baixa::before, .gy-as-balao li.baixa::before { background: var(--gy-primary-500); }
.gy-as-ligado { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--gy-border-strong); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: .8125rem; }
.gy-as-ligado .gy-as-rot { margin: 0; }
.gy-as-alvo { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.gy-as-alvo form { margin: 0; display: inline; }
.gy-as-regua { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .8125rem; line-height: 1.4; }
.gy-as-regua li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; }
.gy-as-regua i { font-style: normal; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: .6875rem; font-weight: 800; color: var(--gy-primary-700); background: var(--gy-primary-50); border: 1px solid var(--gy-primary-300); }
.gy-as-campos { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.gy-as-campos li { font-size: .75rem; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--gy-border-strong); background: var(--gy-surface); overflow-wrap: anywhere; }
.gy-as-acoes { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--gy-border); }
.gy-as-nota { flex: 1 1 260px; min-width: 0; margin: 0; font-size: .75rem; color: var(--gy-text-muted); line-height: 1.4; }
.gy-as-link { font: inherit; font-size: .8125rem; color: var(--gy-text-muted); text-decoration: underline; text-underline-offset: 2px; background: none; border: 0; padding: 0; cursor: pointer; }
.gy-as-link:hover { color: var(--gy-primary-700); }

.gy-as-jafiz { margin: 0 18px 16px; padding: 14px 16px; border: 1px solid var(--gy-primary-300); background: var(--gy-primary-50); border-radius: var(--gy-radius-md); }
.gy-as-jafiz[hidden] { display: none; }
.gy-as-jafiz h4 { margin: 0 0 10px; font-size: .9375rem; letter-spacing: -0.01em; }
.gy-as-jafiz-grade { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: end; }
.gy-as-jafiz .gy-label { margin-top: 0; }
.gy-as-jafiz .gy-as-nota { margin: 12px 0 0; }
.gy-as-ou { padding-bottom: 10px; font-size: .8125rem; color: var(--gy-text-muted); font-weight: 700; }
.gy-as-checa { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8125rem; }
.gy-as-checa li { display: inline-flex; align-items: center; gap: 6px; }
.gy-as-checa .gy-icone { width: 16px; height: 16px; color: var(--gy-primary-700); flex: none; }
.gy-as-jafiz-rod { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }

.gy-as-flut { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.gy-as-balao { position: relative; background: var(--gy-surface); border: 1px solid var(--gy-border-strong); border-left: 3px solid var(--gy-accent-500); border-radius: var(--gy-radius-md); box-shadow: 0 12px 32px rgba(15,30,51,.18), 0 2px 6px rgba(15,30,51,.08); padding: 14px 16px; }
.gy-as-flut.recolhido .gy-as-balao { display: none; }
.gy-as-balao h4 { margin: 0 0 6px; font-size: .9375rem; letter-spacing: -0.01em; padding-right: 28px; }
.gy-as-balao p { margin: 0 0 8px; font-size: .8125rem; line-height: 1.5; }
.gy-as-balao ul { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: .8125rem; line-height: 1.4; max-height: 40vh; overflow: auto; }
.gy-as-balao-acoes { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.gy-as-fechar { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; background: none; color: var(--gy-text-muted); font-size: 1.25rem; line-height: 1; border-radius: 8px; cursor: pointer; }
.gy-as-fechar:hover { background: var(--gy-surface-sunken); color: var(--gy-text); }
.gy-as-botao { position: relative; width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--gy-ink-900); color: var(--gy-accent-500); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(8,18,31,.35); cursor: pointer; transition: transform .15s cubic-bezier(.2,.7,.3,1); }
.gy-as-botao:hover { transform: translateY(-2px); }
.gy-as-botao .gy-icone { width: 28px; height: 28px; }
.gy-as-botao span { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gy-danger-500); color: var(--gy-surface); font-size: .6875rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--gy-surface); font-variant-numeric: tabular-nums; }
.gy-as-botao:focus-visible, .gy-as-fechar:focus-visible, .gy-as-link:focus-visible, .gy-as-chip:focus-visible { outline: 2px solid var(--gy-accent-500); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { .gy-as-botao { transition: none; } .gy-as-botao:hover { transform: none; } }
@media (max-width: 1100px) { .gy-as-resumo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .gy-as-corpo { grid-template-columns: 1fr; }
  .gy-as-bloco + .gy-as-bloco { border-left: 0; border-top: 1px solid var(--gy-border); }
  .gy-as-item > header { grid-template-columns: 32px minmax(0, 1fr); }
  .gy-as-selos { grid-column: 2; justify-content: flex-start; }
  .gy-as-jafiz-grade { grid-template-columns: 1fr; }
  .gy-as-ou { padding-bottom: 0; }
}
@media (max-width: 520px) {
  .gy-as-fala { grid-template-columns: 1fr; }
  .gy-as-resumo { gap: 8px; }
  .gy-as-acoes .gy-btn, .gy-as-acoes form { flex: 1 1 100%; }
  .gy-as-acoes form .gy-btn { width: 100%; }
  .gy-as-acoes .gy-btn { justify-content: center; }
  .gy-as-jafiz { margin: 0 12px 14px; }
  .gy-as-flut { right: 12px; bottom: 12px; }
}
@media print { .gy-as-flut { display: none; } }

/* Órgão de demonstração (PLANO, 12/11/2026): faixa no alto de toda página pública.
   Mesmo par do aviso (âmbar de texto sobre âmbar claro, 5,6:1 medido). Não some na
   impressão: quem imprime uma página fictícia também precisa do aviso. */
.gy-demo { margin: 0; padding: 7px 16px; display: flex; justify-content: center; align-items: center; gap: 8px; background: var(--gy-accent-50); color: var(--gy-accent-text); border-bottom: 1px solid rgba(198,127,5,.35); font-size: .8125rem; line-height: 1.35; text-align: center; }
.gy-demo .gy-icone { flex: none; width: 16px; height: 16px; }
html.gy-contraste .gy-demo { background: #000; color: #FFD200; border-bottom-color: #FFD200; }

/* ---------------------------------------------------- cargas por API (PLANO, 13/11/2026): "Importar de API" na tabela e "Saúde das APIs".
   Só tokens. Estado nunca só pela cor: o dia tem altura (cheio = respondeu, meio = atenção, baixo = fora, traço = sem consulta)
   e o ponto vem sempre ao lado do selo escrito. */
.gy-num, .gy-tabela th.gy-num, .gy-tabela td.gy-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gy-ca-passo { margin-bottom: 16px; }
.gy-ca-passo > h2 { margin: 0 0 4px; font-size: 1.0625rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.gy-ca-n { flex: none; width: 28px; height: 28px; border-radius: var(--gy-radius-sm); display: grid; place-items: center; background: var(--gy-ink-900); color: var(--gy-accent-500); font-size: .8125rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.gy-ca-passo > p.gy-muted { margin: 0 0 14px; max-width: 92ch; }
.gy-ca-pedido { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 8px; margin-bottom: 14px; }
.gy-ca-abas { margin-bottom: 12px; }
.gy-ca-abas .gy-aba { background: none; cursor: pointer; font-family: inherit; }
.gy-ca-abas .gy-aba.ativo { background: var(--gy-surface); }
.gy-ca-sub { margin: 14px 0 8px; font-size: .875rem; font-weight: 700; }
.gy-ca-sub .gy-muted { font-weight: 500; margin-left: 6px; }
.gy-ca-js .gy-ca-painel > .gy-ca-sub { margin-top: 0; }
.gy-ca-js .gy-ca-painel > .gy-ca-sub strong { display: none; }
.gy-ca-js .gy-ca-painel > .gy-ca-sub .gy-muted { margin-left: 0; }
.gy-ca-kv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto 36px; gap: 8px; margin-bottom: 8px; align-items: center; }
.gy-ca-kv .nota { grid-column: 1 / -1; margin: -4px 0 4px; font-size: .75rem; color: var(--gy-text-muted); }
.gy-ca-seg { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--gy-text-muted); white-space: nowrap; }
.gy-ca-x { width: 36px; height: 36px; border: 1px solid var(--gy-border-strong); border-radius: var(--gy-radius-sm); background: var(--gy-surface); color: var(--gy-text-muted); font-size: 1rem; cursor: pointer; }
.gy-ca-x:hover { border-color: var(--gy-danger-500); color: var(--gy-danger-500); }
.gy-ca-corpo, textarea.gy-input.gy-ca-corpo { min-height: 110px; font-family: ui-monospace, Consolas, monospace; font-size: .8125rem; }
.gy-ca-dica { margin: 12px 0 0; font-size: .8125rem; color: var(--gy-text-muted); max-width: 100ch; }
.gy-ca-dica code, .gy-ca-var { font-family: ui-monospace, Consolas, monospace; font-size: .8125rem; padding: 1px 6px; border-radius: 6px; background: var(--gy-primary-50); color: var(--gy-primary-700); }
button.gy-ca-var { border: 1px solid transparent; cursor: pointer; line-height: 1.6; min-height: 32px; padding: 3px 10px; }
button.gy-ca-var:hover { border-color: var(--gy-primary-500); }
.gy-ca-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; font-size: .875rem; }
.gy-ca-linha strong { font-variant-numeric: tabular-nums; }
.gy-ca-lista { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.gy-ca-lista label { white-space: nowrap; }
.gy-ca-lista select, .gy-ca-lista select.gy-input { width: auto; min-width: 180px; max-width: 320px; }
.gy-ca-json { margin: 0; padding: 14px 16px; border-radius: var(--gy-radius-md); background: var(--gy-ink-900); color: var(--gy-code-text); font-family: ui-monospace, Consolas, monospace; font-size: .8125rem; line-height: 1.55; overflow: auto; max-height: 320px; white-space: pre; }
.gy-ca-json .k { color: var(--gy-code-key); }
.gy-ca-json .s { color: var(--gy-code-string); }
.gy-ca-json .n { color: var(--gy-code-number); }
.gy-ca-mapa td, .gy-ca-mapa th { vertical-align: middle; }
.gy-ca-mapa select { min-width: 190px; max-width: 280px; }
.gy-ca-ex { font-family: ui-monospace, Consolas, monospace; font-size: .8125rem; color: var(--gy-text-muted); overflow-wrap: anywhere; }
.gy-ca-selo { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; border: 1px solid; white-space: nowrap; }
.gy-ca-selo.sugerido { color: var(--gy-success-600); background: var(--gy-success-50); border-color: rgba(18,128,92,.3); }
.gy-ca-selo.conferir { color: var(--gy-accent-text); background: var(--gy-accent-50); border-color: rgba(198,127,5,.35); }
.gy-ca-selo.manual { color: var(--gy-primary-700); background: var(--gy-primary-50); border-color: rgba(18,139,168,.3); }
.gy-ca-selo.sem { color: var(--gy-text-muted); background: var(--gy-surface-sunken); border-color: var(--gy-border-strong); }
.gy-ca-selo.faltando { color: var(--gy-danger-500); background: var(--gy-surface); border-color: rgba(200,53,42,.45); }
.gy-ca-chave { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 16px 0 0; font-size: .875rem; }
.gy-ca-chave select, .gy-ca-chave select.gy-input { width: auto; min-width: 190px; max-width: 320px; }
.gy-ca-chave .nota { flex-basis: 100%; }
.gy-ca-erro { color: var(--gy-danger-500); }
.gy-ca-sobras { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0 0; font-size: .8125rem; }
.gy-ca-mais > summary { cursor: pointer; color: var(--gy-primary-700); font-weight: 700; padding: 4px 0; }
.gy-ca-mais[open] { flex-basis: 100%; }
.gy-ca-mais .gy-ca-sobras { margin-top: 6px; }
.gy-ca-quando { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: end; }
.gy-ca-quando select { min-width: 170px; }
.gy-ca-quando input[type=time] { width: 130px; }
.gy-ca-quando .gy-label, .gy-ca-filtro .gy-label { margin-top: 0; }
.gy-ca-rodape { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--gy-border); }
.gy-ca-estado { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 16px; border-left: 3px solid var(--gy-border-strong); }
.gy-ca-estado.ok { border-left-color: var(--gy-success-500); }
.gy-ca-estado.ruim { border-left-color: var(--gy-danger-500); }
.gy-ca-estado-txt { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: .875rem; min-width: 0; flex: 1 1 420px; }
.gy-ca-estado-txt p { flex-basis: 100%; margin: 2px 0 0; font-size: .8125rem; overflow-wrap: anywhere; }
.gy-ca-filtro { margin-bottom: 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.gy-ca-filtro select { min-width: 150px; }
.gy-ca-pe { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-top: 14px; }
.gy-ca-hist tbody td:nth-child(2) { min-width: 200px; }
.gy-ca-hist th, .gy-ca-hist td { padding-left: 10px; padding-right: 10px; }   /* sete colunas cabem em 1280 sem rolar */
.gy-ca-hist td small { overflow-wrap: anywhere; }
.gy-ca-lista-cargas .gy-acoes { flex-wrap: nowrap; }
.gy-ca-lista-cargas td[data-r="Situação"] small, .gy-ca-lista-cargas td[data-r="Próxima"] { white-space: nowrap; }
.gy-ca-dias { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; width: 156px; height: 24px; align-items: end; }
.gy-ca-dias i { display: block; height: 100%; border-radius: 2px; background: var(--gy-success-500); }
.gy-ca-dias i.atencao { height: 62%; background: var(--gy-accent-600); }
.gy-ca-dias i.fora { height: 30%; background: var(--gy-danger-500); }
.gy-ca-dias i.sem { height: 3px; background: var(--gy-border-strong); }
.gy-ca-ponto { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--gy-success-500); }
.gy-ca-ponto.atencao { background: var(--gy-accent-600); }
.gy-ca-ponto.fora { background: var(--gy-danger-500); }
.gy-ca-ponto.off { background: var(--gy-surface); border: 2px solid var(--gy-text-muted); }
.gy-ca-api { display: flex; gap: 10px; align-items: flex-start; min-width: 220px; }
.gy-ca-api .gy-ca-ponto { margin-top: 6px; }
.gy-ca-api strong { display: block; overflow-wrap: anywhere; }
.gy-ca-api small { color: var(--gy-text-muted); }
.gy-ca-api a { color: inherit; text-decoration: none; }
.gy-ca-api a:hover { color: var(--gy-primary-600); text-decoration: underline; }
.gy-ca-saude td { vertical-align: top; }
.gy-ca-saude td small { overflow-wrap: anywhere; }
.gy-ca-legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; font-size: .75rem; color: var(--gy-text-muted); }
.gy-ca-legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--gy-success-500); }
.gy-ca-legenda i.atencao { background: var(--gy-accent-600); }
.gy-ca-legenda i.fora { background: var(--gy-danger-500); }
.gy-ca-legenda i.sem { background: var(--gy-border-strong); }
.gy-ca-oc { list-style: none; margin: 0; padding: 0; }
.gy-ca-oc li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--gy-border); font-size: .875rem; }
.gy-ca-oc li:first-child { border-top: 0; }
.gy-ca-oc .gy-ca-ponto { margin: 5px 0 0; }
.gy-ca-oc small { display: block; color: var(--gy-text-muted); overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .gy-ca-pedido { grid-template-columns: 96px minmax(0, 1fr); }
  .gy-ca-pedido .gy-btn { grid-column: 1 / -1; justify-content: center; }
  .gy-ca-kv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gy-ca-kv .gy-ca-x { justify-self: end; }
  .gy-ca-lista { margin-left: 0; flex: 1 1 100%; min-width: 0; max-width: 100%; flex-wrap: wrap; }
  .gy-ca-lista select, .gy-ca-lista select.gy-input { flex: 1 1 160px; width: 100%; min-width: 0; max-width: 100%; }
  /* tela estreita: cada linha vira um cartão, com o rótulo da coluna em cima do valor */
  .gy-ca-saude thead, .gy-ca-mapa thead { display: none; }
  .gy-ca-saude, .gy-ca-saude tbody, .gy-ca-mapa, .gy-ca-mapa tbody { display: block; }
  .gy-ca-saude tr, .gy-ca-mapa tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 14px 4px; border-top: 1px solid var(--gy-border); }
  .gy-ca-saude tr:first-child, .gy-ca-mapa tr:first-child { border-top: 0; }
  .gy-ca-saude td, .gy-ca-mapa td { display: block; padding: 0; border: 0; min-width: 0; }
  .gy-ca-saude td:first-child, .gy-ca-saude td.barra, .gy-ca-saude td[data-r="Ações"], .gy-ca-saude td[data-r="Última carga"], .gy-ca-mapa td:first-child, .gy-ca-mapa td:nth-child(2) { grid-column: 1 / -1; }
  .gy-ca-saude td[data-r]::before, .gy-ca-mapa td[data-r]::before { content: attr(data-r); display: block; margin-bottom: 2px; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gy-text-muted); }
  .gy-ca-saude .gy-num { text-align: left; }
  .gy-ca-saude .gy-ca-dias { width: 100%; }
  .gy-ca-mapa select, .gy-ca-chave select, .gy-ca-chave select.gy-input { width: 100%; min-width: 0; max-width: none; }
  .gy-ca-lista-cargas .gy-acoes { flex-wrap: wrap; }
  .gy-ca-api { min-width: 0; }
  .gy-ca-rodape .gy-btn { flex: 1 1 100%; justify-content: center; }
  /* histórico: quando e resultado em cima, a tabela e o que aconteceu no meio, os quatro números embaixo */
  .gy-ca-hist thead { display: none; }
  .gy-ca-hist, .gy-ca-hist tbody, .gy-ca-hist tfoot { display: block; }
  .gy-ca-hist tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; padding: 14px 4px; border-top: 1px solid var(--gy-border); }
  .gy-ca-hist tbody tr:first-child { border-top: 0; }
  .gy-ca-hist td { display: block; padding: 0; border: 0; min-width: 0; }
  .gy-ca-hist tbody td:nth-child(1) { grid-row: 1; grid-column: 1 / 3; }
  .gy-ca-hist tbody td:nth-child(3) { grid-row: 1; grid-column: 3 / 5; text-align: right; }
  .gy-ca-hist tbody td:nth-child(2) { grid-row: 2; grid-column: 1 / -1; min-width: 0; }
  .gy-ca-hist tbody td[colspan] { grid-column: 1 / -1; }
  .gy-ca-hist tfoot td:first-child { grid-column: 1 / -1; }
  .gy-ca-hist tfoot tr { background: var(--gy-surface-sunken); padding: 14px 12px; border-radius: var(--gy-radius-sm); }
  .gy-ca-hist .gy-num { text-align: left; }
  .gy-ca-hist td[data-r]::before { content: attr(data-r); display: block; margin-bottom: 2px; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gy-text-muted); }
}

/* ---------------------------------------------------- Placar PNTP da plataforma (plataforma/placar.php)
   Lista de todos os órgãos e o caminho de cada um até o selo. Só tokens; abaixo de 900 px vira cartão. */
.gy-pl-nota { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gy-pl-nota strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.gy-pl-nota small { color: var(--gy-text-muted); font-size: .75rem; }
.gy-pl-regua { position: relative; height: 8px; min-width: 120px; border-radius: 999px; background: var(--gy-surface-sunken); border: 1px solid var(--gy-border); margin: 6px 0 16px; }
.gy-pl-regua i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--gy-primary-500); }
.gy-pl-regua i.pos { background: var(--gy-primary-300); opacity: .55; }
.gy-pl-regua b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--gy-border-strong); }
.gy-pl-regua b span { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-size: .625rem; font-weight: 700; color: var(--gy-text-muted); letter-spacing: .04em; white-space: nowrap; }
.gy-pl-regua.grande { height: 14px; margin: 14px 0 30px; }
.gy-pl-regua.grande b span { top: 20px; font-size: .6875rem; }
.gy-pl-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.gy-pl-kpis .gy-eyebrow { padding-right: 44px; }
.gy-pl-org { min-width: 180px; }
.gy-pl-selo .gy-badge { white-space: nowrap; }
.gy-pl-selo small { display: block; margin-top: 4px; font-size: .75rem; color: var(--gy-text-muted); white-space: nowrap; }
.gy-pl-falta { font-size: .75rem; color: var(--gy-text-muted); white-space: nowrap; }
.gy-pl-caminho th:nth-child(3), .gy-pl-caminho td:nth-child(3) { white-space: nowrap; }
.gy-pl-caminho td:nth-child(4) { min-width: 170px; }
.gy-pl-caminho td:nth-child(2) { min-width: 230px; }
.gy-pl-caminho th, .gy-pl-caminho td { padding-left: 10px; padding-right: 10px; }
@media (max-width: 900px) { .gy-pl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gy-pl-num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.gy-pl-zero { color: var(--gy-text-muted); }
.gy-pl-alerta { color: var(--gy-danger-500); font-weight: 800; }
.gy-pl-grupo td { background: var(--gy-surface-sunken); font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gy-text-muted); padding-top: 10px; padding-bottom: 10px; }
.gy-pl-demo td { color: var(--gy-text-muted); }
.gy-pl-org strong { display: block; }
.gy-pl-parado { color: var(--gy-accent-text); font-weight: 700; }
.gy-pl-lenda { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; font-size: .8125rem; color: var(--gy-text-muted); }
.gy-pl-lenda span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--gy-primary-500); }
.gy-pl-lenda span.pos::before { background: var(--gy-primary-300); opacity: .55; }
.gy-pl-volta { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 700; text-decoration: none; margin-bottom: 12px; }
.gy-pl-passo { font-family: var(--gy-font-display); font-style: italic; font-weight: 600; font-size: 1.125rem; color: var(--gy-text-muted); text-align: right; }
.gy-pl-marco td { background: var(--gy-success-50); color: var(--gy-success-600); font-weight: 700; font-size: .8125rem; }
.gy-pl-marco.selo td { background: var(--gy-accent-50); color: var(--gy-accent-text); }
.gy-pl-cod { display: inline-block; min-width: 2.6em; font-weight: 800; font-variant-numeric: tabular-nums; }
.gy-pl-letras { display: inline-flex; gap: 3px; }
.gy-pl-letras b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; font-size: .625rem; background: var(--gy-danger-50); color: var(--gy-danger-500); }
.gy-pl-sobe { color: var(--gy-success-600); font-weight: 800; }
.gy-pl-dim { display: grid; grid-template-columns: minmax(150px, 1.3fr) 54px minmax(120px, 2fr) 70px; gap: 6px 14px; align-items: center; font-size: .875rem; }
.gy-pl-dim > .cab { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gy-text-muted); }
.gy-pl-dim .barra { height: 8px; border-radius: 999px; background: var(--gy-surface-sunken); border: 1px solid var(--gy-border); overflow: hidden; }
.gy-pl-dim .barra i { display: block; height: 100%; background: var(--gy-primary-500); }
.gy-pl-peso { display: inline-flex; gap: 2px; }
.gy-pl-peso i { width: 6px; height: 12px; border-radius: 2px; background: var(--gy-border-strong); }
.gy-pl-peso i.on { background: var(--gy-ink-700); }
.gy-pl-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.gy-pl-nota-pe { margin: 12px 0 0; }
.gy-pl-lista th, .gy-pl-lista td { padding-left: 8px; padding-right: 8px; }
.gy-pl-lista th:first-child, .gy-pl-lista td:first-child { padding-left: 14px; }
.gy-pl-lista th { white-space: normal; line-height: 1.3; vertical-align: bottom; }
.gy-pl-lista th.gy-pl-num { min-width: 62px; max-width: 96px; }
.gy-pl-lista .gy-pl-regua { margin-bottom: 8px; }
/* abaixo de 900 px a lista e o caminho viram cartões: nada de rolagem lateral */
@media (max-width: 900px) {
  .gy-pl-2col { grid-template-columns: 1fr; }
  .gy-pl-lista thead, .gy-pl-caminho thead { display: none; }
  table.gy-pl-lista, .gy-pl-lista tbody, table.gy-pl-caminho, .gy-pl-caminho tbody { display: block; width: 100%; }
  .gy-pl-lista tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; padding: 14px; border-bottom: 1px solid var(--gy-border); }
  .gy-pl-lista td { display: block; padding: 0 !important; border: 0; text-align: left; min-width: 0; }
  .gy-pl-lista td.larga { grid-column: 1 / -1; }
  .gy-pl-lista td[data-rot]::before, .gy-pl-caminho td[data-rot]::before { content: attr(data-rot); display: block; margin-bottom: 2px; font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gy-text-muted); }
  .gy-pl-lista td:empty { display: none; }
  .gy-pl-lista tr.gy-pl-grupo { display: block; padding: 10px 14px; background: var(--gy-surface-sunken); }
  .gy-pl-lista .gy-pl-regua { max-width: 340px; }
  .gy-pl-caminho tr { display: grid; grid-template-columns: 30px auto auto minmax(0, 1fr); gap: 6px 14px; padding: 12px 14px; border-bottom: 1px solid var(--gy-border); align-items: center; }
  .gy-pl-caminho td { display: block; padding: 0 !important; border: 0; min-width: 0 !important; text-align: left; }
  .gy-pl-caminho td:nth-child(1) { grid-column: 1; grid-row: 1 / span 4; align-self: start; }
  .gy-pl-caminho td:nth-child(2), .gy-pl-caminho td:nth-child(3), .gy-pl-caminho td:nth-child(4) { grid-column: 2 / -1; }
  .gy-pl-caminho td:nth-child(5) { grid-column: 2; }
  .gy-pl-caminho td:nth-child(6) { grid-column: 3; }
  .gy-pl-caminho td:nth-child(7) { grid-column: 4; justify-self: end; }
  .gy-pl-caminho td[data-rot]::before { display: inline; margin-right: 6px; }
  .gy-pl-caminho tr.gy-pl-marco { display: block; }
  .gy-pl-caminho tr.gy-pl-marco td:first-child { display: none; }
}
@media (max-width: 640px) {
  .gy-pl-dim { grid-template-columns: minmax(0, 1fr) 54px 60px; }
  .gy-pl-dim .barra, .gy-pl-dim > .cab.b { display: none; }
}
@media (max-width: 480px) {
  .gy-pl-kpis { gap: 10px; }
  .gy-pl-lista tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.gy-pl-lenda em { font-style: normal; }
.gy-pl-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.gy-pl-cab h3 { margin: 0; }
.gy-pl-cab-topo { align-items: flex-start; margin-bottom: 16px; }
.gy-pl-cab-topo p { margin: 0; max-width: 76ch; flex: 1 1 320px; }
.gy-pl-acao { text-align: right; white-space: nowrap; }
.gy-pl-org a { color: inherit; text-decoration: none; }
.gy-pl-org a:hover { color: var(--gy-primary-600); text-decoration: underline; }
.gy-pl-lista th a, .gy-pl-caminho th a { color: inherit; text-decoration: none; }

/* ------------------------------------------------ filtro das listas (cartões e documentos)
   PLANO 20/11/2026. Na página da seção, na página com itens dentro e na lista de
   documentos. O campo é o das tabelas (.gy-grade-busca) e o ano, as abas das tabelas de
   arquivos (.gy-abas). Nenhuma cor nova. */
.gy-fl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 16px 0 14px; }
.gy-grupo .gy-fl { margin-top: 0; }
.gy-fl-busca { flex: 1 1 260px; max-width: 380px; }
/* o ano em abas (.gy-abas), a mesma peça das tabelas de arquivos e das páginas por ano: linha própria, acima do campo */
.gy-fl-anos { flex: 1 1 100%; margin: 0; }
.gy-fl-conta { margin: 0 0 0 auto; font-size: .8125rem; color: var(--gy-text-muted); white-space: nowrap; }
.gy-fl-conta strong { color: var(--gy-text); }
.gy-fl-limpar { font-size: .8125rem; white-space: nowrap; }
.gy-fl-vazio { margin: 4px 0 0; color: var(--gy-text-muted); }
/* o que o filtro esconde some de verdade: cartão, linha de documento e botão têm display próprio */
.gy-fl [hidden], [data-fl-item][hidden], .gy-fl-vazio[hidden] { display: none; }
@media (max-width: 600px) {
  .gy-fl-busca { flex-basis: 100%; max-width: none; }
  .gy-fl-conta { margin-left: 0; }
}
html.gy-contraste .gy-fl-conta, html.gy-contraste .gy-fl-conta strong, html.gy-contraste .gy-fl-vazio { color: #FFF; }

/* aviso "esta tabela não tem o campo Exercício" (painel): frase e botão lado a lado, um embaixo do outro no celular */
.gy-exercicio-falta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 16px; }
.gy-exercicio-falta > span { flex: 1 1 320px; }

/* ------------------------------------------------ filtro por ano como peça padrão (PLANO 20/11/2026, noite)
   Página que tem dentro o mesmo assunto, um item por ano: abas de ano (.gy-abas, as mesmas das
   tabelas de arquivos) no cartão da página ou da tabela, e o conteúdo do ano logo abaixo. */
/* no cartão da página; no cartão da tabela (.gy-grade) vale o recuo que as abas de arquivos já têm */
.gy-card:not(.gy-grade) > .gy-abas-ano { margin: 14px 0 16px; }
.gy-ano-mais { margin-top: 16px; }
.gy-ano-mais h3 { margin: 0 0 12px; font-size: 1rem; }
/* painel: o cartão "Filtro por ano" na edição da página-mãe */
.gy-ano-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 20px; flex-wrap: wrap; }
.gy-ano-cab h3 { margin: 0 0 4px; }
.gy-ano-cab p { margin: 0; max-width: 62ch; }
.gy-ano-liga { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .875rem; white-space: nowrap; cursor: pointer; }
.gy-ano-liga input { width: 18px; height: 18px; accent-color: var(--gy-primary-600); }
.gy-ano-card .gy-alerta { margin: 14px 0; }
.gy-ano-card .gy-tabela-wrap { margin: 0 0 14px; }
.gy-ano-card .gy-tabela td { vertical-align: middle; }
.gy-ano-card input.gy-ano-campo { width: 96px; min-height: 34px; padding: 4px 10px; }
.gy-ano-pe { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 0; }
.gy-ano-abrir { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--gy-border); }
.gy-ano-abrir .gy-muted { font-size: .8125rem; }
/* no celular a coluna Tipo sai: o que importa (item, registros e o campo do ano) cabe sem rolar para o lado */
@media (max-width: 600px) {
  .gy-ano-card .gy-tabela th:nth-child(2), .gy-ano-card .gy-tabela td:nth-child(2) { display: none; }
  .gy-ano-card .gy-tabela th, .gy-ano-card .gy-tabela td { padding: 8px 10px; }
  .gy-ano-card input.gy-ano-campo { width: 76px; }
}

/* ---------------------------------------------------------------- descrição do documento de página (21/11/2026)
   O título dá o nome do documento; a descrição diz do que ele trata. No portal é uma linha própria sob o
   título, na cor de texto secundário (a mesma do "publicado em"), alinhada ao texto do título (depois do
   ícone). No painel aparece sob o título na lista "Documentos publicados". */
.gy-docs li .gy-doc-desc { flex: 1 1 100%; margin: -4px 0 0; padding-left: 22px; color: var(--gy-text-muted); font-size: .875rem; line-height: 1.45; max-width: 78ch; overflow-wrap: anywhere; }
.gy-doc-desc-adm { display: block; margin-top: 2px; font-weight: 400; font-size: .8125rem; line-height: 1.45; color: var(--gy-text-muted); max-width: 60ch; overflow-wrap: anywhere; }
.gy-doc-desc-adm.gy-doc-sem { font-style: italic; }
textarea.gy-input.gy-doc-desc-campo { min-height: 64px; }
.gy-doc-meta { display: block; margin-top: 4px; font-weight: 400; font-size: .8125rem; color: var(--gy-text-muted); overflow-wrap: anywhere; }
.gy-doc-col-acoes { width: 1%; vertical-align: top; }
.gy-doc-acoes { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: nowrap; }
@media (max-width: 600px) { .gy-doc-acoes { flex-direction: column; align-items: stretch; } }
.gy-doc-editando > td { background: var(--gy-primary-50); }
.gy-doc-form { display: grid; gap: 10px; max-width: 720px; padding: 6px 0; }
.gy-doc-form .gy-label { margin-top: 0; }
.gy-doc-form > p { margin: 0; }
.gy-doc-form-pe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* campo que ocupa a linha inteira dentro de .gy-form-grid (a descrição da leva de arquivos) */
.gy-form-grid > .gy-form-larga { grid-column: 1 / -1; }

/* ---------------------------------------------------- dedo, não mouse: área de toque (22/11/2026)
   Pedido do Roberto: "essas coisas de celular você pode usar as dicas dele" (estudo em docs/design/estudo-impeccable.md).
   A aparência não muda: onde o alvo é pequeno, cresce só a área que responde ao dedo, por uma faixa invisível (::after)
   centrada no botão ou no link. Só em aparelho de toque, como a regra dos botões (.gy-btn) mais acima. Onde os links
   ficam empilhados (rodapé, mapa do site) a faixa vai até encostar na do vizinho, sem sobrepor. */
@media (pointer: coarse) {
  .gy-utilbar-in { min-height: 44px; }                                       /* a barra de cima cresce 3 px para caber o dedo */
  .gy-utilbar-menu, .gy-utilbar-acess button, .gy-pill, .gy-grupo-link, .gy-trilha a, .gy-rodape p > a, .gy-rodape-fixos a,
  .gy-rodape-sub-in > span a, .gy-mapa-arvore a, .gy-catalogo-txt strong > a, .gy-satisfacao .gy-muted > a,
  .gy-eyebrow > a, .gy-voltar a, a.gy-dl, .gy-ac-contato a, .gy-main-publico > p > a:only-child { position: relative; }
  .gy-utilbar-menu::after, .gy-utilbar-acess button::after, .gy-pill::after, .gy-grupo-link::after, .gy-trilha a::after,
  .gy-rodape p > a::after, .gy-rodape-fixos a::after, .gy-rodape-sub-in > span a::after, .gy-mapa-arvore a::after,
  .gy-catalogo-txt strong > a::after, .gy-satisfacao .gy-muted > a::after, .gy-eyebrow > a::after, .gy-voltar a::after, a.gy-dl::after,
  .gy-ac-contato a::after, .gy-main-publico > p > a:only-child::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }
  .gy-utilbar-acess button::after { left: -2px; right: -2px; }                /* 36 de largura + a folga de 4 entre eles: 40 x 44 */
  /* trilha: em tela estreita ela quebra em duas ou três linhas, e um link pode se partir de uma linha para a outra.
     As linhas ficam a 24 px uma da outra e cada pedaço de link responde na altura da linha (o enchimento de um
     elemento de linha não muda o desenho). A faixa de 44 px passa POR BAIXO do texto: numa linha só ela completa os
     44; em duas ou mais, o nome de um link nunca fica coberto pela faixa do vizinho. */
  .gy-trilha { position: relative; z-index: 0; line-height: 1.9; }
  .gy-trilha a { padding: 5px 0; }
  .gy-trilha a::after { left: -6px; right: -6px; z-index: -1; }
  .gy-rodape p > a::after { height: 27px; margin-top: -13.5px; }              /* links empilhados a 27 px um do outro */
  .gy-mapa-arvore a::after { height: 28px; margin-top: -14px; }               /* idem, a 29 px */
  /* link que quebra em duas linhas responde inteiro, e não só na primeira */
  .gy-grupo-link, .gy-mapa-arvore ul a, .gy-rodape-fixos a, .gy-rodape-sub-in > span a, .gy-satisfacao .gy-muted > a,
  .gy-catalogo-txt strong > a, .gy-voltar a, .gy-ac-contato a { display: inline-block; }
  .gy-mapa-arvore ul a { vertical-align: top; }
  /* as linhas miúdas (rodapé e "quer dizer mais?") ganham respiro para o dedo */
  .gy-rodape-fixos, .gy-rodape-sub-in > span, .gy-satisfacao .gy-muted, .gy-voltar { line-height: 2; }
  .gy-rodape-fixos a::after, .gy-rodape-sub-in > span a::after, .gy-satisfacao .gy-muted > a::after, .gy-voltar a::after { left: -3px; right: -3px; height: 26px; margin-top: -13px; }
  a.gy-dl::after { height: 28px; margin-top: -14px; }                         /* link dentro de célula de tabela */
  /* campo: 44 px de altura e letra de 16 px (com menos que isso o iPhone dá zoom sozinho na tela ao tocar no campo) */
  .gy-input, select.gy-input, textarea.gy-input { font-size: 1rem; min-height: 44px; }
  .gy-main-publico input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .gy-main-publico select[name],
  .gy-main-publico textarea[name] { font-size: 1rem; }      /* vale também onde a barra da tabela encolhe a letra */
}
/* fim: área de toque */

/* ---------------------------------------------------- arte de abertura e página de Acessibilidade em blocos (22/11/2026)
   Pedido do Roberto: "mais humanização […] uma arte, minimalista mas com sintonia com o conteúdo". A abertura
   (.gy-abre) põe o texto à esquerda e a arte à direita a partir de 900 px; no celular, a arte vem abaixo do texto.
   A arte (.gy-arte, includes/artes/*.svg) é enfeite e NÃO tem cor: f-* preenche e s-* traça, sempre pelos tokens,
   por isso as cores do órgão entram sozinhas. O alto contraste, que aqui é por seletor, tem a regra logo abaixo;
   escala de cinza e negativo pegam pelo filtro de .gy-main-publico. */
.gy-abre { display: grid; gap: 16px; align-items: end; grid-template-columns: minmax(0, 1fr); margin-bottom: 20px; }
.gy-abre + .gy-grid { margin-top: 0; }
.gy-abre h2 { margin: 0 0 8px; font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.gy-abre p { margin: 0; color: var(--gy-text-muted); max-width: 64ch; }
.gy-arte { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; }
@media (min-width: 900px) {
  .gy-abre { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; }
  .gy-arte { max-width: 420px; margin: 0; }
}
.gy-arte .f-texto { fill: var(--gy-text); }
.gy-arte .f-azul { fill: var(--gy-primary-500); }
.gy-arte .f-ambar { fill: var(--gy-accent-500); }
.gy-arte .f-verde { fill: var(--gy-success-500); }
.gy-arte .f-cinza { fill: var(--gy-text-muted); }
.gy-arte .f-claro { fill: var(--gy-primary-50); }
.gy-arte .f-suave { fill: var(--gy-border-strong); }
.gy-arte .f-luz { fill: var(--gy-primary-300); }
.gy-arte .f-papel { fill: var(--gy-surface); }
.gy-arte [class^="s-"] { fill: none; }
.gy-arte [class*="s-"] { stroke-linecap: round; stroke-linejoin: round; }
.gy-arte .s-texto { stroke: var(--gy-text); }
.gy-arte .s-azul { stroke: var(--gy-primary-500); }
.gy-arte .s-ambar { stroke: var(--gy-accent-500); }
.gy-arte .s-verde { stroke: var(--gy-success-500); }
.gy-arte .s-cinza { stroke: var(--gy-text-muted); }
.gy-arte .s-fio { stroke: var(--gy-border-strong); }
.gy-arte .s-papel { stroke: var(--gy-surface); }
@media print { .gy-arte { display: none; } }
/* alto contraste: figura branca, roupas em amarelo e branco, sem o morro */
html.gy-contraste .gy-arte .f-texto, html.gy-contraste .gy-arte .f-verde, html.gy-contraste .gy-arte .f-cinza { fill: #FFF; }
html.gy-contraste .gy-arte .s-texto, html.gy-contraste .gy-arte .s-verde, html.gy-contraste .gy-arte .s-cinza, html.gy-contraste .gy-arte .s-fio { stroke: #FFF; }
html.gy-contraste .gy-arte .f-azul, html.gy-contraste .gy-arte .f-ambar, html.gy-contraste .gy-arte .f-luz { fill: #FFD200; }
html.gy-contraste .gy-arte .s-azul, html.gy-contraste .gy-arte .s-ambar { stroke: #FFD200; }
html.gy-contraste .gy-arte .f-claro, html.gy-contraste .gy-arte .f-suave, html.gy-contraste .gy-arte .f-papel { fill: #000; }
html.gy-contraste .gy-arte .s-papel { stroke: #000; }
html.gy-contraste .gy-abre p { color: #E6E6E6; }
/* arte sobre a tinta (telas de espera, que são escuras): a figura clareia, o morro e o papel afundam na tinta */
.gy-hero .gy-arte { max-width: 300px; margin: 0 auto 24px; }
.gy-hero .gy-arte .f-texto { fill: var(--gy-primary-50); }
.gy-hero .gy-arte .s-texto { stroke: var(--gy-primary-50); }
.gy-hero .gy-arte .f-claro { fill: var(--gy-ink-800); }
.gy-hero .gy-arte .f-papel { fill: var(--gy-ink-700); }
.gy-hero .gy-arte .f-suave { fill: var(--gy-ink-600); }
.gy-hero .gy-arte .s-fio, .gy-hero .gy-arte .s-cinza { stroke: var(--gy-ink-600); }
.gy-hero .gy-arte .s-papel { stroke: var(--gy-ink-700); }
.gy-hero .gy-arte .f-azul { fill: var(--gy-primary-300); }
.gy-hero .gy-arte .s-azul { stroke: var(--gy-primary-300); }

/* os cartões da página de Acessibilidade, um por assunto; ferramentas e contatos em colunas, com ícone */
.gy-ac-pilha { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.gy-ac-pilha .gy-card h2 { margin-top: 0; }
.gy-ac-pilha .gy-tabela-wrap { margin-bottom: 12px; }
.gy-ac-fim { margin-bottom: 0; }
.gy-ac-lista, .gy-ac-contato { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 14px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.gy-ac-contato { margin-bottom: 0; }
.gy-ac-lista li, .gy-ac-contato li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.gy-ac-lista li > span:last-child, .gy-ac-contato li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.gy-ac-nome { display: block; }
.gy-ac-ic { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--gy-radius-sm); background: var(--gy-primary-50); color: var(--gy-primary-700); }
.gy-ac-ic .gy-icone { width: 18px; height: 18px; }
html.gy-contraste .gy-ac-ic { background: #000; color: #FFD200; border: 1px solid #FFD200; }

/* busca pelo CNPJ (plataforma e painel): campo e botão na mesma linha; o que a Receita devolveu sai logo abaixo,
   na caixa de aviso de sempre (.gy-alerta). O aviso de conferência do campo fica depois do botão. */
.gy-cnpj-linha { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.gy-cnpj-linha .gy-input { flex: 1 1 200px; min-width: 0; max-width: 280px; }
.gy-cnpj-linha .gy-btn { flex: none; align-self: stretch; height: auto; }
.gy-cnpj-linha .gy-erro-campo { order: 3; margin-top: 0; }
.gy-cnpj-resultado { margin: 10px 0 0; flex-basis: 100%; order: 6; }
.gy-cnpj-resultado[hidden] { display: none; }
.gy-cnpj-resultado p { margin: 0 0 6px; }
.gy-cnpj-resultado .gy-btn { margin-bottom: 8px; }
.gy-cnpj-resultado > :last-child { margin-bottom: 0; }
.gy-cnpj-achou { overflow-wrap: anywhere; }
.gy-cnpj-lista { margin: 0 0 8px; padding-left: 18px; }
.gy-cnpj-lista li { overflow-wrap: anywhere; }
.gy-cnpj-rotulo, .gy-cnpj-atencao { font-weight: 700; }
.gy-cnpj-nota { font-size: .8125rem; }
/* cadastro de instituição: "nome no endereço, cidade e UF" e "contato do órgão" (empilham no celular) */
.gy-pf-campos-end { grid-template-columns: 2fr 1.3fr .7fr; }
.gy-pf-campos-contato { grid-template-columns: 1fr 2fr; }      /* endereço na linha toda; telefone e e-mail embaixo */
.gy-pf-campos-contato > :first-child, .gy-pf-campos .gy-pf-largo { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .gy-pf-campos-end { grid-template-columns: 1fr 1fr; }
  .gy-pf-campos-end > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .gy-pf-campos-end, .gy-pf-campos-contato { grid-template-columns: 1fr; } }
/* lista de instituições (plataforma): três colunas que cabem na tela; onde não cabem, cada órgão vira um cartão.
   Antes eram sete colunas (1.437 px) dentro de 900: a lista rolava de lado até no computador e o "Tipo" encolhia até sumir. */
.gy-pf-lista { container-type: inline-size; }
.gy-pf-lista td { vertical-align: top; }
.gy-pf-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: .75rem; color: var(--gy-text-muted); }
.gy-pf-linha:first-child { margin-top: 0; }
.gy-pf-linha > label { flex: none; min-width: 60px; }
.gy-pf-marcas { gap: 4px 12px; }
.gy-pf-marcas > label { min-width: 0; }
.gy-pf-linha .gy-input { width: auto; min-height: 30px; padding: 3px 8px; font-size: .8125rem; }
.gy-pf-linha select.gy-input { flex: 1 1 150px; min-width: 150px; max-width: 240px; }
.gy-pf-linha input[type="date"].gy-input { width: 136px; }
.gy-pf-cadastro .gy-pf-cnpj { width: 180px; }
.gy-pf-cadastro .gy-pf-cidade { width: 170px; }
.gy-pf-cadastro .gy-pf-uf { width: 68px; }
.gy-pf-cadastro .gy-erro-campo { order: 5; }
/* rótulo e campo que andam juntos quando a linha quebra (cidade, UF, fim do contrato) */
.gy-pf-par { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.gy-pf-botoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
@container (max-width: 880px) {
  .gy-pf-lista table.gy-tabela, .gy-pf-lista tbody, .gy-pf-lista tr, .gy-pf-lista td { display: block; }
  .gy-pf-lista thead { display: none; }
  .gy-pf-lista tr { border: 1px solid var(--gy-border); border-radius: var(--gy-radius-md); padding: 12px; margin-bottom: 12px; background: var(--gy-surface); }
  .gy-pf-lista tr:last-child { margin-bottom: 0; }
  .gy-pf-lista td { padding: 0; border: 0; }
  .gy-pf-lista td + td { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gy-border); }
  .gy-pf-lista .gy-pf-inst .gy-input { flex: 1 1 auto; min-width: 0 !important; }
  .gy-pf-lista .gy-pf-endereco .gy-input { flex: 1 1 150px; width: auto; min-width: 0; }
  .gy-pf-lista .gy-pf-par-cidade { flex: 1 1 180px; }
  .gy-pf-lista .gy-pf-par-cidade .gy-input { flex: 1 1 auto; width: auto; min-width: 0; }
  .gy-pf-lista .gy-pf-cadastro .gy-pf-uf { flex: 0 0 68px; }
}
