/* SIGCAÇAMBA — refinamento GovTech transversal.
   Esta é a camada final de composição: consome os tokens existentes e resolve
   inconsistências legadas sem redefinir regras de negócio ou markup funcional. */
:root {
  --gov-bg: #f4f7f5;
  --gov-surface: #fff;
  --gov-surface-muted: #f8faf9;
  --gov-text: #20302a;
  --gov-muted: #66756f;
  --gov-line: #dfe7e3;
  --gov-primary: #236b3a;
  --gov-primary-strong: #174d2a;
  --gov-info: #2167a5;
  --gov-warning: #a96208;
  --gov-danger: #b33a3a;
  --gov-radius-sm: 8px;
  --gov-radius: 12px;
  --gov-radius-lg: 16px;
  --gov-shadow: 0 1px 2px rgba(24, 49, 37, .05), 0 8px 24px rgba(24, 49, 37, .05);
  --gov-focus: 0 0 0 3px rgba(35, 107, 58, .2);
  --gov-space-1: .25rem;
  --gov-space-2: .5rem;
  --gov-space-3: .75rem;
  --gov-space-4: 1rem;
  --gov-space-5: 1.5rem;
  --gov-space-6: 2rem;
}

html { color-scheme: light; }
body { color: var(--gov-text); background: var(--gov-bg); }
.sig-content > main { min-width: 0; }

/* Shell institucional — mudança visual transversal e deliberadamente reconhecível. */
.sig-app .sig-sidebar { background: linear-gradient(180deg, #123d28 0%, #0d2f20 100%); box-shadow: 8px 0 28px rgba(13,47,32,.12); }
.sig-app .sig-sidebar__brand { min-height: 76px; padding-inline: 20px; border-bottom-color: rgba(255,255,255,.12); }
.sig-app .sig-sidebar__brand-tile { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); box-shadow: inset 0 1px rgba(255,255,255,.12); }
.sig-app .sig-sidebar .sig-nav__item.is-active { color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 3px 0 #7dd397; }
.sig-app .sig-topbar { height: 72px; padding-inline: 28px; border-bottom: 0; background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--gov-line), 0 8px 24px rgba(24,49,37,.035); }
.sig-app .sig-topbar__title { color: var(--gov-primary-strong); font-size: 18px; letter-spacing: -.015em; }
.sig-app .sig-topbar__crumb { color: #74847d; letter-spacing: .025em; }
.sig-app .sig-topbar__search input { border-color: #d7e2dc; border-radius: 12px; background: #f5f8f6; }
.sig-app .sig-iconbtn { border-color: #dce6e1; border-radius: 11px; }
.gov-workspace-bar { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 28px; border-bottom: 1px solid #dce6e1; background: #edf5f0; }
.gov-workspace-bar__identity, .gov-workspace-bar__meta, .gov-workspace-bar__secure { display: flex; align-items: center; }
.gov-workspace-bar__identity { min-width: 0; gap: .7rem; }
.gov-workspace-bar__identity > span:last-child { min-width: 0; }
.gov-workspace-bar__identity strong, .gov-workspace-bar__identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gov-workspace-bar__identity strong { color: #183d2b; font-size: .82rem; }
.gov-workspace-bar__identity small { margin-top: .08rem; color: #6a7d73; font-size: .7rem; }
.gov-workspace-bar__seal { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: #fff; background: var(--gov-primary); font-size: 1.05rem; }
.gov-workspace-bar__meta { gap: 1rem; color: #52685d; font-size: .72rem; font-weight: 700; }
.gov-workspace-bar__secure { gap: .35rem; }
.gov-workspace-bar__secure i { color: var(--gov-primary); font-size: 1rem; }
.gov-workspace-bar__product { padding-left: 1rem; border-left: 1px solid #cad9d1; letter-spacing: .035em; }
.gov-workspace-bar__product b { margin-left: .25rem; padding: .18rem .42rem; border-radius: 5px; color: #fff; background: var(--gov-primary); font-size: .6rem; letter-spacing: .04em; text-transform: uppercase; }
.sig-app .sig-content { padding: 28px; background: radial-gradient(circle at 100% 0, rgba(35,107,58,.055), transparent 28rem), var(--gov-bg); }
.sig-app .sig-kpi, .sig-app .sig-indicator { border: 1px solid #dfe8e3; box-shadow: 0 8px 24px rgba(24,49,37,.055); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.sig-app a.sig-kpi:hover, .sig-app a.sig-indicator:hover { border-color: #b8d2c3; box-shadow: 0 14px 32px rgba(24,49,37,.1); transform: translateY(-2px); }
.sig-app .sig-kpi__icon, .sig-app .sig-indicator__tip { width: 42px; height: 42px; border-radius: 12px; }

/* Dashboard executivo */
.gov-dashboard-hero { position: relative; display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.75fr); gap: 1.5rem; margin-bottom: 1rem; padding: clamp(1.4rem,2.5vw,2.15rem); overflow: hidden; border: 1px solid #1e6740; border-radius: 18px; color: #fff; background: linear-gradient(125deg,#123d28 0%,#1b5b38 62%,#287449 100%); box-shadow: 0 16px 38px rgba(18,61,40,.16); }
.gov-dashboard-hero::after { position: absolute; right: -70px; bottom: -110px; width: 280px; height: 280px; border: 45px solid rgba(255,255,255,.045); border-radius: 50%; content: ""; }
.gov-dashboard-hero__copy { position: relative; z-index: 1; align-self: center; }
.gov-dashboard-hero__eyebrow { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .7rem; color: #bce5ca; font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.gov-dashboard-hero h2 { margin: 0; color: #fff; font-size: clamp(1.55rem,2.8vw,2.35rem); letter-spacing: -.035em; }
.gov-dashboard-hero p { max-width: 65ch; margin: .65rem 0 0; color: #d5eadc; line-height: 1.55; }
.gov-dashboard-hero__summary { position: relative; z-index: 1; display: grid; grid-template-columns: 46px minmax(0,1fr); align-items: center; gap: .75rem; padding: 1rem; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); }
.gov-dashboard-hero__summary-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 12px; color: #6f4300; background: #ffe7ad; font-size: 1.35rem; }
.gov-dashboard-hero__summary small, .gov-dashboard-hero__summary strong { display: block; }
.gov-dashboard-hero__summary small { color: #d5eadc; font-size: .7rem; }
.gov-dashboard-hero__summary strong { margin-top: .1rem; color: #fff; font-size: 1.65rem; line-height: 1; }
.gov-dashboard-hero__summary a { grid-column: 1 / -1; display: flex; min-height: 38px; align-items: center; justify-content: space-between; padding: .45rem .7rem; border-radius: 8px; color: #fff; background: rgba(0,0,0,.16); font-size: .75rem; font-weight: 750; text-decoration: none; }
.gov-dashboard-hero__summary a:hover { background: rgba(0,0,0,.25); }
.dashboard-executivo > .sig-toolbar { margin-bottom: 1.25rem; padding: .55rem; border: 1px solid var(--gov-line); border-radius: 12px; background: #fff; }
.dashboard-executivo .sig-panel { border: 1px solid var(--gov-line); border-radius: 16px; box-shadow: 0 8px 24px rgba(24,49,37,.045); }
.dashboard-executivo .sig-panel__head { padding-bottom: .85rem; border-bottom: 1px solid #edf1ef; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--gov-primary) !important;
  outline-offset: 2px;
  box-shadow: var(--gov-focus);
}

/* Cabeçalhos e ações */
.admin .page-header {
  padding: var(--gov-space-5);
  border: 1px solid var(--gov-line);
  border-radius: var(--gov-radius-lg);
  background: var(--gov-surface);
  box-shadow: none;
}
.admin .page-title { color: var(--gov-text); font-size: clamp(1.45rem, 2.2vw, 2rem); letter-spacing: -.025em; }
.admin .subtitle { max-width: 70ch; color: var(--gov-muted); line-height: 1.55; }
.admin .page-header > :last-child { flex-shrink: 0; }

/* Superfícies, filtros e tabelas */
.admin :where(.page-panel, .card-form, .proto-card) {
  border: 1px solid var(--gov-line);
  border-radius: var(--gov-radius);
  background: var(--gov-surface);
  box-shadow: none;
}
.admin .filter {
  border: 1px solid var(--gov-line);
  border-radius: var(--gov-radius);
  background: var(--gov-surface-muted);
  box-shadow: none;
}
.admin .filter-title::after { content: "Refine os resultados"; margin-left: .65rem; color: var(--gov-muted); font-size: .75rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.gov-filter-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: -.2rem 0 .9rem; padding-bottom: .75rem; border-bottom: 1px solid var(--gov-line); }
.gov-filter-summary > span { display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; column-gap: .45rem; }
.gov-filter-summary > span > i { grid-row: 1 / 3; color: var(--gov-primary); font-size: 1.15rem; }
.gov-filter-summary strong { color: var(--gov-text); font-size: .82rem; }
.gov-filter-summary small { color: var(--gov-muted); font-size: .68rem; }
.gov-filter-summary small.is-active { color: var(--gov-primary); font-weight: 750; }
.gov-filter-summary .btn { min-height: 36px; padding: .35rem .65rem; font-size: .72rem; }
.gov-filter-summary .btn i { transition: transform .16s ease; }
.admin .table-responsive { scrollbar-color: #b7c5bf transparent; scrollbar-width: thin; }
.admin table { margin: 0; color: var(--gov-text); }
.admin table thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  border-bottom: 1px solid var(--gov-line) !important;
  background: #f3f7f5 !important;
  color: #52635c;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.admin table tbody td { border-color: #edf1ef; vertical-align: middle; }
.admin table tbody tr { transition: background-color .14s ease; }
.admin table tbody tr:hover { background: #f8fbf9; }
.admin td.actions { white-space: nowrap; }
.admin td.actions a { display: inline-grid; width: 38px; height: 38px; place-items: center; border-radius: var(--gov-radius-sm); }
.admin td.actions a:hover { background: #eaf2ed; text-decoration: none; }
.gov-table-toolbar { display: flex; align-items: center; gap: .65rem; margin: 0 0 .65rem; padding: .65rem; border: 1px solid var(--gov-line); border-radius: var(--gov-radius); background: var(--gov-surface); }
.gov-table-search { display: flex; min-width: min(320px, 100%); align-items: center; gap: .5rem; padding: 0 .75rem; border: 1px solid var(--gov-line); border-radius: var(--gov-radius-sm); background: var(--gov-surface-muted); }
.gov-table-search:focus-within { border-color: var(--gov-primary); box-shadow: var(--gov-focus); }
.gov-table-search input { width: 100%; height: 40px; padding: 0; border: 0; outline: 0; background: transparent; }
.gov-table-count { margin-right: auto; color: var(--gov-muted); font-size: .8rem; white-space: nowrap; }
.gov-table-selected { padding: .3rem .55rem; border-radius: 999px; color: var(--gov-primary); background: #edf8f0; font-size: .72rem; font-weight: 750; white-space: nowrap; }
.gov-table-select { width: 46px; min-width: 46px; padding-inline: .65rem !important; text-align: center; }
.gov-table-select label { display: inline-grid; margin: 0; place-items: center; }
.admin table tbody tr.gov-row-selected { background: #edf8f0; }
.gov-column-picker { position: relative; }
.gov-column-picker summary { display: inline-flex; min-height: 40px; cursor: pointer; list-style: none; align-items: center; gap: .4rem; padding: .5rem .75rem; border: 1px solid var(--gov-line); border-radius: var(--gov-radius-sm); font-weight: 650; }
.gov-column-picker summary::-webkit-details-marker { display: none; }
.gov-column-picker > div { position: absolute; z-index: 20; top: calc(100% + .4rem); right: 0; display: grid; min-width: 220px; gap: .25rem; padding: .6rem; border: 1px solid var(--gov-line); border-radius: var(--gov-radius-sm); background: #fff; box-shadow: var(--gov-shadow); }
.gov-column-option { display: grid; grid-template-columns: minmax(0,1fr) 110px; align-items: center; gap: .5rem; padding: .3rem; border-radius: 6px; }
.gov-column-option:hover { background: var(--gov-surface-muted); }
.gov-column-option > label:first-child { display: flex; min-width: 0; cursor: pointer; align-items: center; gap: .4rem; margin: 0; font-size: .8rem; }
.gov-column-filter { min-height: 34px !important; padding: .35rem .5rem !important; font-size: .75rem !important; }
.gov-table-export { min-height: 40px; white-space: nowrap; }
.gov-table-filter-empty { display: grid; min-height: 190px; justify-items: center; align-content: center; gap: .55rem; margin-bottom: 1rem; padding: 1.5rem; border: 1px dashed var(--gov-line); border-radius: var(--gov-radius); color: var(--gov-muted); background: var(--gov-surface-muted); text-align: center; }
.gov-table-filter-empty[hidden] { display: none; }
.gov-table-filter-empty > i { color: var(--gov-primary); font-size: 1.6rem; }
.gov-column-hidden { display: none !important; }
.admin table thead th.gov-sortable { cursor: pointer; padding-right: 1.5rem; }
.admin table thead th.gov-sortable::after { margin-left: .4rem; color: #8b9892; content: "↕"; }
.admin table thead th.gov-sortable[aria-sort="ascending"]::after { color: var(--gov-primary); content: "↑"; }
.admin table thead th.gov-sortable[aria-sort="descending"]::after { color: var(--gov-primary); content: "↓"; }
.admin table thead th.gov-resizable { position: relative; min-width: 92px; }
.gov-column-resize { position: absolute; z-index: 2; top: 0; right: -5px; width: 11px; height: 100%; padding: 0; cursor: col-resize; touch-action: none; border: 0; background: transparent; }
.gov-column-resize::after { position: absolute; top: 20%; bottom: 20%; left: 5px; width: 1px; background: transparent; content: ""; }
.gov-column-resize:hover::after, .gov-column-resize:focus-visible::after { background: var(--gov-primary); }
.gov-column-resize:focus-visible { outline: 2px solid var(--gov-primary); outline-offset: -2px; }
.admin form[aria-busy="true"] { cursor: progress; opacity: .82; }
.gov-field-counter, .gov-file-feedback { display: block; margin-top: .35rem; color: var(--gov-muted); font-size: .72rem; line-height: 1.4; }
.gov-field-counter { text-align: right; }
.gov-validation-summary { margin-bottom: 1rem; }
:where(.admin, .public-shell) input[type="file"] { padding: .45rem; border: 1px dashed #aabbb2; background: var(--gov-surface-muted); }
:where(.admin, .public-shell) input[type="file"]::file-selector-button { min-height: 36px; margin-right: .75rem; padding: .4rem .75rem; border: 0; border-radius: 7px; color: #fff; background: var(--gov-primary); font-weight: 700; }
.gov-section-nav { position: sticky; z-index: 8; top: calc(var(--sig-topbar-h, 62px) + .5rem); display: flex; gap: .35rem; margin: -.25rem 0 1rem; padding: .45rem; overflow-x: auto; border: 1px solid var(--gov-line); border-radius: var(--gov-radius); background: rgba(255,255,255,.96); box-shadow: var(--gov-shadow); scrollbar-width: thin; }
.gov-section-nav a { flex: 0 0 auto; padding: .45rem .7rem; border-radius: 7px; color: var(--gov-muted); font-size: .78rem; font-weight: 700; text-decoration: none; }
.gov-section-nav a:hover, .gov-section-nav a[aria-current="location"] { color: var(--gov-primary); background: #edf8f0; }
:where(main > section[id], main > .card-form[id]) { scroll-margin-top: calc(var(--sig-topbar-h, 62px) + 4.5rem); }

/* Status único, compatível com classes legadas */
.admin :where(.tag-status, .proto-status, .status-badge, .registration-status) {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: .35rem;
  padding: .2rem .65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 750;
  line-height: 1.2;
}
.admin :where(.status-regular, .status-disponivel, .proto-status--success, .status-badge--success, .registration-status--active) { border-color: #b9dec5; color: #1f6b38; background: #edf8f0; }
.admin :where(.status-irregular, .status-vencido, .status-cancelado) { border-color: #efc5c5; color: #a32f2f; background: #fff2f2; }
.admin :where(.status-em-uso, .status-pendente, .status-warning, .status-badge--warning, .registration-status--pending) { border-color: #efd59f; color: #8a5505; background: #fff8e8; }
.admin :where(.status-inativo, .status-arquivado) { border-color: #d6ddda; color: #64716c; background: #f3f5f4; }

/* Estados úteis */
.admin .empty-state { min-height: 240px; border-style: dashed; background: var(--gov-surface-muted); }
.admin .empty-state > i:first-child { color: var(--gov-primary); }
.gov-skeleton { position: relative; overflow: hidden; border-radius: var(--gov-radius-sm); background: #e7ece9; }
.gov-skeleton::after { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); content: ""; transform: translateX(-100%); animation: gov-skeleton 1.4s infinite; }
@keyframes gov-skeleton { to { transform: translateX(100%); } }

/* Detalhes */
.gov-detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--gov-space-5); margin-bottom: var(--gov-space-5); padding: var(--gov-space-5); border: 1px solid var(--gov-line); border-radius: var(--gov-radius-lg); background: var(--gov-surface); }
.gov-detail-header__eyebrow { margin: 0 0 .35rem; color: var(--gov-muted); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.gov-detail-header h1 { margin: 0; font-size: clamp(1.55rem, 2.5vw, 2.15rem); letter-spacing: -.03em; }
.gov-detail-header__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.gov-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--gov-line); border-radius: var(--gov-radius); background: var(--gov-line); }
.gov-detail-field { min-width: 0; padding: 1.15rem 1.25rem; background: var(--gov-surface); }
.gov-detail-field--wide { grid-column: 1 / -1; }
.gov-detail-field dt { margin-bottom: .3rem; color: var(--gov-muted); font-size: .7rem; font-weight: 750; letter-spacing: .065em; text-transform: uppercase; }
.gov-detail-field dd { margin: 0; overflow-wrap: anywhere; font-weight: 650; }

/* Auditoria */
.gov-timeline { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.gov-timeline::before { position: absolute; top: 18px; bottom: 18px; left: 19px; width: 2px; background: var(--gov-line); content: ""; }
.gov-timeline__item { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1rem; padding-bottom: 1.25rem; }
.gov-timeline__marker { z-index: 1; display: grid; width: 40px; height: 40px; border: 1px solid #b9dec5; border-radius: 50%; color: var(--gov-primary); background: #edf8f0; place-items: center; }
.gov-timeline__item article { min-width: 0; padding: 1rem; border: 1px solid var(--gov-line); border-radius: var(--gov-radius); background: var(--gov-surface-muted); }
.gov-timeline__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.gov-timeline__head time { color: var(--gov-muted); font-size: .75rem; white-space: nowrap; }
.gov-timeline details summary { cursor: pointer; color: var(--gov-primary); font-size: .78rem; font-weight: 700; }
.gov-timeline__metadata { display: grid; gap: .6rem; margin: .8rem 0 0; }
.gov-timeline__metadata div { min-width: 0; }
.gov-timeline__metadata dt { color: var(--gov-muted); font-size: .68rem; font-weight: 750; text-transform: uppercase; }
.gov-timeline__metadata dd { margin: .15rem 0 0; overflow-wrap: anywhere; }
.gov-audit-table > summary { cursor: pointer; color: var(--gov-primary); font-size: .82rem; font-weight: 750; }

/* GIS */
.geo-prototype { align-items: stretch; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); }
.geo-layers { padding: 1.15rem; }
.geo-layers h2 { margin-bottom: 1rem; font-size: 1rem; }
.geo-search { margin-bottom: 1rem; }
.geo-search input { width: 100%; }
.geo-dot--danger { background: #c0392b; }
.geo-dot--muted { background: #747f7b; }
.geo-map { position: relative; min-height: 620px; }
.geo-map .map-canvas { min-height: 620px; }
.geo-map-tools { position: absolute; z-index: 600; top: .75rem; right: .75rem; display: flex; gap: .4rem; }
.geo-map-tool { display: inline-grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--gov-line); border-radius: 10px; color: var(--gov-text); background: #fff; box-shadow: var(--gov-shadow); }
.geo-drawer { position: absolute; z-index: 650; inset: 0 0 0 auto; width: min(360px, 90%); padding: 1.25rem; border-left: 1px solid var(--gov-line); background: rgba(255,255,255,.98); box-shadow: -12px 0 30px rgba(24,49,37,.12); transform: translateX(102%); transition: transform .2s ease; }
.geo-drawer.is-open { transform: translateX(0); }
.geo-drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--gov-line); }
.geo-drawer__head h2 { margin: 0; font-size: 1.15rem; }
.geo-drawer__close { display: inline-grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 9px; background: #edf2ef; }
.geo-drawer dl { display: grid; gap: 1rem; margin: 1.25rem 0; }
.geo-drawer dt { color: var(--gov-muted); font-size: .7rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.geo-drawer dd { margin: .2rem 0 0; overflow-wrap: anywhere; font-weight: 650; }
.gov-map-cluster-wrap { border: 0; background: transparent; }
.gov-map-cluster { display: grid; width: 44px; height: 44px; border: 3px solid rgba(255,255,255,.92); border-radius: 50%; color: #fff; background: var(--gov-primary); box-shadow: 0 4px 16px rgba(23,77,42,.3); font-size: .78rem; font-weight: 800; place-items: center; }
.gov-map-cluster::after { position: absolute; inset: -6px; border: 2px solid rgba(35,107,58,.2); border-radius: 50%; content: ""; }

/* Campo: tablet é a superfície principal, sem moldura decorativa excessiva. */
.field-prototype { background: #eaf0ed; }
.field-phone { max-width: 440px; box-shadow: 0 18px 50px rgba(19,43,32,.15); }
.field-feature { box-shadow: none; }
.gov-connection { display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; padding: .75rem 1rem; border: 1px solid #b9dec5; border-radius: var(--gov-radius); color: #1f6b38; background: #edf8f0; font-size: .85rem; font-weight: 700; }
.gov-connection[data-state="offline"] { border-color: #efd59f; color: #805109; background: #fff8e8; }

@media (max-width: 991.98px) {
  .gov-dashboard-hero { grid-template-columns: 1fr; }
  .gov-dashboard-hero__summary { grid-template-columns: 46px minmax(0,1fr) auto; }
  .gov-dashboard-hero__summary a { grid-column: auto; min-width: 130px; }
  .sig-app .sig-topbar { height: 64px; padding-inline: 14px; }
  .gov-workspace-bar { padding-inline: 16px; }
  .gov-workspace-bar__product { display: none; }
  .admin .page-header { padding: 1.15rem; }
  .geo-prototype { grid-template-columns: 1fr; }
  .geo-layers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1rem; }
  .geo-layers h2, .geo-search, .geo-layers .outline-btn { grid-column: 1 / -1; }
  .geo-map, .geo-map .map-canvas { min-height: 520px; }
  .field-prototype { grid-template-columns: 1fr; gap: 1.5rem; }
  .field-intro { max-width: 680px; margin: auto; }
  .field-phone { height: min(760px, 78vh); margin: auto; border-radius: 28px; }
}

@media (max-width: 767.98px) {
  .gov-filter-summary { margin-bottom: .65rem; }
  .gov-filter-summary .btn span { display: none; }
  .gov-filter-summary .btn { width: 40px; padding: 0; }
  .gov-dashboard-hero { margin-inline: -2px; padding: 1.25rem; border-radius: 14px; }
  .gov-dashboard-hero__summary { grid-template-columns: 42px minmax(0,1fr); }
  .gov-dashboard-hero__summary a { grid-column: 1 / -1; }
  .gov-workspace-bar { min-height: 50px; padding: .45rem 12px; }
  .gov-workspace-bar__seal { width: 32px; height: 32px; flex-basis: 32px; }
  .gov-workspace-bar__identity small, .gov-workspace-bar__secure { display: none; }
  .sig-app .sig-content { padding: 16px 12px; }
  .sig-content.admin { padding-bottom: 5.5rem; }
  .gov-detail-header { flex-direction: column; padding: 1.1rem; }
  .gov-detail-header__actions { width: 100%; justify-content: stretch; }
  .gov-detail-header__actions .btn { flex: 1; }
  .gov-detail-grid { grid-template-columns: 1fr; }
  .gov-detail-field--wide { grid-column: auto; }
  .admin .responsive-card-table tbody tr { border: 1px solid var(--gov-line); border-radius: var(--gov-radius); box-shadow: none; }
  .admin .responsive-card-table tbody td { min-height: 42px; padding: .65rem .8rem; }
  .admin .responsive-card-table tbody td::before { color: var(--gov-muted); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
  .gov-table-toolbar { align-items: stretch; flex-wrap: wrap; }
  .gov-table-search { width: 100%; }
  .gov-table-count { display: flex; min-height: 40px; align-items: center; }
  .gov-column-picker { margin-left: auto; }
  .gov-table-export { font-size: 0; }
  .gov-table-export i { font-size: 1rem; }
  .geo-layers { grid-template-columns: 1fr; }
  .geo-layers h2, .geo-search, .geo-layers .outline-btn { grid-column: auto; }
  .geo-map, .geo-map .map-canvas { min-height: 68vh; }
  .field-prototype { margin-inline: -.75rem; padding: 1rem .75rem; border-radius: 0; }
  .field-phone { width: 100%; height: 72vh; padding: 0; border-radius: 18px; background: transparent; }
  .field-phone__screen { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .gov-skeleton::after { animation: none; }
  .geo-drawer, .admin table tbody tr { transition: none; }
}

@media (forced-colors: active) {
  .geo-map-tool, .geo-drawer, .gov-detail-grid, .admin .page-header { border: 1px solid CanvasText; }
}
