:root {
  --bg: #f4f7fb;
  --card: #fff;
  --text: #162033;
  --muted: #5b6677;
  --line: #dce3ec;
  --blue: #1769e0;
  --blue-soft: #e8f1ff;
  --teal: #087f6b;
  --teal-soft: #e2f5f0;
  --warning: #9a5700;
  --warning-soft: #fff4df;
  --danger: #b42318;
  --danger-soft: #feeceb;
  --coral: #c95045;
  --navy: #10294d;
  --shadow: 0 12px 35px rgba(34, 62, 100, .08);
  --radius: 16px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --display: "Jua", "Apple SD Gothic Neo", sans-serif;
  --body: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { border: 0; cursor: pointer; color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(23,105,224,.35); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1 { font-family: var(--display); font-size: 19px; letter-spacing: -.02em; }
h2 { font-family: var(--display); font-size: clamp(27px, 2.1vw, 36px); letter-spacing: -.025em; line-height: 1.08; }
h3 { font-size: 16px; letter-spacing: -.025em; }
small, .caption { color: var(--muted); font-size: 12px; }
.eyebrow { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.app-shell { display: grid; min-height: 100vh; grid-template-columns: 250px minmax(520px, 1fr); }
.sidebar { display: flex; flex-direction: column; padding: 27px 16px 20px; background: rgba(255,255,255,.78); border-right: 1px solid var(--line); min-height: 100vh; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 24px; }
.sidebar-brand h1 { margin-top: 3px; }
.brand-mark { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #1769e0, #50a4ff); color: #fff; box-shadow: 0 6px 12px rgba(23,105,224,.22); }
.brand-mark.small { width: 31px; height: 31px; border-radius: 10px; }
.brand-plane { font-size: 18px; transform: rotate(-20deg); display: inline-block; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: 22px; line-height: 1; }
.icon-button.ghost { margin-left: auto; background: transparent; color: var(--muted); }
.icon-button:hover { background: #dceaff; }
.trip-switcher { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px; border-radius: 13px; margin: 2px 0; }
.trip-switcher-main { display:flex; align-items:center; gap:10px; flex:1; min-width:0; padding:0; background:transparent; text-align:left; }
.trip-delete { width:24px; height:24px; border-radius:7px; background:transparent; color:var(--muted); opacity:0; }.trip-switcher:hover .trip-delete, .trip-switcher.selected .trip-delete { opacity:1; }.trip-delete:hover { background:var(--danger-soft); color:var(--danger); }
.trip-switcher.selected { background: var(--blue-soft); }
.trip-switcher:first-of-type { background: var(--blue-soft); }
.trip-switcher.muted { opacity: .72; }
.trip-cover { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.trip-cover.trip { background: linear-gradient(145deg, #1769e0, #5b8def); }
.trip-cover.jeju { background: linear-gradient(145deg, #3eb3a8, #176a7e); }
.trip-cover.paris { background: linear-gradient(145deg, #6e73bc, #30325d); }
.trip-switcher-copy { min-width: 0; display: grid; gap: 3px; }
.trip-switcher-copy strong, .trip-switcher-copy span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.trip-switcher-copy strong { font-size: 12px; }
.trip-switcher-copy span { font-size: 10px; color: var(--muted); }
.trip-empty-note { margin: 6px 8px 0; padding: 11px 10px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.trip-empty-note .link-button { margin-top: 4px; font-size: 10px; }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #9eacbc; }
.status-dot.live { margin-left: auto; background: #1da87b; box-shadow: 0 0 0 4px rgba(29,168,123,.12); }
.sidebar-divider { height: 1px; background: var(--line); margin: 20px 8px 13px; }
.side-nav { display: grid; gap: 3px; }
.side-nav-item { display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 12px; border-radius: 10px; background: transparent; color: var(--muted); text-align: left; font-size: 13px; }
.side-nav-item span:first-child { display: grid; place-items: center; width: 16px; font-size: 16px; }
.side-nav-item:hover { background: #eef4fb; color: var(--text); }
.side-nav-item.active { position: relative; background: #e9f2ff; color: var(--blue); font-weight: 700; }
.side-nav-item.active::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--blue); }
.nav-count { margin-left: auto; padding: 2px 7px; border-radius: 99px; background: #e9edf4; color: var(--muted); font-size: 10px; }
.nav-live { margin-left: auto; color: #18866b; font-size: 9px; letter-spacing: .1em; }
.sidebar-spacer { flex: 1; min-height: 30px; }
.sidebar-footer { display: grid; gap: 12px; padding: 15px 10px 0; border-top: 1px solid var(--line); }
.sync-row { display: flex; align-items: center; gap: 9px; }
.sync-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: var(--teal-soft); color: var(--teal); font-weight: 800; }
.sync-row div { display: grid; gap: 2px; }
.sync-row strong { font-size: 11px; }
.sync-row small { font-size: 10px; }
.sync-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.text-button { padding: 4px 0; background: transparent; color: var(--blue); font-size: 11px; text-align: left; }
.main-content { min-width: 0; padding: 36px clamp(22px, 3.6vw, 56px) 48px; overflow: hidden; }
.view { display: none; max-width: 880px; margin: 0 auto; }
.view.active { display: block; }
.mobile-topbar, .bottom-tabs { display: none; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-header .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 9px; color: var(--muted); font-size: 13px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 15px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 700; font-size: 12px; box-shadow: 0 6px 13px rgba(23,105,224,.16); }
.button:hover { background: #0959cb; }
.button.secondary { background: #fff; color: var(--blue); border: 1px solid #cbdcf5; box-shadow: none; }
.button.subtle { background: #eef4fb; color: var(--text); box-shadow: none; }
.button.danger { background: var(--danger); }
.chip { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 9px; border-radius: 99px; background: #edf1f6; color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.chip.teal { background: var(--teal-soft); color: var(--teal); }
.chip.warning { background: var(--warning-soft); color: var(--warning); }
.chip.danger { background: var(--danger-soft); color: var(--danger); }
.chip.outline { background: transparent; border: 1px solid var(--line); }
.hero { position:relative; overflow:hidden; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(circle at 90% 0%, #e5f0ff 0, #fff 45%), var(--card); box-shadow: var(--shadow); }
.hero::after { content:"✦"; position:absolute; right:24px; bottom:-13px; color:rgba(23,105,224,.08); font-size:92px; transform:rotate(14deg); pointer-events:none; }
.hero.compact { padding: 20px; }
.hero-top { position:relative; z-index:1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero p { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.hero-mark { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 22px 22px 22px 8px; background: linear-gradient(145deg, #f39a7d, #bb4660); color: #fff; font-family:var(--display); font-size: 23px; box-shadow: 0 10px 24px rgba(187,70,96,.2); transform:rotate(3deg); }
.hero-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hero-edit { position:relative; z-index:2; padding:3px 5px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 16px 0; }
.metric { display: grid; gap: 3px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.8); }
.metric strong { font-family:var(--display); font-size: 19px; letter-spacing: -.01em; color:var(--navy); }
.metric span { color: var(--muted); font-size: 10px; }
.section { margin-top: 26px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.section-heading h3 { font-size: 16px; }
.link-button { padding: 0; background: transparent; color: var(--blue); font-size: 11px; font-weight: 700; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 6px 18px rgba(34,62,100,.035); }
.pack-card { display: flex; align-items: center; gap: 13px; padding: 15px; }
.pack-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); font-size: 18px; }
.pack-card .grow { flex: 1; display: grid; gap: 4px; }
.pack-card strong { font-size: 13px; }
.pack-card span { color: var(--muted); font-size: 11px; }
.progress-ring { --progress: 88%; position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: conic-gradient(var(--blue) var(--progress), #e7edf4 0); }
.progress-ring::before { content: ""; position: absolute; inset: 7px; border-radius: inherit; background: var(--card); }
.progress-ring strong { position: relative; z-index: 1; font-size: 16px; }
.prep-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; }
.prep-card { display: flex; align-items: center; gap: 14px; padding: 17px; }
.check-items { display: grid; gap: 8px; }
.check-item { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.check-item button { width: 18px; height: 18px; border: 1px solid #c4cfdd; border-radius: 6px; background: #fff; color: transparent; font-size: 12px; }
.check-item.done button { border-color: var(--teal); background: var(--teal); color: #fff; }
.check-item.done span { text-decoration: line-through; opacity: .6; }
.alert-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #f4ddaf; border-radius: 14px; background: var(--warning-soft); }
.alert-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #ffe4ad; color: var(--warning); font-weight: 800; }
.alert-card .grow { flex: 1; display: grid; gap: 4px; }
.alert-card strong { color: #774100; font-size: 12px; }
.alert-card span { color: #916321; font-size: 11px; }
.days-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.day-card { padding: 14px; min-height: 96px; }
.day-card.active { border-color: #b8d1f8; background: var(--blue-soft); }
.day-card .day-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.day-card strong { display: block; margin-top: 16px; font-size: 12px; line-height: 1.4; }
.day-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.tabs-segment { display: inline-flex; padding: 3px; border-radius: 10px; background: #e9eef5; }
.tabs-segment button { min-width: 61px; padding: 7px 10px; border-radius: 8px; background: transparent; color: var(--muted); font-size: 11px; }
.tabs-segment button.active { background: #fff; color: var(--text); box-shadow: 0 2px 7px rgba(23,45,80,.08); font-weight: 700; }
.day-picker { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.day-picker::-webkit-scrollbar { display: none; }
.day-picker button { min-width: 72px; padding: 9px 8px; border-radius: 11px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.day-picker button strong { display: block; color: var(--text); font-size: 12px; }
.day-picker button.active { border-color: #accbf9; background: var(--blue-soft); color: var(--blue); }
.day-picker button.active strong { color: var(--blue); }
.timeline { position: relative; padding-top: 4px; }
.timeline::before { content: ""; position: absolute; left: 69px; top: 3px; bottom: 4px; border-left: 1px dashed #cfdae8; }
.timeline-row { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 19px; min-height: 88px; }
.timeline-time { padding-top: 14px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; }
.event-card { position: relative; margin-bottom: 9px; padding: 13px 14px 13px 17px; overflow: hidden; }
.event-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--blue); }
.event-card.flexible::before { background: var(--teal); }
.event-card.optional::before { background: #9baabd; border-left: 2px dashed #9baabd; }
.event-card.delayed { border-color: #f3d48d; background: #fffdf7; }
.event-card.delayed::before { background: #ed9d27; }
.event-card.current { box-shadow: 0 8px 22px rgba(23,105,224,.13); border-color: #b6d2fa; }
.event-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.event-card-title { display: grid; gap: 3px; min-width: 0; }
.event-card-title strong { font-size: 13px; letter-spacing: -.01em; }
.event-card-title span { color: var(--muted); font-size: 11px; }
.event-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; }
.event-card-time { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.event-card-actions { display: flex; gap: 5px; margin-top: 10px; }
.event-card-actions button { padding: 6px 8px; border-radius: 7px; background: #eef4fb; color: var(--blue); font-size: 10px; font-weight: 700; }
.event-card-actions button:hover { background: var(--blue-soft); }
.transport-card { position: relative; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; min-height: 62px; margin: -3px 0 7px; padding: 10px 13px; border: 1px dashed #b7c9dd; border-radius: 12px; background: #f8fbfe; }
.transport-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); }
.transport-copy { display: grid; gap: 3px; }
.transport-copy strong { font-size: 11px; }
.transport-copy span { color: var(--muted); font-size: 10px; }
.transport-time { text-align: right; color: var(--muted); font-size: 10px; }
.transport-time b { display: block; color: var(--danger); font-size: 13px; }
.map-card { position: relative; min-height: 248px; overflow: hidden; background: #dceaf1; }
.map-empty { min-height: 248px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 24px; text-align: center; color: var(--muted); background: linear-gradient(145deg, #eef5f2, #dce8e3); }
.map-empty strong { color: var(--text); font-size: 12px; }
.map-empty span { font-size: 10px; }
.map-empty-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: rgba(255,255,255,.72); color: var(--blue); font-size: 18px; }
.map-surface { position: absolute; inset: 0; background-color: #dceaf1; background-image: linear-gradient(27deg, transparent 47%, rgba(255,255,255,.8) 48%, rgba(255,255,255,.8) 50%, transparent 51%), linear-gradient(110deg, transparent 48%, rgba(255,255,255,.7) 49%, rgba(255,255,255,.7) 51%, transparent 52%), linear-gradient(8deg, transparent 49%, rgba(133,184,174,.18) 50%, transparent 51%); background-size: 160px 110px, 130px 170px, 190px 140px; }
.map-surface::after { content: "TRIP MAP"; position: absolute; right: 18%; bottom: 15%; color: rgba(23,105,224,.22); font-size: 11px; letter-spacing: .18em; transform: rotate(-15deg); }
.map-route { position: absolute; inset: 14% 12%; width: 76%; height: 70%; }
.map-route path { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 3 8; opacity: .8; }
.map-route.actual path { stroke: var(--coral); stroke-dasharray: none; stroke-width: 3; opacity: .78; }
.map-pin { position: absolute; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50% 50% 50% 0; background: var(--blue); color: #fff; font-size: 10px; font-weight: 800; transform: rotate(-45deg); box-shadow: 0 4px 8px rgba(23,105,224,.28); }
.map-pin span { transform: rotate(45deg); }
.map-pin.current { width: 15px; height: 15px; border: 3px solid #fff; background: var(--coral); border-radius: 50%; transform: none; box-shadow: 0 0 0 7px rgba(201,80,69,.18); }
.map-label { position: absolute; left: 13px; top: 12px; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.85); color: var(--muted); font-size: 10px; backdrop-filter: blur(10px); }
.map-controls { position: absolute; right: 11px; top: 10px; display: flex; gap: 5px; }
.map-controls button { padding: 6px 8px; border-radius: 7px; background: rgba(255,255,255,.85); color: var(--muted); font-size: 10px; }
.map-controls button.active { color: var(--blue); font-weight: 700; }
.map-legend { position: absolute; left: 11px; bottom: 10px; display: flex; gap: 8px; padding: 6px 8px; border-radius: 7px; background: rgba(255,255,255,.85); color: var(--muted); font-size: 9px; backdrop-filter: blur(10px); }
.map-legend i { display: inline-block; width: 17px; margin-right: 3px; border-top: 2px dashed var(--blue); vertical-align: middle; }
.map-legend i.actual { border-color: var(--coral); border-style: solid; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.change-card { padding: 16px; border: 1px solid #f1d8a7; border-radius: 15px; background: linear-gradient(135deg, #fff8e9, #fff); }
.change-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.change-card h3 { color: #7a4806; }
.change-card p { margin-top: 6px; color: #8a6426; font-size: 11px; line-height: 1.5; }
.change-card .source { display: flex; align-items: center; gap: 5px; margin-top: 11px; color: #9b742e; font-size: 10px; }
.change-card .button { margin-top: 12px; }
.proposal-preview { display: grid; gap: 8px; margin-top: 12px; }
.proposal-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.72); font-size: 10px; }
.proposal-line strong { color: var(--text); }
.route-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.route-summary > div { display: grid; gap: 4px; }
.route-summary strong { font-size: 13px; }
.route-summary span { color: var(--muted); font-size: 10px; }
.inspector { display: none; min-width: 0; padding: 28px 18px; border-left: 1px solid var(--line); background: rgba(250,252,255,.72); }
.inspector .map-card { min-height: 260px; }
.inspector-section { margin-top: 14px; }
.inspector-section h3 { margin-bottom: 9px; }
.inspector-note { padding: 13px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.inspector-note strong { display: block; font-size: 12px; }
.inspector-note p { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.phone-focus { display: none; }
.today-hero { padding: 19px; border-radius: 19px; background: linear-gradient(135deg, #163966, #1769e0); color: #fff; box-shadow: 0 14px 28px rgba(23,76,140,.2); }
.today-hero .eyebrow, .today-hero p { color: rgba(255,255,255,.72); }
.today-hero .hero-top { align-items: center; }
.today-hero h2 { font-size: 24px; }
.today-clock { text-align: right; }
.today-clock strong { display: block; font-size: 25px; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.today-clock span { color: rgba(255,255,255,.7); font-size: 10px; }
.today-next { display: flex; align-items: center; gap: 10px; margin-top: 17px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.2); }
.today-next .grow { flex: 1; display: grid; gap: 4px; }
.today-next strong { font-size: 12px; }
.today-next span { color: rgba(255,255,255,.73); font-size: 10px; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }
.quick-actions .button { min-height: 40px; }
.quick-actions .button.secondary { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.32); }
.ticket-list { display: grid; gap: 9px; }
.ticket-card { display: flex; align-items: center; gap: 12px; padding: 14px; }
.ticket-symbol { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-size: 17px; }
.ticket-card.soon { border-color: #b5d1f6; background: linear-gradient(115deg, #f8fbff, #fff); }
.ticket-card .grow { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ticket-card strong { font-size: 12px; }
.ticket-card span { color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-list { display: grid; padding: 7px; }
.project-row { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px; border-radius: 11px; }
.project-row + .project-row { border-top: 1px solid var(--line); }
.project-row .grow { flex: 1; min-width: 0; display: grid; gap: 4px; }
.project-row .grow strong { font-size: 12px; }.project-row .grow span { color: var(--muted); font-size: 10px; }
.form-grid { display: grid; gap: 13px; }
.search-place-button { margin-top: 7px; width: 100%; }
.place-search-results { display: grid; gap: 6px; margin-top: -5px; }
.place-search-result { display: grid; gap: 3px; width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; }
.place-search-result:hover { border-color: var(--blue); background: var(--blue-soft); }
.place-search-result strong { color: var(--text); font-size: 11px; }
.place-search-result span, .searching-note { color: var(--muted); font-size: 10px; line-height: 1.4; }
.map-real iframe { display: block; width: 100%; height: 248px; border: 0; }
.map-real .map-label { z-index: 1; }
.free-map { width: 100%; height: 248px; background: #e7eef2; }
.free-map .leaflet-container { min-height: 248px; }
.map-toolbar { position:absolute; z-index:10; top:12px; right:12px; display:flex; gap:5px; padding:4px; border:1px solid rgba(205,216,229,.9); border-radius:12px; background:rgba(255,255,255,.94); box-shadow:0 5px 18px rgba(25,49,80,.14); }
.map-toolbar button { min-width:32px; height:32px; padding:0 9px; border-radius:8px; background:#fff; color:var(--navy); font-size:12px; font-weight:800; }
.map-toolbar button:hover { background:var(--blue-soft); color:var(--blue); }
.map-card.map-standby{min-height:86px}.map-standby .map-toolbar,.map-standby .map-legend{display:none}.map-standby-note{display:grid;place-items:center;height:86px;padding:14px;color:var(--muted);font-size:10px;text-align:center;background:linear-gradient(135deg,#edf4f8,#e4eef3)}
.native-map-image{display:block;width:100%;height:100%;min-height:248px;object-fit:cover}.native-map-loading{display:grid;place-items:center;min-height:248px;color:var(--muted);font-size:11px;background:linear-gradient(135deg,#edf4f8,#dce9ef)}
.map-load-error { height:248px; display:grid; place-content:center; gap:5px; padding:20px; text-align:center; color:var(--muted); }
.map-load-error strong { color:var(--text); }
.map-legend small { color:var(--muted); font-size:9px; margin-left:auto; }
.section-subtitle { margin:3px 0 0; color:var(--muted); font-size:12px; }
.route-builder-card { padding:14px; }
.route-builder-head { display:flex; gap:12px; align-items:center; }
.route-builder-icon { width:32px; height:32px; border-radius:10px; display:grid; place-items:center; background:var(--blue-soft); color:var(--blue); font-size:17px; }
.route-stop-list { display:grid; gap:8px; margin-top:14px; }
.route-stop { display:flex; align-items:center; gap:9px; padding:9px 0; border-top:1px solid var(--line); }
.route-stop-number { width:24px; height:24px; display:grid; place-items:center; border-radius:50%; background:var(--blue); color:#fff; font-size:11px; font-weight:700; }
.route-stop strong, .route-stop span { display:block; }
.route-stop span { color:var(--muted); font-size:11px; margin-top:2px; }
.route-leg { display:flex; align-items:center; gap:10px; margin:2px 12px; padding:10px 12px; border-left:2px dashed #a9c8f4; border-radius:0 12px 12px 0; background:#f3f8ff; }
.route-leg > span { font-size:19px; }
.route-leg .grow { display:grid; gap:3px; }
.route-leg strong { font-size:11px; }
.route-leg small { font-size:10px; color:var(--muted); }
.danger-text { color:var(--danger); }
.icon-button { width:26px; height:26px; border:1px solid var(--line); border-radius:7px; color:var(--navy); background:#fff; cursor:pointer; }
.icon-button:disabled { opacity:.35; cursor:default; }
.route-selected { border-color:rgba(23,105,224,.35); box-shadow:0 0 0 1px rgba(23,105,224,.08); }
.journey-progress { margin-top:10px; padding:14px; display:flex; align-items:center; justify-content:space-between; gap:14px; background:linear-gradient(135deg,#f3f8ff,#fff); }
.journey-progress-copy strong, .journey-progress-copy span { display:block; }
.journey-progress-copy strong { margin:3px 0 4px; }
.journey-progress-copy strong { font-family:var(--display); font-size:17px; letter-spacing:-.01em; }
.journey-progress-copy span:last-child { color:var(--muted); font-size:11px; }
.journey-progress::after { content:"✈"; color:var(--blue); font-size:26px; transform:rotate(18deg); opacity:.75; }
.form-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.form-grid input, .form-grid select { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #fff; color: var(--text); font-size: 12px; }
.form-grid input:focus, .form-grid select:focus { border-color: #93baf0; box-shadow: 0 0 0 3px rgba(23,105,224,.1); }
.form-grid .button { width: 100%; margin-top: 4px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qr-grid { display: grid; grid-template-columns: repeat(13, 1fr); width: 210px; height: 210px; gap: 2px; padding: 9px; margin: 17px auto; border-radius: 7px; background: #fff; }
.qr-grid i { display: block; background: #122033; border-radius: 1px; }
.qr-grid i:nth-child(3n), .qr-grid i:nth-child(7n+2) { background: #fff; }
.qr-grid i:nth-child(17n+1), .qr-grid i:nth-child(31n+5) { background: #122033; }
.qr-corner { position: absolute; width: 45px; height: 45px; border: 6px solid #122033; }
.qr-corner.a { left: 15px; top: 15px; }.qr-corner.b { right: 15px; top: 15px; }.qr-corner.c { left: 15px; bottom: 15px; }
.qr-wrap { position: relative; width: 230px; margin: auto; }
.qr-wrap .qr-grid { width: 230px; height: 230px; }
.ticket-detail { text-align: center; padding: 18px; }
.ticket-detail h2 { font-size: 22px; }
.ticket-detail p { margin-top: 7px; color: var(--muted); font-size: 12px; }
.ticket-code { margin-top: 10px; color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.modal-backdrop { position: fixed; z-index: 10000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(19,31,52,.36); backdrop-filter: blur(8px); isolation:isolate; }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(540px, 100%); max-height: min(780px, 90vh); overflow: auto; border-radius: 20px; background: var(--card); box-shadow: 0 30px 90px rgba(10,31,60,.24); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 21px 22px 14px; }
.modal-head p { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.modal-body { padding: 0 22px 22px; }
.modal-close { width: 30px; height: 30px; border-radius: 8px; background: #eef3f8; color: var(--muted); }
.proposal-option { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 13px; margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; }
.proposal-option.recommended { border-color: #a8c9f7; background: #f7fbff; }
.proposal-option h3 { font-size: 12px; }.proposal-option p { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.proposal-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.proposal-option .button { grid-row: span 2; }
.modal-footnote { margin-top: 14px; padding: 10px; border-radius: 9px; background: #f5f7fa; color: var(--muted); font-size: 10px; line-height: 1.5; }
.form-error { min-height:18px; color:#b42318; font-size:11px; font-weight:700; }
.screenshot-import { display:grid; gap:9px; padding:13px; border:1px dashed #b8cbe5; border-radius:14px; background:#f5f9ff; }.screenshot-import strong{font-size:12px}.screenshot-import p,.ocr-status{color:var(--muted);font-size:10px;line-height:1.5}.screenshot-button{position:relative;overflow:hidden;width:max-content}.screenshot-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.screenshot-preview{display:flex;gap:7px;overflow-x:auto}.screenshot-preview img{width:66px;height:86px;object-fit:cover;border-radius:9px;border:1px solid var(--line)}.form-grid textarea{width:100%;resize:vertical;border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff;color:var(--navy);font:inherit}
.captured-place-info{display:grid;gap:9px;margin-top:13px;padding:12px;border-radius:12px;background:#f5f7fa;color:var(--muted);font-size:11px;line-height:1.55}.captured-images{display:flex;gap:7px;overflow-x:auto}.captured-images img{width:92px;height:118px;object-fit:cover;border-radius:9px}
.install-steps { display: grid; gap: 10px; margin-top: 8px; }.install-step { display: flex; gap: 10px; align-items: flex-start; }.install-step b { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 11px; }.install-step p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translate(-50%, 20px); pointer-events: none; opacity: 0; padding: 11px 15px; border-radius: 99px; background: #162033; color: #fff; font-size: 12px; transition: .25s ease; box-shadow: 0 10px 24px rgba(10,25,50,.2); }.toast.show { opacity: 1; transform: translate(-50%, 0); }
.place-list { display: grid; gap: 9px; }
.place-card { padding: 14px; }
.place-card-head { display:flex; align-items:center; gap:10px; }
.place-icon { display:grid; place-items:center; width:36px; height:36px; flex:0 0 auto; border-radius:11px; background:var(--blue-soft); color:var(--blue); font-size:19px; }
.place-card .grow { flex:1; min-width:0; display:grid; gap:4px; }.place-card .grow strong { font-size:13px; }.place-card .grow span { color:var(--muted); font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.place-hours { display:grid; grid-template-columns:repeat(3, 1fr); gap:7px; margin:12px 0; padding:10px; border-radius:10px; background:#f8fafc; }.place-hours div { display:grid; gap:4px; min-width:0; }.place-hours small { font-size:9px; }.place-hours strong { font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.place-card-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--muted); font-size:10px; }.place-card-foot > span { display:flex; align-items:center; gap:5px; min-width:0; }.place-confidence { font-size:9px; }.place-card-foot > div { display:flex; gap:7px; align-items:center; white-space:nowrap; }.place-card-foot .button { min-height:30px; padding:0 9px; font-size:10px; }.place-import-card { display:flex; align-items:center; gap:12px; padding:15px; }.place-import-icon { display:grid; place-items:center; width:38px; height:38px; border-radius:12px; background:var(--blue-soft); color:var(--blue); font-size:20px; }.place-import-card .grow { flex:1; display:grid; gap:4px; }.place-import-card strong { font-size:12px; }.place-import-card span { color:var(--muted); font-size:10px; }.place-footnote { padding:15px; }.place-footnote strong { font-size:12px; }.place-footnote p { margin-top:6px; color:var(--muted); font-size:10px; line-height:1.55; }.place-footnote .link-button { margin-top:9px; }
.memory-hero { position: relative; min-height: 260px; overflow: hidden; border-radius: 20px; background: linear-gradient(135deg, #142e51, #c95045 155%); color: #fff; }.memory-hero .map-surface { opacity: .35; mix-blend-mode: screen; }.memory-hero .memory-copy { position: absolute; left: 22px; right: 22px; bottom: 19px; }.memory-copy p { margin-top: 6px; color: rgba(255,255,255,.72); font-size: 11px; }.memory-stats { display: flex; gap: 20px; margin-top: 15px; }.memory-stats strong { display: block; font-size: 17px; }.memory-stats span { color: rgba(255,255,255,.72); font-size: 10px; }.memory-route-dot { position: absolute; width: 12px; height: 12px; border: 3px solid #fff; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 7px rgba(201,80,69,.28); }.memory-photo-grid { display: grid; grid-template-columns: 1.3fr .7fr; grid-template-rows: 100px 100px; gap: 8px; }.memory-photo { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 10px; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #e69b73, #8e3d60); }.memory-photo:nth-child(2) { background: linear-gradient(145deg, #7bc2c0, #236a81); }.memory-photo:nth-child(3) { background: linear-gradient(145deg, #e5b477, #b3574a); }.memory-photo:nth-child(4) { background: linear-gradient(145deg, #7675b8, #35335f); }.memory-photo:first-child { grid-row: span 2; }.memory-photo span { position: relative; z-index: 1; font-size: 10px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.4); }.memory-photo::before, .memory-photo::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.13); }.memory-photo::before { width: 120px; height: 120px; right: -20px; top: -30px; }.memory-photo::after { width: 80px; height: 80px; left: -25px; bottom: -20px; }
.empty-state { padding: 30px 20px; text-align: center; color: var(--muted); }.empty-state strong { display: block; color: var(--text); }.empty-state p { margin-top: 5px; font-size: 11px; }

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 220px minmax(520px, 1fr); }
  .inspector { display: none; }
  .main-content { padding-left: clamp(20px, 4vw, 42px); padding-right: clamp(20px, 4vw, 42px); }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(68px + var(--safe-bottom)); }
  .app-shell { display: block; min-height: auto; }
  .sidebar, .inspector { display: none; }
  .mobile-topbar { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; gap: 9px; min-height: 62px; padding: 9px 16px; border-bottom: 1px solid rgba(220,227,236,.85); background: rgba(244,247,251,.9); backdrop-filter: blur(18px); }
  .mobile-topbar > div:nth-child(2) { display: grid; gap: 2px; flex: 1; }.mobile-topbar strong { font-size: 13px; }.mobile-topbar .icon-button { background: #fff; border: 1px solid var(--line); }
  .main-content { padding: 20px 16px 20px; overflow: visible; }.view { max-width: none; }.page-header { margin-bottom: 18px; }.page-header .header-actions { display: none; }.page-header h2 { font-size: 26px; }.page-header .meta { font-size: 11px; }
  .hero { padding: 18px; }.hero h2 { font-size: 25px; }.hero-mark { width: 55px; height: 55px; border-radius: 17px; }.metrics { grid-template-columns: repeat(3, 1fr); gap: 6px; }.metric { padding: 10px 9px; }.metric strong { font-size: 15px; }.metric span { font-size: 9px; }
  .prep-grid, .two-col { grid-template-columns: 1fr; }.days-grid { grid-template-columns: repeat(2, 1fr); }.day-card { min-height: 84px; }.day-card strong { margin-top: 11px; }
  .bottom-tabs { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 4px calc(8px + var(--safe-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(20px); }.bottom-tabs button { display: grid; place-items: center; gap: 3px; min-height: 46px; border-radius: 10px; background: transparent; color: var(--muted); }.bottom-tabs button span { font-size: 17px; line-height: 1; }.bottom-tabs button small { color: inherit; font-size: 9px; }.bottom-tabs button.active { background: var(--blue-soft); color: var(--blue); }.bottom-tabs button.active small { color: var(--blue); font-weight: 700; }
  .timeline::before { left: 54px; }.timeline-row { grid-template-columns: 43px 1fr; gap: 20px; min-height: 82px; }.timeline-time { font-size: 10px; }.event-card { padding: 12px 12px 12px 14px; }.event-card-title strong { font-size: 12px; }.transport-card { grid-template-columns: 30px 1fr; }.transport-time { grid-column: 2; text-align: left; }.transport-time b { display: inline; margin-left: 5px; }.route-summary { grid-template-columns: repeat(3, 1fr); padding: 12px 10px; }.route-summary strong { font-size: 12px; }
  .today-hero { margin: -2px 0 0; }.today-hero h2 { font-size: 23px; }.today-clock strong { font-size: 23px; }.quick-actions { gap: 7px; }.change-card { padding: 14px; }.map-card { min-height: 205px; }.map-pin { width: 22px; height: 22px; font-size: 9px; }.section { margin-top: 22px; }.section-heading h3 { font-size: 15px; }
  .mobile-live-map,.mobile-route-map{display:block}.mobile-live-map .map-card,.mobile-route-map .map-card{height:280px;min-height:280px;border-radius:17px}.mobile-live-map .free-map,.mobile-route-map .free-map{height:280px}.mobile-live-map .map-toolbar,.mobile-route-map .map-toolbar{top:10px;right:10px}.today-hero .quick-actions{display:grid;grid-template-columns:1fr 1fr}.today-hero .quick-actions .button{width:100%}
  .memory-hero { min-height: 245px; }.memory-photo-grid { grid-template-rows: 88px 88px; }.modal-backdrop { align-items: end; padding: 0; }.modal { width: 100%; max-height: 88vh; border-radius: 21px 21px 0 0; }
  .place-import-card { align-items:flex-start; }.place-import-card .button { min-height:34px; padding:0 10px; }.place-card-foot { align-items:flex-end; }.place-confidence { display:none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
