:root {
  --ink: #062f42;
  --ink-2: #0b475b;
  --paper: #f7f3ec;
  --paper-deep: #ece6dd;
  --white: #fffdf9;
  --aqua: #6bddd2;
  --aqua-deep: #009e99;
  --coral: #ee8069;
  --sun: #f2c368;
  --muted: #6e7f82;
  --line: rgba(6, 47, 66, .12);
  --shadow: 0 13px 30px rgba(6, 47, 66, .09);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 0; background: #dfe7e5; scroll-behavior: smooth; }
body { min-width: 0; min-height: 100svh; margin: 0; background: var(--paper); }
body.dialog-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.app-shell { width: min(100%, 620px); min-height: 100svh; margin: 0 auto; overflow: hidden; background: var(--paper); box-shadow: 0 0 52px rgba(6, 47, 66, .08); }
.view { display: none; min-height: calc(100svh - 79px); padding-bottom: 110px; animation: enter .28s ease both; }
.view.is-active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.connection-bar { position: fixed; z-index: 20; top: max(8px, env(safe-area-inset-top)); left: 50%; display: flex; align-items: center; gap: 7px; max-width: calc(100vw - 32px); padding: 7px 10px; border-radius: 999px; transform: translateX(-50%); color: #e7fffb; background: rgba(6, 47, 66, .88); box-shadow: 0 6px 20px rgba(6,47,66,.17); backdrop-filter: blur(14px); font-size: 10px; font-weight: 750; letter-spacing: .02em; opacity: 0; pointer-events: none; transition: .25s ease; }
.connection-bar.is-visible { opacity: 1; }
.connection-bar.is-offline { color: #6f4c17; background: rgba(255, 231, 174, .96); }
.connection-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 3px rgba(107,221,210,.16); }
.connection-bar.is-offline .connection-dot { background: var(--coral); box-shadow: none; }

.hero { position: relative; isolation: isolate; display: flex; min-height: 650px; flex-direction: column; color: #fff; background: #073d55 url("./assets/side-coast-hero.webp") 54% center / cover no-repeat; }
.hero__shade, .visual-header__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,23,39,.47), rgba(0,27,39,.04) 38%, rgba(0,27,39,.72) 100%); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: max(20px, calc(env(safe-area-inset-top) + 8px)) 20px 0; }
.brand-button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; background: rgba(6,47,66,.16); font-family: Georgia, serif; font-size: 23px; font-style: italic; cursor: pointer; backdrop-filter: blur(9px); }
.brand-button:active { transform: scale(.94); }
.topbar__actions { display: flex; gap: 8px; }
.mini-button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; color: #fff; border: 1px solid rgba(255,255,255,.46); border-radius: 50%; background: rgba(6,47,66,.23); cursor: pointer; backdrop-filter: blur(10px); }
.mini-button svg, .nav-item svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.hero__content { margin-top: auto; padding: 0 22px 46px; }
.eyebrow { margin: 0 0 7px; color: rgba(255,255,255,.76); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow.ink { color: var(--aqua-deep); }
.hero h1, .page-header h1, .visual-header h1 { margin: 0; font-size: clamp(49px, 14vw, 72px); font-weight: 760; letter-spacing: -.075em; line-height: .9; }
.hero__dates { margin: 16px 0 25px; font-size: 14px; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; }
.hero__dates span { margin: 0 4px; color: var(--aqua); }
.countdown { width: min(250px, 78vw); padding: 12px 14px; border: 1px solid rgba(255,255,255,.27); border-radius: 12px; background: rgba(255,255,255,.13); backdrop-filter: blur(12px); }
.countdown span { display: block; margin-bottom: 1px; color: rgba(255,255,255,.72); font-size: 9px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.countdown strong { font-size: 17px; letter-spacing: -.03em; }

.home-content, .page-content { padding: 25px 18px 0; }
.page-content--flush { padding-top: 0; }
.section-block { margin-top: 28px; }
.card { border: 1px solid rgba(6,47,66,.05); border-radius: 19px; background: var(--white); box-shadow: var(--shadow); }
.section-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.section-row h2, .routine-card h2, .tool-card h2, .notes-card h2, .beach-pack h2, .family-meter h2, .person-panel h2, .common-panel h2, .info-card h2, .backup-card h2, .sync-card h2 { margin: 0; font-size: 24px; letter-spacing: -.055em; line-height: 1.03; }
.date-pill, .offline-chip { flex: none; padding: 7px 9px; border-radius: 999px; color: var(--ink-2); background: #dceee8; font-size: 10px; font-weight: 800; }

.trip-scale { padding: 17px; }
.trip-scale h2 { margin: 0; font-size: 23px; letter-spacing: -.05em; }
.scale-percent { font-size: 27px; font-weight: 800; letter-spacing: -.07em; }
.scale-track { position: relative; height: 8px; margin: 22px 2px 10px; border-radius: 99px; background: #dce9e5; }
.scale-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--aqua-deep), var(--aqua)); transition: width .4s ease; }
.scale-track b { position: absolute; top: 50%; left: 0; width: 15px; height: 15px; border: 3px solid var(--white); border-radius: 50%; transform: translate(-50%, -50%); background: var(--coral); box-shadow: 0 2px 8px rgba(6,47,66,.25); transition: left .4s ease; }
.scale-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }

.weather-card { margin-top: 13px; padding: 17px; overflow: hidden; }
.weather-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.weather-head h2 { margin: 0; font-size: 24px; letter-spacing: -.055em; line-height: 1.03; }
.weather-refresh { display: grid; place-items: center; width: 38px; height: 38px; flex: none; padding: 0; color: var(--aqua-deep); border: 1px solid var(--line); border-radius: 12px; background: #e5f1ed; cursor: pointer; }
.weather-refresh svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.weather-refresh.is-loading svg { animation: weather-spin .8s linear infinite; }
@keyframes weather-spin { to { transform: rotate(360deg); } }
.weather-now { display: grid; grid-template-columns: 1.08fr 1fr; gap: 12px; margin-top: 17px; }
.weather-primary { display: flex; min-width: 0; align-items: center; gap: 10px; }
.weather-icon { display: grid; place-items: center; width: 49px; height: 49px; flex: none; border-radius: 15px; background: #ffe5ad; font-size: 27px; }
.weather-primary strong { display: block; font-size: 31px; letter-spacing: -.075em; line-height: .92; }
.weather-primary span:not(.weather-icon) { display: block; margin-top: 4px; font-size: 10px; font-weight: 750; }
.weather-primary small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.weather-metrics { display: grid; gap: 5px; }
.weather-metrics article { display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 6px; min-width: 0; padding: 6px 8px; border-radius: 10px; background: #eef3ef; }
.weather-metrics article > span { color: var(--coral); font-size: 18px; text-align: center; }
.weather-metrics small { display: block; color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.weather-metrics strong { display: block; margin-top: 1px; font-size: 13px; letter-spacing: -.035em; }
.weather-advice { margin-top: 13px; padding: 10px 11px; color: #6e4c1f; border-radius: 11px; background: #f9e5b8; font-size: 10px; font-weight: 650; line-height: 1.4; }
.weather-hours { display: grid; grid-auto-columns: 68px; grid-auto-flow: column; gap: 7px; margin: 14px -17px 0; padding: 0 17px 5px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.weather-hours::-webkit-scrollbar { display: none; }
.weather-hour { display: grid; min-height: 98px; place-items: center; padding: 8px 5px; border: 1px solid var(--line); border-radius: 13px; background: #faf8f3; scroll-snap-align: start; text-align: center; }
.weather-hour time { color: var(--muted); font-size: 9px; font-weight: 800; }
.weather-hour > span { font-size: 19px; }
.weather-hour strong { font-size: 14px; letter-spacing: -.04em; }
.weather-hour small { color: var(--aqua-deep); font-size: 8px; font-weight: 800; }
.weather-hour em { color: var(--muted); font-size: 7.5px; font-style: normal; }
.weather-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 8px; }
.weather-footer a { color: var(--aqua-deep); font-weight: 750; text-decoration: none; }
.weather-card.is-stale .weather-refresh { color: var(--coral); }

.readiness-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 15px; margin-top: 13px; padding: 15px; color: #fff; border-radius: 19px; background: var(--ink); }
.readiness-ring { --progress: 0deg; position: relative; display: grid; place-items: center; width: 88px; height: 88px; flex: none; border-radius: 50%; background: conic-gradient(var(--aqua) var(--progress), rgba(255,255,255,.13) 0); }
.readiness-ring::after { position: absolute; inset: 7px; border-radius: inherit; background: var(--ink); content: ""; }
.readiness-ring strong, .readiness-ring span { position: relative; z-index: 1; }
.readiness-ring strong { align-self: end; font-size: 22px; letter-spacing: -.06em; }
.readiness-ring span { align-self: start; margin-top: -2px; color: #9fc1c5; font-size: 9px; text-transform: uppercase; }
.readiness-card h2 { margin: 0; font-size: 23px; letter-spacing: -.055em; }
.readiness-card p:not(.eyebrow) { margin: 5px 0 3px; color: #b7cbcd; font-size: 11px; }
.readiness-kicker { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.readiness-kicker .eyebrow { margin-bottom: 4px; }
.home-sync-chip { flex: none; padding: 4px 7px; color: #a9c7c8; border: 1px solid rgba(107,221,210,.22); border-radius: 999px; font-size: 8.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.home-sync-chip.is-shared { color: var(--aqua); background: rgba(107,221,210,.08); }
.inline-action { padding: 5px 0; color: var(--aqua); border: 0; background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }

.flight-card { margin-top: 15px; padding: 15px; border-radius: 19px; background: var(--white); box-shadow: var(--shadow); }
.flight-card__meta, .flight-card__bottom { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.flight-card__meta span:last-child { color: var(--ink); }
.flight-route { display: grid; grid-template-columns: 1fr 1.05fr 1fr; align-items: center; gap: 6px; margin: 21px 0; }
.flight-route strong { display: block; font-size: 27px; letter-spacing: -.07em; line-height: 1; }
.flight-route > div > span { display: block; margin-top: 6px; color: var(--muted); font-size: 8.5px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.flight-route__arrival { text-align: right; }
.route-line { position: relative; display: grid; place-items: center; align-self: stretch; padding-top: 10px; }
.route-line span { position: relative; z-index: 1; padding: 0 5px; background: var(--white); font-size: 8px !important; }
.route-line i { position: absolute; top: 26px; right: 0; left: 0; border-top: 1px dashed #a9c4c8; }
.route-line b { position: absolute; top: 18px; z-index: 2; padding: 0 4px; color: var(--coral); background: var(--white); font-size: 13px; transform: rotate(10deg); }
.status { display: inline-flex; align-items: center; gap: 5px; color: #34846a; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.return-card { position: relative; margin-top: 11px; padding: 14px 43px 14px 15px; overflow: hidden; color: #fff; border-radius: 17px; background: var(--ink-2); }
.return-card::after { position: absolute; right: -12px; bottom: -29px; color: rgba(255,255,255,.08); font-size: 92px; content: "✈"; transform: rotate(-15deg); }
.return-card__top { display: flex; justify-content: space-between; color: #9edbd3; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.return-card__times { display: flex; align-items: center; gap: 11px; margin-top: 11px; }
.return-card__times strong { font-size: 23px; letter-spacing: -.055em; }
.return-card__times i { flex: 1; border-top: 1px dashed rgba(255,255,255,.35); }
.return-card p { margin: 6px 0 0; color: #bfd1d3; font-size: 10px; }
.return-card button { position: relative; z-index: 1; margin-top: 9px; padding: 0; color: var(--aqua); border: 0; background: transparent; font-size: 10px; font-weight: 750; cursor: pointer; }

.photo-strip { display: grid; grid-auto-columns: min(79vw, 365px); grid-auto-flow: column; gap: 11px; margin: 15px -18px 0; padding: 0 18px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.photo-strip::-webkit-scrollbar { display: none; }
.photo-card { position: relative; min-height: 210px; margin: 0; overflow: hidden; border-radius: 18px; scroll-snap-align: start; background: var(--ink); }
.photo-card::after { position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(1,28,39,.76)); content: ""; }
.photo-card img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; }
.photo-card figcaption { position: absolute; z-index: 1; right: 14px; bottom: 13px; left: 14px; color: #fff; }
.photo-card figcaption strong { display: block; font-size: 19px; letter-spacing: -.045em; }
.photo-card figcaption span { color: rgba(255,255,255,.72); font-size: 10px; }
.hotel-home-card { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 24px; padding: 18px; color: #fff; border-radius: 19px; background: linear-gradient(130deg, #087c80, #074258); }
.hotel-home-card h2 { margin: 0; font-size: 22px; letter-spacing: -.05em; }
.hotel-home-card p:not(.eyebrow) { margin: 5px 0 0; color: #aed9d7; font-size: 10px; }
.hotel-home-card button { flex: none; padding: 9px 11px; color: var(--ink); border: 0; border-radius: 10px; background: var(--aqua); font-size: 9px; font-weight: 800; cursor: pointer; }

.visual-header { position: relative; z-index: 0; display: flex; min-height: 345px; flex-direction: column; justify-content: end; padding: max(50px, env(safe-area-inset-top)) 20px 28px; color: #fff; background-size: cover; background-position: center; }
.visual-header--pool { background-image: url("./assets/resort-pool.webp"); }
.visual-header--evening { background-image: url("./assets/resort-evening.webp"); }
.visual-header__shade { background: linear-gradient(180deg, rgba(3,31,43,.12), rgba(3,31,43,.82)); }
.visual-header h1 { font-size: clamp(45px, 13vw, 65px); }
.visual-header > p:last-child { margin: 12px 0 0; color: rgba(255,255,255,.77); font-size: 13px; }
.quick-status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stat { display: flex; min-width: 0; min-height: 116px; flex-direction: column; justify-content: end; padding: 11px; border-radius: 15px; background: var(--white); box-shadow: 0 8px 20px rgba(6,47,66,.06); }
.mini-stat > span { margin-bottom: auto; color: var(--coral); font-size: 22px; }
.mini-stat strong { font-size: 12px; letter-spacing: -.025em; }
.mini-stat small { margin-top: 4px; color: var(--muted); font-size: 8.5px; line-height: 1.25; }

.routine-card { margin-top: 14px; padding: 17px; }
.card-note { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.42; }
.routine-list { margin: 18px 0 0; padding: 0; list-style: none; }
.routine-list li { display: grid; grid-template-columns: 43px 1fr; gap: 11px; padding: 13px 0; border-top: 1px solid var(--line); }
.routine-list time { color: var(--aqua-deep); font-size: 11px; font-weight: 800; }
.routine-list strong { display: block; font-size: 13px; }
.routine-list span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tool-card { min-width: 0; min-height: 230px; padding: 14px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.tool-card__head { display: flex; align-items: center; gap: 8px; }
.tool-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; font-size: 19px; }
.tool-icon.aqua { background: #d6f2ef; }
.tool-icon.sun { background: #ffe8b6; }
.tool-card h2 { font-size: 19px; }
.water-card > p, .spf-time { margin: 17px 0 8px; font-size: 11px; }
.water-card > p strong { font-size: 25px; letter-spacing: -.06em; }
.water-dots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 16px; }
.water-dots button { aspect-ratio: 1; padding: 0; border: 1px solid #b8d6d4; border-radius: 50%; background: #eef6f3; cursor: pointer; }
.water-dots button.is-filled { border-color: var(--aqua-deep); background: var(--aqua); box-shadow: inset 0 -3px 0 rgba(0,110,106,.18); }
.button-row { display: flex; gap: 7px; margin-top: auto; }
.primary-button, .soft-button { min-height: 38px; padding: 0 13px; border: 0; border-radius: 11px; font-size: 11px; font-weight: 800; cursor: pointer; }
.primary-button { color: #fff; background: var(--ink); }
.soft-button { color: var(--ink); background: #e4eeeb; }
.soft-button.wide { flex: 1; }
.primary-button.full { width: 100%; margin-top: 15px; }
.spf-time { margin-top: 18px; color: var(--coral); font-size: 17px; font-weight: 800; letter-spacing: -.04em; }
.spf-card .primary-button { margin-top: 21px; }
.notes-card, .watch-card, .beach-pack { margin-top: 12px; padding: 17px; }
.field { display: block; margin-top: 14px; }
.field > span { display: block; margin: 0 0 5px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 11px; outline: 0; background: #f4f1eb; font-size: 12px; transition: border .2s ease, box-shadow .2s ease; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--aqua-deep); box-shadow: 0 0 0 3px rgba(0,158,153,.1); }
.watch-time { color: var(--coral); font-size: 18px; font-weight: 800; letter-spacing: -.04em; }
.watch-controls { display: grid; grid-template-columns: 1.4fr 1fr; gap: 9px; }
.bag-count { color: var(--aqua-deep); font-size: 22px; font-weight: 800; letter-spacing: -.06em; }
.compact-checklist { margin-top: 13px; }
.compact-check { display: flex; align-items: center; gap: 10px; min-height: 43px; border-top: 1px solid var(--line); cursor: pointer; }
.compact-check input { position: absolute; opacity: 0; }
.check-visual { display: grid; place-items: center; width: 21px; height: 21px; flex: none; color: #fff; border: 1.5px solid #9bb2b3; border-radius: 7px; font-size: 12px; transition: .2s ease; }
.compact-check input:checked + .check-visual { border-color: var(--aqua-deep); background: var(--aqua-deep); }
.compact-check input:checked ~ span:last-child { color: #849597; text-decoration: line-through; }
.compact-check > span:last-child { font-size: 12px; font-weight: 650; }
.heat-note { display: flex; gap: 11px; margin-top: 13px; padding: 16px; color: #704d1c; border-radius: 17px; background: #f9e3ae; }
.heat-note > span { font-size: 21px; }
.heat-note strong { font-size: 12px; }
.heat-note p { margin: 4px 0 0; font-size: 10px; line-height: 1.43; }

.page-header { padding: max(40px, calc(env(safe-area-inset-top) + 20px)) 18px 24px; }
.page-header h1 { font-size: clamp(44px, 12vw, 60px); color: var(--ink); }
.page-header > p:last-child { max-width: 440px; margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.44; }
.plan-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 0 18px 13px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.editable-plan { padding: 0 18px; }
.plan-item { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.plan-item:last-child { border-bottom: 1px solid var(--line); }
.plan-date { padding-top: 2px; color: var(--aqua-deep); font-size: 9px; font-weight: 800; text-align: center; text-transform: uppercase; }
.plan-date strong { display: block; color: var(--ink); font-size: 22px; letter-spacing: -.08em; }
.plan-item__body h2 { margin: 0; font-size: 17px; letter-spacing: -.045em; line-height: 1.15; }
.plan-item__body p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.plan-item__tag { display: inline-block; margin-top: 7px; padding: 4px 7px; color: var(--ink-2); border-radius: 999px; background: #dfeee9; font-size: 8px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.plan-actions { display: flex; gap: 4px; margin-top: 9px; }
.plan-actions button { display: grid; place-items: center; width: 30px; height: 28px; padding: 0; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer; }
.plan-actions button:first-child { width: auto; padding: 0 9px; color: var(--aqua-deep); font-size: 9px; font-weight: 750; }
.soft-note { display: flex; gap: 10px; margin: 20px 18px 0; padding: 15px; color: #365b60; border-radius: 15px; background: #dbeee8; font-size: 11px; line-height: 1.42; }
.soft-note span { color: var(--aqua-deep); font-size: 19px; }
.soft-note p { margin: 0; }

.family-meter { margin: 0 18px; padding: 16px; }
.family-meter .section-row strong { color: var(--aqua-deep); font-size: 26px; letter-spacing: -.07em; }
.progress-line { height: 8px; margin-top: 14px; overflow: hidden; border-radius: 99px; background: #dce9e5; }
.progress-line i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--aqua-deep), var(--aqua)); transition: width .3s ease; }
.people-tabs { display: grid; grid-auto-columns: 74px; grid-auto-flow: column; gap: 8px; margin-top: 17px; padding: 0 18px 5px; overflow-x: auto; scrollbar-width: none; }
.people-tabs::-webkit-scrollbar { display: none; }
.person-tab { display: grid; place-items: center; gap: 5px; padding: 7px 4px 8px; color: var(--muted); border: 1px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer; font-size: 9px; font-weight: 750; }
.person-tab span { display: grid; place-items: center; width: 35px; height: 35px; color: var(--ink); border-radius: 50%; background: #dcefeb; font-size: 14px; font-weight: 800; }
.person-tab.is-active { color: #fff; border-color: var(--ink); background: var(--ink); }
.person-tab.is-active span { background: var(--aqua); }
.person-panel, .common-panel { margin: 12px 18px 0; padding: 16px; }
.person-panel__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.person-avatar { display: grid; place-items: center; width: 45px; height: 45px; color: var(--ink); border-radius: 15px; background: #bde9e3; font-size: 20px; font-weight: 850; }
.person-panel__head h2, .common-panel h2 { font-size: 22px; }
.person-panel__head > strong, .common-panel .section-row > strong { color: var(--aqua-deep); font-size: 21px; letter-spacing: -.06em; }
.personal-list { margin-top: 14px; }
.personal-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; min-height: 44px; border-top: 1px solid var(--line); }
.personal-item input { position: absolute; opacity: 0; }
.personal-item label { display: contents; cursor: pointer; }
.personal-item__box { display: grid; place-items: center; width: 21px; height: 21px; color: #fff; border: 1.5px solid #9bb2b3; border-radius: 7px; font-size: 11px; }
.personal-item input:checked + .personal-item__box { border-color: var(--aqua-deep); background: var(--aqua-deep); }
.personal-item input:checked ~ .personal-item__label { color: #869699; text-decoration: line-through; }
.personal-item__label { font-size: 12px; font-weight: 650; }
.delete-item { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; color: #9caaaa; border: 0; background: transparent; cursor: pointer; font-size: 18px; }
.add-item-form { display: flex; gap: 7px; margin-top: 12px; }
.add-item-form input { min-width: 0; flex: 1; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: #f4f1eb; font-size: 11px; }
.add-item-form input:focus { border-color: var(--aqua-deep); }
.add-item-form button { width: 39px; flex: none; color: #fff; border: 0; border-radius: 10px; background: var(--ink); cursor: pointer; font-size: 20px; }

.utility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.utility-card { display: flex; min-height: 148px; flex-direction: column; align-items: flex-start; justify-content: end; padding: 14px; border: 0; border-radius: 17px; text-align: left; text-decoration: none; cursor: pointer; transition: transform .18s ease; }
.utility-card:active { transform: scale(.97); }
.utility-card > span { margin: 0 0 auto; font-size: 25px; }
.utility-card strong { font-size: 15px; letter-spacing: -.04em; }
.utility-card small { margin-top: 5px; font-size: 9px; line-height: 1.3; }
.teal { color: #074e54; background: #9ce3da; }
.coral { color: #7c4238; background: #ffc0b2; }
.sand { color: #765b25; background: #f8dda2; }
.ink-card { color: #e8fffb; background: var(--ink); }
.info-card, .hotel-facts, .reception-card, .contacts-card, .travel-notes, .backup-card { margin-top: 13px; padding: 17px; }
.fact-list { margin: 14px 0 0; }
.fact-list div { display: grid; grid-template-columns: 86px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.fact-list dt { color: var(--aqua-deep); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.fact-list dd { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.hotel-facts h2, .reception-card h2, .contacts-card h2, .travel-notes h2 { margin: 0; font-size: 24px; letter-spacing: -.055em; }
.fact-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.fact-chips span { padding: 6px 8px; color: var(--ink-2); border-radius: 999px; background: #dceee8; font-size: 8.5px; font-weight: 800; text-transform: uppercase; }
.hotel-fact-list { margin: 14px 0 0; padding: 0; list-style: none; }
.hotel-fact-list li { padding: 11px 0; border-top: 1px solid var(--line); }
.hotel-fact-list strong { display: block; font-size: 12px; }
.hotel-fact-list span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.42; }
.contacts-card a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.contacts-card a:first-of-type { margin-top: 12px; }
.contacts-card a span { color: var(--muted); font-size: 10px; }
.contacts-card a strong { color: var(--aqua-deep); font-size: 11px; text-align: right; }
.phrase-card { margin-top: 13px; padding: 17px; color: #fff; border-radius: 18px; background: var(--ink-2); }
.phrase-card .eyebrow { color: #9eddd4; }
.phrase-card dl { margin: 10px 0 0; }
.phrase-card dl div { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.13); }
.phrase-card dt { font-size: 13px; font-weight: 750; }
.phrase-card dd { margin: 0; color: #b8cdcf; font-size: 10px; }
.backup-actions { display: flex; gap: 8px; margin-top: 15px; }
.backup-actions .primary-button { flex: 1; }
.sync-card { margin-top: 13px; padding: 17px; }
.sync-card__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sync-state-dot { width: 13px; height: 13px; flex: none; border: 3px solid #e6ece9; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px #f2f4f1; }
.sync-card[data-state="connecting"] .sync-state-dot { background: var(--sun); animation: sync-pulse 1.2s ease-in-out infinite; }
.sync-card[data-state="synced"] .sync-state-dot { background: var(--aqua-deep); }
.sync-card[data-state="error"] .sync-state-dot, .sync-card[data-state="offline"] .sync-state-dot { background: var(--coral); }
@keyframes sync-pulse { 50% { transform: scale(.72); opacity: .6; } }
.sync-status { margin-top: 15px; padding: 13px 14px; border-radius: 14px; background: #edf4f0; }
.sync-status strong { display: block; font-size: 13px; line-height: 1.3; }
.sync-status p, .sync-privacy, .update-panel p { margin: 5px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.48; }
.sync-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.sync-actions button { flex: 1 1 160px; }
.sync-privacy { margin-top: 12px; }
.update-panel { display: grid; gap: 12px; margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #faf8f3; }
.update-panel strong { font-size: 13px; }
.update-panel__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.update-panel__actions span { color: var(--muted); font-size: 10px; font-weight: 750; white-space: nowrap; }
.update-panel__actions button { min-height: 40px; }
.update-panel__actions button.is-update-ready { color: var(--ink); border-color: transparent; background: var(--aqua); }
.offline-card { display: flex; gap: 12px; margin-top: 13px; padding: 16px; color: #365b60; border-radius: 17px; background: #dbeee8; }
.offline-card > span { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; background: rgba(0,158,153,.13); font-size: 20px; }
.offline-card strong { font-size: 12px; }
.offline-card p { margin: 4px 0 0; font-size: 10px; line-height: 1.4; }

.bottom-nav { position: fixed; z-index: 10; bottom: 0; left: 50%; display: grid; grid-template-columns: repeat(5, 1fr); width: min(620px, 100%); padding: 8px 7px max(9px, env(safe-area-inset-bottom)); transform: translateX(-50%); border-top: 1px solid rgba(6,47,66,.08); background: rgba(252,250,246,.91); backdrop-filter: blur(18px); }
.nav-item { display: grid; place-items: center; gap: 3px; padding: 5px 0; color: #849596; border: 0; background: transparent; cursor: pointer; font-size: 8px; font-weight: 750; }
.nav-item svg { width: 20px; height: 20px; stroke-width: 1.65; }
.nav-item.is-active { color: var(--aqua-deep); }

.app-dialog { width: min(460px, calc(100% - 24px)); max-height: calc(100svh - 28px); margin: auto; padding: 0; overflow: auto; color: var(--ink); border: 0; border-radius: 22px; background: var(--paper); box-shadow: 0 25px 80px rgba(4,31,42,.35); }
.app-dialog::backdrop { background: rgba(1,24,34,.62); backdrop-filter: blur(4px); }
.app-dialog form { padding: 19px; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.dialog-head h2 { margin: 0; font-size: 27px; letter-spacing: -.055em; }
.close-button { display: grid; place-items: center; width: 35px; height: 35px; padding: 0; color: var(--muted); border: 0; border-radius: 50%; background: #e5ece9; cursor: pointer; font-size: 24px; }
.dialog-copy { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.42; }
.install-steps { display: grid; gap: 9px; margin: 17px 0 0; padding-left: 22px; color: var(--ink); font-size: 12px; line-height: 1.42; }
.install-steps li::marker { color: var(--aqua-deep); font-weight: 800; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.toast { position: fixed; z-index: 30; bottom: 94px; left: 50%; max-width: calc(100% - 36px); padding: 10px 13px; transform: translate(-50%, 8px); color: #fff; border-radius: 11px; background: var(--ink); box-shadow: 0 8px 25px rgba(6,47,66,.25); font-size: 11px; font-weight: 700; opacity: 0; pointer-events: none; transition: .24s ease; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

@media (min-width: 621px) {
  body { background: #dfe7e5; }
  .bottom-nav { border-radius: 18px 18px 0 0; }
}

@media (max-width: 620px) {
  .view { padding-bottom: 132px; }
  .connection-bar { gap: 8px; padding: 9px 12px; font-size: 11px; }
  .connection-dot { width: 8px; height: 8px; }
  .hero { min-height: 680px; }
  .topbar { padding-right: 22px; padding-left: 22px; }
  .brand-button, .mini-button { width: 46px; height: 46px; }
  .mini-button svg { width: 23px; }
  .hero__content { padding-right: 24px; padding-bottom: 52px; padding-left: 24px; }
  .eyebrow { font-size: 11px; }
  .hero h1 { font-size: clamp(55px, 15vw, 74px); }
  .hero__dates { font-size: 15.5px; }
  .countdown { width: min(275px, 82vw); padding: 14px 16px; }
  .countdown span { font-size: 10.5px; }
  .countdown strong { font-size: 19px; }

  .home-content, .page-content { padding-right: 20px; padding-left: 20px; }
  .card { border-radius: 21px; }
  .section-row h2, .routine-card h2, .tool-card h2, .notes-card h2, .beach-pack h2,
  .family-meter h2, .person-panel h2, .common-panel h2, .info-card h2, .backup-card h2, .sync-card h2 { font-size: 27px; }
  .trip-scale, .weather-card, .routine-card, .notes-card, .watch-card, .beach-pack,
  .family-meter, .person-panel, .common-panel, .info-card, .hotel-facts,
  .reception-card, .contacts-card, .travel-notes, .backup-card, .sync-card { padding: 19px; }
  .trip-scale h2 { font-size: 26px; }
  .scale-percent { font-size: 30px; }
  .scale-track { height: 9px; margin-top: 24px; }
  .scale-labels { font-size: 10.5px; }
  .date-pill, .offline-chip { padding: 8px 10px; font-size: 11px; }

  .weather-head h2 { font-size: 27px; }
  .weather-refresh { width: 43px; height: 43px; border-radius: 13px; }
  .weather-refresh svg { width: 22px; }
  .weather-now { gap: 14px; margin-top: 19px; }
  .weather-icon { width: 55px; height: 55px; font-size: 30px; }
  .weather-primary strong { font-size: 35px; }
  .weather-primary span:not(.weather-icon) { font-size: 11px; }
  .weather-primary small { font-size: 11px; }
  .weather-metrics article { grid-template-columns: 28px 1fr; padding: 7px 9px; }
  .weather-metrics article > span { font-size: 20px; }
  .weather-metrics small { font-size: 10px; }
  .weather-metrics strong { font-size: 14.5px; }
  .weather-advice { padding: 13px 14px; font-size: 12px; }
  .weather-hours { grid-auto-columns: 80px; margin-right: -19px; margin-left: -19px; padding-right: 19px; padding-left: 19px; }
  .weather-hour { min-height: 114px; }
  .weather-hour time { font-size: 10.5px; }
  .weather-hour > span { font-size: 22px; }
  .weather-hour strong { font-size: 16px; }
  .weather-hour small { font-size: 10px; }
  .weather-hour em { font-size: 9.5px; }
  .weather-footer { font-size: 10px; line-height: 1.35; }

  .readiness-card { gap: 17px; margin-top: 15px; padding: 18px; border-radius: 21px; }
  .readiness-ring { width: 98px; height: 98px; }
  .readiness-ring strong { font-size: 25px; }
  .readiness-ring span { font-size: 10.5px; }
  .home-sync-chip { padding: 5px 8px; font-size: 9.5px; }
  .readiness-card h2 { font-size: 26px; }
  .readiness-card p:not(.eyebrow) { font-size: 12.5px; }
  .inline-action { font-size: 12.5px; }

  .flight-card { padding: 18px; border-radius: 21px; }
  .flight-card__meta, .flight-card__bottom { font-size: 10.5px; line-height: 1.35; }
  .flight-route strong { font-size: 30px; }
  .flight-route > div > span { font-size: 10.5px; line-height: 1.25; white-space: normal; }
  .route-line span { font-size: 10px !important; }
  .return-card { padding: 17px 46px 17px 17px; }
  .return-card__top { font-size: 10.5px; }
  .return-card__times strong { font-size: 26px; }
  .return-card p, .return-card button { font-size: 12px; }

  .photo-card { min-height: 230px; border-radius: 20px; }
  .photo-card img { min-height: 230px; }
  .photo-card figcaption strong { font-size: 22px; }
  .photo-card figcaption span { font-size: 11.5px; }
  .hotel-home-card { padding: 20px; border-radius: 21px; }
  .hotel-home-card h2 { font-size: 25px; }
  .hotel-home-card p:not(.eyebrow) { font-size: 12.5px; }
  .hotel-home-card button { min-height: 44px; padding: 11px 13px; font-size: 11.5px; }

  .visual-header { min-height: 370px; padding-right: 22px; padding-bottom: 32px; padding-left: 22px; }
  .visual-header h1 { font-size: clamp(51px, 14vw, 68px); }
  .visual-header > p:last-child, .page-header > p:last-child { font-size: 14.5px; }
  .mini-stat { min-height: 128px; padding: 13px; border-radius: 17px; }
  .mini-stat > span { font-size: 25px; }
  .mini-stat strong { font-size: 13.5px; }
  .mini-stat small { font-size: 10.5px; }
  .card-note { font-size: 12.5px; }
  .routine-list li { grid-template-columns: 48px 1fr; padding: 15px 0; }
  .routine-list time { font-size: 12px; }
  .routine-list strong { font-size: 14.5px; }
  .routine-list span { font-size: 11.5px; }

  .tool-card { min-height: 245px; padding: 16px; border-radius: 20px; }
  .tool-icon { width: 42px; height: 42px; font-size: 22px; }
  .tool-card h2 { font-size: 22px; }
  .water-card > p { font-size: 12px; }
  .water-card > p strong { font-size: 29px; }
  .spf-time { font-size: 20px; }
  .primary-button, .soft-button { min-height: 44px; padding: 0 15px; font-size: 12.5px; }
  .field > span { font-size: 11px; }
  .field input, .field textarea, .field select { min-height: 46px; padding: 12px 13px; font-size: 16px; }
  .watch-time, .bag-count { font-size: 24px; }
  .compact-check { min-height: 49px; }
  .check-visual, .personal-item__box { width: 24px; height: 24px; }
  .compact-check > span:last-child { font-size: 13.5px; }
  .heat-note strong { font-size: 13.5px; }
  .heat-note p { font-size: 11.5px; }

  .page-header { padding-right: 20px; padding-bottom: 27px; padding-left: 20px; }
  .page-header h1 { font-size: clamp(49px, 13vw, 64px); }
  .plan-toolbar { padding-right: 20px; padding-left: 20px; font-size: 12px; }
  .editable-plan { padding-right: 20px; padding-left: 20px; }
  .plan-item { grid-template-columns: 47px 1fr; gap: 14px; padding: 18px 0; }
  .plan-date { font-size: 11px; }
  .plan-date strong { font-size: 25px; }
  .plan-item__body h2 { font-size: 20px; }
  .plan-item__body p { font-size: 12.5px; }
  .plan-item__tag { padding: 5px 8px; font-size: 10px; }
  .plan-actions button { width: 38px; height: 36px; }
  .plan-actions button:first-child { font-size: 10.5px; }
  .soft-note { margin-right: 20px; margin-left: 20px; padding: 17px; font-size: 12.5px; }

  .family-meter, .person-panel, .common-panel { margin-right: 20px; margin-left: 20px; }
  .people-tabs { grid-auto-columns: 84px; padding-right: 20px; padding-left: 20px; }
  .person-tab { padding: 10px 5px; font-size: 10.5px; }
  .person-tab span { width: 40px; height: 40px; font-size: 16px; }
  .person-avatar { width: 50px; height: 50px; font-size: 22px; }
  .person-panel__head h2, .common-panel h2 { font-size: 25px; }
  .personal-item { min-height: 50px; }
  .personal-item__label { font-size: 13.5px; }
  .delete-item { width: 38px; height: 38px; font-size: 21px; }
  .add-item-form input { min-height: 46px; font-size: 16px; }
  .add-item-form button { width: 44px; font-size: 23px; }

  .utility-card { min-height: 166px; padding: 16px; border-radius: 19px; }
  .utility-card > span { font-size: 29px; }
  .utility-card strong { font-size: 17.5px; }
  .utility-card small { font-size: 11.5px; }
  .fact-list dt { font-size: 12px; }
  .fact-list dd { font-size: 12.5px; }
  .fact-chips span { font-size: 10.5px; }
  .hotel-facts h2, .reception-card h2, .contacts-card h2, .travel-notes h2 { font-size: 27px; }
  .hotel-fact-list strong { font-size: 13.5px; }
  .hotel-fact-list span { font-size: 11.5px; }
  .contacts-card a span { font-size: 11.5px; }
  .contacts-card a strong { font-size: 12.5px; }
  .phrase-card { padding: 19px; }
  .phrase-card dt { font-size: 14.5px; }
  .phrase-card dd { font-size: 11.5px; }
  .offline-card { padding: 18px; }
  .offline-card > span { width: 42px; height: 42px; font-size: 23px; }
  .offline-card strong { font-size: 13.5px; }
  .offline-card p { font-size: 11.5px; }
  .sync-status { padding: 15px; }
  .sync-status strong, .update-panel strong { font-size: 14.5px; }
  .sync-status p, .sync-privacy, .update-panel p { font-size: 12px; }
  .sync-actions { margin-top: 15px; }
  .sync-actions button { min-height: 46px; font-size: 12.5px; }
  .update-panel { padding: 15px; }
  .update-panel__actions span { font-size: 11px; }
  .update-panel__actions button { min-height: 44px; font-size: 12px; }

  .bottom-nav { padding-top: 10px; padding-bottom: max(11px, env(safe-area-inset-bottom)); }
  .nav-item { min-height: 62px; gap: 5px; padding: 7px 0; font-size: 10.5px; }
  .nav-item svg { width: 26px; height: 26px; }
  .toast { bottom: 106px; padding: 12px 15px; font-size: 12.5px; }
}

@media (max-width: 400px) {
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 0; }
  .quick-status-grid { grid-template-columns: 1fr; }
  .mini-stat { min-height: 90px; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
}

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