:root {
  color-scheme: light;
  --paper: #f6f2e9;
  --paper-strong: #fffdf8;
  --ink: #17211d;
  --muted: #65706a;
  --faint: #8d9691;
  --line: #dcd6ca;
  --line-strong: #c9c1b2;
  --blue: #176b87;
  --blue-soft: #dcecf0;
  --green: #2f765c;
  --green-soft: #deeee6;
  --amber: #a86118;
  --amber-soft: #f6e6c9;
  --red: #a63f38;
  --red-soft: #f5dfdc;
  --purple: #6f5a98;
  --shadow: 0 18px 50px rgba(45, 42, 32, .08);
  --shadow-small: 0 8px 24px rgba(45, 42, 32, .07);
  --radius: 22px;
  --nav-size: 184px;
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
}

:root.dark {
  color-scheme: dark;
  --paper: #111613;
  --paper-strong: #1a211d;
  --ink: #f3f0e8;
  --muted: #a6aea9;
  --faint: #7f8983;
  --line: #303a34;
  --line-strong: #465149;
  --blue: #77bad1;
  --blue-soft: #193943;
  --green: #79b99d;
  --green-soft: #1d3b30;
  --amber: #e3a85f;
  --amber-soft: #4a351d;
  --red: #e68a82;
  --red-soft: #452622;
  --purple: #baa5df;
  --shadow: 0 20px 56px rgba(0, 0, 0, .32);
  --shadow-small: 0 8px 24px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); scroll-behavior: smooth; }
body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 84% -10%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 34rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.status-hud {
  position: fixed;
  z-index: 80;
  top: 18px;
  left: 18px;
  width: var(--nav-size);
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--paper-strong) 88%, transparent);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(18px);
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, "Songti SC", serif;
  font-weight: 800;
}
.top-progress { min-width: 0; }
.top-progress > span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.progress { height: 4px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: var(--line); }
.bar { width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .3s ease; }
.sync-pill {
  grid-column: 1 / -1;
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
}
.sync-pill span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sync-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 13%, transparent); }
.sync-pill.ok .sync-dot { background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 13%, transparent); }
.sync-pill.err .sync-dot { background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 13%, transparent); }

.app {
  width: min(1180px, calc(100% - var(--nav-size) - 74px));
  min-height: 100vh;
  margin-left: calc(var(--nav-size) + 54px);
  padding: 46px 0 80px;
}
.page { display: none; animation: page-in .28s ease both; }
.page.active { display: block; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } }

.trip-header, .page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}
.trip-header > div, .page-header > div { min-width: 0; }
.title, .page-header h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 720;
  letter-spacing: -.045em;
  line-height: .98;
}
.page-header h1 { font-size: clamp(34px, 4vw, 54px); }
.kicker, .eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.lede, .page-header p {
  max-width: 650px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.page-header p { margin-top: 7px; }
.muted { color: var(--muted); }

.icon-button, .text-button, .pillbtn, .mini-action, .mapbtn, .candidate-tools button, .reminder-tools button {
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}
.icon-button:active, .text-button:active, .pillbtn:active, .mapbtn:active { transform: translateY(1px) scale(.98); }
.icon-button {
  min-width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper-strong);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-small);
}
.icon-button.quiet { box-shadow: none; }
.icon-button.ai-button { border-color: transparent; background: var(--ink); color: var(--paper); }
.text-button { padding: 7px 0; background: transparent; color: var(--blue); font-size: 13px; font-weight: 800; }
.pillbtn {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 13px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
}
.pillbtn.ghost { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.pillbtn.red { border-color: color-mix(in srgb, var(--red) 35%, var(--line)); color: var(--red); }
.pillbtn:disabled, button:disabled { cursor: not-allowed; opacity: .45; }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }

.panel, .reference-section, .settings-card, .fold, .management-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--paper-strong) 94%, transparent);
  box-shadow: var(--shadow-small);
}
.panel, .reference-section { padding: 22px; }
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.section-head .eyebrow { margin-bottom: 5px; }
.section-head h2, .readiness-copy h2, .modal h3 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 23px;
  line-height: 1.15;
}

.now-card {
  position: relative;
  min-height: 248px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .44fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 22px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  border-radius: 30px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 24px 70px color-mix(in srgb, var(--ink) 22%, transparent);
}
.now-card::after {
  content: "次";
  position: absolute;
  right: 2%;
  bottom: -42%;
  color: color-mix(in srgb, var(--paper) 8%, transparent);
  font-family: Georgia, "Songti SC", serif;
  font-size: 250px;
  line-height: 1;
  pointer-events: none;
}
.now-card > * { position: relative; z-index: 1; }
.now-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.now-meta span {
  padding: 6px 9px;
  border: 1px solid color-mix(in srgb, var(--paper) 20%, transparent);
  border-radius: 99px;
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  font-size: 12px;
  font-weight: 760;
}
.now-title { max-width: 750px; font-family: Georgia, "Songti SC", serif; font-size: clamp(30px, 4vw, 52px); font-weight: 720; letter-spacing: -.035em; line-height: 1.08; }
.now-card .muted { max-width: 680px; margin-top: 12px; color: color-mix(in srgb, var(--paper) 68%, transparent); }
.now-card .actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: flex-end; }
.now-card .pillbtn { background: var(--paper); color: var(--ink); }
.now-card .pillbtn.ghost { border-color: color-mix(in srgb, var(--paper) 25%, transparent); background: transparent; color: var(--paper); }
.now-countdown {
  align-self: center;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--paper) 16%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--paper) 7%, transparent);
}
.now-countdown strong { display: block; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: clamp(30px, 5vw, 58px); line-height: 1; }
.now-countdown span { display: block; margin-top: 8px; color: color-mix(in srgb, var(--paper) 66%, transparent); font-size: 12px; }

.mission-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 18px; }
.route-panel { min-width: 0; }
.journey-line {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 4px 2px 9px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.journey-node, .journey-connector {
  flex: 1 1 0;
  min-width: 92px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
}
.journey-node { position: relative; z-index: 1; padding: 0 4px; }
.node-dot {
  width: 39px;
  height: 39px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper-strong);
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
}
.journey-node b, .journey-node small { display: block; }
.journey-node b { margin-top: 8px; color: var(--ink); font-size: 13px; line-height: 1.2; }
.journey-node small { margin-top: 3px; font-size: 10px; }
.journey-node.on .node-dot { border-color: var(--ink); background: var(--ink); color: var(--paper); box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue) 14%, transparent); }
.journey-node.passed .node-dot { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.journey-connector { position: relative; min-width: 70px; padding: 13px 2px 0; }
.journey-connector::before { content: ""; position: absolute; top: 19px; left: 0; right: 0; border-top: 1px dashed var(--line-strong); }
.journey-connector span { position: relative; display: inline-block; max-width: 100%; overflow: hidden; padding: 3px 6px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper-strong); color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.journey-connector.passed::before { border-color: var(--green); }

.quick-facts { display: grid; gap: 10px; }
.quick-fact { display: grid; grid-template-columns: 38px 1fr; gap: 11px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.quick-fact:first-child { border-top: 0; padding-top: 0; }
.quick-fact > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 850; }
.quick-fact b, .quick-fact small { display: block; }
.quick-fact b { font-size: 14px; }
.quick-fact small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.skeleton { height: 50px; border-radius: 13px; background: linear-gradient(90deg, var(--line), color-mix(in srgb, var(--line) 40%, transparent), var(--line)); background-size: 200% 100%; animation: loading 1.3s infinite linear; }
.skeleton.short { width: 70%; }
@keyframes loading { to { background-position: -200% 0; } }

.decision-alerts { display: grid; gap: 10px; margin: 18px 0; }
.decision-alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border: 1px solid color-mix(in srgb, var(--amber) 25%, var(--line)); border-radius: 16px; background: var(--amber-soft); color: color-mix(in srgb, var(--ink) 90%, var(--amber)); }
.decision-alert.safe { border-color: color-mix(in srgb, var(--green) 25%, var(--line)); background: var(--green-soft); }
.decision-alert b { display: block; font-size: 13px; }
.decision-alert p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }

.fold { margin-top: 16px; overflow: hidden; }
.fold > summary, .management-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.fold > summary::-webkit-details-marker, .management-panel > summary::-webkit-details-marker { display: none; }
.fold > summary span, .management-panel > summary span { color: var(--muted); font-size: 12px; font-weight: 650; }
.compact-fold .notice-grid { padding: 0 16px 16px; }
.notice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.notice { padding: 13px; border-radius: 15px; background: color-mix(in srgb, var(--paper) 55%, var(--paper-strong)); }
.notice b, .notice span { display: block; }
.notice b { font-size: 13px; }
.notice span { margin-top: 4px; font-size: 12px; }
.readonly-hint { display: none; }
html.readonly .readonly-hint { display: block; }

.day-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: -6px 0 20px;
  padding: 6px 1px 9px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.day-tabs::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--paper-strong);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  scroll-snap-align: center;
}
.chip.on { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.day-audit-card {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(260px, 1.5fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}
.day-audit-card h2 { margin: 2px 0 0; font-size: 21px; }
.day-audit-summary { display: flex; gap: 10px; align-items: flex-start; }
.audit-state { min-width: 48px; padding: 5px 8px; border-radius: 8px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 850; text-align: center; }
.audit-state.watch { background: var(--amber-soft); color: var(--amber); }
.audit-state.high { background: var(--red-soft); color: var(--red); }
.day-audit-summary b, .day-audit-summary small { display: block; }
.day-audit-summary b { font-size: 13px; }
.day-audit-summary small { margin-top: 4px; color: var(--muted); font-size: 11px; }

.management-panel { margin-bottom: 18px; box-shadow: none; }
.management-panel .schedule-tools { padding: 0 15px 15px; }
.schedule-tools { display: grid; gap: 11px; }
.filter-row { display: flex; gap: 10px; align-items: center; min-width: 0; }
.seg {
  position: relative;
  display: inline-flex;
  min-width: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--paper) 75%, transparent);
}
.seg button { position: relative; z-index: 1; min-height: 32px; padding: 6px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 750; white-space: nowrap; }
.seg button.on { color: var(--ink); }
.seg-ink { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 9px; background: var(--paper-strong); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); transition: transform .22s ease, width .22s ease; }
.filter-select, .searchbox input, .auth-actions input, .profile-controls input, .profile-controls select, .form input, .form textarea, .form select, .brief-question textarea {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-strong);
  color: var(--ink);
}
.filter-select { max-width: 180px; padding: 7px 10px; }

.timeline { display: grid; gap: 9px; }
.period-divider { margin: 19px 0 3px; color: var(--blue); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.rowwrap { position: relative; overflow: hidden; border-radius: 18px; }
.behind { position: absolute; inset: 0 0 0 auto; display: flex; justify-content: flex-end; overflow: hidden; border-radius: inherit; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .14s ease, visibility 0s linear .14s; }
.rowwrap.actions-open .behind { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.behind button { width: 84px; border: 0; color: white; cursor: pointer; font-weight: 800; }
.behind .edit { background: var(--blue); }
.behind .del { background: var(--red); }
.item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px 72px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  min-height: 88px;
  padding: 15px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent, var(--blue));
  border-radius: 18px;
  background: var(--paper-strong);
  box-shadow: var(--shadow-small);
  cursor: pointer;
  transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .2s ease;
  touch-action: pan-y;
}
.item .type { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--accent, var(--blue)) 13%, transparent); color: var(--accent, var(--blue)); font-size: 16px; }
.item .time { padding-top: 7px; color: var(--accent, var(--blue)); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 13px; font-weight: 850; }
.maintext { min-width: 0; }
.main-title { color: var(--ink); font-size: 15px; font-weight: 820; line-height: 1.35; }
.sub { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.item.done { opacity: 1; }
.item.done .type, .item.done .time, .item.done .main-title, .item.done .sub, .item.done .route-meta, .item.done .inline-map { opacity: .52; }
.item.done .main-title { text-decoration: line-through; }
.readonly .behind { display: none; }
.inline-map, .actions, .inline-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.inline-map { margin-top: 10px; }
.mapbtn { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 11px; font-weight: 900; text-decoration: none; }
.mapbtn.g { color: var(--blue); }
.mapbtn.a { color: var(--ink); }
.mini-action { margin-top: 8px; padding: 5px 8px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 800; }
.route-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.route-meta span, .badge { padding: 3px 6px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 9px; }
.route-link, .auto-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 0 2px 58px;
  padding: 12px 14px;
  border-left: 2px dashed var(--line-strong);
  color: var(--muted);
  font-size: 12px;
}
.route-link b, .auto-route b { color: var(--blue); }
.route-link small, .auto-route small { color: var(--muted); }
.iconbtn { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper-strong); color: var(--muted); cursor: pointer; }
.iconbtn.del { color: var(--red); }
body:not(.editing) .route-link .iconbtn, body:not(.editing) .auto-route .iconbtn, body:not(.editing) .candidate-add, body:not(.editing) .candidate-manage { display: none; }

.type-task { --accent: var(--blue); }
.type-transport, .type-move { --accent: #277a91; }
.type-hotel { --accent: var(--purple); }
.type-food { --accent: var(--amber); }
.type-shop, .type-buy { --accent: #a55272; }
.type-anime { --accent: #7652a6; }
.type-nature { --accent: var(--green); }
.type-human, .type-view { --accent: #8b6541; }
.type-money { --accent: #8b791d; }
.type-health { --accent: var(--red); }
.type-doc { --accent: #46598e; }

.readiness-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  margin-bottom: 18px;
  padding: 28px;
  border-radius: 28px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}
.readiness-score {
  --score: 0deg;
  width: 150px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--ink) 59%, transparent 60%), conic-gradient(var(--green) var(--score), color-mix(in srgb, var(--paper) 13%, transparent) 0);
  text-align: center;
}
.readiness-score strong { display: block; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 35px; line-height: 1; }
.readiness-score span { display: block; margin-top: 7px; color: color-mix(in srgb, var(--paper) 63%, transparent); font-size: 11px; }
.readiness-copy .eyebrow { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.readiness-copy p { margin: 8px 0 0; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.missing-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.missing-list span { padding: 5px 8px; border-radius: 99px; background: color-mix(in srgb, var(--paper) 10%, transparent); font-size: 11px; }

.profile-panel { margin-bottom: 18px; }
.profile-summary { color: var(--muted); font-size: 12px; }
.profile-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.profile-controls.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-controls label { position: relative; color: var(--muted); font-size: 11px; font-weight: 750; }
.profile-controls input, .profile-controls select { width: 100%; margin-top: 5px; padding: 8px 10px; }
.profile-controls label > span { position: absolute; right: 11px; bottom: 9px; color: var(--muted); }
.prepare-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
.check-list { display: grid; gap: 8px; }
.check-row, .packing-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.check-row:first-child, .packing-item:first-child { border-top: 0; }
.check-row input, .packing-item input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--green); }
.check-row b, .check-row small, .packing-item b, .packing-item small { display: block; }
.check-row b, .packing-item b { font-size: 13px; line-height: 1.35; }
.check-row small, .packing-item small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.check-row time { color: var(--blue); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 10px; }
.check-row:has(input:checked) b, .packing-item:has(input:checked) b { color: var(--muted); text-decoration: line-through; }
.prep-more { margin-top: 6px; border-top: 1px solid var(--line); }
.prep-more > summary { display: flex; justify-content: space-between; gap: 8px; padding: 13px 0 5px; color: var(--blue); cursor: pointer; font-size: 11px; font-weight: 820; list-style: none; }
.prep-more > summary::-webkit-details-marker { display: none; }
.prep-more > summary span { color: var(--muted); font-size: 9px; font-weight: 650; }
.packing-groups { display: grid; gap: 9px; }
.packing-group { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; }
.packing-group summary { display: flex; justify-content: space-between; padding: 12px 13px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 800; }
.packing-group summary::-webkit-details-marker { display: none; }
.packing-group summary span { color: var(--muted); font-size: 10px; }
.packing-items { padding: 0 13px 8px; }
.packing-item .quantity { min-width: 32px; padding: 3px 5px; border-radius: 7px; background: var(--blue-soft); color: var(--blue); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 10px; font-weight: 850; text-align: center; }
.essential-mark { color: var(--red); }
.action-queue { margin: 18px 0; }
.queue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.queue-card { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-strong); }
.queue-time { color: var(--blue); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; font-weight: 850; }
.queue-card b, .queue-card small { display: block; }
.queue-card b { font-size: 13px; }
.queue-card small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.queue-empty { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }

.workbench-grid, .operations-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.weather-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.weather-day { padding: 10px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-align: center; }
.weather-day b, .weather-day span, .weather-day small { display: block; }
.weather-day b { font-size: 11px; }
.weather-day span { margin-top: 4px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 15px; font-weight: 850; }
.weather-day small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.weather-meta { margin-top: 8px; color: var(--muted); font-size: 10px; }
.weather-warning { margin-top: 9px; padding: 8px 10px; border-radius: 10px; background: var(--amber-soft); color: var(--amber); font-size: 11px; }

.ai-inspector { border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); }
.ai-intro { margin: -4px 0 13px; color: var(--muted); font-size: 12px; }
.advice-empty { padding: 12px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); font-size: 11px; }
.advice-summary { margin-bottom: 10px; font-size: 13px; }
.advice-list { display: grid; gap: 8px; }
.advice-item { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; padding: 10px; border-radius: 12px; background: var(--paper); }
.advice-number { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; background: var(--ink); color: var(--paper); font-size: 10px; font-weight: 900; }
.advice-item b, .advice-item small, .advice-item em { display: block; }
.advice-item b { font-size: 12px; }
.advice-item small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.advice-item em { margin-top: 5px; color: var(--blue); font-size: 10px; font-style: normal; font-weight: 800; }
.advice-foot { margin-top: 8px; color: var(--muted); font-size: 9px; }

.operation-panel { margin: 0; }
.airport-list { display: grid; gap: 9px; }
.airport-plan { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.airport-plan-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.airport-plan-head b { font-size: 13px; }
.airport-plan-head span { padding: 3px 6px; border-radius: 7px; background: var(--green-soft); color: var(--green); font-size: 9px; font-weight: 850; }
.airport-plan-head span.watch { background: var(--amber-soft); color: var(--amber); }
.airport-plan-head span.risk { background: var(--red-soft); color: var(--red); }
.airport-clock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.airport-clock div { padding: 7px; border-radius: 9px; background: var(--paper-strong); }
.airport-clock small, .airport-clock strong { display: block; }
.airport-clock small { color: var(--muted); font-size: 8px; }
.airport-clock strong { margin-top: 2px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 13px; }
.airport-note { margin-top: 7px; color: var(--muted); font-size: 10px; }
.luggage-total { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; }
.luggage-total strong { font: 850 34px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.luggage-total span { color: var(--muted); font-size: 11px; }
.weight-meter { height: 9px; margin: 14px 0 8px; overflow: hidden; border-radius: 99px; background: var(--line); }
.weight-meter > span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.weight-meter > span.tight { background: var(--amber); }
.weight-meter > span.over { background: var(--red); }
.luggage-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.luggage-facts div { padding: 8px; border-radius: 10px; background: var(--paper); }
.luggage-facts b, .luggage-facts small { display: block; }
.luggage-facts b { font-size: 13px; }
.luggage-facts small { color: var(--muted); font-size: 9px; }
.luggage-note { margin-top: 9px; color: var(--muted); font-size: 10px; }

.emergency-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.emergency-call, .emergency-info { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-strong); }
.emergency-call a { display: block; color: var(--red); font: 850 27px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; text-decoration: none; }
.emergency-call b, .emergency-call small, .emergency-info b, .emergency-info small { display: block; }
.emergency-call b, .emergency-info b { margin-top: 7px; font-size: 12px; }
.emergency-call small, .emergency-info small { margin-top: 4px; color: var(--muted); font-size: 10px; }

.reference-section { margin-bottom: 18px; }
.flight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.flight-card { padding: 18px; border: 1px solid var(--line); border-top: 4px solid var(--accent, var(--blue)); border-radius: 18px; background: var(--paper-strong); }
.flight-airline { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.flight-airline span { color: var(--muted); font-size: 11px; }
.flight-date { margin-top: 7px; color: var(--muted); font-size: 11px; }
.flight-timebar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 20px 0 14px; }
.flight-city b { display: block; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: clamp(26px, 4vw, 42px); line-height: 1; }
.flight-city span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.flight-city.arr { text-align: right; }
.flight-mid { color: var(--blue); font-size: 9px; font-weight: 850; text-align: center; }
.flight-remind { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 10px; background: var(--amber-soft); color: var(--amber); font-size: 10px; }
.flight-guide { margin-top: 12px; border-top: 1px solid var(--line); }
.flight-guide summary { display: flex; justify-content: space-between; padding: 12px 0 0; cursor: pointer; list-style: none; font-size: 11px; font-weight: 800; }
.flight-guide summary::-webkit-details-marker { display: none; }
.transit-base { margin-top: 10px; color: var(--muted); font-size: 11px; }
.guide-list { display: grid; gap: 7px; margin-top: 10px; }
.guide-step { counter-increment: guide; display: grid; grid-template-columns: 22px 1fr; gap: 8px; color: var(--muted); font-size: 11px; }
.guide-list { counter-reset: guide; }
.guide-step::before { content: counter(guide); width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 9px; font-weight: 850; }
.hotel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hotel-grid .rowwrap { overflow: hidden; }
.hotel-grid .item { grid-template-columns: 40px 62px minmax(0, 1fr); min-height: 100%; box-shadow: none; }
.place-tools { margin-bottom: 16px; }
.searchbox { position: relative; min-width: 0; }
.searchbox input { width: 100%; padding: 10px 42px 10px 13px; }
.clearbtn { position: absolute; right: 7px; top: 6px; width: 30px; height: 30px; display: none; border: 0; border-radius: 9px; background: var(--line); color: var(--muted); cursor: pointer; }
.clearbtn.show { display: block; }
.filter-meta { color: var(--muted); font-size: 11px; }
.place-sections { display: grid; gap: 15px; }
.place-section h3 { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 14px; }
.place-section h3 span { color: var(--muted); font-size: 11px; }
.place-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.place-row b, .place-row small { display: block; }
.place-row b { font-size: 13px; }
.place-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.candidate-fold { margin-top: 0; }
.candidate-tools { display: flex; gap: 7px; padding: 0 16px 12px; }
.candidate-tools button { padding: 7px 10px; border-radius: 10px; background: var(--paper); color: var(--muted); font-size: 11px; font-weight: 800; }
.candidate-tools button.on { background: var(--ink); color: var(--paper); }
.candidate-add { margin-left: auto; }
.candidate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 16px 16px; }
.candidate-card { height: 100%; padding: 14px; border: 1px solid var(--line); border-top: 3px solid var(--accent, var(--blue)); border-radius: 15px; background: var(--paper-strong); cursor: pointer; }
.candidate-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 9px; }
.candidate-title { margin-top: 12px; font-size: 13px; font-weight: 820; }
.candidate-card .sub { font-size: 10px; }
.planner-board { display: none; padding: 0 16px 16px; }
body.editing .planner-board { display: block; }
.planner-days { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; }
.planner-days button { flex: 0 0 auto; padding: 6px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--muted); font-size: 10px; }
.planner-days button.on { background: var(--ink); color: var(--paper); }
.planner-section h3 { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 13px; }
.planner-section h3 span { color: var(--muted); font-size: 10px; }
.drop-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.drop-slot { min-height: 100px; padding: 10px; border: 1px dashed var(--line-strong); border-radius: 12px; }
.drop-slot.over { background: var(--blue-soft); }
.slot-head { display: flex; justify-content: space-between; font-size: 10px; }
.slot-action, .slot-empty { color: var(--muted); font-size: 9px; }
.slot-items { display: grid; gap: 5px; margin-top: 7px; }
.slot-item { display: grid; grid-template-columns: auto 1fr auto; gap: 5px; padding: 6px; border-radius: 8px; background: var(--paper-strong); font-size: 9px; }
.slot-actions { display: flex; }
.slot-actions button { border: 0; background: transparent; color: var(--muted); }

.settings-card { margin-bottom: 14px; padding: 20px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.switch b, .settings-card > b { font-size: 14px; }
.switch .muted, .settings-card .muted { margin-top: 4px; font-size: 11px; }
.toggle { position: relative; width: 46px; height: 27px; flex: 0 0 auto; border: 0; border-radius: 99px; background: var(--line-strong); cursor: pointer; }
.toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 21px; height: 21px; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .18s ease; }
.toggle.on { background: var(--green); }
.toggle.on::after { transform: translateX(19px); }
.legend { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.legend span { padding: 5px 8px; border-left: 3px solid var(--accent, var(--blue)); border-radius: 7px; background: var(--paper); font-size: 10px; }
.auth-card { margin-top: 10px; }
.auth-state { display: inline-block; margin-bottom: 7px; padding: 4px 7px; border-radius: 7px; background: var(--amber-soft); color: var(--amber); font-size: 10px; font-weight: 850; }
.auth-state.ok { background: var(--green-soft); color: var(--green); }
.auth-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.auth-actions input { min-width: 230px; flex: 1; padding: 9px 11px; }

.bottom-nav {
  position: fixed;
  z-index: 70;
  left: 18px;
  top: 158px;
  width: var(--nav-size);
  display: grid;
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--paper-strong) 90%, transparent);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(18px);
}
.navbtn {
  position: relative;
  z-index: 1;
  min-height: 48px;
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 9px;
  align-items: center;
  padding: 7px 10px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 780;
  text-align: left;
}
.navbtn span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); font-size: 15px; }
.navbtn.on { color: var(--paper); }
.navbtn.on span { color: var(--paper); }
.nav-glide { position: absolute; z-index: 0; left: 0; top: 0; border-radius: 13px; background: var(--ink); transition: transform .25s cubic-bezier(.22, 1, .36, 1), width .25s ease, height .25s ease; }

dialog {
  width: min(640px, calc(100% - 28px));
  max-height: min(86vh, 880px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .28);
}
dialog::backdrop { background: rgba(20, 24, 22, .52); backdrop-filter: blur(5px); }
.modal { padding: 24px; }
.modal h3 { font-size: 25px; }
.modal-title-row { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.form, .brief-question { display: grid; gap: 11px; margin-top: 19px; }
.form label, .brief-question { color: var(--muted); font-size: 11px; font-weight: 760; }
.form input, .form textarea, .form select, .brief-question textarea { width: 100%; margin-top: 5px; padding: 10px 11px; }
.form textarea { min-height: 90px; resize: vertical; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.reminder-tools { display: flex; gap: 7px; margin: 14px 0; }
.reminder-tools button { padding: 7px 10px; border-radius: 9px; background: var(--paper); color: var(--muted); font-size: 11px; font-weight: 800; }
.reminder-list, .candidate-manage-list { display: grid; gap: 7px; }
.reminder-row, .candidate-manage-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.reminder-row span { flex: 1; }
.reminder-row b, .reminder-row small, .candidate-manage-row b, .candidate-manage-row small { display: block; }
.reminder-row b, .candidate-manage-row b { font-size: 12px; }
.reminder-row small, .candidate-manage-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.toast, .undo-bar {
  position: fixed;
  z-index: 150;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 18px);
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show, .undo-bar.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.undo-bar { display: flex; gap: 12px; align-items: center; }
.undo-bar button { border: 0; background: transparent; color: var(--amber); cursor: pointer; font-weight: 850; }
.empty { padding: 26px; border: 1px dashed var(--line-strong); border-radius: 15px; color: var(--muted); font-size: 12px; text-align: center; }

@media (max-width: 919px) {
  body { padding-bottom: calc(82px + var(--safe-bottom)); }
  .status-hud {
    position: sticky;
    top: 0;
    left: auto;
    width: 100%;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 8px;
    padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
  .top-progress > span { font-size: 10px; }
  .progress { margin-top: 5px; }
  .sync-pill { grid-column: auto; max-width: 98px; justify-content: flex-end; }
  .sync-pill span:last-child { font-size: 9px; }
  .app { width: 100%; min-height: auto; margin: 0; padding: 25px 16px 18px; }
  .bottom-nav {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: var(--safe-bottom);
    width: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    padding: 5px;
    border-radius: 18px;
  }
  .navbtn { min-width: 0; min-height: 53px; grid-template-columns: 1fr; grid-template-rows: 24px 15px; gap: 1px; justify-items: center; padding: 5px 2px; border-radius: 13px; font-size: 10px; text-align: center; }
  .navbtn span { width: 26px; height: 24px; font-size: 14px; }
  .trip-header, .page-header { gap: 12px; margin-bottom: 20px; }
  .title { font-size: clamp(38px, 12vw, 55px); }
  .page-header h1 { font-size: 36px; }
  .lede, .page-header p { font-size: 13px; }
  .mission-grid, .prepare-grid, .workbench-grid, .operations-grid { grid-template-columns: 1fr; }
  .now-card { min-height: 0; grid-template-columns: 1fr; gap: 18px; padding: 24px; border-radius: 25px; }
  .now-card::after { right: -4%; bottom: -28%; font-size: 180px; }
  .now-title { font-size: clamp(28px, 9vw, 39px); }
  .now-countdown { justify-self: stretch; padding: 15px; }
  .now-countdown strong { font-size: 34px; }
  .panel, .reference-section { padding: 17px; }
  .journey-line { width: calc(100% + 8px); margin-left: -4px; }
  .journey-node { flex: 0 0 92px; }
  .journey-connector { flex: 0 0 72px; }
  .notice-grid, .flight-grid, .hotel-grid, .settings-grid { grid-template-columns: 1fr; }
  .day-audit-card { grid-template-columns: 1fr; align-items: start; }
  .filter-row { align-items: stretch; flex-direction: column; }
  .seg { width: 100%; overflow-x: auto; }
  .seg button { flex: 1; }
  .filter-select { max-width: none; width: 100%; }
  .item { grid-template-columns: 37px 58px minmax(0, 1fr); gap: 9px; min-height: 84px; padding: 13px 11px; }
  .item .type { width: 34px; height: 34px; }
  .item .time { font-size: 11px; }
  .route-link, .auto-route { margin-left: 42px; padding: 10px 8px; }
  .route-link .actions, .auto-route .actions { flex: 0 0 auto; }
  .readiness-card { grid-template-columns: 112px minmax(0, 1fr); gap: 17px; padding: 20px; border-radius: 24px; }
  .readiness-score { width: 108px; }
  .readiness-score strong { font-size: 27px; }
  .readiness-copy h2 { font-size: 20px; }
  .readiness-copy p { font-size: 12px; }
  .profile-controls, .profile-controls.four { grid-template-columns: 1fr; }
  .place-row { align-items: flex-start; }
  .candidate-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .candidate-wrap { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; }
  .drop-slots { grid-template-columns: 1fr; }
  dialog { max-height: 90vh; border-radius: 22px; }
  .modal { padding: 20px; }
  .toast, .undo-bar { bottom: calc(78px + var(--safe-bottom)); }
}

@media (max-width: 430px) {
  .app { padding-left: 13px; padding-right: 13px; }
  .sync-pill { max-width: 72px; }
  .sync-pill span:last-child { display: none; }
  .trip-header .icon-button, .page-header .icon-button { min-width: 43px; height: 43px; padding: 0 9px; }
  .now-card { padding: 21px 19px; }
  .panel, .reference-section { padding: 15px; }
  .section-head h2 { font-size: 20px; }
  .queue-grid { grid-template-columns: 1fr; }
  .weather-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emergency-grid { grid-template-columns: 1fr; }
  .readiness-card { grid-template-columns: 1fr; text-align: center; }
  .readiness-score { justify-self: center; }
  .missing-list { justify-content: center; }
  .item { grid-template-columns: 34px 1fr; }
  .item .time { grid-column: 2; grid-row: 1; padding: 0 0 3px; }
  .item .maintext { grid-column: 2; grid-row: 2; }
  .item .type { grid-row: 1 / span 2; }
  .route-link, .auto-route { margin-left: 28px; }
  .flight-timebar { gap: 5px; }
  .flight-city b { font-size: 28px; }
  .auth-actions { flex-direction: column; }
  .auth-actions input { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
