.sos-page {
  --sos-line: #E4DED4;
  color: var(--ink);
  background: var(--paper);
}
.sos-page main { margin: 0; }
.sos-step { min-height: 100svh; }
.sos-banner {
  padding-top: env(safe-area-inset-top, 0px);
  background: #B42318;
  color: white;
}
.sos-banner-content {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: min(100%, 608px); min-height: 56px; padding: 0 24px; margin: 0 auto;
  font-size: 15px; line-height: 22px; font-weight: 600;
}
.sos-banner-content a { display: inline-flex; align-items: center; min-height: 48px; }
.sos-banner-content :is(strong, a) { color: inherit; font-weight: inherit; text-decoration: none; }
.sos-meter {
  width: min(560px, calc(100% - 48px)); height: 4px; margin-inline: auto;
  overflow: hidden; border-radius: 4px; background: #EBD3CF;
}
.sos-meter span { display: block; height: 100%; border-radius: inherit; background: #B42318; }
#passo-1 .sos-meter span { width: 25%; }
#passo-2 .sos-meter span { width: 50%; }
#passo-3 .sos-meter span { width: 75%; }
.sos-panel {
  display: flex; flex-direction: column; align-items: stretch; gap: 16px;
  width: min(100%, 608px); margin-inline: auto; padding: 40px 24px max(48px, env(safe-area-inset-bottom));
  overflow-wrap: break-word; font-size: 15px; line-height: 22px; font-weight: 500;
}
.sos-panel h1 { margin: 0; color: var(--ink); font-size: 28px; line-height: 36px; letter-spacing: -.02em; font-weight: 800; }
.sos-panel p, .sos-panel h3 { margin: 0; }
.sos-panel h3 { font-size: 1rem; line-height: 24px; }
.sos-panel .sos-lead { color: var(--muted); font-size: 17px; line-height: 26px; font-weight: 500; }
.sos-panel a { color: var(--ink); text-underline-offset: .16em; }
.sos-panel :is(button, input, select) { font: inherit; }
.sos-panel :is(button,summary, select) { cursor: pointer; }
.sos-panel :is(button,input[type="search"],select) {
  min-height: 48px; border: 1.5px solid var(--sos-line); border-radius: 16px; padding: 8px 16px;
  color: var(--ink); background: white;
}
.sos-choose { min-inline-size: 0; border: 0; padding: 0; margin: 8px 0; }
.sos-choose legend { padding: 0; font-weight: 700; margin-bottom: 12px; }
.sos-phones { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.sos-phone-option {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 18px 20px; border: 1.5px solid var(--sos-line); border-radius: 16px;
  background: var(--surface); font: 600 16px/24px var(--font);
}
.sos-phone-option:has(:checked) {
  border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: var(--teal-soft);
}
.sos-phone-option input {
  appearance: none; position: relative; flex: none; width: 22px; height: 22px; margin: 0;
  border: 1.5px solid var(--muted); border-radius: 50%; background: var(--surface); cursor: pointer;
}
.sos-phone-option input:checked { border-color: var(--accent); }
.sos-phone-option input:checked::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent);
}
@media (forced-colors: active) {
  .sos-phone-option input { appearance: auto; }
  .sos-phone-option input:checked::after { display: none; }
}
.sos-panel button[aria-pressed="true"] { background: #E6EEF0; color: var(--accent); border-color: var(--accent); }
.sos-panel .cta-fill {
  display: flex; align-items: center; justify-content: center; min-height: 56px; width: 100%;
  padding: 12px 20px; border: 0; border-radius: 16px; background: var(--accent); color: #FFF;
  font-size: 17px; line-height: 24px; font-weight: 700; text-align: center; text-decoration: none; list-style: none;
}
.sos-panel summary.cta-fill { justify-content: space-between; }
.sos-next, .sos-back {
  display: flex; align-items: center; justify-content: center; min-height: 48px;
  font-size: 15px; line-height: 22px; font-weight: 700; text-decoration: none;
}
.sos-panel a:hover, .sos-banner-content a:hover { text-decoration: underline; }
.sos-panel .sos-offline { text-align: center; font-size: 13px; line-height: 18px; color: var(--muted); }
.sos-panel :is(.sos-detail-body,.sos-directory,.sos-detail) p { margin: 12px 0; color: var(--muted); }
.sos-directory[open] > :where(div,article), .sos-detail[open] > .sos-action {
  display: block; margin-top: 16px; padding: 24px; border: 1px solid var(--sos-line); border-radius: 20px; background: white;
}
.sos-panel .sos-action em { display: block; color: var(--muted); font-style: normal; }
.sos-bank-reason { border: 0; padding: 0; margin: 0; }
.sos-bank-reason legend { margin-bottom: 8px; }
.sos-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sos-panel :is(.sos-search, select, #sos-import) { display: block; width: 100%; margin-block: 8px; }
.sos-panel .sos-search { cursor: text; }
.sos-bank-tools .visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.sos-bank, .sos-bank-more { margin: 8px 0; }
.sos-bank > .bank-pick { padding-inline: 12px; border: 1px solid var(--sos-line); border-radius: 16px; }
.sos-bank[open] > .bank-pick { border-color: var(--accent); }
.sos-panel .bank-card { padding: 8px; }
.sos-panel :is(.bank-card,.sos-track,.sos-other) a { display: inline-flex; align-items: center; min-height: 48px; }
.sos-bank-results:empty { display: none; }
.sos-panel .bank-phones { padding-inline-start: 16px; }
.sos-panel .sos-track summary h3 { display: inline; }
.sos-owner { display: flex; gap: 8px; align-items: center; min-height: 48px; }
.sos-owner input { width: 20px; height: 20px; accent-color: var(--accent); }
#sos-file-tools { margin-block: 16px; }
#sos-file-tools label, .bank-card label, .sos-track label { display: block; margin-top: 16px; }
#sos-import::file-selector-button { min-height: 48px; }
@media (min-width: 900px) {
  .sos-panel { padding-top: 56px; }
}
