:root {
  --pine-950: #10241f;
  --pine-800: #1c4037;
  --pine-600: #397667;
  --ice-50: #f4f9f8;
  --ice-100: #e8f2f0;
  --ice-300: #b8d7d1;
  --coral: #ff715b;
  --lavender: #8c7ac7;
  --sun: #f2c75c;
  --ink: #14201d;
  --muted: #60716c;
  --line: #d9e5e1;
  --paper: #fbfdfc;
  --white: #ffffff;
  --danger: #b23b31;
  --shadow: 0 20px 50px rgba(16, 36, 31, .12);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--ice-50);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--ice-50); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--coral) 60%, transparent);
  outline-offset: 2px;
}
[hidden] { display: none !important; }

.eyebrow {
  margin: 0 0 6px;
  color: var(--pine-600);
  font: 700 .72rem/1 "Space Grotesk", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 20;
  width: 248px; padding: 28px 20px 22px;
  color: var(--white); background: var(--pine-950);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.sidebar::before {
  content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -70px;
  border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.03), 0 0 0 68px rgba(255,255,255,.025);
}
.brand { position: relative; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; margin-bottom: 40px; }
.brand-mark {
  display: block; width: 48px; height: 48px; border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.22); transform: rotate(-3deg);
}
.brand strong { display: block; font: 700 1.12rem "Space Grotesk"; }
.brand small { display: block; margin-top: 3px; color: #aac5be; }
.nav-list { display: grid; gap: 7px; position: relative; }
.nav-button {
  width: 100%; border: 0; border-radius: 13px; padding: 12px 13px; color: #bcd1cc; background: transparent;
  display: flex; align-items: center; gap: 12px; text-align: left; font-weight: 600; transition: .18s ease;
}
.nav-button span { width: 22px; font-size: 1.1rem; text-align: center; }
.nav-button:hover { color: white; background: rgba(255,255,255,.07); }
.nav-button.active { color: white; background: var(--pine-800); box-shadow: inset 3px 0 var(--coral); }
.sidebar-foot { margin-top: auto; position: relative; }
.connection-pill { font-size: .76rem; color: #bcd1cc; margin-bottom: 13px; display: flex; align-items: center; gap: 7px; }
.connection-pill span { width: 8px; height: 8px; background: #69dfb4; border-radius: 50%; box-shadow: 0 0 0 4px rgba(105,223,180,.12); }
.text-button { border: 0; padding: 4px 0; color: #8caaa3; background: none; font-size: .78rem; }
.text-button:hover { color: white; }

.workspace { min-height: 100vh; margin-left: 248px; }
.topbar {
  min-height: 106px; padding: 26px clamp(24px, 4vw, 58px) 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: color-mix(in srgb, var(--ice-50) 92%, transparent); backdrop-filter: blur(18px);
  position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(217,229,225,.7);
}
.topbar h1 { margin: 0; font: 700 clamp(1.45rem, 2.5vw, 2rem)/1.1 "Space Grotesk"; letter-spacing: -.035em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
#view { padding: 28px clamp(24px, 4vw, 58px) 80px; max-width: 1500px; margin: 0 auto; }

.button { border: 0; border-radius: 12px; min-height: 42px; padding: 10px 16px; font-weight: 700; transition: transform .16s, box-shadow .16s, background .16s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--coral); box-shadow: 0 8px 18px rgba(255,113,91,.24); }
.button-dark { color: white; background: var(--pine-950); }
.button-ghost { color: var(--pine-800); background: var(--ice-100); }
.button-danger { color: var(--danger); background: #fbe7e5; }
.button-small { min-height: 34px; padding: 7px 11px; font-size: .82rem; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--pine-800); font-size: 1.2rem; }
.icon-button:hover { background: var(--ice-100); }

.hero-board {
  position: relative; overflow: hidden; min-height: 280px; padding: clamp(26px, 5vw, 54px);
  border-radius: var(--radius-lg); color: white; background: var(--pine-950); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 28px;
}
.hero-board::after {
  content: ""; position: absolute; right: -55px; top: -80px; width: 370px; height: 370px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 31px, rgba(255,255,255,.07) 32px 33px);
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy .eyebrow { color: #84cbbb; }
.hero-copy h2 { max-width: 760px; margin: 0 0 18px; font: 600 clamp(2.2rem, 5vw, 4.5rem)/.98 "Space Grotesk"; letter-spacing: -.065em; }
.hero-copy p { max-width: 640px; margin: 0; color: #bed0cb; font-size: clamp(.95rem, 1.5vw, 1.12rem); }
.hero-date {
  position: relative; z-index: 1; justify-self: end; width: 180px; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; text-align: center;
  box-shadow: inset 0 0 0 12px rgba(255,255,255,.04);
}
.hero-date strong { display: block; color: var(--sun); font: 700 3rem/.9 "Space Grotesk"; }
.hero-date span { display: block; margin-top: 6px; color: #c9d8d4; font-size: .78rem; text-transform: uppercase; letter-spacing: .11em; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.metric-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.metric-card small { color: var(--muted); font-weight: 600; }
.metric-card strong { display: block; margin-top: 6px; font: 700 1.75rem "Space Grotesk"; }
.metric-card .metric-foot { margin-top: 11px; color: var(--pine-600); font-size: .78rem; }
.progress-line { height: 7px; margin-top: 12px; border-radius: 10px; background: var(--ice-100); overflow: hidden; }
.progress-line span { display: block; height: 100%; border-radius: inherit; background: var(--coral); }

.section-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 20px; margin-top: 20px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 18px; }
.panel-head h2, .panel-head h3 { margin: 0; font: 700 1.15rem "Space Grotesk"; letter-spacing: -.025em; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: .88rem; }
.link-button { border: 0; background: none; color: var(--pine-600); font-weight: 700; padding: 4px; }

.journey-rail { position: relative; display: grid; gap: 0; }
.journey-item { position: relative; display: grid; grid-template-columns: 76px 24px 1fr; gap: 12px; min-height: 86px; }
.journey-item time { padding-top: 4px; color: var(--pine-600); font: 700 .84rem "Space Grotesk"; }
.rail-node { position: relative; display: flex; justify-content: center; }
.rail-node::after { content: ""; position: absolute; top: 19px; bottom: -4px; width: 2px; background: var(--line); }
.journey-item:last-child .rail-node::after { display: none; }
.rail-node span { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--white); background: var(--ice-300); box-shadow: 0 0 0 1px var(--ice-300); }
.journey-item.done .rail-node span { background: var(--pine-600); box-shadow: 0 0 0 1px var(--pine-600); }
.journey-content { padding: 0 0 21px; }
.journey-content strong { display: block; margin-bottom: 3px; }
.journey-content p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.weather-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; margin-top: 9px; color: var(--pine-950); font-size: .77rem; line-height: 1.35; }
.weather-condition { display: inline-flex; align-items: center; padding: 6px 9px; border: 1px solid #d6e4eb; border-radius: 10px; background: linear-gradient(135deg, #f4fbff, #edf4f6); }
.weather-condition strong { display: inline; margin: 0 2px 0 4px; font: 800 .86rem "Space Grotesk"; }
.weather-place { color: var(--muted); font-weight: 700; }
.umbrella-badge { display: inline-flex; align-items: center; padding: 6px 9px; border: 1px solid #f0b7ad; border-radius: 999px; color: #8f2e21; background: #fff0ed; font-weight: 800; box-shadow: 0 4px 10px rgba(143,46,33,.08); }
.travel-estimate { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 9px; border-radius: 9px; color: var(--pine-800); background: var(--ice-100); font-size: .78rem; font-weight: 700; line-height: 1.35; }
.travel-estimate span { color: var(--pine-600); }
.journey-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 9px; }
.button-waze { border-color: #a9d9ca; background: #e6f6f1; color: var(--pine-800); }
.button-waze:hover { border-color: var(--pine-600); background: #d5efe7; }

.day-strip { display: flex; gap: 9px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.route-switch { margin-bottom: 16px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.route-switch label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.route-switch select { max-width: 430px; }
.route-switch p { margin: 10px 0 0; color: var(--muted); line-height: 1.45; }
.day-strip::-webkit-scrollbar { display: none; }
.day-chip { min-width: 74px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 15px; background: white; color: var(--muted); }
.day-chip span, .day-chip strong { display: block; }
.day-chip span { font-size: .72rem; text-transform: uppercase; }
.day-chip strong { margin-top: 4px; font: 700 1.1rem "Space Grotesk"; color: var(--ink); }
.day-chip.active { color: white; background: var(--pine-800); border-color: var(--pine-800); box-shadow: 0 8px 18px rgba(28,64,55,.2); }
.day-chip.active strong { color: white; }
.day-banner { margin: 4px 0 18px; padding: 20px 22px; border-radius: var(--radius-md); background: var(--ice-100); display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.day-banner h2 { margin: 0; font: 700 1.28rem "Space Grotesk"; }
.day-banner p { margin: 7px 0 0; max-width: 900px; color: var(--muted); line-height: 1.55; }
.day-weather-note { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 13px; color: var(--pine-700); font-size: .76rem; font-weight: 700; }
.day-weather-note strong { color: #8f2e21; }
.weather-attribution { margin-top: 5px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; text-align: right; }
.weather-attribution a { color: var(--pine-600); font-weight: 700; }

.checklist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.checklist-card { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius-lg); overflow: hidden; }
.checklist-head { padding: 21px 22px 16px; border-bottom: 1px solid var(--line); }
.checklist-head-row { display: flex; justify-content: space-between; gap: 14px; }
.checklist-head h2 { margin: 0; font: 700 1.02rem "Space Grotesk"; }
.checklist-head small { color: var(--muted); }
.checklist-items { padding: 8px 10px 12px; }
.check-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 11px 9px; border-radius: 11px; }
.check-row:hover { background: var(--ice-50); }
.check-row input { width: 19px; height: 19px; accent-color: var(--pine-600); }
.check-row span { line-height: 1.4; font-size: .9rem; }
.check-row.done span { color: #87938f; text-decoration: line-through; }
.row-delete { border: 0; color: #9baaa6; background: none; opacity: 0; }
.check-row:hover .row-delete, .row-delete:focus-visible { opacity: 1; }
.add-row { display: flex; gap: 8px; padding: 8px 9px 2px; }
.add-row input { flex: 1; min-width: 0; }

.observation-layout { display: grid; grid-template-columns: 320px 1fr; gap: 18px; }
.note-composer { position: sticky; top: 130px; align-self: start; }
.note-composer textarea { min-height: 150px; }
.note-list { display: grid; gap: 12px; }
.note-card { padding: 18px 19px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.note-card.pinned { border-color: #d8c470; box-shadow: inset 4px 0 var(--sun); }
.note-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tag { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: var(--ice-100); color: var(--pine-800); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.note-card p { margin: 0; white-space: pre-wrap; line-height: 1.6; }
.note-card footer { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; color: var(--muted); font-size: .76rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.info-card { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); overflow: hidden; }
.info-card .card-emoji { font-size: 1.8rem; }
.info-card h2 { margin: 12px 0 8px; font: 700 1.05rem/1.25 "Space Grotesk"; }
.attraction-forecast { margin: 14px 0; padding: 11px; border: 1px solid #d6e4eb; border-radius: 13px; background: #f6fbfd; }
.attraction-forecast .forecast-date { display: block; margin-bottom: 5px; color: var(--pine-600); font-size: .69rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.attraction-forecast .weather-line { margin-top: 0; }
.attraction-forecast .weather-condition { padding: 0; border: 0; background: transparent; }
.attraction-forecast .weather-place { width: 100%; font-size: .72rem; }
.code-block { margin: 13px 0; padding: 11px 12px; border-radius: 10px; background: var(--pine-950); color: white; font: 600 .82rem "Space Grotesk"; letter-spacing: .07em; overflow-wrap: anywhere; }
.info-lines { display: grid; gap: 7px; padding: 0; margin: 14px 0; list-style: none; color: var(--muted); font-size: .83rem; line-height: 1.45; }
.document-list { display: grid; gap: 8px; margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.document-list .eyebrow { margin: 0 0 2px; }
.document-link { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); color: var(--pine-950); font-size: .8rem; font-weight: 700; line-height: 1.25; }
.document-link:hover { border-color: var(--pine-600); background: #eef7f4; }
.document-link span { color: var(--pine-600); }
.document-link b { font-size: .9rem; }
.status-dot { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lavender); }
.status-dot.roteiro::before { background: var(--pine-600); }
.status-dot.descartado::before { background: #a5afac; }

.agent-board { padding: clamp(24px, 4vw, 42px); border-radius: var(--radius-lg); background: linear-gradient(135deg, #e5f4f0, #f2effb); border: 1px solid #d5e8e3; }
.agent-board h2 { max-width: 760px; margin: 0; font: 700 clamp(1.8rem, 4vw, 3.2rem)/1.04 "Space Grotesk"; letter-spacing: -.05em; }
.agent-board > p { max-width: 760px; color: var(--muted); line-height: 1.6; }
.endpoint-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; margin-top: 18px; border-radius: 13px; background: var(--pine-950); color: white; }
.endpoint-box code { overflow-wrap: anywhere; font-size: .82rem; }
.access-link-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 22px 0; padding: 18px; border: 1px solid var(--ice-300); border-radius: var(--radius-md); background: var(--white); }
.access-link-card p { margin: 5px 0 0; color: var(--muted); font-size: .88rem; }
.steps { counter-reset: setup; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.step { counter-increment: setup; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.72); }
.step::before { content: counter(setup); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--coral); color: white; font-weight: 700; }
.step strong { display: block; margin: 14px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }

input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; color: var(--ink); background: white;
}
textarea { resize: vertical; line-height: 1.5; }
label { display: grid; gap: 7px; color: var(--pine-800); font-size: .82rem; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-error { min-height: 20px; margin: 8px 0 0; color: #ffd6d1; font-size: .82rem; }

.modal { width: min(620px, calc(100% - 24px)); border: 0; border-radius: var(--radius-lg); padding: 0; box-shadow: 0 32px 90px rgba(16,36,31,.3); }
.modal::backdrop { background: rgba(9, 25, 21, .64); backdrop-filter: blur(5px); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 24px 26px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font: 700 1.35rem "Space Grotesk"; }
.modal-body { padding: 24px 26px; max-height: 64vh; overflow-y: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 26px 22px; }
.update-modal { width: min(480px, calc(100% - 24px)); }
.update-modal-content { display: grid; justify-items: center; padding: clamp(28px, 7vw, 46px); text-align: center; }
.update-symbol { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 20px; border-radius: 20px; color: var(--pine-950); background: linear-gradient(135deg, var(--sun), #ffeeb0); box-shadow: 0 14px 30px rgba(227, 190, 55, .28); font-size: 1.8rem; }
.update-modal-content .eyebrow { margin: 0 0 8px; }
.update-modal-content h2 { margin: 0; font: 700 clamp(1.55rem, 5vw, 2.1rem) "Space Grotesk"; letter-spacing: -.04em; }
.update-modal-content > p:not(.eyebrow) { margin: 14px 0 0; color: var(--muted); line-height: 1.6; }
.update-note { display: flex; align-items: flex-start; gap: 9px; margin: 22px 0; padding: 12px 14px; border-radius: 12px; color: var(--pine-800); background: var(--ice-100); font-size: .84rem; line-height: 1.45; text-align: left; }
.update-note span { color: var(--pine-600); font-weight: 800; }
.update-modal-content .button { width: 100%; justify-content: center; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: 360px; padding: 13px 16px; border-radius: 12px; color: white; background: var(--pine-950); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }

.auth-screen { min-height: 100vh; padding: 24px; display: grid; place-items: center; color: white; background: var(--pine-950); overflow: hidden; }
.auth-screen::before { content: ""; position: fixed; inset: 0; background: radial-gradient(circle at 15% 20%, rgba(140,122,199,.25), transparent 30%), radial-gradient(circle at 88% 80%, rgba(255,113,91,.19), transparent 28%); }
.auth-card { position: relative; width: min(620px, 100%); padding: clamp(28px, 7vw, 60px); border: 1px solid rgba(255,255,255,.14); border-radius: 32px; background: rgba(255,255,255,.06); box-shadow: 0 30px 80px rgba(0,0,0,.25); backdrop-filter: blur(18px); }
.auth-card .eyebrow { color: #8fd5c5; }
.auth-card h1 { margin: 0 0 18px; font: 600 clamp(2.4rem, 7vw, 4.8rem)/.95 "Space Grotesk"; letter-spacing: -.065em; }
.auth-card > p { color: #bdd0cb; line-height: 1.6; }
.auth-card label { margin-top: 28px; color: #d6e5e1; }
.auth-input-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: 8px; }
.auth-stamp { position: absolute; right: 30px; top: 28px; font-size: 2.2rem; color: var(--sun); transform: rotate(12deg); }

.empty-state { padding: 40px 20px; text-align: center; color: var(--muted); }
.mobile-nav, .fab { display: none; }

@media (max-width: 1050px) {
  .sidebar { width: 220px; }
  .workspace { margin-left: 220px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .section-grid { grid-template-columns: 1fr; }
  .observation-layout { grid-template-columns: 280px 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: 78px; }
  .sidebar { display: none; }
  .workspace { margin-left: 0; }
  .topbar { min-height: 88px; padding: 18px 18px 14px; }
  #view { padding: 18px 14px 58px; }
  .desktop-only { display: none; }
  .hero-board { min-height: 390px; grid-template-columns: 1fr; align-items: start; padding: 26px 22px; }
  .hero-copy h2 { font-size: clamp(2.4rem, 14vw, 4rem); }
  .hero-date { width: 138px; justify-self: start; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .metric-card { padding: 16px; }
  .metric-card strong { font-size: 1.38rem; }
  .checklist-grid, .card-grid, .observation-layout, .steps { grid-template-columns: 1fr; }
  .note-composer { position: static; }
  .panel { padding: 19px; border-radius: 20px; }
  .journey-item { grid-template-columns: 60px 20px 1fr; gap: 8px; }
  .weather-place { width: 100%; }
  .day-banner { padding: 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .access-link-card { align-items: stretch; flex-direction: column; }
  .mobile-nav {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: fixed; z-index: 30; left: 8px; right: 8px; bottom: 8px;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); border: 1px solid rgba(255,255,255,.13); border-radius: 20px;
    background: rgba(16,36,31,.96); box-shadow: 0 20px 45px rgba(16,36,31,.35); backdrop-filter: blur(18px);
  }
  .mobile-nav .nav-button { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; font-size: .62rem; text-align: center; }
  .mobile-nav .nav-button span { width: auto; font-size: 1.15rem; }
  .mobile-nav .nav-button.active { box-shadow: none; background: var(--pine-800); }
  .fab { display: grid; place-items: center; position: fixed; z-index: 31; right: 17px; bottom: 88px; width: 52px; height: 52px; border: 0; border-radius: 50%; color: white; background: var(--coral); box-shadow: 0 12px 28px rgba(255,113,91,.38); font-size: 1.7rem; }
  .toast { right: 14px; left: 14px; bottom: 88px; max-width: none; }
  .modal { border-radius: 24px 24px 0 0; width: 100%; max-width: none; margin: auto 0 0; }
  .update-modal { border-radius: 24px 24px 0 0; }
  .modal-head, .modal-body { padding-left: 20px; padding-right: 20px; }
  .modal-actions { padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
