/* ═══════════════════════════════════════════════════════════════════════════
   Trip assistant — design system
   One accent, flat cards with hairline borders, one icon family, an 8-pt rhythm.
   City colours appear only as small marks (icon tiles, day strip, route bar), never as page chrome.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ───────── tokens ───────── */
:root {
  --bg: #f5f6f8; --surface: #ffffff; --surface-2: #f0f2f5; --surface-3: #e8ebf0;
  --ink: #12161d; --ink-2: #394150; --muted: #657084;
  --line: #e3e6ec; --line-2: #edf0f4;
  --accent: #3358e6; --accent-ink: #2447c9; --accent-soft: #eaefff; --on-accent: #ffffff;
  --good: #0c7a55; --good-soft: #e2f4ec;
  --warn: #8a5300; --warn-soft: #fcf1dc;
  --crit: #b3261e; --crit-soft: #fce9e7;
  --pop: 0 8px 30px -8px rgba(15, 23, 42, .28);
  --r: 16px; --r-m: 12px; --r-s: 10px;
  --nav-h: 62px;
  --gap: 16px;
  --font: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1016; --surface: #141a22; --surface-2: #1b222c; --surface-3: #232c38;
    --ink: #e9edf3; --ink-2: #c3ccd8; --muted: #8d99ab;
    --line: #262f3b; --line-2: #1e2630;
    --accent: #8aa4ff; --accent-ink: #a9bbff; --accent-soft: #1a2342; --on-accent: #0b1020;
    --good: #55c79b; --good-soft: #10281f;
    --warn: #e3a64f; --warn-soft: #2c2110;
    --crit: #f08a86; --crit-soft: #2e1618;
    --pop: 0 10px 34px -8px rgba(0, 0, 0, .7);
  }
}

/* ───────── base ───────── */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; max-width: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); letter-spacing: -.003em; -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: 24px; } h2 { font-size: 17px; } h3 { font-size: 15px; }
p { margin: 0; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; } .xs { font-size: 12px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.grow { flex: 1; min-width: 0; }
.boot { display: grid; place-items: center; min-height: 100dvh; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* grid/flex children must be allowed to shrink, otherwise horizontally scrolling strips widen the whole page */
.today-grid > *, .plan-layout > *, .cols > *, .stack > *, .grow, .main > * { min-width: 0; }

/* ───────── shell ───────── */
.app { min-height: 100dvh; }
.main { max-width: 1120px; margin: 0 auto; padding: 16px 16px calc(var(--nav-h) + 32px + env(safe-area-inset-bottom)); }
.page-head { display: flex; align-items: flex-end; gap: 12px; margin: 4px 2px 18px; }
.page-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.nav .brand, .nav .spacer, .nav .nav-foot { display: none; }
.nav a {
  flex: 1; min-width: 0; min-height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 10.5px; font-weight: 600; color: var(--muted); text-decoration: none; position: relative;
}
.nav a .icon { width: 22px; height: 22px; }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"]::before { content: ''; position: absolute; top: 0; left: 50%; width: 22px; height: 3px; margin-left: -11px; border-radius: 0 0 3px 3px; background: var(--accent); }
.nav a .dot { position: absolute; top: 9px; left: calc(50% + 7px); width: 9px; height: 9px; border-radius: 99px; background: var(--crit); border: 2px solid var(--surface); }

@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 244px minmax(0, 1fr); }
  .main { padding: 32px 40px 56px; width: 100%; }
  .page-head { margin-bottom: 22px; }
  .nav {
    position: sticky; top: 0; height: 100dvh; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px;
    border-top: 0; border-right: 1px solid var(--line); padding: 24px 14px; background: var(--surface); backdrop-filter: none;
  }
  .nav .brand { display: flex; padding: 0 8px 22px; }
  .nav .brand b { display: block; font-size: 16px; letter-spacing: -.02em; }
  .nav .brand span { font-size: 12px; color: var(--muted); font-weight: 400; }
  .nav a { flex: 0 0 auto; min-height: 44px; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 12px; border-radius: var(--r-m); font-size: 14.5px; font-weight: 550; }
  .nav a:hover { background: var(--surface-2); color: var(--ink); }
  .nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
  .nav a[aria-current="page"]::before { display: none; }
  .nav a .dot { top: 15px; left: 28px; }
  .nav .spacer { display: block; flex: 1; }
  .nav .nav-foot { display: block; padding: 8px; font-size: 12px; color: var(--muted); }
}

/* ───────── primitives ───────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card.pad { padding: 16px; }
.stack { display: flex; flex-direction: column; gap: var(--gap); }
.stack.tight { gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.section-title { display: flex; align-items: center; gap: 8px; margin: 26px 2px 10px; }
.section-title h2 { font-size: 14px; font-weight: 650; color: var(--ink-2); }
.section-title .count { color: var(--muted); font-size: 13px; font-weight: 500; }
.divider { height: 1px; background: var(--line-2); margin: 12px 0; border: 0; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; }

/* icon tile: the item type, tinted with the city colour */
.ticon { --c: var(--accent); flex: none; display: inline-grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 8px 15px;
  border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); color: var(--ink);
  font-weight: 550; font-size: 14px; text-decoration: none; line-height: 1.2;
  transition: background .12s, border-color .12s, transform .06s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent); filter: brightness(1.07); }
.btn.danger { color: var(--crit); }
.btn.sm { min-height: 36px; padding: 5px 12px; font-size: 13px; border-radius: var(--r-s); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-m); background: transparent; color: var(--muted); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* equal-size action tiles (map, directions, taxi, ticket, call, app) */
.acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: 8px; }
.act {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 62px; padding: 8px 4px;
  border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); color: var(--ink-2);
  font-size: 12px; font-weight: 600; text-decoration: none; text-align: center; line-height: 1.2;
  transition: background .12s, transform .06s;
}
.act:hover { background: var(--surface-2); }
.act:active { transform: scale(.97); }
.act .icon { width: 22px; height: 22px; color: var(--accent); }
.act.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.act.primary .icon { color: var(--on-accent); }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; line-height: 1.6; }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.crit { background: var(--crit-soft); color: var(--crit); }
.chip.accent { background: var(--accent-soft); color: var(--accent-ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 5px 14px; font-size: 13px; white-space: nowrap; font-weight: 550; }
.pill-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-m); font-size: 13.5px; line-height: 1.5; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.crit { background: var(--crit-soft); color: var(--crit); }
.banner.good { background: var(--good-soft); color: var(--good); }
.banner.info { background: var(--accent-soft); color: var(--accent-ink); }
.banner .icon { margin-top: 2px; }
.banner b { font-weight: 650; }

/* callout: a flat note with a coloured edge instead of a loud filled box */
.callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-m); font-size: 14px; line-height: 1.55; background: var(--surface-2); color: var(--ink-2); border-left: 3px solid var(--accent); }
.callout.warn { border-color: var(--warn); background: var(--warn-soft); color: var(--ink-2); }
.callout.good { border-color: var(--good); background: var(--good-soft); color: var(--ink-2); }
.callout.crit { border-color: var(--crit); background: var(--crit-soft); color: var(--ink-2); }
.callout.info { border-color: var(--accent); background: var(--accent-soft); color: var(--ink-2); }
.callout .icon { margin-top: 3px; color: var(--accent); }
.callout.warn .icon { color: var(--warn); } .callout.good .icon { color: var(--good); } .callout.crit .icon { color: var(--crit); }
.callout b, .callout strong { color: var(--ink); }
.callout .ch { font-weight: 650; display: block; margin-bottom: 2px; color: var(--ink); }

/* forms */
input[type=text], input[type=password], input[type=datetime-local], input[type=number], input[type=time], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
textarea { min-height: 88px; resize: vertical; }
label.field { display: block; font-size: 12.5px; color: var(--muted); font-weight: 550; }
label.field > :not(span) { margin-top: 6px; color: var(--ink); font-weight: 400; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ───────── timeline rows ───────── */
.tl { display: flex; flex-direction: column; }
.tl-item { --c: var(--accent); display: grid; grid-template-columns: 54px 1fr; gap: 0 10px; width: 100%; text-align: left; background: none; border: 0; padding: 0; }
.tl-time { padding: 16px 0 0; text-align: right; font-size: 13px; font-weight: 650; color: var(--ink-2); line-height: 1.25; font-variant-numeric: tabular-nums; }
.tl-time small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; margin-top: 2px; }
.tl-body { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .12s, background .12s; }
.tl-item:hover .tl-body { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.tl-item:active .tl-body { background: var(--surface-2); }
.tl-main { flex: 1; min-width: 0; }
.tl-title { font-weight: 650; font-size: 15px; line-height: 1.35; }
.tl-sub { margin-top: 2px; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tl-item.idea .tl-body { border-style: dashed; background: transparent; }
.tl-item.done .tl-body { opacity: .5; }
.tl-item.now .tl-body { border-color: var(--c); background: color-mix(in srgb, var(--c) 7%, var(--surface)); }

/* ───────── hero: the next thing to do ───────── */
.hero { --c: var(--accent); position: relative; overflow: hidden; padding: 20px; border-radius: 20px; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 82%, #000), color-mix(in srgb, var(--c) 58%, #000)); box-shadow: var(--pop); }
.hero .eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .06em; font-weight: 650; opacity: .9; }
.hero .htitle { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.hero .ticon { background: rgba(255, 255, 255, .18); color: #fff; }
.hero h2 { font-size: 21px; line-height: 1.25; }
.hero .when { opacity: .92; font-size: 14px; margin-top: 4px; }
.hero .count { font-size: 38px; font-weight: 750; letter-spacing: -.035em; margin: 14px 0 0; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero .count small { font-size: 16px; font-weight: 550; opacity: .85; letter-spacing: 0; }
.hero .leave { margin-top: 12px; padding: 10px 12px; background: rgba(255, 255, 255, .16); border-radius: var(--r-m); font-size: 14px; }
.hero .leave.urgent { background: #fff; color: #b42318; font-weight: 650; }
.hero .tline { margin-top: 8px; padding: 9px 12px; background: rgba(255, 255, 255, .13); border-radius: var(--r-m); font-size: 13.5px; }
.hero .acts { margin-top: 16px; }
.hero .act { background: rgba(255, 255, 255, .15); border-color: transparent; color: #fff; }
.hero .act:hover { background: rgba(255, 255, 255, .25); }
.hero .act .icon { color: #fff; }

.today-grid { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .today-grid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); align-items: start; gap: 28px; } }

.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--good); border-radius: 99px; }

/* ───────── plan ───────── */
.citybar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; gap: 3px; margin: 2px 0 6px; }
.citybar > div { background: var(--c); font-size: 0; }
.citylegend { display: flex; gap: 4px 12px; flex-wrap: wrap; margin-bottom: 14px; font-size: 12px; color: var(--muted); }
.citylegend span { display: inline-flex; align-items: center; gap: 6px; }
.citylegend i { width: 8px; height: 8px; border-radius: 99px; background: var(--c); }
.plan-layout { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .plan-layout { grid-template-columns: 252px minmax(0, 1fr); gap: 28px; align-items: start; } }
.daystrip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
.daystrip::-webkit-scrollbar { display: none; }
.day-pill {
  --c: var(--accent); flex: none; scroll-snap-align: center; width: 56px; padding: 8px 0; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1px; position: relative;
}
.day-pill .wd { font-size: 11px; color: var(--muted); font-weight: 550; }
.day-pill .dn { font-size: 18px; font-weight: 700; line-height: 1.2; }
.day-pill .ct { font-size: 10.5px; color: var(--c); font-weight: 650; }
.day-pill[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; }
.day-pill[aria-pressed="true"] .wd, .day-pill[aria-pressed="true"] .ct { color: rgba(255, 255, 255, .9); }
.day-pill.today:not([aria-pressed="true"]) { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.day-pill .flag { position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 99px; background: var(--crit); }
.daylist { display: none; }
@media (min-width: 900px) {
  .daystrip { display: none; }
  .daylist { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 24px; max-height: calc(100dvh - 48px); overflow: auto; }
  .daylist .grp { display: flex; align-items: center; gap: 8px; margin: 14px 8px 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
  .daylist .grp::before { content: ''; width: 8px; height: 8px; border-radius: 99px; background: var(--c); }
  .daylist button { --c: var(--accent); display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; text-align: left; padding: 6px 12px; border: 1px solid transparent; background: transparent; border-radius: var(--r-m); }
  .daylist button:hover { background: var(--surface-2); }
  .daylist button[aria-pressed="true"] { background: var(--surface); border-color: var(--line); }
  .daylist .n { font-weight: 700; width: 38px; font-variant-numeric: tabular-nums; }
  .daylist .t { font-size: 13px; color: var(--muted); }
}
.day-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.day-head .big { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }

/* ───────── lists ───────── */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; background: none; text-align: left; width: 100%; border-bottom: 1px solid var(--line-2); }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--surface-2); }
.card.list { overflow: hidden; }
.cols { display: grid; gap: var(--gap); }
@media (min-width: 760px) { .cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .cols.three { grid-template-columns: 1fr 1fr 1fr; } }

.kv { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 12px; align-items: center; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: 13px; } .kv dd { margin: 0; font-family: var(--mono); word-break: break-all; }
.kv .btn { min-height: 32px; padding: 2px 9px; }
.launch { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }

/* ───────── sheet / overlay ───────── */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(8, 12, 18, .5); animation: fade .15s ease-out; overscroll-behavior: contain; }
.sheet { width: 100%; max-width: 640px; max-height: 94dvh; overflow-y: auto; background: var(--surface); border-radius: 22px 22px 0 0; animation: rise .2s ease-out; overscroll-behavior: contain;
  padding: 8px 18px calc(24px + env(safe-area-inset-bottom)); box-shadow: var(--pop); }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 4px auto 14px; }
.sheet-head { display: flex; gap: 12px; align-items: flex-start; }
.sheet-head h2 { font-size: 21px; line-height: 1.25; }
.sheet.center { max-width: 520px; }
@media (min-width: 900px) {
  .overlay { align-items: stretch; justify-content: flex-end; }
  .sheet { width: 560px; max-width: 100%; max-height: none; height: 100%; border-radius: 0; padding-top: 24px; animation: slide .2s ease-out; }
  .sheet .grab { display: none; }
}
@keyframes fade { from { opacity: 0 } }
@keyframes rise { from { transform: translateY(24px); opacity: .4 } }
@keyframes slide { from { transform: translateX(32px); opacity: .4 } }

/* sheet sections: a heading + content, separated by whitespace instead of nested boxes */
.sec { display: flex; flex-direction: column; gap: 10px; }
.sec-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .01em; }
.sec-h .icon { width: 16px; height: 16px; }
.sec-h .grow { flex: 1; }
.kicker { font-size: 12px; font-weight: 650; letter-spacing: .02em; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.fact { background: var(--surface); padding: 10px 12px; }
.fact .fl { font-size: 11.5px; color: var(--muted); font-weight: 550; }
.fact .fv { font-size: 15px; font-weight: 700; margin-top: 1px; font-variant-numeric: tabular-nums; }
.fact.accent .fv { color: var(--accent-ink); } .fact.crit .fv { color: var(--crit); }
.block { padding: 14px; border-radius: var(--r-m); background: var(--surface-2); }
.block .head { display: flex; align-items: center; gap: 8px; font-weight: 650; margin-bottom: 4px; }
.seat { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: var(--surface-2); font-size: 13px; }
.seat b { font-family: var(--mono); }
.tiplist { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.tiplist li { margin: 4px 0; }

/* ───────── doc viewer ───────── */
.viewer { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; background: #0a0c10; color: #fff; animation: fade .12s; }
.viewer.qr { background: #fff; color: #000; }
.viewer-bar { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 6px; padding-top: max(8px, env(safe-area-inset-top)); background: rgba(20, 24, 31, .94); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.viewer.qr .viewer-bar { background: #f3f4f6; border-color: #e5e7eb; }
.viewer-bar .title { flex: 1; min-width: 0; font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-bar .icon-btn { color: inherit; opacity: .85; } .viewer-bar .icon-btn:hover { background: rgba(255, 255, 255, .12); color: inherit; opacity: 1; }
.viewer.qr .viewer-bar .icon-btn:hover { background: rgba(0, 0, 0, .07); }
.viewer-body { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; -webkit-overflow-scrolling: touch; }
.viewer-body canvas, .viewer-body img { max-width: 100%; height: auto; background: #fff; border-radius: 6px; box-shadow: 0 4px 24px rgba(0, 0, 0, .4); }
.viewer-body pre { align-self: stretch; margin: 0; white-space: pre-wrap; word-break: break-word; font: 13.5px/1.6 var(--font); background: #fff; color: #111; border-radius: var(--r-m); padding: 16px; }
.viewer-msg { margin: auto; text-align: center; opacity: .8; padding: 20px; }

.taxi { background: #fff; color: #000; min-height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.taxi .es { font-size: 15px; color: #444; }
.taxi .addr { font-size: 28px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.taxi .name { font-size: 17px; color: #333; }
.phr { display: grid; gap: 8px; }
.phr div { padding: 10px 12px; border-radius: var(--r-m); background: #f3f4f6; color: #000; font-size: 16px; line-height: 1.4; }
.phr small { display: block; color: #666; font-size: 12.5px; }

/* ───────── misc ───────── */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; max-width: min(92vw, 420px);
  padding: 11px 16px; border-radius: var(--r-m); background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 550; box-shadow: var(--pop); animation: rise .2s; }
@media (min-width: 900px) { .toast { bottom: 28px; } }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.login .card { width: min(100%, 380px); padding: 28px 24px; }
.login img { width: 64px; height: 64px; border-radius: 16px; }
.offline-bar { position: sticky; top: 0; z-index: 15; padding: 7px 12px; background: var(--warn-soft); color: var(--warn); font-size: 12.5px; text-align: center; font-weight: 550; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; width: 100%; background: none; border: 0; text-align: left; border-bottom: 1px solid var(--line-2); }
.check:last-child { border-bottom: 0; }
.check .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); flex: none; margin-top: 1px; display: grid; place-items: center; color: #fff; }
.check[aria-checked="true"] .box { background: var(--good); border-color: var(--good); }
.check[aria-checked="true"] .txt { color: var(--muted); text-decoration: line-through; }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); }
.guide { padding: 16px; }
.guide h3 { margin-bottom: 6px; }
.guide ul { margin: 6px 0 12px; padding-left: 18px; font-size: 13.5px; }

.prep-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-bottom: 1px solid var(--line-2); }
.prep-item:last-child { border-bottom: 0; }
.prep-item .state { position: relative; flex: none; width: 38px; height: 38px; margin: -6px -6px -6px -8px; border: 0; background: none; padding: 0; display: grid; place-items: center; color: #fff; }
.prep-item .state::before { content: ''; position: absolute; inset: 6px; border-radius: 99px; border: 2px solid var(--line); }
.prep-item .state .icon { position: relative; }
.prep-item.done .state::before { background: var(--good); border-color: var(--good); }
.prep-item.auto .state { cursor: default; }
.prep-item .ttl { font-weight: 650; }
.prep-item.done .ttl { color: var(--muted); }
.switch { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line-2); width: 100%; background: none; text-align: left; }
.switch:last-child { border-bottom: 0; }
.switch .knob { flex: none; width: 46px; height: 28px; border-radius: 99px; background: var(--surface-3); position: relative; transition: background .15s; }
.switch .knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 99px; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch[aria-checked="true"] .knob { background: var(--good); }
.switch[aria-checked="true"] .knob::after { transform: translateX(18px); }

/* ───────── tips ───────── */
.tipcards details > summary { list-style: none; display: flex; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; }
.tipcards details > summary::-webkit-details-marker { display: none; }
.tipcards details[open] > summary .chev { transform: rotate(180deg); }
.tipcards details[open] > summary { border-bottom: 1px solid var(--line-2); }
.chev { transition: transform .15s; color: var(--muted); }
.tip-body { padding: 16px; display: flex; flex-direction: column; gap: 18px; }
.blk-title { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.trows { border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.trow { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2px 12px; padding: 11px 13px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.trow:last-child { border-bottom: 0; }
.trow .ta { font-weight: 650; } .trow .tv { text-align: right; font-weight: 650; color: var(--accent-ink); }
.trow .tn { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 14px; line-height: 1.55; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 22px; height: 22px; margin-top: 2px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.bullets { margin: 0; padding-left: 18px; font-size: 14px; } .bullets li { margin: 5px 0; }
.links { display: flex; flex-direction: column; gap: 2px; }
.links a { display: flex; gap: 8px; align-items: center; min-height: 36px; font-size: 13.5px; text-decoration: none; }
.links a span { text-decoration: underline; text-underline-offset: 2px; }
.nearby .chips { padding-bottom: 2px; }

/* item notes (shared/md.js): paragraphs, bullets, small headings */
.md { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.md p { margin: 0 0 8px; } .md > :last-child { margin-bottom: 0; }
.md h4 { margin: 14px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.md h4:first-child { margin-top: 0; }
.md ul, .md ol { margin: 0 0 8px; padding-left: 18px; } .md li { margin: 3px 0; }
.md strong { color: var(--ink); font-weight: 650; }
.md blockquote { margin: 0 0 8px; padding: 6px 10px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--r-s, 6px) var(--r-s, 6px) 0; }
.md a { color: var(--accent-ink); text-decoration: underline; }

/* Spanish page: phrase cards you can hold up (public/js/views/Spanish.js) */
.es-chips { display: flex; gap: 8px; overflow-x: auto; position: sticky; top: 0; z-index: 6; margin: 0 -16px 6px; padding: 8px 16px; background: var(--bg); scrollbar-width: none; }
.es-chips::-webkit-scrollbar { display: none; }
.es-chips .pill-btn { flex: 0 0 auto; }
.es-sec { --tone: var(--accent); margin: 18px 0 8px; scroll-margin-top: 58px; }
.es-sec.tone-crit, .es-sec.tone-crit2 { --tone: var(--crit); }
.es-sec.tone-warn { --tone: var(--warn); }
.es-sec.tone-good { --tone: var(--good); }
.es-sec.tone-violet { --tone: #7c4dff; }
.es-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.es-title h2::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 99px; margin-right: 8px; background: var(--tone); }
.es-title .sub { color: var(--muted); font-size: 13px; }
.es-calls { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.es-calls .btn { flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px; height: auto; padding: 8px 14px; text-align: left; }
.es-callnote { font-size: 11.5px; font-weight: 450; opacity: .9; }
.phrase-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ph { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--tone); border-radius: var(--r-m); color: var(--ink); min-width: 0; }
.ph:active { transform: scale(.985); }
.ph-es { font-size: 17px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ph-say { font-size: 18px; font-weight: 700; color: var(--tone); overflow-wrap: anywhere; }
.ph-ko { font-size: 14px; color: var(--ink); }
.ph-en { font-size: 12.5px; font-style: italic; color: var(--muted); }
.ph-note { margin-top: 6px; padding-top: 6px; border-top: 1px dotted var(--line); font-size: 12.5px; color: var(--ink-2); width: 100%; }
.es-show { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: #0b0f16; color: #fff; }
.es-x { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.es-big { font-size: clamp(30px, 9vw, 64px); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.es-say { font-size: clamp(22px, 6vw, 40px); font-weight: 700; color: #9db4ff; }
.es-ko { font-size: clamp(18px, 4.6vw, 28px); }
.es-en { font-size: 16px; font-style: italic; color: rgba(255, 255, 255, .7); }
.es-hint { position: absolute; bottom: max(18px, env(safe-area-inset-bottom)); font-size: 12px; color: rgba(255, 255, 255, .5); }
.numgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.num { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); min-width: 0; }
.n-es { font-size: 12.5px; color: var(--muted); } .n-say { font-size: 16px; font-weight: 700; color: var(--accent-ink); } .n-n { font-size: 12px; color: var(--muted); }
.vowels { background: #141a24; color: #fff; border-radius: var(--r-l, 16px); padding: 16px; }
.v-note { font-size: 13px; color: rgba(255, 255, 255, .72); margin-bottom: 12px; }
.v-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.v-row div { display: flex; flex-direction: column; align-items: center; padding: 10px 0; border-radius: var(--r-m); background: rgba(255, 255, 255, .08); }
.v-row b { font-size: 24px; font-family: ui-monospace, monospace; } .v-row span { font-size: 16px; color: #9db4ff; }
.letter-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.letter { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); min-width: 0; }
.l-top { display: flex; gap: 12px; align-items: flex-start; }
.l-sym { flex: 0 0 auto; min-width: 42px; padding: 6px 8px; text-align: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font: 700 18px ui-monospace, monospace; }
.letter ul { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13.5px; }
.letter li { margin: 3px 0; } .letter code { font: 600 13px ui-monospace, monospace; }
.letter li b { color: var(--accent-ink); }
.es-foot { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.es-foot p { margin: 0 0 8px; }
@media (max-width: 599px) {
  .phrase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ph { padding: 10px 11px; }
  .ph-es { font-size: 15px; } .ph-say { font-size: 16px; } .ph-ko { font-size: 13.5px; } .ph-note { font-size: 12px; }
  .letter-grid { grid-template-columns: 1fr; }
}

/* to-do list (More > 할 일) and Spots links */
.todo-row { display: flex; align-items: center; gap: 4px; padding: 4px 10px 4px 4px; border-bottom: 1px solid var(--line-2); }
.todo-row:last-child { border-bottom: 0; }
.todo-row > .ticon { margin: 0 8px 0 10px; flex: 0 0 auto; }
.todo-body { flex: 1; min-width: 0; display: block; text-align: left; border: 0; background: none; padding: 8px 0; color: var(--ink); }
.todo-body .grow { display: block; min-width: 0; }
.todo-text { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.todo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.chip.crit { background: var(--crit-soft); color: var(--crit); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.tlink { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted); }
.tlink .icon { vertical-align: -2px; color: var(--accent-ink); }
.todo-row .check { width: auto; flex: 0 0 auto; padding: 12px; border-bottom: 0; align-items: center; }
/* fade the right edge of scrolling chip rows so a hidden chip is visible as "more" */
.chips, .es-chips { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
.trow.long .ta, .trow.long .tv, .trow.long .tn { grid-column: 1 / -1; text-align: left; }
.trow.long .tv { font-weight: 500; font-size: 13px; color: var(--ink-2); }
.trow.long .tn { color: var(--ink); font-size: 13px; }
.ph-note { color: var(--ink-2); }
.md-img { display: block; max-width: 100%; height: auto; margin: 6px 0; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }

/* tab-like chip rows wrap instead of scrolling sideways: a hidden horizontal scroll cannot be used with a mouse */
.chips, .es-chips { flex-wrap: wrap; overflow-x: visible; -webkit-mask-image: none; mask-image: none; }
.es-chips { position: static; background: none; margin: 0 0 10px; padding: 0; }
.es-body { margin-top: 4px; }

/* Shop menu: city tabs, place cards with pictures, route cards */
.shop-tabs { margin-bottom: 12px; }
.shop-head { border-left: 5px solid var(--c, var(--accent)); }
.place-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 10px; }
@media (min-width: 700px) { .place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .place-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pl { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.pl-img { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.pl-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pl-kind { position: absolute; left: 8px; top: 8px; background: rgba(255, 255, 255, .92); color: #12161d; }
.pl-day { position: absolute; right: 8px; top: 8px; }
.pl-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pl-body h3 { font-size: 16px; overflow-wrap: anywhere; }
.pl-name { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.pl-body p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.pl-what { font-weight: 600; color: var(--ink); }
.pl-why { color: var(--ink-2); }
.pl-tip { display: flex; gap: 6px; align-items: flex-start; color: var(--ink-2); background: var(--surface-2); border-radius: 8px; padding: 6px 8px; }
.pl-tip .icon { flex: 0 0 auto; margin-top: 3px; }
.pl-facts { margin: 2px 0 0; display: grid; gap: 3px; font-size: 12.5px; }
.pl-facts > div { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; }
.pl-facts dt { color: var(--muted); } .pl-facts dd { margin: 0; overflow-wrap: anywhere; }
.pl-actions { gap: 6px; margin-top: 4px; }
.pl-src { margin-top: 2px; overflow-wrap: anywhere; }
.route { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.route-stops { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: s; }
.route-stops li { counter-increment: s; display: flex; align-items: center; gap: 4px; }
.route-stops li::before { content: counter(s); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; }
.route-stops .pill-btn.plan { border-style: dashed; }
.plan-days { display: flex; flex-direction: column; gap: 10px; }
.plan-day { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 13px; }
.plan-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-btn.sm { min-height: 36px; padding: 3px 10px; font-size: 12.5px; }
.pl-img.none { aspect-ratio: auto; height: 58px; }

/* review round: Shop navigation and card density */
.shop-tabs { position: sticky; top: 0; z-index: 7; background: var(--bg); padding: 6px 0 8px; margin: 0 0 8px; }
@media (max-width: 599px) {
  .shop-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .shop-tabs .pill-btn { padding: 0 2px; font-size: 12.5px; justify-content: center; min-width: 0; }
  .pl-img { aspect-ratio: 2 / 1; }
}
.plan-day { grid-template-columns: 78px minmax(0, 1fr); }
.plan-day b { white-space: nowrap; }
.pl-body { flex: 1; }
.pl-actions { margin-top: auto; padding-top: 4px; }
.pl-src { font-size: 12.5px; color: var(--ink-2); }
.shop-head .intro { margin: 8px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.55; }
.shop-head .intro li { margin: 3px 0; }
@media (min-width: 900px) { .route, .plan-days { max-width: 820px; } }
.to-top { position: fixed; right: 14px; bottom: calc(var(--nav-h, 64px) + 14px + env(safe-area-inset-bottom)); z-index: 15; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
@media (min-width: 900px) { .to-top { bottom: 24px; } }
.plan-chips .pill-btn { max-width: 100%; white-space: normal; text-align: left; min-width: 0; height: auto; }

.kind-chips { scroll-margin-top: 58px; }
html { scroll-behavior: auto; }

/* Shop list rows (compact) and place sheet */
.place-list { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
@media (min-width: 900px) { .place-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.pl-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 16px; gap: 12px; align-items: center; width: 100%; min-height: 76px; padding: 8px 10px 8px 8px; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; scroll-margin-top: 64px; }
.pl-row:hover { background: var(--surface-2); }
.pl-row:active { background: var(--surface-2); }
.pl-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pl-thumb { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.pl-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pl-title { font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.pl-row .pl-what { font-size: 13px; font-weight: 400; color: var(--ink-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 1px; }
.pl-row .pl-kind { position: static; background: var(--surface-2); color: var(--ink-2); }
.pl-photo { margin: 0; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.pl-photo img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.pl-photo figcaption { padding: 6px 10px; }
.pl-facts.big { font-size: 14px; gap: 6px; }
.pl-facts.big > div { grid-template-columns: 44px minmax(0, 1fr); }
@media (min-width: 900px) { .pl-photo img { max-height: 320px; } }
.pl-title, .pl-row .pl-what, .plan-chips .pill-btn { word-break: keep-all; }
.tl-photo { flex: none; width: 38px; height: 38px; border-radius: 11px; object-fit: cover; background: var(--surface-2); }
.map-embed iframe { width: 100%; height: 280px; border: 1px solid var(--line); border-radius: 12px; display: block; background: var(--surface-2); }
@media (min-width: 900px) { .map-embed iframe { height: 340px; } }
.sort-chips { align-items: center; margin: 8px 0 4px; }

/* Tips: the open card keeps its header on screen, long cards get a table of contents and a close button */
.tipcards details[open] > summary { position: sticky; top: 0; z-index: 5; background: var(--surface); border-radius: var(--r) var(--r) 0 0; }
.tipcards details { scroll-margin-top: 8px; }
.blk-anchor { scroll-margin-top: 76px; }
.tip-toc { margin: -4px 0 2px; }
.tip-close { align-self: center; min-height: 40px; padding: 0 18px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chip-label { align-self: center; min-width: 28px; }

/* review round (UX): readable small text, aligned sheet buttons, tighter tabs */
.nav a { font-size: 11.5px; }
@media (min-width: 900px) { .nav a { font-size: 14.5px; } }
.day-pill .wd { font-size: 12px; }
.day-pill .ct { font-size: 11.5px; }
.btn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.btn-grid .btn { justify-content: center; text-align: center; min-height: 44px; }
@media (max-width: 380px) { .shop-tabs .pill-btn { font-size: 12px; } }
@media (max-width: 599px) { .more-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .more-tabs .pill-btn { justify-content: center; padding: 0 4px; } }
.sheet a:not(.btn):not(.act) { padding: 4px 0; display: inline-block; }
/* several pictures of one place: swipe sideways, the next picture peeks in */
.pl-gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -2px; padding: 0 2px 4px; scrollbar-width: none; }
.pl-gallery::-webkit-scrollbar { display: none; }
.pl-gallery .pl-photo { flex: 0 0 88%; scroll-snap-align: start; }
@media (min-width: 900px) { .pl-gallery .pl-photo { flex-basis: 60%; } }
.chip.rating { color: var(--warn); background: var(--warn-soft); font-weight: 700; }
/* product cards in the Shop guide */
.tipcards details.prod > summary { align-items: flex-start; }
.tipcards details.prod .pl-thumb { flex: none; }
.chip.crit { background: var(--crit-soft, #fde8e8); color: var(--crit, #a12a2a); }
.chip.dist { background: var(--surface-2); color: var(--ink-2); }
.gift-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line-2); }
.gift-item:first-of-type { border-top: 0; }
.gift-item .pl-thumb { flex: none; width: 64px; height: 64px; }
.gift-item .pl-facts { margin: 6px 0; }
/* traveller tools (home / SOS / FX) */
.btn.danger-fill { background: var(--crit); border-color: var(--crit); color: #fff; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.taxi-show .es { overflow-wrap: anywhere; }
.tools { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.tools .act { padding: 6px 2px; font-size: 12px; }
.tools .act { min-height: 64px; }
.sunline { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; color: var(--ink-2); margin: 0 2px; }
.sunline b { color: var(--ink); font-weight: 650; }
/* "how do we get to the next stop" between two plan rows */
.leg { display: flex; align-items: center; gap: 6px; margin: -2px 0 2px 64px; padding: 6px 12px; font-size: 12.5px; color: var(--accent-ink); background: var(--accent-soft); border-radius: 99px; text-decoration: none; max-width: calc(100% - 64px); min-height: 32px; width: fit-content; }
.leg span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 599px) { .leg { margin-left: 56px; max-width: calc(100% - 56px); } }
.chip.crit { background: var(--crit-soft); color: var(--crit); }
.hours-grid { gap: 2px; }
.hours-grid > div { padding: 3px 6px; border-radius: 8px; }
.hours-grid > div.now { background: var(--accent-soft); font-weight: 650; }
.tl-badges { flex-wrap: wrap; min-width: 0; }
.tl-badges .chip, .pl-meta .chip { max-width: 100%; white-space: normal; }
