:root {
  color-scheme: dark;
  --bg: #2d1b16;
  --surface: #17191f;
  --surface-2: #201e1f;
  --surface-3: #302a28;
  --border: #59483f;
  --border-soft: #3e3430;
  --text: #f3f0eb;
  --muted: #b6aaa0;
  --blue: #77baff;
  --blue-hover: #a8d3ff;
  --green: #17b77e;
  --green-soft: #123c32;
  --amber: #e7a93b;
  --red: #d84c4c;
  --chrome: #17191f;
  --chrome-soft: #1c1b1d;
  --field-surface: #111316;
  --item-surface: #1b1b1e;
  --on-accent: #11263a;
  --focus-ring: rgba(119, 186, 255, .2);
  --page-background-color: #2d1b16;
  --page-background-image:
    radial-gradient(ellipse 90% 68% at 12% 4%, rgba(181, 124, 91, .18) 0%, rgba(94, 57, 43, .08) 45%, transparent 72%),
    radial-gradient(ellipse 80% 70% at 92% 88%, rgba(92, 51, 39, .28) 0%, rgba(50, 31, 27, .12) 50%, transparent 78%),
    linear-gradient(180deg, #2d1b16 0%, #251814 55%, #201512 100%);
  --radius: 6px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-size: 14px; }
body.operational-page,
body.about-page {
  background-color: var(--page-background-color);
  background-image: var(--page-background-image);
}
body.page-transition { animation: page-fade-in .16s ease-out; }
body.page-transition.page-fade-out {
  opacity: 0;
  animation: none;
  transition: opacity .12s ease-in;
}
.startup-brand-pending body.operational-page > :not(.startup-brand) { visibility: hidden; }
.startup-brand-pending body.page-transition { animation: none; }
.startup-brand-pending .startup-brand { visibility: visible; }
button, input, textarea, select { font: inherit; }
button, label[for] { -webkit-tap-highlight-color: transparent; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.app-header { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: var(--chrome); border-bottom: 1px solid var(--border-soft); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 44px;
  height: 32px;
  position: relative;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #3f83d5;
  border-radius: 4px 9px 4px 9px;
  background: #0b2138;
  color: #8fc1fb;
  font-size: 11px;
  font-weight: 800;
}
.brand-mark::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(143, 193, 251, .34); border-radius: 2px 6px 2px 6px; }
.brand-mark::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 6px; height: 6px; border-radius: 1px; background: #35d4e8; }
.brand strong { display: block; font-size: 16px; }
.brand-copy span { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle { background: transparent; }
.theme-toggle [hidden] { display: none; }

.intro-callout {
  padding: 7px 28px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--chrome-soft);
}
.intro-callout-inner {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-left: 16px;
  border-left: 2px solid var(--blue);
}
.intro-callout p {
  max-width: 820px;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.45;
}
.intro-learn-more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 2px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .03em;
  text-decoration: none;
  text-transform: uppercase;
}
.intro-learn-more svg { width: 16px; height: 16px; transition: transform .16s ease; }
.intro-learn-more:hover { color: var(--blue-hover); }
.intro-learn-more:hover svg { transform: translateX(3px); }
.intro-learn-more:focus-visible,
.about-back-link:focus-visible,
.about-brand:focus-visible,
.about-document a:focus-visible {
  outline: 2px solid #75afff;
  outline-offset: 4px;
  border-radius: 2px;
}

/*
 * O visual recupera a navegação anterior do projeto: opções transparentes e uma
 * linha inferior para o módulo ativo. A rolagem lateral acrescentada depois é
 * preservada para manter as três opções acessíveis em telas estreitas.
 */
.mode-tabs {
  position: relative;
  display: flex;
  gap: 4px;
  min-height: 46px;
  padding: 0 28px;
  background: var(--chrome-soft);
  border-bottom: 1px solid var(--border-soft);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 28px;
  scroll-snap-type: inline proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.mode-tabs::-webkit-scrollbar { height: 4px; }
.mode-tabs::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.mode-tabs::-webkit-scrollbar-track { background: transparent; }
.mode-tabs::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: var(--border);
}
.tab-button {
  position: relative;
  flex: 0 0 auto;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  box-shadow: none;
  transition: color .16s ease;
  scroll-snap-align: start;
  white-space: nowrap;
}
.tab-button:hover { color: var(--text); }
.tab-button.active {
  color: var(--text);
  background: transparent;
}
.tab-button.active::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 2px;
  background: var(--blue);
}
.tab-button:focus-visible {
  outline: 2px solid #75afff;
  outline-offset: -3px;
}
.support-tab {
  align-self: center;
  min-height: 38px;
  margin-left: 6px;
  padding: 0 11px;
  font-size: 11px;
}
.support-tab svg { width: 14px; height: 14px; }
.support-tab.active::after { bottom: -4px; }

main { width: 100%; max-width: none; margin: 0; padding: 20px 28px 40px; }
.privacy-strip { display: block; padding: 0; border: 1px solid var(--border-soft); background: var(--chrome-soft); color: #c7ded6; border-radius: var(--radius); margin-bottom: 6px; }
.privacy-strip svg { color: #35d399; }
.privacy-strip summary { display: flex; align-items: center; gap: 9px; padding: 7px 11px; }
.privacy-strip summary > span { color: #8ec7b4; font-size: 12px; }
.environment-detail { padding: 0 11px 10px 38px; font-size: 12px; line-height: 1.5; }
.privacy-strip:has(.warning) { border-color: #66572e; background: #211c11; }
.privacy-strip:has(.preparation-failed) { border-color: #744040; background: #251414; }
.privacy-strip .warning { color: #ffd58a; }
.privacy-strip .preparation-failed { color: #ff9b9b; }
.temporal-preflight { margin-bottom: 10px; padding: 0; border: 1px solid var(--border-soft); border-left: 3px solid #64748b; background: var(--chrome-soft); border-radius: var(--radius); }
#create-panel > .temporal-preflight,
#audit-panel > .temporal-preflight { margin-top: 0; margin-bottom: 14px; }
.temporal-preflight-heading { display: flex; align-items: center; gap: 14px; padding: 8px 11px; }
.temporal-preflight h2 { margin: 0; font-size: 13px; line-height: 1.25; }
.temporal-preflight-heading > strong { margin-left: auto; color: var(--muted); font-size: 10px; line-height: 1.25; letter-spacing: .06em; white-space: nowrap; }
.temporal-preflight details > p { margin: 0; padding: 0 11px 9px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.privacy-strip summary, .temporal-preflight summary { cursor: pointer; list-style: none; border-radius: var(--radius); }
.privacy-strip summary::-webkit-details-marker, .temporal-preflight summary::-webkit-details-marker { display: none; }
.privacy-strip summary::after, .temporal-preflight summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); flex: 0 0 6px; margin-left: auto; }
.temporal-preflight summary::after { margin-left: 0; }
.privacy-strip details[open] > summary::after, .temporal-preflight details[open] > summary::after { transform: rotate(45deg); }
.privacy-strip summary:focus-visible, .temporal-preflight summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.temporal-preflight.pending .temporal-preflight-heading > strong::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: middle; animation: preparation-pulse 1.2s ease-in-out infinite alternate; }
@keyframes preparation-pulse { to { opacity: .6; } }

.startup-brand { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; pointer-events: none; background-color: var(--page-background-color); background-image: var(--page-background-image); animation: startup-brand-fade 2000ms linear both; }
.startup-brand .brand { flex-direction: column; gap: 16px; text-align: center; }
.startup-brand .brand-mark { width: 66px; height: 48px; flex-basis: 48px; font-size: 16px; }
.startup-brand .brand strong { font-size: 26px; }
.startup-brand .brand-copy span { font-size: 14px; margin-top: 5px; }
@keyframes startup-brand-fade { 0% { opacity: 0; } 38.4%, 71.2% { opacity: 1; } 100% { opacity: 0; } }
.temporal-preflight.coherent { border-left-color: var(--green); }
.temporal-preflight.coherent .temporal-preflight-heading > strong { color: #75deb7; }
.temporal-preflight.warning { border-color: #66572e; border-left-color: var(--amber); background: #211c11; }
.temporal-preflight.warning .temporal-preflight-heading > strong { color: #ffd073; }
.temporal-preflight.error { border-color: #744040; border-left-color: var(--red); background: #251414; }
.temporal-preflight.error .temporal-preflight-heading > strong { color: #ff9b9b; }
.temporal-preflight.preparation-failed { border-color: #744040; border-left-color: var(--red); background: #251414; }
.temporal-preflight.preparation-failed .temporal-preflight-heading > strong { color: #ff9b9b; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.eyebrow { margin: 0 0 4px; color: var(--blue); font-size: 11px; font-weight: 700; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 24px; letter-spacing: 0; }
h2 { margin-bottom: 14px; font-size: 15px; letter-spacing: 0; }

.workspace-grid, .audit-grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.form-panel { padding: 20px; border-right: 1px solid var(--border); background: var(--surface-2); }
.evidence-panel, .audit-results { min-width: 0; padding: 20px; }
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 650; color: var(--text); }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
input, textarea, select { width: 100%; border: 1px solid var(--border); border-radius: 4px; background: var(--field-surface); color: var(--text); padding: 9px 10px; outline: none; }
input { height: 38px; }
textarea { resize: vertical; line-height: 1.45; }
select { min-height: 38px; margin-bottom: 7px; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 2px var(--focus-ring); }
input.invalid, textarea.invalid { border-color: var(--red); }
.input-action { display: grid; grid-template-columns: 1fr 38px; }
.input-action input { border-radius: 4px 0 0 4px; }
.input-action .icon-button { border-radius: 0 4px 4px 0; border-left: 0; }

.button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 4px; padding: 8px 13px; color: #fff; font-weight: 650; cursor: pointer; text-decoration: none; }
.button.primary { color: var(--on-accent); background: var(--blue); }
.button.primary:hover { background: var(--blue-hover); }
.button.success { background: var(--green); }
.button.secondary { background: var(--surface-3); border-color: var(--border); }
.button.danger { color: #ffb4b4; border-color: #663b3b; }
.button.ghost { background: transparent; }
.button.full { width: 100%; margin-top: 8px; }
.button:disabled, .button.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.icon-button { width: 38px; height: 38px; display: inline-grid; place-items: center; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; cursor: pointer; }
.icon-button:hover { color: var(--text); border-color: var(--muted); }
.icon-button:disabled { opacity: .4; color: #728090; cursor: not-allowed; pointer-events: none; }
.text-command { color: var(--blue); background: transparent; border: 0; padding: 0; font-size: 11px; cursor: pointer; }
.text-command:hover { color: var(--blue-hover); }
.tab-button:disabled, .text-command:disabled,
input:disabled, textarea:disabled, select:disabled { opacity: .5; cursor: not-allowed; }
body.routine-active { cursor: progress; }

.panel-heading { min-height: 40px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.panel-heading h2 { margin-bottom: 4px; }
.panel-heading p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.empty-state { min-height: 310px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed var(--border); color: var(--muted); }
.empty-state svg { width: 32px; height: 32px; margin-bottom: 12px; color: var(--muted); }
.empty-state strong { color: var(--text); margin-bottom: 5px; }
.empty-state.compact { min-height: 320px; }

.evidence-list { display: grid; gap: 8px; }
.evidence-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 12px; border: 1px solid var(--border-soft); background: var(--item-surface); border-radius: 4px; }
.evidence-main { min-width: 0; }
.evidence-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.evidence-title-line { min-width: 0; display: flex; align-items: center; gap: 7px; }
.evidence-title-line strong { min-width: 0; }
.evidence-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 6px; color: var(--muted); font-size: 11px; }
.hash { font-family: Consolas, monospace; }
.badge { display: inline-flex; align-items: center; padding: 3px 6px; border-radius: 3px; background: #2b3643; color: #b9c5d1; font-size: 10px; font-weight: 700; }
.badge.ok { background: var(--green-soft); color: #80e6c2; }
.badge.pending { background: #40331b; color: #f0c575; }
.evidence-actions { display: flex; gap: 6px; }
.evidence-actions .icon-button { width: 32px; height: 32px; }

.workflow-band { margin-top: 14px; min-height: 84px; display: grid; grid-template-columns: 230px 230px 1fr; align-items: center; gap: 18px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.step > span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; font-weight: 700; }
.step strong, .step small { display: block; }
.step strong { color: var(--text); font-size: 12px; }
.step small { margin-top: 3px; font-size: 10px; }
.step.current > span { background: var(--blue); border-color: var(--blue); color: var(--on-accent); }
#step-two.current > span { background: var(--green); border-color: var(--green); }
.step.complete > span { background: var(--green); border-color: var(--green); color: white; }
.workflow-actions { display: flex; justify-content: flex-end; gap: 8px; }

.signature-validation-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin-top: 10px; padding: 11px 12px; border: 1px solid #5b4b27; border-radius: var(--radius); background: #211b10; color: #e6d7b4; }
.signature-validation-note svg { margin-top: 1px; color: var(--amber); }
.signature-validation-note p { margin: 0; font-size: 12px; line-height: 1.5; }
.signature-validation-note a { color: #8dc5ff; overflow-wrap: anywhere; }
.signature-validation-note.compact { margin: 2px 0 12px; padding: 10px; }

.activity-panel { margin-top: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.activity-panel .panel-heading { min-height: auto; margin-bottom: 8px; align-items: center; }
.activity-panel h2 { margin: 0; }
.activity-panel .icon-button { width: 30px; height: 30px; }
.log-actions { display: flex; align-items: center; gap: 6px; }
.activity-indicator { display: grid; gap: 5px; margin: 0 0 9px; }
.activity-label { color: var(--muted); font-size: 10px; line-height: 1.35; }
.activity-track { width: 100%; height: 4px; overflow: hidden; border-radius: 2px; background: var(--surface-3); }
.activity-track span { width: 100%; height: 100%; display: block; transform: scaleX(0); transform-origin: left center; background: var(--blue); animation: activity-cycle 1.8s ease-in-out infinite; }
.log-frame { padding: 4px; border: 1px solid #425064; border-radius: 6px; background: #111625; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 7px -2px rgba(0, 0, 0, .28); }
.log-box { height: 155px; overflow: auto; padding: 10px; background: #080c10; border: 1px solid #273446; border-radius: 3px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -3px 7px rgba(0, 0, 0, .34); color: #71d9b3; font: 11px/1.55 Consolas, monospace; white-space: pre-wrap; }
.log-entry.error { color: #ff9494; }
.log-entry.warning { color: #ffd073; }

.audit-content { display: grid; gap: 12px; }
.audit-header { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.metric { padding: 10px; border: 1px solid var(--border-soft); background: var(--item-surface); }
.metric span, .metric strong { display: block; }
.metric span { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.metric strong { margin-top: 5px; overflow-wrap: anywhere; font-size: 12px; }
.result-row { display: grid; grid-template-columns: minmax(0, 1fr) 145px auto; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--border-soft); }
.result-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-file { min-width: 0; }
.result-file > strong { display: block; }
.auxiliary-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.result-row .button { min-height: 30px; padding: 5px 9px; font-size: 11px; }
.result-status { font-size: 11px; font-weight: 700; color: #77dfb9; }
.result-status.bad { color: #ff8f8f; }
.result-status.warning { color: #f0c575; }
.declaration-checks { border: 1px solid var(--border-soft); background: var(--item-surface); }
.declaration-check-row { display: grid; grid-template-columns: minmax(0, 1fr) 210px; align-items: center; gap: 10px; padding: 10px; }
.declaration-check-row + .declaration-check-row { border-top: 1px solid var(--border-soft); }
.declaration-check-note { margin: 0; padding: 0 10px 10px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.result-row.photo-result { padding-left: 24px; background: #0d131a; }
.result-row.photo-result strong { color: #c4cfda; font-size: 11px; }
.result-row.document-result { padding-left: 24px; background: #101721; }
.result-row.document-result strong { color: #c8d5e2; font-size: 11px; }
.audit-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 8px; }
.save-control { min-width: 62px; display: grid; gap: 4px; }
.save-control .button { width: 100%; }
.inline-activity { width: 100%; }
.inline-activity .activity-track { height: 3px; }

.c2pa-indicator, .file-info-button { min-height: 24px; border: 1px solid #506071; border-radius: 3px; background: #18212b; color: #aab6c3; font: 700 9px/1 system-ui, sans-serif; letter-spacing: .04em; cursor: pointer; }
.c2pa-indicator { position: relative; flex: 0 0 auto; padding: 4px 6px; }
.c2pa-indicator.detected { border-color: #4b83b9; background: #17314a; color: #b9ddff; }
.c2pa-indicator.muted { opacity: .68; }
.c2pa-indicator::after { position: absolute; z-index: 20; left: 0; top: calc(100% + 7px); width: min(310px, 72vw); padding: 8px 9px; border: 1px solid #526477; border-radius: 4px; background: #0a0f14; color: #e2e8f0; box-shadow: 0 8px 22px rgba(0,0,0,.42); content: attr(data-tooltip); font: 400 11px/1.4 system-ui, sans-serif; letter-spacing: normal; text-align: left; opacity: 0; pointer-events: none; transform: translateY(-3px); transition: opacity .12s ease, transform .12s ease; }
.c2pa-indicator:hover::after, .c2pa-indicator:focus-visible::after { opacity: 1; transform: translateY(0); }
.file-info-button { padding: 4px 7px; border-color: transparent; background: transparent; color: #8dc5ff; font-weight: 600; letter-spacing: 0; text-decoration: underline; text-underline-offset: 2px; }
.file-info-button:hover, .file-info-button:focus-visible { color: #c4e3ff; }
.file-info-button:disabled { color: var(--muted); cursor: not-allowed; text-decoration: none; }

dialog { width: min(760px, calc(100vw - 30px)); max-height: calc(100vh - 30px); padding: 0; border: 1px solid #4a596a; border-radius: var(--radius); background: #121820; color: var(--text); box-shadow: 0 20px 80px rgba(0, 0, 0, .55); }
dialog::backdrop { background: rgba(0, 0, 0, .7); }
#metadata-form { max-height: calc(100vh - 30px); overflow: auto; padding: 20px; }
.file-info-dialog-body { max-height: calc(100vh - 30px); overflow: auto; padding: 20px; }
.file-info-name { max-width: 620px; margin: 5px 0 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.file-info-notice { margin-bottom: 14px; padding: 11px 12px; border: 1px solid #66572e; background: #211c11; color: #e9dab4; }
.file-info-notice strong { font-size: 12px; }
.file-info-notice p, .external-service-note, .file-info-engine, .file-info-empty { margin: 5px 0 0; font-size: 11px; line-height: 1.5; }
.file-info-section { padding: 13px 0; border-top: 1px solid var(--border-soft); }
.file-info-section h3 { margin: 0 0 8px; font-size: 14px; }
.file-info-section > p { color: #cbd5df; }
.external-service-note { color: var(--muted) !important; }
.external-service-note a { color: #9dceff; font-weight: 650; }
.file-info-fields { display: grid; grid-template-columns: minmax(150px, .75fr) minmax(0, 1.25fr); gap: 0; margin: 10px 0 0; border: 1px solid var(--border-soft); }
.file-info-fields dt, .file-info-fields dd { margin: 0; padding: 7px 8px; border-bottom: 1px solid var(--border-soft); overflow-wrap: anywhere; font-size: 11px; }
.file-info-fields dt { color: var(--muted); background: #0e141b; }
.file-info-fields dd { color: var(--text); }
.file-info-fields > :nth-last-child(-n+2) { border-bottom: 0; }
.gps-control { margin-top: 12px; }
.technical-tracks { display: grid; gap: 10px; margin-top: 8px; }
.technical-tracks section { padding: 9px; border: 1px solid var(--border-soft); background: #0f151c; }
.technical-tracks h4 { margin: 0; font-size: 11px; }
.file-info-section details { margin-top: 12px; }
.file-info-section summary { color: #a9d1fa; font-size: 12px; font-weight: 650; cursor: pointer; }
.pdf-metadata { margin-top: 12px; }
.pdf-metadata-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.pdf-metadata-source { margin-top: 13px; padding: 10px; border: 1px solid var(--border-soft); background: #0f151c; }
.pdf-metadata-source h4 { margin: 0; font-size: 12px; }
.pdf-metadata-source .file-info-fields { margin-top: 8px; }
#file-info-pdf-xmp-raw-text { max-height: 280px; margin: 8px 0 0; padding: 10px; overflow: auto; border: 1px solid var(--border-soft); background: #090d12; color: #d7e0e9; font: 10px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.dialog-heading h2 { margin: 0; max-width: 640px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.full-span { grid-column: 1 / -1; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.optional-label { margin-left: 5px; color: var(--muted); font-size: 10px; font-weight: 400; }
.photo-picker, .document-picker { display: flex; align-items: center; gap: 10px; }
.photo-picker .button, .document-picker .button { flex: 0 0 auto; }
.photo-picker > span, .document-picker > span { min-width: 0; color: var(--muted); font-size: 11px; }
.photo-list, .document-list { display: grid; gap: 6px; margin-top: 8px; }
.photo-item, .document-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid var(--border-soft); background: #0d1218; }
.photo-item div, .document-item div { min-width: 0; }
.photo-item strong, .photo-item small, .document-item strong, .document-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-item strong, .document-item strong { font-size: 11px; }
.photo-item small, .document-item small { margin-top: 3px; color: var(--muted); font: 10px Consolas, monospace; }
.photo-item .icon-button, .document-item .icon-button { width: 30px; height: 30px; }

/* A qualificação adapta a linguagem visual documental do checklist ao fluxo operacional. */
#metadata-dialog {
  width: min(1180px, calc(100vw - 30px));
  overflow: hidden;
  --qualification-navy: #10243e;
  --qualification-accent: #77baff;
  --qualification-paper: #17191f;
  --qualification-canvas: #201e1f;
  --qualification-line: #59483f;
  --qualification-line-soft: #3e3430;
  --qualification-field: #111316;
  --text: #f3f0eb;
  --muted: #b6aaa0;
  --focus-ring: rgba(119, 186, 255, .24);
  color: var(--text);
  border-color: var(--qualification-line);
  background: var(--qualification-paper);
}
#metadata-dialog::backdrop { background: rgba(5, 8, 12, .92); }
#metadata-form { padding: 0; }
#metadata-dialog .dialog-heading { min-height: 96px; align-items: center; margin: 0; padding: 18px 22px; border-bottom: 4px solid var(--qualification-accent); background: var(--qualification-navy); color: #fff; }
#metadata-dialog .dialog-heading .eyebrow { margin-bottom: 4px; color: #b8d8ff; }
#metadata-dialog .dialog-heading h2 { color: #fff; }
#metadata-dialog .qualification-intro { margin: 5px 0 0; color: #d5e2f1; font-size: 12px; }
#metadata-dialog .dialog-heading .icon-button { color: #e7eff8; border-color: #6683a8; background: rgba(255, 255, 255, .06); }
#metadata-dialog .dialog-heading .icon-button:hover { color: #fff; border-color: #9eb9dc; }
#metadata-dialog .qualification-layout { display: grid; grid-template-columns: minmax(0, 1fr) 286px; align-items: start; background: var(--qualification-paper); }
#metadata-dialog .qualification-main { min-width: 0; padding: 20px 22px 4px; }
#metadata-dialog .qualification-section { padding: 0 0 20px; }
#metadata-dialog .qualification-section + .qualification-section { padding-top: 20px; border-top: 1px solid var(--qualification-line-soft); }
#metadata-dialog .qualification-section-heading { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 10px; margin-bottom: 14px; }
#metadata-dialog .qualification-section-number { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--qualification-accent); border-radius: 50%; color: #d9eaff; background: #173a60; font-size: 12px; font-weight: 800; }
#metadata-dialog .qualification-section-heading h3 { margin: 0; color: var(--text); font-size: 15px; }
#metadata-dialog .qualification-section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
#metadata-dialog .dialog-grid { gap: 14px 18px; }
#metadata-dialog .field { margin: 0; }
#metadata-dialog .field > label { margin-bottom: 6px; color: var(--text); font-size: 12px; font-weight: 750; }
#metadata-dialog input:not([type="file"]):not([type="radio"]),
#metadata-dialog textarea,
#metadata-dialog select { border-color: var(--qualification-line); border-radius: 5px; background: var(--qualification-field); }
#metadata-dialog .required-mark { color: #ff8f8f; }
#metadata-dialog .qualification-textarea { resize: none; overflow-y: auto; }
#metadata-dialog .qualification-textarea.compact { min-height: 76px; max-height: 76px; }
#metadata-dialog .qualification-textarea.procedure { min-height: 118px; max-height: 118px; }
#metadata-dialog .source-type-group { min-width: 0; padding: 0; border: 0; }
#metadata-dialog .source-type-group legend { margin-bottom: 7px; padding: 0; font-size: 13px; font-weight: 700; }
#metadata-dialog .source-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
#metadata-dialog .source-type-option { min-width: 0; min-height: 58px; display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 11px 12px; border: 1px solid var(--qualification-line); border-radius: 7px; background: var(--qualification-field); cursor: pointer; }
#metadata-dialog .source-type-option:hover { border-color: var(--qualification-accent); }
#metadata-dialog .source-type-option:focus-within { outline: 3px solid var(--focus-ring); border-color: var(--qualification-accent); }
#metadata-dialog .source-type-option:has(input:checked) { border-color: var(--qualification-accent); background: #182a3a; box-shadow: inset 3px 0 0 var(--qualification-accent); }
#metadata-dialog .source-type-option input[type="radio"] { appearance: auto; width: 18px; min-width: 18px; height: 18px; min-height: 0; flex: 0 0 18px; margin: 1px 0 0; padding: 0; border: 0; background: initial; accent-color: var(--qualification-accent); }
#metadata-dialog .source-type-copy { min-width: 0; display: block; font-size: 12px; line-height: 1.35; }
#metadata-dialog .source-type-copy strong, #metadata-dialog .source-type-copy small { display: block; }
#metadata-dialog .source-type-copy strong { color: var(--text); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
#metadata-dialog .source-type-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
#metadata-dialog .attachment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#metadata-dialog .photo-field,
#metadata-dialog .document-field { padding: 14px; border: 1px dashed #6a594f; border-radius: 8px; background: #1b1b1e; }
#metadata-dialog .photo-field .button,
#metadata-dialog .document-field .button { min-height: 30px; padding: 6px 9px; border-color: #6a594f; color: var(--text); background: #302a28; font-size: 10px; }
#metadata-dialog .qualification-aside { min-width: 0; align-self: stretch; padding: 22px 18px; border-left: 1px solid var(--qualification-line-soft); background: var(--qualification-canvas); }
#metadata-dialog .custody-badge { display: inline-flex; margin-bottom: 10px; padding: 5px 8px; border-radius: 999px; color: #80e6c2; background: #123c32; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
#metadata-dialog .qualification-aside h3 { margin: 0; font-size: 16px; }
#metadata-dialog .qualification-aside-intro { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
#metadata-dialog .qualification-checklist { margin-top: 20px; }
#metadata-dialog .qualification-checklist > strong { display: block; margin-bottom: 9px; font-size: 12px; }
#metadata-dialog .qualification-checklist ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
#metadata-dialog .qualification-status { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; padding: 9px; border: 1px solid transparent; border-radius: 7px; font-size: 11px; line-height: 1.35; }
#metadata-dialog .qualification-status .status-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; }
#metadata-dialog .qualification-status .status-text { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 750; }
#metadata-dialog .qualification-status.pending .status-icon { background: #302a28; }
#metadata-dialog .qualification-status.pending .status-icon::before { content: "·"; color: #b6aaa0; }
#metadata-dialog .qualification-status.in-progress { border-color: #705526; background: #302712; }
#metadata-dialog .qualification-status.in-progress .status-icon { background: #463817; }
#metadata-dialog .qualification-status.in-progress .status-icon::before { content: "…"; color: #f0c575; }
#metadata-dialog .qualification-status.complete { border-color: #285b4b; background: #123c32; }
#metadata-dialog .qualification-status.complete .status-icon { color: #80e6c2; background: #1b5141; }
#metadata-dialog .qualification-status.complete .status-icon::before { content: "\2713"; }
#metadata-dialog .qualification-status.optional .status-icon { color: #8fc6ff; background: #1a334a; }
#metadata-dialog .qualification-status.optional .status-icon::before { content: "+"; }
#metadata-dialog .qualification-declaration-note { margin-top: 20px; padding: 13px; border: 0; border-left: 3px solid #b07a1f; border-radius: 0; background: #2a2111; }
#metadata-dialog .qualification-declaration-note strong { color: #f0c575; font-size: 12px; }
#metadata-dialog .qualification-declaration-note p { margin: 5px 0 0; color: #dec58f; font-size: 11px; line-height: 1.45; }
#metadata-dialog .dialog-actions { position: sticky; bottom: 0; z-index: 2; align-items: center; justify-content: space-between; gap: 14px; margin: 0; padding: 14px 22px; border-top: 1px solid var(--qualification-line-soft); background: var(--qualification-canvas); }
#metadata-dialog .dialog-actions > div { display: flex; gap: 8px; }
#metadata-dialog .qualification-completion { color: var(--muted); font-size: 10px; line-height: 1.4; }
#metadata-dialog .qualification-completion.complete { color: #80e6c2; font-weight: 700; }
#metadata-dialog .button.primary { color: #11263a; background: #77baff; }
#metadata-dialog .button.primary:hover { background: #a8d3ff; }
#metadata-dialog #cancel-metadata { border-color: #6a594f; color: var(--text); background: #302a28; }

#metadata-review-dialog {
  width: min(820px, calc(100vw - 30px));
  overflow: hidden;
  --review-navy: #10243e;
  --review-accent: #77baff;
  --review-surface: #17191f;
  --review-canvas: #201e1f;
  --review-line: #59483f;
  --review-line-soft: #3e3430;
  --review-field: #111316;
  --review-text: #f3f0eb;
  --review-muted: #b6aaa0;
  --review-secondary: #302a28;
  --review-primary: #77baff;
  --review-on-primary: #11263a;
  color: var(--review-text);
  border-color: var(--review-line);
  background: var(--review-surface);
}
#metadata-review-dialog::backdrop { background: rgba(5, 8, 12, .92); }
.metadata-review-body { max-height: calc(100vh - 30px); overflow: auto; }
#metadata-review-dialog .dialog-heading { align-items: center; margin: 0; padding: 18px 20px; color: #fff; border-bottom: 4px solid var(--review-accent); background: var(--review-navy); }
#metadata-review-dialog .dialog-heading .eyebrow { margin-bottom: 4px; color: #a9d1f2; }
#metadata-review-dialog .dialog-heading h2 { color: #fff; }
#metadata-review-dialog .dialog-heading .icon-button { color: #fff; border-color: #68819d; background: rgba(255, 255, 255, .06); }
.metadata-review-file-name { max-width: 680px; margin: 5px 0 0; overflow: hidden; color: #c9d8e7; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.metadata-review-intro { margin: 0; padding: 15px 20px 0; color: var(--review-muted); font-size: 12px; line-height: 1.5; }
.metadata-review-content { display: grid; gap: 17px; padding: 17px 20px 20px; }
.metadata-review-content section { padding-top: 17px; border-top: 1px solid var(--review-line-soft); }
.metadata-review-content section:first-child { padding-top: 0; border-top: 0; }
.metadata-review-content h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--review-text); font-size: 13px; }
.metadata-review-content h3 span { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 23px; border-radius: 50%; color: var(--review-on-primary); background: var(--review-accent); font-size: 10px; }
.metadata-review-content dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.metadata-review-content dl > div { min-width: 0; padding: 10px 11px; border: 1px solid var(--review-line); border-radius: 6px; background: var(--review-field); }
.metadata-review-content dl > div.wide { grid-column: 1 / -1; }
.metadata-review-content dt { margin: 0 0 4px; color: var(--review-muted); font-size: 9px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.metadata-review-content dd { margin: 0; color: var(--review-text); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
#metadata-review-dialog .dialog-actions { position: sticky; bottom: 0; z-index: 2; justify-content: flex-end; margin: 0; padding: 13px 20px; border-top-color: var(--review-line); background: var(--review-canvas); }
#metadata-review-dialog .button.secondary { border-color: var(--review-line); color: var(--review-text); background: var(--review-secondary); }
#metadata-review-dialog .button.primary { color: var(--review-on-primary); background: var(--review-primary); }
.datetime-entry { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 7px; }
.datetime-picker-control {
  width: 42px;
  height: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid var(--qualification-line);
  border-radius: 5px;
  appearance: none;
  background: var(--qualification-canvas);
  color: var(--blue);
  cursor: pointer;
}
.datetime-picker-control:hover { border-color: var(--qualification-accent); }
.datetime-picker-control svg { pointer-events: none; }
.datetime-picker-control:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
#metadata-dialog .datetime-picker-native {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* O módulo educativo permanece visual e funcionalmente separado do núcleo forense. */
.guidance-heading { align-items: center; }
.guidance-intro-strip { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 11px; margin-bottom: 18px; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.guidance-intro-strip svg { color: var(--blue); }
.guidance-intro-strip strong, .guidance-intro-strip span { display: block; }
.guidance-intro-strip strong { margin-bottom: 3px; color: var(--text); font-size: 12px; }
.guidance-intro-strip span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.guidance-root { width: 100%; min-height: 520px; }
.guidance-kicker { margin: 0 0 12px; color: var(--blue); font-size: 10px; font-weight: 700; text-transform: uppercase; }
/*
 * A orientação privilegia leitura breve e consulta. Ela não reproduz um
 * fluxo operacional, reforçando visualmente que este é um módulo de apoio.
 */
.guidance-heading-copy { max-width: 760px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.guidance-root { min-height: 0; }
.guidance-overview { padding: 22px; border: 1px solid var(--border); border-left: 3px solid var(--blue); background: var(--surface); }
.guidance-overview > h2, .guidance-section-title h2, .guidance-stop h2 { margin: 0; font-size: 18px; line-height: 1.3; }
.guidance-overview > p:not(.guidance-kicker) { max-width: 900px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.guidance-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 20px; border-top: 1px solid var(--border-soft); }
.guidance-principle { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; padding: 16px 18px 0 0; }
.guidance-principle + .guidance-principle { padding-left: 18px; border-left: 1px solid var(--border-soft); }
.guidance-principle > span { color: var(--blue); font: 700 10px Consolas, monospace; }
.guidance-principle h3 { margin: 0 0 5px; font-size: 12px; }
.guidance-principle p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.guidance-recommendations, .guidance-support { margin-top: 28px; }
.guidance-section-title { margin-bottom: 13px; }
.guidance-recommendation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.guidance-recommendation { min-width: 0; padding: 17px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
.guidance-recommendation-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 11px; }
.guidance-number { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--border); color: var(--blue); font: 700 10px Consolas, monospace; }
.guidance-recommendation-heading p { margin: 0 0 3px; color: var(--blue); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.guidance-recommendation h3 { margin: 0; font-size: 13px; line-height: 1.35; }
.guidance-summary { margin: 13px 0 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.guidance-recommendation ul, .guidance-stop ul { margin: 0; padding-left: 17px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.guidance-recommendation li + li, .guidance-stop li + li { margin-top: 7px; }
.guidance-stop { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr); gap: 24px; margin-top: 28px; padding: 20px; border: 1px solid #695326; border-left: 3px solid var(--amber); background: #1f1a10; }
.guidance-stop > div > p:not(.guidance-kicker) { margin: 8px 0 0; color: #c9ba96; font-size: 11px; line-height: 1.55; }
.guidance-stop ul { color: #d1c29d; }
.guidance-support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.guidance-support-item { padding: 16px 18px 16px 0; }
.guidance-support-item + .guidance-support-item { padding-left: 18px; border-left: 1px solid var(--border); }
.guidance-support-item h3 { margin: 0 0 6px; font-size: 12px; }
.guidance-support-item p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.guidance-references { margin-top: 18px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
.guidance-references summary { padding: 12px 14px; color: var(--text); font-size: 11px; font-weight: 600; cursor: pointer; }
.guidance-references > div { padding: 0 14px 14px; border-top: 1px solid var(--border-soft); }
.guidance-references p { margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.guidance-references ul { margin: 11px 0 0; padding-left: 18px; font-size: 10px; line-height: 1.55; }
.guidance-references li + li { margin-top: 5px; }
.guidance-references a { color: var(--blue); overflow-wrap: anywhere; }
.guidance-footer-action { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.guidance-footer-action p { max-width: 720px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.guidance-footer-action .button { flex: 0 0 auto; }

@keyframes activity-cycle {
  0% { transform: scaleX(0); }
  72% { transform: scaleX(1); }
  100% { transform: scaleX(1); }
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 20; display: grid; gap: 8px; width: min(390px, calc(100vw - 36px)); }
.toast { padding: 11px 13px; border: 1px solid #47576a; border-left: 3px solid var(--blue); border-radius: 4px; background: #18212b; color: #e6edf3; box-shadow: 0 10px 35px rgba(0, 0, 0, .35); }
.toast.error { border-left-color: var(--red); }
.toast.warning { border-left-color: var(--amber); }
.hidden, .visually-hidden { display: none !important; }

/* A apresentação pública compartilha a paleta da ferramenta e preserva a caixa lisa. */
.about-page {
  --about-paper: var(--surface);
  --about-paper-soft: var(--surface-2);
  --about-rule: var(--border);
  --about-heading: var(--text);
  --about-copy: #c4ced8;
  --about-accent: var(--blue);
  min-height: 100vh;
}
.about-header {
  position: relative;
  z-index: 2;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .025), 0 8px 28px rgba(0, 0, 0, .12);
}
.about-brand { color: inherit; text-decoration: none; }
.about-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}
.about-back-link:hover { color: var(--text); }
.about-back-link svg { width: 16px; height: 16px; }
.about-main {
  position: relative;
  z-index: 1;
  max-width: none;
  min-height: calc(100vh - 64px);
  padding: 52px 28px 72px;
}
.about-document {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 68px 76px 46px;
  border: 1px solid var(--about-rule);
  border-radius: 3px;
  background-color: var(--about-paper);
  background-image: none;
  box-shadow: 0 36px 100px rgba(0, 0, 0, .48), 0 0 0 1px rgba(245, 214, 178, .08);
  backdrop-filter: none;
}
.about-hero { padding-bottom: 44px; }
.about-kicker {
  margin: 0 0 13px;
  color: var(--about-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.about-hero h1 {
  margin: 0 0 24px;
  color: var(--about-heading);
  font: 650 40px/1.12 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}
.about-hero h1 span { display: block; margin-top: 7px; color: var(--about-copy); font-size: .52em; font-weight: 500; letter-spacing: .01em; }
.about-document .about-version { margin: 10px 0 26px; color: var(--about-accent); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.about-document p { color: var(--about-copy); font-size: 15px; line-height: 1.76; }
.about-document .about-lead { color: var(--about-heading); font-size: 19px; line-height: 1.62; }
.about-section { padding: 38px 0 42px; border-top: 1px solid var(--about-rule); }
.about-section-heading { display: flex; align-items: flex-start; gap: 17px; margin-bottom: 25px; }
.about-section-heading > span {
  min-width: 31px;
  padding-top: 5px;
  color: var(--about-accent);
  font: 700 11px/1 "Segoe UI", Arial, sans-serif;
  letter-spacing: .12em;
}
.about-section-heading p { margin: 0 0 3px; color: var(--about-accent); font-size: 10px; font-weight: 750; letter-spacing: .11em; line-height: 1.4; text-transform: uppercase; }
.about-section h2 {
  margin: 0;
  color: var(--about-heading);
  font: 600 25px/1.25 Georgia, "Times New Roman", serif;
  letter-spacing: -.01em;
}
.about-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 26px;
  padding: 0;
  list-style: none;
}
.about-steps li {
  min-height: 92px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--about-rule);
  background: var(--about-paper-soft);
}
.about-steps li:last-child { grid-column: 1 / -1; }
.about-steps li > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #476988;
  border-radius: 50%;
  color: var(--about-accent);
  font-size: 11px;
  font-weight: 750;
}
.about-steps strong { display: block; margin: 1px 0 4px; color: var(--about-heading); font-size: 13px; }
.about-steps p { margin: 0; font-size: 12px; line-height: 1.5; }
.about-steps code { color: inherit; font: inherit; }
.about-conclusion { padding-left: 16px; border-left: 2px solid #4a7197; }
.about-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  margin: 0 0 22px;
  padding: 15px 17px;
  border: 1px solid #2e5c50;
  background: rgba(19, 67, 54, .34);
}
.about-callout svg { margin-top: 2px; color: #50d2a6; }
.about-callout p { margin: 0; }
.about-callout strong { color: #dbf7ed; }
.about-source-status {
  display: inline-flex;
  margin: 5px 0 0;
  padding: 10px 13px;
  border: 1px solid var(--about-rule);
  background: var(--about-paper-soft);
  color: var(--about-copy);
  font-size: 12px !important;
}
.about-validation-note {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid #725e2d;
  border-left: 3px solid #d3a93d;
  background: rgba(80, 62, 20, .28);
}
.about-validation-note p { margin: 0; color: #e6d8af; }
.about-validation-note strong { color: #fff1c7; }
.about-validation-note a { color: #8bc5ff; font-weight: 700; }
.about-document blockquote {
  margin: 27px 0 0;
  padding: 22px 0 4px 25px;
  border-left: 2px solid #557b9e;
  color: var(--about-heading);
  font: 500 19px/1.62 Georgia, "Times New Roman", serif;
}
.about-document-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 34px;
  border-top: 1px solid var(--about-rule);
}
.about-document-footer p { margin: 0; font-size: 11px; letter-spacing: .04em; }
.about-project-meta { display: grid; gap: 4px; text-align: right; }
.about-project-meta a { color: var(--about-accent); }

/*
 * Soberania Jurídica & Transparência: o tema claro usa superfícies semelhantes
 * a documentos, mantendo o terminal operacional escuro para leitura técnica.
 */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #dac7a1;
  --surface: #fffdf8;
  --surface-2: #f7f0e2;
  --surface-3: #eadfc9;
  --border: #c9b994;
  --border-soft: #dfd2b8;
  --text: #29241d;
  --muted: #6b6256;
  --blue: #6b5334;
  --blue-hover: #4d3924;
  --green: #047857;
  --green-soft: #d1fae5;
  --amber: #b45309;
  --red: #b91c1c;
  --chrome: #fffdf8;
  --chrome-soft: #f7f0e2;
  --field-surface: #fffdf8;
  --item-surface: #fbf7ee;
  --on-accent: #ffffff;
  --focus-ring: rgba(107, 83, 52, .18);
  --page-background-color: #dac7a1;
  --page-background-image:
    radial-gradient(ellipse 92% 72% at 10% 2%, rgba(255, 253, 239, .82) 0%, rgba(246, 230, 198, .38) 45%, transparent 72%),
    radial-gradient(ellipse 82% 72% at 90% 88%, rgba(184, 151, 98, .2) 0%, rgba(218, 195, 151, .1) 48%, transparent 76%),
    linear-gradient(180deg, #eadfc9 0%, #e2d2b4 55%, #dac7a1 100%);
}
html[data-theme="light"] .app-header { background: var(--chrome); }
html[data-theme="light"] .intro-callout { border-color: var(--border-soft); background: var(--chrome-soft); }
html[data-theme="light"] .intro-callout-inner { border-left-color: var(--blue); }
html[data-theme="light"] .intro-callout p { color: var(--text); }
html[data-theme="light"] .intro-learn-more { color: var(--blue); }
html[data-theme="light"] .intro-learn-more:hover { color: var(--blue-hover); }
html[data-theme="light"] .mode-tabs {
  background: var(--chrome-soft);
  border-bottom-color: var(--border);
  scrollbar-color: var(--border) transparent;
}
html[data-theme="light"] .tab-button { color: var(--muted); }
html[data-theme="light"] .tab-button:hover,
html[data-theme="light"] .tab-button.active { color: var(--text); }
html[data-theme="light"] .mode-tabs::-webkit-scrollbar-thumb { background: var(--border); }
html[data-theme="light"] .theme-toggle { color: var(--muted); background: var(--surface); border-color: var(--border); }
html[data-theme="light"] .theme-toggle:hover { color: var(--text); border-color: var(--muted); }
html[data-theme="light"] .privacy-strip { color: #14532d; border-color: var(--border-soft); background: var(--chrome-soft); }
html[data-theme="light"] .privacy-strip summary > span { color: #047857; }
html[data-theme="light"] .privacy-strip:has(.warning) { border-color: #f0c96d; background: #fffbeb; }
html[data-theme="light"] .privacy-strip .warning { color: #92400e; }
html[data-theme="light"] .privacy-strip:has(.preparation-failed) { border-color: #fecaca; background: #fef2f2; }
html[data-theme="light"] .privacy-strip .preparation-failed { color: #b91c1c; }
html[data-theme="light"] .temporal-preflight.coherent .temporal-preflight-heading > strong { color: #047857; }
html[data-theme="light"] .temporal-preflight.warning { border-color: #f0c96d; border-left-color: #b45309; background: #fffbeb; }
html[data-theme="light"] .temporal-preflight.warning .temporal-preflight-heading > strong { color: #92400e; }
html[data-theme="light"] .temporal-preflight.error { border-color: #fecaca; border-left-color: #b91c1c; background: #fef2f2; }
html[data-theme="light"] .temporal-preflight.error .temporal-preflight-heading > strong { color: #b91c1c; }
html[data-theme="light"] .temporal-preflight.preparation-failed { border-color: #fecaca; border-left-color: #b91c1c; background: #fef2f2; }
html[data-theme="light"] .temporal-preflight.preparation-failed .temporal-preflight-heading > strong { color: #b91c1c; }
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .text-command,
html[data-theme="light"] .guidance-kicker { color: var(--blue); }
html[data-theme="light"] .form-panel { background: var(--surface-2); }
html[data-theme="light"] .field label { color: var(--text); }
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select { color: var(--text); border-color: var(--border); background: var(--field-surface); }
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder { color: #968a79; }
html[data-theme="light"] .button.primary { color: var(--on-accent); background: var(--blue); }
html[data-theme="light"] .button.primary:hover { background: var(--blue-hover); }
html[data-theme="light"] .button.success { background: #047857; }
html[data-theme="light"] .button.secondary { color: var(--text); border-color: var(--border); background: var(--surface-3); }
html[data-theme="light"] .button.danger { color: #991b1b; border-color: #b91c1c; }
html[data-theme="light"] .icon-button { color: var(--muted); border-color: var(--border); background: var(--surface-2); }
html[data-theme="light"] .icon-button:hover { color: var(--text); border-color: var(--muted); }
html[data-theme="light"] .empty-state { border-color: var(--border); }
html[data-theme="light"] .empty-state svg { color: var(--muted); }
html[data-theme="light"] .empty-state strong,
html[data-theme="light"] .step strong { color: var(--text); }
html[data-theme="light"] .evidence-item,
html[data-theme="light"] .metric,
html[data-theme="light"] .declaration-checks { background: var(--item-surface); }
html[data-theme="light"] .badge { color: var(--muted); background: var(--surface-3); }
html[data-theme="light"] .badge.ok { color: #065f46; background: #d1fae5; }
html[data-theme="light"] .badge.pending { color: #92400e; background: #fef3c7; }
html[data-theme="light"] .c2pa-indicator { border-color: #94a3b8; background: #f1f5f9; color: #475569; }
html[data-theme="light"] .c2pa-indicator.detected { border-color: #60a5fa; background: #dbeafe; color: #1e40af; }
html[data-theme="light"] .c2pa-indicator::after { border-color: #94a3b8; background: #ffffff; color: #0f172a; box-shadow: 0 8px 22px rgba(15,23,42,.18); }
html[data-theme="light"] .file-info-button { color: #1d4ed8; }
html[data-theme="light"] .signature-validation-note { color: #78350f; border-color: #fcd34d; background: #fffbeb; }
html[data-theme="light"] .signature-validation-note a { color: #1d4ed8; }
html[data-theme="light"] .activity-track { background: var(--surface-3); }
html[data-theme="light"] .activity-track span { background: var(--blue); }
html[data-theme="light"] .log-frame { border-color: #64748b; background: #334155; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 4px 8px -2px rgba(15, 23, 42, .24); }
html[data-theme="light"] .log-box { color: #22c55e; border-color: #1e293b; background: #0f172a; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -3px 7px rgba(2, 6, 23, .32); }
html[data-theme="light"] .result-row.photo-result { background: var(--item-surface); }
html[data-theme="light"] .result-row.photo-result strong { color: var(--muted); }
html[data-theme="light"] .result-row.document-result { background: var(--surface-2); }
html[data-theme="light"] .result-row.document-result strong { color: var(--muted); }
html[data-theme="light"] .declaration-check-note { color: var(--muted); }
html[data-theme="light"] dialog { color: var(--text); border-color: var(--border); background: var(--surface); }
html[data-theme="light"] dialog::backdrop { background: rgba(15, 23, 42, .55); }
html[data-theme="light"] .file-info-notice { border-color: #f0c96d; background: #fffbeb; color: #713f12; }
html[data-theme="light"] .file-info-section > p { color: var(--text); }
html[data-theme="light"] .external-service-note a,
html[data-theme="light"] .file-info-section summary { color: #1d4ed8; }
html[data-theme="light"] .file-info-fields dt { color: var(--muted); background: var(--surface-2); }
html[data-theme="light"] .file-info-fields dd { color: var(--text); }
html[data-theme="light"] .technical-tracks section { background: var(--item-surface); }
html[data-theme="light"] .pdf-metadata-source { background: var(--item-surface); }
html[data-theme="light"] #file-info-pdf-xmp-raw-text { background: #fffdf8; color: var(--text); }
html[data-theme="light"] .photo-item,
html[data-theme="light"] .document-item { background: var(--item-surface); }
html[data-theme="light"] #metadata-dialog {
  --qualification-navy: #17243a;
  --qualification-accent: #285e9f;
  --qualification-paper: #fffdf8;
  --qualification-canvas: #f8f2e6;
  --qualification-line: #d9c9aa;
  --qualification-line-soft: #e6dac4;
  --qualification-field: #fff;
  --text: #1d2938;
  --muted: #647080;
  --focus-ring: rgba(36, 103, 166, .16);
  color: var(--text);
  background: var(--qualification-paper);
}
html[data-theme="light"] #metadata-dialog::backdrop { background: #131d29; }
html[data-theme="light"] #metadata-dialog .field > label { color: #29241d; }
html[data-theme="light"] #metadata-dialog .required-mark { color: #a43c39; }
html[data-theme="light"] #metadata-dialog .qualification-section-number { color: #fff; background: #285e9f; }
html[data-theme="light"] #metadata-dialog .source-type-option:has(input:checked) { background: #e9f2fc; }
html[data-theme="light"] #metadata-dialog .source-type-copy strong { color: #29241d; }
html[data-theme="light"] #metadata-dialog .photo-field,
html[data-theme="light"] #metadata-dialog .document-field { border-color: #a9b3be; background: #f9fbfc; }
html[data-theme="light"] #metadata-dialog .photo-field .button,
html[data-theme="light"] #metadata-dialog .document-field .button { border-color: #9aa7b4; color: #1d2938; background: #fff; }
html[data-theme="light"] #metadata-dialog .custody-badge { color: #155b47; background: #dff2e9; }
html[data-theme="light"] #metadata-dialog .qualification-status.pending .status-icon { background: #e5e8eb; }
html[data-theme="light"] #metadata-dialog .qualification-status.pending .status-icon::before { color: #68727d; }
html[data-theme="light"] #metadata-dialog .qualification-status.in-progress { border-color: #efd18b; background: #fff4d8; }
html[data-theme="light"] #metadata-dialog .qualification-status.in-progress .status-icon { background: #f5d792; }
html[data-theme="light"] #metadata-dialog .qualification-status.in-progress .status-icon::before { color: #70490f; }
html[data-theme="light"] #metadata-dialog .qualification-status.complete { border-color: #b8dfcf; background: #e7f4ee; }
html[data-theme="light"] #metadata-dialog .qualification-status.complete .status-icon { color: #155b47; background: #d9eee5; }
html[data-theme="light"] #metadata-dialog .qualification-status.optional .status-icon { color: #285e9f; background: #e3effb; }
html[data-theme="light"] #metadata-dialog .qualification-declaration-note { border-left-color: #9a6418; background: #fff5db; }
html[data-theme="light"] #metadata-dialog .qualification-declaration-note strong { color: #6c450f; }
html[data-theme="light"] #metadata-dialog .qualification-declaration-note p { color: #76541f; }
html[data-theme="light"] #metadata-dialog .optional-label,
html[data-theme="light"] #metadata-dialog .photo-picker > span,
html[data-theme="light"] #metadata-dialog .document-picker > span { color: #6b6256; }
html[data-theme="light"] #metadata-dialog .datetime-picker-control { color: #285e9f; }
html[data-theme="light"] #metadata-dialog .qualification-completion.complete { color: #18765a; }
html[data-theme="light"] #metadata-dialog .button.primary { color: #fff; background: #285e9f; }
html[data-theme="light"] #metadata-dialog .button.primary:hover { background: #1f4c82; }
html[data-theme="light"] #metadata-dialog #cancel-metadata { border-color: #b7aa93; color: #1d2938; background: #fff; }
html[data-theme="light"] #metadata-review-dialog {
  --review-navy: #142941;
  --review-accent: #4b91d0;
  --review-surface: #fffdf8;
  --review-canvas: #f8f2e6;
  --review-line: #d9c9aa;
  --review-line-soft: #e6dac4;
  --review-field: #fff;
  --review-text: #1d2938;
  --review-muted: #647080;
  --review-secondary: #fff;
  --review-primary: #2467a6;
  --review-on-primary: #fff;
}
html[data-theme="light"] #metadata-review-dialog::backdrop { background: rgba(19, 29, 41, .88); }
html[data-theme="light"] .toast { color: var(--text); border-color: var(--border); background: var(--surface); box-shadow: 0 10px 35px rgba(74, 52, 29, .16); }
html[data-theme="light"] .guidance-heading-copy { color: var(--muted); }
html[data-theme="light"] .guidance-intro-strip { border-color: var(--border); background: var(--surface-2); }
html[data-theme="light"] .guidance-intro-strip svg { color: var(--blue); }
html[data-theme="light"] .guidance-intro-strip strong { color: var(--text); }
html[data-theme="light"] .guidance-intro-strip span { color: var(--muted); }
html[data-theme="light"] .guidance-overview { border-color: var(--border); border-left-color: var(--blue); background: var(--surface); }
html[data-theme="light"] .guidance-overview > p:not(.guidance-kicker),
html[data-theme="light"] .guidance-summary { color: var(--muted); }
html[data-theme="light"] .guidance-principles,
html[data-theme="light"] .guidance-principle + .guidance-principle { border-color: var(--border-soft); }
html[data-theme="light"] .guidance-principle > span,
html[data-theme="light"] .guidance-recommendation-heading p { color: var(--blue); }
html[data-theme="light"] .guidance-principle p,
html[data-theme="light"] .guidance-recommendation ul,
html[data-theme="light"] .guidance-support-item p { color: var(--muted); }
html[data-theme="light"] .guidance-recommendation { border-color: var(--border); background: var(--surface); }
html[data-theme="light"] .guidance-number { color: var(--blue); border-color: var(--border); background: var(--surface-2); }
html[data-theme="light"] .guidance-stop { color: #451a03; border-color: #fcd34d; border-left-color: #b45309; background: #fffbeb; }
html[data-theme="light"] .guidance-stop > div > p:not(.guidance-kicker),
html[data-theme="light"] .guidance-stop ul { color: #78350f; }
html[data-theme="light"] .guidance-support-grid,
html[data-theme="light"] .guidance-support-item + .guidance-support-item { border-color: var(--border); }
html[data-theme="light"] .guidance-references { border-color: var(--border); background: var(--surface); }
html[data-theme="light"] .guidance-references summary { color: var(--text); }
html[data-theme="light"] .guidance-references > div { border-color: var(--border-soft); }
html[data-theme="light"] .guidance-references p,
html[data-theme="light"] .guidance-footer-action p { color: var(--muted); }
html[data-theme="light"] .guidance-references a { color: var(--blue); }
html[data-theme="light"] .about-page {
  --about-copy: #5a5145;
}
html[data-theme="light"] .about-header { box-shadow: 0 1px 0 rgba(15, 23, 42, .08), 0 8px 28px rgba(15, 23, 42, .06); }
html[data-theme="light"] .about-back-link { color: var(--muted); }
html[data-theme="light"] .about-back-link:hover { color: var(--text); }
html[data-theme="light"] .about-document { box-shadow: 0 34px 90px rgba(91, 66, 35, .24), 0 0 0 1px rgba(255, 255, 255, .56); }
html[data-theme="light"] .about-steps li > span { border-color: #9eb3c3; }
html[data-theme="light"] .about-callout { border-color: #a7d8c7; background: rgba(231, 247, 240, .8); }
html[data-theme="light"] .about-callout svg { color: #08765c; }
html[data-theme="light"] .about-callout strong { color: #14532d; }
html[data-theme="light"] .about-validation-note { border-color: #e6ca7c; border-left-color: #a97812; background: rgba(255, 249, 229, .88); }
html[data-theme="light"] .about-validation-note p { color: #6b4d13; }
html[data-theme="light"] .about-validation-note strong { color: #4d3508; }
html[data-theme="light"] .about-validation-note a { color: #1d4ed8; }

@media (max-width: 900px) {
  .app-header, .intro-callout, .mode-tabs, main { padding-left: 16px; padding-right: 16px; }
  .workspace-grid, .audit-grid { grid-template-columns: 1fr; }
  .form-panel { border-right: 0; border-bottom: 1px solid var(--border); }
  .workflow-band { grid-template-columns: 1fr 1fr; }
  .workflow-actions { grid-column: 1 / -1; justify-content: stretch; }
  .workflow-actions .button { flex: 1; }
  .about-main { padding: 38px 18px 56px; }
  .about-document { padding: 54px 52px 40px; }
  #metadata-dialog .qualification-layout { grid-template-columns: 1fr; }
  #metadata-dialog .qualification-aside { border-top: 1px solid var(--qualification-line-soft); border-left: 0; }
}

@media (max-width: 620px) {
  .app-header { height: 58px; }
  .mode-tabs {
    display: flex;
    min-height: 46px;
    scroll-padding-inline: 16px;
  }
  .tab-button { width: auto; min-height: 46px; gap: 6px; padding: 0 12px; font-size: 12px; line-height: 1; white-space: nowrap; }
  .support-tab { min-height: 38px; margin-left: 4px; padding: 0 10px; font-size: 11px; }
  main { padding-top: 14px; }
  .intro-callout { padding-top: 8px; padding-bottom: 8px; }
  .intro-callout-inner { align-items: flex-start; flex-direction: column; gap: 5px; min-height: 0; padding-left: 12px; }
  .intro-callout p { font-size: 14px; line-height: 1.45; }
  .intro-learn-more { padding: 5px 0 2px; font-size: 10px; }
  .privacy-strip summary > span { white-space: normal; }
  .section-heading { align-items: center; }
  .temporal-preflight-heading { align-items: flex-start; }
  h1 { font-size: 20px; }
  .workspace-grid, .audit-grid { border-left: 0; border-right: 0; margin-left: -16px; margin-right: -16px; border-radius: 0; }
  .form-panel, .evidence-panel, .audit-results { padding: 16px; }
  .panel-heading { align-items: center; }
  .panel-heading .button { padding-left: 10px; padding-right: 10px; }
  .evidence-item { grid-template-columns: 1fr; }
  .evidence-title-line { align-items: flex-start; flex-wrap: wrap; }
  .evidence-title-line strong { flex-basis: 100%; }
  .evidence-actions { justify-content: flex-end; }
  .workflow-band { grid-template-columns: 1fr; align-items: stretch; }
  .workflow-actions { grid-column: auto; flex-direction: column; }
  .audit-header { grid-template-columns: 1fr; }
  .result-row { grid-template-columns: 1fr auto; }
  .result-row .result-status { grid-column: 1 / -1; }
  .dialog-grid { grid-template-columns: 1fr; }
  #metadata-dialog .dialog-heading { min-height: 78px; padding: 15px 16px; }
  #metadata-dialog .qualification-main { padding: 16px 16px 2px; }
  #metadata-dialog .source-type-options, #metadata-dialog .attachment-grid { grid-template-columns: 1fr; }
  #metadata-dialog .qualification-aside { padding: 18px 16px; }
  #metadata-dialog .dialog-actions { align-items: stretch; flex-direction: column; }
  #metadata-dialog .dialog-actions > div { width: 100%; }
  #metadata-dialog .dialog-actions .button { flex: 1; }
  #metadata-dialog .dialog-actions { padding: 12px 16px; }
  .metadata-review-content dl { grid-template-columns: 1fr; }
  .metadata-review-content dl > div.wide { grid-column: auto; }
  #metadata-review-dialog .dialog-heading { padding: 15px 16px; }
  .metadata-review-intro { padding: 13px 16px 0; }
  .metadata-review-content { padding: 15px 16px 18px; }
  #metadata-review-dialog .dialog-actions { align-items: stretch; flex-direction: column-reverse; padding: 12px 16px; }
  #metadata-review-dialog .dialog-actions .button { width: 100%; }
  .file-info-fields { grid-template-columns: 1fr; }
  .file-info-fields dt, .file-info-fields dd { border-bottom: 1px solid var(--border-soft); }
  .full-span { grid-column: auto; }
  .photo-picker, .document-picker { align-items: flex-start; flex-direction: column; }
  .guidance-heading { align-items: flex-start; }
  .guidance-overview { padding: 18px 16px; }
  .guidance-principles, .guidance-recommendation-grid, .guidance-support-grid { grid-template-columns: 1fr; }
  .guidance-principle { padding: 14px 0; }
  .guidance-principle + .guidance-principle { padding-left: 0; border-top: 1px solid var(--border-soft); border-left: 0; }
  .guidance-stop { grid-template-columns: 1fr; gap: 14px; padding: 17px 16px; }
  .guidance-support-item { padding: 14px 0; }
  .guidance-support-item + .guidance-support-item { padding-left: 0; border-top: 1px solid var(--border); border-left: 0; }
  .guidance-footer-action { align-items: stretch; flex-direction: column; }
  .guidance-footer-action .button { width: 100%; }
  .about-main { padding: 20px 12px 36px; }
  .about-document { padding: 37px 22px 30px; border-radius: 2px; }
  .about-hero { padding-bottom: 30px; }
  .about-hero h1 { font-size: 32px; }
  .about-document .about-lead { font-size: 17px; }
  .about-document p { font-size: 14px; line-height: 1.7; }
  .about-section { padding: 30px 0 32px; }
  .about-section-heading { gap: 10px; margin-bottom: 19px; }
  .about-section-heading > span { min-width: 27px; }
  .about-section h2 { font-size: 22px; }
  .about-steps { grid-template-columns: 1fr; }
  .about-steps li:last-child { grid-column: auto; }
  .about-document-footer { align-items: stretch; flex-direction: column; }
  .about-document-footer .button { width: 100%; }
  .about-project-meta { text-align: left; }
}

@media (max-width: 380px) {
  .tab-button svg { display: none; }
  .tab-button { font-size: 11px; }
  .support-tab { padding: 0 7px; font-size: 10px; }
  .about-header .brand-copy { display: none; }
  .about-back-link span { font-size: 0; }
  .about-back-link span::after { content: "Voltar"; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .startup-brand { display: none; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
