:root {
  --bg: #f5f4f1;
  --surface: #fffdf8;
  --surface-2: #fbfaf7;
  --surface-3: #ebe8e2;
  --surface-glass: rgba(253, 253, 248, 0.78);
  --ink: #111214;
  --text: #252627;
  --text-strong: #111214;
  --muted: #6a6862;
  --muted-2: #918c84;
  --line: #ded9cf;
  --line-strong: #c9c2b6;
  --primary: #24486f;
  --primary-dark: #142b44;
  --primary-soft: #e7edf4;
  --blue: #2b5c8a;
  --blue-dark: #173b62;
  --blue-soft: #e7edf4;
  --amber: #985818;
  --amber-soft: #fff1dc;
  --red: #a43c35;
  --red-soft: #fff2ef;
  --copper: #9a6041;
  --copper-soft: #f3e8df;
  --brand-gradient: linear-gradient(135deg, #2b5c8a 0%, #24486f 48%, #9a6041 100%);
  --shadow: 0 24px 70px rgba(16, 22, 21, 0.1);
  --shadow-soft: 0 10px 28px rgba(16, 22, 21, 0.06);
  --shadow-hairline: 0 1px 0 rgba(255, 255, 255, 0.88) inset;
  --radius: 8px;
  --mobile-viewport-width: 100vw;
  --mobile-viewport-bottom-shift: 0px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #fffdf8 0, #f8f6f0 340px, var(--bg) 780px),
    linear-gradient(90deg, rgba(47, 98, 141, 0.032) 1px, transparent 1px),
    linear-gradient(0deg, rgba(43, 92, 138, 0.028) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 72px 72px, 72px 72px, auto;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.47;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(47, 98, 141, 0.24);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 70px;
  padding: 11px 28px;
  border-bottom: 1px solid rgba(199, 210, 201, 0.72);
  background: rgba(253, 253, 248, 0.8);
  backdrop-filter: blur(24px) saturate(165%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset, 0 14px 32px rgba(16, 22, 21, 0.046);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  min-width: 184px;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid rgba(43, 92, 138, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.62), rgba(255,255,255,0.06) 46%, rgba(0,0,0,0.08)),
    var(--brand-gradient);
  color: white;
  box-shadow: 0 14px 28px rgba(20, 43, 68, 0.18);
  font-weight: 850;
  font-size: 13px;
}

.brand-mark::before {
  position: absolute;
  inset: -18px -8px auto auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  content: "";
}

.brand-mark::after {
  position: absolute;
  inset: auto auto -16px -12px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.brand-mark svg,
.brand-symbol-xl svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.mark-ring,
.mark-strata,
.mark-core {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark-ring {
  opacity: .34;
  stroke-width: 1.7;
}

.mark-strata {
  opacity: .92;
  stroke-width: 2.4;
}

.mark-strata.soft {
  opacity: .56;
  stroke-width: 2;
}

.mark-core {
  opacity: .98;
  stroke-width: 2.5;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--text-strong);
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
  line-height: 1.25;
}

.nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 3px;
  min-width: 280px;
}

.nav-link,
.user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 690;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.user-chip {
  gap: 6px;
}

.user-chip > span {
  color: var(--text);
}

.user-chip small,
.user-chip a,
.logout-form button {
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.user-chip a,
.logout-form {
  padding-left: 6px;
  border-left: 1px solid var(--line);
}

.logout-form {
  display: inline-flex;
  margin: 0;
}

.logout-form button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.logout-form button:hover {
  color: var(--text);
}

.topbar-help {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(203, 211, 203, 0.92);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  font-size: 16px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: var(--shadow-hairline), var(--shadow-soft);
}

.topbar-help:hover,
.topbar-help:focus-visible {
  border-color: rgba(43, 92, 138, 0.28);
  background: #eef2f7;
  text-decoration: none;
}

.topbar-help-bubble {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  display: grid;
  gap: 4px;
  width: 270px;
  padding: 12px;
  border: 1px solid rgba(203, 211, 203, 0.94);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.topbar-help-bubble strong,
.help-bubble strong {
  color: var(--text-strong);
  font-size: 13px;
  line-height: 1.25;
}

.topbar-help-bubble span,
.help-bubble span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.topbar-help:hover .topbar-help-bubble,
.topbar-help:focus-visible .topbar-help-bubble {
  opacity: 1;
  transform: translateY(0);
}

.nav-link.active,
.nav-link:hover,
.user-chip:hover {
  background: rgba(233, 237, 232, 0.84);
  color: var(--text-strong);
  text-decoration: none;
}

.nav-link.active {
  box-shadow: var(--shadow-hairline), inset 0 -2px 0 rgba(47, 98, 141, 0.32), inset 0 0 0 1px rgba(20, 43, 68, 0.07);
}

.header-search {
  display: grid;
  grid-template-columns: minmax(220px, 340px) auto;
  align-items: center;
  gap: 8px;
}

.header-search input {
  min-height: 36px;
  padding: 7px 11px;
  border-color: rgba(203, 211, 203, 0.82);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-hairline);
}

.header-search button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(43, 92, 138, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8f6f0, #ebe8e2);
  color: var(--primary-dark);
  font-weight: 780;
}

.page-shell {
  width: min(1440px, calc(100vw - 56px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.page-header,
.property-head,
.dossier-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.property-head {
  padding-bottom: 2px;
}

.page-header h1,
.property-head h1,
.dossier-head h1 {
  margin: 2px 0 0;
  color: var(--text-strong);
  font-size: 38px;
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: 0;
}

.kicker {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-actions,
.property-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(225, 229, 223, 0.9);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 250, 247, 0.96));
  box-shadow: var(--shadow-hairline), var(--shadow-soft);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 11px;
  color: var(--text-strong);
  font-size: 30px;
  font-weight: 740;
  line-height: 1;
}

.metric.compact {
  min-height: 76px;
  padding: 13px 14px;
}

.metric.compact strong {
  font-size: 24px;
}

.compact-metrics {
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
}

.grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.grid.two.uneven {
  grid-template-columns: minmax(0, 1.6fr) minmax(360px, 0.75fr);
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stack {
  display: grid;
  gap: 16px;
}

.panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(225, 229, 223, 0.88);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 247, 0.94)),
    var(--surface);
  box-shadow: var(--shadow-hairline), var(--shadow-soft);
}

.panel.narrow {
  max-width: 520px;
  margin-inline: auto;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title h2,
.print-section h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 730;
  line-height: 1.25;
  letter-spacing: 0;
}

.panel-title h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.25;
  letter-spacing: 0;
}

.title-help,
.label-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.label-line {
  justify-content: flex-start;
}

.help-tip {
  position: relative;
  z-index: 3;
  display: inline-grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid rgba(43, 92, 138, 0.18);
  border-radius: 50%;
  background: rgba(231, 242, 236, 0.92);
  color: var(--primary-dark);
  cursor: help;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  vertical-align: middle;
  box-shadow: var(--shadow-hairline);
}

.help-tip:hover,
.help-tip:focus {
  border-color: rgba(43, 92, 138, 0.38);
  background: #dfeaf4;
  outline: 0;
}

.help-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 80;
  display: grid;
  gap: 4px;
  width: 280px;
  max-width: calc(100vw - 32px);
  padding: 11px 12px;
  border: 1px solid rgba(203, 211, 203, 0.96);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  text-transform: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.help-bubble::after {
  position: absolute;
  bottom: -6px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(203, 211, 203, 0.96);
  border-bottom: 1px solid rgba(203, 211, 203, 0.96);
  background: rgba(255, 255, 255, 0.98);
  content: "";
  transform: rotate(45deg);
}

.help-tip:hover .help-bubble,
.help-tip:focus .help-bubble {
  opacity: 1;
  transform: translate(-50%, 0);
}

.help-strip {
  margin: 0 0 16px;
  border: 1px solid rgba(203, 211, 203, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 255, 252, 0.82);
  box-shadow: var(--shadow-hairline), var(--shadow-soft);
}

.help-strip summary {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
}

.help-strip summary::-webkit-details-marker {
  display: none;
}

.help-strip summary > span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #e7edf4;
  color: var(--primary-dark);
  font-weight: 850;
}

.help-strip summary strong {
  color: var(--text-strong);
  font-size: 14px;
}

.help-strip summary small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.help-step-grid,
.help-center-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.help-step-grid {
  padding: 0 15px 15px;
}

.help-step,
.help-center-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(225, 229, 223, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-hairline);
}

.help-step span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #18263a;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.help-step strong,
.help-center-card strong {
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1.25;
}

.help-step p,
.help-center-card p,
.help-center-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.help-center-grid {
  margin-bottom: 16px;
}

.help-center-card {
  min-height: 126px;
  color: inherit;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.help-center-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hairline), 0 14px 30px rgba(19, 24, 21, 0.06);
  text-decoration: none;
  transform: translateY(-1px);
}

.help-center-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 18px;
  align-items: center;
}

.help-center-hero h2 {
  margin: 3px 0 8px;
  color: var(--text-strong);
  font-size: 32px;
  font-weight: 750;
  line-height: 1.08;
}

.help-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.help-flow span {
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid rgba(203, 211, 203, 0.92);
  border-radius: var(--radius);
  background: #f6faf7;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.help-glossary {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.control-block {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(225, 229, 223, 0.92);
  border-radius: var(--radius);
  background: rgba(250, 250, 247, 0.88);
}

.control-block .panel-title {
  margin-bottom: 0;
}

.control-block .info-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.control-block .table-wrap {
  max-height: 460px;
  overflow: auto;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid rgba(225, 229, 223, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-hairline);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.96);
}

th,
td {
  max-width: 100%;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(225, 229, 223, 0.86);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  color: #6a6862;
  background: rgba(247, 248, 245, 0.92);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

tbody tr {
  transition: background 140ms ease;
}

tbody tr:hover {
  background: #fbfcf9;
}

td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  white-space: normal;
}

td small.warning-note {
  color: var(--red);
  font-weight: 750;
}

tr:last-child td {
  border-bottom: 0;
}

.danger-row {
  background: #fff6f3;
}

.status-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.status-list li:last-child {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 9px 5px;
  border-radius: 999px;
  background: #ebefea;
  color: #4b4945;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
  white-space: normal;
  box-shadow: var(--shadow-hairline), inset 0 0 0 1px rgba(31, 37, 33, 0.04);
}

.badge-autorizado-verbalmente,
.badge-autorizado-por-escrito,
.badge-ativo,
.badge-ok,
.badge-sim,
.badge-cumprido,
.badge-concluido,
.badge-anexado,
.badge-recebido,
.badge-verbal,
.badge-procuracao-anexada,
.badge-contrato-anexado {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.badge-em-negociacao,
.badge-contato-iniciado,
.badge-acesso-condicionado,
.badge-solicitado,
.badge-atencao,
.badge-pendente,
.badge-em-andamento,
.badge-diz-que-possui-mas-nao-enviou {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge-bloqueado,
.badge-expirado,
.badge-usado,
.badge-conflito,
.badge-divergente,
.badge-precisa-revisao,
.badge-risco-critico,
.badge-vencido,
.badge-revisar-documentos,
.badge-sem-autoridade {
  background: var(--red-soft);
  color: var(--red);
}

.badge-pronto-para-sondagem,
.badge-critica,
.badge-alta,
.badge-critico {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.badge-pode-reconhecer-nao-sondar,
.badge-negociar-sondagem,
.badge-media,
.badge-condicional,
.badge-recomendado {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge-sem-plano,
.badge-baixa,
.badge-opcional,
.badge-nao,
.badge-nao-iniciado,
.badge-nao-aplicavel,
.badge-sem-codigo,
.badge-muted {
  background: var(--blue-soft);
  color: #43515a;
}

.badge-reconhecimento-geologico,
.badge-amostragem-manual,
.badge-topografia,
.badge-entrada-com-veiculo,
.badge-abertura-de-acesso,
.badge-sondagem,
.badge-manutencao-reparo {
  background: var(--blue-soft);
  color: var(--blue);
}

.regulatory-table td:nth-child(3),
.regulatory-table td:nth-child(4),
.regulatory-table td:nth-child(5) {
  min-width: 220px;
}

.regulatory-next {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid rgba(225, 229, 223, 0.92);
  border-radius: var(--radius);
  background: rgba(250, 250, 247, 0.9);
}

.regulatory-next span,
.regulatory-step span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.regulatory-next strong {
  display: block;
  margin-top: 3px;
  color: var(--text-strong);
}

.regulatory-next p,
.regulatory-step p,
.source-links {
  margin: 5px 0 0;
  color: var(--muted);
}

.regulatory-path {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.regulatory-step {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(225, 229, 223, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-hairline);
}

.regulatory-step small,
.source-links a {
  color: var(--primary-dark);
  font-weight: 760;
}

.source-links {
  margin-bottom: 12px;
}

.decision-panel {
  border-color: rgba(203, 211, 203, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 246, 0.94)),
    #fff;
}

.decision-grid,
.owner-task-grid,
.evidence-grid,
.risk-card-grid {
  display: grid;
  gap: 12px;
}

.decision-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.decision-card,
.owner-task,
.evidence-card,
.risk-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 150px;
  padding: 15px;
  border: 1px solid rgba(225, 229, 223, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-hairline);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.decision-card:hover,
.owner-task:hover,
.evidence-card:hover,
.risk-card:hover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-hairline), 0 14px 30px rgba(19, 24, 21, 0.06);
  transform: translateY(-1px);
  text-decoration: none;
}

.decision-card > span,
.owner-task span:not(.badge),
.evidence-card > span,
.risk-card span:not(.badge) {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.decision-card strong,
.owner-task strong,
.evidence-card strong,
.risk-card strong {
  color: var(--text-strong);
  font-size: 17px;
  font-weight: 720;
  line-height: 1.22;
}

.decision-card p,
.owner-task p,
.evidence-card p,
.risk-card p {
  margin: 0;
  color: #55514a;
  line-height: 1.42;
}

.decision-card small,
.owner-task small,
.evidence-card small {
  color: var(--muted);
  line-height: 1.35;
}

.decision-card::before,
.owner-task::before,
.risk-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--line-strong);
  content: "";
}

.decision-card .badge {
  margin-top: auto;
}

.decision-ok,
.task-ok,
.risk-ok {
  border-color: rgba(43, 92, 138, .22);
  background: rgba(229, 241, 234, 0.72);
}

.decision-ok::before,
.task-ok::before,
.risk-ok::before {
  background: var(--primary);
}

.decision-atencao,
.task-atencao,
.risk-atencao {
  border-color: rgba(165, 99, 31, .24);
  background: rgba(255, 241, 220, 0.78);
}

.decision-atencao::before,
.task-atencao::before,
.risk-atencao::before {
  background: var(--amber);
}

.decision-risco-critico,
.task-risco-critico,
.risk-risco-critico {
  border-color: rgba(164, 60, 53, .26);
  background: rgba(255, 242, 239, 0.86);
}

.decision-risco-critico::before,
.task-risco-critico::before,
.risk-risco-critico::before {
  background: var(--red);
}

.owner-task-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.owner-task {
  min-height: 142px;
}

.owner-task div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.evidence-panel {
  border-color: rgba(203, 211, 203, 0.88);
}

.evidence-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.evidence-card {
  min-height: 170px;
}

.evidence-card.selected {
  border-color: var(--primary);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 248, 242, 0.92)),
    #eef2f7;
  box-shadow: var(--shadow-hairline), inset 0 0 0 1px rgba(43, 92, 138, .14);
}

.risk-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 12px;
}

.risk-card {
  min-height: 128px;
}

.matrix-details {
  margin-top: 12px;
}

.matrix-details summary {
  cursor: pointer;
  width: max-content;
  max-width: 100%;
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-weight: 820;
}

.document-entry-grid {
  align-items: start;
}

.source-links a {
  display: inline-flex;
  margin-right: 10px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.meta-row span:not(.badge) {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(225, 229, 223, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 12px;
  font-weight: 710;
  box-shadow: var(--shadow-hairline);
}

.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0 0 16px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid rgba(225, 229, 223, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 255, 252, 0.74);
  box-shadow: var(--shadow-hairline), var(--shadow-soft);
}

.tab {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 690;
}

.tab.active,
.tab:hover {
  color: var(--text);
  background: rgba(234, 238, 232, 0.9);
  text-decoration: none;
}

.button,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(203, 211, 203, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  white-space: normal;
  box-shadow: var(--shadow-hairline);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}

.button:hover,
.mini-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hairline), var(--shadow-soft);
  text-decoration: none;
}

.button.primary {
  border-color: rgba(43, 92, 138, 0.2);
  background: linear-gradient(180deg, #2b5c8a, #142b44);
  color: white;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 10px 22px rgba(20, 43, 68, 0.16);
}

.button.secondary {
  border-color: rgba(203, 211, 203, 0.92);
  background: rgba(244, 246, 242, 0.92);
  color: var(--text);
}

.button.ghost {
  background: transparent;
  box-shadow: none;
  color: var(--muted);
}

.mini-button {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 13px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.search-panel {
  margin-bottom: 16px;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 260px) auto;
  align-items: end;
  gap: 12px;
}

.search-row > input[type="hidden"] {
  display: none;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.quick-filter {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: white;
  color: #3e3d39;
  font-size: 13px;
  font-weight: 780;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.quick-filter:hover,
.quick-filter.active {
  border-color: var(--primary);
  background: #e7edf4;
  color: var(--primary-dark);
  text-decoration: none;
}

.quick-filter.clear {
  color: var(--muted);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid #d1d9d4;
  border-radius: var(--radius);
  background: #f6f4ef;
  color: #3f3d38;
  font-size: 12px;
  font-weight: 780;
}

.filter-chip.muted {
  color: var(--muted);
}

.form-grid.wide {
  max-width: 1040px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: #68645d;
  font-size: 13px;
  font-weight: 740;
}

.audit-note {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(203, 211, 203, 0.92);
  border-radius: var(--radius);
  background: rgba(246, 250, 247, 0.96);
  color: var(--text);
  box-shadow: var(--shadow-hairline);
}

.audit-note span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.audit-note strong {
  color: var(--text-strong);
  font-size: 14px;
}

.audit-note small {
  color: var(--muted);
  font-size: 12px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(203, 211, 203, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  box-shadow: var(--shadow-hairline);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

textarea {
  min-height: 82px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--primary);
  background: white;
  box-shadow: var(--shadow-hairline), 0 0 0 4px rgba(43, 92, 138, 0.13);
}

::placeholder {
  color: #918c84;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
  font-size: 14px;
  font-weight: 650;
}

.check input {
  width: auto;
  min-height: auto;
}

.check small {
  color: var(--muted);
}

.subform {
  padding: 13px;
  border: 1px solid rgba(225, 229, 223, 0.92);
  border-radius: var(--radius);
  background: rgba(251, 252, 249, 0.9);
}

.subform summary {
  cursor: pointer;
  font-weight: 820;
}

.subform > * + * {
  margin-top: 12px;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inline-form select {
  min-width: 145px;
  min-height: 32px;
  padding: 5px 8px;
}

.timeline {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  padding: 12px;
  border: 1px solid rgba(225, 229, 223, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.timeline.compact li {
  padding: 10px;
}

.timeline span,
.timeline small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.timeline h3 {
  margin: 6px 0 8px;
  font-size: 16px;
}

.timeline p {
  margin: 6px 0 0;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-list div {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.info-list div:last-child {
  border-bottom: 0;
}

.info-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.info-list dd {
  margin: 0;
}

.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(242, 208, 146, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 249, 234, 0.92);
  color: #543b0e;
  box-shadow: var(--shadow-hairline);
}

.notice ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.access-code-result code {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 10px 0;
  padding: 10px 12px;
  overflow-x: auto;
  border: 1px solid rgba(152, 88, 24, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 820;
  letter-spacing: 0;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.field-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid #c8d1db;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #fbfaf7 0, #e9edf4 100%);
  box-shadow: var(--shadow-soft);
}

.field-callout h2 {
  margin: 3px 0 6px;
  color: var(--text-strong);
  font-size: 25px;
  line-height: 1.2;
}

.field-callout p {
  max-width: 820px;
  margin: 0;
  color: #383735;
}

.brand-hero {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 18px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid rgba(199, 210, 201, 0.88);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(255, 254, 250, 0.98), rgba(250, 251, 246, 0.92) 50%, rgba(232, 240, 247, 0.68)),
    var(--surface);
  box-shadow: var(--shadow-hairline), var(--shadow);
}

.brand-symbol-xl {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  overflow: hidden;
  border: 1px solid rgba(16, 22, 21, 0.1);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.58), rgba(255,255,255,0.06) 46%, rgba(0,0,0,0.10)),
    var(--brand-gradient);
  color: white;
  box-shadow: 0 24px 70px rgba(20, 43, 68, 0.22);
}

.brand-hero h2 {
  max-width: 940px;
  margin: 4px 0 12px;
  color: var(--text-strong);
  font-size: 44px;
  font-weight: 730;
  line-height: 1.02;
}

.brand-hero p:not(.kicker) {
  max-width: 840px;
  margin: 0;
  color: #514d47;
  font-size: 17px;
  line-height: 1.55;
}

.brand-manifesto,
.brand-principles,
.brand-swatch-grid,
.brand-component-demo,
.brand-color-logic,
.brand-ratio {
  display: grid;
  gap: 12px;
}

.brand-manifesto {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.brand-principles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.brand-manifesto article,
.brand-principles article,
.brand-swatch,
.brand-ratio-item,
.brand-type-sample,
.brand-voice,
.brand-rules div {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(223, 231, 223, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.86);
  box-shadow: var(--shadow-hairline);
}

.brand-manifesto article {
  min-height: 142px;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.94), rgba(250, 251, 246, 0.9)),
    var(--surface);
}

.brand-manifesto span,
.brand-principles span,
.brand-swatch span,
.brand-type-sample span,
.brand-color-logic span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand-manifesto strong,
.brand-principles strong,
.brand-swatch strong {
  display: block;
  margin-top: 7px;
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 730;
}

.brand-manifesto p,
.brand-principles p,
.brand-swatch p,
.brand-ratio-item p,
.brand-color-logic p,
.brand-type-sample p,
.brand-voice p {
  margin: 8px 0 0;
  color: var(--muted);
}

.brand-swatch-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.brand-swatch i {
  display: block;
  height: 58px;
  margin-bottom: 12px;
  border: 1px solid rgba(17, 21, 19, 0.08);
  border-radius: var(--radius);
  background: var(--swatch);
  box-shadow: var(--shadow-hairline);
}

.brand-swatch code {
  display: inline-block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.brand-ratio {
  gap: 10px;
}

.brand-ratio-item {
  display: grid;
  gap: 8px;
  padding: 13px;
}

.brand-ratio-item div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.brand-ratio-item div strong {
  color: var(--text-strong);
}

.brand-ratio-item div span {
  color: var(--muted);
  font-weight: 780;
}

.brand-ratio-item i {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}

.brand-ratio-item i::before {
  display: block;
  width: var(--width);
  height: 100%;
  border-radius: inherit;
  background: var(--fill);
  content: "";
}

.brand-color-logic {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.brand-color-logic article {
  min-width: 0;
  min-height: 154px;
  padding: 16px;
  border: 1px solid rgba(223, 231, 223, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.88);
  box-shadow: var(--shadow-hairline), var(--shadow-soft);
}

.brand-color-logic article::before {
  display: block;
  width: 38px;
  height: 4px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--logic);
  content: "";
}

.brand-color-logic strong {
  display: block;
  margin-top: 7px;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.22;
}

.logic-primary {
  --logic: var(--primary);
}

.logic-blue {
  --logic: var(--blue);
}

.logic-copper {
  --logic: var(--copper);
}

.logic-risk {
  --logic: var(--red);
}

.brand-type-sample {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.brand-type-sample strong {
  color: var(--text-strong);
  font-size: 34px;
  font-weight: 730;
  line-height: 1.05;
}

.brand-rules {
  display: grid;
  gap: 8px;
  margin: 0;
}

.brand-rules dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand-rules dd {
  margin: 4px 0 0;
  color: var(--text);
}

.brand-component-demo {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.brand-voice {
  display: grid;
  gap: 10px;
}

.brand-voice p {
  margin: 0;
}

.brand-voice strong {
  color: var(--text-strong);
}

.score-ring {
  display: grid;
  place-items: center;
  flex: 0 0 86px;
  width: 86px;
  height: 86px;
  border: 8px solid #c8d1db;
  border-radius: 50%;
  background: white;
  color: var(--primary-dark);
  box-shadow: var(--shadow-soft);
}

.score-ring strong,
.score-ring span {
  display: block;
  line-height: 1;
}

.score-ring strong {
  font-size: 24px;
}

.score-ring span {
  margin-top: -14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.action-card,
.contact-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(225, 229, 223, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-hairline);
}

a.action-card {
  color: var(--text);
  text-decoration: none;
}

a.action-card:hover {
  border-color: var(--primary);
  background: #f9f8f4;
  text-decoration: none;
}

.action-card p,
.contact-card span {
  margin: 0;
  color: var(--muted);
}

.action-card span {
  color: var(--muted);
}

.blocker-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blocker-list li {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
}

.button-stack {
  display: grid;
  gap: 8px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.photo-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(225, 229, 223, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-hairline), var(--shadow-soft);
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8edf1;
}

.photo-card div {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.photo-card span,
.photo-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.photo-card p {
  margin: 0;
  color: #514d47;
}

.document-pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 14px;
}

.document-pack {
  min-width: 0;
  border: 1px solid rgba(225, 229, 223, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
  box-shadow: var(--shadow-hairline);
}

.document-pack-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid rgba(225, 229, 223, 0.86);
  background: rgba(250, 250, 247, 0.92);
}

.document-pack-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 720;
  line-height: 1.25;
}

.document-pack-head p {
  margin: 0;
  color: var(--muted);
}

.document-pack-head strong {
  display: inline-grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary-dark);
  border: 1px solid rgba(185, 214, 204, 0.88);
  box-shadow: var(--shadow-hairline);
}

.command-map {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.6fr);
  gap: 18px;
  margin-bottom: 18px;
}

.command-map.compact {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
}

.map-canvas {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(225, 229, 223, 0.9);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(49, 95, 143, 0.10), transparent 42%),
    linear-gradient(45deg, rgba(43, 92, 138, 0.13), transparent 48%),
    #edf1ec;
  box-shadow: var(--shadow-hairline), var(--shadow-soft);
}

.command-map.compact .map-canvas {
  min-height: 260px;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(32, 38, 34, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 38, 34, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}

.map-route {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: rgba(155, 105, 75, 0.45);
  transform-origin: left center;
}

.route-a {
  left: 10%;
  top: 62%;
  width: 78%;
  transform: rotate(-12deg);
}

.route-b {
  left: 22%;
  top: 30%;
  width: 58%;
  transform: rotate(18deg);
}

.map-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(31, 37, 33, 0.2);
  transform: translate(-50%, -50%);
}

.map-pin span {
  position: absolute;
  left: 18px;
  top: 50%;
  min-width: 130px;
  max-width: 220px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.map-pin:hover span {
  opacity: 1;
}

.pin-bloqueado,
.pin-revisar-documentos {
  background: var(--red);
}

.pin-negociar-sondagem,
.pin-pode-reconhecer-nao-sondar {
  background: var(--amber);
}

.pin-pronto-para-sondagem {
  background: var(--primary);
}

.map-side {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(225, 229, 223, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-hairline), var(--shadow-soft);
}

.map-side p {
  margin: 0 0 12px;
  color: var(--muted);
}

.map-side ul,
.saved-views,
.priority-grid,
.playbook-grid,
.field-card-grid,
.insight-grid {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.map-side li,
.saved-view,
.priority-card,
.playbook-step,
.field-card,
.insight-grid article {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(225, 229, 223, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-hairline);
}

.map-side li {
  display: grid;
  gap: 3px;
}

.map-side li span,
.priority-card span,
.field-card span,
.playbook-step small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.saved-views,
.priority-grid,
.field-card-grid,
.insight-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.saved-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.saved-view strong {
  font-size: 24px;
}

.priority-card,
.field-card {
  display: grid;
  gap: 8px;
}

.priority-card strong,
.field-card strong {
  color: var(--text-strong);
  font-size: 17px;
  font-weight: 720;
}

.priority-card p,
.field-card p,
.insight-grid p {
  margin: 0;
  color: var(--muted);
}

.readiness-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.readiness-score {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(198, 222, 211, 0.92);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #edf1f6);
  box-shadow: var(--shadow-hairline), var(--shadow-soft);
  text-align: center;
}

.readiness-score span,
.readiness-score small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.readiness-score strong {
  color: var(--primary-dark);
  font-size: 54px;
  font-weight: 720;
  line-height: 1;
}

.readiness-detail {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(225, 229, 223, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-hairline), var(--shadow-soft);
}

.score-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.score-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
}

.score-list li span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.score-list em {
  color: var(--text-strong);
  font-style: normal;
  font-weight: 850;
}

.score-list i {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0ec;
}

.score-list i::before {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #8a95a6);
  content: "";
}

.playbook-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
}

.playbook-step > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-strong);
  font-weight: 850;
}

.playbook-step.done > span {
  background: #dce9f6;
  color: #173b62;
}

.playbook-step.attention > span {
  background: #fff1d8;
  color: var(--amber);
}

.playbook-step.todo > span {
  background: #ffe2de;
  color: var(--red);
}

.playbook-step p {
  margin: 4px 0 0;
  color: var(--muted);
}

.event-timeline li {
  position: relative;
  padding-left: 18px;
}

.event-timeline li::before {
  position: absolute;
  left: 6px;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.field-mode,
.field-mode-head {
  display: grid;
  gap: 12px;
}

.field-mode {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #c8d1db;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #edf1f6);
  box-shadow: var(--shadow-soft);
}

.field-mode-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.field-mode-head strong {
  color: var(--text-strong);
  font-size: 24px;
}

.field-mode-head p {
  margin: 0;
  color: var(--muted);
}

.status-row.readiness-pronto-para-sondagem td {
  box-shadow: inset 3px 0 0 var(--primary);
}

.status-row.readiness-negociar-sondagem td,
.status-row.readiness-pode-reconhecer-nao-sondar td {
  box-shadow: inset 3px 0 0 var(--amber);
}

.status-row.readiness-bloqueado td,
.status-row.readiness-revisar-documentos td {
  box-shadow: inset 3px 0 0 var(--red);
}

.empty {
  margin: 0;
  color: var(--muted);
}

.preline {
  white-space: pre-line;
}

pre {
  overflow: auto;
  padding: 14px;
  border-radius: var(--radius);
  background: #151820;
  color: #f8f6f0;
}

.dossier-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.dossier-summary div {
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.dossier-summary strong,
.dossier-summary span {
  display: block;
}

.dossier-summary strong {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.dossier-summary span {
  margin-top: 6px;
  font-weight: 800;
}

.print-section {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.print-section.warning {
  border-color: #f2d092;
  background: #fff8e9;
}

.gis-cockpit-map {
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #faf9f5, #eef1f6);
  box-shadow: var(--shadow);
}

.gis-cockpit-map svg {
  display: block;
  width: 100%;
  min-height: 390px;
}

.gis-bg {
  fill: #f7f8fb;
}

.gis-grid {
  fill: url(#gisGrid);
  opacity: .6;
}

#gisGrid path {
  stroke: rgba(43, 92, 138, .12);
  stroke-width: 1;
}

.gis-feature {
  fill: rgba(43, 92, 138, .18);
  stroke: #2b5c8a;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
  transition: fill .16s ease, stroke .16s ease, stroke-width .16s ease;
}

.gis-feature:hover {
  fill: rgba(43, 92, 138, .28);
  stroke-width: 6;
}

.gis-acesso_rota,
.gis-praca_sonda,
.gis-alvo_sondagem {
  fill: none;
  stroke: #d77a2b;
  stroke-dasharray: 10 8;
}

.gis-poligonal_anm {
  fill: rgba(50, 83, 164, .15);
  stroke: #3154a4;
}

.gis-app_reserva_restricao {
  fill: rgba(196, 53, 53, .14);
  stroke: #b64242;
}

.gis-point circle {
  fill: #1e3554;
  stroke: white;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.gis-point text {
  fill: #152338;
  font-size: 22px;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, .88);
  stroke-width: 5px;
  stroke-linejoin: round;
}

.gis-point.readiness-bloqueado circle,
.gis-point.readiness-revisar-documentos circle,
.gis-feature.readiness-bloqueado,
.gis-feature.readiness-revisar-documentos {
  stroke: #b64242;
}

.gis-point.readiness-negociar-sondagem circle,
.gis-point.readiness-pode-reconhecer-nao-sondar circle,
.gis-feature.readiness-negociar-sondagem,
.gis-feature.readiness-pode-reconhecer-nao-sondar {
  stroke: #b8752e;
}

.gis-point.readiness-pronto-para-sondagem circle,
.gis-feature.readiness-pronto-para-sondagem {
  stroke: #2b5c8a;
}

.workflow-panel {
  overflow: hidden;
}

.workflow-rail {
  display: grid;
  grid-template-columns: repeat(8, minmax(120px, 1fr));
  gap: 10px;
}

.workflow-stage {
  display: grid;
  min-height: 128px;
  align-content: start;
  gap: 9px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.workflow-stage span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #edf2ee;
  color: var(--muted);
  font-weight: 900;
}

.workflow-stage strong {
  font-size: 14px;
}

.workflow-stage small {
  color: var(--muted);
  line-height: 1.35;
}

.workflow-stage.done {
  border-color: rgba(43, 92, 138, .28);
  background: #f4f7fb;
}

.workflow-stage.done span {
  background: #2b5c8a;
  color: #fff;
}

.workflow-stage.current {
  border-color: rgba(184, 117, 46, .42);
  background: #fff7ea;
}

.workflow-stage.current span {
  background: #b8752e;
  color: #fff;
}

.workflow-board,
.anm-grid,
.brief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.workflow-bucket,
.anm-card,
.brief-card {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.workflow-bucket > span,
.anm-card span,
.brief-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.workflow-bucket strong,
.anm-card strong,
.brief-card strong {
  font-size: 18px;
}

.workflow-bucket p,
.anm-card p,
.brief-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.workflow-bucket ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-bucket li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.workflow-bucket li span {
  color: var(--muted);
  white-space: nowrap;
}

.anm-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.anm-card dl div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
}

.anm-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.anm-card dd {
  margin: 0;
  font-weight: 700;
}

.completion-grid,
.answer-grid,
.alert-grid,
.spatial-alerts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.completion-step,
.answer-card,
.alert-card,
.spatial-alert {
  display: grid;
  gap: 8px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.completion-step strong,
.answer-card strong,
.alert-card strong,
.spatial-alert strong {
  font-size: 17px;
}

.completion-step span,
.answer-card p,
.alert-card p,
.spatial-alert span {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.completion-step.done {
  border-color: rgba(43, 92, 138, .25);
  background: #f5f7fb;
}

.completion-step.attention,
.alert-card.attention,
.spatial-alert.attention {
  border-color: rgba(184, 117, 46, .38);
  background: #fff8ed;
}

.completion-step.todo,
.alert-card.danger,
.spatial-alert.danger {
  border-color: rgba(182, 66, 66, .35);
  background: #fff4f3;
}

.spatial-alert.ok {
  border-color: rgba(43, 92, 138, .25);
  background: #f5f7fb;
}

.answer-card span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #18263a;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.alert-card.danger strong,
.spatial-alert.danger strong {
  color: #9c3030;
}

.alert-card.attention strong,
.spatial-alert.attention strong {
  color: #9a6426;
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px 14px;
  }

  .nav {
    width: 100%;
    min-width: 0;
  }

  .header-search {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .page-shell {
    width: min(100% - 24px, 1480px);
    padding-top: 18px;
  }

  .page-header,
  .property-head,
  .dossier-head {
    flex-direction: column;
    gap: 14px;
  }

  .metrics,
  .command-map,
  .command-map.compact,
	  .brand-hero,
	  .brand-manifesto,
	  .help-center-hero,
	  .brand-principles,
	  .brand-color-logic,
	  .readiness-card,
	  .workflow-rail,
	  .decision-grid,
  .grid.two,
  .grid.two.uneven,
  .grid.three,
  .dossier-summary,
  .document-pack-grid,
  .field-callout,
	  .completion-grid,
	  .help-step-grid,
	  .help-center-grid,
	  .answer-grid,
	  .alert-grid,
	  .spatial-alerts {
    grid-template-columns: 1fr;
  }

  .field-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-hero {
    gap: 18px;
  }

  .brand-symbol-xl {
    width: 116px;
    height: 116px;
    border-radius: 22px;
  }

  .brand-hero h2 {
    font-size: 36px;
  }

  .property-actions,
  .page-actions {
    justify-content: flex-start;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .map-canvas {
    min-height: 300px;
  }

  .readiness-score {
    min-height: 150px;
  }

  .gis-cockpit-map svg {
    min-height: 320px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 14px;
  }

	  .topbar {
	    position: relative;
	  }

  .brand {
    min-width: 0;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .nav-link {
    justify-content: center;
  }

  .header-search {
    grid-template-columns: 1fr;
  }

  .header-search button,
  .page-actions .button,
  .property-actions .button,
  .button-stack .button,
  .form-grid > .button {
    width: 100%;
  }

	  .user-chip {
	    width: 100%;
	    justify-content: space-between;
	  }

	  .topbar-help {
	    position: absolute;
	    top: 14px;
	    right: 16px;
	  }

	  .topbar-help-bubble {
	    width: min(270px, calc(100vw - 32px));
	  }

  .page-header h1,
  .property-head h1,
  .dossier-head h1 {
    font-size: 30px;
  }

  .brand-hero {
    padding: 20px;
  }

  .brand-hero h2,
  .brand-type-sample strong {
    font-size: 29px;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .saved-views,
  .priority-grid,
  .field-card-grid,
  .insight-grid,
  .workflow-board,
  .anm-grid,
  .brief-grid,
  .completion-grid,
  .answer-grid,
  .alert-grid,
  .spatial-alerts {
    grid-template-columns: 1fr;
  }

  .workflow-rail {
    grid-template-columns: 1fr;
  }

  .gis-point text {
    display: none;
  }

  .metric {
    min-height: 84px;
  }

  .metric strong {
    font-size: 27px;
  }

  .panel {
    padding: 15px;
  }

  .map-pin span {
    display: none;
  }

  .score-list li {
    grid-template-columns: 1fr;
  }

  .tabs {
    margin-left: -2px;
    margin-right: -2px;
  }

	  .quick-filters,
	  .page-actions,
	  .property-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

	  .quick-filter {
	    justify-content: center;
	  }

	  .help-strip summary {
	    grid-template-columns: auto minmax(0, 1fr);
	  }

	  .help-strip summary small {
	    grid-column: 1 / -1;
	  }

	  .help-bubble {
	    left: 0;
	    width: min(280px, 82vw);
	    transform: translate(0, 4px);
	  }

	  .help-tip:hover .help-bubble,
	  .help-tip:focus .help-bubble {
	    transform: translate(0, 0);
	  }

	  .help-bubble::after {
	    left: 8px;
	  }

  th,
  td {
    padding: 9px 10px;
  }
}

.public-site {
  background:
    linear-gradient(180deg, #fffdf8 0, #f6f3ed 520px, #ede9e1 100%),
    var(--bg);
  overflow-x: hidden;
}

.public-site .topbar {
  position: relative;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid rgba(36, 72, 111, 0.14);
  box-shadow: none;
}

.public-site .brand small {
  color: #5f6872;
}

.public-site .page-shell {
  width: min(1280px, calc(100vw - 32px));
  padding-top: 18px;
}

.public-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.public-nav a {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(36, 72, 111, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  color: #263746;
  font-weight: 740;
}

.button-stack.horizontal {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.brand-public-hero {
  position: relative;
  left: 50%;
  width: 100vw;
  min-height: min(620px, calc(100vh - 150px));
  margin-left: -50vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(13, 27, 43, 0.94), rgba(16, 34, 53, 0.74) 44%, rgba(16, 34, 53, 0.12) 100%),
    linear-gradient(180deg, rgba(13, 27, 43, 0.06), rgba(13, 27, 43, 0.5)),
    url("/static/brand/terraacesso-hero.png") center right / cover no-repeat,
    #142b44;
  color: #fffdf2;
}

.brand-public-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 72%, rgba(13, 27, 43, 0.2));
  pointer-events: none;
}

.brand-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: end;
  gap: 36px;
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 58px 0 52px;
}

.public-copy {
  min-width: 0;
  max-width: 720px;
}

.public-copy h1,
.market-position h2,
.product-story-copy h2,
.workflow-band h2,
.trust-band h2,
.conversion-cta h2 {
  margin: 0;
  color: inherit;
  line-height: 1.02;
  overflow-wrap: break-word;
}

.public-copy h1 {
  font-size: 76px;
}

.public-copy p:not(.kicker) {
  max-width: 50ch;
  color: rgba(255, 253, 242, 0.86);
  font-size: 20px;
}

.brand-public-hero .kicker {
  color: #e0b15d;
}

.button.primary.brand-cta {
  border-color: rgba(154, 96, 65, 0.44);
  background: linear-gradient(180deg, #2f6291, #24486f);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.24) inset, 0 18px 34px rgba(20, 43, 68, 0.24);
}

.public-site .button.primary {
  border-color: rgba(154, 96, 65, 0.4);
  background: linear-gradient(180deg, #2f6291, #24486f);
  color: #fffdf2;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.24) inset, 0 14px 28px rgba(20, 43, 68, 0.2);
}

.brand-public-hero .button.secondary {
  border-color: rgba(255, 253, 242, 0.36);
  background: rgba(255, 253, 242, 0.11);
  color: #fffdf2;
}

.hero-signal {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(255, 253, 242, 0.22);
  border-radius: var(--radius);
  background: rgba(9, 20, 33, 0.68);
  backdrop-filter: blur(8px);
}

.hero-signal div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.hero-signal dt {
  color: #f3e7bf;
  font-size: 22px;
  font-weight: 860;
}

.hero-signal dd {
  margin: 0;
  color: rgba(255, 253, 242, 0.82);
}

.market-position,
.workflow-band,
.conversion-cta {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 34px;
  align-items: start;
  margin-top: 46px;
}

.market-position > *,
.workflow-band > *,
.conversion-cta > *,
.product-story > *,
.trust-band > *,
.brand-card,
.persona-card {
  min-width: 0;
}

.market-position h2,
.product-story-copy h2,
.workflow-band h2,
.trust-band h2,
.conversion-cta h2 {
  color: #17211e;
  font-size: 40px;
}

.market-position > p,
.conversion-cta p {
  margin: 0;
  color: #55635d;
  font-size: 18px;
}

.brand-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.proof-strip article {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(36, 72, 111, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.68);
}

.proof-strip strong {
  display: block;
  margin-bottom: 6px;
  color: #24486f;
  font-size: 14px;
}

.proof-strip span {
  display: block;
  color: #5d625f;
  font-size: 13px;
}

.brand-card,
.persona-card {
  border: 1px solid rgba(36, 72, 111, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.brand-card {
  padding: 22px;
}

.brand-card h3 {
  margin: 0 0 10px;
  color: #17211e;
  font-size: 20px;
}

.brand-card p,
.product-story-copy p,
.persona-card span,
.trust-list dd {
  color: #58655f;
}

.brand-card p {
  margin: 0;
}

.product-story {
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(320px, 0.92fr);
  gap: 38px;
  align-items: center;
  margin-top: 54px;
}

.product-story-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(36, 72, 111, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 20px 48px rgba(18, 37, 31, 0.12);
  filter: saturate(0.72) hue-rotate(145deg);
}

.product-story-copy p {
  font-size: 17px;
}

.persona-grid {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.persona-card {
  display: grid;
  gap: 5px;
  padding: 16px;
}

.persona-card strong {
  color: #24486f;
}

.workflow-band {
  padding: 34px 0;
  border-top: 1px solid rgba(36, 72, 111, 0.14);
  border-bottom: 1px solid rgba(36, 72, 111, 0.14);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 14px;
  border: 1px solid rgba(36, 72, 111, 0.14);
  border-radius: var(--radius);
  background: #fffdf8;
}

.workflow-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e7edf4;
  color: #24486f;
  font-weight: 840;
}

.workflow-steps strong {
  color: #21302b;
}

.trust-band {
  position: relative;
  left: 50%;
  width: 100vw;
  margin: 46px 0 0 -50vw;
  padding: 44px max(16px, calc((100vw - 1280px) / 2));
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 34px;
  background: #111b2a;
  color: #f7f8f1;
}

.trust-band h2 {
  color: #f7f8f1;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.trust-list div {
  padding: 16px;
  border: 1px solid rgba(247, 248, 241, 0.14);
  border-radius: var(--radius);
  background: rgba(247, 248, 241, 0.06);
}

.trust-list dt {
  margin-bottom: 8px;
  color: #e7d18f;
  font-weight: 820;
}

.trust-list dd {
  margin: 0;
  color: rgba(247, 248, 241, 0.76);
}

.conversion-cta {
  align-items: center;
  padding-bottom: 6px;
}

.public-pricing-intro,
.support-intro {
  max-width: 860px;
  margin: 0 0 18px;
  color: #58655f;
  font-size: 17px;
}

.public-pricing-intro p,
.support-intro p {
  margin: 0;
}

.pricing-grid {
  margin-top: 18px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.pricing-card.recommended {
  border-color: rgba(36, 72, 111, 0.56);
  box-shadow: 0 20px 46px rgba(36, 72, 111, 0.18);
}

.plan-badge {
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e7edf4;
  color: #24486f;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.pricing-card > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
  text-transform: uppercase;
}

.pricing-card > strong {
  color: var(--text-strong);
  font-size: 28px;
}

.pricing-card > small {
  color: #24486f;
  font-weight: 780;
}

.pricing-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.pricing-card dl div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(36, 72, 111, 0.12);
  border-radius: var(--radius);
  background: rgba(231, 237, 244, 0.48);
}

.pricing-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pricing-card dd {
  margin: 4px 0 0;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 780;
}

.pricing-card .button {
  margin-top: auto;
}

.pricing-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #58655f;
}

.legal-page p {
  color: var(--muted);
}

.account-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid rgba(36, 72, 111, 0.18);
  border-radius: var(--radius);
  background: #eef6f0;
  color: #173b25;
}

.account-banner span {
  flex: 1;
}

.activation-options {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.activation-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcf8;
}

.activation-option strong,
.activation-option span {
  min-width: 0;
}

.activation-option > span {
  color: var(--muted);
  font-size: 13px;
}

.activation-option .button {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.mini-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e7edf4;
  color: #24486f;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.account-banner.danger {
  border-color: rgba(164, 60, 53, 0.2);
  background: var(--red-soft);
  color: var(--red);
}

.check-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  line-height: 1.35;
}

.check-line input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.check-line span {
  min-width: 0;
}

.notice.success {
  border-color: rgba(36, 72, 111, 0.2);
  background: #eef3f8;
}

@media (max-width: 920px) {
  .brand-public-hero,
  .trust-band {
    left: auto;
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }

  .brand-hero-inner,
  .market-position,
  .product-story,
  .workflow-band,
  .trust-band,
  .conversion-cta,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .public-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .public-copy h1 {
    font-size: 56px;
  }

  .brand-card-grid,
  .proof-strip,
  .workflow-steps,
  .trust-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .public-site .page-shell,
  .brand-hero-inner {
    width: calc(100% - 24px);
    max-width: 366px;
  }

  .public-site .page-shell {
    margin-left: 12px;
    margin-right: 12px;
  }

  .brand-hero-inner {
    padding: 42px 0 38px;
  }

  .brand-public-hero {
    min-height: auto;
    background:
      linear-gradient(90deg, rgba(13, 27, 43, 0.9), rgba(13, 27, 43, 0.76)),
      linear-gradient(180deg, rgba(13, 27, 43, 0.14), rgba(13, 27, 43, 0.46)),
      url("/static/brand/terraacesso-hero.png") 58% center / cover no-repeat,
      #142b44;
  }

  .public-copy h1 {
    font-size: 46px;
  }

  .public-copy p:not(.kicker) {
    font-size: 18px;
  }

  .hero-signal div,
  .pricing-card dl {
    grid-template-columns: 1fr;
  }

  .market-position h2,
  .product-story-copy h2,
  .workflow-band h2,
  .trust-band h2,
  .conversion-cta h2 {
    font-size: 30px;
  }

  .hero-signal div {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .hero-signal dt {
    font-size: 21px;
  }
}

.topbar-actions {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  margin-left: auto;
}

.topbar-actions .header-search {
  flex: 1 1 360px;
}

.mobile-menu-button,
.mobile-backdrop,
.mobile-drawer,
.mobile-bottom-nav {
  display: none;
}

.mobile-menu-button {
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 46px;
  min-height: 46px;
  padding: 8px 11px;
  border: 1px solid rgba(203, 211, 203, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  font-weight: 790;
  box-shadow: var(--shadow-hairline), var(--shadow-soft);
}

.mobile-menu-button span {
  position: relative;
  width: 18px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.mobile-menu-button span::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 18px;
  border-top: 2px solid currentColor;
  content: "";
}

.mobile-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mobile-drawer-head strong,
.mobile-drawer-head span {
  display: block;
}

.mobile-drawer-head strong {
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.15;
}

.mobile-drawer-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.mobile-drawer-head button {
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid rgba(203, 211, 203, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary-dark);
  font-weight: 760;
}

.drawer-nav {
  display: grid;
  align-content: start;
  gap: 6px;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 760;
  text-decoration: none;
}

.drawer-nav-link:hover,
.drawer-nav-link.active {
  border-color: rgba(43, 92, 138, 0.14);
  background: #e7edf4;
  color: var(--primary-dark);
  text-decoration: none;
}

.mobile-bottom-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 52px;
  padding: 5px 3px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.05;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
}

.mobile-bottom-link span {
  font-size: 20px;
  line-height: 1;
}

.mobile-bottom-link strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  font-weight: 790;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-bottom-link:hover,
.mobile-bottom-link.active {
  background: #e7edf4;
  color: var(--primary-dark);
  text-decoration: none;
}

@media (hover: none) {
  .button:hover,
  .mini-button:hover {
    transform: none;
  }
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 74px;
  }

  body {
    overflow-x: hidden;
  }

  body.authenticated-site {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
    touch-action: manipulation;
  }

  .authenticated-site .topbar {
    position: sticky;
    top: 0;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  }

  .authenticated-site .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .authenticated-site .brand-mark {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
  }

  .authenticated-site .brand span:last-child {
    min-width: 0;
  }

  .authenticated-site .brand small {
    display: none;
  }

  .authenticated-site .primary-nav,
  .authenticated-site .topbar-actions {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: block;
    background: rgba(17, 18, 20, 0.3);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    backdrop-filter: blur(5px);
    transition: opacity 160ms ease, visibility 160ms ease;
  }

  .mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 70;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 14px;
    width: min(calc(var(--mobile-viewport-width, 100vw) - 40px), 372px);
    padding: calc(16px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(248, 246, 240, 0.98)),
      var(--surface);
    border-left: 1px solid rgba(203, 211, 203, 0.9);
    box-shadow: -24px 0 58px rgba(16, 22, 21, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: none;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
    -webkit-overflow-scrolling: touch;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  body.mobile-menu-open .mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  body.mobile-menu-open .mobile-drawer {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .mobile-drawer .header-search {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .mobile-drawer .header-search input,
  input,
  select,
  textarea {
    min-height: 46px;
    font-size: 16px;
  }

  .mobile-drawer .header-search button {
    width: 100%;
    min-height: 44px;
  }

  .mobile-drawer-footer {
    display: grid;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(225, 229, 223, 0.9);
  }

  .mobile-drawer-footer .topbar-help {
    position: relative;
    top: auto;
    right: auto;
    width: 44px;
    height: 44px;
  }

  .mobile-drawer-footer .topbar-help-bubble {
    top: auto;
    right: auto;
    bottom: calc(100% + 10px);
    left: 0;
    width: min(302px, calc(100vw - 44px));
  }

  .mobile-drawer-footer .user-chip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    gap: 4px 10px;
    padding: 10px;
    border: 1px solid rgba(225, 229, 223, 0.9);
    background: rgba(255, 255, 255, 0.76);
  }

  .mobile-drawer-footer .user-chip span,
  .mobile-drawer-footer .user-chip small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-drawer-footer .logout-form {
    grid-row: 1 / span 2;
    grid-column: 2;
    align-self: center;
    padding-left: 0;
    border-left: 0;
  }

  .mobile-drawer-footer .logout-form button {
    min-height: 40px;
    padding: 7px 11px;
    border: 1px solid rgba(203, 211, 203, 0.92);
    border-radius: var(--radius);
    background: #fff;
    color: var(--primary-dark);
  }

  .mobile-bottom-nav {
    position: fixed;
    right: auto;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    width: var(--mobile-viewport-width, 100vw);
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(203, 211, 203, 0.86);
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 -16px 34px rgba(16, 22, 21, 0.08), var(--shadow-hairline);
    backdrop-filter: blur(24px) saturate(165%);
    transform: translateY(var(--mobile-viewport-bottom-shift, 0px));
  }

  .authenticated-site .page-shell {
    width: min(100% - 22px, 1480px);
    padding-top: 18px;
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .page-header h1,
  .property-head h1,
  .dossier-head h1 {
    font-size: 30px;
    line-height: 1.08;
  }

  .page-actions,
  .property-actions,
  .quick-filters {
    gap: 8px;
  }

  .tabs {
    min-height: 54px;
    padding: 5px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .tab,
  .button,
  .quick-filter {
    min-height: 44px;
  }

  .tab {
    scroll-snap-align: start;
  }

  .mini-button {
    min-height: 40px;
  }

  .form-row,
  .document-entry-grid {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap table {
    min-width: min(680px, calc(100vw - 28px));
  }

  .account-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .authenticated-site .topbar {
    position: sticky;
  }

  .authenticated-site .brand strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-drawer {
    right: 0;
    left: auto;
    width: min(calc(var(--mobile-viewport-width, 100vw) - 24px), 380px);
  }

  .mobile-menu-button strong {
    display: none;
  }

  .authenticated-site .page-shell {
    width: min(100% - 18px, 1480px);
  }

  .panel,
  .control-block {
    padding: 14px;
  }

  .panel-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .panel-title > * {
    min-width: 0;
  }

  .page-actions,
  .property-actions,
  .quick-filters {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .page-actions .button,
  .property-actions .button,
  .quick-filter,
  .button-stack .button,
  .form-grid > .button {
    width: 100%;
  }

  .table-wrap table {
    min-width: 0;
  }

  .table-wrap table[data-mobile-labels="ready"],
  .table-wrap table[data-mobile-labels="ready"] thead,
  .table-wrap table[data-mobile-labels="ready"] tbody,
  .table-wrap table[data-mobile-labels="ready"] tr,
  .table-wrap table[data-mobile-labels="ready"] td {
    display: block;
    width: 100%;
  }

  .table-wrap table[data-mobile-labels="ready"] {
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
  }

  .table-wrap table[data-mobile-labels="ready"] thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .table-wrap table[data-mobile-labels="ready"] thead tr,
  .table-wrap table[data-mobile-labels="ready"] thead th {
    display: none;
  }

  .table-wrap table[data-mobile-labels="ready"] tr {
    margin: 0 0 10px;
    overflow: hidden;
    border: 1px solid rgba(225, 229, 223, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-hairline);
  }

  .table-wrap table[data-mobile-labels="ready"] td {
    display: grid;
    grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(225, 229, 223, 0.74);
  }

  .table-wrap table[data-mobile-labels="ready"] td:last-child {
    border-bottom: 0;
  }

  .table-wrap table[data-mobile-labels="ready"] td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .help-tip:not(:hover):not(:focus) .help-bubble,
  .topbar-help:not(:hover):not(:focus-within) .topbar-help-bubble {
    display: none;
  }

  .help-bubble {
    right: 0;
    left: auto;
    width: min(280px, calc(100vw - 48px));
    transform: translateY(4px);
  }

  .help-bubble::after {
    right: 3px;
    left: auto;
  }

  .help-tip:hover .help-bubble,
  .help-tip:focus .help-bubble {
    transform: translateY(0);
  }
}

@media (max-width: 420px) {
  .mobile-bottom-nav {
    gap: 2px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .mobile-bottom-link {
    min-height: 50px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .mobile-bottom-link span {
    font-size: 18px;
  }

  .mobile-bottom-link strong {
    font-size: 10px;
  }
}

@media print {
  :root {
    --bg: white;
    --surface: white;
    --shadow: none;
  }

  body {
    background: white;
    color: #111;
    font-size: 11px;
  }

  .no-print,
  .topbar,
  .tabs {
    display: none !important;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .dossier-head {
    margin-bottom: 10px;
  }

  .dossier-head h1 {
    font-size: 24px;
  }

  .dossier-summary {
    grid-template-columns: repeat(4, 1fr);
  }

  .panel,
  .print-section,
  .dossier-summary div {
    box-shadow: none;
    break-inside: avoid;
  }

  th,
  td {
    padding: 5px 6px;
  }

  a {
    color: #111;
  }
}
