/* =========================================================================
   Roteiro · gestor de viagens
   Tokens, layout, componentes e responsivo.
   ========================================================================= */

:root {
  --bg: #f4f1ea;
  --bg-tint: #efeae0;
  --surface: #fffdf9;
  --surface-2: #f7f3ea;
  --sidebar: #fbf8f2;
  --ink: #1a1814;
  --ink-2: #565046;
  --ink-3: #837c70;
  --line: #e6dfd1;
  --line-strong: #d5cab6;
  --primary: #175144;
  --primary-hover: #1d6353;
  --primary-ink: #fffdf7;
  --accent: #b8462c;
  --accent-soft: #f7e3db;
  --gold: #b98b3c;
  --danger: #a8392a;
  --danger-soft: #f8e4e0;
  --ok: #2c7a5b;
  --ok-soft: #e2f0e8;
  --warn: #9a6b12;
  --warn-soft: #f9efd9;
  --hero-1: #0e3a30;
  --hero-2: #1a6152;
  --hero-ink: #f7f1e4;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(26, 24, 20, .05);
  --shadow: 0 1px 2px rgba(26, 24, 20, .04), 0 14px 34px -22px rgba(26, 24, 20, .35);
  --shadow-lg: 0 30px 70px -30px rgba(16, 20, 16, .45);
  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121110;
  --bg-tint: #171614;
  --surface: #1b1a18;
  --surface-2: #232120;
  --sidebar: #161514;
  --ink: #f3eee4;
  --ink-2: #b7afa2;
  --ink-3: #8b8478;
  --line: #2c2a26;
  --line-strong: #3d3a34;
  --primary: #2f9a80;
  --primary-hover: #38ab8f;
  --primary-ink: #08110f;
  --accent: #e0704f;
  --accent-soft: #33241f;
  --gold: #d9ad63;
  --danger: #e5735c;
  --danger-soft: #33231f;
  --ok: #55b48d;
  --ok-soft: #1d2f28;
  --warn: #d9a94a;
  --warn-soft: #2f2718;
  --hero-1: #0b2a24;
  --hero-2: #17564a;
  --hero-ink: #f7f1e4;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -24px rgba(0, 0, 0, .8);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .9);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(184, 70, 44, .06), transparent 70%),
    radial-gradient(900px 480px at 0% 110%, rgba(23, 81, 68, .07), transparent 70%);
  z-index: 0;
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -.018em; font-weight: 650; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

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

button { cursor: pointer; }

svg.ico { width: 18px; height: 18px; flex: none; }

::selection { background: rgba(184, 70, 44, .18); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.hint { color: var(--ink-3); font-size: 12.5px; margin-top: 10px; }

/* ---------------------------------------------------------------- layout */
.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 18px 18px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 4px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--hero-2), var(--hero-1));
  color: #f4d9a8;
  box-shadow: 0 6px 16px -8px rgba(14, 58, 48, .8), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.brand-mark svg { width: 22px; height: 22px; }

.brand-mark.sm { width: 32px; height: 32px; border-radius: 10px; }

.brand-mark.sm svg { width: 18px; height: 18px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-text strong { font-size: 17px; letter-spacing: -.02em; }

.brand-text small { font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }

.trip-switch { display: flex; flex-direction: column; gap: 7px; }

.switch-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-left: 2px;
}

.switch-label .ico { width: 13px; height: 13px; }

.switch-row { display: flex; gap: 6px; }

.switch-row .select { flex: 1; min-width: 0; }

.nav { display: flex; flex-direction: column; gap: 3px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  transition: background .16s ease, color .16s ease;
}

.nav-item:hover { background: var(--surface-2); color: var(--ink); }

.nav-item.is-active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  padding: 8px 10px;
}

.nav-item.is-active .ico { color: var(--primary); }

.nav-count {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 1px 7px;
  font-variant-numeric: tabular-nums;
}

.nav-item.is-active .nav-count { background: var(--accent-soft); color: var(--accent); }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }

.conn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--ink-2);
  text-align: left;
  transition: border-color .16s ease;
}

.conn:hover { border-color: var(--line-strong); }

.conn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--ink-3);
}

.conn.is-ok .conn-dot { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.conn.is-err .conn-dot { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.conn.is-wait .conn-dot { background: var(--warn); animation: pulse 1.2s ease-in-out infinite; }

.conn-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 11px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-3);
  font-size: 12.5px;
}

.theme-toggle:hover { background: var(--surface-2); color: var(--ink-2); }

.main {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 32px 72px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-bar { display: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0 12px;
  background: linear-gradient(var(--bg) 72%, transparent);
  backdrop-filter: blur(6px);
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-3);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.search:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 4px rgba(23, 81, 68, .07); }

.search > svg { width: 18px; height: 18px; flex: none; }

.search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--ink);
  min-width: 0;
}

.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search kbd {
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0 5px;
  color: var(--ink-3);
  background: var(--surface-2);
}

.view { display: flex; flex-direction: column; gap: 18px; }

/* --------------------------------------------------------------- botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 15px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 550;
  white-space: nowrap;
  transition: transform .12s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.btn:hover { border-color: var(--line-strong); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 16px; height: 16px; }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 8px 20px -12px rgba(23, 81, 68, .9);
}

.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; color: var(--ink); }

.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #93301f; border-color: #93301f; }

.btn-glass {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .22);
  color: var(--hero-ink);
  backdrop-filter: blur(8px);
}

.btn-glass:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .34); }

.btn-sm { height: 33px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 13px; }
.btn-icon { width: 40px; padding: 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

.danger { color: var(--danger); }
.btn-ghost.danger:hover { background: var(--danger-soft); }

.is-busy { opacity: .62; pointer-events: none; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-3);
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}

.icon-btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.icon-btn.sm { width: 29px; height: 29px; border-radius: 8px; }
.icon-btn.sm .ico { width: 15px; height: 15px; }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.icon-btn.is-on { color: var(--ok); background: var(--ok-soft); }

/* ---------------------------------------------------------------- campos */
.input, .select {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.input:focus, .select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 81, 68, .12);
}

.input::placeholder, .select::placeholder { color: var(--ink-3); }

textarea.input { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.5; }

.input-lg { height: 46px; font-size: 16px; font-weight: 550; }

.select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23837c70' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; background-size: 15px; }

.select-sm { height: 33px; font-size: 12.5px; border-radius: 9px; }

.form { display: flex; flex-direction: column; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field > span {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.field small { font-size: 12px; color: var(--ink-3); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.span-2 { grid-column: span 2; }

.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.advanced { border-top: 1px dashed var(--line); padding-top: 12px; }

.advanced summary {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-2);
  list-style: none;
}

.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::after { content: "▾"; margin-left: auto; color: var(--ink-3); }
.advanced[open] summary::after { content: "▴"; }
.advanced .grid-2 { margin-top: 12px; }

/* ---------------------------------------------------------------- héroe */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  padding: 30px 30px 28px;
  border-radius: var(--radius-lg);
  color: var(--hero-ink);
  background:
    radial-gradient(120% 160% at 88% 0%, rgba(244, 217, 168, .18), transparent 55%),
    linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 100%);
  box-shadow: var(--shadow-lg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 100% at 100% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, #000 35%, rgba(0, 0, 0, .25) 72%, transparent 92%);
  mask-image: linear-gradient(100deg, #000 35%, rgba(0, 0, 0, .25) 72%, transparent 92%);
}
.hero-art svg { width: 100%; height: 100%; }

/* Capa da viagem (banner): imagem de fundo + véu para o texto continuar legível */
.hero.has-cover { background: var(--hero-1); }
.hero-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 45%;
  pointer-events: none;
}
.hero.has-cover::after {
  background-image: linear-gradient(100deg,
    rgba(7, 30, 25, .95) 0%,
    rgba(7, 30, 25, .88) 38%,
    rgba(7, 30, 25, .55) 70%,
    rgba(7, 30, 25, .22) 100%);
  background-size: auto;
  mask-image: none;
  -webkit-mask-image: none;
}
.hero.has-cover .hero-body,
.hero.has-cover .hero-side { position: relative; z-index: 1; }
@media (max-width: 720px) {
  .hero.has-cover::after {
    background-image: linear-gradient(180deg,
      rgba(7, 30, 25, .9) 0%,
      rgba(7, 30, 25, .82) 55%,
      rgba(7, 30, 25, .62) 100%);
  }
}

.hero-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(247, 241, 228, .62);
}

.hero-title {
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.04;
  font-weight: 680;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero-sub { color: rgba(247, 241, 228, .78); font-size: 14.5px; max-width: 54ch; }
.hero-sub.is-muted { color: rgba(247, 241, 228, .48); font-style: italic; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }

.chip-glass {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  font-size: 12.5px;
  color: rgba(247, 241, 228, .92);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
}

.chip-glass .ico { width: 14px; height: 14px; opacity: .8; }

.hero-progress { display: flex; align-items: center; gap: 10px; margin-top: 6px; max-width: 320px; }

.hero-progress-bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  overflow: hidden;
}

.hero-progress-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f4d9a8, #e8b96a);
  transition: width .5s cubic-bezier(.2, .8, .2, 1);
}

.hero-progress span { font-size: 11.5px; color: rgba(247, 241, 228, .7); white-space: nowrap; }

.hero-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-width: 186px;
}

.countdown {
  display: flex;
  align-items: center;
  flex: none;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  text-align: left;
}

.countdown strong {
  font-size: 30px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  color: #f4d9a8;
}

.countdown span { font-size: 11.5px; line-height: 1.25; color: rgba(247, 241, 228, .72); }

.countdown.is-live strong { color: #a8e6c3; }
.countdown.is-over strong { color: #a8e6c3; }
.countdown.is-idle strong { color: rgba(247, 241, 228, .5); }

.hero-cost { text-align: right; display: flex; flex-direction: column; gap: 1px; }

.hero-cost-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(247, 241, 228, .55); }

.hero-cost-value { font-size: 20px; font-weight: 620; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.hero-cost small { font-size: 11.5px; color: rgba(247, 241, 228, .55); }

.hero-actions { display: flex; gap: 7px; }

/* ---------------------------------------------------------------- avisos */
.banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 13px;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.banner .ico { width: 18px; height: 18px; flex: none; }
.banner > div { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.banner strong { font-size: 13px; }
.banner span { color: var(--ink-2); font-size: 12.5px; }
.banner-error { border-color: #ecc9c1; background: #fdf3f0; color: #7d2b1d; }
.banner-warn { border-color: #ecdbb4; background: var(--warn-soft); color: #6f4d0d; }

[data-theme="dark"] .link { color: #5fc4a8; }
[data-theme="dark"] .link:hover { color: #7fd9bd; }

[data-theme="dark"] .banner-error { background: #2b1c19; border-color: #4a2b25; color: #f0b3a2; }
[data-theme="dark"] .banner-warn { background: #2b2418; border-color: #4a3d22; color: #e8c98d; }

/* --------------------------------------------------------------- filtros */
.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.pills {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  flex-wrap: wrap;
}

.pills::-webkit-scrollbar { display: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}

.pill:hover { border-color: var(--line-strong); color: var(--ink); }

.pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  font-weight: 600;
}

.pill span { font-size: 11px; opacity: .62; font-variant-numeric: tabular-nums; }
.pill-emoji { font-size: 13px; line-height: 1; font-family: var(--emoji); }

.filter-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: none; flex-wrap: wrap; }
.filter-tools .select-sm { width: auto; min-width: 172px; }

.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}

.check-inline input { accent-color: var(--primary); width: 14px; height: 14px; }

.result-line { font-size: 12.5px; color: var(--ink-3); padding-left: 2px; }

/* ------------------------------------------------------------------ dias */
.days { display: flex; flex-direction: column; gap: 10px; }

.day {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.day-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(var(--surface-2), var(--surface));
  border-bottom: 1px solid var(--line);
}

.day-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 8px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  line-height: 1;
}

.day-num span { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.day-num strong { font-size: 20px; font-weight: 680; font-variant-numeric: tabular-nums; margin-top: 2px; }

.day-info { min-width: 0; }

.day-info h2 { font-size: 16.5px; font-weight: 620; }

.day-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

.dot-sep { margin: 0 6px; opacity: .55; }

.day-side { display: flex; align-items: center; gap: 12px; }

.day-cost {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 8px;
  white-space: nowrap;
}

.day-tools { display: flex; gap: 2px; }

.acts {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 8px 14px 12px 8px;
}

.acts::before {
  content: "";
  position: absolute;
  left: 70px;
  top: 26px;
  bottom: 26px;
  width: 1px;
  background: linear-gradient(var(--line), var(--line) 60%, transparent);
}

.act {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  padding: 6px 0;
  border-radius: 14px;
  transition: background .15s ease;
}

.act:hover { background: rgba(23, 81, 68, .025); }
.act.is-dragging { opacity: .45; }
.act.drop-before .act-card { box-shadow: 0 -2px 0 0 var(--primary); }
.act.drop-after .act-card { box-shadow: 0 2px 0 0 var(--primary); }

.act-rail { position: relative; padding: 15px 14px 0 0; text-align: right; }

.act-time {
  display: block;
  font-size: 12.5px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  letter-spacing: -.01em;
}

.act-duration { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 1px; }

.act-dot {
  position: absolute;
  right: -4.5px;
  top: 21px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  z-index: 1;
}

.act.is-done .act-dot { background: var(--ok); border-color: var(--ok); }

.act-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 14px 11px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, box-shadow .2s ease, transform .16s ease;
  cursor: grab;
}

.act-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 1px 2px rgba(26, 24, 20, .05), 0 10px 26px -20px rgba(26, 24, 20, .5);
}

.act-card:active { cursor: grabbing; }

.act.is-done .act-card { background: var(--surface-2); }
.act.is-done .act-title { color: var(--ink-2); }

.act-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: .01em;
}

.tag-sm { font-size: 10.5px; padding: 2px 7px; }
.tag-emoji { font-size: 12px; line-height: 1; font-family: var(--emoji); }

.act-price {
  font-size: 13px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}

.act-price.is-empty { font-size: 11px; font-weight: 500; color: var(--ink-3); }

.act-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 15.5px;
  font-weight: 620;
  line-height: 1.32;
  letter-spacing: -.012em;
}

.act.is-done .act-title { text-decoration: line-through; text-decoration-color: var(--line-strong); }

.done-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ok);
  background: var(--ok-soft);
  border-radius: 999px;
  padding: 2px 6px 2px 4px;
  text-decoration: none;
}

.done-badge .ico { width: 10px; height: 10px; stroke-width: 2.6; }

.act-place {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.45;
}

.act-place .ico { width: 13px; height: 13px; margin-top: 2px; color: var(--ink-3); }

.act-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }

.act-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 3px;
  padding-top: 7px;
  border-top: 1px dashed var(--line);
}

.act-links { display: flex; gap: 12px; flex-wrap: wrap; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 550;
  color: var(--primary);
  border-radius: 5px;
}

.link .ico { width: 13px; height: 13px; }
.link:hover { text-decoration: underline; text-underline-offset: 2px; }

.act-actions { display: flex; gap: 1px; opacity: .68; transition: opacity .15s ease; }
.act:hover .act-actions, .act:focus-within .act-actions { opacity: 1; }

.grip {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--ink-3);
  padding: 4px 2px;
  opacity: 0;
  cursor: grab;
}

.grip .ico { width: 14px; height: 14px; }
.act:hover .grip { opacity: .6; }

.day-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}

.days-foot { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding-top: 2px; }

/* ------------------------------------------------------------- vazios */
.empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.empty-card > .ico { width: 28px; height: 28px; color: var(--ink-3); }
.empty-card h3 { font-size: 16px; }
.empty-card p { font-size: 13px; color: var(--ink-2); max-width: 46ch; }
.empty-card .btn { margin-top: 8px; }

.empty-trip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 64px 24px;
  text-align: center;
}

.empty-trip-art {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  color: #f4d9a8;
  background: linear-gradient(150deg, var(--hero-2), var(--hero-1));
  box-shadow: var(--shadow);
}

.empty-trip-art .ico { width: 34px; height: 34px; }
.empty-trip h1 { font-size: clamp(24px, 3.4vw, 32px); }
.empty-trip p { max-width: 52ch; color: var(--ink-2); font-size: 14px; }

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 90px 0;
  color: var(--ink-3);
  font-size: 13.5px;
}

.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  align-items: flex-start;
}

.panel h2 { font-size: 18px; }
.panel p { font-size: 13.5px; max-width: 60ch; }

.foot-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-3);
}

.foot-note .ico { width: 14px; height: 14px; flex: none; }

/* ---------------------------------------------------------------- páginas */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.page-head h1 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -.03em; }
.page-head p { font-size: 13.5px; margin-top: 3px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

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

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat-label { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.stat-value { font-size: 21px; font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.stat-hint { font-size: 11.5px; color: var(--ink-3); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-row + .grid-2 { margin-top: 0; }

.card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-head h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -.01em;
}
.card-head .ico { width: 16px; height: 16px; color: var(--ink-3); }
.card-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
}

.counter {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
  font-variant-numeric: tabular-nums;
  margin-left: 6px;
}

/* ------------------------------------------------------------------ rosca */
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.donut {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .03);
}

.donut.is-empty { background: conic-gradient(var(--surface-2) 0 100%); }

.donut-hole {
  display: grid;
  place-items: center;
  gap: 1px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  padding: 6px;
}

.donut-hole span { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.donut-hole strong { font-size: 14.5px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; max-width: 96px; line-height: 1.2; }

.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 180px; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.legend i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.legend-name { color: var(--ink-2); font-family: var(--emoji); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.legend-pct { color: var(--ink-3); font-size: 11px; width: 34px; text-align: right; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ barras */
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }

.bars li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 10px; }

.bar-label { font-size: 12px; font-weight: 550; line-height: 1.2; }
.bar-label small { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 400; }

.bar-track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), #3f8f77); transition: width .5s cubic-bezier(.2, .8, .2, 1); }

.bar-value { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* ------------------------------------------------------------------ tabela */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 10px 8px 0;
  border-bottom: 1px solid var(--line);
}
.table td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td strong { font-weight: 600; }
.table .num { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table th:nth-child(2), .table td:nth-child(2) { width: 170px; }
.table th.num, .table td.num { width: 130px; }
.cell-sub { display: block; font-size: 11px; color: var(--ink-3); margin-top: 1px; }

/* --------------------------------------------------------------- checklist */
.progress-card { gap: 10px; padding: 16px 18px; }

.progress-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.progress-head strong { font-weight: 650; font-variant-numeric: tabular-nums; }
.progress-pct { font-size: 13px; font-weight: 650; color: var(--primary); font-variant-numeric: tabular-nums; }

.progress { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), #4aa585); transition: width .45s cubic-bezier(.2, .8, .2, 1); }

.check-add { display: grid; grid-template-columns: minmax(0, 1fr) 160px auto; gap: 8px; }

.check-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }

.check-group { gap: 10px; }
.check-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

.check-item:last-child { border-bottom: 0; }

.check-label { display: flex; align-items: center; gap: 9px; flex: 1; cursor: pointer; min-width: 0; }
.check-label input { position: absolute; opacity: 0; width: 0; height: 0; }

.checkbox {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: transparent;
  flex: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.checkbox .ico { width: 12px; height: 12px; stroke-width: 3; }

.check-label input:checked + .checkbox { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.check-label input:focus-visible + .checkbox { outline: 2px solid var(--primary); outline-offset: 2px; }

.check-text { font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; }
.check-item.is-done .check-text { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }

.check-del { opacity: 0; }
.check-item:hover .check-del, .check-del:focus-visible { opacity: 1; }

/* ---------------------------------------------------------------- ajustes */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 14px; align-items: start; }
.settings-grid > .card { min-width: 0; }
.settings-grid > .card { gap: 16px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 550;
  color: var(--ink-3);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  max-width: 100%;
}

.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.status.ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.status.err { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.status.wait { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.status span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.diag {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.diag li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.diag span { color: var(--ink-3); }
.diag code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  background: var(--surface-2);
  border-radius: 5px;
  padding: 1px 6px;
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.trip-box-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.trip-box-main span { overflow-wrap: anywhere; }
.trip-box-main strong { font-size: 13.5px; }
.trip-box-main span { font-size: 12px; color: var(--ink-2); }
.trip-box-main small { font-size: 11px; color: var(--ink-3); font-family: var(--mono); }
.trip-box-actions { display: flex; gap: 6px; flex: none; }

.bullets { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.bullets strong { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- modais */
.modal-open { overflow: hidden; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 16px 24px;
  background: rgba(20, 18, 14, .45);
  backdrop-filter: blur(4px);
  overflow-y: auto;
  animation: fade .18s ease;
}

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

.modal {
  width: 100%;
  max-width: 560px;
  margin: auto;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .5);
  animation: rise .22s cubic-bezier(.2, .8, .2, 1);
}

.modal-lg { max-width: 700px; }
.modal-sm { max-width: 420px; }

@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 { font-size: 19px; letter-spacing: -.02em; }
.modal-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.modal-body { padding: 18px 20px 20px; }

.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.modal-actions .spacer { flex: 1; }

.confirm-text { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.confirm-text strong { color: var(--ink); }

/* --------------------------------------------------------------- toasts */
.toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(380px, calc(100vw - 36px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: var(--shadow-lg);
  animation: toastIn .25s cubic-bezier(.2, .8, .2, 1);
}

.toast.is-out { animation: toastOut .3s ease forwards; }

.toast-ico { display: grid; place-items: center; margin-top: 1px; }
.toast-ico .ico { width: 15px; height: 15px; }
.toast-ok .toast-ico { color: #8ee0b6; }
.toast-error { background: #7c2a1c; color: #fdeee9; }
.toast-error .toast-ico { color: #ffc3b5; }
.toast-text { flex: 1; }

@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

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

@media (max-width: 1080px) {
  .app { grid-template-columns: 232px minmax(0, 1fr); }
  .main { padding: 18px 22px 64px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .app { display: block; }
  .sidebar { display: none; }

  .mobile-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 30;
    margin: -14px -16px 0;
    padding: 10px 16px 10px;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }

  .mb-top { display: flex; align-items: center; gap: 10px; }
  .mb-brand { display: flex; align-items: center; gap: 8px; font-size: 15px; letter-spacing: -.02em; }
  .mb-brand strong { font-weight: 650; }
  #trip-switch-m { margin-left: auto; max-width: 62%; }

  .mobile-bar .nav { flex-direction: row; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
  .mobile-bar .nav::-webkit-scrollbar { display: none; }
  .mobile-bar .nav-item {
    flex: 1 1 0;
    justify-content: center;
    gap: 5px;
    padding: 7px 6px;
    font-size: 11.5px;
    border-radius: 9px;
    min-width: 0;
  }
  .mobile-bar .nav-item.is-active { border: 1px solid var(--line); padding: 6px 9px; }
  .mobile-bar .nav-label { font-size: 12px; }
  .mobile-bar .switch-label { display: none; }
  .mobile-bar .nav-count { margin-left: 2px; font-size: 10.5px; }

  .main { padding: 14px 16px 56px; gap: 12px; }
  .topbar { position: static; padding: 0; background: none; backdrop-filter: none; }
  .search { height: 40px; }
  .search kbd { display: none; }
  .topbar .btn-primary span { display: none; }
  .topbar .btn-primary { width: 40px; padding: 0; }

  .hero { grid-template-columns: 1fr; gap: 14px; padding: 20px 18px; border-radius: 18px; }
  .hero-body { gap: 9px; }
  .hero-chips { gap: 5px; }
  .chip-glass { font-size: 11.5px; padding: 4px 8px 4px 7px; }
  .hero-sub { font-size: 13.5px; }
  .hero-side { flex-direction: row; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
  .hero-cost { text-align: left; }
  .hero-cost small { display: none; }
  .countdown { padding: 7px 11px; }
  .countdown strong { font-size: 24px; }
  .hero-title { font-size: clamp(26px, 8vw, 34px); }

  .day-head { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 12px; align-items: flex-start; }
  .day-side { grid-column: auto; flex-direction: column; align-items: flex-end; gap: 4px; }
  .day-cost { display: none; }
  .day-num { min-width: 40px; height: 40px; border-radius: 10px; }
  .day-num strong { font-size: 17px; }

  .acts { padding: 6px 10px 10px 4px; }
  .act { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; }
  .acts::before { left: 52px; }
  .act-rail { padding-right: 11px; }
  .act-time { font-size: 11.5px; }
  .act-duration { display: none; }
  .grip { display: none; }
  .act-actions { opacity: 1; }
  .act-card { padding: 11px 12px 9px; }
  .act-title { font-size: 14.5px; }

  .filters { gap: 8px; }
  .pills { flex-wrap: nowrap; overflow-x: auto; }
  .filter-tools { justify-content: space-between; }
  .filter-tools .select-sm { flex: 1 1 auto; max-width: 240px; width: auto; }
  .grid-2, .settings-grid { grid-template-columns: 1fr; }
  .check-add { grid-template-columns: minmax(0, 1fr) auto; }
  .check-add select { display: none; }
  .check-del { opacity: .55; }
  .page-head h1 { font-size: 24px; }
  .page-actions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 2px; }
  .page-actions::-webkit-scrollbar { display: none; }
  .page-actions .btn { flex: none; }
  .modal-backdrop { padding: 2vh 10px 16px; align-items: flex-end; }
  .modal { border-radius: 18px; }
  .grid-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .toast-root { right: 10px; left: 10px; bottom: 10px; max-width: none; }
  .stat-value { font-size: 18px; }
}

@media (max-width: 480px) {
  .hero-chips .chip-glass:nth-child(n+3) { display: none; }
  .hero-progress { display: none; }
  .hero-actions { width: 100%; justify-content: flex-start; }
  .hero-side { flex-direction: column; align-items: stretch; gap: 10px; }
  .countdown { align-self: flex-start; }
  .hero-cost { display: none; }
  .hero-progress { max-width: none; }
  .day-cost { font-size: 12px; }
  .legend { min-width: 100%; }
  .donut { width: 128px; height: 128px; }
  .donut-hole { width: 86px; height: 86px; }
}


/* ------------------------------------------------------------ preços em lote */
.bulk-form { gap: 12px; }
.hint.tight { margin: 0; }

.bulk-day { display: flex; flex-direction: column; gap: 6px; }

.bulk-day h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.bulk-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px 110px;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
}

.bulk-name { display: flex; flex-direction: column; font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.bulk-name small { font-size: 10.5px; color: var(--ink-3); font-family: var(--emoji); }

.bulk-currency {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  text-align: right;
}

.input-sm { height: 34px; font-size: 13px; text-align: right; border-radius: 8px; }

.table-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 6px 0 2px; }

@media (max-width: 600px) {
  .bulk-row { grid-template-columns: minmax(0, 1fr) 96px; }
  .bulk-currency { display: none; }

  .diag li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .diag code { max-width: 100%; white-space: normal; word-break: break-word; text-align: left; }
  .trip-box { flex-direction: column; align-items: stretch; }
  .trip-box-actions { justify-content: flex-start; }
}

/* --------------------------------------------------------------- impressão */
@media print {
  @page { margin: 14mm 12mm; }
  :root { --bg: #fff; --surface: #fff; --surface-2: #fff; --line: #ddd; --ink: #111; }
  body { background: #fff; }
  body::before { display: none; }
  .sidebar, .mobile-bar, .topbar, .filters, .days-foot, .page-actions,
  .act-actions, .grip, .day-tools, .toast-root, .modal-backdrop, .banner, .btn { display: none !important; }
  .app { display: block; }
  .main { max-width: none; padding: 0; }
  .hero {
    background: #123f35 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    box-shadow: none;
    border-radius: 12px;
  }
  .day { break-inside: avoid; box-shadow: none; margin-bottom: 10px; }
  .act { break-inside: avoid; }
  .act-card { box-shadow: none; }
  .view { gap: 10px; }
  a[href]::after { content: ""; }
}
