html, body, .app-shell { height: 100%; overflow: hidden; }
.route-flow-dot { width: 5px; height: 5px; border-radius: 50%; background: white; box-shadow: 0 0 3px var(--flow-color); pointer-events: none; animation: route-flow-pulse 1.6s linear infinite; }
.route-flow-arrow { width: 17px; height: 14px; pointer-events: none; }
.route-flow-arrow svg { display: block; }
@keyframes route-flow-pulse { 0%, 60%, 100% { opacity: .18; } 15%, 30% { opacity: 1; } }
.segment-item .segment-line { width: 6px; height: 22px; flex-shrink: 0; border-radius: 4px; background: var(--segment-color); }
.segment-item .mode-button.active { border-color: var(--segment-color); }
@media (prefers-reduced-motion: reduce) { .route-flow-dot { animation: none; opacity: .8; } }
.number-pin-wrap { position: relative; width: 36px; height: 36px; }
.number-pin { position: absolute; width: 36px; height: 36px; border: 3px solid white; border-radius: 50%; background: #216a4d; color: white; font: 800 15px "DM Sans", sans-serif; box-shadow: 0 3px 0 #16462f, 0 5px 12px #0004; }
.number-pin.first { background: #dc7048; box-shadow: 0 3px 0 #974a2e, 0 5px 12px #0004; }
.pin-leader { position: absolute; width: 36px; height: 36px; overflow: visible; pointer-events: none; }
.courses-menu { margin-top: 20px; border: 1px solid #c5d6c9; border-radius: 12px; background: #f1f6ed; padding: 12px; }
.courses-menu summary { cursor: pointer; font-size: 15px; font-weight: 800; color: #214b33; }
.courses-menu summary span { float: right; }
.courses-menu p, .course-note { font-size: 13px; line-height: 1.6; color: #3b5142; }
.courses-menu a { font-size: 12px; color: #315b40; }
.course-button { width: 100%; display: flex; gap: 10px; text-align: left; background: white; border: 1px solid #d8e3d3; border-radius: 10px; margin: 8px 0; padding: 12px 9px; }
.course-button:hover { border-color: #357d52; background: #f8fff4; }
.course-button:disabled { opacity: .5; cursor: wait; }
.course-icon { font-size: 26px; }
.course-button b { display: block; font-size: 15px; color: #1c3a28; }
.course-button small, .course-button em { display: block; font-size: 12px; line-height: 1.6; color: #465a4b; font-style: normal; }
.course-note { border-left: 3px solid #d98a49; padding: 8px 10px; background: #fff3df; border-radius: 6px; }
.trip-date-label { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-size: 14px; font-weight: 700; color: #1e4936; }
#trip-date { min-width: 0; padding: 7px 9px; border: 1px solid #b4c8b8; background: #f0f6ec; border-radius: 8px; font-size: 15px; font-weight: 700; color: #203c2c; }
.weather-bar { position: fixed; z-index: 11; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 12px; background: #18221fef; color: white; box-shadow: 0 5px 18px #0003; white-space: nowrap; max-width: calc(100vw - 18px); }
.weather-bar #center-weather { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.weather-bar #center-weather span + span { border-left: 1px solid #ffffff40; padding-left: 12px; }
.weather-bar a { color: #c7d5cc; font-size: 11px; text-decoration: none; }
.workspace { display: block; min-height: 0; }
.map-section { position: fixed; inset: 0; min-height: 0; }
.map-canvas { inset: 0; }
.topbar { position: fixed; top: 12px; left: 14px; right: 14px; height: 56px; padding: 0 18px; border: 1px solid #e0e6df; border-radius: 16px; z-index: 20; }
.brand { font-size: 17px; }
.top-actions { gap: 7px; }
.ghost-button { font-size: 12px; padding: 8px; }
.topbar .primary-button { font-size: 12px; padding: 7px 15px; }
.route-panel, .detail-panel { position: fixed; top: var(--panel-top); bottom: 28px; width: 330px; padding: 22px 18px; border: 1px solid #e1e6df; border-radius: 18px; z-index: 12; box-shadow: 0 12px 35px #19382522; overflow-y: auto; scrollbar-width: thin; min-height: 0; background: #fffefaf5; }
.route-panel { left: 14px; }
.detail-panel { right: 14px; display: block; }
.detail-panel .detail-bottom { margin-top: 20px; }
.panel-close { width: 28px; height: 28px; border: 0; border-radius: 8px; color: #536257; background: #edf1eb; font-size: 20px; cursor: pointer; }
.route-panel > .panel-close, .detail-panel > .panel-close { float: right; margin-left: 8px; }
.detail-header { clear: both; padding-top: 9px; }
.plan-title { font-size: 22px; }
.subtitle { margin: 5px 0 17px; font-size: 11px; }
.route-heading { margin-top: 22px; }
.place-list { display: flex; }
.place-text { min-width: 0; }
.segment-item { grid-template-columns: 1fr; padding-left: 18px; }
.segment-meta { margin-left: 0; }
.mode-switch { margin-left: 10px; }
.tip-card { display: none; }
.map-controls { position: fixed; right: 355px; top: 92px; z-index: 10; }
.map-controls button { width: 32px; height: 32px; }
.route-pill { position: fixed; left: 50%; right: auto; bottom: 36px; transform: translateX(-50%); font-size: 10px; padding: 8px 12px; }
.map-footer { font-size: 9px; height: 22px; }
.map-footer #map-status { display: none; }
.center-info { position: fixed; top: var(--panel-top); left: 50%; transform: translateX(-50%); z-index: 9; padding: 10px 18px; max-width: calc(100vw - 720px); border-radius: 12px; color: white; background: #131b19ed; box-shadow: 0 7px 24px #0003; text-align: center; }
.center-info strong { display: block; font-size: 13px; margin: 3px 0 5px; }
.center-caption { font-size: 9px; color: #afc4b8; }
#center-weather { font-size: 10px; line-height: 1.6; }
.center-info a { font-size: 8px; color: #adbbb2; text-decoration: none; }
.center-crosshair { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); pointer-events: none; color: #14231b; text-shadow: 0 0 3px white; font-size: 23px; z-index: 6; opacity: .65; }
.floating-button { position: fixed; z-index: 21; border: 1px solid #d8e3da; border-radius: 10px; background: white; color: #24583f; box-shadow: 0 3px 12px #173e2922; height: 34px; padding: 0 11px; font-size: 12px; }
[hidden] { display: none !important; }
#open-list { left: 14px; top: var(--panel-top); }
#open-top { right: 14px; top: 12px; }
#locate-button { right: 355px; bottom: 62px; width: 34px; padding: 0; font-size: 24px; }
.my-route-info { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 40px); border-radius: 10px; background: #1754b9; color: white; padding: 10px 16px; font-size: 12px; z-index: 10; box-shadow: 0 6px 22px #0002; }
.my-location-dot { width: 18px; height: 18px; border: 3px solid white; background: #2679ff; border-radius: 50%; box-shadow: 0 0 0 8px #2679ff33, 0 2px 7px #0004; }
.list-closed .route-panel, .detail-closed .detail-panel, .top-closed .topbar { display: none; }
.top-closed { --panel-top: 56px; }
.detail-closed .map-controls, .detail-closed #locate-button { right: 16px; }
.brand-mark, .place-index, .tip-icon, .search-icon { transform: none; }
#history-dialog { border: 0; border-radius: 20px; padding: 24px; width: min(580px, 92vw); max-height: 80vh; color: var(--ink); box-shadow: 0 20px 80px #0004; }
#history-dialog::backdrop { background: #0d201c88; backdrop-filter: blur(3px); }
.history-heading { display: flex; align-items: center; justify-content: space-between; }
.history-heading h2 { font-size: 20px; margin: 0; }
#history-dialog p { color: var(--muted); font-size: 12px; }
.history-record { display: flex; flex-direction: column; gap: 7px; width: 100%; text-align: left; padding: 16px; margin: 10px 0; background: #f3f7ef; border: 1px solid #dce5d5; border-radius: 12px; }
.history-record span, .history-record small { font-size: 11px; color: #68756a; }
@media (max-width: 1100px) { .center-info { max-width: calc(100vw - 400px); left: auto; right: 65px; transform: none; } .detail-panel { z-index: 14; } }
@media (max-width: 760px) {
  .topbar { top: 8px; left: 8px; right: 8px; padding: 0 10px; height: 50px; }
  :root { --panel-top: 150px; }
  .top-closed { --panel-top: 110px; }
  .brand { font-size: 13px; gap: 6px; } .brand-mark { width: 25px; height: 25px; }
  .top-actions { gap: 2px; } .topbar .ghost-button { display: none; }
  #history-button, #archive-button { display: block; padding: 5px; font-size: 10px; }
  .topbar .primary-button { padding: 5px 9px; }
  .center-info { top: 66px; right: 55px; left: 8px; max-width: none; padding: 6px 10px; }
  .top-closed .center-info { top: 12px; right: 90px; }
  .center-info strong { font-size: 11px; margin: 0; } .center-caption, .center-info a { font-size: 8px; }
  #center-weather { font-size: 9px; }
  .route-panel, .detail-panel { top: var(--panel-top); bottom: 30px; width: min(330px, calc(100vw - 60px)); padding: 18px 14px; }
  .route-panel { left: 8px; } .detail-panel { right: 8px; }
  .map-controls { right: 8px; top: 160px; } #locate-button { right: 8px; bottom: 62px; }
  .detail-closed .map-controls, .detail-closed #locate-button { right: 8px; }
  .route-pill { bottom: 30px; white-space: nowrap; }
  .my-route-info { bottom: 68px; font-size: 10px; width: max-content; }
  .map-route-label { max-width: 165px; }
}
.route-panel { width: 360px; }
.route-panel .place-text b { font-size: 16px; color: #152b20; }
.route-panel .place-text span { font-size: 13px; color: #46594c; white-space: normal; line-height: 1.55; }
.route-panel .place-time { color: #125d3b; font-size: 14px; }
.route-panel .segment-label, .route-panel .segment-meta { font-size: 13px; color: #364b3e; }
.route-panel .mode-button { font-size: 13px; padding: 6px 9px; color: #384c3f; }
.route-panel .search-box input, .route-panel .search-box button { font-size: 14px; color: #23442f; }
.route-panel .search-box input::placeholder { color: #56685a; }
.route-panel .search-result b { font-size: 15px; }
.route-panel .search-result span { font-size: 13px; color: #46594c; }
.route-panel .schedule-time, .route-panel .schedule-copy b { font-size: 13px; }
.route-panel .schedule-copy span { font-size: 12px; color: #46594c; }
.route-panel .section-label, .route-panel #plan-date { font-size: 12px; color: #305440; }
.route-panel .schedule-item { grid-template-columns: 46px 1fr; }
.route-panel .text-button { font-size: 13px; }
.route-panel .timeline-card .content-card-top { align-items: start; flex-direction: column; }
.route-pill { bottom: 78px; }
.my-route-info { bottom: 116px; }
@media(max-width:760px) { .route-panel { width: min(350px, calc(100vw - 52px)); } .weather-bar { padding: 7px 9px; gap: 5px; } .weather-bar #center-weather { font-size: 10px; gap: 6px; } .weather-bar #center-weather span + span { padding-left: 6px; } }
