/* TripWeave / Oanh — sổ tay du lịch theo hướng Wayfarer.
   Các màn, liên kết và trạng thái dùng chung giữ nguyên. */
:root {
  --deep: #21201c;
  --deep-soft: #63635e;
  --paper: #f9f7f1;
  --paper-2: #f0ebe0;
  --white: #fffefa;
  --line: #ded9cf;
  --line-strong: #c9c1b3;
  --sand: #ffe0ad;
  --sand-2: #dfaa70;
  --sand-btn: #cc4e00;
  --sand-btn-h: #a94103;
  --sand-soft: #ffefd6;
  --glass: #fffefa;
  --glass-strong: #fffefa;
  --glass-tray: #f4eddf;
  --ok: #315b48;
  --ok-bg: #e9f1e6;
  --warn: #805514;
  --warn-bg: #fff0d1;
  --err: #9b2c1c;
  --err-bg: #fde7e2;
  --info: #384e62;
  --info-bg: #edf1f3;
  --g: clamp(18px, 4vw, 64px);
  --max: 1320px;
  --r-frame: 0;
  --r-card: 5px;
  --r-in: 4px;
  --shadow-card: 0 9px 24px -20px rgba(61, 47, 30, .48);
  --shadow-float: 0 22px 56px -25px rgba(40, 30, 20, .4);
  --body: "Be Vietnam Pro", system-ui, sans-serif;
  --serif: "Bricolage Grotesque", system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--deep); }
:focus-visible { outline: 2px solid var(--sand-btn); outline-offset: 3px; }
::selection { background: var(--sand-soft); color: var(--deep); }
.bg { display: none; }
.frame { margin: 0; border-radius: 0; box-shadow: none; background: var(--paper); min-height: 100vh; overflow: visible; }
.inner { width: 100%; }
.brand { color: var(--deep); font-size: 25px; font-weight: 800; letter-spacing: -.08em; line-height: 1; }
.brand::after { content: "."; color: var(--sand-btn); }
.topbar { min-height: 84px; border-bottom: 1px solid var(--line); }
.topbar .top-end .btn { color: var(--deep); border: 0; background: none; border-bottom: 1px solid var(--deep); border-radius: 0; min-height: 38px; padding: 0 3px; }
.topbar .top-end .btn:hover { color: var(--sand-btn); border-bottom-color: var(--sand-btn); }
.me { border: 1px solid var(--line-strong); background: var(--paper-2); color: var(--deep); }
h1, h2, h3, h4 { color: var(--deep); }
h1 { font-weight: 700; letter-spacing: -.045em; }
h2 { font-size: clamp(25px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -.035em; }
h3 { font-size: 20px; line-height: 1.35; letter-spacing: -.018em; }
h4 { font-size: 16px; }
.eyebrow { color: var(--sand-btn); font-size: 12px; line-height: 20px; letter-spacing: .14em; font-weight: 700; }
.muted, .small.muted { color: var(--deep-soft); }
.page { padding-top: 38px; padding-bottom: 84px; }
.page > .inner { gap: 28px; }
.page-head { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.page-head p { margin-top: 8px; }

/* Paper header: the photo acts as a postcard rather than a full-page backdrop. */
.hero { background: #f4eee2; overflow: hidden; }
.hero::before, .hero .wave { display: none; }
.hero .photo { left: auto; right: var(--g); top: 106px; bottom: auto; width: clamp(175px, 21vw, 285px); height: 130px; min-width: 0; max-width: none; border: 7px solid #fffefa; object-fit: cover; object-position: center 53%; box-shadow: 0 10px 25px -17px #44392d; transform: rotate(2deg); }
.hero-trip { padding-bottom: 0; }
.trip-head { display: block; min-height: 185px; padding-top: 26px; padding-right: min(32vw, 360px); }
.trip-head .ttl { max-width: none; }
.trip-head h1 { font-family: var(--serif); font-size: clamp(31px, 3.6vw, 48px); line-height: 1.2; font-weight: 600; letter-spacing: -.04em; margin-top: 7px; }
.trip-facts { margin-top: 17px; }
.trip-facts .tag { border: 0; background: transparent; padding: 0 14px 0 0; backdrop-filter: none; font-size: 14px; color: var(--deep-soft); }
.route { gap: clamp(14px, 2.4vw, 32px); margin-top: 0; padding: 0; border: 0; border-radius: 0; background: transparent; backdrop-filter: none; }
.route a { min-height: 58px; padding: 0 2px; border-bottom: 3px solid transparent; border-radius: 0; color: var(--deep-soft); font-size: 14px; }
.route a:hover { background: none; color: var(--deep); }
.route a[aria-current] { background: none; color: var(--deep); border-bottom-color: var(--sand-btn); font-weight: 700; }
.subnav { padding-top: 0; background: #fffefa; }
.subnav .inner { border-bottom: 1px solid var(--line); padding-bottom: 0; }
.subnav .tab { min-height: 51px; }
.hero-app { padding-bottom: 38px; }
.hero-app .hero-title { max-width: min(760px, 65vw); padding-top: 38px; }
.hero-app h1 { font-size: clamp(39px, 4.7vw, 65px); line-height: 1.06; max-width: 14ch; }
.hero-app p { margin-top: 16px; max-width: 46ch; }
.foot { background: var(--paper); border-top: 1px solid var(--line); font-size: 12px; }

/* Controls — ink outlines, orange action, small paper labels. */
.btn { border-radius: 3px; min-height: 46px; padding: 0 18px; font-size: 15px; font-weight: 700; white-space: normal; text-align: center; transition: transform .16s, background-color .16s, border-color .16s, color .16s; }
.btn:hover:not([disabled]) { transform: translateY(-2px); }
.btn.sand { background: var(--sand-btn); border-color: var(--sand-btn); color: #fff; }
.btn.sand:hover { background: var(--sand-btn-h); border-color: var(--sand-btn-h); }
.btn.deep { background: var(--deep); border-color: var(--deep); }
.btn.deep:hover { background: #454138; border-color: #454138; }
.btn.line { border-color: var(--deep); background: transparent; }
.btn.line:hover { background: var(--sand-soft); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.white-line { border-color: var(--deep); color: var(--deep); }
.btn.white-line:hover { color: var(--sand-btn); border-color: var(--sand-btn); }
.btn[disabled], .btn[aria-disabled=true] { background: #e8e4dd; color: #6d6962; border-color: #e8e4dd; transform: none; }
.icon-btn { border-radius: 50%; border-width: 1px; }
.vote { border-radius: 3px; border-width: 1px; }
.vote[aria-pressed=true] { background: var(--sand-soft); border-color: var(--sand-btn); color: #582d1d; }
.vote[aria-pressed=true]:hover { background: #ffe2b9; border-color: var(--sand-btn); }
.input, .select, .textarea { background: #fffefa; border-width: 1px; border-radius: 3px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--sand-btn); box-shadow: 0 0 0 2px rgba(204, 78, 0, .12); }
.field > .lb { margin-bottom: 7px; }
.choice { border-width: 1px; border-radius: 3px; }
.choice input, .switch input { accent-color: var(--sand-btn); }
.choice:has(input:checked) { border-color: var(--sand-btn); background: var(--sand-soft); }
.chip { border-width: 1px; border-radius: 2px; }
.chip[aria-pressed=true] { background: var(--sand-soft); border-color: var(--sand-btn); color: #582d1d; }
.tag { border-radius: 2px; padding: 4px 8px; font-size: 13px; letter-spacing: .02em; }
.tag.sand { color: #582d1d; }
.notice { border-radius: 3px; border-left: 3px solid currentColor; }
.check { padding-left: 12px; border-left: 3px solid var(--line-strong); }
.check.ok { border-left-color: var(--ok); }
.check.warn { border-left-color: var(--warn); }
.check.block { border-left-color: var(--err); }
.card, .plan, .tl-item, .ledger { border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.card.flat { border: 1px solid var(--line); }
.glass { border: 1px solid var(--line); border-radius: 4px; backdrop-filter: none; }
.tabs { gap: clamp(12px, 2vw, 28px); }
.tab { border-radius: 0; padding: 0 2px; border-bottom: 2px solid transparent; color: var(--deep-soft); font-size: 14px; }
.tab:hover { background: transparent; color: var(--deep); }
.tab[aria-current], .tab[aria-pressed=true] { background: transparent; border-bottom-color: var(--sand-btn); color: var(--deep); }
.step { border-width: 1px; border-radius: 3px; }
.step i { border-radius: 50%; background: var(--paper-2); }
.step[aria-current] { border-color: var(--sand-btn); }
.step[aria-current] i { background: var(--sand-btn); }
.table th { text-transform: uppercase; letter-spacing: .07em; }
.table td { border-bottom-color: var(--line); }
.ledger { overflow: hidden; }
.ledger > div { padding: 18px 20px; }
.ledger dt, .ledger .k { text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.ledger dd, .ledger .v { font-size: 18px; }
.empty { border-radius: 3px; background: #fffefa; }
dialog.modal { border-radius: 4px; }
dialog.modal::backdrop { background: rgba(28, 28, 26, .62); backdrop-filter: none; }
.toast { border-radius: 3px; }
.pop { border: 1px solid var(--line); border-radius: 3px; }
.pop a, .pop button { border-radius: 2px; }
.progress { border-radius: 0; background: var(--paper-2); }
.progress > i { border-radius: 0; background: var(--sand-btn); }

/* Editorial travel cards, strips and journal timeline. */
.trip-card { padding: 10px 10px 18px; border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 10px 28px -22px #493b2c; background: #fffefa; transform: rotate(-.35deg); }
.trip-card:nth-child(even) { transform: rotate(.45deg); }
.trip-card:hover, .trip-card:nth-child(even):hover { transform: translateY(-4px) rotate(0); }
.trip-card .thumb { height: 225px; border-radius: 1px; }
.trip-card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 63%, rgba(30, 25, 20, .3)); pointer-events: none; }
.trip-card .thumb .tag { z-index: 1; left: 10px; right: auto; top: 10px; }
.trip-card .body { padding: 18px 8px 0; gap: 8px; }
.trip-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.trip-card .body .row { margin-top: 14px; border-top: 1px dashed var(--line-strong); padding-top: 13px; }
.todo { border-radius: 3px; background: #fffefa; gap: 15px; }
a.todo:hover { background: #fff7ed; border-color: var(--sand-btn); }
.todo > i { display: none; }
.todo > .icon { color: var(--sand-btn); }
.panel { border-radius: 3px; background: #fffefa; border: 1px solid var(--line); box-shadow: var(--shadow-card); backdrop-filter: none; }
.panel .thumb { border-radius: 1px; }
.panel .cap h3 { font-size: 21px; }
.panel .tag { background: #fffefa; }
.result { border: 1px solid var(--line); border-radius: 3px; box-shadow: var(--shadow-card); }
.result .pic { border-radius: 1px; }
.plans { gap: 16px; }
.plan { border-width: 1px; }
.plan.sel { border-color: var(--sand-btn); box-shadow: 0 0 0 1px var(--sand-btn); }
.board { gap: 12px; }
.day-col { border-radius: 3px; border: 1px solid var(--line); background: #f1ebdf; }
.act { border-radius: 2px; box-shadow: none; border: 1px solid var(--line); border-left: 3px solid var(--sand-2); }
.act.must { border-left-color: var(--sand-btn); }
.tl { padding-left: 30px; gap: 10px; }
.tl::before { width: 1px; left: 10px; border-radius: 0; background: var(--line-strong); }
.tl-item { border-radius: 2px; }
.tl-item::before { width: 12px; height: 12px; left: -26px; top: 21px; border: 3px solid var(--sand-btn); }
.day-block .day-h b { font-size: 24px; }
.diff > div { border-radius: 2px; }
.diff .new { border-left: 2px solid var(--sand-btn); }
.wrap-card { border-radius: 3px; }
.wrap-card.lake::before { background-image: linear-gradient(180deg, rgba(28, 32, 27, .15), rgba(25, 31, 26, .79)), url(../img/dalat-pines.jpg); }
.segbar { border: 1px solid var(--line); border-radius: 3px; box-shadow: var(--shadow-card); }
.seg, .seg:first-child, .seg:last-child { border-radius: 0; }
.lakebox { border-radius: 3px; }
.lakebox::before { background: linear-gradient(120deg, #e9cda3, #d8b587); }
.tray { border-radius: 3px; background: #eee4d3; backdrop-filter: none; }

/* Visible pictograms are reserved for directional and icon-only actions. */
svg.icon { display: none; }
.icon-btn .icon, .stars .icon,
svg.icon[data-icon="plus"], svg.icon[data-icon="left"], svg.icon[data-icon="right"],
svg.icon[data-icon="up"], svg.icon[data-icon="down"], svg.icon[data-icon="x"] { display: inline-block; }
.step.done i .icon { display: none; }
.step.done i::after { content: "✓"; }
.woven:has(.icon)::after { content: "Chưa có ảnh"; font-size: 13px; color: var(--deep-soft); }
.btn .icon[data-icon="plus"], .btn .icon[data-icon="right"], .btn .icon[data-icon="left"] { width: 18px; height: 18px; }

/* Entry and sign-in pages retain their links and forms. */
.landing { min-height: 800px; padding-bottom: 0; background: var(--paper); }
.landing .wave { display: none; }
.landing .photo { left: auto; right: 0; top: 0; bottom: auto; width: 50%; height: calc(100% - 188px); min-width: 0; max-width: none; object-position: center; }
.landing::before { inset: 84px 50% 188px auto; width: 100px; height: auto; background: linear-gradient(90deg, var(--paper), transparent); }
.landing-copy { margin: auto 0; padding: 70px 0 82px; max-width: min(500px, 46%); position: relative; z-index: 1; }
.landing-copy h1 { font-weight: 800; font-size: clamp(52px, 6vw, 88px); line-height: 1.04; letter-spacing: -.07em; margin-top: 20px; }
.landing-copy p { color: #49453e; max-width: 40ch; margin-top: 24px; }
.landing-postcard { position: absolute; z-index: 2; right: 1%; bottom: 222px; width: clamp(170px, 20vw, 275px); padding: 8px 8px 13px; background: #fffefa; box-shadow: 0 15px 30px -20px #27241e; transform: rotate(-5deg); }
.landing-postcard::before { content: ""; position: absolute; width: 80px; height: 22px; top: -13px; left: calc(50% - 40px); background: rgba(248, 222, 174, .78); transform: rotate(2deg); }
.landing-postcard img { width: 100%; height: clamp(115px, 12vw, 170px); object-fit: cover; }
.landing-postcard figcaption { margin-top: 10px; color: var(--deep-soft); font-size: 12px; text-align: center; }
.landing-tray { margin-inline: calc(-1 * var(--g)); padding: 28px var(--g) 30px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: #eee6d7; backdrop-filter: none; }
.landing-steps { gap: 0; counter-reset: journal-step; }
.landing-steps li { position: relative; border-radius: 0; border-left: 1px solid #c8baa4; background: transparent; padding: 16px 20px 16px 28px; color: #554f45; counter-increment: journal-step; }
.landing-steps li:first-child { border-left: 0; padding-left: 0; }
.landing-steps li::before { content: "0" counter(journal-step); display: block; color: var(--sand-btn); font-size: 13px; letter-spacing: .12em; font-weight: 700; margin-bottom: 8px; }
.landing-steps b { display: block; font-size: 18px; }
.auth { min-height: 760px; background: var(--paper); }
.auth .wave { display: none; }
.auth .photo { left: auto; right: 0; top: 0; bottom: auto; width: 50%; height: 100%; min-width: 0; max-width: none; object-position: center; }
.auth-art { padding-right: 40px; }
.auth-art .brand { min-height: 64px; }
.auth-art h1 { font-size: clamp(48px, 5vw, 72px); line-height: 1.06; font-weight: 800; }
.auth-art p { max-width: 35ch; color: var(--deep-soft); }
.auth-card { border: 1px solid var(--line); border-radius: 3px; background: #fffefa; box-shadow: 0 25px 55px -38px #2e251c; padding: clamp(20px, 3vw, 38px); }
.auth-card h2 { font-size: 30px; }

.dock-btn { border-radius: 3px; background: var(--deep); }
.dock-panel { border: 1px solid var(--line); border-radius: 3px; }
.dock-roles button { border-width: 1px; border-radius: 2px; }
.dock-roles button[aria-pressed=true] { border-color: var(--sand-btn); background: var(--sand-soft); }

@media (max-width: 1000px) {
  .landing .photo { width: 48%; }
  .landing-copy { max-width: 49%; }
  .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .auth-art { padding-right: 0; }
  .auth .photo { width: 52%; }
  .trip-head { padding-right: 230px; }
}
@media (max-width: 720px) {
  .topbar { min-height: 70px; }
  .brand { font-size: 22px; }
  .hero .photo { display: none; }
  .trip-head { min-height: 0; padding: 24px 0 22px; }
  .trip-head h1 { font-size: clamp(30px, 8vw, 39px); }
  .trip-facts { gap: 8px 12px; }
  .route { gap: 22px; }
  .route a { min-height: 48px; }
  .hero-app .hero-title { max-width: 100%; padding-top: 25px; }
  .hero-app h1 { font-size: clamp(36px, 9vw, 54px); }
  .page { padding-top: 28px; }
  .landing { min-height: 0; }
  .landing .photo { position: relative; width: calc(100% + 2 * var(--g)); height: 300px; right: auto; margin-inline: calc(-1 * var(--g)); order: 1; }
  .landing::before { display: none; }
  .landing .inner { display: contents !important; }
  .landing .topbar { order: 0; width: 100%; }
  .landing-copy { order: 2; max-width: none; padding: 40px 0 54px; margin: 0; }
  .landing-postcard { order: 3; position: relative; right: auto; bottom: auto; width: min(240px, 72%); margin: -28px 4px 38px auto; }
  .landing-copy h1 { font-size: clamp(48px, 11vw, 68px); }
  .landing-tray { order: 4; }
  .auth { display: block; min-height: 0; padding-block: 16px 48px; }
  .auth .photo { display: none; }
  .auth-art .copy { padding: 30px 0 25px; }
  .auth-art h1 { font-size: 44px; }
  .auth-card { padding: 23px; }
  .landing-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-steps li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .foot { padding-bottom: 70px; }
}
@media (max-width: 520px) {
  .landing .photo { height: 240px; }
  .landing-copy .row { align-items: stretch; }
  .landing-copy .row .btn { width: 100%; }
  .landing-steps { grid-template-columns: minmax(0, 1fr); }
  .landing-steps li { border-left: 0; border-top: 1px solid #c8baa4; padding: 15px 0; }
  .landing-steps li:first-child { border-top: 0; }
  .trip-card { transform: none; }
  .trip-card:nth-child(even) { transform: none; }
  .trip-card .thumb { height: 190px; }
  .page-head .row { width: 100%; }
  .page-head .row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .trip-card:hover, .trip-card:nth-child(even):hover { transform: none; }
}

/* Wayfarer-inspired field notes: one shared visual system for every page. */
@font-face { font-family: "Bricolage Grotesque"; src: url(../fonts/bricolagegrotesque.ttf) format("truetype"); font-style: normal; font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(../fonts/instrumentsans.ttf) format("truetype"); font-style: normal; font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url(../fonts/BeVietnamPro-Regular.ttf) format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url(../fonts/BeVietnamPro-Medium.ttf) format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url(../fonts/BeVietnamPro-SemiBold.ttf) format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url(../fonts/BeVietnamPro-Bold.ttf) format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(../fonts/ibmplexmono.ttf) format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
:root {
  --deep: #1b1f1d;
  --deep-soft: #525a55;
  --paper: #f1ece2;
  --paper-2: #e3d7c1;
  --white: #fffdfa;
  --line: #cfc4af;
  --line-strong: #b8ab94;
  --sand: #e3d7c1;
  --sand-2: #d2602e;
  --sand-btn: #244a40;
  --sand-btn-h: #173b32;
  --sand-soft: #e8ddca;
  --glass: #fffdfa;
  --glass-strong: #fffdfa;
  --glass-tray: #e3d7c1;
  --pine: #244a40;
  --terracotta: #d2602e;
  --sage: #b5c8ab;
  --rose: #d6a5ac;
  --lavender: #bfb2d2;
  --butter: #e8d5a4;
  --display: "Bricolage Grotesque", "Be Vietnam Pro", system-ui, sans-serif;
  --body: "Be Vietnam Pro", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --shadow-card: 2px 6px 16px rgba(39, 34, 27, .13);
  --shadow-float: 0 25px 55px rgba(27, 31, 29, .22);
  --r-card: 2px;
  --r-in: 2px;
}
html { scroll-padding-top: 24px; }
body { font-family: var(--body); background: var(--paper); color: var(--deep); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .028; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.83' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E"); }
h1, h2, h3, h4, .brand { font-family: var(--display); }
h1, h2, h3, h4 { font-weight: 700; color: var(--deep); }
h1 { line-height: 1.12; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.16; letter-spacing: -.035em; }
h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; letter-spacing: -.025em; }
h4 { font-size: 17px; }
.eyebrow, .edition-note, .landing-small, .photo-index,
.ticket-first small, .landing-ticket small, .trip-tag .tag,
.xs, .num, .ledger dt, .ledger .k, .tag,
.foot, .table th, .day-block .day-h .xs { font-family: var(--mono); letter-spacing: .065em; }
.eyebrow { font-size: 13px; line-height: 1.65; color: var(--terracotta); letter-spacing: .12em; }
.xs { font-size: 13px; line-height: 1.6; }
.small { font-size: 14px; line-height: 1.6; }
.brand { font-size: 30px; font-weight: 800; letter-spacing: -.075em; color: var(--pine); }
.brand::after { color: var(--terracotta); }
.inner { max-width: 1280px; }
.topbar { min-height: 90px; border-bottom: 1px solid var(--line); gap: 30px; }
.edition-note { margin-left: auto; font-size: 13px; line-height: 1.5; color: var(--deep-soft); white-space: nowrap; }
.top-end { margin-left: 0; }
.topbar .top-end .btn { font-family: var(--body); font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--line-strong); }
.me { background: var(--sage); border: 2px solid var(--paper); font-family: var(--display); }
.foot { background: var(--paper); color: var(--deep-soft); }
.foot .inner { border-color: var(--line); }
.foot a { text-decoration: underline; text-underline-offset: 3px; }

/* Shared editorial headers: the compact screens still have clear task content. */
.hero { background: var(--paper); }
.hero .photo, .hero .wave { display: none; }
.hero-app { padding-bottom: 0; }
.app-editorial { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 48px; align-items: center; min-height: 300px; padding: 36px 0 42px; }
.hero-app .hero-title { max-width: none; padding: 0; }
.hero-app h1 { max-width: 14ch; font-size: clamp(51px, 5.5vw, 78px); line-height: 1.14; letter-spacing: -.03em; color: var(--pine); margin-top: 13px; overflow-wrap: break-word; }
.hero-app p { max-width: 48ch; font-size: 18px; line-height: 1.55; margin-top: 16px; }
.hero-squiggle { display: block; width: 112px; height: 10px; margin-top: 19px; border-top: 3px dotted var(--terracotta); border-radius: 50%; transform: rotate(-3deg); }
.app-polaroid, .trip-polaroid { position: relative; padding: 10px 10px 0; background: var(--white); box-shadow: var(--shadow-card); transform: rotate(4deg); }
.app-polaroid::before, .trip-polaroid::before { content: ""; position: absolute; z-index: 2; top: -14px; left: calc(50% - 52px); width: 104px; height: 26px; background: rgba(227, 215, 193, .88); transform: rotate(-5deg); clip-path: polygon(0 5%,9% 0,18% 7%,28% 0,39% 6%,50% 0,62% 8%,73% 0,82% 5%,100% 0,100% 95%,90% 100%,81% 93%,70% 100%,60% 94%,50% 100%,39% 94%,27% 100%,17% 94%,8% 100%,0 94%); }
.app-polaroid img, .trip-polaroid img { width: 100%; height: 184px; object-fit: cover; filter: saturate(.85); }
.app-polaroid figcaption, .trip-polaroid figcaption { padding: 11px 4px 14px; font: 13px/1.5 var(--mono); letter-spacing: .05em; color: var(--deep-soft); }
.app-stamp, .landing-stamp { border: 2px solid var(--terracotta); outline: 1px solid var(--terracotta); outline-offset: -7px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--terracotta); background: rgba(241, 236, 226, .94); width: 104px; height: 104px; text-align: center; transform: rotate(-13deg); }
.app-stamp { position: absolute; right: 260px; bottom: 15px; }
.app-stamp span, .landing-stamp span { font: 8px/1.3 var(--mono); letter-spacing: .08em; }
.app-stamp strong, .landing-stamp strong { font: 700 24px/1 var(--display); }
.hero-trip { padding-bottom: 0; }
.trip-editorial { display: grid; grid-template-columns: minmax(0, 1fr) 210px 240px; gap: 28px; align-items: center; padding: 38px 0 50px; min-height: 290px; }
.trip-intro h1 { font-family: var(--display); font-size: clamp(40px, 4.9vw, 70px); line-height: 1.14; letter-spacing: -.03em; color: var(--pine); margin: 12px 0 15px; overflow-wrap: break-word; }
.trip-intro p { color: var(--deep-soft); font-size: 17px; }
.trip-tag { position: relative; align-self: stretch; min-height: 218px; padding: 40px 20px 20px; background: var(--sand); clip-path: polygon(12% 0,88% 0,100% 12%,100% 100%,0 100%,0 12%); box-shadow: var(--shadow-card); transform: rotate(-3deg); }
.trip-tag::before { content: ""; position: absolute; left: 50%; top: 0; height: 26px; width: 1px; background: var(--terracotta); }
.trip-tag .tag-hole { position: absolute; top: 20px; left: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--paper); }
.trip-tag .eyebrow { color: var(--deep-soft); font-size: 13px; }
.trip-tag strong { display: block; font: 700 27px/1.2 var(--display); margin-top: 7px; color: var(--pine); }
.trip-facts { display: grid; gap: 7px; margin-top: 14px; border-top: 1px dashed var(--line-strong); padding-top: 11px; }
.trip-facts .tag { background: none; border: 0; font-size: 13px; line-height: 1.45; padding: 0; white-space: normal; color: var(--deep-soft); }
.trip-polaroid { transform: rotate(5deg); }
.trip-polaroid img { height: 184px; }
.route { gap: clamp(14px, 2.4vw, 36px); border-top: 1px solid var(--line); }
.route a { font-size: 14px; min-height: 61px; font-weight: 500; color: var(--deep); }
.route a[aria-current] { color: var(--pine); border-bottom-color: var(--terracotta); }
.subnav { background: #eae1d0; }
.subnav .inner { border: 0; }
.tabs { gap: 8px; }
.tab { min-height: 40px; border-radius: 2px; border: 1px solid transparent; padding: 0 13px; font-size: 14px; color: var(--deep); }
.tab:hover { background: rgba(36, 74, 64, .07); }
.tab[aria-current], .tab[aria-pressed=true] { background: var(--pine); border-color: var(--pine); color: var(--white); }
.subnav .tabs { padding: 10px 0; }
.subnav .tab { min-height: 36px; }

/* Home: editorial cover, Polaroid collage, paper ticket and featured places. */
.landing { min-height: 0; padding: 0 var(--g) 84px; display: block; overflow: visible; background: var(--paper); }
.landing::before { display: none; }
.landing > .inner { max-width: 1280px; display: block; }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); align-items: center; gap: clamp(30px, 5vw, 80px); min-height: 600px; padding: 42px 0 44px; }
.landing-copy { max-width: none; margin: 0; padding: 0; }
.landing-copy .eyebrow { max-width: none; white-space: nowrap; }
.landing-copy h1 { font-family: var(--display); color: var(--pine); font-size: clamp(64px, 6.9vw, 100px); line-height: 1.13; font-weight: 800; letter-spacing: -.04em; margin-top: 26px; }
.underlined { position: relative; z-index: 0; white-space: nowrap; }
.underlined::after { content: ""; position: absolute; left: 3%; right: -1%; bottom: -9px; height: 12px; border-top: 3px solid var(--terracotta); border-radius: 50%; transform: rotate(-2deg); z-index: -1; }
.landing-copy p { max-width: none; font-size: 19px; line-height: 1.58; color: var(--deep-soft); margin-top: 26px; }
.landing-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 29px; }
.landing-actions .btn { min-height: 51px; }
.landing-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--deep); padding: 7px 0 9px; text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.landing-link:hover { color: var(--terracotta); border-color: var(--terracotta); }
.landing-link span { font-size: 25px; line-height: .8; }
.landing-small { margin-top: 37px; font-size: 13px; line-height: 1.6; color: var(--deep-soft); text-transform: uppercase; }
.landing-collage { position: relative; min-width: 0; height: 470px; }
.landing-main-photo, .landing-side-photo { position: absolute; padding: 12px 12px 0; background: var(--white); box-shadow: 2px 6px 13px rgba(39,34,27,.2); transition: transform .25s; }
.landing-main-photo { width: 77%; left: 7%; top: 33px; transform: rotate(-6deg); }
.landing-main-photo:hover { transform: rotate(-4deg) translateY(-5px); }
.landing-side-photo { z-index: 3; width: 46%; right: 0; bottom: 4px; transform: rotate(8deg); }
.landing-side-photo:hover { transform: rotate(5deg) translateY(-5px); }
.landing-main-photo img { height: 300px; width: 100%; object-fit: cover; filter: saturate(.84); }
.landing-side-photo img { height: 170px; width: 100%; object-fit: cover; filter: saturate(.84); }
.landing-main-photo figcaption, .landing-side-photo figcaption { padding: 13px 3px 17px; font: 13px/1.5 var(--mono); letter-spacing: .05em; }
.landing-side-photo figcaption { font-size: 13px; padding: 10px 3px 13px; }
.tape { position: absolute; z-index: 4; top: -15px; left: calc(50% - 53px); width: 106px; height: 30px; background: rgba(227, 215, 193, .85); transform: rotate(-5deg); clip-path: polygon(0 5%,9% 0,18% 7%,28% 0,39% 6%,50% 0,62% 8%,73% 0,82% 5%,100% 0,100% 95%,90% 100%,81% 93%,70% 100%,60% 94%,50% 100%,39% 94%,27% 100%,17% 94%,8% 100%,0 94%); }
.landing-side-photo .tape { width: 78px; left: calc(50% - 39px); height: 24px; top: -12px; }
.landing-stamp { position: absolute; right: 1%; top: 1px; z-index: 5; width: 115px; height: 115px; }
.landing-stamp strong { font-size: 22px; }
.landing-doodle { position: absolute; left: 0; bottom: 20px; color: var(--pine); font: 600 18px/1.3 var(--display); transform: rotate(-9deg); }
.landing-ticket { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); position: relative; background: var(--sand); border: 1px solid var(--line); min-height: 128px; margin-top: 4px; box-shadow: 0 5px 0 rgba(227,215,193,.5); }
.landing-ticket > div { padding: 25px 27px; display: flex; flex-direction: column; justify-content: center; position: relative; min-width: 0; }
.landing-ticket > div + div { border-left: 1px dashed var(--line-strong); }
.landing-ticket small { font-size: 13px; color: var(--deep-soft); line-height: 1.5; }
.landing-ticket strong { font-family: var(--display); font-size: 21px; line-height: 1.25; margin-top: 7px; color: var(--pine); }
.ticket-first { padding-left: 48px !important; }
.ticket-hole { position: absolute; left: 21px; top: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--paper); }
.featured { padding: 100px 0 70px; }
.featured-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 34px; margin-bottom: 40px; }
.featured-head h2 { font-size: clamp(40px, 4vw, 60px); line-height: 1.12; letter-spacing: -.045em; color: var(--pine); margin-top: 13px; }
.featured-head p { max-width: 60ch; color: var(--deep-soft); font-size: 17px; line-height: 1.55; margin-top: 21px; }
.featured-head .landing-link { align-self: flex-start; margin-top: 46px; }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; align-items: start; }
.featured-card { position: relative; min-width: 0; padding: 12px 12px 0; background: var(--white); box-shadow: 2px 5px 13px rgba(39,34,27,.13); transform: rotate(-1deg); transition: transform .25s, box-shadow .25s; }
.featured-card:nth-child(2) { transform: rotate(.8deg); margin-top: 8px; }
.featured-card:nth-child(3) { transform: rotate(-.6deg); }
.featured-card:hover, .featured-card:nth-child(2):hover, .featured-card:nth-child(3):hover { transform: rotate(0) translateY(-5px); box-shadow: 3px 10px 20px rgba(39,34,27,.16); }
.featured-photo { position: relative; }
.featured-photo img { width: 100%; height: 230px; object-fit: cover; filter: saturate(.86); }
.featured-card:nth-child(2) .featured-photo img { object-position: 50% 76%; }
.featured-card:nth-child(3) .featured-photo img { object-position: 50% 55%; }
.featured-photo .tape { top: -21px; height: 25px; width: 92px; left: calc(50% - 46px); }
.photo-index { position: absolute; left: 13px; bottom: 13px; padding: 5px 9px; background: var(--paper); color: var(--deep); font-size: 13px; }
.featured-body { padding: 24px 13px 18px; }
.featured-body .eyebrow { font-size: 13px; color: var(--deep-soft); }
.featured-card.tone-sage .featured-body .eyebrow { color: #466a53; }
.featured-card.tone-butter .featured-body .eyebrow { color: #8a6226; }
.featured-card.tone-rose .featured-body .eyebrow { color: #955663; }
.featured-body h3 { margin-top: 10px; color: var(--pine); font-size: clamp(24px, 2.2vw, 32px); }
.featured-body > p { color: var(--deep-soft); font-size: 16px; line-height: 1.62; min-height: 104px; margin-top: 15px; }
.featured-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; border-top: 1px dashed var(--line); padding-top: 16px; margin-top: 15px; }
.featured-foot small { max-width: 30ch; color: var(--deep-soft); font-size: 11px; line-height: 1.5; }
.featured-foot a { display: inline-flex; gap: 8px; align-items: center; flex: none; text-decoration: none; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.5; padding-bottom: 3px; }
.featured-foot a:hover { color: var(--terracotta); border-color: var(--terracotta); }
.featured-foot a span { font-size: 18px; }
.featured-disclaimer { margin-top: 29px; color: var(--deep-soft); font-size: 12px; line-height: 1.6; }
.landing-journal { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 60px; border-top: 1px solid var(--line); padding: 65px 0 0; }
.journal-title h2 { font-size: 35px; line-height: 1.15; color: var(--pine); margin-top: 17px; }
.landing-steps { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 26px; counter-reset: journal-step; }
.landing-steps li { border: 0; border-top: 1px solid var(--line); padding: 18px 0 22px; background: none; border-radius: 0; color: var(--deep-soft); font-size: 15px; line-height: 1.6; }
.landing-steps li:first-child { border-top: 1px solid var(--line); padding-left: 0; }
.landing-steps li::before { margin-bottom: 5px; font: 13px/1.5 var(--mono); color: var(--terracotta); }
.landing-steps b { display: block; color: var(--deep); font: 700 22px/1.25 var(--display); margin-bottom: 7px; }
.landing-steps span { display: block; }

/* Reused controls and task screens. */
.page { padding-top: 46px; padding-bottom: 95px; }
.page > .inner { gap: 32px; }
.page-head { padding: 0 0 28px; border-bottom: 1px solid var(--line); align-items: flex-end; }
.page-head h2 { max-width: 25ch; color: var(--pine); }
.page-head p { max-width: 72ch; margin-top: 10px; color: var(--deep-soft); font-size: 16px; line-height: 1.6; }
.btn { min-height: 48px; padding: 10px 20px; border-radius: 2px; border-width: 1px; font-family: var(--body); font-size: 14px; font-weight: 600; line-height: 1.4; gap: 13px; }
.btn.sand, .btn.deep { background: var(--pine); border-color: var(--pine); color: var(--white); }
.btn.sand:hover, .btn.deep:hover { background: var(--sand-btn-h); border-color: var(--sand-btn-h); color: var(--white); }
.btn.line { background: transparent; border-color: var(--line-strong); color: var(--deep); }
.btn.line:hover { background: var(--sand); border-color: var(--pine); }
.btn.ghost { color: var(--pine); }
.btn.ghost:hover { background: var(--sand); }
.btn.danger { background: var(--err); border-color: var(--err); color: white; }
.btn.sm { min-height: 38px; padding: 7px 12px; font-size: 13px; }
.btn[disabled], .btn[aria-disabled=true] { color: #6c716a; background: #e3e1da; border-color: #e3e1da; }
.btn:hover:not([disabled]) { box-shadow: 3px 4px 0 rgba(207,196,175,.75); }
.input, .select, .textarea { border-color: var(--line-strong); background: var(--white); border-radius: 2px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--pine); box-shadow: 0 0 0 2px rgba(36,74,64,.14); }
.input::placeholder, .textarea::placeholder { color: #626a64; }
.field > .lb { font-size: 13px; line-height: 1.5; letter-spacing: .01em; }
.hint, .errmsg { font-size: 12px; line-height: 1.6; }
.choice, .chip { border-radius: 2px; border-color: var(--line); background: var(--white); }
.choice:has(input:checked) { border-color: var(--pine); background: #e5eddf; }
.choice input, .switch input { accent-color: var(--pine); }
.chip[aria-pressed=true] { background: var(--pine); border-color: var(--pine); color: white; }
.vote { min-height: 39px; border-color: var(--line-strong); border-radius: 2px; background: var(--white); font-size: 12px; }
.vote:hover { background: var(--sand); }
.vote[aria-pressed=true], .vote[aria-pressed=true]:hover { background: var(--sage); border-color: var(--pine); color: var(--deep); }
.tag { border-radius: 1px; font-size: 13px; line-height: 1.5; font-weight: 400; padding: 4px 8px; background: var(--sand); }
.tag.sand { background: var(--butter); color: #483823; }
.tag.ok { background: var(--sage); color: #183c31; }
.tag.info { background: var(--lavender); color: #342843; }
.tag.warn { background: var(--butter); color: #674817; }
.tag.err { background: #edd0c9; color: #752e20; }
.notice { background: #e7e1d4; color: var(--deep); border-left-color: var(--pine); border-radius: 0; font-size: 14px; }
.notice.ok { background: #e5eee2; color: #234638; border-left-color: var(--pine); }
.notice.warn { background: #f3e8ca; color: #674817; border-left-color: #a16a22; }
.notice.err { background: #f2ded8; color: #752e20; border-left-color: #9b2c1c; }
.card, .plan, .tl-item, .ledger, .result, .segbar { background: var(--white); border: 1px solid var(--line); border-radius: 2px; box-shadow: var(--shadow-card); }
.card { padding: 25px; }
.card.flat { box-shadow: none; }
.split > aside.card { position: relative; background: #e6eadf; transform: rotate(1deg); }
.split > aside.card::before { content: ""; position: absolute; top: -13px; left: calc(50% - 50px); width: 100px; height: 24px; background: rgba(227,215,193,.82); transform: rotate(-4deg); }
.card-head { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.card-head h3, .card > h3 { color: var(--pine); }
.glass { background: var(--white); border-color: var(--line); border-radius: 2px; }
.ledger { background: var(--sand); grid-template-columns: repeat(4,minmax(0,1fr)); box-shadow: 0 5px 0 rgba(227,215,193,.5); }
.ledger > div { border-left: 1px dashed var(--line-strong); padding: 22px 24px; }
.ledger dt, .ledger .k { font-size: 13px; line-height: 1.6; color: var(--deep-soft); }
.ledger dd, .ledger .v { font: 600 22px/1.3 var(--display); color: var(--pine); margin-top: 7px; }
.todo { position: relative; border-radius: 0; border: 0; border-top: 1px solid var(--line); padding: 18px 5px; background: transparent; }
.todo:last-child { border-bottom: 1px solid var(--line); }
a.todo:hover { background: #e8ddca; border-color: var(--line); padding-left: 13px; }
.todo b { font-family: var(--display); font-size: 20px; line-height: 1.3; color: var(--pine); }
.todo .small { font-size: 13px; }
.todo > .icon { color: var(--terracotta); }
.empty { border: 1px dashed var(--line-strong); background: var(--white); border-radius: 2px; }
.empty h3 { color: var(--pine); }
.step { border-color: var(--line); border-radius: 2px; background: var(--white); }
.step[aria-current] { border-color: var(--pine); }
.step[aria-current] i { background: var(--pine); }
.step.done i { background: var(--sage); color: var(--pine); }
.table th { font-size: 13px; line-height: 1.5; color: var(--deep-soft); }
.table td { font-size: 14px; line-height: 1.6; }
.kv dt { color: var(--deep-soft); }
.kv dd { overflow-wrap: anywhere; }
.pop { background: var(--white); border-color: var(--line); }
.pop a:hover, .pop button:hover { background: var(--sand); }
dialog.modal { border: 1px solid var(--line); border-radius: 2px; background: var(--paper); }
.modal-body h2 { color: var(--pine); }
.toast, .dock-btn { background: var(--pine); color: white; border-radius: 2px; }
.dock-panel { background: var(--paper); border-radius: 2px; }
.dock-roles button { background: var(--white); }
.dock-roles button[aria-pressed=true] { background: var(--sage); border-color: var(--pine); }
.progress > i { background: var(--terracotta); }

/* Places, travel board and itinerary. */
.trip-card { position: relative; padding: 39px 22px 22px; background: var(--sand); border: 1px solid var(--line); clip-path: polygon(10% 0,90% 0,100% 9%,100% 100%,0 100%,0 9%); box-shadow: none; transform: rotate(-1deg); }
.trip-card:nth-child(even) { transform: rotate(1deg); }
.trip-card::before { content: ""; position: absolute; top: 17px; left: calc(50% - 6px); width: 12px; height: 12px; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--paper); }
.trip-card::after { content: ""; position: absolute; top: 0; left: calc(50% - 1px); width: 2px; height: 18px; background: var(--terracotta); }
.trip-card-top { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line-strong); margin-bottom: 17px; padding-bottom: 12px; font: 13px/1.5 var(--mono); letter-spacing: .11em; text-transform: uppercase; color: var(--deep-soft); }
.trip-card .thumb { height: 205px; border-radius: 1px; border: 8px solid var(--white); background: var(--white); }
.trip-card .thumb img { inset: 0; }
.trip-card .thumb .tag { left: 7px; top: 7px; }
.trip-card .body { padding: 17px 4px 0; }
.trip-card .body h3 { font-family: var(--display); font-size: 28px; color: var(--pine); }
.trip-card .body .small { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }
.trip-card .body .xs { font-size: 13px; }
.trip-card .body .row { border-top: 1px dashed var(--line-strong); padding-top: 15px; }
.trip-card-arrow { display: grid; place-items: center; width: 33px; height: 33px; margin-left: auto; border: 1px solid var(--pine); border-radius: 50%; font-size: 20px; line-height: 1; color: var(--pine); }
.trip-card .dots .dot { border-color: var(--sand); }
.dot { box-shadow: none; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 2px; padding: 11px 11px 17px; backdrop-filter: none; box-shadow: var(--shadow-card); }
.panel::before { content: ""; position: absolute; z-index: 4; top: -4px; left: calc(50% - 38px); width: 76px; height: 18px; background: rgba(227,215,193,.91); transform: rotate(-4deg); pointer-events: none; }
.panel .thumb { border-radius: 0; }
.panel .cap h3 { font: 700 21px/1.2 var(--display); color: var(--pine); }
.panel .cap p { font-size: 12px; }
.panel .tag { right: 7px; top: 7px; }
.lakebox { background: #e9dfcd; border-radius: 2px; border: 1px solid var(--line); }
.lakebox::before, .lakebox > .photo { display: none; }
.tray { background: rgba(241,236,226,.82); border: 1px solid var(--line); border-radius: 2px; backdrop-filter: none; }
.knot-label { background: var(--paper); border-color: var(--line); border-radius: 2px; backdrop-filter: none; }
.result { padding: 12px; }
.result .pic { border-radius: 0; }
.result .body h3 { color: var(--pine); }
.plan { border-top: 4px solid var(--pine); padding: 24px; }
.plan:nth-child(2) { border-top-color: var(--terracotta); }
.plan:nth-child(3) { border-top-color: var(--sage); }
.plan.sel { border-color: var(--pine); box-shadow: 0 0 0 1px var(--pine); }
.plan .big { font-family: var(--display); color: var(--pine); }
.board { background: transparent; }
.day-col { background: #e8decb; border-color: var(--line); }
.day-col > header b { font-family: var(--display); font-size: 19px; }
.act { background: var(--white); border-left-color: var(--sage); }
.act.must { border-left-color: var(--terracotta); }
.act .ttl { font-family: var(--display); font-size: 16px; }
.day-block { gap: 34px; }
.day-block .day-h { border-top: 2px solid var(--terracotta); padding-top: 10px; }
.day-block .day-h b { font: 700 28px/1.15 var(--display); color: var(--pine); }
.tl { padding-left: 32px; gap: 14px; }
.tl::before { width: 2px; left: 10px; background: var(--line-strong); }
.tl-item { padding: 19px 20px; box-shadow: none; }
.tl-item::before { width: 14px; height: 14px; left: -29px; top: 22px; border-color: var(--terracotta); background: var(--paper); }
.tl-item h3 { color: var(--pine); }
.diff > div { background: #e8decb; border-radius: 0; }
.diff .new { background: #e7ede3; border-left-color: var(--pine); }
.seg-status { background: #e9e2d4; border-radius: 2px; }
.seg-status button[aria-pressed=true] { background: var(--pine); border-radius: 1px; }
.wrap-card { border-radius: 2px; }
.wrap-card.lake { background: var(--pine); }
.wrap-card.deep { background: var(--pine); }
.wrap-card.paper { background: var(--white); }
.wrap-card h3 { font-family: var(--display); }
.tl-item.skip::before { background: var(--line-strong); border-color: var(--line-strong); }
.seg-status button[disabled] { color: var(--deep-soft); }
.seg-status button[aria-pressed=true][disabled] { color: var(--white); }

/* Authentication pages keep their original forms on a calmer split composition. */
.auth { min-height: 700px; grid-template-columns: minmax(0,1fr) minmax(0,510px); gap: 52px; background: var(--paper); }
.auth .wave { display: none; }
.auth .photo { left: auto; right: 0; top: 0; bottom: auto; width: 49%; height: 100%; min-width: 0; object-fit: cover; filter: saturate(.8); }
.auth-art { padding-right: 35px; }
.auth-art h1 { max-width: 9ch; color: var(--pine); font-size: clamp(56px,5vw,78px); line-height: 1.08; letter-spacing: -.05em; }
.auth-art p { font-size: 18px; line-height: 1.55; }
.auth-card { position: relative; width: 85.7143%; max-width: 531px; margin-inline: auto; padding: 34px; background: var(--white); border: 1px solid var(--line); border-radius: 2px; box-shadow: var(--shadow-float); }
.auth-card::before { content: ""; position: absolute; top: -14px; left: calc(50% - 56px); width: 112px; height: 27px; background: rgba(227,215,193,.92); transform: rotate(-3deg); }
.auth-card h2 { font-size: 31px; color: var(--pine); }

@media (max-width: 1100px) {
  .landing-hero { gap: 25px; }
  .landing-copy h1 { font-size: clamp(56px, 6.5vw, 78px); }
  .landing-main-photo img { height: 260px; }
  .landing-side-photo img { height: 145px; }
  .landing-collage { height: 410px; }
  .trip-editorial { grid-template-columns: minmax(0,1fr) 205px; }
  .trip-polaroid { display: none; }
  .auth { gap: 26px; }
}
@media (max-width: 850px) {
  .edition-note { display: none; }
  .top-end { margin-left: auto; }
  .app-editorial { grid-template-columns: minmax(0,1fr) 215px; gap: 25px; min-height: 260px; }
  .app-polaroid img { height: 145px; }
  .app-stamp { width: 75px; height: 75px; right: 185px; bottom: 10px; }
  .app-stamp strong { font-size: 18px; }
  .app-stamp span { font-size: 6px; }
  .hero-app h1 { font-size: clamp(43px, 6vw, 62px); }
  .landing > .inner { display: block !important; }
  .landing-hero { grid-template-columns: minmax(0,1fr); gap: 18px; padding: 48px 0 38px; }
  .landing-copy { max-width: 620px; min-width: 0; }
  .landing-copy h1 { font-size: clamp(58px, 9vw, 82px); }
  .landing-collage { max-width: 600px; width: 100%; margin: 15px auto 0; height: 400px; }
  .landing-main-photo img { height: 250px; }
  .landing-side-photo img { height: 150px; }
  .landing-ticket { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .landing-ticket > div:nth-child(3) { border-left: 0; border-top: 1px dashed var(--line-strong); }
  .landing-ticket > div:nth-child(4) { border-top: 1px dashed var(--line-strong); }
  .featured-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .featured-card:nth-child(3) { transform: rotate(-.6deg); margin-top: 20px; }
  .landing-journal { grid-template-columns: 1fr; gap: 26px; }
  .ledger { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ledger > div:nth-child(3) { border-left: 0; border-top: 1px dashed var(--line-strong); }
  .ledger > div:nth-child(4) { border-top: 1px dashed var(--line-strong); }
  .auth { grid-template-columns: 1fr; }
  .auth .photo { display: none; }
  .auth-art { padding: 0; }
  .auth-art .copy { padding: 20px 0 30px; }
  .auth-art h1 { max-width: 15ch; font-size: clamp(46px, 8vw, 65px); }
  .auth-card { max-width: 531px; }
}
@media (max-width: 620px) {
  .topbar { min-height: 72px; }
  .brand { font-size: 25px; }
  .top-end .btn { display: inline-flex; }
  .topbar .top-end .btn { font-size: 12px; }
  .me { width: 39px; height: 39px; }
  .hero { padding-inline: var(--g); }
  .app-editorial { display: block; min-height: 0; padding: 34px 0 39px; }
  .app-polaroid, .app-stamp { display: none; }
  .hero-app h1 { max-width: none; font-size: clamp(42px, 10vw, 59px); line-height: 1.17; letter-spacing: -.025em; }
  .hero-app p { font-size: 16px; }
  .trip-editorial { display: block; padding: 30px 0 38px; min-height: 0; }
  .trip-intro h1 { font-size: clamp(38px, 9vw, 53px); line-height: 1.15; letter-spacing: -.025em; }
  .trip-intro p { font-size: 15px; }
  .trip-tag { display: block; width: min(100%, 360px); min-height: 0; margin: 30px 0 0; padding: 38px 22px 18px; transform: rotate(-1deg); }
  .trip-tag strong { font-size: 22px; }
  .trip-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 13px; }
  .route { gap: 19px; }
  .route a { min-height: 50px; font-size: 13px; }
  .subnav .tabs { padding: 9px 0; }
  .subnav .tab { font-size: 12px; }
  .page { padding-top: 30px; }
  .page-head h2 { font-size: clamp(28px, 7vw, 38px); }
  .landing { padding: 0 var(--g) 55px; overflow-x: clip; }
  .landing > .inner { display: block !important; }
  .landing-hero { padding: 35px 0 20px; }
  .landing-copy { order: initial; padding: 0; }
  .landing-copy .eyebrow { font-size: 13px; letter-spacing: .04em; white-space: normal; }
  .landing-copy h1 { font-size: clamp(43px, 9vw, 52px); line-height: 1.15; letter-spacing: -.03em; }
  .landing-copy .underlined { white-space: normal; }
  .landing-copy p { font-size: 17px; }
  .landing-actions { align-items: flex-start; gap: 18px; }
  .landing-link { white-space: normal; }
  .landing-small { margin-top: 27px; font-size: 13px; letter-spacing: .04em; }
  .landing-collage { height: 300px; margin-top: 28px; }
  .landing-main-photo { width: 80%; left: 2%; top: 11px; }
  .landing-main-photo img { height: 190px; }
  .landing-side-photo { width: 44%; bottom: 0; }
  .landing-side-photo img { height: 102px; }
  .landing-main-photo figcaption { font-size: 13px; }
  .landing-side-photo figcaption { font-size: 7px; }
  .landing-stamp { width: 80px; height: 80px; right: 0; top: -9px; }
  .landing-stamp strong { font-size: 16px; }
  .landing-stamp span { font-size: 5px; }
  .landing-doodle { display: none; }
  .landing-ticket > div { padding: 18px 17px; }
  .ticket-first { padding-left: 37px !important; }
  .ticket-hole { left: 14px; }
  .landing-ticket strong { font-size: 17px; }
  .featured { padding: 66px 0 45px; }
  .featured-head { display: block; margin-bottom: 28px; }
  .featured-head h2 { font-size: clamp(36px, 8vw, 52px); }
  .featured-head p { font-size: 15px; }
  .featured-head .landing-link { margin-top: 20px; }
  .featured-grid { grid-template-columns: 1fr; gap: 28px; }
  .featured-card, .featured-card:nth-child(2), .featured-card:nth-child(3) { margin-top: 0; transform: none; }
  .featured-photo img { height: clamp(210px, 58vw, 300px); }
  .featured-body > p { min-height: 0; }
  .landing-journal { padding-top: 42px; }
  .landing-steps { grid-template-columns: 1fr; }
  .landing-steps li, .landing-steps li:first-child { border-top: 1px solid var(--line); padding: 16px 0; }
  .ledger { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ledger > div { padding: 17px 13px; }
  .ledger dd, .ledger .v { font-size: 18px; }
  .auth { padding-block: 15px 50px; }
  .auth-art h1 { font-size: 46px; }
  .auth-card { padding: 22px; }
  .card { padding: 19px; }
  .panel { flex-basis: 238px; }
  .panel .thumb { height: 170px; }
  .foot { padding-bottom: 75px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-main-photo:hover, .landing-side-photo:hover, .featured-card:hover { transform: none; }
}

/* Refinements: sticky journal navigation and one connected trip collage. */
:root { --site-bar-h: 90px; --route-bar-h: 62px; }
.site-header { position: sticky; top: 0; z-index: 55; background: rgba(241,236,226,.97); border-bottom: 1px solid var(--line); box-shadow: 0 7px 20px rgba(39,34,27,.06); }
.site-header .topbar { border-bottom: 0; }
.route-stick { position: sticky; top: var(--site-bar-h); z-index: 45; padding-inline: var(--g); background: rgba(241,236,226,.97); border-block: 1px solid var(--line); box-shadow: 0 8px 16px rgba(39,34,27,.05); }
.route-stick .route { border: 0; margin: 0; background: transparent; }
.route-stick .route a { min-height: var(--route-bar-h); }
.hero-trip { overflow: visible; }
.trip-editorial { grid-template-columns: minmax(0,1fr) minmax(440px,560px); gap: 28px; padding: 46px 0 54px; min-height: 336px; }
.trip-collage { position: relative; height: 292px; min-width: 0; }
.trip-collage .trip-tag { position: absolute; z-index: 1; left: 0; top: 24px; width: 49%; min-height: 244px; padding: 39px 26px 19px; transform: rotate(-3deg); }
.trip-collage .trip-polaroid { position: absolute; z-index: 2; right: 0; top: 0; width: 56%; margin: 0; transform: rotate(4deg); }
.trip-collage .trip-polaroid img { height: 202px; }
.trip-collage .trip-polaroid figcaption { padding: 9px 3px 12px; }
.trip-note { position: absolute; z-index: 3; left: 40%; bottom: -6px; width: 54%; min-height: 54px; padding: 9px 17px 10px; background: var(--butter); border: 1px solid #cfb984; box-shadow: 2px 4px 8px rgba(39,34,27,.12); transform: rotate(-3deg); clip-path: polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px)); }
.trip-note span { display: block; font: 9px/1.4 var(--mono); letter-spacing: .08em; color: #674817; }
.trip-note strong { display: block; margin-top: 2px; font: 700 18px/1.2 var(--display); color: var(--pine); }
.trip-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: clamp(24px,3vw,40px) !important; align-items: start; }
.trip-layout:not(:has(.chapter-panel)) { grid-template-columns: minmax(0,1fr); }
.trip-content { display: grid; gap: 32px; align-content: start; min-width: 0; }
.chapter-panel { position: sticky; top: calc(var(--site-bar-h) + var(--route-bar-h) + 25px); align-self: start; max-height: calc(100vh - var(--site-bar-h) - var(--route-bar-h) - 42px); overflow: auto; scrollbar-width: thin; }
.chapter-paper { position: relative; padding: 26px 17px 20px; background: #e9e0cf; border: 1px solid var(--line); box-shadow: 3px 5px 0 rgba(207,196,175,.35); }
.chapter-paper::before { content: ""; position: absolute; top: -11px; left: 37px; width: 66px; height: 21px; background: rgba(227,215,193,.9); transform: rotate(-5deg); }
.chapter-paper h2 { margin-top: 8px; font-size: 27px; color: var(--pine); }
.chapter-paper > p { margin-top: 7px; font-size: 12px; line-height: 1.5; color: var(--deep-soft); }
.chapter-links { display: grid; gap: 0; margin-top: 19px; border-top: 1px dashed var(--line-strong); }
.chapter-links a { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 9px; align-items: start; padding: 12px 5px; border-bottom: 1px solid var(--line); text-decoration: none; line-height: 1.35; }
.chapter-links a:hover { color: var(--terracotta); background: rgba(255,253,250,.42); }
.chapter-links a[aria-current] { color: var(--pine); background: var(--white); margin-inline: -7px; padding-inline: 12px; border-left: 3px solid var(--terracotta); }
.chapter-links a span { font: 13px/1.5 var(--mono); color: var(--terracotta); }
.chapter-links a b { font-size: 13px; font-weight: 600; }
.chapter-tail { padding-top: 19px; font: 9px/1.5 var(--mono); color: var(--deep-soft); letter-spacing: .08em; }
.landing .topbar { position: sticky; top: 0; z-index: 45; background: rgba(241,236,226,.97); }

/* Ticket chain and matching member sheet. */
.ticket-ledger { position: relative; overflow: visible; border-color: var(--line-strong); background: var(--sand); box-shadow: 0 5px 0 rgba(227,215,193,.6); }
.ticket-ledger dt { font-size: 13px; }
.ticket-ledger dd { font-size: 20px; }
.ticket-ledger > div { position: relative; }
.ticket-ledger > div + div { border-left: 1px dashed var(--line-strong); }
.ticket-ledger > div + div::before, .ticket-ledger > div + div::after { content: ""; position: absolute; z-index: 2; left: -10px; width: 18px; height: 9px; background: var(--paper); border: 1px solid var(--line-strong); }
.ticket-ledger > div + div::before { top: -1px; border-top: 0; border-radius: 0 0 12px 12px; }
.ticket-ledger > div + div::after { bottom: -1px; border-bottom: 0; border-radius: 12px 12px 0 0; }
.member-note { position: relative; min-width: 0; padding: 25px 26px 20px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--sage); box-shadow: var(--shadow-card); }
.member-note::before { content: ""; position: absolute; width: 96px; height: 23px; top: -15px; right: 38px; background: rgba(227,215,193,.86); transform: rotate(-4deg); }
.member-note-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; border-bottom: 1px dashed var(--line-strong); padding-bottom: 16px; }
.member-note-head h3 { margin-top: 6px; color: var(--pine); font-size: 28px; }
.member-note-head .landing-link { font-size: 12px; gap: 7px; flex: none; }
.member-note-head .landing-link span { font-size: 18px; }
.member-list { display: grid; }
.member-row { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.member-row .dot { width: 32px; height: 32px; font-size: 12px; }
.member-row b { font-size: 16px; }
.member-row .xs { font: 14px/1.45 var(--body); letter-spacing: 0; }
.member-no { color: var(--terracotta); font: 13px/1.4 var(--mono); }

/* Scroll-led postcard sequence. */
.sequence { position: relative; min-width: 0; }
.sequence-sticky { position: sticky; top: calc(var(--site-bar-h) + var(--route-bar-h) + 14px); min-width: 0; }
.sequence-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 19px; }
.sequence-controls { display: flex; align-items: center; gap: 7px; }
.sequence-controls > span { min-width: 66px; margin-right: 7px; font: 13px/1.4 var(--mono); color: var(--deep-soft); }
.sequence-controls button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--white); color: var(--pine); font-size: 20px; }
.sequence-controls button:hover { background: var(--sage); border-color: var(--pine); }
.sequence-viewport { overflow: hidden; min-width: 0; padding: 11px 7px 18px; margin-inline: -7px; }
.sequence-track { display: flex; align-items: stretch; gap: 23px; width: max-content; max-width: none; will-change: transform; }
.featured.sequence { padding: 0; margin: 96px 0 70px; }
.featured .sequence-sticky { top: calc(var(--site-bar-h) + 15px); }
.featured-grid.sequence-track { display: flex; grid-template-columns: none; }
.featured-grid .featured-card { flex: 0 0 clamp(280px, 28vw, 370px); width: clamp(280px, 28vw, 370px); margin: 0; transform: none; }
.featured-grid .featured-card:hover { transform: translateY(-4px); }
.featured-grid .featured-body > p { min-height: 68px; }
.featured .sequence-head { margin-top: -13px; }
.featured .featured-disclaimer { margin-top: 8px; }
.featured.sequence .featured-head { margin-bottom: 24px; }
.featured.sequence .featured-head h2 { font-size: clamp(38px,3.6vw,52px); }
.featured.sequence .featured-head p { margin-top: 12px; font-size: 15px; }
.featured.sequence .featured-photo img { height: 195px; }
.featured.sequence .featured-body { padding: 18px 13px 13px; }
.featured.sequence .featured-body > p { margin-top: 10px; font-size: 14px; }
.featured.sequence .featured-foot { margin-top: 10px; padding-top: 10px; }
.sequence:not(.sequence-pinned) .sequence-viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
.catalog-results { min-width: 0; margin-top: 10px; }
.catalog-results-head { margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(340px,420px)); gap: 25px; align-items: stretch; }
.catalog-card { display: flex; flex-direction: column; width: 100%; min-width: 0; padding: 11px; background: var(--white); border: 1px solid var(--line); box-shadow: 2px 5px 12px rgba(39,34,27,.12); }
.catalog-photo { position: relative; height: 205px; flex: none; background: var(--sand); }
.catalog-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.86); }
.catalog-photo .tape { top: -19px; height: 24px; width: 78px; left: calc(50% - 39px); }
.catalog-photo .photo-index { left: 9px; bottom: 9px; max-width: calc(100% - 18px); font-size: 13px; }
.catalog-photo-note { display: grid; place-items: center; height: 100%; padding: 15px; text-align: center; font: 13px/1.5 var(--mono); color: var(--deep-soft); background: repeating-linear-gradient(0deg,transparent 0 20px,rgba(36,74,64,.11) 20px 21px),var(--sand); }
.catalog-body { display: flex; flex-direction: column; flex: 1; min-height: 290px; padding: 19px 10px 9px; }
.catalog-body .eyebrow { font-size: 13px; line-height: 1.4; color: var(--deep-soft); }
.catalog-body h3 { margin-top: 7px; color: var(--pine); font-size: 25px; line-height: 1.15; overflow-wrap: anywhere; }
.catalog-summary { margin-top: 12px; color: var(--deep-soft); font-size: 14px; line-height: 1.5; }
.catalog-facts { display: grid; gap: 3px; border-top: 1px dashed var(--line); padding-top: 11px; margin-top: auto; }
.catalog-facts span { font: 13px/1.4 var(--mono); color: var(--deep-soft); }
.catalog-facts strong { color: var(--pine); font-size: 13px; line-height: 1.3; }
.catalog-facts small { font-size: 11px; color: var(--deep-soft); }
.catalog-actions { display: grid; gap: 7px; margin-top: 12px; }
.catalog-actions .btn { min-height: 35px; width: 100%; border-color: var(--pine); padding: 6px 10px; }
.catalog-map-link { justify-self: start; border-bottom: 1px solid var(--line-strong); text-decoration: none; font-size: 11px; padding-bottom: 3px; }
.catalog-map-link:hover { color: var(--terracotta); border-color: var(--terracotta); }
.catalog-nom { display: flex; align-items: center; justify-content: space-between; gap: 5px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 9px; margin-top: 11px; }
.catalog-nom .tag { font-size: 13px; white-space: normal; }
.catalog-nom .btn { min-height: 30px; padding: 4px 9px; font-size: 11px; }
.trip-content > .segbar { border-radius: 0; }
.trip-content > .segbar .btn { border-radius: 0; }
.btn.sand, .btn.deep { clip-path: polygon(0 0,calc(100% - 8px) 0,100% 8px,100% 100%,8px 100%,0 calc(100% - 8px)); }

@media (max-width: 1100px) {
  .trip-editorial { grid-template-columns: minmax(0,1fr) 430px; }
  .trip-collage .trip-tag { width: 52%; }
  .trip-collage .trip-polaroid { width: 58%; }
  .trip-layout { grid-template-columns: 185px minmax(0,1fr); }
}
@media (max-width: 900px) {
  :root { --site-bar-h: 72px; --route-bar-h: 54px; }
  .site-header .topbar { min-height: var(--site-bar-h); }
  .trip-editorial { grid-template-columns: 1fr; min-height: 0; padding: 35px 0 35px; }
  .trip-collage { width: min(100%,560px); margin-top: 10px; }
  .trip-collage .trip-polaroid { display: block; }
  .trip-layout { grid-template-columns: minmax(0,1fr); }
  .chapter-panel { position: static; max-height: none; overflow: visible; }
  .chapter-paper { padding: 20px; }
  .chapter-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
  .chapter-tail { display: none; }
  .sequence, .featured.sequence { height: auto !important; }
  .sequence-sticky, .featured .sequence-sticky { position: static; }
  .sequence-viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .sequence-track { transform: none !important; }
  .sequence-track > * { scroll-snap-align: start; }
  .featured-grid .featured-card { flex-basis: min(78vw,340px); width: min(78vw,340px); }
  .catalog-photo { height: 190px; }
}
@media (max-width: 620px) {
  .site-header .edition-note { display: none; }
  .route-stick .route a { min-height: var(--route-bar-h); }
  .trip-collage { height: 285px; margin-bottom: 10px; }
  .trip-collage .trip-tag { width: 55%; padding: 40px 16px 12px; }
  .trip-collage .trip-tag strong { font-size: 21px; }
  .trip-collage .trip-facts { grid-template-columns: 1fr; }
  .trip-collage .trip-facts .tag { font-size: 13px; }
  .trip-collage .trip-polaroid { width: 59%; }
  .trip-collage .trip-polaroid img { height: 155px; }
  .trip-note { left: 33%; width: 66%; }
  .trip-note strong { font-size: 15px; }
  .chapter-links { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 10px; }
  .chapter-paper > p { display: none; }
  .chapter-links a { padding-block: 9px; }
  .ticket-ledger > div + div::before, .ticket-ledger > div + div::after { display: none; }
  .ticket-ledger > div { border-top: 1px dashed var(--line-strong); }
  .ticket-ledger > div:nth-child(-n+2) { border-top: 0; }
  .ticket-ledger > div:nth-child(odd) { border-left: 0; }
  .member-note { padding: 22px 18px; }
  .featured.sequence { margin-top: 68px; }
  .featured-grid .featured-card { flex-basis: min(82vw,330px); width: min(82vw,330px); }
}

/* Feedback 11/11: chỉ mục chương bám đầu trang; bìa và dải ảnh gọn hơn. */
.site-header { position: relative; top: auto; padding-inline: var(--g); box-shadow: none; }
.route-stick { top: 0; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.route-stick.is-stuck { background: var(--pine); color: var(--paper); border-color: var(--pine); box-shadow: 0 9px 22px rgba(27,48,42,.22); }
.route-stick.is-stuck .route a { color: var(--paper); }
.route-stick.is-stuck .route a:hover { color: var(--butter); }
.route-stick.is-stuck .route a[aria-current] { color: var(--white); border-bottom-color: var(--butter); }
.trip-page { min-height: calc(100vh - var(--route-bar-h)); }
.trip-content { transition: opacity .12s ease; }
.trip-content.route-entering { opacity: 0; }
.lakebox .panel::before { display: none; }
.trip-editorial { padding-block: 31px 35px; min-height: 282px; }
.trip-collage { height: 272px; }
.trip-collage .trip-tag { top: 14px; }
.trip-collage .trip-polaroid { top: 0; }
.trip-note, .app-stamp, .landing-stamp, .landing-doodle { display: none; }
.app-editorial { min-height: 220px; padding-block: 24px 25px; }
.app-polaroid img { height: 145px; }
.hero-app + .page { padding-top: 24px; }
.chapter-panel { top: calc(var(--route-bar-h) + 23px); max-height: calc(100vh - var(--route-bar-h) - 42px); }
.chapter-paper { padding-top: 22px; }
.chapter-links { margin-top: 14px; }
.landing .topbar { position: relative; top: auto; }
.member-note { background: #f5edde; border: 1px solid var(--line); border-left: 4px solid var(--sage); }
.member-note::before { display: none; }
.member-note-head .eyebrow { font-size: 13px; }
.member-note-head .landing-link { font-size: 14px; }
.overview-split h2 { font-size: clamp(30px, 2.5vw, 36px); }
.overview-todos { display: grid; grid-template-columns: minmax(0,1fr); grid-auto-rows: 1fr; gap: 0; }
.overview-todos .todo { width: 100%; box-sizing: border-box; padding-right: 20px; transition: background-color .2s ease, border-color .2s ease; }
.overview-todos a.todo:hover { padding-left: 5px; }
.overview-todos .todo > .icon[data-icon="right"] { transition: background-color .2s ease, color .2s ease; }
@media (prefers-reduced-motion: reduce) {
  .overview-todos .todo, .overview-todos .todo > .icon[data-icon="right"] { transition: none; }
}
.todo > .icon[data-icon="right"] { display: block; flex: none; width: 34px; height: 34px; padding: 7px; border: 1px solid var(--pine); border-radius: 50%; color: var(--pine); background: var(--paper); }
a.todo:hover > .icon[data-icon="right"] { background: var(--pine); color: var(--paper); }
.sequence-sticky { top: calc(var(--route-bar-h) + 14px); }
.featured .sequence-sticky { top: 15px; }
.sequence-viewport { scrollbar-width: none; }
.sequence-viewport::-webkit-scrollbar { display: none; }
.catalog-sequence .sequence-sticky { top: calc(var(--route-bar-h) + 14px); }
.catalog-grid.sequence-track { display: flex; gap: 18px; width: max-content; max-width: none; }
.catalog-grid.sequence-track > .catalog-card { flex: 0 0 clamp(260px, 24vw, 310px); width: clamp(260px, 24vw, 310px); }
.catalog-sequence .catalog-photo { height: 170px; }
.catalog-sequence .catalog-body { min-height: 250px; padding: 16px 8px 8px; }
.catalog-sequence .catalog-body h3 { font-size: 22px; }
.catalog-sequence .sequence-head { margin: 0 0 10px; }
.catalog-sequence .sequence-viewport { padding-top: 8px; }
.catalog-sequence.sequence:not(.sequence-pinned) .sequence-viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
.catalog-sequence .catalog-card { scroll-snap-align: start; }
@media (max-width: 900px) {
  .trip-editorial { min-height: 0; }
  .chapter-panel { top: auto; max-height: none; }
  .sequence-sticky, .featured .sequence-sticky { top: auto; }
  .sequence-viewport { scrollbar-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .trip-content { transition: none; }
}
@media (max-width: 620px) {
  .trip-collage { height: 266px; }
  .app-editorial { min-height: 0; }
  .catalog-grid { grid-template-columns: minmax(0,1fr); }
}

/* Member review: simpler page frames, consistent text hierarchy and natural lists. */
.brand { gap: 2px; }
.top-end { margin-left: auto; }
.site-header .topbar { gap: 20px; }
.app-editorial { display: block; min-height: 0; padding: 28px 0 30px; }
.hero-app h1 { max-width: none; margin-top: 6px; font-size: clamp(42px, 4.2vw, 62px); line-height: 1.12; }
.hero-app p { margin-top: 10px; font-size: 16px; }
.hero-app + .page { padding-top: 25px; }
.hero-squiggle, .app-polaroid, .edition-note, .foot { display: none; }
.trip-editorial { min-height: 0; padding-block: 22px 27px; }
.trip-intro h1 { font-size: clamp(38px, 4.4vw, 62px); margin-bottom: 10px; }
.trip-intro p { font-size: 16px; }
.trip-collage { height: 245px; }
.trip-collage .trip-tag { min-height: 218px; padding-top: 34px; }
.trip-tag .eyebrow { font-size: 13px; }
.trip-tag strong { font-size: 30px; }
.trip-facts .tag { font-size: 13px; }
.trip-collage .trip-polaroid img { height: 175px; }
.trip-collage .trip-polaroid figcaption { font-size: 13px; }
.page-head { padding-bottom: 18px; }
.page-head h2 { font-size: clamp(30px, 3vw, 42px); }
.trip-content .card > h3, .trip-content .card-head h3 { font-size: 24px; line-height: 1.2; }
.trip-content .card p, .trip-content .switch { font-size: 16px; line-height: 1.5; }
.trip-content .choice { font-size: 15px; line-height: 1.5; }
.trip-content .select { font-size: 15px; }
.trip-content .card p.small, .trip-content .small, .trip-content .card .xs { font-size: 14px; }
.trip-content .field .lb, .trip-content legend { font-size: 15px; }
.chapter-paper .eyebrow { font-size: 13px; }
.chapter-links a b { font-size: 14px; }
.catalog-results-head { margin-bottom: 16px; }
.catalog-results-head .eyebrow { font-size: 13px; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 26px; width: 100%; }
.catalog-grid > .catalog-card { max-width: 500px; width: 100%; }
.catalog-photo { height: 245px; }
.catalog-body { min-height: 285px; }
.catalog-body h3 { font-size: 27px; }
.catalog-body .eyebrow { font-size: 13px; }
.catalog-facts span, .catalog-nom .tag { font-size: 13px; }
.catalog-summary { font-size: 16px; }
.catalog-facts strong { font-size: 16px; }
.catalog-map-link { font-size: 14px; }
.auth { padding-inline: var(--g); min-height: 650px; }
.auth-art { padding-right: 20px; }
.auth-art .copy { max-width: 580px; }
.auth-art h1 { max-width: 14ch; font-size: clamp(48px, 4.2vw, 68px); line-height: 1.16; letter-spacing: -.035em; }
.auth-art p { max-width: 43ch; font-size: 17px; }
.auth-card h2 { font-size: 30px; }
.auth-card .input, .auth-card .select { min-height: 40px; padding: 7px 11px; }
.auth-card .input-affix .input { padding-right: 44px; }
.auth-card .pw-toggle { width: 36px; height: 36px; }
@media (min-width: 1001px) {
  .auth { grid-template-columns: minmax(0,43fr) minmax(0,57fr); gap: 0; padding-inline: 0; }
  .auth .photo { width: 57%; }
  .auth-art { padding-inline: var(--g); }
  .auth-card { width: min(437px, calc(100% - 2 * var(--g))); }
}
.tl { padding-left: 32px; }
.tl::before { left: 10px; }
.tl-item::before { left: -31px; width: 16px; height: 16px; }
.wrap-deck { scrollbar-width: none; }
.wrap-deck::-webkit-scrollbar { display: none; }
.wrap-card.lake { color: var(--white); }
.wrap-card.lake h3, .wrap-card.lake .eyebrow, .wrap-card.lake .huge { color: var(--white); text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.wrap-card.lake h3 > span { display: block; }
.wrap-card.lake::before { background-image: linear-gradient(180deg, rgba(16,38,31,.44), rgba(16,38,31,.82)), url(../img/dalat-pines.jpg); }
.wrap-card.deep, .wrap-card.deep h3, .wrap-card.deep .eyebrow { color: var(--white); }
.wrap-card:not(.lake):not(.deep) { background: var(--butter); }
.wrap-card:not(.lake):not(.deep) .eyebrow { color: var(--pine); }
.wrap-card.paper { background: var(--white) !important; }
.wrap-card .eyebrow { font-size: 13px; }
.wrap-card p.small { font-size: 14px; }
.wrap-card.recap-completed::before { background-image: linear-gradient(180deg, rgba(16,38,31,.64), rgba(16,38,31,.85)), url(../img/dalat-coffee.jpg); background-position: center; }
.wrap-card.recap-places::before { background-image: linear-gradient(180deg, rgba(16,38,31,.64), rgba(16,38,31,.85)), url(../img/lake-hero.jpg); background-position: 50% 75%; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.page-meta { display: inline-block; margin-top: 8px; color: var(--deep-soft); font: 13px/1.5 var(--mono); letter-spacing: .05em; }
.pw-hint-mark { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 4px; border: 1px solid #a92f28; border-radius: 50%; color: #a92f28; font-weight: 700; font-size: 12px; vertical-align: text-bottom; }
.trip-content { gap: 24px; }
.trip-page { padding-top: 34px; }
.trip-content .page-head { min-height: 0; }
.trip-content .card .page-meta { font-size: 13px; }
.day-block .day-h .small { font-size: 14px; }
.tl-item .num, .tl-item b { font-size: 16px; }
.tl-item .small { font-size: 14px; }
.modal-body h2 { font-size: 26px !important; line-height: 1.2; }
.modal-body p { font-size: 16px; line-height: 1.55; }
.modal-body .field .lb { font-size: 15px; }
.modal-body .input, .modal-body .textarea { font-size: 16px; }
.modal-body .select { font-size: 15px; }
.feedback-photo-picker { position: relative; display: grid; justify-items: center; gap: 6px; min-width: 0; padding: 16px; border: 1px dashed var(--pine); border-radius: 2px; background: var(--paper); color: var(--pine); text-align: center; cursor: pointer; }
.feedback-photo-picker:hover { background: var(--paper-2); }
.feedback-photo-picker:focus-within { outline: 2px solid var(--pine); outline-offset: 3px; }
.feedback-photo-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; }
.feedback-photo-picker img { display: block; max-width: 100%; max-height: 120px; object-fit: contain; }
.feedback-photo-picker > span { max-width: 100%; overflow-wrap: anywhere; }
#fb-photo-remove { justify-self: center; }
.tag { font-size: 13px; }
.page-head > .tag { font-size: 13px; }

/* Refinement: larger shared labels and cards, compact forms and planning panels. */
.route-stick .route a { font-size: 15px; font-weight: 500; }
.chapter-links a { grid-template-columns: 28px minmax(0,1fr); gap: 10px; }
.chapter-links a span { font-size: 13px; }
.chapter-links a b { font-size: 14px; line-height: 1.3; }
.chapter-paper .eyebrow { font-size: 13px; }
@media (min-width: 901px) {
  .trip-layout:has(.chapter-panel-manage) { grid-template-columns: minmax(250px,max-content) minmax(0,1fr); }
  .trip-layout:has(.chapter-panel-prepare), .trip-layout:has(.chapter-panel-plan),
  .trip-layout:has(.chapter-panel-live), .trip-layout:has(.chapter-panel-after) { grid-template-columns: max-content minmax(0,1fr); }
  .chapter-panel-manage .eyebrow, .chapter-panel-manage .chapter-links a b,
  .chapter-panel-prepare .eyebrow, .chapter-panel-prepare .chapter-links a b,
  .chapter-panel-plan .eyebrow, .chapter-panel-plan .chapter-links a b,
  .chapter-panel-live .eyebrow, .chapter-panel-live .chapter-links a b,
  .chapter-panel-after .eyebrow, .chapter-panel-after .chapter-links a b { white-space: nowrap; }
}
.compare-head .btn { min-height: 38px; padding: 6px 12px; font-size: 13px; }
.catalog-grid.sequence-track { display: flex; gap: 22px; width: max-content; max-width: none; }
.catalog-grid.sequence-track > .catalog-card { flex: 0 0 clamp(390px, 31vw, 450px); width: clamp(390px, 31vw, 450px); max-width: none; }
.catalog-sequence .catalog-photo { height: 245px; }
.catalog-sequence .catalog-body { min-height: 300px; padding: 20px 13px 11px; }
.catalog-sequence .catalog-body h3 { font-size: 22px; }
.catalog-photo .photo-index { font-size: 13px; }
.catalog-body .eyebrow { font-size: 13px; }
.catalog-facts span { font-size: 13px; }
.catalog-summary { font-size: 16px; }
.catalog-facts strong { font-size: 16px; }
.catalog-actions .btn { min-height: 40px; font-size: 13px; }
.catalog-map-link { font-size: 14px; }
.catalog-nom .tag { font-size: 13px; }
.catalog-nom .btn { font-size: 11px; }
.catalog-sequence .sequence-viewport { padding-top: 12px; }
.prefs-layout { grid-template-columns: minmax(0,720px) minmax(240px,320px); gap: 22px; justify-content: start; }
.prefs-card { padding: 20px 24px; gap: 17px; }
.prefs-card > h3, .prefs-permissions > h3 { font-size: 24px; }
.prefs-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.prefs-fieldset legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 700; }
.prefs-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.prefs-choices .choice { flex: 0 0 auto; align-items: center; min-height: 44px; padding: 7px 11px; gap: 8px; font-size: 15px; white-space: nowrap; }
.prefs-choices .choice input { margin: 0; }
.stay-modes { display: flex; flex-wrap: wrap; gap: 10px; }
.stay-modes .choice { flex: 0 0 auto; width: max-content; max-width: 100%; min-height: 50px; align-items: center; padding: 10px 14px; }
.stay-modes .choice input { margin-top: 0; }
.stay-catalog-fields { grid-template-columns: minmax(0, 400px) minmax(0, 160px); max-width: 580px; }
.stay-date-fields { grid-template-columns: repeat(2, minmax(0, 230px)); max-width: 480px; }
.summary-interest { font-family: var(--body); font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: normal; white-space: nowrap; }
.prefs-card .field { max-width: 590px; }
.prefs-card .field .lb { font-size: 15px; font-weight: 700; }
.prefs-card .input, .prefs-card .textarea { font-size: 16px; }
.prefs-card .input { min-height: 48px; }
.prefs-permissions { max-width: 320px; padding: 20px; gap: 14px; }
.prefs-permissions .switch { font-size: 16px; }
.prefs-permissions p.small { font-size: 14px; }
.prefs-permissions .btn { width: auto; justify-self: start; }
.editor-head { display: grid; grid-template-columns: minmax(0,1fr) 260px; align-items: center; gap: 22px; }
.editor-head-main { min-width: 0; }
.editor-head h2 { max-width: none; }
.editor-actions { margin-top: 16px; }
.editor-actions .btn { flex: none !important; min-height: 38px; padding: 0 12px; border-radius: 2px; font-size: 14px; font-weight: 500; }
.editor-actions .icon-btn { width: 38px; height: 38px; }
.editor-actions .icon-btn .icon { width: 17px; height: 17px; }
.editor-budget { width: 100%; padding: 14px 16px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-card); }
.editor-budget .eyebrow { display: block; font-size: 13px; }
.editor-budget strong { display: block; margin-top: 5px; color: var(--pine); font-size: 24px; line-height: 1.15; }
.editor-budget .progress { height: 5px; margin: 9px 0 5px; }
.editor-budget small { color: var(--deep-soft); font-size: 16px; }
.editor-board { width: 100%; }
.editor-errors { padding: 12px 16px; border-left: 3px solid var(--terracotta); background: #f3e8de; color: var(--deep); font-size: 15px; }
.editor-errors p + p { margin-top: 5px; }
.publish-head { align-items: center; }
.publish-head h2 { max-width: none; }
.publish-actions { flex-wrap: wrap; }
.publish-actions .btn { flex: none !important; min-height: 42px; padding: 8px 14px; }
.publish-layout { grid-template-columns: minmax(0,.78fr) minmax(340px,1fr); gap: 20px; }
.publish-draft { min-width: 0; }
.publish-aside { max-width: none; }
.publish-changes { padding: 20px; gap: 14px; }
.publish-changes:has(.publish-single-cost) { width: 100%; max-width: 300px; justify-self: end; }
.publish-changes > h3 { font-size: 24px; }
.publish-cost { border-top: 1px dashed var(--line); padding-top: 13px; }
.publish-cost > span { display: block; font: 13px/1.4 var(--mono); letter-spacing: .04em; }
.publish-cost strong, .publish-single-cost { display: block; margin-top: 5px; color: var(--pine); font-size: 22px; line-height: 1.2; }
.publish-single-cost { font-size: 20px; }
.publish-cost small { display: block; margin-top: 3px; font-size: 15px; font-weight: 700; }
.publish-cost .is-up { color: #b44d29; }
.publish-cost .is-down { color: var(--pine); }
.publish-cost .is-even { color: var(--deep-soft); }
.finish-layout .kv > div { grid-template-columns: minmax(max-content,2fr) minmax(0,3fr); }
.finish-layout .kv dt { white-space: nowrap; }

/* UI-M10: lịch sử chỉ đọc, mở chi tiết bằng bàn phím hoặc chuột. */
.condition-history-details { border-top: 1px solid var(--line); padding-top: 16px; }
.condition-history-details summary { cursor: pointer; color: var(--pine); font-weight: 600; padding: 8px 0; }
.condition-history-details[open] summary { margin-bottom: 12px; }
.condition-history-details .small { margin-top: 16px; }
.finish-proposals > p { font-size: 15px; line-height: 22px; }
.day-col > header b { font-size: 19px; }
.act .ttl { font-size: 16px; }
.act .xs { font-size: 14px; }
.time-fields .input { font-size: 16px; }
.date-time-fields { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(90px,.75fr); gap: 8px; }
.date-time-fields label { min-width: 0; }
.date-time-fields .input { width: 100%; min-width: 0; }
@media (min-width: 901px) {
  .publish-layout:has(.publish-single-cost) { grid-template-columns: minmax(0,1fr) 300px; }
  .finish-layout { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); }
}
@media (max-width: 900px) {
  .prefs-layout, .publish-layout, .finish-layout { grid-template-columns: minmax(0,1fr); }
  .prefs-permissions, .publish-aside { max-width: 100%; }
  .stay-catalog-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 160px); }
  .catalog-grid.sequence-track > .catalog-card { flex-basis: min(78vw,430px); width: min(78vw,430px); }
  .route-stick .route a { font-size: 15px; }
}
@media (max-width: 620px) {
  .editor-head { grid-template-columns: minmax(0,1fr); }
  .editor-budget { max-width: 320px; }
  .prefs-card { padding: 18px; }
  .prefs-choices .choice { white-space: normal; }
  .stay-catalog-fields { grid-template-columns: minmax(0, 1fr); }
  .stay-date-fields { grid-template-columns: minmax(0, 230px); }
  .catalog-grid.sequence-track > .catalog-card { flex-basis: min(84vw,400px); width: min(84vw,400px); }
}
@media (max-width: 900px) {
  .app-editorial { padding-block: 24px; }
  .trip-collage { height: 250px; }
  .auth { min-height: 0; }
}
@media (max-width: 620px) {
  .auth-art h1 { max-width: 14ch; font-size: clamp(42px, 9vw, 56px); }
  .catalog-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-grid > .catalog-card { max-width: none; }
  .trip-collage { height: 250px; }
}

/* Planning cards: horizontal comparison and compact torn-paper activities. */
.plans { grid-template-columns: minmax(0,1fr); }
.plan { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); grid-template-areas: "heading budget" "facts wishes" "facts itinerary" "checks checks" "actions actions"; gap: 18px 26px; align-items: start; }
.plan > :nth-child(1) { grid-area: heading; }
.plan > :nth-child(2) { grid-area: budget; }
.plan > :nth-child(3) { grid-area: facts; }
.plan > :nth-child(4) { grid-area: wishes; }
.plan > :nth-child(5) { grid-area: itinerary; }
.plan > :nth-child(6) { grid-area: checks; }
.plan > .foot-act { grid-area: actions; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 0; padding-top: 14px; border-top: 1px dashed var(--line); }
.plan .budget-row { min-width: 0; padding: 16px 18px; background: var(--sand); border: 1px solid var(--line); }
.plan .budget-row .eyebrow { font-size: 13px; }
.plan .budget-row .big { margin: 4px 0 10px; font-size: 25px; line-height: 1.2; }
.plan .budget-row .progress { margin: 0; }
.plan .kv { margin: 0; }
.editor-board { align-items: start; }
.editor-board .day-col { min-width: 0; padding: 16px; gap: 16px; }
.editor-board .day-col > header { padding: 2px 2px 6px; }
.editor-board .act { display: grid; gap: 10px; min-width: 0; min-height: 0; padding: 16px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--sage); border-radius: 2px; box-shadow: var(--shadow-card); cursor: grab; }
.editor-board .act.must { border-left-color: var(--pine); }
.editor-board .act.bad { border-left-color: var(--terracotta); }
.editor-board .act .ttl { font-size: 16px; line-height: 1.3; }
.editor-board .act .tag { font-size: 13px; flex: none; }
.editor-board .time-fields { grid-template-columns: minmax(0,1.1fr) minmax(0,.8fr); gap: 8px; }
.act-field { display: block; min-width: 0; }
.act-field-label { display: block; margin-bottom: 5px; color: var(--deep-soft); font: 13px/1.3 var(--mono); letter-spacing: .05em; }
.editor-board .act-field .input { width: 100%; min-width: 0; min-height: 34px; padding: 5px 8px; border-radius: 2px; background: rgba(255,253,250,.88); color: var(--pine); font: 500 15px/1.3 var(--body); }
.editor-board .act .tools { margin: 0; gap: 5px; }
.editor-board .act .tools .icon-btn { display: grid; place-items: center; width: 30px; height: 30px; min-height: 30px; padding: 7px; border-radius: 3px; box-shadow: none; }
.editor-board .act .tools .icon-btn .icon { width: 16px; height: 16px; }
.editor-board .act .tools .move-tool { background: #f1ede4; border: 1px solid #f1ede4; color: var(--pine); }
.editor-board .act .tools .move-tool:hover:not(:disabled) { background: var(--sage); border-color: var(--sage); }
.editor-board .act .tools .delete-tool { margin-left: auto; background: var(--white); border: 1px solid #d9a9a2; color: #a84334; }
.editor-board .act .tools .delete-tool:hover:not(:disabled) { background: #f9e9e6; }
.editor-board .add-act { display: grid; place-items: center; width: 100%; min-height: 40px; margin-top: 3px; background: var(--white); border: 1.5px dashed var(--pine); border-radius: 2px; color: var(--pine); font: 400 20px/1 var(--body); cursor: pointer; }
.editor-board .add-act:hover { background: #e9efe5; }
@media (max-width: 900px) {
  .plan { grid-template-columns: minmax(0,1fr); grid-template-areas: "heading" "budget" "facts" "wishes" "itinerary" "checks" "actions"; }
  .plan > .foot-act { justify-content: flex-start; }
}

/* Quản lý chuyến: giữ cột bảng gọn, tránh ngắt dòng vai trò. */
.trip-content .members-table { width: 100%; min-width: 0; table-layout: fixed; }
.trip-content .members-table th,
.trip-content .members-table td { padding-inline: 7px; }
.trip-content .members-table th:nth-child(2), .trip-content .members-table td:nth-child(2),
.trip-content .members-table th:nth-child(3), .trip-content .members-table td:nth-child(3) { padding-inline: 12px; }
.trip-content .members-table th { font-size: 13px; }
.trip-content .members-table td { font-size: 14px; white-space: nowrap; }
.trip-content .members-table th:nth-child(1), .trip-content .members-table td:nth-child(1) { width: 30%; }
.trip-content .members-table th:nth-child(2), .trip-content .members-table td:nth-child(2) { width: 22%; }
.trip-content .members-table th:nth-child(3), .trip-content .members-table td:nth-child(3) { width: 25%; }
.trip-content .members-table th:nth-child(4), .trip-content .members-table td:nth-child(4) { width: 23%; }
.trip-content .members-table td:nth-child(1) .row,
.trip-content .members-table td:nth-child(2),
.trip-content .members-table td:nth-child(3) { white-space: nowrap; }
.trip-content .split:has(.members-table) { grid-template-columns: minmax(0, 1.7fr) minmax(300px, .85fr); gap: 24px; }
.trip-content .split:has(.members-table) > section .card-head h3 { font-size: 21px; }
.trip-content .split:has(.members-table) aside .card > h3 { font-size: 20px; }
.trip-content .split:has(.members-table) aside .switch { font-size: 14px; }
.trip-content .members-table td:nth-child(1) .row { flex-wrap: nowrap; }
.trip-content .members-table td:nth-child(1) b { white-space: nowrap; }
.trip-content .members-table .switch { font-size: 14px; font-weight: 400; }

/* Thông tin chuyến: đặt giới hạn vừa phải cho các trường dài. */
.required-mark { margin-inline-start: 3px; color: #b42318; font-size: 18px; font-weight: 700; line-height: 1; vertical-align: -1px; }
.trip-content #f { width: 100%; }
.trip-content #f > .card { max-width: none; }
#f .trip-name-row { display: grid; grid-template-columns: minmax(0,560px) minmax(0,1fr); gap: 24px; align-items: center; }
#f .trip-name-row > .field { width: 100%; max-width: 560px; min-width: 0; }
.trip-content #f .trip-date-fields { max-width: 590px; gap: 16px; }
.trip-content #f .trip-date-fields .date-time-fields { grid-template-columns: 170px 96px; gap: 8px; }
.trip-content #f .kv > div { grid-template-columns: 135px minmax(0,1fr); }
#f .budget-total-field { width: max-content; max-width: 100%; }
#f .budget-total-field .field .lb { white-space: nowrap; }
#f .budget-total-field .input-affix { width: 190px; max-width: 100%; }
#f .budget-policy { display: grid; grid-template-columns: max-content max-content 150px; gap: 12px; align-items: end; justify-content: start; }
#f .budget-policy fieldset { grid-column: 1 / span 2; width: max-content; max-width: 100%; min-width: 0; }
#f .budget-policy .over-limit-field { grid-column: 3; align-self: end; width: 150px; max-width: 100%; min-width: 0; }
#f .budget-policy .over-limit-field .field .lb { white-space: nowrap; }
#f .budget-policy .over-limit-field .input-affix { width: 120px; max-width: 100%; }
#f .budget-policy .over-limit-field .input { min-width: 0; padding-right: 36px; }
.trip-content #f .budget-modes { display: grid; grid-template-columns: max-content max-content; width: max-content; gap: 12px; }
.trip-content #f .budget-modes .choice { flex: none; width: max-content; max-width: 100%; min-height: 48px; align-items: center; padding: 10px 12px; }
.trip-content #f .over-limit-field { max-width: 180px; }
.trip-content #f .expense-fields { grid-template-columns: repeat(4, 190px); gap: 14px 16px; }
.trip-content #f .expense-fields .field { width: 190px; max-width: 100%; }
.trip-content #f .arrive-fields { grid-template-columns: minmax(0,190px) minmax(0,135px) minmax(0,110px); gap: 12px; }
.trip-content #f .arrive-fields > .field:first-child { width: 190px; max-width: 100%; }
.trip-content #f .arrive-fields .select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23244A40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 14px 14px; }
@media (max-width: 1100px) {
  .trip-content #f .expense-fields { grid-template-columns: repeat(2, 190px); }
  #f .budget-policy { grid-template-columns: minmax(0,1fr); align-items: stretch; gap: 12px; }
  #f .budget-policy fieldset { grid-column: 1; width: 100%; }
  #f .budget-policy .over-limit-field { grid-column: 1; }
  #f .trip-name-row { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 900px) {
  .trip-content #f .arrive-fields { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .trip-content #f .expense-fields,
  .trip-content #f .arrive-fields { grid-template-columns: minmax(0,1fr); }
  .trip-content #f .arrive-fields > .field:first-child { width: 190px; }
  .trip-content #f .trip-date-fields .date-time-fields { grid-template-columns: minmax(0,1fr) 112px; }
  .trip-content .members-table th,
  .trip-content .members-table td { padding-inline: 5px; }
  .trip-content .members-table td:nth-child(1) .row,
  .trip-content .members-table td:nth-child(2),
  .trip-content .members-table td:nth-child(3) { white-space: normal; }
}
@media (max-width: 900px) {
  .trip-content .split:has(.members-table) { grid-template-columns: minmax(0, 1fr); }
}
