/* Adaptacao do layout estatico para as classes ja usadas pelo PHP. */
:root {
  /* Identidade COORLECE: verde institucional, lima e turquesa da logo. */
  --background: #f7faf6;
  --foreground: #263229;
  --card: #ffffff;
  --card-foreground: #263229;
  --popover: #ffffff;
  --popover-foreground: #263229;
  --primary: #4b8f0b;
  --primary-foreground: #ffffff;
  --primary-soft: #eef6dc;
  --secondary: #edf4eb;
  --secondary-foreground: #35533a;
  --muted: #f0f4ef;
  --muted-foreground: #69756c;
  --accent: #008f8b;
  --accent-foreground: #ffffff;
  --destructive: #b34b4b;
  --destructive-foreground: #ffffff;
  --success: #5c9715;
  --success-foreground: #ffffff;
  --warning: #bf9300;
  --warning-foreground: #765900;
  --border: #dce7d9;
  --input: #cbd9c9;
  --ring: #008f8b;
  --chart-1: #4b8f0b;
  --chart-2: #008f8b;
  --chart-3: #bfd900;
  --chart-4: #5c9715;
  --chart-5: #bf9300;
  --gradient-brand: linear-gradient(135deg, #315f13 0%, #4b8f0b 55%, #008f8b 100%);
  --gradient-accent: linear-gradient(135deg, #4b8f0b 0%, #008f8b 100%);
  --shadow-soft: 0 1px 2px rgba(38, 50, 41, .06), 0 10px 28px -16px rgba(38, 50, 41, .22);
  --shadow-panel: 0 24px 60px -32px rgba(38, 50, 41, .34);
  --sidebar: #244c2d;
  --sidebar-foreground: #eef7ed;
  --sidebar-primary: #bfd900;
  --sidebar-primary-foreground: #244c2d;
  --sidebar-accent: #356c26;
  --sidebar-accent-foreground: #ffffff;
  --sidebar-border: #3f7540;
  --sidebar-ring: #bfd900;

  --font-serif: var(--font-display);
  --slate-900: var(--primary);
  --slate-700: #356c26;
  --slate-500: var(--muted-foreground);
  --slate-300: #a6b6a5;
  --ink: var(--foreground);
  --ink-soft: var(--muted-foreground);
  --paper: var(--background);
  --line: var(--border);
  --line-soft: var(--muted);
  --accent-ink: #00736f;
  --accent-wash: color-mix(in oklab, var(--accent) 10%, transparent);
  --st-pend: var(--warning-foreground);
  --st-pend-bg: color-mix(in oklab, var(--warning) 15%, transparent);
  --st-and: var(--accent);
  --st-and-bg: color-mix(in oklab, var(--accent) 15%, transparent);
  --st-conc: var(--success);
  --st-conc-bg: color-mix(in oklab, var(--success) 15%, transparent);
  --st-arq: var(--muted-foreground);
  --st-arq-bg: var(--muted);
  --st-inv: var(--destructive);
  --st-inv-bg: color-mix(in oklab, var(--destructive) 10%, transparent);
  --radius-sm: calc(var(--radius) - 2px);
  --shadow-pop: var(--shadow-soft);
}

html, body { max-width: 100%; overflow-x: hidden; }
a { color: inherit; }
svg { display: inline-block; }

.brand { display: flex; min-width: 0; align-items: center; gap: .75rem; }
.brand img { display: block; }
.coorlece-logo { width: 11.5rem; height: auto; object-fit: contain; }
.login-logo { width: min(13rem, 70vw); margin-inline: auto; }
.brand-text { display: flex; min-width: 0; flex-direction: column; line-height: 1.15; }
.brand-text .b1 { font-family: var(--font-display); font-size: .875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.brand-text .b2 { font-size: .75rem; color: var(--muted-foreground); }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; flex: none; border-radius: .5rem; background: var(--sidebar-accent); color: var(--sidebar-primary); }
.brand-mark img { width: 1.45rem; height: 1.45rem; object-fit: contain; }
.brand-mark svg { width: 1.5rem; height: 1.5rem; stroke-width: 2.2; }

.pub-shell { display: flex; min-height: 100vh; flex-direction: column; background: var(--background); }
.pub-head { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--border); background: color-mix(in oklab, var(--card) 90%, transparent); backdrop-filter: blur(8px); }
.pub-head-inner { width: 100%; max-width: 72rem; min-height: 4rem; margin-inline: auto; padding-inline: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pub-head .brand-text { border-left: 1px solid var(--border); padding-left: .75rem; }
.pub-head .brand-text .b1 { color: var(--muted-foreground); }
.pub-head .brand-text .b2 { display: none; }
.navlinks { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: .25rem; font-size: .875rem; }
.navlinks a { flex: 0 0 auto; border-radius: calc(var(--radius) - 2px); padding: .5rem .75rem; color: var(--muted-foreground); transition: color .15s, background-color .15s; white-space: nowrap; }
.navlinks a:hover { background: var(--muted); color: var(--foreground); }
.navlinks a.nav-primary { background: var(--primary); color: var(--primary-foreground); font-weight: 500; }
.navlinks a.nav-primary:hover { background: color-mix(in oklab, var(--primary) 90%, black); color: var(--primary-foreground); }
.pub-main { flex: 1; }
.pub-inner { width: 100%; max-width: 72rem; margin-inline: auto; padding: 3rem 1rem; }
.pub-narrow { max-width: 42rem; }
.pub-foot { border-top: 1px solid var(--border); background: var(--card); color: var(--muted-foreground); font-size: .875rem; }
.pub-foot-inner { width: 100%; max-width: 72rem; margin-inline: auto; padding: 2rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background-image: var(--gradient-brand); margin: -3rem calc(50% - 50vw) 0; padding: 4rem max(1rem, calc((100vw - 72rem) / 2 + 1rem)) 3rem; color: var(--primary-foreground); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .2; background-image: radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--primary-foreground) 35%, transparent) 1px, transparent 0); background-size: 22px 22px; }
.hero > * { position: relative; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid color-mix(in oklab, var(--primary-foreground) 25%, transparent); border-radius: 999px; padding: .25rem .75rem; font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in oklab, var(--primary-foreground) 85%, transparent); }
.hero h1 { margin-top: 1.5rem; max-width: 48rem; font-size: clamp(2.25rem, 5vw, 3rem); line-height: 1; font-weight: 600; color: var(--primary-foreground); }
.hero p { margin-top: 1.25rem; max-width: 42rem; font-size: 1.125rem; color: color-mix(in oklab, var(--primary-foreground) 80%, transparent); }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; max-width: 72rem; }
.mode-card { display: block; min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-soft); padding: 1.75rem; transition: transform .15s, box-shadow .15s, border-color .15s; color: var(--foreground); text-decoration: none; }
.mode-card:hover { transform: translateY(-.25rem); border-color: color-mix(in oklab, var(--accent) 35%, var(--border)); box-shadow: var(--shadow-panel); }
.mode-card:focus-visible { outline: 2px solid color-mix(in oklab, var(--ring) 55%, transparent); outline-offset: 3px; }
.mode-icon { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary); }
.mode-icon svg { width: 1.25rem; height: 1.25rem; }
.mode-card h3 { margin-top: 1.25rem; font-size: 1.25rem; font-weight: 600; }
.mode-card p, .mode-card .note { margin-top: .5rem; color: var(--muted-foreground); font-size: .875rem; }
.mode-card .note { display: flex; align-items: flex-start; gap: .5rem; line-height: 1.45; }
.mode-card .note svg { width: 1rem; height: 1rem; flex: none; margin-top: .1rem; }
.mode-card .btn { margin-top: 1.5rem; }
.mode-action { display: inline-block; margin-top: 1.5rem; color: var(--accent); font-size: .875rem; font-weight: 600; }
.mode-card:hover .mode-action { text-decoration: underline; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 3rem; }
.feature-item { min-width: 0; border-left: 2px solid color-mix(in oklab, var(--accent) 40%, transparent); padding-left: 1rem; }
.feature-item svg { width: 1.25rem; height: 1.25rem; color: var(--accent); }
.feature-item h3 { margin-top: .75rem; font-size: 1rem; font-weight: 600; }
.feature-item p { margin-top: .25rem; color: var(--muted-foreground); font-size: .875rem; line-height: 1.55; }

.audit-callout { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: color-mix(in oklab, var(--muted) 50%, transparent); padding: 1.5rem; }
.audit-text { display: flex; min-width: 0; align-items: flex-start; gap: .75rem; color: var(--muted-foreground); font-size: .875rem; line-height: 1.55; }
.audit-text svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: .125rem; color: var(--primary); }

.card, .panel-card, .kpi, .viz, .login-card-box { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-soft); }
.card-pad { padding: 1.75rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .375rem; font-size: .875rem; font-weight: 500; }
.field .hint, .tsub, .section-sub { color: var(--muted-foreground); font-size: .8125rem; }
.input, input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; border: 1px solid var(--input); border-radius: var(--radius); background: var(--background);
  padding: .625rem .75rem; font-size: .875rem; outline: none; transition: box-shadow .15s, border-color .15s;
}
textarea { min-height: 7.5rem; resize: vertical; }
.input:focus, input:focus, select:focus, textarea:focus { border-color: var(--ring); box-shadow: 0 0 0 2px color-mix(in oklab, var(--ring) 35%, transparent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); background: var(--card); padding: .5rem 1rem; font-size: .875rem; font-weight: 500; color: var(--foreground); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--muted); }
.btn-primary, .btn-slate { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover, .btn-slate:hover { background: color-mix(in oklab, var(--primary) 90%, black); color: var(--primary-foreground); }
.btn.lg { padding: .625rem 1.25rem; }
.btn.block { width: 100%; }
.btn.sm { padding: .375rem .75rem; font-size: .8125rem; }

.alerta { border-radius: var(--radius); border: 1px solid var(--border); padding: .75rem 1rem; margin-bottom: 1rem; font-size: .875rem; }
.alerta-erro { background: color-mix(in oklab, var(--destructive) 10%, transparent); border-color: color-mix(in oklab, var(--destructive) 35%, transparent); color: var(--destructive); }
.alerta-ok { background: color-mix(in oklab, var(--success) 15%, transparent); border-color: color-mix(in oklab, var(--success) 40%, transparent); color: var(--success); }
.alerta-info { background: color-mix(in oklab, var(--accent) 10%, transparent); border-color: color-mix(in oklab, var(--accent) 30%, transparent); color: var(--accent); }

.pill, .risk, .role-tag, .badge-alerta { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid; border-radius: 999px; padding: .15rem .65rem; font-size: .75rem; font-weight: 500; }
.pill .dot { width: .4rem; height: .4rem; border-radius: 999px; background: currentColor; }
.st-pend { background: color-mix(in oklab, var(--warning) 15%, transparent); color: var(--warning-foreground); border-color: color-mix(in oklab, var(--warning) 40%, transparent); }
.st-and { background: color-mix(in oklab, var(--accent) 15%, transparent); color: var(--accent); border-color: color-mix(in oklab, var(--accent) 40%, transparent); }
.st-conc { background: color-mix(in oklab, var(--success) 15%, transparent); color: var(--success); border-color: color-mix(in oklab, var(--success) 40%, transparent); }
.st-arq { background: var(--muted); color: var(--muted-foreground); border-color: var(--border); }
.st-inv { background: color-mix(in oklab, var(--destructive) 10%, transparent); color: var(--destructive); border-color: color-mix(in oklab, var(--destructive) 30%, transparent); }
.risk-baixo { background: var(--muted); color: var(--muted-foreground); border-color: var(--border); }
.risk-medio { background: color-mix(in oklab, var(--accent) 10%, transparent); color: var(--accent); border-color: color-mix(in oklab, var(--accent) 30%, transparent); }
.risk-alto { background: color-mix(in oklab, var(--warning) 15%, transparent); color: var(--warning-foreground); border-color: color-mix(in oklab, var(--warning) 40%, transparent); }
.risk-critico { background: color-mix(in oklab, var(--destructive) 10%, transparent); color: var(--destructive); border-color: color-mix(in oklab, var(--destructive) 30%, transparent); }

.tbl, .mytable { width: 100%; border-collapse: collapse; font-size: .875rem; }
.tbl th, .mytable th { background: color-mix(in oklab, var(--muted) 50%, transparent); border-bottom: 1px solid var(--border); color: var(--muted-foreground); font-size: .75rem; font-weight: 500; letter-spacing: .05em; padding: .75rem 1.25rem; text-align: left; text-transform: uppercase; }
.tbl td, .mytable td { border-bottom: 1px solid var(--border); padding: .85rem 1.25rem; vertical-align: middle; }
.tbl tr:last-child td, .mytable tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover, .mytable tbody tr:hover { background: color-mix(in oklab, var(--muted) 40%, transparent); }
.proto, .mono { font-family: var(--font-mono); letter-spacing: .025em; }

.tabs { display: flex; gap: .5rem; flex-wrap: wrap; padding: 1rem; border-bottom: 1px solid var(--border); }
.tab { border: 1px solid var(--border); border-radius: 999px; padding: .375rem .75rem; background: var(--card); color: var(--muted-foreground); font-size: .875rem; }
.tab.active { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.tab .cnt { opacity: .75; margin-left: .35rem; }

.content-title { margin-bottom: 1.5rem; }
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.kpi { min-width: 0; padding: 1.25rem; }
.kpi .k-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.kpi .k-ic { display: grid; width: 2rem; height: 2rem; flex: none; place-items: center; border-radius: var(--radius); }
.kpi .k-ic svg { width: 1rem; height: 1rem; }
.kpi .k-ic.a { background: color-mix(in oklab, var(--warning) 15%, transparent); color: var(--warning-foreground); }
.kpi .k-ic.b { background: color-mix(in oklab, var(--accent) 12%, transparent); color: var(--accent); }
.kpi .k-ic.c { background: color-mix(in oklab, var(--success) 15%, transparent); color: var(--success); }
.kpi .k-ic.d { background: color-mix(in oklab, var(--destructive) 10%, transparent); color: var(--destructive); }
.k-num { margin-top: .75rem; font-family: var(--font-display); font-size: 1.875rem; line-height: 1; font-weight: 600; }
.k-lbl, .k-delta { color: var(--muted-foreground); font-size: .875rem; }
.k-delta { display: block; margin-top: .45rem; font-size: .75rem; }
.viz-grid { display: grid; grid-template-columns: repeat(2, minmax(20rem, 1fr)); gap: 1.25rem; align-items: start; }
.viz { min-width: 0; padding: 1.5rem; overflow: hidden; }
.viz h3 { margin-bottom: 1rem; font-size: 1rem; font-weight: 600; }
.donut-wrap { display: flex; align-items: center; gap: 1.5rem; }
.donut { position: relative; width: 8.125rem; height: 8.125rem; flex: none; border-radius: 50%; }
.donut::after { content: ""; position: absolute; inset: 1.25rem; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1px var(--border); }
.donut-c { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; text-align: center; }
.donut-c .big { font-family: var(--font-display); font-size: 1.625rem; line-height: 1; font-weight: 600; color: var(--foreground); }
.donut-c .sm { margin-top: .25rem; color: var(--muted-foreground); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; }
.legend { flex: 1; min-width: 0; }
.legend .lg { display: flex; align-items: center; gap: .55rem; padding: .35rem 0; color: var(--muted-foreground); font-size: .8125rem; }
.legend .sw { width: .625rem; height: .625rem; flex: none; border-radius: .2rem; }
.legend .lg .v, .bar-row .v { margin-left: auto; color: var(--foreground); font-weight: 600; }
.bars { display: flex; flex-direction: column; gap: 1rem; }
.bar-row { display: grid; grid-template-columns: minmax(6.5rem, 8rem) minmax(6rem, 1fr) 2.25rem; gap: .75rem; align-items: center; font-size: .875rem; }
.bar-row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: .5rem; border-radius: 999px; background: var(--muted); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--primary); }
.vazio { border: 1px dashed var(--border); border-radius: var(--radius); background: color-mix(in oklab, var(--muted) 45%, transparent); padding: 1rem; color: var(--muted-foreground); font-size: .875rem; text-align: center; }
.prazo-warn, .prazo-late { font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.prazo-warn { color: var(--warning-foreground); }
.prazo-late { color: var(--destructive); }

.ficha-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(18rem, 1fr); gap: 1.25rem; align-items: start; }
.form-grid, .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.subhead { margin: 1.5rem 0 1rem; border-bottom: 1px solid var(--border); padding-bottom: .5rem; font-size: 1rem; font-weight: 600; }
.manifest { background: color-mix(in oklab, var(--muted) 40%, transparent); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; color: var(--muted-foreground); white-space: pre-wrap; }
.chip { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in oklab, var(--muted) 50%, transparent); padding: .4rem .75rem; font-size: .75rem; }
.timeline { border-left: 1px solid var(--border); padding-left: 1rem; }
.tl-item { position: relative; padding-bottom: 1.25rem; }
.tl-item::before { content: ""; position: absolute; left: -1.3rem; top: .4rem; width: .625rem; height: .625rem; border-radius: 999px; background: var(--accent); }
.tl-when { color: var(--muted-foreground); font-size: .75rem; }
.tl-who { font-size: .875rem; font-weight: 500; }
.tl-txt { color: var(--muted-foreground); font-size: .875rem; white-space: pre-wrap; }

.lgpd-strip, .warn-box { display: flex; gap: .75rem; align-items: flex-start; border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent); border-radius: var(--radius); background: color-mix(in oklab, var(--accent) 10%, transparent); color: var(--accent); padding: .85rem 1rem; font-size: .875rem; }
.lgpd-strip svg, .warn-box svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: .1rem; }
.lgpd-strip span, .warn-box span { min-width: 0; line-height: 1.5; overflow-wrap: break-word; }
.warn-box { background: color-mix(in oklab, var(--warning) 10%, transparent); border-color: color-mix(in oklab, var(--warning) 40%, transparent); color: var(--warning-foreground); }
.protocol-box { border: 2px dashed color-mix(in oklab, var(--primary) 30%, transparent); border-radius: calc(var(--radius) + 4px); background: color-mix(in oklab, var(--primary-soft) 60%, transparent); padding: 2rem; margin: 2rem 0; text-align: center; }
.protocol-box .lbl { color: var(--muted-foreground); font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.protocol-box .num { margin-top: .75rem; font-family: var(--font-display); font-size: clamp(1.8rem, 6vw, 2.25rem); font-weight: 600; letter-spacing: .12em; color: var(--primary); }
.confirm-wrap { max-width: 42rem; margin-inline: auto; text-align: center; }
.confirm-check { display: flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 999px; margin: 0 auto 1.5rem; background: color-mix(in oklab, var(--success) 15%, transparent); color: var(--success); }

.denuncia-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 1fr); gap: 2rem; align-items: start; }
.denuncia-form-card { min-width: 0; }
.denuncia-form-card form { margin-top: 1.25rem; }
.mode-pill { display: inline-flex; align-items: center; border-radius: 999px; background: var(--primary-soft); padding: .25rem .75rem; color: var(--primary); font-size: .75rem; font-weight: 700; letter-spacing: .16em; line-height: 1.35; text-transform: uppercase; }
.form-title { margin-top: 1.25rem; font-size: 1.5rem; line-height: 1.25; font-weight: 600; }
.form-lead { margin-top: .5rem; margin-bottom: 1.25rem; color: var(--muted-foreground); font-size: .875rem; line-height: 1.6; }
.req { color: var(--destructive); }
.upload-zone { position: relative; display: flex; min-height: 6.75rem; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; margin-top: .5rem; border: 1px dashed var(--input); border-radius: var(--radius); background: color-mix(in oklab, var(--muted) 40%, transparent); padding: 1.5rem; text-align: center; transition: background-color .15s, border-color .15s; }
.upload-zone:hover { background: var(--muted); border-color: color-mix(in oklab, var(--accent) 35%, var(--input)); }
.upload-zone svg { width: 1.25rem; height: 1.25rem; color: var(--muted-foreground); }
.upload-title { color: var(--foreground); font-size: .875rem; font-weight: 600; }
.upload-hint { max-width: 26rem; color: var(--muted-foreground); font-size: .75rem; line-height: 1.45; }
.upload-summary { max-width: 26rem; color: var(--foreground); font-size: .75rem; font-weight: 600; line-height: 1.45; }
.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; white-space: nowrap; }
.antibot-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.denuncia-aside { display: flex; min-width: 0; flex-direction: column; gap: 1rem; }
.denuncia-aside h2 { font-size: 1rem; font-weight: 600; }
.info-list { display: flex; flex-direction: column; gap: .75rem; margin-top: .75rem; color: var(--muted-foreground); font-size: .875rem; line-height: 1.55; }
.info-list li { position: relative; padding-left: 1rem; }
.info-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: .35rem; height: .35rem; border-radius: 999px; background: var(--accent); }
.side-note { border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: color-mix(in oklab, var(--muted) 50%, transparent); padding: 1.5rem; color: var(--muted-foreground); font-size: .875rem; line-height: 1.6; }
.side-note a { color: var(--accent); font-weight: 600; }
.side-note a:hover { text-decoration: underline; }

.access-head { max-width: 46rem; margin-bottom: 2rem; }
.access-head h1 { margin-top: 1.25rem; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.05; font-weight: 600; }
.access-head p { margin-top: .85rem; color: var(--muted-foreground); font-size: 1rem; line-height: 1.65; }
.access-split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.35fr); gap: 1.5rem; align-items: start; }
.access-card { min-width: 0; }
.access-card-head { margin-bottom: 1.25rem; }
.access-card-head h2 { font-size: 1.25rem; line-height: 1.25; font-weight: 600; }
.access-card-head p { margin-top: .4rem; color: var(--muted-foreground); font-size: .875rem; line-height: 1.55; }
.access-link { display: inline-flex; margin-top: 1rem; color: var(--accent); font-size: .875rem; font-weight: 600; }
.access-link:hover { text-decoration: underline; }
.access-foot { margin-top: 1.25rem; text-align: center; color: var(--muted-foreground); font-size: .8125rem; }
.access-foot a { color: var(--accent); font-weight: 600; }

.consulta-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, .72fr); gap: 1.5rem; max-width: 58rem; margin-inline: auto; align-items: start; }
.consulta-card { min-width: 0; }
.consulta-card h1 { margin-top: 1.25rem; font-size: 1.5rem; line-height: 1.25; font-weight: 600; }
.consulta-card > p { margin-top: .5rem; margin-bottom: 1.25rem; color: var(--muted-foreground); font-size: .875rem; line-height: 1.6; }
.proto-input { font-family: var(--font-mono), monospace; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.resultado { margin-top: 1.125rem; }
.res-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.res-box .status-lbl { margin-bottom: .5rem; color: var(--muted-foreground); font-size: .75rem; }
.res-box .data { margin-top: .75rem; color: var(--muted-foreground); font-size: .8125rem; }
.pill.grande { padding: .4rem .9rem; font-size: .875rem; }
.naoach { border: 1px solid color-mix(in oklab, var(--warning) 40%, transparent); border-radius: var(--radius); background: color-mix(in oklab, var(--warning) 15%, transparent); padding: 1rem; color: var(--warning-foreground); font-size: .875rem; text-align: center; }
.consulta-note { display: flex; min-width: 0; flex-direction: column; gap: 1rem; }
.consulta-note h2 { font-size: 1rem; font-weight: 600; }
.consulta-note p { margin-top: .5rem; color: var(--muted-foreground); font-size: .875rem; line-height: 1.6; }

.painel-body { min-height: 100vh; background: var(--background); }
.painel-body.mini { background: var(--background); }
.layer-painel { display: flex; min-height: 100vh; width: 100%; background: var(--background); }
body.mini .layer-painel { background: var(--background); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; width: 16rem; height: 100vh; height: 100dvh; overflow: hidden; background: var(--sidebar); color: var(--sidebar-foreground); transition: width .2s linear; }
body.mini .sidebar { width: 3rem; }
.side-brand { display: flex; align-items: center; gap: .75rem; min-height: 4rem; height: 4rem; border-bottom: 1px solid var(--sidebar-border); padding: .875rem .75rem; text-decoration: none; }
.side-brand .brand-mark { flex: none; background: var(--sidebar-accent); color: var(--sidebar-primary); }
.side-brand .brand-text .b1 { color: var(--sidebar-foreground); }
.side-brand .brand-text .b2 { color: color-mix(in oklab, var(--sidebar-foreground) 70%, transparent); }
body.mini .side-brand { justify-content: center; padding-inline: .5rem; }
body.mini .side-brand .brand-text { display: none; }
.side-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: .5rem; }
.nav-cap { display: flex; height: 2rem; align-items: center; border-radius: var(--radius); padding-inline: .5rem; color: color-mix(in oklab, var(--sidebar-foreground) 70%, transparent); font-size: .75rem; font-weight: 500; }
body.mini .nav-cap { height: .5rem; margin-top: .5rem; overflow: hidden; opacity: 0; }
.navlink { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 2rem; border-radius: calc(var(--radius) - 2px); padding: .5rem; color: var(--sidebar-foreground); font-size: .875rem; text-decoration: none; outline: none; transition: background-color .15s, color .15s, padding .2s; }
.navlink svg { width: 1rem; height: 1rem; flex: none; stroke-width: 2; }
.navlink:hover, .navlink[data-active="true"], .navlink.active { background: var(--sidebar-accent); color: var(--sidebar-accent-foreground); }
.navlink .badge { margin-left: auto; border-radius: 999px; background: var(--destructive); color: var(--destructive-foreground); padding: .05rem .45rem; font-size: .7rem; font-weight: 600; }
body.mini .navlink { justify-content: center; width: 2rem; height: 2rem; padding: .5rem; margin-inline: auto; }
body.mini .navlink .lbl, body.mini .navlink .badge { display: none; }
body.mini .navlink:hover::after { content: attr(data-tip); position: absolute; left: calc(100% + .65rem); top: 50%; z-index: 40; transform: translateY(-50%); border: 1px solid var(--sidebar-border); border-radius: var(--radius); background: var(--sidebar); color: var(--sidebar-foreground); padding: .4rem .65rem; white-space: nowrap; box-shadow: var(--shadow-soft); }
.side-foot { border-top: 1px solid var(--sidebar-border); padding: .75rem; }
.side-user { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.avatar { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; flex: none; border-radius: 999px; background: var(--sidebar-accent); color: var(--sidebar-foreground); font-size: .75rem; font-weight: 600; }
.who { min-width: 0; line-height: 1.2; }
.who .n { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; }
.who .r { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: color-mix(in oklab, var(--sidebar-foreground) 70%, transparent); font-size: .75rem; }
body.mini .side-user .who, body.mini .side-foot .navlink .lbl { display: none; }
.mainwrap { display: flex; min-width: 0; min-height: 100vh; flex: 1; flex-direction: column; margin-left: 16rem; background: var(--background); transition: margin-left .2s linear; }
body.mini .mainwrap { margin-left: 3rem; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; min-height: 4rem; height: 4rem; align-items: center; gap: .75rem; border-bottom: 1px solid var(--border); background: var(--card); padding-inline: 1rem; overflow: hidden; }
.icon-btn { display: inline-flex; width: 1.75rem; height: 1.75rem; align-items: center; justify-content: center; border-radius: calc(var(--radius) - 2px); color: var(--muted-foreground); cursor: pointer; transition: background-color .15s, color .15s; }
.icon-btn:hover { background: var(--accent); color: var(--accent-foreground); }
.topbar-title { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; justify-content: center; overflow: hidden; line-height: 1.2; }
.topbar h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.125rem; line-height: 1.25; font-weight: 600; }
.topbar .crumb { min-width: 0; margin-top: .125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-foreground); font-size: .8125rem; line-height: 1.2; }
.topbar-right { margin-left: auto; display: flex; min-width: 0; max-width: 55%; align-items: center; justify-content: flex-end; gap: .5rem; overflow: hidden; }
.topbar-right > * { flex: 0 1 auto; min-width: 0; }
.content { flex: 1; padding: 1.5rem; }
.page-actions, .head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-title, .head-row h1 { font-size: 1.5rem; font-weight: 600; }

@media (max-width: 900px) {
  .mode-grid, .feature-grid, .access-split, .consulta-wrap, .denuncia-layout, .viz-grid, .ficha-grid, .form-grid, .grid2 { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub-head-inner { align-items: flex-start; height: auto; padding-block: .75rem; gap: .75rem; flex-direction: column; }
  .navlinks { width: 100%; justify-content: flex-start; flex-wrap: wrap; overflow: visible; }
}

@media (max-width: 640px) {
  .pub-inner { padding: 2rem .875rem; }
  .pub-head-inner { padding-inline: .875rem; }
  .pub-head .brand { width: 100%; }
  .pub-head .brand-text .b1 { max-width: 13.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; letter-spacing: .1em; }
  .navlinks { padding-bottom: 0; gap: .35rem; }
  .navlinks a { flex: 1 1 auto; padding: .45rem .65rem; font-size: .8125rem; text-align: center; white-space: normal; }
  .hero { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); margin-top: -2rem; padding: 2.75rem .875rem 2rem; }
  .hero-eyebrow { max-width: 100%; border-radius: var(--radius); letter-spacing: .12em; line-height: 1.35; }
  .hero h1 { margin-top: 1.25rem; max-width: 100%; font-size: clamp(1.95rem, 8vw, 2.35rem); line-height: 1.08; overflow-wrap: normal; text-wrap: balance; }
  .hero p { max-width: 100%; font-size: 1rem; line-height: 1.55; overflow-wrap: break-word; }
  .mode-grid { width: 100%; max-width: 100%; gap: 1rem; margin-top: 2rem; }
  .mode-card { padding: 1.25rem; }
  .mode-card .btn { width: 100%; padding-inline: .75rem; white-space: normal; text-align: center; }
  .access-head { margin-bottom: 1.5rem; }
  .access-head h1 { font-size: clamp(1.8rem, 8vw, 2.25rem); }
  .access-split, .consulta-wrap { gap: 1rem; }
  .card-pad { padding: 1.25rem; }
  .mode-pill { border-radius: var(--radius); letter-spacing: .12em; }
  .form-title { font-size: 1.35rem; }
  .lgpd-strip, .warn-box { padding: .85rem; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
  .upload-zone { padding: 1.25rem .875rem; }
  .feature-grid { gap: 1.5rem; margin-top: 2.5rem; }
  .audit-callout { align-items: stretch; flex-direction: column; padding: 1.25rem; }
  .audit-callout .btn { width: 100%; }
  .kpi-row { grid-template-columns: 1fr; }
  .donut-wrap { align-items: flex-start; flex-direction: column; }
  .bar-row { grid-template-columns: 1fr 4rem 2rem; gap: .5rem; }
  .pub-foot-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
  .painel-body, .layer-painel { background: var(--background); }
  .sidebar { width: 3.25rem; }
  .mainwrap, body.mini .mainwrap { margin-left: 3.25rem; }
  .side-brand { justify-content: center; padding-inline: .5rem; }
  .side-brand .brand-text,
  .nav-cap span,
  .navlink .lbl,
  .navlink .badge,
  .side-user .who,
  .side-foot .navlink .lbl { display: none; }
  .nav-cap { height: .5rem; margin-top: .5rem; overflow: hidden; opacity: 0; }
  .navlink { justify-content: center; width: 2.25rem; height: 2.25rem; padding: .5rem; margin-inline: auto; }
  .side-scroll { padding-inline: .5rem; }
  .side-foot { padding-inline: .5rem; }
  .topbar { align-items: center; min-height: 4rem; height: 4rem; padding-inline: .75rem; }
  .topbar h1 { font-size: 1rem; }
  .topbar .crumb { font-size: .75rem; }
  .topbar-right { display: none; }
  .content { padding: 1rem; }
  .viz { padding: 1.125rem; }
  .tbl, .mytable { display: block; overflow-x: auto; white-space: nowrap; }
}
