/* 旅图 2026 visual system: warm paper, sunny yellow, clear compact controls. */
:root {
  --bg: #fff9ec;
  --paper: #fffefa;
  --ink: #303034;
  --muted: #777b82;
  --line: #efe9d9;
  --green: #ffc629;
  --green2: #fff0b8;
  --orange: #f2a609;
  --sand: #fff5db;
  --shadow: 0 12px 34px rgba(109, 83, 24, .08);
  --brand-yellow: #ffc629;
  --brand-cream: #fff8e7;
  --brand-charcoal: #3e3e3e;
}
html { scroll-behavior: smooth; }
body { background: #fff9ec; color: var(--ink); }
button, input, select, textarea { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #e89b00; outline-offset: 2px; }
::selection { background: #ffdf67; color: #252525; }
.app-shell { display: block; min-height: 100vh; }
.sidebar {
  width: 100%; height: 76px; min-height: 0; padding: 0 max(26px, calc((100vw - 1500px)/2));
  position: sticky; top: 0; z-index: 60; flex-direction: row; align-items: center; gap: 2px;
  background: rgba(255, 254, 250, .97); border: 0; border-bottom: 1px solid #f0e8d4;
  box-shadow: 0 4px 18px rgba(87, 72, 31, .06); backdrop-filter: blur(14px);
}
.brand { padding: 0; margin-right: clamp(18px, 3vw, 52px); gap: 5px; white-space: nowrap; font-size: 26px; font-weight: 900; letter-spacing: -.08em; color: #292a2b; }
.brand:hover { color: #292a2b; }
.brand-icon { width: 52px; height: 52px; background: transparent; overflow: hidden; border-radius: 0; }
.brand-icon img { width: 100%; height: 100%; object-fit: contain; }
.brand small { margin: 3px 0 0 2px; font-size: 8px; color: #444; letter-spacing: .34em; font-weight: 900; }
.mobile-save-indicator { display: none; }
.mobile-account-button { display: none; }
.side-label, .side-divider, .side-heading, .trip-list, .tip-card { display: none; }
.side-link { width: auto; gap: 5px; padding: 9px 11px; white-space: nowrap; border-radius: 13px; color: #555960; font-size: 12px; font-weight: 750; }
.side-link span { width: 17px; font-size: 18px; line-height: 17px; color: #535353; }
.side-link:hover, .side-link.active { color: #2b2b2b; background: #fff0bb; }
.side-link.active span { color: #cf8a00; }
.side-link b { background: #ffe7a1; color: #5a4316; }
.sidebar-bottom { margin: 0 0 0 auto; }
.sidebar-bottom .side-link { font-size: 0; padding: 10px; }
.sidebar-bottom .side-link span { font-size: 19px; }
.topbar { height: 48px; max-width: 1450px; margin: auto; padding: 0 28px; background: transparent; border: 0; }
.breadcrumbs { color: #a1967d; font-size: 11px; }
.breadcrumbs strong { color: #69665c; }
.top-actions { gap: 12px; }
.search-shortcut { min-height: 30px; padding: 5px 12px; }
.save-indicator { color: #8a866e; }
.save-indicator .save-dot { background: #27b96c; flex: 0 0 auto; }
.save-indicator .save-text { width: auto; height: auto; min-width: 0; border-radius: 0; background: none; }
.save-indicator.is-error { color: #b84b32; }
.save-indicator.is-error .save-dot { background: #e15c42; }
.avatar { background: #ffe49a; border: 2px solid #fff; box-shadow: 0 2px 10px #72592222; color: #4a3400; }
.top-actions .avatar { width: auto; min-width: 54px; padding: 0 10px; font-size: 12px; white-space: nowrap; }
#account-dialog { padding: 24px; }
#account-dialog .modal-head { padding: 0 0 16px; }
#account-dialog .email-account-form { display: grid; gap: 14px; }
#account-dialog .email-account-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
#account-dialog .email-account-form input { width: 100%; border: 1px solid #dfd9c7; border-radius: 10px; padding: 12px; background: #fff; }
#account-dialog .email-account-form .btn { width: 100%; margin-top: 6px; }
#account-dialog .account-mode-switch { display: block; margin: 16px auto; border: 0; background: transparent; color: #70520b; text-decoration: underline; }
#account-dialog > .btn { width: 100%; margin: 12px 0; }
#account-dialog small { color: #746f62; }
.welcome-logout { position: absolute; z-index: 2; top: max(18px,env(safe-area-inset-top)); right: 22px; border: 1px solid #e7d5a6; border-radius: 14px; padding: 10px 16px; background: #fff8e7; color: #654a10; font-weight: 700; }
.page-content { max-width: 1500px; padding: 8px 28px 110px; }
.mobile-nav { display: none; }
.empty-landing { overflow: hidden; }
.empty-landing .sidebar, .empty-landing .topbar, .empty-landing .mobile-nav { display: none !important; }
.empty-landing .main-content { width: 100%; min-height: 100dvh; }
.empty-landing .page-content { max-width: none; width: 100%; height: 100dvh; padding: 0; }
.install-landing-active { overflow: auto; }
.install-landing-active .page-content { height: auto; min-height: 100dvh; }
.install-landing { min-height: 100dvh; padding: 0 18px 24px; background: linear-gradient(180deg,#ecf9ff 0%,#fff8e6 58%,#fffdf8 100%); }
.install-landing-header { display: flex; align-items: center; gap: 8px; max-width: 430px; height: 68px; margin: auto; color: #ac7400; font-size: 18px; letter-spacing: .04em; }
.install-landing-header img { width: 43px; height: 43px; object-fit: contain; }
.install-landing-header span { font-size: 13px; letter-spacing: .18em; }
.install-landing-main { display: grid; gap: 14px; width: min(100%,430px); margin: auto; }
.install-landing-copy { text-align: center; }
.install-eyebrow { display: inline-block; padding: 5px 12px; border-radius: 99px; background: #fff0c1; color: #9b6907; font-size: 11px; font-weight: 800; }
.install-landing-copy h1 { margin: 12px 0 7px; color: #2e3233; font-size: clamp(25px,7.5vw,34px); line-height: 1.2; }
.install-landing-copy p { margin: 0 auto; max-width: 340px; color: #5f6866; font-size: 13px; line-height: 1.55; }
.install-browser-note { margin: 12px auto 0; padding: 9px 12px; border-radius: 11px; background: #fff1ce; color: #785212; font-size: 11px; line-height: 1.5; }
.install-landing-visual { display: grid; justify-items: center; gap: 4px; }
.install-landing-visual picture { display: block; width: min(100%,286px); }
.install-demo-gif { display: block; width: 100%; height: auto; border: 1px solid #f0ddb3; border-radius: 21px; background: #fffefa; box-shadow: 0 12px 32px #877b5a2a; }
.install-landing-visual > span { color: #8a8881; font-size: 10px; }
.install-instructions { padding: 13px 16px 16px; border: 1px solid #f3e4bf; border-radius: 18px; background: #fffefa; box-shadow: 0 9px 22px #997b3b12; }
.install-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.install-steps li { display: flex; align-items: center; gap: 9px; color: #444a47; font-size: 12px; line-height: 1.35; }
.install-steps li span { flex: none; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #ffce42; color: #3c3419; font-size: 11px; font-weight: 900; }
.install-native-button { width: 100%; margin: 13px 0 0; }
.install-native-button[hidden] { display: none; }
.install-instructions small { display: block; margin-top: 11px; color: #807969; font-size: 10px; text-align: center; }
.welcome-screen { width: 100%; height: 100dvh; display: grid; place-items: center; padding: 24px; background: linear-gradient(90deg, rgba(255,249,232,.38), rgba(255,249,232,.08)), url('/assets/coast-hero.png') center / cover no-repeat; }
.welcome-card { width: min(100%, 520px); padding: 26px 38px 40px; text-align: center; border: 1px solid #fff9e8; border-radius: 28px; background: rgba(255,253,246,.9); box-shadow: 0 24px 75px #5c4e2c45; backdrop-filter: blur(12px); }
.welcome-mascot { width: 105px; height: 105px; object-fit: contain; }
.welcome-name { display: block; color: #a87200; font-size: 13px; font-weight: 900; letter-spacing: .2em; }
.welcome-card h1 { margin: 15px 0 12px; color: #29292c; font-size: clamp(29px, 3.5vw, 42px); line-height: 1.3; letter-spacing: -.035em; }
.welcome-card p { margin: 0 0 27px; color: #64615b; font-size: 14px; }
.welcome-create { width: 100%; min-height: 53px; font-size: 15px; font-weight: 850; }
.first-trip-login { display: block; grid-column: 1 / -1; margin: 12px auto 0; border: 0; background: transparent; color: #866407; font-size: 12px; text-decoration: underline; }
.welcome-screen { position: relative; display: flex; flex-direction: column; padding: 0; background: #b5e3f9 url('/assets/welcome-landscape.jpg') center / cover no-repeat; overflow: hidden; }
.welcome-header { z-index: 2; flex: 0 0 auto; height: 78px; width: 100%; padding: 0 clamp(24px,4vw,72px); display: flex; align-items: center; justify-content: space-between; background: #fffdf7f2; box-shadow: 0 2px 20px #3d5e6a17; }
.welcome-brand { display: flex; align-items: center; gap: 9px; color: #b77a03; font-size: 23px; letter-spacing: .08em; white-space: nowrap; }
.welcome-brand img { width: 47px; height: 47px; object-fit: contain; }
.welcome-brand span { font-size: .75em; letter-spacing: .18em; }
.welcome-auth { padding: 9px 22px; border: 2px solid #ffc629; border-radius: 999px; background: #fff8e7; color: #644500; font-size: 14px; font-weight: 800; }
.welcome-hero { flex: 1 1 auto; min-height: 0; display: flex; align-items: flex-start; justify-content: center; padding-top: clamp(48px,9vh,132px); }
.welcome-hero-copy { width: min(650px,72vw); text-align: center; padding: 15px 18px 24px; border-radius: 30px; background: radial-gradient(ellipse at center,#fff9e9cf 0%,#fff9e972 55%,transparent 78%); }
.welcome-hero-copy h1 { margin: 0; color: #252a2a; font-size: clamp(42px,4.4vw,75px); line-height: 1.18; font-weight: 950; letter-spacing: -.035em; text-shadow: 0 3px 10px #fff9edbd; }
.welcome-sun { display: inline-block; margin-left: 12px; color: #ffc629; font-size: .72em; vertical-align: top; }
.welcome-hero-copy p { margin: 17px 0 27px; color: #454d4b; font-size: clamp(14px,1.3vw,19px); line-height: 1.6; font-weight: 600; text-shadow: 0 2px 8px #fff; }
.welcome-screen .welcome-create { width: min(100%,440px); min-height: 64px; border-radius: 999px; background: #ffc629; box-shadow: 0 12px 24px #a56a0030; color: #29251b; font-size: 19px; font-weight: 900; }
.welcome-features { z-index: 1; flex: 0 0 auto; width: min(1150px,calc(100% - 70px)); min-height: 162px; margin: 0 auto 23px; padding: 18px 20px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: center; border: 1px solid #fff; border-radius: 30px; background: #fffdf7f3; box-shadow: 0 12px 40px #68705538; }
.welcome-feature { display: flex; align-items: center; justify-content: center; gap: 16px; min-width: 0; text-align: left; }
.welcome-feature + .welcome-feature { border-left: 1px solid #e9e7df; }
.welcome-feature-icon { font-size: 47px; line-height: 1; }
.welcome-feature strong { display: block; color: #303333; font-size: 18px; font-weight: 900; }
.welcome-feature p { margin: 5px 0 0; color: #737773; font-size: 12px; line-height: 1.5; }
@media (max-width: 700px) {
  .welcome-screen { background-image: url('/assets/welcome-portrait.jpg'); background-position: center; }
  .welcome-header { height: 72px; padding: 0 18px; background: transparent; box-shadow: none; }
  .welcome-brand { font-size: 17px; color: #a86d00; text-shadow: 0 1px 8px #fff; }
  .welcome-brand img { width: 42px; height: 42px; background: #fff9e8d9; border-radius: 50%; }
  .welcome-auth { padding: 8px 13px; background: #fffdf5e8; font-size: 12px; }
  .welcome-hero { padding: clamp(44px,8vh,90px) 12px 0; }
  .welcome-hero-copy { width: 100%; padding: 10px 6px; background: radial-gradient(ellipse at center,#fff9e6df 0%,#fff9e69e 48%,transparent 77%); }
  .welcome-hero-copy h1 { font-size: clamp(28px,8.4vw,43px); line-height: 1.23; }
  .welcome-sun { margin-left: 3px; }
  .welcome-hero-copy p { margin: 12px auto 18px; max-width: 290px; font-size: 13px; }
  .welcome-screen .welcome-create { min-height: 54px; width: min(100%,350px); font-size: 15px; }
  .welcome-features { width: calc(100% - 24px); min-height: 203px; margin: 0 12px max(10px,env(safe-area-inset-bottom)); padding: 10px 20px; grid-template-columns: 1fr; gap: 0; border-radius: 25px; }
  .welcome-feature { justify-content: flex-start; gap: 16px; padding: 7px 2px; }
  .welcome-feature + .welcome-feature { border-left: 0; border-top: 1px solid #eee7d8; }
  .welcome-feature-icon { width: 45px; text-align: center; font-size: 33px; }
  .welcome-feature strong { font-size: 13px; }
  .welcome-feature p { margin-top: 1px; font-size: 10px; line-height: 1.35; }
  .welcome-feature br { display: none; }
}
@media (max-height: 680px) {
  .welcome-hero { padding-top: 18px; }
  .welcome-hero-copy p { margin: 7px 0 10px; }
  .welcome-screen .welcome-create { min-height: 45px; }
  .welcome-features { min-height: 150px; }
}
.page-heading, .search-heading, .outing-heading {
  min-height: 250px; margin: 0 0 22px; padding: 42px 48px; border: 1px solid #f4eac9;
  border-radius: 24px; position: relative; overflow: visible; display: flex; align-items: center; justify-content: space-between;
  background: #fff8e7 url('/assets/coast-hero.png') center 54% / cover no-repeat;
  box-shadow: var(--shadow);
}
.page-heading::before, .search-heading::before, .outing-heading::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(255, 251, 239, .96) 0%, rgba(255, 250, 235, .86) 35%, rgba(255, 250, 235, .05) 80%); pointer-events: none; }
.page-heading > *, .search-heading > *, .outing-heading > * { position: relative; z-index: 1; }
.page-heading h1, .search-heading h1, .outing-heading h1 { margin: 8px 0 9px; font-size: clamp(28px, 3vw, 44px); line-height: 1.18; font-weight: 900; letter-spacing: -.035em; color: #29292c; text-shadow: 0 2px 20px #fffaf0; }
.page-heading p, .search-heading p, .outing-heading p { color: #666b70; font-size: 14px; line-height: 1.7; max-width: 650px; }
.eyebrow { color: #bf8300; font-size: 10px; letter-spacing: .19em; font-weight: 850; }
.btn { border-radius: 13px; min-height: 42px; padding: 10px 16px; font-size: 12px; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn-primary, .btn-light { background: #ffc629; color: #252326; border: 1px solid #ffc629; box-shadow: 0 4px 12px #e5a90026; }
.btn-primary:hover, .btn-light:hover { background: #f4b900; }
.btn-outline, .btn-light-outline { border: 1px solid #e8dfca; background: rgba(255,255,255,.94); color: #4b4b4d; }
.btn-outline:hover, .btn-light-outline:hover, .btn-ghost:hover { background: #fff3ce; }
.btn-soft { background: #fff0bd; color: #674707; }
.btn-small { min-height: 32px; padding: 7px 11px; }
.header-actions { gap: 8px; flex-wrap: wrap; }
.trip-more > summary { border-radius: 12px; background: #fffefb; border-color: #e8dfca; }
.trip-more-menu, .item-more-menu, .city-entry-more > div, .city-draft-more > div { background: #fffefb; border-color: #eadfca; box-shadow: 0 12px 30px #7a633333; }
.overview-grid { grid-template-columns: minmax(0, 1.8fr) minmax(240px, .7fr); gap: 16px; }
.hero-card, .stat-card, .trip-card, .panel, .search-panel, .search-result, .outing-card, .outing-progress, .preparation-brief, .finance-brief, .suggestion-band { border-color: #efe7d6; box-shadow: var(--shadow); }
.hero-card { min-height: 230px; padding: 30px 34px; background: linear-gradient(120deg, #ffe9a5, #fff4d2 60%, #dcebf0); color: #303034; }
.hero-card::before { background: url('/assets/mascot.png') center / contain no-repeat; border: 0; width: 200px; height: 200px; right: 8px; top: 16px; opacity: .95; }
.hero-card::after { display: none; }
.hero-card .eyebrow { color: #aa7600; }
.hero-card h2 { max-width: calc(100% - 150px); font-weight: 900; font-size: clamp(24px, 2.4vw, 34px); color: #303034; }
.hero-card p { max-width: calc(100% - 130px); color: #6c624b; font-size: 12px; line-height: 1.6; }
.hero-card .btn { background: #ffc629; color: #2e2a20; }
.hero-route { display: none; }
.stat-card { border-radius: 19px; }
.stat-card .eyebrow { color: #ba8607; }
.stat-main, .stat-row strong { color: #303034; }
.section-title { margin: 30px 0 15px; }
.section-title h2, .search-result-heading h2 { font-size: 19px; font-weight: 850; }
.section-title button { color: #a77803; }
.trip-grid { gap: 15px; }
.trip-card { border-radius: 18px; }
.trip-card:hover { box-shadow: 0 18px 35px #a2823540; }
.trip-cover, .trip-cover.china, .trip-cover.japan { height: 145px; background: #e9f1ed url('/assets/coast-hero.png') center 60% / cover no-repeat; }
.trip-cover.china { background-position: 77% 59%; }
.trip-cover.japan { background-position: 56% 50%; }
.trip-cover::before { display: none; }
.trip-cover span { right: 18px; bottom: 9px; font-size: 42px; color: white; opacity: .9; text-shadow: 0 2px 8px #50432b66; }
.trip-body { padding: 17px 18px; }
.trip-body h3 { font-size: 16px; color: #333; }
.trip-meta, .trip-body p { color: #787d80; }
.trip-footer { color: #a17300; }
.empty-card { border-color: #efdc9b; background: #fffdf5; }
.suggestion-band { background: #fff0be; border-radius: 17px; }
.suggestion-band p { color: #756a4e; }
.archive-list { gap: 16px; }
.archive-note { color: #8b887f; }
.album-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.album-book { padding: 0; overflow: hidden; text-align: left; border: 1px solid #eadfc9; border-radius: 19px; background: #fffefa; box-shadow: var(--shadow); }
.album-book-cover { height: 205px; display: grid; place-items: center; overflow: hidden; background: #ffebad url('/assets/coast-hero.png') center / cover no-repeat; color: #fff; font-size: 60px; }
.album-book-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.album-book-info { display: grid; gap: 5px; padding: 17px; }
.album-book-info strong { font-size: 16px; color: #303034; }
.album-book-info small { color: #777b82; font-size: 11px; }
.album-book:hover { transform: translateY(-2px); box-shadow: 0 18px 35px #a2823540; }
.album-section-title { margin: 30px 0 14px; font-size: 18px; }
.album-empty { grid-column: 1 / -1; padding: 28px; border: 1px dashed #e6d6a9; border-radius: 16px; color: #777b82; background: #fffdf5; }
.welcome-album-link { display: block; margin: 14px auto 0; border: 0; background: transparent; color: #714d0d; text-decoration: underline; font: inherit; cursor: pointer; }
.standalone-dialog { width: min(820px, calc(100vw - 24px)); max-width: 820px; }
.standalone-toolbar { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 26px; }
.standalone-hint { margin: 13px 26px; font-size: 12px; line-height: 1.6; color: #6f777d; }
.album-timeline { padding: 0 26px 26px; max-height: 60vh; overflow: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.album-stop { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; margin: 16px 0 0; padding: 10px 0; border-bottom: 1px solid #ece3cc; font-size: 17px; }
.album-stop span { color: #f7b900; }
.album-stop small { font-size: 12px; color: #6f777d; font-weight: 400; }
.album-photo { margin: 0; border: 1px solid #eee6d5; border-radius: 12px; overflow: hidden; background: #fff; }
.album-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.album-photo figcaption { display: grid; gap: 4px; padding: 10px; }
.album-photo figcaption strong { font-size: 13px; }
.album-photo figcaption small { color: #6f777d; font-size: 11px; }
.album-photo-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 4px; }
.album-review-list { display: grid; gap: 10px; padding: 0 26px; max-height: 54vh; overflow: auto; }
.album-review-row { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(160px, 1fr) minmax(160px, 1fr); gap: 8px; align-items: center; padding: 12px; border: 1px solid #eee6d5; border-radius: 12px; }
.album-review-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.album-review-row label { display: grid; gap: 3px; font-size: 11px; color: #6f777d; }
.album-review-row input { min-width: 0; width: 100%; padding: 8px; border: 1px solid #ded6c4; border-radius: 8px; }
.album-review-row small { grid-column: 1 / -1; color: #6f777d; }
@media(max-width:620px) { .album-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 15px 18px; gap: 8px; } .album-review-list { padding: 0 15px; } .album-review-row { grid-template-columns: 1fr; } .album-review-row small { grid-column: 1; } .standalone-toolbar { padding: 0 15px; } .standalone-hint { margin: 12px 15px; } }
.trip-choice-list { display: grid; gap: 9px; padding: 20px 24px 24px; }
.trip-choice-list button { display: grid; gap: 4px; width: 100%; padding: 14px 16px; text-align: left; border: 1px solid #eadfc9; border-radius: 12px; background: #fffefa; }
.trip-choice-list button:hover { border-color: #ffc629; background: #fff7dc; }
.trip-choice-list strong { font-size: 14px; }
.trip-choice-list small { font-size: 11px; color: #777b82; }
.finance-brief, .preparation-brief { background: #fff5d7; border-color: #f2e0ad; border-radius: 13px; color: #513c13; }
.finance-brief small, .preparation-brief small { color: #816e49; }
.planner-tabs { background: #fff1c2; border-color: #f2e1b5; border-radius: 15px; padding: 5px; }
.planner-tab { border-radius: 11px; color: #675b43; }
.planner-tab.active { color: #303034; background: #ffc629; box-shadow: 0 3px 9px #d9a52835; }
.panel { border-radius: 18px; }
.city-drafts { background: #fffefb; }
.city-drafts { display: flex; flex-direction: column; gap: 16px; }
.city-drafts-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.city-drafts-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.city-drafts-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0; }
.city-draft-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.city-draft-title, .city-draft-bulk, .city-draft-card > .city-research-map { grid-column: 1 / -1; }
.city-draft-section { margin-top: 0; }
.city-research-map { margin: 0; }
.city-research-map-canvas { height: 410px; }
.city-drafts h2, .city-draft-title h3, .finance-head h2, .finance-panel h3, .map-panel h3 { color: #343437; }
.city-draft-card { background: #fffefb; border-color: #ece4d5; border-radius: 15px; }
.city-draft-section.spots { background: #fff8e3; border-color: #f1dfaa; }
.city-draft-section.hotels { background: #eef6fc; border-color: #d6e7f4; }
.city-draft-section.spots .city-draft-subhead strong, .city-draft-section.spots .city-draft-subhead .tiny-btn { color: #9c6b00; }
.city-draft-section.spots .city-draft-kind-icon { background: #ffe6a0; }
.city-draft-section.hotels .city-draft-subhead strong, .city-draft-section.hotels .city-draft-subhead .tiny-btn { color: #396a93; }
.city-idea-badge.must { background: #dff5e7; color: #238353; }
.city-idea-badge { background: #fff0bf; color: #9a6a00; }
.city-research-map { border-color: #e7e4ce; background: #f7f8e9; }
.city-research-map, .map-panel { scroll-margin-top: 92px; }
.city-research-map-head strong { color: #343437; }
.city-research-map-canvas { background: #e8f2e5; }
.city-map-city-list { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 12px; }
.city-map-city-list button { border: 1px solid #d8dfc8; border-radius: 999px; background: #fff; padding: 7px 11px; color: #33443d; cursor: pointer; }
.city-map-city-list button:hover { border-color: #ffc629; background: #fff8df; }
.city-map-city-list small { color: #737a70; }
.city-map-select, .city-draft-estimate p { color: #926400 !important; }
.city-draft-estimate { background: #fff9e8; border-radius: 12px; padding: 16px; }
.city-draft-estimate button { margin-top: 3px; }
.day-tab { border-color: #ece5d5; border-radius: 12px; min-width: 100px; background: #fffefb; }
.day-tab.active { color: #272727; background: #ffdc6a; border-color: #f7ca3e; }
.day-tab small { opacity: .85; }
.timeline-panel { padding: 23px; }
.timeline::before { background: #f1d787; }
.item-content { background: #fffefa; border-color: #eee7d8; border-radius: 13px; }
.item-top strong { font-size: 13px; color: #343437; }
.type-icon { background: #fff0b7; color: #ac7300; }
.type-icon.spot { background: #fff0b7; color: #bd7600; }
.type-icon.food { background: #ffe9dd; color: #e36a20; }
.type-icon.hotel { background: #e7f1ff; color: #4c82bb; }
.type-icon.flight, .type-icon.transport { background: #e5f3ff; color: #3896d1; }
.status { background: #dff5e7; color: #258452; }
.status.idea { background: #fff1c6; color: #a47405; }
.item-info, .item-note { color: #757d80; }
.add-row { background: #fff9e8; border-color: #eedb9b; color: #956600; border-radius: 11px; }
.map-panel { background: #fffefb; }
.map-head { background: #fffaf0; }
.map-illustration { background-color: #e8f0e7; }
.map-marker.spot { background: #ffc629; color: #292929; }
.map-marker.hotel { background: #6da9d8; }
.map-marker.food { background: #f48c53; }
.legend-item .num { background: #ffe28b; color: #463300; }
.route-options, .map-hint { border-color: #efe7d6; }
.finance-panel { background: #fffefb; }
.finance-totals > div { background: #fff1c8; }
.finance-totals > div + div { background: #f5f5f0; }
.finance-totals strong { color: #333; }
.expense-bar { background: #ffc629; }
.expense-bar.food { background: #ff726a; }
.expense-bar.transport { background: #5ca6e4; }
.expense-bar.hotel { background: #f7b23d; }
.expense-bar.activity { background: #5ac995; }
.expense-bar.shopping { background: #bd8ce9; }
.expense-day-total { color: #9c6900; }
.search-panel { background: #fffefb; border-radius: 19px; }
.search-result { background: #fffefb; border-radius: 14px; }
.search-result-footer { color: #9a6c00; }
.outing-heading { min-height: 220px; }
.outing-mode .sidebar { display: flex; }
.outing-mode .page-content { max-width: 1500px; padding: 8px 28px 110px; }
.outing-view { max-width: none; }
.outing-view > :not(.outing-heading) { max-width: 1100px; margin-left: auto; margin-right: auto; }
.outing-date-nav, .outing-progress, .outing-card, .outing-finished { border-radius: 17px; border-color: #efe7d6; background: #fffefb; }
.outing-progress progress, .checklist-progress progress { accent-color: #ffc629; }
.outing-featured { background: linear-gradient(145deg, #ffedb4, #fff9e8); color: #303034; border-color: #f6d46d; }
.outing-featured .outing-card-meta, .outing-featured p, .outing-featured small { color: #5b5341; }
.outing-featured .btn-light-outline { border-color: #e9ca72; }
.outing-card h2 { color: #303034; }
.outing-section-title { color: #343437; }
.preparation-row { background: #fffefa; border-color: #eee7d8; }
.preparation-entry input, .city-entry-check { accent-color: #e4a900; }
.checklist-progress { background: #fff2cb; }
.checklist-progress strong, .checklist-group h3, .pwa-settings h3 { color: #343437; }
.bag-list span { background: #fff0bd; color: #684a05; }
.memory-dialog figure { background: #fff7df; }
.memory-grid figcaption strong { color: #343437; }
.modal { border-radius: 22px; border-color: #ede1c8; box-shadow: 0 28px 80px #38301b35; }
.modal::backdrop { background: rgba(40, 38, 31, .44); backdrop-filter: blur(3px); }
.modal-head { background: #fffaf0; }
#account-dialog { padding-bottom: 22px; }
#account-dialog > :not(.modal-head) { margin-left: 24px; margin-right: 24px; }
#account-dialog .privacy-note a { color: #9b6900; }
#account-dialog input { background: #fffefb; border-color: #e9dfcb; }
.field input, .field select, .field textarea, .city-input { background: #fffefb; border-color: #e9dfcb; color: #343437; border-radius: 10px; }
.day-city-button { max-width: 220px; overflow: hidden; text-overflow: ellipsis; justify-content: flex-start; }
.day-city-button span { overflow: hidden; text-overflow: ellipsis; }
#pwa-update { border-color: #eedaa3; bottom: calc(18px + env(safe-area-inset-bottom)); }
#pwa-update button { background: #ffc629; color: #333; }
.privacy-header { max-width: 960px; height: 76px; padding: 0 20px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.privacy-main { max-width: 960px; margin: 8px auto 60px; padding: 0 20px 30px; line-height: 1.85; }
.privacy-main h2 { margin: 31px 0 9px; font-size: 19px; color: #343437; }
.privacy-main > p { color: #62676c; font-size: 14px; margin: 0; }
.privacy-hero { min-height: 230px; padding: 45px; display: flex; flex-direction: column; justify-content: center; border-radius: 22px; background: #fff8e7 url('/assets/coast-hero.png') center / cover no-repeat; border: 1px solid #f0e4c2; }
.privacy-hero h1 { margin: 8px 0 5px; font-size: clamp(28px, 3vw, 40px); }
.privacy-hero p { margin: 0; color: #55585b; background: rgba(255, 250, 235, .88); border-radius: 7px; padding: 3px 8px; align-self: flex-start; }

@media (max-width: 1300px) {
  .sidebar { padding: 0 18px; }
  .brand { margin-right: 14px; }
  .side-link { padding: 8px; font-size: 11px; }
  .side-link b { display: none; }
}
@media (max-width: 1080px) {
  #nav-search, #nav-memories { display: none; }
  .page-content { padding: 6px 20px 100px; }
}
@media (max-width: 900px) {
  .sidebar { position: sticky; top: 0; height: 60px; width: 100%; padding: 0 15px; overflow: visible; gap: 0; }
  .brand { font-size: 22px; margin-right: auto; }
  .brand-icon { width: 43px; height: 43px; }
  .brand small { font-size: 7px; }
  .mobile-save-indicator { display: inline-flex; flex: 0 1 125px; min-width: 0; margin-right: 6px; font-size: 10px; white-space: nowrap; }
  .mobile-save-indicator .save-text { overflow: hidden; text-overflow: ellipsis; }
  .sidebar > .side-link { display: none; }
  .sidebar #nav-search { display: block; font-size: 0; padding: 9px; }
  .sidebar #nav-search span { font-size: 23px; }
  .sidebar-bottom { display: block; margin: 0; }
  .sidebar-bottom .side-link { display: none; }
  .sidebar-bottom .mobile-account-button { display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 36px; padding: 0 9px; border: 1px solid #e7d5a6; border-radius: 12px; background: #fff0bd; color: #543b05; font-size: 12px; font-weight: 800; }
  .topbar { display: none; }
  .page-content { padding: 12px 12px calc(104px + env(safe-area-inset-bottom)); }
  .page-heading, .search-heading, .outing-heading { min-height: 215px; padding: 26px 21px; border-radius: 20px; align-items: flex-start; flex-direction: column; gap: 16px; background-position: 59% center; }
  .page-heading::before, .search-heading::before, .outing-heading::before { background: linear-gradient(90deg, rgba(255, 251, 239, .94), rgba(255, 251, 239, .64) 64%, rgba(255, 251, 239, .08)); }
  .page-heading h1, .search-heading h1, .outing-heading h1 { font-size: 28px; }
  .page-heading p, .search-heading p, .outing-heading p { font-size: 12px; }
  .page-heading .header-actions { width: 100%; gap: 6px; justify-content: flex-start; }
  .page-heading .header-actions .btn { font-size: 11px; min-height: 36px; padding: 7px 9px; }
  .overview-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 190px; padding: 24px; }
  .hero-card::before { width: 136px; height: 136px; right: -3px; top: 30px; }
  .hero-card h2 { font-size: 23px; max-width: calc(100% - 92px); }
  .hero-card p { max-width: calc(100% - 80px); }
  .stat-card { min-height: 100px; padding: 18px; flex-direction: row; align-items: center; }
  .stat-main { font-size: 37px; }
  .stat-row { border: 0; padding: 0; flex-direction: column; text-align: right; }
  .trip-grid, .archive-list { grid-template-columns: 1fr; }
  .trip-cover { height: 128px; }
  .planner-tabs { width: 100%; }
  .planner-tab { flex: 1; padding: 10px 6px; font-size: 12px; }
  .day-layout, .finance-grid { grid-template-columns: 1fr; }
  .city-drafts { padding: 15px; }
  .city-draft-card { grid-template-columns: minmax(0, 1fr); }
  .city-drafts-head, .city-drafts-list, .city-research-map, .city-draft-estimate { width: 100%; }
  .city-research-map-canvas { height: 270px; }
  .trip-toolbar { align-items: stretch; }
  .day-tabs { width: 100%; }
  .day-tab { min-width: 92px; }
  .panel-head { flex-wrap: wrap; }
  .panel-head-actions { width: 100%; justify-content: space-between; }
  .city-input { flex: 1; }
  .finance-brief { margin-top: 0; }
  .finance-panel { padding: 16px; }
  .outing-heading { min-height: 190px; }
  .outing-mode .page-content { padding: 12px 12px calc(104px + env(safe-area-inset-bottom)); }
  .outing-header-actions { display: flex; flex-wrap: wrap; gap: 6px; }
  .outing-header-actions .btn { font-size: 11px; min-height: 34px; }
  .mobile-nav { position: fixed; z-index: 70; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); height: 64px; padding: 5px 6px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: rgba(255,254,250,.97); border: 1px solid #f0e5cd; border-radius: 23px; box-shadow: 0 10px 28px #6f5c2d2e; backdrop-filter: blur(14px); }
  .mobile-nav button { border: 0; background: none; display: grid; justify-items: center; align-content: center; gap: 0; color: #5b5c5e; font-size: 10px; font-weight: 750; height: 52px; border-radius: 14px; }
  .mobile-nav button span { display: block; font-size: 24px; line-height: 28px; }
  .mobile-nav button.active:not(.mobile-add) { color: #9e6d00; background: #fff3cf; }
  .mobile-nav .mobile-add { width: 52px; height: 52px; justify-self: center; border-radius: 50%; background: #ffc629; color: #2e2a20; box-shadow: 0 4px 11px #c58e163f; }
  .mobile-nav .mobile-add span { font-size: 30px; line-height: 1; }
  .album-library { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .album-book-cover { height: 150px; }
  .album-book-info { padding: 12px; }
  .album-book-info strong { font-size: 13px; }
  #pwa-update { bottom: calc(78px + env(safe-area-inset-bottom)); }
  .modal { max-height: calc(100dvh - 40px); }
  .privacy-header { height: 60px; }
  .privacy-hero { min-height: 180px; padding: 25px; }
  .privacy-main h2 { font-size: 17px; }
}
@media (max-width: 410px) {
  .welcome-screen { padding: 0; }
  .welcome-card { padding: 20px 23px 31px; }
  .welcome-mascot { width: 95px; height: 95px; }
  .album-book-cover { height: 130px; }
  .page-heading, .search-heading, .outing-heading { padding: 22px 17px; }
  .page-heading h1 { font-size: 25px; }
  .hero-card h2 { max-width: 100%; padding-right: 82px; }
  .hero-card p { max-width: 100%; padding-right: 70px; }
  .city-entry-row { gap: 4px; }
  .city-entry-price { display: none; }
}

/* Travel checklist: spacious header, compact editable rows and a fixed close action. */
#checklist-dialog.modal.wide { width: min(900px, calc(100vw - 24px)); max-width: 900px; max-height: min(92dvh, 920px); padding: 0; overflow: hidden; background: #fffefa; }
#checklist-dialog[open] { display: flex; flex-direction: column; }
#checklist-dialog .checklist-hero { flex: none; min-height: 150px; padding: 28px 32px 24px; background: #fff9eb url('/assets/checklist-coast.jpg') center / cover no-repeat; }
#checklist-dialog .checklist-hero .eyebrow { color: #c88700; font-size: 11px; letter-spacing: .16em; }
#checklist-dialog .checklist-hero h2 { margin: 12px 0 6px; color: #25282e; font-size: 29px; line-height: 1.15; }
#checklist-dialog .checklist-hero p { color: #728c7c; font-size: 15px; font-weight: 650; margin: 0; }
#checklist-dialog .close-btn { width: 38px; height: 38px; flex: none; border: 1px solid #e7ebe5; background: #ffffffd9; color: #748178; border-radius: 11px; }
#checklist-dialog .checklist-content { flex: 1; min-height: 0; max-height: none; overflow-y: auto; padding: 14px 30px 22px; scrollbar-color: #e2d8bd transparent; }
#checklist-dialog .checklist-progress { display: grid; grid-template-columns: 114px minmax(0, 1fr); align-items: center; gap: 24px; min-height: 142px; padding: 20px 24px; border-radius: 15px; background: linear-gradient(115deg, #fff4cc, #fff8e5); }
#checklist-dialog .checklist-ring { width: 106px; height: 106px; border-radius: 50%; background: conic-gradient(#ffc629 var(--progress), #f9e3a3 var(--progress)); display: grid; place-items: center; position: relative; }
#checklist-dialog .checklist-ring::before { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: #fffdf7; }
#checklist-dialog .checklist-ring strong { z-index: 1; font-size: 21px; color: #25282e; }
#checklist-dialog .checklist-progress-main { min-width: 0; }
#checklist-dialog .checklist-progress-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#checklist-dialog .checklist-progress-line strong { font-size: 16px; color: #272a30; }
#checklist-dialog .checklist-progress-line span { color: #8b958e; font-size: 12px; }
#checklist-dialog .checklist-progress progress { display: block; width: 100%; height: 8px; margin: 12px 0 14px; border: 0; border-radius: 99px; background: #dedbd2; }
#checklist-dialog .checklist-progress progress::-webkit-progress-bar { border-radius: 99px; background: #dedbd2; }
#checklist-dialog .checklist-progress progress::-webkit-progress-value { border-radius: 99px; background: #ffc629; }
#checklist-dialog .checklist-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#checklist-dialog .checklist-metrics > div { display: grid; grid-template-columns: 28px 1fr; align-items: center; column-gap: 8px; min-width: 0; padding: 2px 10px; border-right: 1px solid #f5e7be; }
#checklist-dialog .checklist-metrics > div:first-child { padding-left: 0; }
#checklist-dialog .checklist-metrics > div:last-child { border-right: 0; }
#checklist-dialog .metric-icon { grid-row: span 2; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; }
#checklist-dialog .done-icon { color: #3eaa6f; border: 2px solid #53b37a; font-size: 15px; }
#checklist-dialog .pending-icon, #checklist-dialog .booking-icon { color: #ef9700; }
#checklist-dialog .checklist-metrics strong { font-size: 13px; line-height: 1.2; color: #25282e; }
#checklist-dialog .checklist-metrics small { font-size: 11px; color: #8b958e; }
#checklist-dialog .checklist-tools { display: flex; gap: 10px; margin: 14px 0 16px; }
#checklist-dialog .checklist-tools .btn { min-height: 45px; padding: 10px 19px; border-radius: 12px; font-size: 12px; }
#checklist-dialog .checklist-bags { margin-bottom: 17px; }
#checklist-dialog .checklist-bags > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
#checklist-dialog .checklist-bags h3 { margin: 0; font-size: 13px; color: #272a30; }
#checklist-dialog .checklist-bags header button { border: 0; background: transparent; color: #888e90; font-size: 11px; cursor: pointer; }
#checklist-dialog .bag-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
#checklist-dialog .bag-card { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 56px; padding: 7px 11px; border-radius: 11px; background: #fff9ed; }
#checklist-dialog .bag-illustration { flex: none; width: 35px; height: 39px; border-radius: 9px; display: grid; place-items: center; background: #ffde80; color: #c58600; font-size: 20px; }
#checklist-dialog .pink-bag { background: #ffe0e3; color: #cc7582; }
#checklist-dialog .bag-details { display: grid; gap: 2px; flex: 1; min-width: 0; }
#checklist-dialog .bag-details strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #34363c; font-size: 12px; }
#checklist-dialog .bag-details small { color: #a37c30; font-size: 11px; }
#checklist-dialog .bag-card .tiny-btn { flex: none; color: #898b8e; font-size: 11px; min-height: 30px; padding: 4px; }
#checklist-dialog .bag-empty { grid-column: 1 / -1; margin: 0; padding: 12px; background: #fff9ed; border-radius: 10px; color: #8a8171; font-size: 12px; }
#checklist-dialog .checklist-group { margin: 12px 0; border: 1px solid #f0e7d6; border-radius: 16px; padding: 13px; background: #fffefc; }
#checklist-dialog .checklist-group > header { margin: 0 0 10px; }
#checklist-dialog .checklist-group-heading { display: flex; gap: 10px; align-items: center; min-width: 0; }
#checklist-dialog .checklist-group-heading > span { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #fff0c5; color: #a36e00; font-size: 21px; }
#checklist-dialog .checklist-group h3 { color: #303139; font-size: 15px; margin: 0; }
#checklist-dialog .checklist-group-heading p { color: #96989c; font-size: 10px; margin: 3px 0 0; }
#checklist-dialog .checklist-group .btn-small { min-height: 36px; border-radius: 11px; padding: 7px 13px; white-space: nowrap; }
#checklist-dialog .checklist-rows { overflow: hidden; border: 1px solid #eeedf0; border-radius: 11px; }
#checklist-dialog .preparation-row { display: grid; grid-template-columns: 24px 22px minmax(0, 1fr) auto 68px; align-items: center; gap: 9px; min-height: 45px; margin: 0; padding: 7px 10px; border: 0; border-bottom: 1px solid #eeedf0; border-radius: 0; background: #fff; }
#checklist-dialog .preparation-row:last-child { border-bottom: 0; }
#checklist-dialog .preparation-row:hover { background: #fffdf7; }
#checklist-dialog .preparation-row > input { width: 19px; height: 19px; margin: 0; accent-color: #ffc629; cursor: pointer; }
#checklist-dialog .prep-item-icon { color: #30333a; font-size: 19px; line-height: 1; text-align: center; }
#checklist-dialog .preparation-entry { display: block; min-width: 0; }
#checklist-dialog .preparation-entry label { display: block; min-height: 0; color: #303139; font-size: 12px; line-height: 1.35; font-weight: 620; }
#checklist-dialog .preparation-done .preparation-entry label { color: #969a98; text-decoration: line-through; }
#checklist-dialog .prep-meta { margin: 2px 0 0; font-size: 10px; color: #959a9e; gap: 6px; }
#checklist-dialog .preparation-related { margin: 2px 0 0; font-size: 10px; color: #959a9e; }
#checklist-dialog .preparation-related .tiny-btn { min-height: 0; padding: 0 3px; color: #a37619; }
#checklist-dialog .prep-missing { color: #b98e48; font-size: 10px; }
#checklist-dialog .prep-tag { max-width: 124px; padding: 5px 9px; border-radius: 99px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #fff2ce; color: #98700e; font-size: 10px; }
#checklist-dialog .booking-tag.spot-tag { background: #e5f7ec; color: #439368; }
#checklist-dialog .booking-tag.hotel-tag { background: #e6f2ff; color: #5586b7; }
#checklist-dialog .booking-tag.flight-tag { background: #f3eaff; color: #8561b2; }
#checklist-dialog .preparation-row-actions { justify-content: flex-end; gap: 2px; }
#checklist-dialog .preparation-row-actions .tiny-btn { color: #878d91; font-size: 18px; min-height: 32px; padding: 4px 6px; }
#checklist-dialog .checklist-empty { margin: 0; border: 0; background: #fff; font-size: 11px; }
#checklist-dialog .checklist-footer { display: flex; flex: none; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 30px; border-top: 1px solid #efe7d8; background: #fffefa; }
#checklist-dialog .checklist-footer p { margin: 0; color: #969b9c; font-size: 11px; }
#checklist-dialog .checklist-footer .btn { min-width: 154px; min-height: 43px; border-radius: 11px; }
#checklist-dialog .prep-svg { width: 18px; height: 18px; flex: none; vertical-align: middle; }
#checklist-dialog .metric-icon .prep-svg { width: 23px; height: 23px; }
#checklist-dialog .checklist-tools .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
#checklist-dialog .checklist-bags h3 { display: flex; align-items: center; gap: 7px; }
#checklist-dialog .bag-illustration .prep-svg { width: 23px; height: 23px; }
#checklist-dialog .bag-details { background: transparent; padding: 0; border-radius: 0; color: inherit; }
#checklist-dialog .checklist-group-heading > span .prep-svg { width: 20px; height: 20px; }
#checklist-dialog .prep-item-icon .prep-svg { width: 19px; height: 19px; }
#checklist-dialog .prep-meta .prep-svg { width: 12px; height: 12px; }
#checklist-dialog .prep-tag .prep-svg { width: 12px; height: 12px; margin-right: 4px; }
#checklist-dialog .preparation-row-actions .prep-svg { width: 17px; height: 17px; }
#checklist-dialog .packing-row { -webkit-touch-callout: none; user-select: none; }
#checklist-dialog .packing-selection-mode { border-color: #e9ca70; background: #fffaf0; }
#checklist-dialog .packing-selection-mode .preparation-row > input { accent-color: #e9b51e; }
#checklist-dialog .packing-selection-mode .preparation-done .preparation-entry label { color: #303139; text-decoration: none; }
#checklist-dialog .packing-done-note { display: block; color: #6b9a77; font-size: 10px; }
#checklist-dialog .quick-prep-form { display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: #fffdf5; }
#checklist-dialog .quick-prep-form input { flex: 1; min-width: 0; min-height: 39px; border: 0; outline: 0; background: transparent; color: #303139; font: inherit; font-size: 13px; }
#checklist-dialog .quick-prep-form input::placeholder { color: #a5a49d; }
#checklist-dialog .quick-prep-form:focus-within { box-shadow: inset 0 0 0 2px #ffd45d; }
#checklist-dialog .quick-prep-form span { color: #af8a2f; font-size: 18px; }
#checklist-dialog .packing-bulk-bar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 30px; border-top: 1px solid #eedfaa; background: #fff6d8; }
#checklist-dialog .packing-bulk-bar[hidden] { display: none; }
#checklist-dialog .packing-bulk-bar strong { margin-right: auto; font-size: 12px; }
#checklist-dialog .packing-bulk-bar select { max-width: 180px; min-height: 35px; padding: 4px 8px; border: 1px solid #dec889; border-radius: 8px; background: white; font-size: 12px; }
#checklist-dialog .packing-bulk-bar .btn { min-height: 35px; padding: 6px 10px; }
#checklist-dialog .packing-bulk-bar .tiny-btn { min-height: 35px; }
@media (max-width: 620px) {
  #checklist-dialog.modal.wide { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); border-radius: 21px; }
  #checklist-dialog .checklist-hero { min-height: 145px; padding: 24px 18px 19px; background-position: 64% center; }
  #checklist-dialog .checklist-hero h2 { font-size: 24px; }
  #checklist-dialog .checklist-hero p { font-size: 13px; }
  #checklist-dialog .checklist-content { padding: 10px 13px 18px; }
  #checklist-dialog .checklist-progress { grid-template-columns: 75px minmax(0, 1fr); gap: 10px; min-height: 120px; padding: 13px 10px; }
  #checklist-dialog .checklist-ring { width: 72px; height: 72px; }
  #checklist-dialog .checklist-ring::before { inset: 10px; }
  #checklist-dialog .checklist-ring strong { font-size: 16px; }
  #checklist-dialog .checklist-progress-line strong { font-size: 12px; }
  #checklist-dialog .checklist-progress-line span { font-size: 10px; }
  #checklist-dialog .checklist-progress progress { margin: 9px 0; }
  #checklist-dialog .checklist-metrics > div { grid-template-columns: 20px 1fr; gap: 2px; padding: 0 4px; }
  #checklist-dialog .metric-icon { width: 18px; height: 18px; font-size: 15px; }
  #checklist-dialog .done-icon { font-size: 11px; border-width: 1px; }
  #checklist-dialog .checklist-metrics strong { font-size: 10px; }
  #checklist-dialog .checklist-metrics small { font-size: 9px; }
  #checklist-dialog .checklist-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0 14px; }
  #checklist-dialog .checklist-tools .btn { min-width: 0; min-height: 56px; padding: 7px 3px; white-space: normal; line-height: 1.4; font-size: 10px; }
  #checklist-dialog .bag-list { gap: 6px; }
  #checklist-dialog .bag-card { gap: 4px; min-height: 52px; padding: 5px; }
  #checklist-dialog .bag-illustration { width: 27px; height: 32px; font-size: 16px; }
  #checklist-dialog .bag-details strong { font-size: 10px; }
  #checklist-dialog .bag-details small { font-size: 9px; }
  #checklist-dialog .bag-card .tiny-btn { font-size: 10px; padding: 2px; }
  #checklist-dialog .checklist-group { padding: 9px; }
  #checklist-dialog .checklist-group-heading { gap: 6px; }
  #checklist-dialog .checklist-group-heading > span { width: 30px; height: 30px; font-size: 17px; }
  #checklist-dialog .checklist-group h3 { font-size: 13px; }
  #checklist-dialog .checklist-group-heading p { font-size: 9px; }
  #checklist-dialog .checklist-group .btn-small { font-size: 10px; padding: 5px 7px; }
  #checklist-dialog .preparation-row { grid-template-columns: 19px 18px minmax(0, 1fr) 54px; gap: 5px; min-height: 47px; padding: 6px 7px; }
  #checklist-dialog .preparation-entry label { font-size: 11px; }
  #checklist-dialog .prep-item-icon { font-size: 15px; }
  #checklist-dialog .prep-tag { grid-column: 3; grid-row: 2; justify-self: start; max-width: 100%; padding: 3px 7px; font-size: 9px; }
  #checklist-dialog .preparation-row-actions { grid-column: 4; grid-row: 1 / span 2; }
  #checklist-dialog .packing-bulk-bar { padding: 8px 13px; gap: 5px; }
  #checklist-dialog .packing-bulk-bar strong { width: 100%; }
  #checklist-dialog .packing-bulk-bar select { flex: 1; max-width: none; min-width: 90px; }
  #checklist-dialog .packing-bulk-bar .btn { font-size: 11px; }
  #checklist-dialog .preparation-row-actions .tiny-btn { font-size: 15px; min-height: 30px; padding: 3px; }
  #checklist-dialog .checklist-footer { padding: 9px 13px calc(9px + env(safe-area-inset-bottom)); }
  #checklist-dialog .checklist-footer p { display: none; }
  #checklist-dialog .checklist-footer .btn { width: 100%; }
}

/* Private album: compact day carousels, captions on hover and a focused viewer. */
#standalone-album-dialog.standalone-dialog { width: min(1180px, calc(100vw - 24px)); max-width: 1180px; max-height: 93dvh; padding: 0; overflow: auto; background: #fffdf7; }
.album-detail-hero { position: relative; display: flex; align-items: center; gap: 22px; min-height: 200px; margin: 12px 14px 0; padding: 23px 65px 23px 24px; border-radius: 19px; background: #fff9e9 url('/assets/coast-hero.png') center / cover no-repeat; }
.album-detail-hero::before { position: absolute; inset: 0; content: ''; border-radius: inherit; background: linear-gradient(90deg,#fffdf3e8 0%,#fffdf3ca 56%,#fffdf300 100%); pointer-events: none; }
.album-detail-hero > * { position: relative; z-index: 1; }
.album-detail-cover { flex: none; width: 122px; height: 142px; overflow: hidden; border: 5px solid #fff; border-radius: 14px; background: #ffefb7; box-shadow: 0 9px 20px #7f6f4530; }
.album-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-detail-intro { min-width: 0; }
.album-detail-intro .eyebrow { color: #ae7400; font-size: 11px; letter-spacing: .12em; }
.album-detail-intro h2 { margin: 9px 0; color: #2d3034; font-size: clamp(22px,2.6vw,32px); }
.album-detail-intro h2 button { border: 0; background: #ffffffc8; border-radius: 50%; color: #667073; font-size: 15px; cursor: pointer; }
.album-detail-intro p { margin: 0 0 11px; color: #657078; font-size: 14px; }
.album-detail-intro small { color: #7a8384; font-size: 12px; }
.album-detail-hero > .close-btn { position: absolute; top: 15px; right: 15px; }
#standalone-album-dialog .standalone-toolbar { display: flex; align-items: center; gap: 9px; padding: 17px 26px 8px; }
#standalone-album-dialog .standalone-toolbar .btn { min-height: 42px; border-radius: 12px; }
#standalone-album-dialog .standalone-toolbar span { margin-left: auto; color: #93918d; font-size: 11px; }
#standalone-album-dialog .album-timeline { display: block; max-height: none; overflow: visible; padding: 0 26px 28px; }
.album-day { margin: 12px 0; padding: 16px; border: 1px solid #f2e8d4; border-radius: 17px; background: #fff; }
.album-day > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.album-day > header > div:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-width: 0; }
.album-day-badge { padding: 6px 13px; border-radius: 10px 4px 11px 4px; background: #ffdc69; color: #302d24; font-size: 15px; font-weight: 850; }
.album-day > header strong { color: #33363a; font-size: 13px; }
.album-day > header small { min-width: 0; overflow: hidden; color: #798087; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.album-day-controls { display: flex; gap: 5px; flex: none; }
.album-day-controls button { width: 28px; height: 28px; border: 1px solid #f0e5cc; border-radius: 50%; background: #fff9e7; color: #735620; font-size: 22px; line-height: 1; cursor: pointer; }
.album-carousel { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; scrollbar-color: #efd383 transparent; }
.album-photo-card { position: relative; flex: 0 0 185px; width: 185px; height: 170px; padding: 0; border: 0; border-radius: 11px; overflow: hidden; background: #fff2cf; box-shadow: 0 2px 8px #4a382114; cursor: zoom-in; scroll-snap-align: start; perspective: 500px; }
.album-photo-card:nth-child(4n+1) { flex-basis: 125px; width: 125px; }
.album-photo-card:nth-child(5n+3) { flex-basis: 225px; width: 225px; }
.album-photo-face, .album-photo-back { position: absolute; inset: 0; display: block; backface-visibility: hidden; transition: transform .35s ease; }
.album-photo-face img { width: 100%; height: 100%; display: block; object-fit: cover; }
.album-photo-back { display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 16px; transform: rotateY(180deg); background: #fffaf0; color: #33373b; text-align: left; overflow: hidden; }
.album-photo-back strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; font-size: 13px; line-height: 1.5; }
.album-photo-back small { color: #81878a; font-size: 10px; }
.album-photo-back em { color: #a16a00; font-size: 10px; font-style: normal; }
@media (hover:hover) and (pointer:fine) { .album-photo-card:hover .album-photo-face { transform: rotateY(180deg); } .album-photo-card:hover .album-photo-back { transform: rotateY(0); } }
.album-processing { padding: 42px 28px; text-align: center; }
.album-processing h2 { margin: 8px 0; }
.album-processing p, .album-processing small { color: #757b80; }
.album-processing progress { display: block; width: min(420px,100%); margin: 17px auto; accent-color: #ffc629; }
.album-selection-error, .album-upload-error { margin: 10px 26px; padding: 11px 13px; border-radius: 10px; background: #fff0e8; color: #a9442b; font-size: 12px; }
.album-review-row .album-review-caption { grid-column: 2 / -1; }
.album-lightbox { width: min(1100px,calc(100vw - 16px)); max-width: 1100px; max-height: 96dvh; padding: 0; border: 0; border-radius: 17px; overflow: auto; background: #22252a; color: #fff; box-shadow: 0 25px 90px #14151e91; }
.album-lightbox::backdrop { background: #171923c9; }
.album-lightbox-top { display: flex; align-items: center; gap: 15px; padding: 10px 16px; }
.album-lightbox-top strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-lightbox-top span { color: #e1dacc; font-size: 12px; margin-left: auto; }
.album-lightbox-top button { border: 0; background: none; color: white; font-size: 28px; cursor: pointer; }
.album-lightbox-main { display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; align-items: center; min-height: 250px; }
.album-lightbox-main img { display: block; max-width: 100%; max-height: 58dvh; margin: auto; object-fit: contain; }
.album-lightbox-main button { height: 70px; border: 0; background: #ffffff1d; color: white; font-size: 35px; cursor: pointer; }
.album-lightbox-main button:disabled { opacity: .25; cursor: default; }
.album-lightbox-info { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 18px; }
.album-lightbox-info strong { flex: 1 1 100%; font-size: 16px; line-height: 1.5; }
.album-lightbox-info p { flex: 1 1 auto; margin: 0; color: #cfcbc4; font-size: 12px; }
.album-lightbox-info .btn { min-height: 32px; font-size: 11px; color: #eee; border-color: #666; }
.album-lightbox-thumbs { display: flex; justify-content: center; gap: 6px; padding: 8px 15px 15px; }
.album-lightbox-thumbs button { width: 48px; height: 43px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 5px; background: none; cursor: pointer; }
.album-lightbox-thumbs button.active { border-color: #ffc629; }
.album-lightbox-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media(max-width:620px) {
  #standalone-album-dialog.standalone-dialog { width: calc(100vw - 10px); max-height: calc(100dvh - 10px); border-radius: 18px; }
  .album-detail-hero { min-height: 155px; margin: 6px 7px 0; padding: 19px 45px 16px 13px; gap: 10px; background-position: 63% center; }
  .album-detail-cover { width: 74px; height: 96px; border-width: 3px; }
  .album-detail-intro h2 { margin: 5px 0; font-size: 18px; }
  .album-detail-intro p { margin-bottom: 5px; font-size: 10px; }
  .album-detail-intro small, .album-detail-intro .eyebrow { font-size: 9px; }
  .album-detail-hero > .close-btn { right: 7px; top: 7px; }
  #standalone-album-dialog .standalone-toolbar { padding: 11px 12px 5px; flex-wrap: wrap; }
  #standalone-album-dialog .standalone-toolbar span { flex: 1 1 100%; margin: 0; }
  #standalone-album-dialog .album-timeline { padding: 0 8px 12px; }
  .album-day { padding: 10px; margin: 9px 0; }
  .album-day-badge { font-size: 12px; padding: 5px 9px; }
  .album-day > header strong { font-size: 10px; }
  .album-day > header small { flex: 1 1 100%; font-size: 9px; }
  .album-photo-card { flex-basis: 135px; width: 135px; height: 135px; }
  .album-photo-card:nth-child(4n+1) { flex-basis: 105px; width: 105px; }
  .album-photo-card:nth-child(5n+3) { flex-basis: 160px; width: 160px; }
  .album-lightbox-main { grid-template-columns: 32px minmax(0,1fr) 32px; }
  .album-lightbox-main img { max-height: 55dvh; }
  .album-lightbox-info { padding: 8px 12px; }
  .album-lightbox-info strong { font-size: 13px; }
  .album-lightbox-info .btn { padding: 6px; }
  .album-review-row .album-review-caption { grid-column: 1; }
}
/* Full-screen album with original-ratio photos in independent waterfall columns. */
#standalone-album-dialog.standalone-dialog { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }
#standalone-album-dialog .album-detail-hero { margin: 0; border-radius: 0; }
#standalone-album-dialog .album-detail-cover { border: 0; box-shadow: none; }
.album-book[data-open-standalone-album] .album-book-cover { height: auto; aspect-ratio: 4 / 3; }
#standalone-album-dialog .album-detail-cover { height: auto; aspect-ratio: 4 / 3; }
#standalone-album-dialog .album-day { margin: 0; padding: 12px 0 18px; border: 0; border-radius: 0; box-shadow: none; }
#standalone-album-dialog .album-day > header { margin: 0 0 9px; padding: 0 20px; }
#standalone-album-dialog .album-day > header > div:first-child { flex: 1; }
#standalone-album-dialog .album-day-badge { white-space: nowrap; }
#standalone-album-dialog .album-day-toggle { width: 34px; height: 34px; flex: none; border: 1px solid #efdba7; border-radius: 50%; background: #fff8e5; color: #795915; font-size: 22px; cursor: pointer; }
#standalone-album-dialog .album-waterfall { position: relative; display: block; }
#standalone-album-dialog .album-waterfall[hidden] { display: none; }
#standalone-album-dialog .album-photo-card { position: absolute; display: block; min-width: 0; margin: 0; border: 0; border-radius: 0; overflow: hidden; box-shadow: none; line-height: 0; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: pan-y; }
#standalone-album-dialog .album-photo-face { position: absolute; inset: 0; display: block; transform: none; }
#standalone-album-dialog .album-photo-face img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; pointer-events: none; }
#standalone-album-dialog .album-photo-back { position: absolute; inset: 0; line-height: 1.45; }
#standalone-album-dialog .album-photo-check { position: absolute; top: 8px; right: 8px; z-index: 2; width: 24px; height: 24px; border: 2px solid #fff; border-radius: 50%; background: #2228; color: white; font-size: 15px; line-height: 20px; }
#standalone-album-dialog .album-photo-card.is-selected { outline: 3px solid #ffbd20; outline-offset: -3px; }
#standalone-album-dialog .album-photo-card.is-selected .album-photo-check { background: #ffbd20; color: #352b12; }
@media (hover:hover) and (pointer:fine) { #standalone-album-dialog .album-photo-card:hover .album-photo-face { transform: rotateY(180deg); } }
@media (max-width: 650px) { #standalone-album-dialog .album-day > header { padding: 0 10px; } #standalone-album-dialog .album-day > header > div:first-child { flex-wrap: nowrap; } #standalone-album-dialog .album-day > header small { flex: 1 1 auto; white-space: nowrap; } }
.album-review-row { grid-template-columns: 110px repeat(3,minmax(0,1fr)); align-items: start; }
.album-review-thumb { grid-column: 1; grid-row: 1 / 4; display: block; width: 110px; max-height: 150px; object-fit: contain; border-radius: 8px; background: #f6f3e9; }
.album-review-row strong { grid-column: 2 / -1; align-self: center; }
.album-review-row .album-review-caption { grid-column: 2 / -1; }
.album-review-row small { grid-column: 1 / -1; line-height: 1.5; }
@media(max-width:620px) { .album-review-row { grid-template-columns: 82px minmax(0,1fr); } .album-review-thumb { width: 82px; max-height: 110px; grid-row: 1 / 5; } .album-review-row strong,.album-review-row label,.album-review-row .album-review-caption { grid-column: 2; } .album-review-row small { grid-column: 1 / -1; } }
.session-loading .welcome-screen { display: none; }
.session-loading-panel { display: grid; min-height: 55dvh; place-items: center; color: #776b53; font-size: 15px; }
#standalone-album-dialog .album-photo-check { opacity: 0; }
#standalone-album-dialog .album-waterfall.is-selecting .album-photo-check, #standalone-album-dialog .album-photo-card.is-selected .album-photo-check { opacity: 1; }
#standalone-album-dialog .album-selection-bar { position: fixed; z-index: 15; left: 50%; bottom: max(12px,env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; width: min(500px,calc(100vw - 22px)); padding: 10px 12px; border: 1px solid #f2d77c; border-radius: 16px; background: #fffdf4; box-shadow: 0 8px 35px #3b34294d; transform: translateX(-50%); }
#standalone-album-dialog .album-selection-bar[hidden] { display: none; }
#standalone-album-dialog .album-selection-bar span { margin-right: auto; font-size: 13px; font-weight: 700; color: #3c362a; white-space: nowrap; }
#standalone-album-dialog .album-selection-bar button { min-height: 38px; padding: 0 11px; border: 1px solid #e4d5a9; border-radius: 10px; background: #fff; color: #514526; font-size: 12px; font-weight: 700; cursor: pointer; }
#standalone-album-dialog .album-selection-bar [data-delete-chosen] { border-color: #bd3a30; background: #bd3a30; color: #fff; }
#standalone-album-dialog .album-selection-bar button:disabled { opacity: .5; cursor: default; }
.album-lightbox-info .btn, .album-lightbox-info button.btn { background: #3b4049; border: 1px solid #9298a3; color: #fff; opacity: 1; }
.album-lightbox-info [data-set-album-cover]:disabled { background: #ffc629; border-color: #ffc629; color: #29241d; }
.album-lightbox-info [data-delete-standalone-photo] { background: #452d31; border-color: #ba6970; color: #fff; }
.album-cover-crop-dialog { width: min(720px,calc(100vw - 20px)); max-height: calc(100dvh - 20px); padding: 18px; border: 0; border-radius: 16px; overflow: auto; background: #fffdf7; color: #302a20; box-shadow: 0 18px 65px #15120e88; }
.album-cover-crop-dialog::backdrop { background: #171923c9; }
.album-crop-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.album-crop-head h2 { margin: 0; font-size: 21px; }
.album-crop-head button { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f3e9d0; font-size: 27px; cursor: pointer; }
.album-cover-crop-dialog > p { margin: 6px 0 12px; color: #70695d; font-size: 13px; }
.album-crop-stage { position: relative; width: fit-content; max-width: 100%; max-height: 58dvh; margin: auto; overflow: hidden; background: #242424; touch-action: none; }
.album-crop-stage img { display: block; width: 100%; height: 100%; object-fit: fill; user-select: none; -webkit-user-select: none; }
.album-crop-shade { display: none; }
.album-crop-box { position: absolute; box-sizing: border-box; border: 3px solid #ffc629; box-shadow: 0 0 0 1px #322507,0 0 0 999px #0004; cursor: grab; touch-action: none; }
.album-crop-box:active { cursor: grabbing; }
.album-crop-zoom { display: flex; align-items: center; gap: 14px; margin: 17px 0; font-size: 13px; font-weight: 700; }
.album-crop-zoom input { flex: 1; accent-color: #ffc629; }
.album-crop-actions { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width:650px) {
  #standalone-album-dialog.standalone-dialog { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; }
  #standalone-album-dialog .album-detail-hero { min-height: 112px; padding: 12px 42px 12px 12px; }
  #standalone-album-dialog .album-detail-cover { width: 72px; height: auto; border: 0; border-radius: 5px; box-shadow: none; }
  .album-cover-crop-dialog { padding: 14px; }
  .album-crop-stage,.album-crop-stage img { max-height: 50dvh; }
  #standalone-album-dialog .standalone-toolbar { gap: 5px; padding: 8px 8px 5px; flex-wrap: nowrap; }
  #standalone-album-dialog .standalone-toolbar .btn { min-height: 36px; padding: 7px 10px; font-size: 11px; }
  #standalone-album-dialog .standalone-toolbar span { display: none; }
  #standalone-album-dialog .album-timeline { padding: 0 0 16px; }
  #standalone-album-dialog .album-day { padding: 8px 0 13px; }
  #standalone-album-dialog .album-day > header { margin-bottom: 6px; }
  #standalone-album-dialog .album-selection-bar { padding-bottom: max(10px,env(safe-area-inset-bottom)); }
}
