:root {
  --ink: #202c29;
  --muted: #7e8984;
  --soft: #aab0a5;
  --paper: #f6f4ee;
  --panel: #fbfaf6;
  --line: #e6e4dc;
  --forest: #1d4a3b;
  --forest-deep: #14392f;
  --sage: #d9e1d5;
  --lime: #d8ea6e;
  --orange: #e57e48;
  --gold: #efb44e;
  --mono: "DM Mono", monospace;
  --sans: "DM Sans", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); font-family: var(--sans); }
button, input { font: inherit; }
button { color: inherit; border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, [contenteditable="true"]:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.app-shell { display: flex; min-height: 100vh; overflow: hidden; }
.rail { width: 86px; padding: 24px 15px 18px; background: var(--forest); color: #edf0e7; display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.brand-mark { width: 43px; height: 43px; border-radius: 13px; background: var(--lime); color: var(--forest-deep); display: grid; place-items: center; text-decoration: none; font-weight: 800; font-size: 20px; transform: rotate(-7deg); box-shadow: 0 6px 12px rgba(0,0,0,.11); }
.brand-mark span { transform: rotate(7deg); }
.rail-nav { margin-top: 66px; display: grid; gap: 16px; width: 100%; }
.rail-link { position: relative; width: 100%; background: transparent; color: #afc2b8; padding: 8px 0; display: grid; justify-items: center; gap: 6px; font-size: 10px; transition: .2s ease; }
.rail-link:hover, .rail-link.active { color: #fff; }
.rail-link.active::before { content: ""; position: absolute; left: -15px; top: 11px; width: 3px; height: 30px; background: var(--lime); border-radius: 0 3px 3px 0; }
.rail-icon { height: 25px; font-size: 25px; line-height: 22px; font-weight: 300; }
.rail-bottom { margin-top: auto; display: grid; gap: 20px; justify-items: center; width: 100%; }
.avatar-button { width: 39px; height: 39px; border-radius: 50%; background: #d6dfd2; color: var(--forest); position: relative; font-weight: 700; font-size: 13px; border: 2px solid rgba(255,255,255,.25); }
.online-dot { position: absolute; width: 9px; height: 9px; right: -1px; bottom: 0; border-radius: 50%; background: var(--lime); border: 2px solid var(--forest); }
.workspace { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.topbar { height: 83px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(251,250,246,.7); }
.breadcrumb { display: flex; gap: 11px; align-items: center; min-width: 0; font-size: 14px; }
.eyebrow { display: block; text-transform: uppercase; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--muted); }
.crumb-separator { color: #c6cac0; }.saved-state { font-family: var(--mono); font-size: 10px; color: #9ba899; margin-left: 8px; }
.top-actions { display: flex; gap: 9px; align-items: center; }
.ghost-button, .outline-button, .primary-button { border-radius: 7px; height: 37px; padding: 0 14px; font-size: 12px; font-weight: 600; transition: .2s ease; }
.ghost-button { color: var(--muted); background: transparent; }.ghost-button:hover { color: var(--forest); background: #edede5; }
.outline-button { color: var(--forest); border: 1px solid #ccd5c8; background: transparent; }.outline-button:hover { background: var(--sage); }
.primary-button { color: var(--forest-deep); background: var(--lime); }.primary-button:hover { background: #e3f47b; transform: translateY(-1px); }
.content-area { min-height: 0; flex: 1; display: flex; }
.map-column { min-width: 0; flex: 1; padding: 25px 28px 24px 32px; display: flex; flex-direction: column; gap: 16px; }
.map-toolbar { display: flex; justify-content: space-between; align-items: center; }
.mode-switch { display: inline-flex; gap: 3px; background: #ebece4; padding: 4px; border-radius: 7px; }.mode-tab { color: var(--muted); background: transparent; border-radius: 5px; padding: 8px 13px; font-size: 12px; }.mode-tab.active { background: var(--panel); color: var(--forest); box-shadow: 0 1px 3px rgba(28,45,39,.08); font-weight: 600; }
.map-tools { display: flex; align-items: center; gap: 3px; }.tool-button { background: transparent; color: #88918b; width: 30px; height: 30px; font-size: 18px; border-radius: 5px; }.tool-button:hover { background: #e9ebe4; color: var(--forest); }.tool-divider { width: 1px; height: 18px; background: var(--line); margin: 0 7px; }
.map-stage { position: relative; flex: 1; min-height: 460px; overflow: hidden; border-radius: 9px; background: #d7e0d5; box-shadow: 0 1px 0 rgba(26,55,43,.08); cursor: crosshair; }
#mapCanvas { position: absolute; inset: 0; z-index: 0; background: #d9e3d8; }
#mapCanvas .leaflet-container { height: 100%; width: 100%; background: #d9e3d8; font-family: var(--sans); }
#mapCanvas .leaflet-control-attribution { font-size: 9px; background: rgba(251,250,246,.8); }
#mapCanvas .leaflet-control-zoom { border: 0; box-shadow: 0 1px 4px rgba(35,59,42,.12); }
#mapCanvas .leaflet-control-zoom a { color: #557064; background: rgba(251,250,246,.9); border: 0; }
.map-stage .map-texture, .map-stage .map-label, .map-stage .water-label, .map-stage .map-contour, .map-stage .route-svg, .map-stage > .map-marker, .map-stage > .map-pin { display: none; }
.map-stage:has(#mapCanvas) { cursor: grab; }
.map-stage:has(#mapCanvas):active { cursor: grabbing; }
.map-texture { position: absolute; inset: 0; background-color: #dae3d7; background-image: linear-gradient(112deg, transparent 0 43%, rgba(246,244,238,.57) 43.1% 43.6%, transparent 43.7%), linear-gradient(20deg, transparent 0 37%, rgba(255,255,255,.35) 37.1% 37.6%, transparent 37.7%), repeating-linear-gradient(18deg, rgba(81,121,89,.05) 0 1px, transparent 1px 14px), repeating-linear-gradient(108deg, rgba(57,101,72,.045) 0 1px, transparent 1px 17px); }
.map-texture::before, .map-texture::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(92,129,100,.14); width: 55%; height: 45%; transform: rotate(-24deg); top: 8%; left: -7%; box-shadow: 22px 18px 0 -7px rgba(92,129,100,.06), 45px -5px 0 -10px rgba(92,129,100,.06); }.map-texture::after { width: 62%; height: 35%; top: 52%; left: 44%; transform: rotate(12deg); }
.map-contour { position: absolute; border-radius: 50%; border: 1px solid rgba(126,143,103,.15); pointer-events: none; }.contour-a { width: 44%; height: 45%; left: 35%; top: 14%; transform: rotate(16deg); }.contour-b { width: 31%; height: 27%; right: -2%; top: 55%; transform: rotate(-35deg); }.contour-c { width: 48%; height: 46%; left: -19%; bottom: -13%; transform: rotate(22deg); }
.route-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }.route-line, .route-shadow { fill: none; stroke-linecap: round; stroke-linejoin: round; }.route-shadow { stroke: rgba(14,53,39,.22); stroke-width: 11; }.route-line { stroke: var(--orange); stroke-width: 5; filter: drop-shadow(0 2px 1px rgba(123,66,38,.18)); transition: d .35s ease; }
.map-label, .water-label { position: absolute; color: rgba(54,83,63,.62); font-family: var(--mono); font-size: 10px; letter-spacing: .05em; pointer-events: none; }.label-one { top: 29%; left: 39%; }.label-two { top: 48%; left: 58%; font-weight: 500; color: rgba(40,75,52,.75); }.label-three { top: 20%; right: 18%; }.label-four { top: 59%; left: 52%; }.water-label { top: 41%; left: 73%; color: rgba(74,123,127,.46); transform: rotate(-16deg); font-size: 11px; }
.map-marker { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; pointer-events: none; z-index: 2; }.map-marker span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); color: white; font: 500 10px var(--mono); box-shadow: 0 3px 7px rgba(33,53,43,.22); }.map-marker span::first-letter { transform: rotate(45deg); }.map-marker small { margin-top: 5px; font: 500 10px var(--mono); color: #385742; white-space: nowrap; text-shadow: 0 1px 2px #e0eadc; }.map-marker.start-marker span { background: var(--forest); }.map-marker.end-marker span { background: var(--orange); }.map-marker.stop-marker span { background: #f8f5e9; color: var(--forest); border: 2px solid var(--orange); }
.map-pin { position: absolute; z-index: 3; width: 25px; height: 25px; transform: translate(-50%,-50%); border-radius: 50%; background: #f8f5e9; color: var(--orange); box-shadow: 0 2px 8px rgba(37,56,42,.16); font-size: 16px; }.map-pin:hover { transform: translate(-50%,-50%) scale(1.12); color: var(--forest); }.map-scale { position: absolute; left: 21px; bottom: 20px; color: #527161; font: 9px var(--mono); }.map-scale span { display: block; width: 57px; height: 5px; border: 1px solid #527161; border-top: 0; margin-bottom: 4px; }.map-bottom-hint { position: absolute; left: 50%; bottom: 15px; transform: translateX(-50%); padding: 7px 10px; background: rgba(246,244,238,.74); border-radius: 20px; color: #62796b; font-size: 10px; backdrop-filter: blur(5px); }.hint-dot, .live-indicator { display: inline-block; width: 6px; height: 6px; background: var(--orange); border-radius: 50%; margin-right: 5px; }.map-zoom { position: absolute; right: 16px; bottom: 17px; display: grid; background: rgba(251,250,246,.82); border-radius: 5px; overflow: hidden; box-shadow: 0 1px 4px rgba(35,59,42,.12); }.map-zoom button { width: 30px; height: 28px; background: transparent; color: #557064; font-size: 17px; }.map-zoom button:hover { background: #eff2e9; }
.route-command-bar { position: relative; flex-shrink: 0; height: 70px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; padding: 0 18px; box-shadow: 0 2px 5px rgba(31,49,40,.03); }.route-mode-select { position: relative; display: flex; align-items: center; gap: 10px; min-width: 190px; }.route-mode-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; background: #f3e4d9; color: var(--orange); font-size: 19px; }.route-mode-select strong, .route-summary-inline strong { display: block; font-size: 13px; margin-top: 4px; }.select-trigger { margin-left: auto; background: transparent; color: var(--muted); font-size: 15px; }.mode-menu { position: absolute; display: none; left: -7px; bottom: 51px; z-index: 10; width: 205px; padding: 6px; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; box-shadow: 0 10px 30px rgba(29,47,39,.13); }.mode-menu.open { display: grid; }.mode-menu button { text-align: left; background: transparent; border-radius: 5px; display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; padding: 10px 8px; }.mode-menu button:hover { background: var(--sage); }.mode-menu button span { grid-row: span 2; font-size: 18px; color: var(--orange); }.mode-menu b { font-size: 12px; }.mode-menu small { font-size: 10px; color: var(--muted); }.route-separator { height: 30px; width: 1px; background: var(--line); margin: 0 19px; }.route-summary-inline { flex: 1; }.add-stop-button { background: transparent; color: var(--forest); font-size: 12px; font-weight: 600; }.add-stop-button span { color: var(--orange); margin-right: 4px; font-size: 15px; }
.detail-panel { width: 390px; border-left: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; flex-shrink: 0; }.panel-scroll { min-height: 0; flex: 1; overflow: auto; padding: 28px 28px 18px; }.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; }.panel-heading h1 { margin: 7px 0 0; font-size: 23px; letter-spacing: -.04em; line-height: 1.15; }.more-button, .card-more { background: transparent; color: #9aa39a; letter-spacing: 2px; }.more-button { padding: 5px 0 0; }.route-description { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 13px 0 20px; }.stats-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 15px 0; gap: 8px; }.stat-card { display: grid; gap: 6px; border-right: 1px solid var(--line); }.stat-card:last-child { border: 0; }.stat-card span { font: 9px var(--mono); text-transform: uppercase; color: var(--muted); }.stat-card strong { font-size: 17px; letter-spacing: -.04em; }.stat-card small { font: 9px var(--mono); font-weight: 400; color: var(--muted); }.section-block { margin-top: 26px; }.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 13px; }.section-head h2 { margin: 6px 0 0; font-size: 14px; letter-spacing: -.01em; }.tiny-action { width: 24px; height: 24px; color: var(--forest); background: #edf0e7; border-radius: 50%; font-size: 16px; }.tiny-action:hover { background: var(--sage); }.stops-list { display: grid; gap: 2px; }.stop-row { display: flex; align-items: center; gap: 10px; min-height: 47px; border-bottom: 1px solid #efeee8; }.stop-index { width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #d3dace; color: var(--forest); font: 10px var(--mono); flex-shrink: 0; }.stop-index.start, .stop-index.end { color: white; border-color: var(--forest); background: var(--forest); }.stop-index.end { background: var(--orange); border-color: var(--orange); }.stop-row div { flex: 1; min-width: 0; }.stop-row strong, .stop-row small { display: block; }.stop-row strong { font-size: 12px; }.stop-row small { color: var(--muted); font-size: 10px; margin-top: 3px; }.stop-row button { background: transparent; color: #bec4bb; letter-spacing: 2px; font-size: 11px; }
.inspiration-card { display: flex; gap: 11px; align-items: center; background: #f1efe8; border-radius: 7px; padding: 8px; position: relative; }.inspiration-image { width: 61px; height: 55px; border-radius: 5px; flex-shrink: 0; display: grid; place-items: center; color: #f8f5e9; font-weight: 700; font-size: 11px; background: linear-gradient(145deg, #455d4d, #be8661 53%, #e8c897); position: relative; overflow: hidden; }.inspiration-image::before { content: ""; position: absolute; width: 85px; height: 22px; transform: rotate(-25deg); background: rgba(248,245,233,.25); top: 7px; }.inspiration-image i { position: absolute; right: 5px; bottom: 4px; font-size: 12px; font-style: normal; }.inspiration-copy { display: grid; gap: 3px; min-width: 0; }.source-tag { color: var(--orange); font: 9px var(--mono); }.inspiration-copy strong { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }.inspiration-copy small { color: var(--muted); font-size: 9px; }.card-more { margin-left: auto; align-self: flex-start; }.save-place-row { width: 100%; margin-top: 9px; display: flex; align-items: center; gap: 10px; text-align: left; background: transparent; padding: 8px 0; }.save-place-row > span { width: 29px; height: 29px; display: grid; place-items: center; border: 1px dashed #c8cec2; border-radius: 50%; font-size: 16px; color: var(--orange); }.save-place-row div { flex: 1; }.save-place-row b, .save-place-row small { display: block; }.save-place-row b { color: var(--forest); font-size: 11px; }.save-place-row small { font-size: 9px; color: var(--muted); margin-top: 3px; }.save-place-row em { color: var(--muted); font-size: 17px; font-style: normal; }.save-place-row:hover b { color: var(--orange); }
.collab-row { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 13px; }.collab-row > div:nth-child(2) { flex: 1; }.collab-row strong, .collab-row small { display: block; }.collab-row strong { font-size: 11px; }.collab-row small { color: var(--muted); margin-top: 4px; font-size: 9px; }.people-stack { display: flex; align-items: center; padding-left: 7px; }.person { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--forest); border: 2px solid var(--panel); margin-left: -7px; font-size: 9px; font-weight: 700; }.person-one { background: #e7b59d; }.person-two { background: #b9d1be; }.person-three { background: var(--lime); }.live-indicator { background: #73b673; }.arrow-button { width: 26px; height: 26px; border-radius: 50%; background: #edf0e7; color: var(--forest); }.arrow-button:hover { background: var(--sage); }.panel-footer { border-top: 1px solid var(--line); min-height: 67px; padding: 13px 28px; display: flex; align-items: center; gap: 10px; background: rgba(248,247,241,.9); }.save-button { flex: 1; background: var(--forest); color: white; border-radius: 6px; height: 39px; font-size: 11px; font-weight: 600; }.save-button:hover { background: var(--forest-deep); }.save-button span { color: var(--lime); margin-right: 5px; }.keyboard-hint { font: 9px var(--mono); color: #a2aaa0; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 6px; color: #eff2e7; background: var(--forest-deep); box-shadow: 0 6px 20px rgba(20,57,47,.22); font-size: 12px; transition: .25s ease; }.toast.visible { transform: translate(-50%, 0); opacity: 1; }.toast-check { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--lime); color: var(--forest); font-size: 11px; font-weight: 700; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(20,39,31,.5); backdrop-filter: blur(5px); }.modal-backdrop[hidden], .modal[hidden] { display: none; }.modal { width: min(420px, calc(100vw - 32px)); background: var(--panel); border-radius: 11px; padding: 36px; position: relative; box-shadow: 0 20px 60px rgba(18,36,29,.22); }.modal-close { position: absolute; right: 20px; top: 17px; background: transparent; color: var(--muted); font-size: 24px; font-weight: 300; }.modal-kicker { color: var(--orange); font: 10px var(--mono); letter-spacing: .16em; }.modal h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.05em; margin: 14px 0 11px; }.modal h2 em { color: var(--orange); font-style: normal; }.modal p { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 0 0 25px; }.modal label { color: var(--muted); font-size: 10px; display: grid; gap: 7px; }.modal input { width: 100%; border: 1px solid var(--line); background: #f4f2eb; border-radius: 5px; height: 42px; padding: 0 12px; color: var(--ink); }.modal-submit { margin-top: 16px; width: 100%; }.or-line { position: relative; text-align: center; margin: 17px 0; color: #a1a89e; font-size: 10px; }.or-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }.or-line span { position: relative; padding: 0 10px; background: var(--panel); }.social-button { width: 100%; border: 1px solid var(--line); border-radius: 5px; height: 39px; background: transparent; color: var(--forest); font-size: 11px; text-align: left; padding: 0 12px; }.social-button span { float: right; font-size: 16px; }.modal-footnote { display: block; color: #9ba39a; font-size: 9px; margin-top: 15px; }.guide-steps { display: grid; gap: 0; margin: 22px 0 8px; }.guide-steps div { display: grid; grid-template-columns: 31px 1fr; column-gap: 9px; padding: 13px 0; border-top: 1px solid var(--line); }.guide-steps b { grid-row: span 2; color: var(--orange); font: 10px var(--mono); }.guide-steps strong { font-size: 12px; }.guide-steps span { color: var(--muted); font-size: 10px; margin-top: 3px; }.share-link { display: flex; align-items: center; padding: 0 6px 0 12px; border: 1px solid var(--line); background: #f3f1ea; border-radius: 5px; height: 42px; font: 10px var(--mono); color: var(--muted); }.share-link span { flex: 1; overflow: hidden; white-space: nowrap; }.share-link button { background: var(--forest); color: white; padding: 7px 10px; border-radius: 4px; font-size: 10px; }.invite-people { margin-top: 19px; display: flex; align-items: center; gap: 10px; }.invite-people small { color: var(--muted); font-size: 10px; }
@media (max-width: 1100px) { .detail-panel { width: 340px; }.map-column { padding-left: 22px; padding-right: 20px; }.topbar { padding: 0 22px; }.saved-state { display: none; } }
@media (max-width: 800px) { .app-shell { display: block; overflow: visible; }.rail { position: fixed; z-index: 20; bottom: 0; left: 0; right: 0; width: 100%; height: 64px; padding: 4px 18px; flex-direction: row; justify-content: space-between; box-shadow: 0 -3px 16px rgba(17,45,34,.12); }.brand-mark, .rail-bottom .rail-link { display: none; }.rail-nav { margin: 0; display: flex; justify-content: space-around; gap: 0; }.rail-link { width: 65px; gap: 1px; }.rail-link.active::before { left: 50%; top: -4px; width: 25px; height: 3px; transform: translateX(-50%); border-radius: 0 0 3px 3px; }.rail-bottom { margin: 0; width: auto; }.avatar-button { width: 32px; height: 32px; }.workspace { padding-bottom: 64px; }.topbar { min-height: 70px; height: auto; padding: 14px 16px; gap: 10px; }.breadcrumb { display: block; }.crumb-separator { display: none; }.breadcrumb strong { display: block; margin-top: 3px; font-size: 13px; }.top-actions { gap: 5px; }.top-actions .ghost-button, .top-actions .outline-button { display: none; }.primary-button { padding: 0 11px; }.content-area { display: block; }.map-column { padding: 16px; gap: 12px; }.map-stage { min-height: 58vh; }.map-toolbar { margin-bottom: 1px; }.route-command-bar { height: auto; min-height: 67px; padding: 11px 13px; flex-wrap: wrap; gap: 9px; }.route-mode-select { min-width: 145px; flex: 1; }.route-separator { display: none; }.route-summary-inline { order: 3; flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 8px; }.add-stop-button { position: absolute; right: 14px; top: 13px; }.detail-panel { width: 100%; border-left: 0; border-top: 1px solid var(--line); min-height: 600px; }.panel-scroll { padding: 25px 18px; }.panel-footer { padding: 12px 18px; }.map-zoom { display: none; } }
