
/* identidade: cinza bandeirante (estrutura), azul (ação), vermelho paulista (alerta), listras da bandeira de SP (assinatura) */
:root {
  --page: #EEF0F3; --card: #FFFFFF; --card-2: #F6F7F9; --line: #DDE1E6; --line-2: #C9CFD6;
  --ink: #141A22; --ink-2: #3A4350; --muted: #566170;
  --primary: #24476F; --primary-hover: #1B3757; --primary-weak: #E6EDF6; --on-primary: #FFFFFF;
  --red: #A8231B; --red-weak: #FBE9E7; --green: #1E6B3A; --green-weak: #E3F2E8; --amber: #8A5300; --amber-weak: #FCF0D9; --neutral-weak: #E6E9ED;
  --side: #1F2A36; --side-2: #18222D; --side-text: #C3CCD7; --side-muted: #8E9AA8; --side-hover: rgba(255,255,255,.06); --gold: #C9A23A;
  --display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --radius: 8px; --radius-sm: 6px;
  --shadow: 0 1px 0 rgba(20, 26, 34, .04), 0 1px 2px rgba(20, 26, 34, .06);
  --shadow-lg: 0 24px 60px rgba(10, 15, 21, .28);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0D1116; --card: #151B23; --card-2: #11161D; --line: #242D38; --line-2: #313C49;
    --ink: #E7EAEE; --ink-2: #C2C9D2; --muted: #99A3B0;
    --primary: #8DB4E6; --primary-hover: #A6C5EE; --primary-weak: #18263A; --on-primary: #0D1116;
    --red: #F2877F; --red-weak: #3A1B19; --green: #6FD39A; --green-weak: #13301F; --amber: #F0B95A; --amber-weak: #33270F; --neutral-weak: #232B36;
    --side: #0A0F15; --side-2: #0A0F15;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #0D1116; --card: #151B23; --card-2: #11161D; --line: #242D38; --line-2: #313C49;
  --ink: #E7EAEE; --ink-2: #C2C9D2; --muted: #99A3B0;
  --primary: #8DB4E6; --primary-hover: #A6C5EE; --primary-weak: #18263A; --on-primary: #0D1116;
  --red: #F2877F; --red-weak: #3A1B19; --green: #6FD39A; --green-weak: #13301F; --amber: #F0B95A; --amber-weak: #33270F; --neutral-weak: #232B36;
  --side: #0A0F15; --side-2: #0A0F15;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
@media (prefers-contrast: more) { :root { --muted: var(--ink-2); --line: var(--line-2) } }
*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--page); color: var(--ink); font: 14.5px/1.55 var(--body); -webkit-font-smoothing: antialiased }
a { color: var(--primary); text-decoration: none } a:hover { text-decoration: underline; text-underline-offset: 2px }
h1, h2, h3, h4 { margin: 0; line-height: 1.2 }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px }
code, .mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em }
code { background: var(--neutral-weak); padding: 1px 6px; border-radius: 4px }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }

/* listras da bandeira paulista: 13 faixas preto/branco c/ o canto vermelho */
.stripes { height: 26px; flex: none; background: radial-gradient(circle at 15% 50%, #F2F2F2 0 5.5px, transparent 6px), linear-gradient(90deg, #B3261E 0 30%, transparent 30%), repeating-linear-gradient(180deg, #141414 0 2px, #F2F2F2 2px 4px) }

/* ---------- estrutura ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh }
.side { background: var(--side); color: var(--side-text); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.05) }
.brand { display: flex; gap: 12px; align-items: center; padding: 18px 18px 16px; color: #fff }
.brand:hover { text-decoration: none }
.seal { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #26394F; box-shadow: inset 0 0 0 1.5px var(--gold), inset 0 0 0 4px #26394F, inset 0 0 0 5px rgba(201,162,58,.45); color: var(--gold); flex: none }
.seal .icon { width: 18px; height: 18px }
.brand b { display: block; font: 600 19px/1 var(--display); letter-spacing: .06em }
.brand small { display: block; color: var(--side-muted); font-size: 11.5px; margin-top: 3px }
.nav { padding: 6px 10px 12px; overflow-y: auto; flex: 1 }
.nav .group { font: 600 11px/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--side-muted); padding: 18px 12px 8px }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 6px; color: var(--side-text); font-weight: 500; position: relative; min-height: 36px }
.nav a .icon { opacity: .8 }
.nav a:hover { background: var(--side-hover); color: #fff; text-decoration: none }
.nav a.on { background: rgba(255,255,255,.09); color: #fff }
.nav a.on .icon { opacity: 1; color: var(--gold) }
.nav a.on::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold) }
.nav .count { margin-left: auto; background: var(--gold); color: #1F1704; font: 700 11px/18px var(--body); border-radius: 4px; padding: 0 6px }
.side .me { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin: 0 10px 10px; border-radius: 8px; background: rgba(255,255,255,.04) }
.side .me .who { flex: 1; min-width: 0; color: inherit } .side .me .who:hover { text-decoration: none } .side .me .who:hover b { text-decoration: underline }
.side .me .who b { color: #fff; display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.side .me .who small { font-size: 11.5px; color: var(--side-muted) }
.side .me .out { color: var(--side-text); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px } .side .me .out:hover { background: rgba(255,255,255,.08); color: #fff }
/* indicador de atualização ao vivo */
.live { display: flex; align-items: center; gap: 8px; margin: 0 10px 8px; padding: 0 14px; font: 600 11px/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--side-muted) }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--side-muted) }
.live[data-state="on"] .dot { background: #3FB873; box-shadow: 0 0 0 3px rgba(63, 184, 115, .2) }
.live .on, .live[data-state="on"] .off { display: none }
.live[data-state="on"] .on { display: inline }

/* aparência: controle segmentado só c/ ícones (rótulo p/ leitor de tela e dica no hover) */
.appearance { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 10px 6px; padding: 0 4px 0 14px }
.appearance > span { font: 600 11px/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--side-muted) }
.seg { display: inline-grid; grid-template-columns: repeat(3, 32px); gap: 2px; padding: 2px; border-radius: 8px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07) }
.seg button { appearance: none; border: 0; margin: 0; padding: 0; width: 32px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: transparent; color: var(--side-muted); cursor: pointer }
.seg button .icon { width: 15px; height: 15px }
.seg button:hover { color: #fff; background: rgba(255, 255, 255, .06) }
.seg button[aria-checked="true"] { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .35) }
.side :focus-visible { outline-color: var(--gold) }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #2E4156; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; object-fit: cover }
.main { min-width: 0; display: flex; flex-direction: column }
.topbar { display: none }
.content { padding: 30px 36px 72px; max-width: 1320px; width: 100%; margin: 0 auto }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px }
.page-head h1 { font: 600 30px/1.1 var(--display); letter-spacing: .005em }
.page-head .sub { color: var(--muted); margin-top: 6px; max-width: 70ch }
.crumbs { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px } .crumbs a { color: var(--muted) }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center }

/* ---------- blocos ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow) }
.card + .card, .stack > * + * { margin-top: 18px }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); min-height: 52px }
.card-head h2 { font-size: 14.5px; font-weight: 650; display: flex; align-items: center; gap: 10px }
.card-head .hint { color: var(--muted); font-size: 12.5px }
.card-body { padding: 16px 18px }
.card-body.flush { padding: 0 }
.grid { display: grid; gap: 18px } .grid > .card + .card { margin-top: 0 }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)) } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) }

/* faixa de números: uma régua só, dividida (não cartõezinhos soltos) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden }
.stat { padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); border-right: 1px solid var(--line); position: relative }
.stat:last-child { border-right: 0 }
a.stat:hover { background: var(--card-2); text-decoration: none }
.stat .v { font: 600 34px/1.05 var(--display); font-variant-numeric: tabular-nums; margin-top: 4px }
.stat .l { font: 600 11.5px/1.3 var(--body); text-transform: uppercase; letter-spacing: .07em; color: var(--muted) }
.stat .v.text { font-size: 22px; line-height: 1.5; white-space: nowrap }
.stat .note { font-size: 12.5px; color: var(--muted) }
.stat.success .v { color: var(--green) } .stat.warning .v { color: var(--amber) } .stat.danger .v { color: var(--red) } .stat.info .v { color: var(--primary) }

/* ---------- tabela ---------- */
.table-wrap { overflow-x: auto }
table { width: 100%; border-collapse: collapse }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle }
th { font: 600 11px/1.2 var(--body); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--card-2); white-space: nowrap }
tr:last-child td { border-bottom: 0 }
tbody tr:hover td { background: var(--card-2) }
td .sub { color: var(--muted); font-size: 12.5px }
td.num { font-family: var(--mono); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap }
td.right, th.right { text-align: right }

/* ---------- etiquetas (marcação, não pílula) ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; border-radius: 4px; font: 650 11.5px/1.2 var(--body); letter-spacing: .02em; background: var(--neutral-weak); color: var(--ink-2); white-space: nowrap }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 1.5px; background: currentColor }
.badge.plain::before { display: none }
.badge.success { background: var(--green-weak); color: var(--green) } .badge.warning { background: var(--amber-weak); color: var(--amber) }
.badge.danger { background: var(--red-weak); color: var(--red) } .badge.info, .badge.primary { background: var(--primary-weak); color: var(--primary) }
.muted { color: var(--muted) } .small { font-size: 12.5px } .nowrap { white-space: nowrap } .strong { font-weight: 650 }

/* ---------- botões e formulários ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: 600 13.5px/1 var(--body); cursor: pointer; white-space: nowrap; text-decoration: none }
.btn:hover { background: var(--card-2); border-color: var(--muted); text-decoration: none }
.btn .icon { width: 16px; height: 16px }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary) } .btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover) }
.btn.success { background: var(--green); border-color: var(--green); color: var(--card) } .btn.danger { background: var(--red); border-color: var(--red); color: var(--card) }
.btn.success:hover, .btn.danger:hover { filter: brightness(1.08) }
.btn.ghost { background: transparent; border-color: transparent } .btn.ghost:hover { background: var(--neutral-weak) }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: 12.5px }
.btn[disabled], .btn.busy { opacity: .6; pointer-events: none }
.btn.busy::after { content: ""; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite }
@keyframes spin { to { transform: rotate(360deg) } }
@media (prefers-reduced-motion: reduce) { .btn.busy::after { animation-duration: 2.5s } .side { transition: none !important } }
form.inline { display: inline-flex; vertical-align: middle }
.form { display: grid; gap: 14px }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px }
.form-grid .full { grid-column: 1 / -1 }
.field { display: grid; gap: 6px; min-width: 0 }
.field > span { font-weight: 600; font-size: 13px; color: var(--ink-2) }
.field > span em { color: var(--red); font-style: normal }
.field small { color: var(--muted); font-size: 12px }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 8px 11px; min-height: 38px }
textarea { min-height: 110px; resize: vertical; line-height: 1.5 }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-weak) }
select[multiple] { min-height: 120px }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--card-2) }
.filters input, .filters select { width: auto; min-width: 180px; flex: 1 }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px }
.check { display: flex; align-items: center; gap: 9px; font-weight: 500 } .check input { width: 16px; height: 16px; min-height: 0; accent-color: var(--primary) }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 14px; max-height: 340px; overflow-y: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card-2) }
.checks .check { padding: 5px 0; font-size: 13.5px }

/* ---------- avisos ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; border: 1px solid transparent; border-left-width: 4px; font-weight: 500 }
.alert .icon { margin-top: 1px }
.alert.success { background: var(--green-weak); color: var(--green); border-color: var(--green) }
.alert.error { background: var(--red-weak); color: var(--red); border-color: var(--red) }
.alert.info { background: var(--primary-weak); color: var(--primary); border-color: var(--primary) }
.empty { text-align: center; color: var(--muted); padding: 36px 16px }
.empty .icon { width: 28px; height: 28px; opacity: .5; margin-bottom: 8px }

/* ---------- listas ---------- */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 0 }
.kv dt { color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding-top: 2px } .kv dd { margin: 0; font-weight: 500; min-width: 0 }
.list { list-style: none; margin: 0; padding: 0 }
.list li { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); min-height: 44px } .list li:last-child { border-bottom: 0 }
.list li .grow { flex: 1; min-width: 0 }
.timeline { list-style: none; margin: 0; padding: 2px 0 0 }
.timeline li { position: relative; padding: 0 0 16px 22px } .timeline li:last-child { padding-bottom: 0 }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 9px; height: 9px; border-radius: 2px; background: var(--card); box-shadow: inset 0 0 0 2px var(--primary) }
.timeline li::after { content: ""; position: absolute; left: 7px; top: 19px; bottom: 2px; width: 1px; background: var(--line) }
.timeline li:last-child::after { display: none }
.timeline time { display: block; color: var(--muted); font: 500 12px/1.4 var(--mono) }
.chips { display: flex; flex-wrap: wrap; gap: 6px }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; background: var(--card-2); border: 1px solid var(--line); border-radius: 5px; font-size: 13px; font-weight: 500; color: var(--ink) }
a.chip:hover { border-color: var(--line-2); text-decoration: none }
.chip form.inline { align-items: center; align-self: stretch }
.chip-x { appearance: none; border: 0; background: transparent; color: var(--muted); width: 22px; height: 22px; margin: 0 -4px 0 2px; border-radius: 4px; display: grid; place-items: center; cursor: pointer }
.chip-x .icon { width: 13px; height: 13px } .chip-x:hover { background: var(--red-weak); color: var(--red) }
.perms li { align-items: flex-start; padding: 16px 18px }
.perm-add { display: flex; gap: 6px; flex: none; width: 340px } .perm-add select { min-height: 30px; padding: 4px 8px }
@media (max-width: 860px) { .perms li { flex-direction: column } .perm-add { width: 100% } }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap }
.tabs a:hover { color: var(--ink); text-decoration: none } .tabs a.on { color: var(--ink); border-bottom-color: var(--primary) }
.section-title { font: 600 11.5px/1 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0 }

/* ---------- identidade funcional (ficha) ---------- */
.idcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 18px }
.idcard .top { display: flex; justify-content: space-between; align-items: center; padding: 10px 22px; background: var(--side); color: var(--side-text); font: 600 11px/1 var(--body); text-transform: uppercase; letter-spacing: .12em }
.idcard .top b { color: #fff; font-weight: 600 }
.idcard .body { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 22px }
.idcard .photo { width: 92px; height: 92px; border-radius: 8px; object-fit: cover; background: #2E4156; color: #fff; display: grid; place-items: center; font: 600 32px/1 var(--display); box-shadow: 0 0 0 1px var(--line) }
.idcard .rank { font: 600 13px/1 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted) }
.idcard h1 { font: 600 34px/1.05 var(--display); margin: 6px 0 4px }
.idcard .fields { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 4px 28px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--card-2) }
.idcard .fields dt { font: 600 10.5px/1.3 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted) }
.idcard .fields dd { margin: 0 0 6px; font-weight: 600 }
.idcard .fields > div { min-width: 0 }
.idcard .tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 22px; border-top: 1px solid var(--line) }

/* ---------- ocorrência (COPOM): borda da prioridade + nº grande ---------- */
.incident { border-left: 4px solid var(--line-2) }
.incident.alta { border-left-color: var(--red) } .incident.media { border-left-color: var(--amber) } .incident.baixa { border-left-color: var(--green) }
.incident .card-head h2 { font-size: 15px }
.incident .no { font: 600 13px/1 var(--mono); color: var(--muted); letter-spacing: .02em }

/* ---------- documento (boletim/portaria) ---------- */
.doc { font-family: "Georgia", "Times New Roman", serif; font-size: 15.5px; line-height: 1.7; padding: 36px 48px; max-width: 900px; margin: 0 auto }
.doc h2, .doc h3, .doc h4 { font-family: inherit; margin: 20px 0 8px } .doc h2 { font-size: 21px; text-align: center } .doc h3 { font-size: 17px } .doc p { margin: 2px 0 }
.doc blockquote { margin: 10px 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--line-2) }
.doc small { color: var(--muted) } .doc .quote-title { display: block; text-align: center; font-size: 16px; margin-bottom: 6px }
.mention { color: var(--primary); background: var(--primary-weak); padding: 0 4px; border-radius: 3px; font-weight: 600 }
.preview { white-space: pre-wrap; font-family: "Georgia", serif; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; max-height: 260px; overflow: auto; font-size: 14.5px; line-height: 1.6 }

/* ---------- janela (dialog) ---------- */
dialog { border: 0; border-radius: 12px; padding: 0; width: min(560px, calc(100vw - 32px)); background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden }
dialog.wide { width: min(780px, calc(100vw - 32px)) }
dialog::backdrop { background: rgba(8, 12, 18, .55) }
dialog .card-head { padding: 16px 20px } dialog .card-head h2 { font: 600 20px/1.1 var(--display) }
dialog .card-body { padding: 18px 20px 20px; max-height: 75vh; overflow-y: auto }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--side) }
.login .box { width: min(420px, 100%); background: var(--card); border-radius: 12px; overflow: hidden; text-align: center; box-shadow: var(--shadow-lg) }
.login .inner { padding: 34px 32px 32px }
.login .seal { width: 64px; height: 64px; margin: 0 auto 18px }
.login .seal .icon { width: 30px; height: 30px }
.login h1 { font: 600 26px/1.1 var(--display) } .login p { color: var(--muted); margin: 10px 0 24px }
.btn.discord { background: #5865F2; border-color: #5865F2; color: #fff; min-height: 44px; width: 100%; font-size: 14.5px }
.btn.discord:hover { background: #4752C4 }

/* ---------- celular ---------- */
@media (max-width: 1000px) { .g2, .g3, .g-main { grid-template-columns: minmax(0, 1fr) } .idcard .body { grid-template-columns: auto 1fr } .idcard .fields { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr) }
  .side { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 40; transform: translateX(-100%); transition: transform .2s }
  .side.open { transform: none; box-shadow: var(--shadow-lg) }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--side); color: #fff; position: sticky; top: 0; z-index: 30; font: 600 17px/1 var(--display); letter-spacing: .06em }
  .topbar button { background: transparent; border: 0; color: #fff; width: 44px; height: 44px; cursor: pointer; display: grid; place-items: center }
  .content { padding: 20px 16px 48px }
  .page-head h1 { font-size: 26px }
  .form-grid { grid-template-columns: minmax(0, 1fr) }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px } .kv dd { margin-bottom: 10px }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)) } .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 16px } .stat:nth-child(odd) { border-right: 1px solid var(--line) } .stat .v { font-size: 28px }
  .doc { padding: 20px }
  th, td { padding: 10px 12px }
  .idcard .body { gap: 14px; padding: 16px } .idcard .photo { width: 64px; height: 64px; font-size: 24px } .idcard h1 { font-size: 26px }
}
