/* ===== Tokens ===== */
:root {
  --bg: #E7ECF1;
  --surface: #FFFFFF;
  --surface-2: #F3F6F9;
  --ink: #13233A;
  --ink-2: #4A5B72;
  --ink-3: #72839A;
  --line: #D2DAE3;
  --line-2: #E3E9EF;
  --signal: #FFC72C;
  --signal-ink: #13233A;
  --signal-soft: #FFF2C7;
  --board: #0F1C2E;
  --board-2: #1A2C45;
  --board-ink: #EAF0F7;
  --board-dim: #8EA2BC;
  --gate: #1F5FD1;
  --go: #0B8550;
  --stop: #C8372B;
  --stop-soft: #FBE7E4;
  --c-flight: #13233A;
  --c-stay: #1F5FD1;
  --c-activity: #0B8550;
  --c-food: #C2601A;
  --c-transport: #7446BD;
  --c-note: #6A7B90;
  --map-sea: #F1F5F9;
  --map-land: #D5DDE6;
  --map-edge: #FFFFFF;
  --map-trip: #BCD0EE;
  --map-visited: #FFC72C;
  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink), 0 0 0 7px var(--signal);
  --font-text: "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --tabbar-h: 64px;
  --topbar-h: 56px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09121E; --surface: #101D2E; --surface-2: #16263B; --ink: #E6EDF6; --ink-2: #A5B5CA; --ink-3: #7489A3;
    --line: #243852; --line-2: #1B2C43; --signal-soft: #3A3317; --board: #050D18; --board-2: #0F1D30;
    --gate: #71A3FF; --go: #40C98B; --stop: #FF7466; --stop-soft: #3A1E1D;
    --c-flight: #FFC72C; --c-stay: #71A3FF; --c-activity: #40C98B; --c-food: #F29248; --c-transport: #AE8CF2; --c-note: #93A4B9;
    --map-sea: #0C1726; --map-land: #1E3049; --map-edge: #0C1726; --map-trip: #2F4E7C; --map-visited: #D9A51C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09121E; --surface: #101D2E; --surface-2: #16263B; --ink: #E6EDF6; --ink-2: #A5B5CA; --ink-3: #7489A3;
  --line: #243852; --line-2: #1B2C43; --signal-soft: #3A3317; --board: #050D18; --board-2: #0F1D30;
  --gate: #71A3FF; --go: #40C98B; --stop: #FF7466; --stop-soft: #3A1E1D;
  --c-flight: #FFC72C; --c-stay: #71A3FF; --c-activity: #40C98B; --c-food: #F29248; --c-transport: #AE8CF2; --c-note: #93A4B9;
  --map-sea: #0C1726; --map-land: #1E3049; --map-edge: #0C1726; --map-trip: #2F4E7C; --map-visited: #D9A51C;
  color-scheme: dark;
}

/* ===== Base ===== */
:root { box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--topbar-h) + 8px); -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-text); font-size: 16px; line-height: 1.45; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gate); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.005em; margin: 0; line-height: 1.08; }
h1 { font-size: 34px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
p { margin: 0 0 10px; }
:focus { outline: none; }
:focus-visible { box-shadow: var(--focus-ring); border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.display { font-family: var(--font-display); }
.row { display: flex; align-items: center; gap: 8px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 12px; }
.hide { display: none !important; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 24px; height: 24px; }
.flag { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

/* ===== Shell ===== */
.shell { min-height: 100vh; }
.side { display: none; }
.main { min-width: 0; }
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  height: var(--topbar-h); display: flex; align-items: center; gap: 6px;
  padding: 0 10px 0 16px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.topbar .title { font-family: var(--font-display); font-weight: 600; font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 0.01em; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--signal); display: grid; place-items: center; color: var(--signal-ink); }
.brand-mark svg { width: 17px; height: 17px; }
.sync { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); padding: 4px 8px; border-radius: 999px; border: 0; background: none; }
.sync .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.sync .lbl { white-space: nowrap; }
@media (max-width: 699px) { .sync.compact .lbl { display: none; } .sync.compact { padding: 10px; } }
.sync.ok .dot { background: var(--go); }
.sync.busy .dot { background: var(--signal); }
.sync.err .dot { background: var(--stop); }
.view { padding: 4px 16px calc(var(--tabbar-h) + 32px); max-width: 1180px; margin: 0 auto; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--surface); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.tabbar a { height: var(--tabbar-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); text-decoration: none; font-size: 12.5px; font-weight: 600; position: relative; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--signal); }
.tabbar .icon { width: 23px; height: 23px; }

@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); }
  .side {
    display: flex; flex-direction: column; gap: 4px; position: sticky; top: env(safe-area-inset-top, 0px);
    height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow: auto; padding: 16px 12px; border-right: 1px solid var(--line); background: var(--surface);
  }
  .side .brand { padding: 4px 8px 16px; }
  .side a.nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
  .side a.nav[aria-current="page"] { background: var(--signal-soft); color: var(--ink); }
  .side a.nav:hover { background: var(--surface-2); }
  .side .side-label { font-size: 13px; color: var(--ink-3); padding: 16px 10px 4px; }
  .side a.side-trip { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
  .side a.side-trip[aria-current="page"] { background: var(--surface-2); font-weight: 600; }
  .side a.side-trip .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
  .tabbar { display: none; }
  .view { padding: 8px 32px 56px; }
  .topbar { padding: 0 20px 0 32px; }
  .topbar .brand { display: none; }
  h1 { font-size: 44px; }
}

/* ===== Buttons & controls ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.btn-primary:hover { background: #F4B911; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.btn-danger { color: var(--stop); }
.btn-sm { height: 32px; padding: 0 10px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--ink); flex: none; }
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.chip[aria-pressed="true"], .chip.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.chip .icon { width: 16px; height: 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-2); white-space: nowrap; }
.badge.warn { background: var(--stop-soft); color: var(--stop); border-color: transparent; }
.badge.ok { color: var(--go); }
.badge.ai { background: var(--signal-soft); color: var(--ink); border-color: transparent; }

label.field { display: block; }
.field > span.lab { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 0 0 5px; }
.field .hint { display: block; font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font-size: 16px;
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.45; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--signal); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .grid3 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.seg button { border: 0; background: transparent; padding: 8px 12px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }

/* ===== Panels / lists ===== */
.panel { background: var(--surface); border-radius: 16px; padding: 14px; border: 1px solid var(--line-2); }
.panel + .panel { margin-top: 12px; }
.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.section-head h2 { font-size: 22px; }
.section-head .spacer + * { flex: none; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-top: 1px solid var(--line-2); }
.list > li:first-child { border-top: 0; }
.empty { padding: 22px 16px; text-align: left; color: var(--ink-2); border: 1.5px dashed var(--line); border-radius: 14px; }
.empty strong { color: var(--ink); display: block; font-size: 17px; margin-bottom: 4px; }
.warnbar { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--stop-soft); color: var(--ink); font-size: 14.5px; }
.warnbar .icon { color: var(--stop); margin-top: 1px; }
.notebar { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--signal-soft); color: var(--ink); font-size: 14.5px; }

/* ===== Departures board (hero) ===== */
.board { background: var(--board); color: var(--board-ink); border-radius: 18px; padding: 14px 14px 6px; margin-top: 6px; }
.board-head { display: flex; align-items: center; gap: 10px; padding: 0 2px 10px; }
.board-head h2 { font-size: 23px; color: var(--board-ink); }
.board-head .clock { margin-left: auto; font-family: var(--font-display); font-size: 17px; color: var(--board-dim); font-variant-numeric: tabular-nums; }
.board-head .sign { width: 30px; height: 30px; border-radius: 7px; background: var(--signal); color: var(--signal-ink); display: grid; place-items: center; }
.board-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 2px; border-top: 1px solid rgba(255,255,255,.08); color: inherit; text-decoration: none; }
.board-row:hover { background: rgba(255,255,255,.03); }
.board-time { font-family: var(--font-display); font-weight: 600; font-size: 25px; color: var(--signal); line-height: 1; letter-spacing: 0.02em; }
.board-time .ap { font-size: 15px; margin-left: 1px; }
.board-time small { display: block; font-size: 12.5px; font-family: var(--font-text); color: var(--board-dim); letter-spacing: 0; margin-top: 3px; font-weight: 500; }
.board-what { min-width: 0; }
.board-what b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-what span { display: block; font-size: 13.5px; color: var(--board-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { font-family: var(--font-display); font-weight: 600; font-size: 15px; padding: 4px 9px; border-radius: 6px; border: 1px solid rgba(255,255,255,.18); color: var(--board-ink); white-space: nowrap; text-align: center; }
.status.hot { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.status.done { color: var(--board-dim); }
.board-empty { padding: 14px 2px 16px; color: var(--board-dim); border-top: 1px solid rgba(255,255,255,.08); }
.flap { display: inline-block; }

/* ===== Trip list ===== */
.trip-row { display: grid; grid-template-columns: 6px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 14px 14px 14px 0; background: var(--surface); border-radius: 14px; text-decoration: none; color: var(--ink); border: 1px solid var(--line-2); overflow: hidden; }
.trip-row + .trip-row { margin-top: 10px; }
.trip-row .band { align-self: stretch; }
.trip-row h3 { font-size: 22px; }
.trip-row .meta { font-size: 14.5px; color: var(--ink-2); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.trip-row .when { font-family: var(--font-display); font-weight: 600; font-size: 17px; text-align: right; line-height: 1.1; }
.trip-row .when small { display: block; font-family: var(--font-text); font-weight: 500; font-size: 12.5px; color: var(--ink-3); }
.home-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.home-actions .btn { flex: 1 1 150px; height: 46px; font-size: 16px; }

/* ===== Trip header & tabs ===== */
.trip-head { padding: 6px 0 4px; }
.trip-head .kicker { font-size: 14.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; }
.trip-head .band { height: 6px; border-radius: 3px; width: 64px; margin-bottom: 12px; }
.avatars { display: inline-flex; }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; border: 2px solid var(--bg); margin-left: -6px; overflow: hidden; }
.avatar:first-child { margin-left: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 14px -16px 0; padding: 0 16px; border-bottom: 1px solid var(--line); scrollbar-width: none; position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--topbar-h)); background: var(--bg); z-index: 20; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 10px 11px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--signal); }
.tabs a .icon { width: 17px; height: 17px; }
@media (min-width: 960px) { .tabs { margin: 18px 0 0; padding: 0; } }
.toolbar { display: flex; gap: 8px; align-items: center; margin: 14px 0 10px; flex-wrap: wrap; }

/* ===== Days & timeline ===== */
.daystrip { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.daystrip::-webkit-scrollbar { display: none; }
.daystrip a { flex: none; width: 50px; padding: 6px 0 7px; border-radius: 10px; text-align: center; text-decoration: none; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2); }
.daystrip a b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--ink); line-height: 1.05; }
.daystrip a small { display: block; font-size: 12px; font-weight: 600; }
.daystrip a.today { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.daystrip a.today b { color: var(--signal-ink); }
.daystrip a .dots { display: flex; justify-content: center; gap: 2px; height: 5px; margin-top: 3px; }
.daystrip a .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }

.day { background: var(--surface); border-radius: 18px; border: 1px solid var(--line-2); padding: 14px 12px 10px; margin-top: 14px; scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--topbar-h) + 60px); }
.day.is-today { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.day-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 0 2px 8px; }
.day-num { width: 50px; text-align: center; border-right: 2px solid var(--line); padding-right: 10px; }
.day-num small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.day-num b { display: block; font-family: var(--font-display); font-size: 30px; line-height: 1; font-weight: 700; }
.day-date { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.1; }
.day-place { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-tools { display: flex; gap: 2px; }
.staybar { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); padding: 7px 10px; margin: 2px 0 6px; border-radius: 10px; background: color-mix(in srgb, var(--c-stay) 9%, var(--surface)); }
.staybar .icon { color: var(--c-stay); width: 17px; height: 17px; }
.staybar b { color: var(--ink); font-weight: 600; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 72px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); border-radius: 1px; }
.it { position: relative; display: grid; grid-template-columns: 52px 30px minmax(0, 1fr); gap: 0 6px; align-items: start; padding: 8px 0; border-radius: 12px; cursor: pointer; }
.it:hover { background: var(--surface-2); }
.it .t { text-align: right; font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.2; padding-top: 3px; color: var(--ink); }
.it .t small { display: block; font-family: var(--font-text); font-size: 12px; font-weight: 500; color: var(--ink-3); }
.it .node { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid currentColor; position: relative; z-index: 1; }
.it .node .icon { width: 16px; height: 16px; }
.it .body { min-width: 0; padding: 2px 4px 0 4px; }
.it .body b { display: block; font-weight: 600; font-size: 16.5px; line-height: 1.25; }
.it .body .sub { font-size: 14px; color: var(--ink-2); margin-top: 1px; }
.it .body .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.it.done .body b { text-decoration: line-through; color: var(--ink-3); }
.it.past { opacity: .6; }
.it.now-item { background: var(--signal-soft); }
.it.k-flight { color: var(--c-flight); } .it.k-stay { color: var(--c-stay); } .it.k-activity { color: var(--c-activity); } .it.k-food { color: var(--c-food); } .it.k-transport { color: var(--c-transport); } .it.k-note { color: var(--c-note); }
.it .body, .it .t { color: var(--ink); }
.leg { display: grid; grid-template-columns: 52px 30px minmax(0,1fr); gap: 0 6px; font-size: 13px; color: var(--ink-3); min-height: 24px; align-items: center; }
.leg .line { justify-self: center; width: 2px; height: 100%; background: repeating-linear-gradient(to bottom, var(--ink-3) 0 3px, var(--surface) 3px 7px); position: relative; z-index: 1; }
.leg a { color: var(--ink-3); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; padding: 2px 4px; }
.leg a:hover { color: var(--gate); }
.leg.warn { color: var(--stop); }
.nowline { display: grid; grid-template-columns: 52px 30px minmax(0,1fr); gap: 0 6px; align-items: center; margin: 2px 0; }
.nowline span { text-align: right; font-family: var(--font-display); font-weight: 700; color: var(--stop); font-size: 15px; }
.nowline i { display: block; height: 2px; background: var(--stop); grid-column: 2 / 4; position: relative; }
.nowline i::before { content: ""; position: absolute; left: 10px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--stop); }
.day-foot { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 8px 2px 2px; border-top: 1px solid var(--line-2); margin-top: 6px; }
.day-foot .sum { flex: 1 1 100%; }
@media (min-width: 700px) { .day-foot .sum { flex: 1 1 auto; } }
.daynote { font-size: 14.5px; color: var(--ink-2); padding: 8px 10px; background: var(--surface-2); border-radius: 10px; margin: 6px 0 2px; white-space: pre-wrap; }
.day-empty { font-size: 14.5px; color: var(--ink-3); padding: 6px 4px 10px 92px; }
.photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.photos img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }

/* ===== Boarding pass ===== */
.pass { grid-column: 1 / -1; background: var(--board); color: var(--board-ink); border-radius: 14px; padding: 12px 14px; position: relative; overflow: hidden; margin: 4px 0; cursor: pointer; }
.pass .tear { position: relative; height: 0; border-top: 2px dashed rgba(255,255,255,.16); margin: 0 -14px 12px; }
.pass .tear::before, .pass .tear::after { content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); }
.pass .tear::before { left: -9px; } .pass .tear::after { right: -9px; }
.pass-times .tt sup { font-size: 13px; color: var(--board-dim); margin-left: 2px; vertical-align: 8px; }
.pass-top { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--board-dim); }
.pass-top b { font-family: var(--font-display); font-size: 19px; color: var(--board-ink); font-weight: 600; letter-spacing: 0.02em; }
.pass-route { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; gap: 10px; align-items: end; margin: 6px 0 16px; }
.pass-route .ap { font-family: var(--font-display); font-weight: 700; font-size: 42px; line-height: .95; letter-spacing: 0.02em; }
.pass-route .ap small { display: block; font-family: var(--font-text); font-weight: 500; font-size: 13px; color: var(--board-dim); letter-spacing: 0; margin-top: 4px; max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass-route .ap.to { text-align: right; }
.pass-route .ap.to small { margin-left: auto; }
.pass-route .mid { align-self: center; display: flex; align-items: center; color: var(--signal); padding-bottom: 14px; }
.pass-route .mid::before, .pass-route .mid::after { content: ""; flex: 1; border-top: 2px dotted rgba(255,255,255,.28); }
.pass-route .mid .icon { transform: rotate(45deg); margin: 0 6px; width: 20px; height: 20px; }
.pass-times { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: baseline; }
.pass-times .tt { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--signal); line-height: 1; }
.pass-times .tt small { font-family: var(--font-text); font-size: 12.5px; color: var(--board-dim); font-weight: 500; display: block; margin-top: 3px; }
.pass-times .dur { text-align: center; font-size: 13px; color: var(--board-dim); }
.pass-times .to { text-align: right; }
.pass-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pass-foot .pill { font-size: 13px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--board-2); color: var(--board-ink); }
.pass-foot .pill.hot { background: var(--signal); color: var(--signal-ink); }
.pass-foot .pill.warn { background: #5A1E1A; color: #FFD2CC; }
.layover { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 2px 0 2px 58px; font-size: 13.5px; color: var(--ink-2); }
.layover .badge { font-family: var(--font-display); font-size: 14px; }

/* ===== Plan split (desktop) ===== */
.plan-split { display: block; }
.plan-map { display: none; }
@media (min-width: 1180px) {
  .plan-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 42%); gap: 20px; align-items: start; }
  .plan-map { display: block; position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--topbar-h) + 64px); }
}

/* ===== Maps ===== */
.mapbox { position: relative; background: var(--map-sea); border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); touch-action: none; }
.mapbox svg { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; }
.mapbox .land { fill: var(--map-land); stroke: var(--map-edge); stroke-width: .6; vector-effect: non-scaling-stroke; }
.mapbox .land.trip { fill: var(--map-trip); }
.mapbox .land.visited { fill: var(--map-visited); }
.mapbox.pick .land { cursor: pointer; }
.mapbox.pick .land:hover { fill: color-mix(in srgb, var(--map-visited) 55%, var(--map-land)); }
.mapbox .arc { fill: none; stroke: var(--ink); stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-dasharray: 5 4; opacity: .8; }
.mapbox .ground { fill: none; stroke: var(--c-transport); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.mapbox .pin { stroke: var(--surface); vector-effect: non-scaling-stroke; stroke-width: 2; }
.mapbox .pinlabel { font-family: var(--font-display); font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--map-sea); stroke-width: 3px; stroke-linejoin: round; }
.map-tools { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; }
.map-tools button { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; font-size: 18px; font-weight: 700; color: var(--ink); }
.map-note { position: absolute; left: 10px; bottom: 8px; font-size: 12px; color: var(--ink-3); background: color-mix(in srgb, var(--surface) 85%, transparent); padding: 2px 6px; border-radius: 6px; }
.schem .grid line { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.schem .route { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.schem .route.alt { stroke: var(--signal); stroke-width: 5; opacity: .75; }
.schem .spin circle { stroke: var(--surface); stroke-width: 2.5; }
.schem .spin text { font-family: var(--font-display); font-weight: 700; font-size: 13px; fill: #fff; text-anchor: middle; dominant-baseline: central; }
.schem .slabel { font-family: var(--font-text); font-weight: 600; font-size: 12px; fill: var(--ink); paint-order: stroke; stroke: var(--map-sea); stroke-width: 3.5px; stroke-linejoin: round; }
.schem .scale line { stroke: var(--ink-2); stroke-width: 2; }
.schem .scale text, .schem .north text { font-size: 11px; fill: var(--ink-2); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--ink-2); margin: 10px 2px 0; }
.stat-line { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14.5px; margin: 8px 2px; }
.stat-line b { font-family: var(--font-display); font-size: 18px; font-weight: 600; }

/* ===== Ideas ===== */
.idea { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 2px; }
.idea .node { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.idea .node .icon { width: 18px; height: 18px; }
.idea b { font-weight: 600; font-size: 16.5px; }
.idea .sub { font-size: 14px; color: var(--ink-2); }
.idea .acts { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.vote { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; color: var(--ink-2); }
.vote[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }

/* ===== Budget ===== */
.money-top { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: end; }
.money-top .big { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; }
.money-top .of { font-size: 14.5px; color: var(--ink-2); }
.bar { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line-2); }
.bar > i { display: block; height: 100%; background: var(--ink); border-radius: 5px; }
.bar.over > i { background: var(--stop); }
.catrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 8px 0; font-size: 15px; }
.catrow .bar { grid-column: 1 / -1; height: 7px; }
.exp { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 11px 2px; cursor: pointer; }
.exp b { font-weight: 600; }
.exp .amt { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.exp .sub { font-size: 13.5px; color: var(--ink-2); }
.settle { display: flex; align-items: center; gap: 8px; padding: 9px 0; font-size: 15px; }

/* ===== Packing ===== */
.pack-cat { margin-top: 14px; }
.pack-cat h3 { font-size: 18px; margin-bottom: 4px; color: var(--ink-2); }
.pack-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 2px 2px; border-top: 1px solid var(--line-2); }
.pack-item:first-of-type { border-top: 0; }
.pack-item input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--go); flex: none; }
.pack-item span.txt { flex: 1; }
.pack-item.done span.txt { color: var(--ink-3); text-decoration: line-through; }
.pack-item .who { font-size: 12.5px; color: var(--ink-3); }
.addrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }

/* ===== Docs ===== */
.wallet-row { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 2px; }
.code { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0.08em; user-select: all; -webkit-user-select: all; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }

/* ===== Now ===== */
.now-hero { background: var(--board); color: var(--board-ink); border-radius: 18px; padding: 16px; }
.now-hero .where { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.05; }
.now-hero .clocks { display: flex; gap: 18px; margin-top: 8px; font-size: 14px; color: var(--board-dim); }
.now-hero .clocks b { display: block; font-family: var(--font-display); font-size: 24px; color: var(--signal); font-weight: 600; }
.next-card { margin-top: 12px; background: var(--board-2); border-radius: 14px; padding: 12px 14px; }
.next-card .lbl { font-size: 13px; color: var(--board-dim); }
.next-card .what { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.15; margin-top: 2px; }
.next-card .count { font-family: var(--font-display); font-weight: 700; font-size: 34px; color: var(--signal); line-height: 1.05; margin-top: 6px; }
.next-card .row-wrap .btn { background: var(--board); border-color: rgba(255,255,255,.18); color: var(--board-ink); }
.next-card .row-wrap .btn-primary { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }

/* ===== Atlas ===== */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.stat { padding: 12px 4px; border-top: 1px solid var(--line-2); }
.stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.05; }
.stat span { font-size: 14px; color: var(--ink-2); }
.country-list { columns: 2 180px; column-gap: 20px; font-size: 15px; }
.country-list div { break-inside: avoid; padding: 4px 0; display: flex; gap: 8px; align-items: center; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.about-card { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; }
.about-card > .icon { width: 22px; height: 22px; margin-top: 1px; color: var(--ink-2); }
.about-card b { font-weight: 600; }
.about-card p { margin: 4px 0 0; }

/* ===== Sheet (dialog) ===== */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(6, 13, 24, .5); z-index: 60; animation: fadeIn .16s ease-out; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--surface); color: var(--ink);
  border-radius: 20px 20px 0 0; max-height: calc(100% - env(safe-area-inset-top, 0px) - 24px); overflow: auto; overscroll-behavior: contain;
  padding: 0 16px calc(20px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 40px rgba(6,13,24,.25);
  animation: sheetUp .22s cubic-bezier(.2,.8,.2,1);
}
.sheet-head { position: sticky; top: 0; background: var(--surface); display: flex; align-items: center; gap: 8px; padding: 14px 0 10px; z-index: 2; }
.sheet-head h2 { font-size: 23px; flex: 1; min-width: 0; }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; }
.sheet-foot { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom, 0px)); background: var(--surface); display: flex; gap: 8px; padding: 12px 0 calc(8px + env(safe-area-inset-bottom, 0px)); margin-top: 16px; border-top: 1px solid var(--line-2); }
.sheet-foot .btn { height: 46px; flex: 1; font-size: 16px; }
@media (min-width: 760px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(620px, 94vw); max-height: 88vh; border-radius: 20px; animation: popIn .18s ease-out; }
  .sheet-grip { display: none; }
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translate(-50%, -48%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.typechips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.results { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.results li button { width: 100%; text-align: left; display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 0; background: none; border-top: 1px solid var(--line-2); }
.results li:first-child button { border-top: 0; }
.results li button:hover, .results li button:focus-visible { background: var(--surface-2); }
.results .r-main { font-weight: 600; }
.results .r-sub { font-size: 13px; color: var(--ink-3); }
.picked { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.picked .icon { color: var(--c-activity); }
.review-item { display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 10px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.review-item input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); }
.ai-status { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--signal-soft); font-size: 14.5px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--ink) 20%, transparent); border-top-color: var(--ink); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Toast ===== */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)); z-index: 80; background: var(--ink); color: var(--surface); padding: 11px 14px; border-radius: 12px; display: flex; gap: 12px; align-items: center; font-weight: 500; max-width: min(92vw, 520px); box-shadow: 0 8px 28px rgba(6,13,24,.28); animation: fadeIn .15s ease-out; }
.toast button { background: none; border: 0; color: var(--signal); font-weight: 700; padding: 4px 2px; }
@media (min-width: 960px) { .toast { bottom: 24px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .topbar, .tabbar, .side, .tabs, .toolbar, .day-tools, .day-foot { display: none !important; }
  body { background: #fff; }
}

/* ===== Settings rows ===== */
.setrow { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line-2); }
.setrow:first-child { border-top: 0; padding-top: 2px; }
.setrow > div:first-child { flex: 1 1 220px; min-width: 0; }
.setrow .seg { flex-wrap: wrap; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details.warnbar > summary::after { content: "Show"; margin-left: auto; font-size: 13px; color: var(--ink-2); font-weight: 600; }
details.warnbar[open] > summary::after { content: "Hide"; }
details:not(.warnbar) > summary::before { content: "+ "; }
details[open]:not(.warnbar) > summary::before { content: "− "; }
.view:focus { box-shadow: none; }

/* ===== Assistant chat ===== */
.sheet-chat .sheet-body { min-height: 40vh; }
.chat { display: flex; flex-direction: column; gap: 10px; padding-bottom: 4px; }
.msg { max-width: 90%; padding: 10px 12px; border-radius: 14px; white-space: pre-wrap; line-height: 1.45; font-size: 15.5px; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--ink); color: var(--surface); border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-left-radius: 4px; }
.msg.err { border-color: var(--stop); }
.msg.changes { align-self: stretch; max-width: 100%; background: var(--signal-soft); font-size: 14.5px; }
.msg.changes .icon { color: var(--go); vertical-align: -3px; }
.chat-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; width: 100%; align-items: end; }
.chat-input textarea.input { min-height: 46px; max-height: 140px; resize: none; }
.chat-input .btn { height: 46px; }
/* ===== Converter ===== */
.conv { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.conv-in { display: flex; align-items: center; gap: 8px; }
.conv-in .display { font-weight: 700; font-size: 18px; }
.conv-in .input { width: 130px; font-size: 18px; font-weight: 600; }
.conv-out { font-size: 24px; font-weight: 700; }

/* ===== Standalone: photo cards and trip header ===== */
.trip-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 700px) { .trip-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .trip-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trip-card { display: block; background: var(--surface); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 28, 46, .06), 0 8px 24px rgba(15, 28, 46, .07); }
.tc-cover, .trip-hero { background-color: var(--trip, #1F5FD1); background-size: cover; background-position: center; background-image: linear-gradient(135deg, color-mix(in srgb, var(--trip, #1F5FD1) 78%, #fff) 0%, var(--trip, #1F5FD1) 55%, color-mix(in srgb, var(--trip, #1F5FD1) 62%, #000) 100%); }
.tc-cover { position: relative; aspect-ratio: 16 / 8; }
.tc-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 28, 46, 0) 40%, rgba(15, 28, 46, .62) 100%); }
.tc-when { position: absolute; left: 14px; bottom: 10px; z-index: 1; color: #fff; font-family: var(--font-display); font-size: 16px; font-weight: 500; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.tc-when b { font-size: 26px; font-weight: 700; letter-spacing: .01em; }
.tc-badge { position: absolute; right: 10px; top: 10px; z-index: 1; display: inline-flex; gap: 5px; align-items: center; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.tc-badge .icon { width: 14px; height: 14px; }
.tc-body { padding: 12px 14px 14px; }
.tc-body h3 { font-size: 23px; }
.tc-body .meta { font-size: 14px; color: var(--ink-2); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.trip-hero { position: relative; margin: 2px -16px 0; min-height: 200px; display: flex; align-items: flex-end; color: #fff; }
.trip-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 28, 46, .08) 0%, rgba(15, 28, 46, .28) 45%, rgba(15, 28, 46, .82) 100%); }
.th-inner { position: relative; padding: 18px 16px 16px; width: 100%; }
.trip-hero h1 { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.trip-hero .kicker { font-size: 14.5px; color: rgba(255, 255, 255, .9); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; align-items: center; }
.trip-hero .badge { background: rgba(255, 255, 255, .2); color: #fff; border-color: transparent; }
.trip-hero .avatar { border-color: rgba(255, 255, 255, .9); }
.photo-credit { position: absolute; right: 10px; top: 10px; font-size: 11px; color: rgba(255, 255, 255, .85); text-decoration: none; background: rgba(0, 0, 0, .28); padding: 2px 7px; border-radius: 5px; }
@media (min-width: 960px) { .trip-hero { margin: 8px 0 0; border-radius: 22px; overflow: hidden; min-height: 260px; } .th-inner { padding: 24px 26px 22px; } }

/* ===== Weather ===== */
.wx { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-text); font-size: 13px; font-weight: 600; color: var(--ink-3); background: var(--surface-2); border-radius: 999px; padding: 2px 9px 2px 6px; margin-left: 8px; vertical-align: 3px; white-space: nowrap; }
.wx .icon { width: 17px; height: 17px; color: var(--c-food); stroke-width: 1.8; }
.wx b { color: var(--ink); font-weight: 700; }
.wx-rain { color: var(--gate); margin-left: 2px; }
.wx.big { font-size: 15px; background: rgba(255, 255, 255, .1); color: var(--board-dim); margin: 0; padding: 5px 12px 5px 9px; }
.wx.big b { color: var(--board-ink); font-size: 17px; }
.wx.big .icon { color: var(--signal); width: 20px; height: 20px; }
.now-wx { margin-left: auto; align-self: center; }

/* ===== Live flight status ===== */
.pass-foot .pill.live.ok { background: #1E6B4A; color: #DDF8EA; }
.pass-foot .pill.live.warn { background: #C8372B; color: #fff; }
.pass-foot .pill.live.hot { background: var(--signal); color: var(--signal-ink); }
.pass-times .tt s.was { display: block; font-size: 13px; color: var(--board-dim); font-family: var(--font-text); font-weight: 500; margin-top: 2px; }
.now-live { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 8px; font-size: 14px; color: var(--board-ink); }
.now-live .pill { font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.now-live .pill.ok { background: #1E6B4A; color: #DDF8EA; } .now-live .pill.warn { background: #C8372B; color: #fff; } .now-live .pill.hot { background: var(--signal); color: var(--signal-ink); }

/* ===== Street maps ===== */
.glmap { touch-action: auto; }
.glmap.fallback { touch-action: none; }
.maplibregl-map { font-family: var(--font-text); border-radius: 16px; }
.maplibregl-popup-content { font: 600 14px var(--font-text); color: var(--ink); border-radius: 10px; padding: 8px 12px; }
.gl-pin { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 14px var(--font-display); border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(15, 28, 46, .35); background: var(--ink); cursor: pointer; }
.gl-pin.sq { border-radius: 8px; }
.gl-pin .icon { width: 15px; height: 15px; stroke: #fff; }
.gl-pin.k-stay { background: #1F5FD1; } .gl-pin.k-activity, .gl-pin.k-place { background: #0B8550; } .gl-pin.k-food { background: #C2601A; } .gl-pin.k-transport { background: #7446BD; } .gl-pin.k-airport, .gl-pin.k-flight { background: #13233A; } .gl-pin.k-anchor { background: #4A5B72; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .glbox .maplibregl-canvas { filter: invert(.92) hue-rotate(180deg) saturate(.55) brightness(.95); } }
:root[data-theme="dark"] .glbox .maplibregl-canvas { filter: invert(.92) hue-rotate(180deg) saturate(.55) brightness(.95); }

/* ===== Inbox, forwarding, account, welcome ===== */
.inbox-card, .forward-tip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); margin-top: 12px; }
.inbox-card { background: var(--signal-soft); border-color: transparent; }
.inbox-card.quiet { background: var(--surface); border-color: var(--line-2); }
.ib-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--signal); color: var(--signal-ink); display: grid; place-items: center; flex: none; }
.forward-tip > .icon { color: var(--gate); flex: none; }
.fw-addr { color: var(--gate); word-break: break-all; }
.copyrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.copyrow .input { min-height: 40px; font-size: 14.5px; }
.sheet-welcome .welcome-art { height: 132px; border-radius: 18px; margin-bottom: 8px; display: grid; place-items: center; color: var(--signal-ink); background: var(--signal) radial-gradient(circle at 18% 120%, rgba(255, 255, 255, .45) 0 30%, transparent 31%), var(--signal); background-image: repeating-linear-gradient(135deg, rgba(19, 35, 58, .06) 0 14px, transparent 14px 28px); }
.sheet-welcome .welcome-art .icon { width: 72px; height: 72px; stroke-width: 1.7; }
.welcome-row { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 10px 0; align-items: start; }
.wr-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--board); color: var(--signal); display: grid; place-items: center; }
.welcome-row b { font-size: 17px; }
.welcome-row p { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.sheet-welcome .sheet-foot { flex-wrap: wrap; }
