/* Vamos a Chile — vidro líquido, claro/escuro conforme o sistema */

:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --bg: #eef2f0;
  --suggestion-bg: #f8faf9;
  --amb-1: rgba(48, 196, 128, .38);
  --amb-2: rgba(70, 150, 255, .28);
  --amb-3: rgba(255, 176, 120, .24);

  --text: #101513;
  --text-2: rgba(16, 21, 19, .68);
  --text-3: rgba(16, 21, 19, .56);
  --sep: rgba(16, 21, 19, .09);
  --fill: rgba(120, 124, 128, .14);
  --fill-2: rgba(120, 124, 128, .08);
  --field: rgba(255, 255, 255, .72);
  --field-line: rgba(16, 21, 19, .10);

  --glass: rgba(255, 255, 255, .56);
  --glass-strong: rgba(250, 252, 251, .80);
  --glass-line: rgba(255, 255, 255, .75);
  --glass-edge: rgba(16, 30, 24, .06);
  --spec: rgba(255, 255, 255, .95);
  --rim: rgba(255, 255, 255, 1);
  --sheen: rgba(255, 255, 255, .55);
  --shadow-near: rgba(20, 40, 30, .06);
  --shadow-far: rgba(20, 40, 30, .14);

  --accent: #08875a;
  --accent-strong: #06704a;
  --accent-ink: #ffffff;
  --accent-soft: rgba(8, 135, 90, .12);
  --accent-text: #067148;
  --warn: #a35400;
  --warn-soft: rgba(255, 149, 0, .15);
  --info: #1462c4;
  --info-soft: rgba(10, 132, 255, .12);
  --danger: #c0321e;

  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101513' stroke-opacity='.55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");

  --r-xl: 28px;
  --r-card: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07090a;
    --suggestion-bg: #141919;
    --amb-1: rgba(40, 200, 130, .26);
    --amb-2: rgba(94, 92, 230, .32);
    --amb-3: rgba(10, 132, 255, .14);

    --text: #f2f5f3;
    --text-2: rgba(242, 245, 243, .72);
    --text-3: rgba(242, 245, 243, .56);
    --sep: rgba(255, 255, 255, .09);
    --fill: rgba(130, 134, 140, .22);
    --fill-2: rgba(130, 134, 140, .12);
    --field: rgba(118, 118, 128, .20);
    --field-line: rgba(255, 255, 255, .08);

    --glass: rgba(34, 38, 38, .50);
    --glass-strong: rgba(26, 29, 29, .82);
    --glass-line: rgba(255, 255, 255, .11);
    --glass-edge: rgba(0, 0, 0, .40);
    --spec: rgba(255, 255, 255, .20);
    --rim: rgba(255, 255, 255, .42);
    --sheen: rgba(255, 255, 255, .07);
    --shadow-near: rgba(0, 0, 0, .30);
    --shadow-far: rgba(0, 0, 0, .55);

    --accent: #34d399;
    --accent-strong: #5ee0ad;
    --accent-ink: #03150d;
    --accent-soft: rgba(52, 211, 153, .15);
    --accent-text: #5ee0ad;
    --warn: #ffb547;
    --warn-soft: rgba(255, 159, 10, .16);
    --info: #6cb0ff;
    --info-soft: rgba(10, 132, 255, .18);
    --danger: #ff7a66;

    --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f5f3' stroke-opacity='.6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--font);
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--accent);
  font-feature-settings: "cv11", "ss01";
}
/* Campo ambiente que o vidro refrata */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 18% 12%, var(--amb-1), transparent 70%),
    radial-gradient(34vmax 28vmax at 88% 18%, var(--amb-2), transparent 70%),
    radial-gradient(40vmax 30vmax at 62% 96%, var(--amb-3), transparent 72%);
  filter: blur(10px);
}
::selection { background: var(--accent-soft); color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: var(--accent-text); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: 34px; line-height: 1.1; letter-spacing: -.026em; font-weight: 700; margin: 0 0 8px; }
h1 span { color: var(--accent-text); }
h2 { font-size: 17px; line-height: 1.3; letter-spacing: -.016em; font-weight: 600; margin: 0; }
strong { font-weight: 600; }
p { text-wrap: pretty; }
html { scrollbar-color: var(--fill) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--fill); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }

.i { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -.2em; }
.i-sm { width: 15px; height: 15px; vertical-align: -.18em; }

/* ---------- Material: vidro líquido ---------- */
.panel, .metric-card, .cost-summary, .trip-card, .legend-grid > div, .rate-explainer,
.flight-api-note, .source-banner, .cost-intro, .sidebar, .topbar, .preview-top, .modal, .toast {
  position: relative;
  isolation: isolate;
  background: var(--glass);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  backdrop-filter: blur(26px) saturate(185%);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-card);
  box-shadow:
    inset 0 1px 0 var(--spec),
    0 0 0 .5px var(--glass-edge),
    0 1px 2px var(--shadow-near),
    0 14px 36px -18px var(--shadow-far);
}
/* borda especular: mais forte onde a luz bate */
.panel::before, .metric-card::before, .cost-summary::before, .trip-card::before, .sidebar::before,
.topbar::before, .preview-top::before, .modal::before, .legend-grid > div::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: radial-gradient(90% 70% at var(--mx, 18%) var(--my, 0%), var(--rim), transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .9;
  transition: opacity .5s var(--ease);
}
/* brilho interno que acompanha o ponteiro */
.panel::after, .metric-card::after, .cost-summary::after, .trip-card::after, .sidebar::after,
.topbar::after, .preview-top::after, .legend-grid > div::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(70% 60% at var(--mx, 18%) var(--my, 0%), var(--sheen), transparent 70%);
  opacity: .55;
  transition: opacity .6s var(--ease);
}
.is-lit::after { opacity: 1; }
.is-lit::before { opacity: 1; }

/* Superfícies internas: preenchimento, não outro cartão */
.source-note, .guide-start-steps, .savings-result > div, .wizard-tip, .city-fit-result,
.conversion-result, .preview-route > div:first-child {
  background: var(--fill-2);
  border: 0;
  border-radius: var(--r-md);
}

/* ---------- Controles ---------- */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .35s var(--spring), background-color .2s, box-shadow .2s, filter .2s;
}
.button:active { transform: scale(.97); }
.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px var(--shadow-near), 0 6px 16px -8px var(--shadow-far);
  overflow: hidden;
}
.button-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(60% 120% at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, .32), transparent 70%);
  opacity: .6;
  transition: opacity .4s var(--ease);
}
.button-primary:hover { background: var(--accent-strong); }
.button-primary.is-lit::after { opacity: 1; }
.button-secondary {
  background: var(--fill);
  color: var(--text);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 var(--spec), 0 0 0 .5px var(--glass-edge);
}
.button-secondary:hover { background: color-mix(in srgb, var(--fill) 100%, var(--text) 6%); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.text-button, .quiet-link, .card-link, .more-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 4px 0;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: gap .3s var(--ease), opacity .2s;
}
.text-button:hover, .quiet-link:hover, .card-link:hover, .more-button:hover { gap: 8px; }
.text-button span, .quiet-link span, .card-link span { padding-left: 0; }

input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--field-line);
  border-radius: var(--r-sm);
  background: var(--field);
  color: var(--text);
  font-size: 15px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
select {
  padding-right: 38px;
  background-image: var(--chev);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
input::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
input[type=date] { min-height: 44px; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
label { color: var(--text-2); }

/* ---------- App shell ---------- */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 12px auto 12px 12px;
  width: 256px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding: 22px 12px 14px;
  border-radius: var(--r-xl);
  background: var(--glass-strong);
  overflow-y: auto;
  scrollbar-width: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 26px;
  color: var(--text);
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.brand-light { font-weight: 400; color: var(--text-2); }
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 70%, #fff) 0%, var(--accent) 60%);
  color: var(--accent-ink);
  font-size: 18px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 6px -2px var(--shadow-far);
}
.workspace-label {
  padding: 0 12px 6px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
}
.nav-list { display: grid; gap: 2px; }
.nav-group-title { margin: 12px 12px 3px; color: var(--text-3); font-size: 10px; font-weight: 700; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  transition: background-color .2s;
}
.nav-item:hover { background: var(--fill-2); }
.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}
.nav-icon { width: 19px; height: 19px; flex: none; color: var(--text-2); }
.active .nav-icon { color: var(--accent-text); }
.nav-count {
  margin-left: auto;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.active .nav-count { background: var(--accent); color: var(--accent-ink); }
.sidebar-divider { height: 1px; margin: 16px 12px; background: var(--sep); }
.nav-item.muted { color: var(--text-3); cursor: default; }
.nav-item.muted:hover { background: transparent; }
.muted .nav-icon { color: var(--text-3); }
.soon-tag {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--fill-2);
  color: var(--text-3);
  font-size: 11px;
  font-weight: 500;
}
.sidebar-bottom { flex: 0 0 auto; margin-top: auto; padding-top: 18px; }
.trust-card {
  display: flex;
  gap: 10px;
  margin: 0 4px 12px;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--fill-2);
}
.trust-icon { color: var(--accent-text); flex: none; padding-top: 1px; }
.trust-card strong { display: block; font-size: 13px; }
.trust-card p { margin: 3px 0 0; color: var(--text-2); font-size: 12px; line-height: 1.45; }
.profile-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  text-align: left;
  transition: background-color .2s;
}
.profile-button:hover { background: var(--fill-2); }
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 700;
}
.profile-copy { display: grid; gap: 1px; flex: 1; min-width: 0; }
.profile-copy strong { font-size: 14px; }
.profile-copy small { color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chevron { width: 16px; height: 16px; color: var(--text-3); }

.main-area { margin-left: 280px; min-height: 100vh; }
.topbar {
  position: sticky;
  top: 12px;
  z-index: 4;
  height: 54px;
  margin: 12px 16px 0 0;
  padding: 0 8px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 999px;
}
.breadcrumb { color: var(--text-3); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb span { padding: 0 8px; opacity: .6; }
.breadcrumb strong { color: var(--text); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--text-2);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-pill i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--warn); }
.status-pill.connected i { background: var(--accent); }
.account-button { min-height: 38px; padding: 0 15px; font-size: 14px; }
.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--fill);
  color: var(--text-2);
  transition: background-color .2s, color .2s;
}
.icon-button:hover { color: var(--text); }
.mobile-menu { display: none; }

.page-content { max-width: 1120px; margin: 0 auto; padding: 40px 36px 72px 20px; }
.view { display: none; }
.view.active { display: block; animation: view-in .5s var(--ease); }
@keyframes view-in { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.welcome-row, .view-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.view-header { margin-bottom: 28px; }
.lead { margin: 0; color: var(--text-2); font-size: 17px; line-height: 1.45; max-width: 62ch; }
.eyebrow { display: none; }

/* ---------- Visão geral ---------- */
.guide-start {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr);
  gap: 32px;
  align-items: center;
  margin: 28px 0 16px;
  padding: 28px;
}
.guide-start-copy h2, .journey-guide-heading h2 { font-size: 22px; letter-spacing: -.022em; margin: 0 0 6px; }
.guide-start-copy p, .journey-guide-heading p { max-width: 58ch; margin: 0 0 18px; color: var(--text-2); font-size: 15px; }
.guide-start-steps { display: grid; gap: 4px; padding: 10px; }
.guide-start-steps span { display: flex; align-items: center; gap: 12px; padding: 8px; color: var(--text-2); font-size: 14px; }
.guide-start-steps span.active { color: var(--text); font-weight: 600; }
.guide-start-steps i, .wizard-progress i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--fill);
  color: var(--text-2);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.guide-start-steps .active i, .wizard-progress .active i, .wizard-progress .complete i { background: var(--accent); color: var(--accent-ink); }

.journey-guide { margin: 28px 0 16px; padding: 26px 28px 14px; }
.journey-guide-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.journey-guide-heading .text-button { white-space: nowrap; }
.journey-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.journey-guide-step {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--sep);
}
.journey-guide-step > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.journey-guide-step strong { display: block; font-size: 15px; }
.journey-guide-step p { margin: 3px 0 6px; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.journey-guide-step button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 600;
}

.trip-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 28px;
  min-height: 168px;
  overflow: hidden;
}
.trip-art {
  position: relative;
  align-self: stretch;
  display: grid;
  place-items: center;
  background-image: radial-gradient(var(--sep) 1.2px, transparent 1.4px);
  background-size: 14px 14px;
  -webkit-mask: linear-gradient(90deg, #000 60%, transparent);
  mask: linear-gradient(90deg, #000 60%, transparent);
}
.route { width: 100%; max-width: 240px; height: auto; overflow: visible; }
.route path { fill: none; stroke-linecap: round; }
.route-ghost { stroke: var(--sep); stroke-width: 2; stroke-dasharray: 2 6; }
.route-arc {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: route-draw 1.6s .2s var(--ease) backwards;
}
.route-start { fill: var(--text-3); }
.route-end { fill: var(--accent); }
.route-halo { fill: var(--accent-soft); transform-origin: 204px 64px; animation: halo 1.2s 1.4s var(--ease) backwards; }
@keyframes route-draw { from { stroke-dashoffset: 1; } }
@keyframes halo { from { transform: scale(.2); opacity: 0; } }
.trip-info { padding: 26px 24px; min-width: 0; }
.trip-info h2 { font-size: 26px; letter-spacing: -.026em; font-weight: 700; margin-bottom: 4px; }
.arrow { color: var(--text-3); padding: 0 6px; font-weight: 400; }
.trip-info p { margin: 0 0 10px; color: var(--text-2); font-size: 14px; }
.text-button { margin-top: 0; }
.trip-meta { display: flex; gap: 28px; padding: 0 32px; align-self: stretch; align-items: center; border-left: 1px solid var(--sep); }
.trip-meta div { display: grid; gap: 2px; min-width: 88px; }
.trip-meta span { color: var(--text-3); font-size: 12px; font-weight: 500; }
.trip-meta strong { font-size: 16px; }

.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 44px 0 14px; }
.section-heading h2 { font-size: 22px; letter-spacing: -.022em; font-weight: 700; }
.section-heading p, .panel-heading p { margin: 3px 0 0; color: var(--text-2); font-size: 14px; }

.summary-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; }
.metric-card { min-height: 168px; padding: 18px 20px 16px; display: flex; flex-direction: column; }
.metric-head { display: flex; justify-content: space-between; align-items: center; color: var(--text-2); font-size: 13px; font-weight: 600; }
.metric-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
}
.metric-icon .i { width: 16px; height: 16px; }
.metric-icon.green { background: var(--accent-soft); color: var(--accent-text); }
.metric-icon.blue { background: var(--info-soft); color: var(--info); }
.metric-icon.amber { background: var(--warn-soft); color: var(--warn); }
.progress-number { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 12px; }
.progress-number strong { font-size: 38px; line-height: 1; letter-spacing: -.035em; font-weight: 700; font-variant-numeric: tabular-nums; }
.progress-number span { color: var(--text-2); font-size: 13px; }
.progress-track { height: 8px; border-radius: 999px; background: var(--fill); overflow: hidden; box-shadow: inset 0 1px 1px var(--shadow-near); }
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 75%, #fff), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}
.progress-foot { display: flex; justify-content: space-between; margin-top: auto; padding-top: 12px; color: var(--text-3); font-size: 12px; }
.next-task { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 12px; }
.task-dot { width: 10px; height: 10px; margin-top: 6px; flex: none; border: 2px solid var(--info); border-radius: 50%; }
.next-task strong { display: block; font-size: 15px; line-height: 1.35; }
.next-task small { display: block; margin-top: 3px; color: var(--text-2); font-size: 13px; }
.card-link { margin-top: auto; align-self: flex-start; }
.budget-number { display: grid; gap: 3px; margin: 12px 0 10px; }
.budget-number strong { font-size: 26px; line-height: 1.1; letter-spacing: -.03em; font-weight: 700; font-variant-numeric: tabular-nums; }
.budget-number span { color: var(--text-3); font-size: 12px; }
.budget-split { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; color: var(--text-2); font-size: 13px; }
.budget-split span { display: flex; align-items: center; gap: 6px; }
.budget-split strong { color: var(--text); font-variant-numeric: tabular-nums; }
.dot-once, .dot-monthly { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.dot-monthly { background: var(--info); }

.content-grid > *, .summary-grid > *, .cost-summary-grid > *, .official-source-cards > * { min-width: 0; }
.content-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; margin-top: 14px; }
.panel { padding: 22px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.panel-heading h2 { font-size: 17px; }
.preview-tasks { margin-top: 10px; }
.preview-task { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--sep); }
.preview-task:first-child { border-top: 0; }
.check-button {
  position: relative;
  width: 24px;
  height: 24px;
  flex: none;
  padding: 0;
  border: 1.75px solid var(--text-3);
  border-radius: 50%;
  background: transparent;
  color: transparent;
  font-size: 0;
  transition: background-color .25s var(--ease), border-color .25s, transform .35s var(--spring);
}
.check-button:hover { border-color: var(--accent); }
.check-button:active { transform: scale(.88); }
.check-button.checked { background: var(--accent); border-color: var(--accent); }
.check-button.checked::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--accent-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.preview-task-copy { flex: 1; min-width: 0; }
.preview-task-copy strong { display: block; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-task-copy small { display: block; margin-top: 1px; color: var(--text-2); font-size: 13px; }
.preview-task-copy strong[style*="line-through"], .task-row-main strong[style*="line-through"] { color: var(--text-3) !important; }
.priority-dot, .priority-pill {
  width: max-content;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--fill-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
}
.priority-dot.high, .priority-pill.high { background: var(--warn-soft); color: var(--warn); }
.empty-inline { padding: 18px 0 8px; color: var(--text-2); font-size: 14px; }
.small-shield {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.small-shield .i { width: 16px; height: 16px; }
.source-note { display: flex; gap: 12px; margin: 16px 0 12px; padding: 14px; }
.source-note-icon { color: var(--accent-text); flex: none; padding-top: 1px; }
.source-note strong { font-size: 14px; }
.source-note p { margin: 3px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.disclaimer { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; color: var(--text-3); }
.disclaimer .i { margin-top: 2px; width: 16px; height: 16px; }
.disclaimer p { margin: 0; max-width: 90ch; font-size: 12px; line-height: 1.55; }

/* ---------- Meu plano ---------- */
.filter-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.filter-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--fill);
}
.filter-tab {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: background-color .25s var(--ease), color .2s, box-shadow .25s;
}
.filter-tab span { padding-left: 4px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.filter-tab.active {
  background: var(--glass-strong);
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 1px 0 var(--spec), 0 1px 3px var(--shadow-near), 0 3px 10px -4px var(--shadow-far);
}
.filter-row select, .cost-intro select { width: auto; min-width: 210px; min-height: 40px; font-size: 14px; }
.task-board { padding: 4px 22px; }
.task-phases { display: grid; gap: 34px; }
.task-phase { display: grid; gap: 14px; }
.task-phase-head { display: flex; align-items: center; gap: 12px; }
.task-phase-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.task-phase-title h2 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.task-phase-title p { margin: 2px 0 0; color: var(--text-2); font-size: 13px; }
.task-phase-count { flex: none; margin-left: auto; color: var(--text-3); font-size: 13px; white-space: nowrap; }
.task-phase-add { flex: none; min-height: 34px; padding: 0 12px; font-size: 13px; }
.task-phase + .task-phase { padding-top: 30px; border-top: 1px solid var(--sep); }
.task-board-head, .task-row { display: grid; grid-template-columns: 24px 1.1fr 3fr .9fr .9fr 72px; gap: 14px; align-items: center; }
.task-board-head::before { content: ""; }
.task-board-head { padding: 14px 0 10px; border-bottom: 1px solid var(--sep); color: var(--text-3); font-size: 12px; font-weight: 600; }
.task-row { min-height: 64px; padding: 10px 0; border-bottom: 1px solid var(--sep); }
.task-row:last-child { border-bottom: 0; }
.category-label { color: var(--text); font-size: 13px; font-weight: 500; }
.category-label small { display: block; margin-top: 2px; color: var(--text-3); font-size: 12px; font-weight: 400; }
.task-row-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.task-row-main > div { min-width: 0; }
.task-row-main strong { display: block; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-row-main small { display: block; margin-top: 2px; color: var(--text-2); font-size: 13px; }
.task-status { color: var(--text-2); font-size: 13px; }
.task-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.edit-button, .delete-button {
  position: relative;
  width: 32px;
  height: 32px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-3);
  font-size: 0;
  transition: background-color .2s, color .2s;
}
.edit-button::before, .delete-button::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: currentColor;
  -webkit-mask: var(--glyph) center / contain no-repeat;
  mask: var(--glyph) center / contain no-repeat;
}
.edit-button { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.17 6.81a1 1 0 0 0-3.99-3.99L3.84 16.17a2 2 0 0 0-.5.83l-1.32 4.35a.5.5 0 0 0 .62.62l4.35-1.32a2 2 0 0 0 .83-.5z'/%3E%3C/svg%3E"); }
.delete-button { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3C/svg%3E"); }
.edit-button:hover { background: var(--fill-2); color: var(--text); }
.delete-button:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.empty-hint { margin: 14px 4px; color: var(--text-3); font-size: 13px; }

/* ---------- Custos ---------- */
.cost-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  padding: 14px 18px;
  border-radius: var(--r-md);
}
.cost-intro-icon { color: var(--accent-text); flex: none; }
.cost-intro p { margin: 0; flex: 1; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.cost-intro p strong { color: var(--text); }
.cost-intro .quiet-link { white-space: nowrap; }
.cost-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.cost-summary { padding: 18px 20px; }
.cost-summary span { display: block; color: var(--text-2); font-size: 13px; font-weight: 600; }
.cost-summary strong { display: block; margin: 8px 0 4px; font-size: 26px; line-height: 1.1; letter-spacing: -.03em; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cost-summary small { color: var(--text-3); font-size: 12px; }
.cost-summary-soft { background: color-mix(in srgb, var(--glass) 70%, transparent); }
.cost-table-panel { padding: 22px; }
.cost-table-head, .cost-row { display: grid; grid-template-columns: 2.2fr 1.2fr 1fr 1.2fr 36px; gap: 12px; align-items: center; }
.cost-table-head { margin-top: 12px; padding: 10px 0; border-bottom: 1px solid var(--sep); color: var(--text-3); font-size: 12px; font-weight: 600; }
.cost-row { position: relative; grid-template-rows: auto auto; min-height: 56px; padding: 10px 0 8px; border-bottom: 1px solid var(--sep); }
.cost-row strong { font-size: 15px; font-weight: 500; }
.cost-row span { color: var(--text-2); font-size: 13px; }
.cost-row .amount { color: var(--text); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cost-dual { grid-column: 1 / 5; margin: -2px 0 2px; color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.cost-empty { padding: 34px 12px 18px; text-align: center; }
.empty-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.empty-icon .i { width: 22px; height: 22px; }
.cost-empty strong, .source-empty strong { font-size: 16px; }
.cost-empty p, .source-empty p { max-width: 40ch; margin: 6px auto 16px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.savings-planner { margin: 14px 0; padding: 24px; }
.city-fit-form .form-row, .savings-planner .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.savings-planner .form-row { margin: 16px 0; }
.city-fit-form label, .savings-planner label { display: grid; gap: 7px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.savings-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 14px; }
.savings-result > div { display: grid; gap: 4px; padding: 18px; }
.savings-result span { color: var(--text-2); font-size: 13px; font-weight: 600; }
.savings-result strong { color: var(--accent-text); font-size: 30px; line-height: 1.1; letter-spacing: -.03em; font-weight: 700; font-variant-numeric: tabular-nums; }
.savings-result small { color: var(--text-2); font-size: 13px; }
.form-note { margin: 12px 0 0; color: var(--text-3); font-size: 13px; line-height: 1.55; max-width: 80ch; }

/* ---------- Perfil da cidade ---------- */
.city-fit-form { max-width: 820px; padding: 26px; display: grid; gap: 16px; justify-items: start; }
.city-fit-form .form-row { width: 100%; }
.city-fit-result:not(:empty) { width: 100%; padding: 14px 16px; color: var(--text); font-size: 14px; line-height: 1.55; }
.city-fit-result:empty { display: none; }

/* ---------- Câmbio ---------- */
.converter-card { padding: 26px; }
.converter-fields { display: grid; grid-template-columns: 1.25fr 1fr 44px 1fr; gap: 14px; align-items: end; }
.converter-fields label, .flight-form-grid label { display: grid; gap: 7px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.converter-fields input, .converter-fields select, .flight-form-grid input, .flight-form-grid select { margin-top: 0; }
.swap-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--fill);
  color: var(--accent-text);
  box-shadow: inset 0 1px 0 var(--spec);
  transition: transform .5s var(--spring), background-color .2s;
}
.swap-button:hover { transform: rotate(180deg); }
.conversion-result { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding: 22px; }
.conversion-result span { color: var(--text-2); font-size: 14px; }
.conversion-result strong { font-size: 34px; line-height: 1.1; letter-spacing: -.035em; font-weight: 700; font-variant-numeric: tabular-nums; }
.rate-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--text-3); font-size: 13px; }
.rate-explainer { display: flex; gap: 14px; align-items: flex-start; margin: 14px 0 0; padding: 16px 18px; border-radius: var(--r-md); }
.rate-explainer p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.rate-explainer p strong { color: var(--text); }

/* ---------- Passagens ---------- */
.flight-route-card { padding: 24px; }
.flight-route-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.flight-route-heading > div { display: flex; align-items: center; gap: 12px; }
.flight-route-heading h2 { font-size: 17px; }
.flight-route-heading p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.flight-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.flight-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.flight-state { min-height: 18px; margin-top: 12px; color: var(--text-2); font-size: 13px; }
.flight-search-results { display: grid; gap: 10px; margin-top: 14px; }
.flight-offer { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding: 16px 18px; }
.flight-offer > b { color: var(--accent-text); font-size: 22px; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.offer-leg { display: grid; gap: 3px; margin-top: 8px; }
.offer-leg strong { font-size: 14px; }
.offer-leg small { color: var(--text-2); font-size: 13px; line-height: 1.5; }
.flight-search-results a { color: var(--accent-text); font-size: 14px; }
.flight-api-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; padding: 18px; border-radius: var(--r-md); }
.flight-api-note > div { flex: 1; }
.flight-api-note strong { font-size: 15px; }
.flight-api-note p { margin: 4px 0 10px; color: var(--text-2); font-size: 14px; line-height: 1.55; max-width: 80ch; }
.flight-api-note a, .official-source a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.flight-api-note a { display: inline; }
.flight-api-note a .i { margin-left: 3px; }
.flight-api-note a:hover, .official-source a:hover { text-decoration: underline; }
.flight-api-note a span, .official-source a span { padding-left: 0; }
.api-note-separator { color: var(--text-3); padding: 0 6px; }
.saved-alerts { display: grid; gap: 10px; margin-top: 14px; }
.saved-flight { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.saved-flight > div { display: grid; gap: 3px; flex: 1; }
.saved-flight strong { font-size: 15px; }
.saved-flight small { color: var(--text-2); font-size: 13px; }

/* ---------- Fontes oficiais ---------- */
.source-route-context { display: grid; gap: 3px; text-align: right; }
.source-route-context strong { color: var(--accent-text); font-size: 20px; letter-spacing: -.02em; }
.source-route-context small { max-width: 34ch; color: var(--text-2); font-size: 13px; line-height: 1.45; }
#source-country-select { width: auto; }
.source-banner { display: flex; gap: 14px; align-items: center; margin: 0 0 14px; padding: 16px 18px; border-radius: var(--r-md); }
.banner-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.source-banner strong { font-size: 15px; }
.source-banner p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.official-source-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.official-source { padding: 20px 22px; display: flex; flex-direction: column; }
.source-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.source-checked { color: var(--text-3); font-size: 12px; }
.official-source h2 { margin-top: 14px; font-size: 17px; }
.official-source p { margin: 4px 0 14px; color: var(--text-2); font-size: 14px; }
.official-source a { margin-top: auto; }
.trust-legend { margin-top: 36px; }
.trust-legend h2 { margin-bottom: 14px; font-size: 22px; letter-spacing: -.022em; font-weight: 700; }
.legend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.legend-grid > div { padding: 18px; }
.trust-label { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.trust-label.official { background: var(--accent-soft); color: var(--accent-text); }
.trust-label.estimate { background: var(--warn-soft); color: var(--warn); }
.trust-label.community { background: var(--info-soft); color: var(--info); }
.legend-grid p { margin: 10px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.review-pending { padding: 3px 10px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 12px; }
.source-library { padding: 22px; }
.source-empty { padding: 36px 12px 26px; text-align: center; }
.source-empty-art { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.source-fields { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.source-fields span { padding: 5px 12px; border-radius: 999px; background: var(--fill-2); color: var(--text-2); font-size: 12px; }
.source-fields i { padding-right: 4px; color: var(--accent-text); font-style: normal; }

/* ---------- Diálogos ---------- */
.modal {
  position: fixed;
  width: calc(100% - 28px);
  max-width: 460px;
  max-height: calc(100dvh - 40px);
  padding: 26px;
  border-radius: var(--r-xl);
  background: var(--glass-strong);
  color: var(--text);
  overflow-y: auto;
  box-shadow: inset 0 1px 0 var(--spec), 0 0 0 .5px var(--glass-edge), 0 30px 80px -20px rgba(0, 0, 0, .45);
}
.modal[open] { animation: sheet-in .5s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.modal::backdrop {
  background: rgba(8, 14, 12, .28);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.modal-head h2 { margin-top: 2px; font-size: 22px; letter-spacing: -.022em; font-weight: 700; }
.modal-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fill);
  color: var(--text-2);
}
.modal-close .i { width: 16px; height: 16px; }
.modal-close:hover { color: var(--text); }
.modal label { display: grid; gap: 7px; margin: 14px 0; color: var(--text-2); font-size: 13px; font-weight: 600; }
.modal input:not([type=checkbox]), .modal select { margin-top: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-label { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; color: var(--text) !important; font-size: 14px !important; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.modal-copy { margin: 0 0 12px; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.form-feedback { min-height: 20px; margin: 8px 0 0; color: var(--danger); font-size: 13px; line-height: 1.5; }
.account-actions { justify-content: flex-end; }
.signout-button { margin-top: 14px; }
.plan-wizard { max-width: 540px; }
.wizard-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--sep); }
.wizard-progress span { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; white-space: nowrap; }
.wizard-progress .active, .wizard-progress .complete { color: var(--text); font-weight: 600; }
.wizard-intro { margin: 0 0 6px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.plan-step label { margin: 14px 0; }
.optional-label { color: var(--text-3); font-size: 12px; font-weight: 400; }
.wizard-tip { display: grid; gap: 3px; margin-top: 18px; padding: 14px 16px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.wizard-tip strong { color: var(--text); }
.wizard-actions { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--sep); }
.wizard-step-label { flex: 1; color: var(--text-3); font-size: 13px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--glass-strong);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px) scale(.96);
  transition: opacity .3s var(--ease), transform .5s var(--spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------- Acesso (login) ---------- */
.account-gate { min-height: 100vh; display: grid; place-items: center; padding: 88px 20px 40px; }
.preview-brand { position: absolute; top: 26px; left: 30px; padding: 0; }
.account-gate-card { width: min(520px, 100%); padding: 36px; border-radius: var(--r-xl); }
.account-gate-card h1 { margin: 0 0 12px; font-size: 34px; }
.account-gate-card > p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.gate-points { display: grid; gap: 10px; margin: 24px 0 26px; }
.gate-points span { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; }
.gate-points .i { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); stroke-width: 2.6; }
.account-gate-card .button-primary { width: 100%; min-height: 48px; font-size: 16px; }
.gate-note { margin: 12px 0 4px !important; color: var(--text-3) !important; font-size: 13px !important; text-align: center; }
.account-gate-card > .text-button { display: flex; justify-content: center; margin: 4px auto 0; }

/* ---------- Prévia pública ---------- */
.preview-page { min-height: 100vh; }
.preview-top {
  position: sticky;
  top: 12px;
  z-index: 4;
  width: min(1080px, calc(100% - 24px));
  height: 58px;
  margin: 12px auto 0;
  padding: 0 8px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 999px;
}
.preview-top .brand { padding: 0; }
.preview-main { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 64px; }
.preview-hero { padding: 0 0 36px; }
.preview-hero h1 { max-width: 18ch; margin-bottom: 16px; font-size: clamp(34px, 5.4vw, 56px); line-height: 1.04; letter-spacing: -.035em; }
.preview-hero > p { max-width: 60ch; margin: 0; color: var(--text-2); font-size: 18px; line-height: 1.55; }
.preview-destination { display: flex; align-items: center; gap: 14px; margin-top: 28px; color: var(--text-2); font-size: 15px; font-weight: 600; }
.preview-destination select { width: auto; min-width: 220px; }
.preview-route { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 26px; }
.preview-route > div:first-child { align-self: start; padding: 20px; }
.preview-route > div:first-child span { color: var(--text-3); font-size: 13px; font-weight: 600; }
.preview-route h2 { margin: 6px 0 6px; color: var(--accent-text); font-size: 30px; letter-spacing: -.03em; font-weight: 700; }
.preview-route > div:first-child p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.preview-stage-list { display: grid; }
.preview-stage-list article { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--sep); }
.preview-stage-list article:first-child { border-top: 0; padding-top: 4px; }
.preview-stage-list article > b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.preview-stage-list strong { font-size: 16px; }
.preview-stage-list p { margin: 3px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.55; max-width: 70ch; }
.preview-sources { margin: 48px 0; }
.preview-sources .section-heading { margin: 0 0 6px; }
.preview-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; }
.preview-cta h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.022em; font-weight: 700; }
.preview-cta p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.preview-disclaimer { margin-top: 20px; color: var(--text-3); font-size: 12px; line-height: 1.6; }

/* ---------- Responsivo ---------- */
@media (max-width: 1050px) {
  .sidebar { width: 228px; }
  .main-area { margin-left: 252px; }
  .page-content { padding: 32px 24px 56px 12px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .progress-card { grid-column: span 2; }
  .content-grid { grid-template-columns: 1fr; }
  .trip-card { grid-template-columns: 180px minmax(0, 1fr); }
  .trip-meta { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--sep); padding: 14px 24px; }
}
@media (max-width: 900px) {
  .journey-guide-grid { grid-template-columns: 1fr; }
  .legend-grid { grid-template-columns: 1fr; }
}
@media (max-width: 740px) {
  body { font-size: 16px; }
  .sidebar {
    inset: 8px auto 8px 8px;
    width: min(290px, calc(100% - 56px));
    transform: translateX(calc(-100% - 20px));
    transition: transform .5s var(--ease);
  }
  .sidebar.open { transform: none; }
  .main-area { margin-left: 0; }
  .topbar { top: 8px; height: 52px; margin: 8px 8px 0; padding: 0 6px 0 6px; justify-content: flex-start; gap: 6px; }
  .mobile-menu {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: none;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
  }
  .mobile-menu .i { width: 20px; height: 20px; }
  .breadcrumb { font-size: 0; }
  .breadcrumb strong { font-size: 16px; }
  .top-actions { margin-left: auto; gap: 6px; }
  .status-pill { display: none; }
  .account-button { min-height: 36px; padding: 0 13px; font-size: 13px; }
  .icon-button { width: 36px; height: 36px; }
  .page-content { padding: 26px 16px 48px; }
  h1, .view-header h1 { font-size: 30px; }
  .lead { font-size: 16px; }
  .welcome-row, .view-header { flex-direction: column; align-items: stretch; gap: 16px; }
  .welcome-row .button, .view-header .button { align-self: flex-start; }
  .guide-start { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .guide-start-steps { grid-template-columns: 1fr 1fr; }
  .journey-guide { padding: 20px 20px 8px; }
  .journey-guide-heading { flex-direction: column; }
  .trip-card { grid-template-columns: 1fr; }
  .trip-art { height: 110px; -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent); }
  .route { max-width: 200px; }
  .trip-info { padding: 4px 20px 16px; }
  .trip-info h2 { font-size: 24px; }
  .trip-meta { padding: 14px 20px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 36px; }
  .summary-grid { grid-template-columns: 1fr; gap: 12px; }
  .progress-card { grid-column: auto; }
  .metric-card { min-height: 0; }
  .panel { padding: 18px; }
  .filter-row { flex-direction: column; align-items: stretch; }
  .filter-tabs { align-self: flex-start; max-width: 100%; overflow-x: auto; }
  .filter-row select { width: 100%; }
  .task-board { padding: 0 16px; }
  .task-board-head { display: none; }
  .task-phases { gap: 26px; }
  .task-phase + .task-phase { padding-top: 24px; }
  .task-phase-head { flex-wrap: wrap; row-gap: 8px; }
  .task-phase-title { flex: 1 1 calc(100% - 50px); min-width: 0; }
  .task-phase-count { order: 3; margin-left: 50px; }
  .task-phase-add { order: 4; margin-left: auto; }
  .task-row { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; }
  .task-row .check-button { grid-column: 1; grid-row: 1 / 3; align-self: start; margin-top: 2px; }
  .task-row .task-row-main { grid-column: 2; grid-row: 1; }
  .task-row .task-row-actions { grid-column: 3; grid-row: 1 / 3; align-self: start; }
  .task-row .category-label { grid-column: 2; grid-row: 2; display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); font-weight: 400; }
  .task-row .category-label small { margin: 0; }
  .task-row .category-label small::before { content: "· "; }
  .task-row .priority-pill, .task-row .task-status { display: none; }
  .cost-intro { flex-wrap: wrap; align-items: flex-start; }
  .cost-intro p { min-width: calc(100% - 40px); }
  .cost-summary-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cost-summary-grid .cost-summary:first-child { grid-column: 1 / -1; }
  .cost-summary strong { font-size: 22px; }
  .cost-table-panel { padding: 18px 16px; }
  .cost-table-head { display: none; }
  .cost-row { grid-template-columns: 1fr auto 32px; gap: 2px 10px; }
  .cost-row > strong { grid-column: 1; }
  .cost-row > span:not(.amount) { grid-row: 2; font-size: 12px; }
  .cost-row > span:nth-of-type(1) { grid-column: 1; }
  .cost-row > span:nth-of-type(2) { display: none; }
  .cost-row .amount { grid-column: 2; grid-row: 1; text-align: right; }
  .cost-row .delete-button { grid-column: 3; grid-row: 1; }
  .cost-dual { grid-column: 1 / -1; grid-row: 3; }
  .city-fit-form .form-row, .savings-planner .form-row, .savings-result, .form-row { grid-template-columns: 1fr; }
  .city-fit-form, .savings-planner, .converter-card, .flight-route-card { padding: 18px; }
  .converter-fields { grid-template-columns: 1fr; gap: 12px; }
  .swap-wrap { display: none; }
  .conversion-result { flex-direction: column; align-items: flex-start; }
  .conversion-result strong { font-size: 30px; }
  .rate-footer { flex-direction: column; align-items: flex-start; }
  .flight-route-heading { flex-direction: column; align-items: flex-start; }
  .flight-form-grid { grid-template-columns: 1fr; }
  .flight-actions { display: grid; }
  .flight-actions .button { width: 100%; }
  .flight-offer { flex-direction: column; }
  .official-source-cards { grid-template-columns: 1fr; }
  .source-card-top { flex-direction: column; align-items: flex-start; }
  .source-route-context { text-align: left; }
  #source-country-select { width: 100%; }
  .modal { padding: 22px; }
  .wizard-progress span { font-size: 12px; gap: 6px; }
  .wizard-progress i { width: 22px; height: 22px; }
  .account-gate-card { padding: 26px 22px; }
  .account-gate-card h1 { font-size: 28px; }
  .preview-brand { top: 20px; left: 20px; }
  .preview-top { top: 8px; margin-top: 8px; width: calc(100% - 16px); height: 54px; padding-left: 16px; }
  .preview-main { width: calc(100% - 32px); padding-top: 36px; }
  .preview-hero > p { font-size: 16px; }
  .preview-destination { flex-direction: column; align-items: stretch; gap: 8px; }
  .preview-destination select { width: 100%; }
  .preview-route { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .preview-cta { flex-direction: column; align-items: stretch; padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .panel, .metric-card, .cost-summary, .trip-card, .legend-grid > div, .rate-explainer, .flight-api-note,
  .source-banner, .cost-intro, .sidebar, .topbar, .preview-top, .modal, .toast {
    background: var(--glass-strong);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.modal label:has(.optional-label) { grid-template-columns: max-content 1fr; column-gap: 6px; align-items: baseline; }
.modal label:has(.optional-label) > select, .modal label:has(.optional-label) > input { grid-column: 1 / -1; }

/* ---------- Contagem regressiva 3D ---------- */
.countdown-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 14px;
  padding: 24px 28px;
  min-height: 188px;
}
.countdown-kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-size: 13px; font-weight: 600; }
.countdown-copy h2 { font-size: 26px; letter-spacing: -.026em; font-weight: 700; margin: 6px 0 4px; }
.countdown-copy p { margin: 0 0 10px; color: var(--text-2); font-size: 14px; }

.countdown-stage { perspective: 900px; padding: 8px 18px; transition: opacity .4s var(--ease); }
.countdown-tilt {
  transform-style: preserve-3d;
  transform: rotateX(calc(10deg + var(--tilt-x, 0deg))) rotateY(calc(-16deg + var(--tilt-y, 0deg)));
  transition: transform .8s var(--ease);
}
.countdown-float { transform-style: preserve-3d; animation: countdown-float 7s ease-in-out infinite alternate; }
@keyframes countdown-float {
  from { transform: rotateX(-3deg) rotateY(5deg) translateZ(0); }
  to { transform: rotateX(3deg) rotateY(-5deg) translateZ(12px); }
}
.countdown-days-row, .countdown-clock, .drums { display: flex; align-items: center; transform-style: preserve-3d; }
.countdown-days-row { gap: 10px; justify-content: flex-end; }
.countdown-clock { gap: 2px; justify-content: flex-end; margin-top: 10px; color: var(--text-2); }
.countdown-clock small { font-size: 12px; font-weight: 600; color: var(--text-3); margin: 0 12px 0 3px; }
.countdown-clock small:last-child { margin-right: 0; }
.countdown-unit { font-size: 17px; font-weight: 600; color: var(--accent-text); align-self: flex-end; margin-bottom: 18px; }

.drums { --fh: 1.12em; font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1; }
.drums-days { --side: 0; font-size: 76px; font-weight: 750; letter-spacing: -.03em; color: var(--text); }
.drum {
  position: relative;
  width: .64em;
  height: var(--fh);
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--turn, 0) * 36deg));
  transition: transform .7s var(--spring);
}
.drum-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* 10 faces num cilindro: raio = altura / (2·tan 18°) */
  transform: rotateX(calc(var(--i) * -36deg)) translateZ(calc(var(--fh) * 1.539));
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.drum-face[data-k="0"] { opacity: 1; }
.drum-face[data-k="1"] { opacity: var(--side, .18); }
.drums-days .drum-face { text-shadow: 0 1px 0 var(--spec), 0 10px 26px var(--shadow-far); }
.countdown-card.is-spinning .drum { transition-duration: 1.6s; transition-timing-function: var(--ease); }
.countdown-card.is-spinning .drum-face { opacity: .9; transition-duration: .2s; }

.countdown-card[data-state="empty"] .countdown-stage,
.countdown-card[data-state="past"] .countdown-stage { opacity: .38; }
.countdown-card[data-state="today"] .drums-days { color: var(--accent); }
.countdown-card:not([data-state="empty"]) #countdown-set { color: var(--text-2); }

@media (max-width: 740px) {
  .countdown-card { grid-template-columns: 1fr; padding: 22px 20px; gap: 6px; }
  .countdown-stage { padding: 4px 0 8px; }
  .countdown-days-row, .countdown-clock { justify-content: center; }
  .drums-days { font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .countdown-tilt { transform: rotateX(8deg) rotateY(-12deg); }
}
.countdown-card + .flight-watch { margin-top: 14px; }
/* ---------- Monitor de passagens no painel ---------- */
.flight-watch { display: grid; gap: 16px; margin-bottom: 26px; padding: 22px 24px; }
.flight-watch-head { display: flex; align-items: center; gap: 12px; }
.flight-watch-head > div { flex: 1; min-width: 0; }
.flight-watch-head h2 { font-size: 17px; }
.flight-watch-head p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.flight-watch-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.flight-watch-body > div { display: grid; gap: 4px; }
#flight-watch-price { color: var(--accent-text); font-size: 34px; font-weight: 700; letter-spacing: -.026em; font-variant-numeric: tabular-nums; }
#flight-watch-meta { color: var(--text-2); font-size: 14px; }
.flight-trend { font-size: 13px; font-weight: 600; }
.flight-trend:empty { display: none; }
.flight-trend.down { color: var(--accent-text); }
.flight-trend.up { color: var(--warn); }
.flight-trend.flat { color: var(--text-2); }
.flight-watch-updated { color: var(--text-3); font-size: 12px; }
.flight-watch-updated:empty { display: none; }
.alert-price { display: grid; justify-items: end; gap: 2px; text-decoration: none; }
.alert-price b { color: var(--accent-text); font-size: 17px; font-variant-numeric: tabular-nums; }
.alert-price small { color: var(--text-2); font-size: 12px; }
.offer-price { display: grid; justify-items: end; gap: 4px; text-align: right; }
.offer-price b { color: var(--accent-text); font-size: 22px; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.offer-price small { color: var(--text-2); font-size: 12px; }
.flight-offer > div:first-child { display: grid; gap: 3px; }
.flight-offer small { color: var(--text-2); font-size: 13px; }
@media (max-width: 740px) {
  .flight-watch { padding: 18px; }
  .flight-watch-body .button { width: 100%; justify-content: center; }
}

/* Guia de chegada */
.guide-gate { padding: 22px 24px; max-width: 760px; }
.guide-gate-head { display: flex; gap: 14px; align-items: flex-start; }
.guide-gate-head h2 { margin: 0; font-size: 18px; }
.guide-gate-head p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.guide-terms { margin: 16px 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.guide-agree { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; font-size: 14px; font-weight: 500; }
.guide-agree input { margin-top: 3px; }
.guide-notice { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: var(--r-md); background: var(--warn-soft); color: var(--text); }
.guide-notice .i { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--warn); }
.guide-notice p { margin: 0; font-size: 13px; line-height: 1.55; }
.guide-notice .text-button { display: inline; padding: 0; font-size: 13px; }
.guide-tabs { margin-bottom: 16px; }
.guide-pane { display: grid; gap: 16px; }
.guide-intro { margin: 0; color: var(--text-2); font-size: 15px; max-width: 80ch; }
.guide-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.guide-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.guide-link { padding: 18px 20px; display: flex; flex-direction: column; min-width: 0; }
.guide-link h3 { margin: 12px 0 0; font-size: 16px; }
.guide-link p { margin: 4px 0 12px; color: var(--text-2); font-size: 13px; }
.guide-link a { margin-top: auto; font-weight: 600; }
.guide-block { padding: 20px 22px; }
.guide-block .panel-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.guide-block h2 { margin: 0; font-size: 18px; }
.guide-block .panel-heading p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.guide-checks { display: grid; gap: 4px; margin-top: 14px; }
.guide-check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--sep); cursor: pointer; }
.guide-check input { margin-top: 4px; flex: none; }
.guide-check span { display: grid; gap: 2px; min-width: 0; }
.guide-check small { color: var(--text-3); font-size: 13px; line-height: 1.5; }
.guide-check input:checked + span strong { text-decoration: line-through; color: var(--text-3); }
.guide-extra { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--info-soft); font-size: 14px; }
.guide-extra ul { margin: 6px 0 0; padding-left: 20px; }
.guide-steps { list-style: none; counter-reset: step; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.guide-step { counter-increment: step; position: relative; padding: 12px 14px 12px 52px; border-radius: var(--r-md); background: var(--fill); }
.guide-step::before { content: counter(step); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 13px; }
.guide-step .guide-check { padding: 2px 0 6px; border: 0; }
.guide-step-body p { margin: 4px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.guide-step-label { font-weight: 600; color: var(--text); }
.guide-step-note { color: var(--text-3) !important; }
.guide-chip { display: inline-block; margin: 2px 4px 2px 0; padding: 2px 9px; border-radius: 999px; background: var(--fill-2); font-size: 12px; color: var(--text); }
.guide-near { padding: 20px 22px; }
.guide-near h2 { margin: 0; font-size: 18px; }
.guide-near .panel-heading p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.guide-near-form { display: flex; gap: 10px; align-items: flex-end; margin-top: 14px; flex-wrap: wrap; }
.guide-near-form label { flex: 1 1 240px; }
.guide-near-state { margin-top: 10px; font-size: 13px; color: var(--text-2); }
.guide-near-results { display: grid; gap: 6px; margin-top: 10px; }
.guide-place { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); background: var(--fill); color: var(--text); text-decoration: none; }
.guide-place:hover { background: var(--fill-2); }
.guide-place span:first-child { display: grid; min-width: 0; }
.guide-place small { color: var(--text-3); font-size: 12px; }
.guide-place-dist { flex: none; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .guide-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 740px) { .guide-links { grid-template-columns: 1fr; } .guide-step { padding-left: 46px; } .guide-step::before { left: 10px; } .guide-gate, .guide-block, .guide-near { padding: 16px; } }
.guide-tabs .filter-tab { white-space: nowrap; flex: none; }
/* Guia: passo a passo */
.guide-howto { padding: 20px 22px; }
.guide-howto h2 { margin: 0 0 8px; font-size: 18px; }
.guide-howto ol { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 4px; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.guide-progress { height: 8px; border-radius: 999px; background: var(--fill-2); overflow: hidden; }
.guide-progress span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .4s var(--ease); }
.guide-progress-label { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--text-2); }
.guide-phase { display: grid; gap: 10px; }
.guide-phase-head { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.guide-phase-head h2 { margin: 0; font-size: 19px; }
.guide-phase-head p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.guide-phase-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.guide-phase .guide-extra { margin: 0; }
.guide-items { display: grid; gap: 8px; }
.guide-item { border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--glass-line); transition: border-color .2s; }
.guide-item.next { border-color: var(--accent); }
.guide-item summary { display: flex; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; list-style: none; }
.guide-item summary::-webkit-details-marker { display: none; }
.guide-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); color: var(--text-2); font-size: 13px; font-weight: 700; }
.guide-item.next .guide-num { background: var(--accent-soft); color: var(--accent-text); }
.guide-item.done .guide-num { background: var(--accent); color: var(--accent-ink); }
.guide-item.done .guide-item-title { color: var(--text-3); }
.guide-item-title { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; line-height: 1.4; }
.guide-item-title em { display: block; font-style: normal; font-size: 12px; font-weight: 600; color: var(--accent-text); margin-top: 2px; }
.guide-chev { flex: none; width: 16px; height: 16px; color: var(--text-3); transform: rotate(0deg); transition: transform .2s; }
.guide-item[open] .guide-chev { transform: rotate(180deg); }
.guide-item-body { padding: 0 16px 16px 56px; }
.guide-item-body p { margin: 4px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.guide-tip { padding: 8px 10px; border-radius: var(--r-sm); background: var(--fill); margin-top: 10px !important; }
.guide-item-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.guide-plan-cta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; }
.guide-plan-cta p { margin: 0; font-weight: 600; }
@media (max-width: 740px) { .guide-item-body { padding: 0 14px 14px; } .guide-item-actions .button { flex: 1 1 auto; justify-content: center; } }

/* ---------- Melhorias de uso (2026-10-13) ---------- */
.field-hint { display: block; color: var(--text-3); font-size: 12px; font-weight: 500; line-height: 1.4; margin-top: 4px; }
.top-countdown {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px;
  border: 1px solid var(--glass-line); border-radius: 999px; background: var(--accent-soft);
  color: var(--accent-text); font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase; white-space: nowrap; cursor: pointer; max-width: 46vw; overflow: hidden; text-overflow: ellipsis;
}
.top-countdown[data-state="empty"] { background: var(--warn-soft); color: var(--text); text-transform: none; font-weight: 600; }
.top-countdown span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .top-actions .status-pill { display: none; } }
@media (max-width: 560px) { .top-countdown { font-size: 11px; padding: 0 10px; max-width: 52vw; } }

.password-field { position: relative; display: block; }
.password-field input { padding-right: 84px; }
.password-field .password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); margin-top: 3px;
  border: 0; background: var(--fill); color: var(--text-2); border-radius: 8px; padding: 6px 10px;
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.account-settings { display: grid; gap: 12px; }
.account-settings h3 { margin: 10px 0 0; font-size: 15px; }
.account-settings .button { justify-self: start; }
.field-hint a { color: var(--accent-text); }
.delete-account { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--sep); border-radius: 14px; }
.delete-account summary { cursor: pointer; color: var(--danger); font-weight: 600; font-size: 14px; }
.delete-account label { display: grid; gap: 6px; }
.button-danger { background: var(--danger); color: #fff; justify-self: start; }
.button-danger:disabled { opacity: .6; }

.converter-fields.converter-simple { grid-template-columns: 1.2fr 44px 1fr; }
.converter-arrow { align-self: end; justify-self: center; padding-bottom: 12px; font-size: 22px; color: var(--text-3); }
.converter-target { display: grid; gap: 7px; align-self: end; padding-bottom: 10px; }
.converter-target span { color: var(--text-2); font-size: 13px; font-weight: 600; }
.converter-target strong { font-size: 17px; }
@media (max-width: 760px) { .converter-fields.converter-simple { grid-template-columns: 1fr; } .converter-arrow { display: none; } }

.savings-steps { list-style: none; counter-reset: sv; margin: 16px 0 0; padding: 0; display: grid; gap: 18px; }
.savings-steps > li { counter-increment: sv; position: relative; padding-left: 40px; display: grid; gap: 6px; }
.savings-steps > li::before {
  content: counter(sv); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 13px;
}
.savings-steps > li > span { color: var(--text-2); font-size: 13px; }
.savings-estimate { margin: 0; font-size: 14px; color: var(--text-2); }
.savings-estimate b { color: var(--text); }
.savings-progress { height: 8px; border-radius: 999px; background: var(--fill); overflow: hidden; margin: 0 0 12px; }
.savings-progress i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .4s var(--ease); }
.savings-timeline { margin: 0 0 10px; font-weight: 600; color: var(--text); }

.offer-price .offer-total { color: var(--text); font-weight: 700; }

.base-plan { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; margin-bottom: 16px; }
.base-plan p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
@media (max-width: 640px) { .base-plan { flex-direction: column; align-items: stretch; } }

.help-dialog { width: min(640px, calc(100vw - 32px)); }
.help-tabs { margin: 4px 0 14px; }
.help-steps { margin: 0; padding: 0; list-style: none; counter-reset: hs; display: grid; gap: 14px; }
.help-steps li { counter-increment: hs; position: relative; padding-left: 42px; display: grid; gap: 4px; }
.help-steps li::before {
  content: counter(hs); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px;
}
.help-steps span { color: var(--text-2); font-size: 14px; line-height: 1.45; }
.help-steps .text-button { justify-self: start; padding: 0; }
.help-pane details { border-bottom: 1px solid var(--sep); padding: 12px 0; }
.help-pane summary { cursor: pointer; font-weight: 600; }
.help-pane details p { margin: 8px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.form-feedback.ok { color: var(--accent-text); }
.account-settings .signout-button { justify-self: start; margin-top: 6px; }
.modal label:has(.optional-label) > .field-hint { grid-column: 1 / -1; }
.modal label { min-width: 0; }
@media (max-width: 560px) {
  .top-countdown span { display: none; }
  .top-countdown::after { content: attr(data-short); }
}
.brand-mark svg { width: 26px; height: 26px; display: block; }
.nav-item { white-space: nowrap; }
@media (max-width: 560px) {
  .topbar .breadcrumb { display: none; }
  .top-actions { margin-left: auto; }
}
.sidebar .author-sign { margin-top: 12px; padding-bottom: 2px; }
.nav-item.muted { white-space: normal; }
@media (max-width: 740px) { .sidebar .trust-card { display: none; } }

/* Guia: Preparar a mudança e Comunas (Chile) */
.guide-prep .guide-phase-head { margin-bottom: 8px; }
.guide-prep-count { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--fill-2); font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; }
.guide-checklist { list-style: none; margin: 6px 0 0; padding: 0; }
.guide-checklist li:last-child .guide-check { border-bottom: 0; }
.guide-checklist .guide-check span { color: var(--text); font-size: 14px; line-height: 1.5; }
.guide-checklist .guide-check input:checked + span { text-decoration: line-through; color: var(--text-3); }
.guide-costs { margin: 12px 0 0; display: grid; gap: 0; }
.guide-costs div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--sep); font-size: 14px; }
.guide-costs div:last-child { border-bottom: 0; }
.guide-costs dt { color: var(--text-2); }
.guide-costs dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.guide-budget-state { margin: 10px 0 6px; font-weight: 600; font-size: 14px; }
.guide-budget-state:empty { display: none; }
.guide-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.guide-area { padding: 0; border: 1px solid var(--glass-line); transition: border-color .2s; }
.guide-area.fits { border-color: var(--accent); }
.guide-area summary { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 16px 18px; cursor: pointer; list-style: none; }
.guide-area summary::-webkit-details-marker { display: none; }
.guide-area summary > span:first-child { display: grid; gap: 2px; min-width: 0; }
.guide-area summary strong { font-size: 16px; }
.guide-area summary small { color: var(--text-2); font-size: 13px; }
.guide-area-total { display: grid; justify-items: end; text-align: right; flex: none; }
.guide-area-total b { font-size: 16px; font-variant-numeric: tabular-nums; }
.guide-area-total em { margin-top: 4px; font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.guide-area > dl, .guide-area > p { padding: 0 18px; }
.guide-area > p { margin: 10px 0 16px; }
@media (max-width: 740px) { .guide-areas { grid-template-columns: 1fr; } .guide-area summary { padding: 14px; } .guide-area > dl, .guide-area > p { padding: 0 14px; } }

/* Guia: tela inicial (próximo passo + cartões) e navegação por seção */
.guide-next { padding: 22px 24px; display: grid; gap: 10px; }
.guide-next-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.guide-next-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text); }
.guide-next-pct { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.guide-next h2 { margin: 6px 0 0; font-size: 21px; line-height: 1.3; }
.guide-next p { margin: 0; color: var(--text-2); font-size: 14px; }
.guide-next .button { justify-self: start; margin-top: 4px; }
.guide-group { display: grid; gap: 10px; }
.guide-group-title { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; font-size: 15px; font-weight: 700; }
.guide-group-title span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); font-size: 12px; color: var(--text-2); }
.guide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide-card { display: flex; gap: 14px; align-items: center; padding: 16px 18px; text-align: left; font: inherit; color: var(--text); cursor: pointer; border: 1px solid var(--glass-line); transition: transform .2s var(--ease), border-color .2s; }
.guide-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.guide-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.guide-card-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.guide-card-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.guide-card-text strong { font-size: 16px; }
.guide-card-text small { color: var(--text-2); font-size: 13px; line-height: 1.4; }
.guide-card-text em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-3); margin-top: 2px; }
.guide-card-go { flex: none; color: var(--text-3); }
.guide-section-head { display: flex; gap: 14px; align-items: center; }
.guide-section-head h2 { margin: 0; font-size: 20px; }
.guide-section-head p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.guide-back { flex: none; }
.guide-back .i { transform: rotate(90deg); }
.guide-pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--sep); }
.guide-prep summary .guide-item-title small { display: block; font-weight: 400; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.guide-prep summary .guide-prep-count { margin: 0; flex: none; }
@media (max-width: 740px) { .guide-cards { grid-template-columns: 1fr; } .guide-next { padding: 18px; } .guide-section-head { align-items: flex-start; flex-direction: column; gap: 10px; } .guide-pager .button { flex: 1 1 0; justify-content: center; } }
.guide-howto-line { margin: 0 0 12px; font-size: 14px; color: var(--text-2); }
.guide-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--fill-2); border: 1px solid var(--glass-line); }
.guide-seg-btn { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.guide-seg-btn small { font-size: 12px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.guide-seg-btn.active { background: var(--glass-strong); color: var(--text); box-shadow: 0 1px 4px var(--shadow-near); }
.guide-phase-sub { margin: 0 0 4px; font-size: 14px; color: var(--text-2); }
@media (max-width: 560px) { .guide-seg { border-radius: var(--r-md); } .guide-seg-btn { flex-direction: column; gap: 0; border-radius: var(--r-sm); padding: 8px 6px; font-size: 13px; text-align: center; } }
.guide-extra ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }

/* Perfil da cidade: bairros que combinam e custo de montar a casa */
.city-fit-form > .cityfit-step-head { width: 100%; }
.cityfit-extra { max-width: 820px; display: grid; gap: 16px; margin-top: 16px; }
.cityfit-extra:empty { display: none; }
.cityfit-step { padding: 22px 26px; display: grid; gap: 14px; }
.cityfit-step-list { display: grid; gap: 12px; }
.cityfit-step-head { display: flex; gap: 12px; align-items: flex-start; }
.cityfit-step-head h2 { margin: 0; font-size: 18px; }
.cityfit-step-head p { margin: 3px 0 0; color: var(--text-2); font-size: 14px; }
.cityfit-budget { display: grid; gap: 7px; color: var(--text-2); font-size: 13px; font-weight: 600; max-width: 320px; }
.cityfit-areas { display: grid; gap: 10px; }
.cityfit-budget-result { margin: 0; color: var(--text-2); font-size: 13px; }
.cityfit-area { padding: 0; border: 1px solid var(--glass-line); }
.cityfit-area[open] { border-color: var(--accent); }
.cityfit-area summary { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; cursor: pointer; list-style: none; }
.cityfit-area summary::-webkit-details-marker { display: none; }
.cityfit-rank { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 13px; }
.cityfit-area-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.cityfit-area-text strong { font-size: 16px; }
.cityfit-area-text small { color: var(--text-2); font-size: 13px; }
.cityfit-why { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.cityfit-why em { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }
.cityfit-area-total { display: grid; justify-items: end; flex: none; text-align: right; }
.cityfit-area-total b { font-size: 16px; font-variant-numeric: tabular-nums; }
.cityfit-area-total small { color: var(--text-3); font-size: 12px; }
.cityfit-area > dl { padding: 0 18px; margin-top: 0; }
.cityfit-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cityfit-area .cityfit-actions { padding: 12px 18px 16px; }
.cityfit-home { display: grid; gap: 0; }
.cityfit-home label { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--sep); font-size: 14px; color: var(--text); }
.cityfit-home label span { flex: 1; min-width: 0; }
.cityfit-extra .cityfit-home label input { width: 150px; max-width: 40%; flex: none; text-align: right; }
.cityfit-home-total { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 15px; }
.cityfit-home-total b { font-variant-numeric: tabular-nums; }
@media (max-width: 740px) { .cityfit-step { padding: 18px; } .cityfit-area summary { padding: 14px; flex-wrap: wrap; } .cityfit-area-total { justify-items: start; text-align: left; width: 100%; padding-left: 40px; } .cityfit-extra .cityfit-home label input { width: 120px; } .cityfit-actions .button { flex: 1 1 auto; justify-content: center; } }

/* ---------- Fundo dos Andes 3D (andes.js) ---------- */
.andes-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; }
.andes-bg canvas { position: absolute; display: block; will-change: transform; transform-origin: 50% 100%; }
.andes-bg canvas:first-child { inset: 0; will-change: auto; }
body.has-andes { background: var(--andes-horizon, var(--bg)); }
body.has-andes::before { display: none; }

/* ---------- Relógio do Chile no topo (relogio.js) ---------- */
.top-clock {
  display: inline-flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 14px;
  border: 1px solid var(--glass-line); border-radius: 999px; background: var(--fill-2);
  font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; cursor: default;
}
.top-clock b { font-weight: 500; color: var(--text-3); margin-right: 2px; }
.top-clock-cl b { color: var(--accent-text); }
.top-clock-here { padding-left: 10px; border-left: 1px solid var(--sep); color: var(--text-2); }
@media (max-width: 1100px) { .top-clock-here { display: none; } }
@media (max-width: 560px) { .top-clock { min-height: 34px; padding: 0 10px; font-size: 12px; } .top-clock b { display: none; } .top-clock-cl::before { content: "CL "; color: var(--accent-text); font-weight: 600; } }

/* Novas buscas manuais de vagas e moradia */
.opportunity-panel { padding: 22px; margin-bottom: 18px; }
.opportunity-panel > label { display: grid; gap: 7px; margin-bottom: 16px; font-weight: 600; }
.opportunity-panel input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--glass-line); border-radius: 10px; color: var(--text); background: var(--field); font: inherit; }
.opportunity-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.opportunity-checklist { margin: 0 0 16px; padding-left: 22px; color: var(--text-2); line-height: 1.8; }
.housing-total { display: grid; grid-template-columns: 1fr auto; gap: 9px 14px; padding: 15px; margin: 16px 0; border-radius: 12px; background: var(--fill-2); color: var(--text-2); }
.housing-total strong { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 740px) { .opportunity-panel { padding: 17px; } .opportunity-links .button { flex: 1 1 100%; justify-content: center; } }
.housing-reference { margin: 12px 0; padding: 12px 14px; border-radius: 10px; background: var(--fill-2); }
.housing-reference summary { cursor: pointer; color: var(--accent-text); font-weight: 600; }
.housing-reference p { margin: 8px 0 0; }

/* Sugestões de busca */
.typeahead { position: relative; display: block; width: 100%; }
.opportunity-panel:has(.typeahead input:focus) { position: relative; z-index: 40; }
.typeahead-list { position: absolute; z-index: 1000; isolation: isolate; top: calc(100% + 5px); left: 0; right: 0; display: grid; max-height: min(280px, 45vh); overflow-y: auto; padding: 5px; border: 1px solid var(--field-line); border-radius: 12px; background: var(--suggestion-bg) !important; opacity: 1; box-shadow: 0 12px 30px var(--shadow-far); }
.typeahead-list[hidden] { display: none; }
.typeahead-list button { padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.typeahead-list button:hover, .typeahead-list button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-text); }

/* Editor e modelos de currículo */
.resume-layout { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr); gap: 20px; align-items: start; }
.resume-form { max-height: 75vh; overflow: auto; }
.resume-form textarea { width: 100%; min-height: 90px; padding: 10px 12px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--field); color: var(--text); font: inherit; resize: vertical; }
.resume-photo-adjust { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 8px 12px; margin-top: 10px; }
.resume-photo-adjust[hidden] { display: none; }
.resume-photo-adjust label { display: grid; gap: 3px; color: var(--text-2); font-size: 12px; }
.resume-photo-adjust label:nth-of-type(3) { grid-column: 1 / -1; }
.resume-photo-adjust input[type="range"] { min-height: 24px; padding: 0; accent-color: var(--accent); }
.resume-photo-adjust .button { grid-column: 1 / -1; justify-self: start; }
.resume-template-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.resume-template-choice { padding: 9px 12px; border: 1px solid var(--field-line); border-radius: 999px; background: transparent; color: var(--text-2); font: inherit; cursor: pointer; }
.resume-template-choice.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.resume-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.resume-preview-wrap { position: sticky; top: 20px; min-width: 0; }
.resume-preview-wrap > h2 { margin: 0 0 12px; font-size: 18px; }
.resume-paper { display: grid; grid-template-columns: 34% 66%; width: 100%; min-height: 720px; padding: 24px; background: #fff; color: #252525; box-shadow: 0 10px 36px rgba(0,0,0,.2); font: 10px/1.45 Arial, sans-serif; }
.resume-aside { padding: 12px; background: #555; color: #fff; overflow-wrap: anywhere; }
.resume-avatar { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 20px; border: 2px solid #ddd; border-radius: 50%; overflow: hidden; background: #eee; color: #444; font-size: 22px; font-weight: 700; }
.resume-aside h2 { margin: 18px 0 7px; padding-bottom: 4px; border-bottom: 1px solid #aaa; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.resume-aside p, .resume-aside ul { margin: 0; padding-left: 0; list-style: none; }
.resume-aside li { margin: 0 0 5px; }
.resume-main { min-width: 0; padding: 8px 18px; }
.resume-head { padding: 10px 0 16px; border-bottom: 1px solid #bbb; }
.resume-head h1 { margin: 0; font-size: 23px; line-height: 1.1; }
.resume-head p { margin: 5px 0 0; color: #666; letter-spacing: .1em; text-transform: uppercase; }
.resume-section { margin-top: 18px; overflow-wrap: anywhere; }
.resume-section h2 { margin: 0 0 8px; padding-bottom: 4px; border-bottom: 1px solid #aaa; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.resume-entry { margin: 0 0 12px; }
.resume-entry strong { display: block; margin-bottom: 2px; }
.resume-entry p { margin: 3px 0; }
.resume-section ul { margin: 0; padding-left: 16px; }
.resume-muted { color: #777; }
.resume-classic { display: block; padding: 34px; }
.resume-classic .resume-head { text-align: center; }
.resume-modern { display: block; padding: 34px; border-top: 18px solid var(--accent); }
.resume-modern .resume-head { padding: 14px; background: #f1f5f3; }
.resume-head-contact { margin: 6px 0 0 !important; color: #555 !important; letter-spacing: 0 !important; text-transform: none !important; font-size: 9.5px; }
/* Executivo: faixa azul-marinho no topo, nome em serifa e coluna de contato à direita. */
.resume-executive { display: block; padding: 0; }
.resume-executive .resume-head { padding: 26px 30px; border: 0; background: #1f3a5f; color: #fff; }
.resume-executive .resume-head h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 26px; font-weight: 400; letter-spacing: .02em; }
.resume-executive .resume-head p { color: #c9d6e6; }
.resume-executive .resume-photo-frame { border: 2px solid #c9d6e6; }
.resume-cols { display: grid; grid-template-columns: 1fr 32%; }
.resume-executive .resume-main { padding: 6px 22px 22px 30px; }
.resume-executive .resume-section h2 { color: #1f3a5f; border-bottom: 2px solid #1f3a5f; }
.resume-executive .resume-aside { padding: 20px 18px; background: #eef2f7; color: #253041; }
.resume-executive .resume-aside h2 { color: #1f3a5f; border-bottom-color: #9fb1c8; }
@media (max-width: 520px) { .resume-cols { grid-template-columns: 1fr 38%; } .resume-executive .resume-main { padding: 6px 14px 18px 18px; } .resume-executive .resume-aside { padding: 18px 12px; } .resume-executive .resume-aside h2 { letter-spacing: .02em; overflow-wrap: normal; } }
/* Linha do tempo: nome grande alinhado à esquerda, experiências com linha e pontos, habilidades em etiquetas. */
.resume-timeline { display: block; padding: 34px 38px; }
.resume-timeline .resume-head { padding: 0 0 14px; border-bottom: 3px solid #b4532a; }
.resume-timeline .resume-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.resume-timeline .resume-head > div > p:first-of-type { color: #b4532a; font-weight: 700; }
.resume-timeline .resume-section h2 { border: 0; color: #b4532a; font-size: 11.5px; }
.resume-timeline .resume-section .resume-entry { position: relative; margin-left: 6px; padding: 0 0 12px 16px; border-left: 2px solid #ead7cd; }
.resume-timeline .resume-section .resume-entry::before { content: ""; position: absolute; left: -6px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #b4532a; }
.resume-timeline .resume-summary .resume-entry { margin-left: 0; padding: 0; border: 0; }
.resume-timeline .resume-summary .resume-entry::before { content: none; }
.resume-timeline .resume-section ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.resume-timeline .resume-section li { padding: 3px 9px; border-radius: 999px; background: #f6e9e2; color: #6b3018; }
@media (max-width: 920px) { .resume-layout { grid-template-columns: 1fr; } .resume-form { max-height: none; } .resume-preview-wrap { position: static; } }
@media print {
  @page { size: A4; margin: 0; }
  body.print-resume { margin: 0 !important; background: #fff !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body.print-resume > :not(#resume-preview) { display: none !important; }
  body.print-resume #resume-preview { display: grid; position: relative; width: 210mm; height: auto; min-height: 297mm; box-sizing: border-box; overflow: visible; margin: 0; padding: 12mm; box-shadow: none; font-size: 10pt; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body.print-resume #resume-preview.resume-classic, body.print-resume #resume-preview.resume-modern { padding: 18mm; }
  body.print-resume #resume-preview.resume-executive { display: block; padding: 0; }
  body.print-resume #resume-preview.resume-timeline { display: block; padding: 18mm; }
  body.print-resume .resume-executive .resume-head, body.print-resume .resume-executive .resume-aside, body.print-resume .resume-timeline li, body.print-resume .resume-timeline .resume-entry::before { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body.print-resume #resume-preview.resume-classic { display: block; }
  body.print-resume #resume-preview.resume-modern { display: block; }
  body.print-resume .resume-aside, body.print-resume .resume-modern .resume-head { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
.resume-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: var(--photo-x, 50%) var(--photo-y, 50%); transform: scale(var(--photo-zoom, 1)); transform-origin: var(--photo-x, 50%) var(--photo-y, 50%); }
.resume-photo-frame { display: block; width: 62px; height: 62px; flex: none; overflow: hidden; border-radius: 50%; }
.resume-head-photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: var(--photo-x, 50%) var(--photo-y, 50%); transform: scale(var(--photo-zoom, 1)); transform-origin: var(--photo-x, 50%) var(--photo-y, 50%); }
.resume-head { display: flex; align-items: center; gap: 12px; }
.resume-classic .resume-head { justify-content: center; }

/* CAPTCHA (Turnstile): só ocupa espaço quando o Cloudflare pede interação. */
.captcha-box:empty { display: none; }
.captcha-box { margin: 8px 0; min-height: 0; }
