:root {
  color-scheme: light;
  --ink: #15303d;
  --muted: #617783;
  --paper: #f4f1e8;
  --card: #fffdf8;
  --line: #dfe4df;
  --teal: #0f7c78;
  --teal-dark: #0a5557;
  --orange: #f28a4b;
  --yellow: #f4c95d;
  --danger: #b7433f;
  --shadow: 0 18px 55px rgba(19, 48, 61, .13);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; min-width: 320px; min-height: 100vh; min-height: 100dvh; color: var(--ink); background: radial-gradient(circle at 90% 0, rgba(244, 201, 93, .22), transparent 28rem), var(--paper); }
button, input, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(15, 124, 120, .35); outline-offset: 3px; }
.app-shell { width: min(100%, 920px); min-height: 100vh; min-height: 100dvh; margin: auto; background: rgba(244, 241, 232, .72); }
.brandbar { height: 76px; padding: max(14px, env(safe-area-inset-top)) 22px 10px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-mark { width: 42px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 14px 14px 14px 4px; color: white; font-weight: 950; font-size: 1.35rem; background: linear-gradient(145deg, var(--orange), #dd5e37); box-shadow: 0 7px 18px rgba(221, 94, 55, .25); }
.brand b, .brand small { display: block; line-height: 1.05; }
.brand b { font-size: 1.03rem; letter-spacing: -.03em; }.brand small { margin-top: 4px; color: var(--muted); font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.icon-btn, .back-btn, .close-btn { border: 0; background: white; box-shadow: 0 5px 16px rgba(21, 48, 61, .1); cursor: pointer; }
.icon-btn { width: 42px; height: 42px; border-radius: 14px; font-weight: 900; }
.screen { display: none; padding: 12px 22px calc(100px + env(safe-area-inset-bottom)); }.screen.is-active { display: block; animation: rise .28s ease both; }
.hero { position: relative; overflow: hidden; padding: clamp(30px, 7vw, 66px); min-height: 400px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 34px; color: white; background: linear-gradient(145deg, rgba(11, 45, 59, .15), transparent), radial-gradient(circle at 82% 18%, #26a9a1 0 8%, transparent 8.5%), linear-gradient(145deg, #14384a, #0b6466); box-shadow: var(--shadow); }
.hero::before { content: ""; position: absolute; width: 220px; height: 220px; right: -38px; top: 44px; border: 3px solid rgba(255,255,255,.15); border-radius: 48% 52% 43% 57%; transform: rotate(24deg); }
.hero::after { content: "✓"; position: absolute; right: 50px; top: 82px; width: 84px; height: 84px; display: grid; place-items: center; color: var(--teal-dark); font-size: 3.4rem; font-weight: 1000; border-radius: 28px 28px 28px 8px; background: var(--yellow); transform: rotate(-8deg); box-shadow: 0 16px 35px rgba(0,0,0,.22); }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: .72rem; font-weight: 900; letter-spacing: .13em; }
.hero .eyebrow, .list-hero .eyebrow { color: #91e7da; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; line-height: 1; letter-spacing: -.045em; }
.hero h1 { position: relative; max-width: 600px; font-size: clamp(2.6rem, 8vw, 5.2rem); }.hero h1 em { color: var(--yellow); font-style: normal; }
.hero > p:not(.eyebrow) { position: relative; max-width: 520px; margin: 20px 0 26px; color: rgba(255,255,255,.8); font-size: 1rem; line-height: 1.6; }
.btn { min-height: 48px; padding: 13px 18px; border: 0; border-radius: 15px; font-weight: 850; cursor: pointer; }
.btn-primary { color: white; background: linear-gradient(135deg, var(--orange), #df683c); box-shadow: 0 9px 25px rgba(223, 104, 60, .28); }
.btn-large { min-height: 58px; padding-inline: 24px; font-size: 1rem; }.hero .btn { align-self: flex-start; position: relative; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin: 42px 4px 18px; }.section-head h2 { font-size: 2rem; }
.text-btn { padding: 8px; border: 0; color: var(--teal); background: transparent; font-weight: 850; cursor: pointer; }.text-btn.danger { color: var(--danger); }
.trip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.trip-card { position: relative; min-height: 188px; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; border: 1px solid rgba(21, 48, 61, .08); border-radius: 24px; color: var(--ink); background: var(--card); box-shadow: 0 8px 25px rgba(21,48,61,.06); cursor: pointer; }
.trip-card::after { content: "→"; position: absolute; right: 18px; top: 18px; color: var(--teal); font-size: 1.25rem; font-weight: 900; }
.trip-card-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: rgba(15,124,120,.1); font-size: 1.35rem; }.trip-card h3 { margin-top: auto; font-size: 1.35rem; }.trip-card p { margin: 8px 0; color: var(--muted); font-size: .82rem; }.trip-progress { width: 100%; display: flex; align-items: center; gap: 9px; font-size: .75rem; font-weight: 800; }.trip-progress i { flex: 1; height: 7px; overflow: hidden; border-radius: 999px; background: #e9ebe6; }.trip-progress i::before { content: ""; display: block; width: var(--p); height: 100%; border-radius: inherit; background: var(--orange); }
.empty-card { padding: 40px 24px; text-align: center; border: 2px dashed #d6dbd5; border-radius: 24px; }.empty-card > span { font-size: 2.7rem; }.empty-card h3 { margin-top: 12px; }.empty-card p { max-width: 380px; margin: 10px auto 0; color: var(--muted); line-height: 1.5; }
.page-head { min-height: 82px; display: flex; align-items: center; gap: 15px; }.page-head h1 { font-size: clamp(2rem, 7vw, 3.5rem); }.page-head .eyebrow { margin-bottom: 7px; }
.back-btn { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 15px; font-size: 2rem; line-height: 1; }
.builder-form { display: grid; gap: 16px; }.form-card { margin: 0; padding: 22px; border: 1px solid rgba(21,48,61,.08); border-radius: 24px; background: var(--card); box-shadow: 0 7px 24px rgba(21,48,61,.05); }.form-card legend { padding: 0 8px; font-size: 1.05rem; font-weight: 900; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }.field-wide { grid-column: 1 / -1; }.field { display: grid; gap: 7px; }.field > span { color: var(--muted); font-size: .76rem; font-weight: 850; }.field input, .field select { width: 100%; min-height: 50px; padding: 11px 13px; border: 1px solid #d7ded9; border-radius: 13px; color: var(--ink); background: white; }.field input:focus, .field select:focus { border-color: var(--teal); }
.choice-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }.choice-row label { cursor: pointer; }.choice-row input { position: absolute; opacity: 0; pointer-events: none; }.choice-row span { min-height: 78px; padding: 12px 5px; display: grid; place-items: center; gap: 5px; text-align: center; border: 1px solid #dce1dd; border-radius: 15px; background: white; font-size: 1.3rem; }.choice-row b { font-size: .72rem; }.choice-row input:checked + span { border-color: var(--teal); background: rgba(15,124,120,.09); box-shadow: inset 0 0 0 1px var(--teal); }
.help { margin: 0 0 16px; color: var(--muted); font-size: .84rem; line-height: 1.5; }.template-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }.template-option input { position: absolute; opacity: 0; }.template-option span { min-height: 96px; padding: 15px; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 9px; border: 1px solid #dce1dd; border-radius: 16px; background: white; cursor: pointer; }.template-option i { grid-row: 1 / 3; font-size: 1.5rem; font-style: normal; }.template-option b { font-size: .86rem; }.template-option small { margin-top: 4px; color: var(--muted); line-height: 1.35; }.template-option input:checked + span { border-color: var(--orange); background: rgba(242,138,75,.08); box-shadow: inset 0 0 0 1px var(--orange); }
.sticky-action { position: sticky; bottom: calc(14px + env(safe-area-inset-bottom)); width: min(100%, 480px); justify-self: center; z-index: 4; }.form-error { min-height: 1.2em; margin: 0; color: var(--danger); font-size: .82rem; font-weight: 750; }
#screen-list { padding: 0 0 calc(105px + env(safe-area-inset-bottom)); }.list-hero { padding: max(18px, env(safe-area-inset-top)) 24px 27px; color: white; border-radius: 0 0 32px 32px; background: radial-gradient(circle at 88% 16%, rgba(244,201,93,.35), transparent 7rem), linear-gradient(145deg, #14384a, #0f6c6c); box-shadow: var(--shadow); }.page-head-light { min-height: 52px; justify-content: space-between; }.page-head-light .back-btn, .icon-btn-light { color: white; background: rgba(255,255,255,.12); box-shadow: none; backdrop-filter: blur(8px); }.list-hero h1 { font-size: clamp(2.35rem, 9vw, 4.3rem); }.list-hero > p:not(.eyebrow) { margin: 8px 0 20px; color: rgba(255,255,255,.72); }
.progress-wrap { display: flex; align-items: center; gap: 14px; }.progress-ring { --p: 0; width: 70px; height: 70px; padding: 7px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--yellow) calc(var(--p) * 1%), rgba(255,255,255,.14) 0); }.progress-ring::before { content: ""; grid-area: 1/1; width: 56px; height: 56px; border-radius: inherit; background: #164b57; }.progress-ring span { z-index: 1; grid-area: 1/1; font-weight: 950; }.progress-wrap b, .progress-wrap small { display: block; }.progress-wrap small { margin-top: 4px; color: rgba(255,255,255,.65); }
.list-tools { position: sticky; top: 0; z-index: 5; padding: 16px 20px 10px; background: linear-gradient(var(--paper) 80%, rgba(244,241,232,0)); }.search { min-height: 48px; padding: 0 14px; display: flex; align-items: center; gap: 9px; border: 1px solid #dfe4df; border-radius: 15px; background: var(--card); box-shadow: 0 6px 18px rgba(21,48,61,.06); }.search span { color: var(--teal); font-size: 1.5rem; }.search input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.filter-scroll { margin-top: 10px; padding: 1px; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }.filter-scroll::-webkit-scrollbar { display: none; }.chip { min-height: 35px; padding: 7px 13px; white-space: nowrap; border: 1px solid #d7ddd8; border-radius: 999px; color: var(--muted); background: var(--card); font-size: .74rem; font-weight: 850; cursor: pointer; }.chip.is-active { border-color: var(--teal); color: white; background: var(--teal); }.category-scroll { margin-top: 7px; }.category-scroll .chip.is-active { color: var(--teal-dark); background: #d7f0eb; }
.packing-list { padding: 3px 20px; display: grid; gap: 18px; }.category-group h2 { margin: 0 0 8px 5px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }.category-group h2 span { font-size: 1rem; }.item-stack { overflow: hidden; border: 1px solid rgba(21,48,61,.08); border-radius: 20px; background: var(--card); box-shadow: 0 7px 24px rgba(21,48,61,.05); }.pack-item { min-height: 64px; padding: 11px 13px; display: grid; grid-template-columns: 43px 1fr auto; align-items: center; gap: 9px; border: 0; border-bottom: 1px solid #edf0eb; background: transparent; }.pack-item:last-child { border-bottom: 0; }.pack-check { width: 32px; height: 32px; display: grid; place-items: center; border: 2px solid #cbd4ce; border-radius: 11px; color: white; background: white; cursor: pointer; }.pack-item.is-packed .pack-check { border-color: var(--teal); background: var(--teal); }.pack-copy { min-width: 0; }.pack-copy b, .pack-copy small { display: block; }.pack-copy b { font-size: .91rem; }.pack-copy small { margin-top: 4px; color: var(--muted); font-size: .72rem; }.pack-item.is-packed .pack-copy { opacity: .48; }.pack-item.is-packed .pack-copy b { text-decoration: line-through; }.edit-item { min-width: 38px; min-height: 38px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 900; }
.empty-filter { padding: 50px 20px; text-align: center; color: var(--muted); }.empty-filter span { font-size: 2rem; }.empty-filter b { display: block; margin-top: 8px; color: var(--ink); }.empty-filter p { margin: 7px 0; }.fab { position: fixed; z-index: 8; right: max(22px, calc((100vw - 920px) / 2 + 22px)); bottom: calc(22px + env(safe-area-inset-bottom)); width: 60px; height: 60px; border: 0; border-radius: 20px 20px 20px 7px; color: white; background: linear-gradient(145deg, var(--orange), #dc6038); box-shadow: 0 14px 35px rgba(220,96,56,.38); font-size: 2rem; cursor: pointer; }
.modal { width: min(calc(100% - 28px), 520px); max-height: calc(100dvh - 28px); padding: 0; border: 0; border-radius: 26px; color: var(--ink); background: transparent; box-shadow: var(--shadow); }.modal::backdrop { background: rgba(8,31,39,.58); backdrop-filter: blur(4px); }.modal-card { padding: 24px; display: grid; gap: 16px; border-radius: 26px; background: var(--card); }.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; }.modal-head h2 { font-size: 1.7rem; }.close-btn { width: 40px; height: 40px; border-radius: 13px; font-size: 1.5rem; }.menu-action { padding: 13px; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 11px; text-align: left; border: 1px solid #e0e4df; border-radius: 16px; background: white; cursor: pointer; }.menu-action > span { grid-row: 1/3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(15,124,120,.09); font-size: 1.2rem; }.menu-action small { margin-top: 3px; color: var(--muted); }.file-drop { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 7px; text-align: center; border: 2px dashed #cdd7d0; border-radius: 20px; background: white; cursor: pointer; }.file-drop input { position: absolute; opacity: 0; }.file-drop span { font-size: 2rem; }.file-drop small { color: var(--muted); }
.toast { position: fixed; z-index: 20; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); max-width: calc(100% - 36px); padding: 12px 17px; border-radius: 13px; color: white; background: #102f3b; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: .22s ease; font-size: .83rem; font-weight: 750; }.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (min-width: 720px) { .screen { padding-inline: 34px; }.hero { min-height: 460px; }.packing-list, .list-tools { padding-inline: 36px; }.trip-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .brandbar { height: 66px; padding-inline: 16px; }.screen { padding: 8px 14px calc(90px + env(safe-area-inset-bottom)); }.hero { min-height: 390px; padding: 25px 22px; border-radius: 27px; }.hero::after { right: 25px; top: 53px; width: 66px; height: 66px; font-size: 2.7rem; }.hero h1 { font-size: 2.65rem; }.trip-grid { grid-template-columns: 1fr; }.trip-card { min-height: 150px; }.field-grid { grid-template-columns: 1fr; }.field-wide { grid-column: auto; }.choice-row { grid-template-columns: repeat(2, 1fr); }.template-grid { grid-template-columns: 1fr; }.form-card { padding: 18px; }.list-hero { padding-inline: 18px; }.list-tools, .packing-list { padding-inline: 14px; }.modal-card { padding: 20px; } }
@media (max-width: 350px) { .hero { min-height: 355px; padding-inline: 18px; }.hero h1 { font-size: 2.3rem; }.hero > p:not(.eyebrow) { font-size: .88rem; }.section-head h2 { font-size: 1.75rem; }.brand small { display: none; }.template-option span { min-height: 88px; }.progress-ring { width: 62px; height: 62px; }.progress-ring::before { width: 48px; height: 48px; }.pack-item { padding-inline: 10px; grid-template-columns: 39px 1fr auto; }.fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
