:root {
  color-scheme: dark;
  --bg: #090b0e;
  --surface: #101318;
  --surface-2: #15191f;
  --surface-3: #1b2027;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f4f4ef;
  --muted: #8d929d;
  --muted-2: #656a74;
  --lime: #d8ff67;
  --lime-ink: #131708;
  --coral: #ff8a64;
  --sky: #72d8ff;
  --violet: #b79bff;
  --danger: #ff6c6c;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --sidebar: 242px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .3);
  font-family: "Golos Text", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
::selection { color: var(--lime-ink); background: var(--lime); }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon-small { width: 15px; height: 15px; }
.noise { position: fixed; inset: 0; opacity: .035; pointer-events: none; z-index: 100; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.is-hidden { display: none !important; }
.color-lime { --route-color: var(--lime); --card-color: var(--lime); --symbol: var(--lime); --row-color: var(--lime); --kind-color: var(--lime); }
.color-coral { --route-color: var(--coral); --card-color: var(--coral); --symbol: var(--coral); --row-color: var(--coral); --kind-color: var(--coral); }
.color-sky { --route-color: var(--sky); --card-color: var(--sky); --symbol: var(--sky); --row-color: var(--sky); --kind-color: var(--sky); }
.color-violet { --route-color: var(--violet); --card-color: var(--violet); --symbol: var(--violet); --row-color: var(--violet); --kind-color: var(--violet); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 25px 18px 18px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(9, 11, 14, .96); z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 8px; color: var(--text); text-decoration: none; letter-spacing: -.03em; }
.brand strong { display: block; font-size: 17px; letter-spacing: .18em; line-height: 1; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .22em; }
.brand-mark { position: relative; width: 34px; height: 34px; border: 1px solid rgba(216, 255, 103, .34); border-radius: 50%; transform: rotate(-18deg); }
.brand-mark::before { content: ""; position: absolute; inset: 6px -4px; border: 1px solid var(--lime); border-radius: 50%; }
.brand-mark span { position: absolute; top: 15px; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 16px var(--lime); }
.brand-mark span:first-child { left: -4px; }.brand-mark span:last-child { right: -4px; }

.trip-switcher { display: flex; align-items: center; gap: 10px; margin-top: 30px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.trip-switcher-art { width: 40px; height: 40px; padding: 6px; display: grid; grid-template-columns: 1fr 6px 1fr; align-items: center; border-radius: 11px; background: linear-gradient(135deg, #232b1a, #17232a); color: var(--text); font-size: 9px; font-weight: 800; }
.trip-switcher-art i { height: 1px; background: var(--lime); }
.trip-switcher-copy { min-width: 0; flex: 1; }
.trip-switcher-copy small, .trip-switcher-copy strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-switcher-copy small { margin-bottom: 2px; color: var(--muted-2); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.trip-switcher-copy strong { font-size: 12px; }
.trip-switcher > .icon { color: var(--muted-2); }

.side-nav { margin-top: 29px; display: grid; gap: 5px; }
.nav-item { width: 100%; min-height: 44px; padding: 0 12px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 12px; color: var(--muted); background: transparent; cursor: pointer; text-align: left; transition: color .2s, background .2s, transform .2s; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.04); transform: translateX(2px); }
.nav-item.is-active { color: var(--text); background: var(--surface-2); }
.nav-item.is-active .icon { color: var(--lime); }
.nav-item span { flex: 1; font-size: 13px; font-weight: 600; }
.nav-item b { min-width: 22px; padding: 2px 6px; border-radius: 99px; color: var(--muted); background: rgba(255,255,255,.06); font-size: 10px; text-align: center; }
.new-badge { padding: 2px 6px; border: 1px solid rgba(216,255,103,.3); border-radius: 5px; color: var(--lime); font-size: 8px; font-style: normal; font-weight: 800; letter-spacing: .08em; }
.sidebar-spacer { flex: 1; }
.codex-mini { position: relative; overflow: hidden; padding: 15px; border: 1px solid rgba(216,255,103,.15); border-radius: 16px; background: linear-gradient(150deg, rgba(216,255,103,.09), rgba(114,216,255,.03)); }
.codex-mini::after { content: ""; position: absolute; width: 90px; height: 90px; right: -35px; bottom: -45px; border: 1px solid rgba(216,255,103,.15); border-radius: 50%; }
.codex-mini-head { display: flex; align-items: center; gap: 8px; font-size: 12px; }.codex-glyph { color: var(--lime); font-size: 17px; }
.codex-mini p { margin: 8px 0 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; color: var(--lime); background: none; font-size: 11px; font-weight: 700; cursor: pointer; }
.profile-chip { width: 100%; margin-top: 12px; padding: 9px; display: grid; grid-template-columns: 34px 1fr 18px; align-items: center; gap: 9px; border: 0; border-radius: 13px; background: transparent; cursor: pointer; text-align: left; }
.profile-chip:hover { background: var(--surface); }
.profile-chip strong, .profile-chip small { display: block; }.profile-chip strong { font-size: 11px; }.profile-chip small { color: var(--muted-2); font-size: 9px; }
.profile-chip > .icon { color: var(--muted-2); }
.avatar { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--bg); border-radius: 50%; color: #111; background: var(--lime); font-size: 10px; font-weight: 800; text-transform: uppercase; }

.workspace { min-width: 0; }
.topbar { height: 82px; padding: 0 clamp(24px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(9,11,14,.78); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 15; }
.breadcrumb { margin: 0; display: flex; gap: 8px; align-items: center; color: var(--muted-2); font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }.breadcrumb i { opacity: .5; }.breadcrumb b { color: var(--text); font-weight: 700; }
.mobile-title { display: none; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.live-group { display: flex; align-items: center; gap: 10px; margin-right: 8px; }.live-label { color: var(--muted); font-size: 10px; }.live-label i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #69e59e; box-shadow: 0 0 10px #69e59e; }
.avatar-stack { display: flex; padding-left: 7px; }.avatar-stack .avatar { width: 29px; height: 29px; margin-left: -7px; font-size: 8px; }.avatar-stack .avatar:nth-child(2n) { background: var(--coral); }.avatar-stack .avatar:nth-child(3n) { background: var(--sky); }
.button { min-height: 40px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .18s, border-color .18s, background .18s, opacity .18s; }
.button:hover { transform: translateY(-1px); }.button:active { transform: translateY(0); }.button:disabled { opacity: .5; cursor: wait; }
.button-accent { color: var(--lime-ink); background: var(--lime); box-shadow: 0 10px 30px rgba(216,255,103,.1); }.button-accent:hover { background: #e3ff8a; }
.button-quiet { color: var(--text); border-color: var(--line); background: var(--surface); }.button-quiet:hover { border-color: var(--line-strong); }
.button-glass { color: var(--text); border-color: rgba(255,255,255,.2); background: rgba(15,18,22,.62); backdrop-filter: blur(12px); }
.button-danger { color: #ff9a9a; border-color: rgba(255,108,108,.2); background: rgba(255,108,108,.08); }
.button-large { min-height: 48px; padding: 0 19px; border-radius: 14px; }
.button-square { width: 50px; height: 50px; padding: 0; }
.round-button { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: var(--surface-2); cursor: pointer; }.round-button:hover { border-color: var(--lime); color: var(--lime); }

.view { display: none; padding: 28px clamp(24px, 4vw, 64px) 70px; animation: view-in .35s both; }.view.is-active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }
.hero-card { position: relative; min-height: 450px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: #11151a; box-shadow: var(--shadow); }
.hero-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 18% 18%, rgba(216,255,103,.08), transparent 27%), linear-gradient(90deg, rgba(8,10,13,.96) 0%, rgba(8,10,13,.76) 43%, rgba(8,10,13,.07) 82%); z-index: 1; }
.hero-map { position: absolute; inset: 0 0 0 36%; opacity: .95; }.hero-map svg { width: 100%; height: 100%; }
.hero-map .land { fill: rgba(255,255,255,.035); stroke: rgba(255,255,255,.075); stroke-width: 1; }
.route-line { fill: none; stroke-width: 2; stroke-dasharray: 6 9; animation: dash 18s linear infinite; }.route-line-one { stroke: var(--coral); }.route-line-two { stroke: var(--sky); }
@keyframes dash { to { stroke-dashoffset: -160; } }
.map-point { stroke: #101318; stroke-width: 5; }.point-start { fill: var(--lime); }.point-middle { fill: var(--coral); }.point-end { fill: var(--sky); }
.map-label rect { fill: rgba(13,16,20,.88); stroke: rgba(255,255,255,.12); }.map-label text { fill: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; }.mini-plane { fill: var(--text); transform-origin: center; }
.hero-content { position: relative; z-index: 2; max-width: 660px; padding: clamp(38px, 5vw, 66px); }
.hero-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; }.pill { padding: 5px 9px; border-radius: 99px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }.pill-lime { color: var(--lime); border: 1px solid rgba(216,255,103,.24); background: rgba(216,255,103,.08); }
.hero-kicker { margin: 37px 0 8px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .24em; }
.hero-content h1 { max-width: 560px; margin: 0; font-size: clamp(37px, 4.5vw, 67px); line-height: .98; letter-spacing: -.065em; }.hero-content h1 i { color: var(--lime); font-family: Georgia, serif; font-weight: 400; }
.hero-subtitle { margin: 17px 0 0; color: #a9adb4; font-size: 15px; }
.hero-facts { display: flex; gap: 28px; margin-top: 34px; }.hero-facts > div { display: flex; align-items: center; gap: 9px; }.hero-facts .icon { color: var(--muted); }.hero-facts small, .hero-facts strong { display: block; }.hero-facts small { color: var(--muted-2); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }.hero-facts strong { margin-top: 2px; font-size: 11px; }
.hero-buttons { display: flex; gap: 10px; margin-top: 35px; }
.trip-number { position: absolute; z-index: 2; right: 26px; top: 24px; color: rgba(255,255,255,.3); font-size: 8px; line-height: 1.25; letter-spacing: .18em; text-align: right; }.trip-number strong { color: var(--text); font-size: 16px; letter-spacing: .08em; }

.section-block { margin-top: 42px; }.section-heading, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }.section-heading { margin-bottom: 18px; }.section-heading h2, .panel-heading h3 { margin: 3px 0 0; letter-spacing: -.03em; }.section-heading h2 { font-size: 25px; }.panel-heading h3 { font-size: 17px; }
.eyebrow { margin: 0; color: var(--muted-2); font-size: 8px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.route-canvas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.route-card { position: relative; min-height: 190px; overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; transition: transform .2s, border-color .2s; }.route-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.route-card::after { content: attr(data-code); position: absolute; right: -4px; bottom: -32px; color: rgba(255,255,255,.025); font-size: 94px; font-weight: 900; letter-spacing: -.08em; }
.route-card-line { position: absolute; top: 0; left: 21px; width: 36px; height: 3px; border-radius: 0 0 4px 4px; background: var(--route-color); box-shadow: 0 0 24px var(--route-color); }
.route-card-top { display: flex; justify-content: space-between; align-items: center; }.route-order { color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .15em; }.route-nights { padding: 4px 7px; border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.04); font-size: 9px; }
.route-card h3 { position: relative; z-index: 1; margin: 26px 0 2px; font-size: 25px; letter-spacing: -.04em; }.route-card h3 span { color: var(--route-color); }.route-country { position: relative; z-index: 1; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }.route-note { position: relative; z-index: 1; max-width: 84%; margin: 18px 0 0; color: #a1a5ad; font-size: 11px; line-height: 1.55; }
.route-connector { position: absolute; z-index: 2; top: calc(50% - 14px); right: -22px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 4px solid var(--bg); border-radius: 50%; color: var(--muted-2); background: var(--surface-3); }

.dashboard-grid { margin-top: 42px; display: grid; grid-template-columns: 1.1fr .95fr .85fr; gap: 14px; align-items: stretch; }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }.dashboard-grid .panel { min-height: 330px; }
.counter { min-width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--lime); background: rgba(216,255,103,.08); font-size: 11px; font-weight: 800; }
.wishes-preview { display: grid; gap: 8px; margin-top: 20px; }.wish-preview-row { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 12px; color: var(--text); background: rgba(255,255,255,.025); cursor: pointer; text-align: left; }.wish-preview-row:hover { background: rgba(255,255,255,.045); }.wish-preview-row .wish-symbol { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--symbol); background: color-mix(in srgb, var(--symbol) 11%, transparent); }.wish-preview-row strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }.wish-preview-row small { color: var(--muted-2); font-size: 9px; }.vote-mini { color: var(--muted); font-size: 9px; }
.empty-mini { padding: 25px 10px; text-align: center; color: var(--muted); font-size: 11px; }.empty-mini strong { display: block; margin-bottom: 5px; color: var(--text); font-size: 13px; }
.panel-link { margin-top: 17px; padding: 0; display: flex; align-items: center; gap: 6px; border: 0; color: var(--lime); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.question-list { margin: 17px 0 0; padding: 0; list-style: none; counter-reset: questions; }.question-list li { position: relative; min-height: 45px; padding: 11px 0 11px 35px; border-bottom: 1px solid var(--line); color: #b5b8be; font-size: 11px; counter-increment: questions; }.question-list li::before { content: counter(questions, decimal-leading-zero); position: absolute; top: 12px; left: 0; color: var(--muted-2); font-size: 8px; font-weight: 800; }.question-list li:last-child { border-bottom: 0; }
.pulse-mark { width: 8px; height: 8px; border-radius: 50%; background: #69e59e; box-shadow: 0 0 0 6px rgba(105,229,158,.06), 0 0 16px rgba(105,229,158,.5); }
.activity-list { margin-top: 18px; display: grid; gap: 13px; }.activity-row { display: grid; grid-template-columns: 27px 1fr; gap: 9px; }.activity-icon { width: 27px; height: 27px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--surface-2); }.activity-icon .icon { width: 12px; }.activity-row p { margin: 0; color: #a7abb3; font-size: 10px; line-height: 1.45; }.activity-row p strong { color: var(--text); }.activity-row time { display: block; margin-top: 2px; color: var(--muted-2); font-size: 8px; }

.page-head { min-height: 160px; padding: 14px 0 31px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }.page-head h1, .plan-head h1 { margin: 8px 0 7px; font-size: clamp(34px, 4vw, 55px); line-height: 1; letter-spacing: -.055em; }.page-head p:not(.eyebrow), .plan-head p:not(.eyebrow) { max-width: 640px; margin: 0; color: var(--muted); font-size: 13px; }.compact-head { min-height: 130px; }
.filter-bar { display: flex; gap: 8px; margin: 28px 0 22px; overflow-x: auto; padding-bottom: 3px; }.filter-chip { min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 700; white-space: nowrap; cursor: pointer; }.filter-chip:hover, .filter-chip.is-active { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }.filter-chip.is-active { color: var(--lime); }.filter-chip span { margin-left: 5px; color: var(--muted-2); }
.wish-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }.wish-card { position: relative; min-height: 235px; padding: 20px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .2s, transform .2s; }.wish-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }.wish-card.is-planned { background: linear-gradient(145deg, rgba(216,255,103,.055), var(--surface) 42%); }
.wish-card-head { display: flex; justify-content: space-between; gap: 10px; }.wish-region { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }.wish-region i { width: 6px; height: 6px; border-radius: 50%; background: var(--card-color); box-shadow: 0 0 10px var(--card-color); }.card-menu { width: 29px; height: 29px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; }.card-menu:hover { color: var(--text); background: rgba(255,255,255,.04); }
.wish-card h3 { margin: 19px 0 8px; font-size: 18px; line-height: 1.2; letter-spacing: -.035em; }.wish-card > p { margin: 0; color: #9ea2aa; font-size: 11px; line-height: 1.58; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }.wish-spacer { flex: 1; min-height: 17px; }.wish-tags { display: flex; flex-wrap: wrap; gap: 5px; }.tag { padding: 4px 7px; border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.04); font-size: 8px; font-weight: 700; }.tag-high { color: var(--coral); background: rgba(255,138,100,.08); }.tag-planned { color: var(--lime); background: rgba(216,255,103,.08); }
.wish-foot { margin-top: 15px; padding-top: 13px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }.wish-author { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }.wish-author .avatar { width: 24px; height: 24px; border: 0; }.vote-button { min-height: 30px; padding: 0 9px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: transparent; font-size: 9px; cursor: pointer; }.vote-button .icon { width: 13px; }.vote-button.is-voted { color: var(--lime); border-color: rgba(216,255,103,.25); background: rgba(216,255,103,.06); }.vote-button.is-voted .icon { fill: currentColor; }
.add-wish-card { min-height: 235px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted); background: rgba(255,255,255,.015); cursor: pointer; }.add-wish-card:hover { color: var(--lime); border-color: rgba(216,255,103,.3); }.add-wish-card .round-button { width: 45px; height: 45px; }.add-wish-card strong { color: var(--text); font-size: 12px; }

.plan-head { min-height: 175px; padding: 17px 0 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }.plan-head-copy { display: flex; align-items: center; gap: 23px; }.ai-orb { position: relative; width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; border: 1px solid rgba(216,255,103,.28); border-radius: 50%; background: radial-gradient(circle, rgba(216,255,103,.16), rgba(216,255,103,.02) 60%); }.ai-orb::before, .ai-orb::after { content: ""; position: absolute; inset: -7px 11px; border: 1px solid rgba(216,255,103,.2); border-radius: 50%; transform: rotate(40deg); }.ai-orb::after { transform: rotate(-40deg); }.ai-orb span { color: var(--lime); font-size: 25px; text-shadow: 0 0 20px var(--lime); }
.generation-banner { margin-top: 22px; padding: 17px 20px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 15px; border: 1px solid rgba(216,255,103,.17); border-radius: 17px; background: linear-gradient(90deg, rgba(216,255,103,.08), rgba(114,216,255,.025)); }.loader-orbit { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px dashed rgba(216,255,103,.5); border-radius: 50%; animation: spin 7s linear infinite; }.loader-orbit span { color: var(--lime); animation: spin 7s linear reverse infinite; }@keyframes spin { to { transform: rotate(360deg); } }.generation-banner strong { font-size: 12px; }.generation-banner p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }.generation-time { color: var(--lime); font-family: ui-monospace, monospace; font-size: 11px; }
.plan-layout { display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 16px; margin-top: 25px; }.plan-toolbar { min-height: 45px; display: flex; align-items: center; justify-content: space-between; }.plan-stats { display: flex; gap: 18px; }.plan-stat { color: var(--muted); font-size: 10px; }.plan-stat strong { color: var(--text); }.plan-version { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.day-timeline { position: relative; margin-top: 8px; }.day-timeline::before { content: ""; position: absolute; top: 34px; bottom: 34px; left: 33px; width: 1px; background: linear-gradient(var(--lime), rgba(255,255,255,.08)); }.day-card { position: relative; margin-bottom: 11px; display: grid; grid-template-columns: 67px minmax(0,1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }.day-index { position: relative; z-index: 1; padding: 20px 8px; color: var(--muted); text-align: center; }.day-index strong { display: block; color: var(--text); font-size: 16px; }.day-index span { display: block; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }.day-index::after { content: ""; position: absolute; top: 31px; right: -4px; width: 7px; height: 7px; border: 2px solid var(--surface); border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px rgba(216,255,103,.5); }.day-content { padding: 19px 20px; border-left: 1px solid var(--line); }.day-head { display: flex; justify-content: space-between; gap: 16px; }.day-location { color: var(--lime); font-size: 8px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }.day-head h3 { margin: 3px 0 0; font-size: 17px; letter-spacing: -.03em; }.pace-badge { height: max-content; padding: 4px 7px; border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.04); font-size: 8px; white-space: nowrap; }.day-items { display: grid; gap: 7px; margin-top: 16px; }.day-item { display: grid; grid-template-columns: 54px 23px 1fr auto; gap: 8px; align-items: start; }.day-item time { padding-top: 3px; color: var(--muted-2); font-size: 9px; }.item-kind { width: 23px; height: 23px; display: flex; align-items: center; justify-content: center; border-radius: 7px; color: var(--kind-color); background: color-mix(in srgb, var(--kind-color) 10%, transparent); }.item-kind .icon { width: 11px; }.day-item strong { display: block; font-size: 10px; }.day-item p { margin: 2px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }.booking-dot { margin-top: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
.day-foot { margin-top: 15px; padding-top: 12px; display: flex; gap: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }.day-foot span { display: flex; align-items: flex-start; gap: 5px; }.day-foot .icon { width: 12px; height: 12px; }
.empty-plan { min-height: 420px; padding: 50px 25px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); text-align: center; background: radial-gradient(circle at 50% 60%, rgba(216,255,103,.04), transparent 42%); }.empty-plan-visual { position: relative; width: 150px; height: 100px; margin-bottom: 26px; }.empty-plan-visual::before { content: ""; position: absolute; top: 42px; left: 15px; width: 120px; border-top: 1px dashed rgba(216,255,103,.4); transform: rotate(-9deg); }.empty-plan-visual i { position: absolute; width: 13px; height: 13px; border: 3px solid var(--surface); border-radius: 50%; background: var(--lime); }.empty-plan-visual i:first-child { left: 9px; bottom: 24px; }.empty-plan-visual i:last-child { right: 10px; top: 19px; background: var(--sky); }.empty-plan h3 { margin: 0; font-size: 19px; }.empty-plan p { max-width: 420px; margin: 8px 0 20px; color: var(--muted); font-size: 11px; }
.plan-aside { display: grid; align-content: start; gap: 12px; }.plan-aside .panel { padding: 20px; }.plan-aside h3 { margin: 4px 0 15px; font-size: 15px; letter-spacing: -.025em; }.aside-list { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; }.aside-list li { position: relative; padding-left: 17px; color: #a6aab1; font-size: 10px; line-height: 1.5; }.aside-list li::before { content: ""; position: absolute; top: 6px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }.aside-list.numbered { counter-reset: aside; }.aside-list.numbered li { padding: 9px 0 9px 27px; border-bottom: 1px solid var(--line); counter-increment: aside; }.aside-list.numbered li::before { content: counter(aside, decimal-leading-zero); top: 10px; width: auto; height: auto; color: var(--muted-2); background: none; font-size: 8px; font-weight: 800; }.aside-list.numbered li:last-child { border-bottom: 0; }.tips-panel { background: linear-gradient(145deg, rgba(114,216,255,.05), var(--surface) 40%); }

/* Live week canvas */
.trip-canvas { margin-top: 23px; }
.trip-canvas .plan-toolbar { margin-bottom: 12px; }
.trip-canvas h2, .trip-canvas h3, .trip-canvas h4 { letter-spacing: -.035em; }
.atlas-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(330px, .68fr); gap: 14px; align-items: stretch; }
.world-map-panel, .budget-dashboard { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); }
.world-map-panel { position: relative; min-width: 0; padding: 22px 22px 15px; background: radial-gradient(circle at 60% 32%, rgba(114,216,255,.065), transparent 38%), linear-gradient(145deg, #12171b, #0d1014 70%); }
.canvas-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.canvas-section-head h2 { margin: 3px 0 0; font-size: 20px; }
.map-key { display: flex; gap: 13px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.map-key span { display: flex; align-items: center; gap: 5px; }
.map-key i { display: inline-block; }
.map-key-stop { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 9px rgba(216,255,103,.7); }
.map-key-flight { width: 20px; border-top: 1px dashed var(--sky); }
.world-map { position: relative; min-height: 310px; margin: 4px -6px 0; }
.world-map svg { width: 100%; height: auto; display: block; overflow: visible; }
.world-grid { fill: url(#world-grid); opacity: .42; }
.world-grid + ellipse { pointer-events: none; }
#world-grid path { fill: none; stroke: rgba(255,255,255,.045); stroke-width: 1; }
.world-land { fill: #1d2529; stroke: rgba(255,255,255,.09); stroke-width: 1; vector-effect: non-scaling-stroke; }
.map-flight-arc path { fill: none; stroke: var(--sky); stroke-width: 1.6; stroke-dasharray: 5 5; opacity: .75; vector-effect: non-scaling-stroke; animation: route-dash 18s linear infinite; }
.map-flight-arc circle { fill: var(--sky); filter: drop-shadow(0 0 7px var(--sky)); }
.map-flight-arc text { fill: #aeb8bd; font-size: 10px; font-weight: 700; paint-order: stroke; stroke: #101519; stroke-width: 5px; stroke-linejoin: round; }
@keyframes route-dash { to { stroke-dashoffset: -100; } }
.world-stop circle:not(.world-stop-halo) { fill: var(--sky); stroke: #0e1215; stroke-width: 3; vector-effect: non-scaling-stroke; }
.world-stop.is-origin circle:not(.world-stop-halo) { fill: var(--lime); }
.world-stop-halo { fill: rgba(114,216,255,.08); stroke: rgba(114,216,255,.22); stroke-width: 1; }
.world-stop.is-origin .world-stop-halo { fill: rgba(216,255,103,.08); stroke: rgba(216,255,103,.24); }
.world-stop text { fill: var(--text); font-size: 11px; font-weight: 900; letter-spacing: .08em; paint-order: stroke; stroke: #111619; stroke-width: 5px; }
.map-flight-strip { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 4px; scrollbar-width: thin; }
.map-flight-chip { min-width: 190px; padding: 9px 10px; display: grid; grid-template-columns: 29px 1fr auto; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: rgba(255,255,255,.025); cursor: pointer; text-align: left; }
.map-flight-chip:hover { border-color: rgba(114,216,255,.3); background: rgba(114,216,255,.045); }
.map-flight-icon { width: 29px; height: 29px; display: flex; align-items: center; justify-content: center; border-radius: 9px; color: var(--sky); background: rgba(114,216,255,.08); }
.map-flight-chip small, .map-flight-chip strong { display: block; }
.map-flight-chip small { color: var(--muted-2); font-size: 7px; text-transform: uppercase; }
.map-flight-chip strong { margin-top: 2px; font-size: 10px; }
.map-flight-chip strong i { color: var(--sky); font-style: normal; }
.map-flight-chip > b { color: var(--muted); font-size: 8px; font-weight: 600; white-space: nowrap; }
.map-empty-note { min-height: 47px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }

.budget-dashboard { min-height: 100%; padding: 22px; background: radial-gradient(circle at 105% -5%, rgba(216,255,103,.09), transparent 36%), #11151a; }
.budget-head { display: flex; justify-content: space-between; align-items: flex-start; }
.budget-head h2 { margin: 3px 0 0; font-size: 20px; }
.estimate-pill { padding: 5px 8px; border: 1px solid rgba(216,255,103,.18); border-radius: 8px; color: var(--lime); background: rgba(216,255,103,.055); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.budget-total-row { margin: 24px 0 18px; display: flex; align-items: center; gap: 17px; }
.budget-ring { position: relative; width: 78px; height: 78px; padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 50%; }
.budget-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 7px rgba(216,255,103,.06)); }
.budget-ring span, .budget-ring small { position: relative; z-index: 1; display: block; }
.budget-ring span { font-size: 17px; font-weight: 800; }
.budget-ring small { color: var(--muted); font-size: 6px; text-transform: uppercase; letter-spacing: .08em; }
.budget-total { min-width: 0; }
.budget-total small, .budget-total span { display: block; color: var(--muted); font-size: 8px; }
.budget-total strong { display: block; overflow: hidden; margin: 2px 0; font-size: clamp(18px, 2vw, 25px); line-height: 1.12; letter-spacing: -.045em; }
.budget-per-person { padding: 10px 11px; display: flex; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.022); font-size: 9px; }
.budget-per-person span { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.budget-category-list { margin-top: 17px; display: grid; gap: 10px; }
.budget-category { display: grid; grid-template-columns: 29px minmax(0,1fr) auto; align-items: center; gap: 8px; }
.budget-category-icon { width: 29px; height: 29px; display: flex; align-items: center; justify-content: center; border-radius: 9px; color: var(--kind-color); background: color-mix(in srgb, var(--kind-color) 9%, transparent); }
.budget-category strong, .budget-category small { display: block; }
.budget-category strong { font-size: 9px; }
.budget-category small { overflow: hidden; color: var(--muted-2); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.budget-category b { color: #c9cbd0; font-size: 8px; font-weight: 600; }
.budget-limit { margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line); }
.budget-limit > div { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; }
.budget-limit > div b { color: var(--text); }
.budget-limit progress { width: 100%; height: 4px; margin: 7px 0 5px; display: block; overflow: hidden; border: 0; border-radius: 99px; appearance: none; background: rgba(255,255,255,.06); }
.budget-limit progress::-webkit-progress-bar { border-radius: inherit; background: rgba(255,255,255,.06); }
.budget-limit progress::-webkit-progress-value { border-radius: inherit; background: linear-gradient(90deg, var(--lime), var(--coral)); }
.budget-limit progress::-moz-progress-bar { border-radius: inherit; background: linear-gradient(90deg, var(--lime), var(--coral)); }
.budget-limit small, .estimate-meta { color: var(--muted-2); font-size: 7px; }
.estimate-meta { margin-top: 15px; display: flex; align-items: center; gap: 5px; line-height: 1.4; }
.budget-stale { margin-top: 15px; padding: 10px 11px; display: flex; align-items: flex-start; gap: 8px; border: 1px solid rgba(246,204,112,.2); border-radius: 12px; color: #f6cc70; background: rgba(246,204,112,.055); }
.budget-stale .icon { width: 14px; height: 14px; flex: 0 0 auto; }
.budget-stale span, .budget-stale strong { display: block; }
.budget-stale span { color: var(--muted); font-size: 8px; line-height: 1.45; }
.budget-stale strong { margin-bottom: 2px; color: #f6cc70; font-size: 8px; }
.budget-empty { min-height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.budget-empty-icon { width: 49px; height: 49px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(216,255,103,.15); border-radius: 15px; color: var(--lime); background: rgba(216,255,103,.055); }
.budget-empty h2 { margin: 5px 0 8px; font-size: 22px; }
.budget-empty p:not(.eyebrow), .budget-empty > span:last-child { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.budget-empty > span:last-child { margin-top: 18px; color: var(--muted-2); }

.week-navigation { margin-top: 31px; }
.week-navigation-head { margin-bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.week-navigation-head h2 { margin: 3px 0 0; font-size: 25px; }
.week-navigation-head > span { color: var(--muted); font-size: 9px; }
.week-strip-shell { display: grid; grid-template-columns: 34px minmax(0,1fr) 34px; align-items: center; gap: 7px; }
.week-strip { padding: 2px; display: flex; gap: 7px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.week-strip::-webkit-scrollbar { display: none; }
.week-scroll { width: 34px; height: 68px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: var(--surface); cursor: pointer; font-size: 20px; }
.week-scroll:hover { color: var(--lime); border-color: rgba(216,255,103,.25); }
.week-tab { position: relative; min-width: 148px; min-height: 68px; padding: 10px 12px; overflow: hidden; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; border: 1px solid var(--line); border-radius: 15px; color: var(--muted); background: var(--surface); cursor: pointer; scroll-snap-align: start; text-align: left; transition: transform .2s, border-color .2s, background .2s; }
.week-tab:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.week-tab.is-active { color: var(--text); border-color: rgba(216,255,103,.3); background: linear-gradient(145deg, rgba(216,255,103,.09), var(--surface) 55%); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.week-tab > span { grid-row: span 2; align-self: center; color: var(--muted-2); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.week-tab.is-active > span { color: var(--lime); }
.week-tab strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.week-tab small { color: var(--muted-2); font-size: 7px; white-space: nowrap; }
.week-tab i { position: absolute; right: 7px; top: 6px; padding: 2px 4px; border-radius: 5px; color: var(--violet); background: rgba(183,155,255,.08); font-size: 6px; font-style: normal; font-weight: 800; text-transform: uppercase; }

.week-focus { margin-top: 18px; }
.week-focus-head { min-height: 108px; padding: 18px 22px; display: grid; grid-template-columns: 60px minmax(0,1fr) auto; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(circle at 80% 0%, rgba(114,216,255,.07), transparent 30%), var(--surface); }
.week-number-orb { width: 60px; height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(216,255,103,.2); border-radius: 18px; color: var(--lime); background: rgba(216,255,103,.045); }
.week-number-orb span { font-size: 6px; font-weight: 800; letter-spacing: .16em; }
.week-number-orb strong { font-size: 20px; line-height: 1.1; }
.week-focus-copy p, .week-focus-copy span { margin: 0; color: var(--muted); font-size: 9px; }
.week-focus-copy p { color: var(--lime); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.week-focus-copy h2 { margin: 3px 0 3px; font-size: clamp(23px, 3vw, 34px); }
.week-focus-facts { display: flex; gap: 8px; }
.week-focus-facts > span { min-height: 42px; padding: 7px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: rgba(255,255,255,.018); }
.week-focus-facts .icon { width: 12px; height: 12px; }
.week-focus-facts b { max-width: 105px; overflow: hidden; color: var(--text); font-size: 8px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.week-layout { margin-top: 14px; display: grid; grid-template-columns: minmax(0,1fr) 326px; gap: 14px; align-items: start; }
.week-main { min-width: 0; display: grid; gap: 14px; }
.canvas-block { padding: 22px; border: 1px solid var(--line); border-radius: 23px; background: var(--surface); }
.canvas-block > .canvas-section-head { margin-bottom: 17px; }
.soft-label, .estimate-disclaimer { padding: 5px 8px; border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.035); font-size: 7px; text-transform: uppercase; letter-spacing: .07em; }
.estimate-disclaimer { color: #d8ba78; background: rgba(246,204,112,.055); }
.day-deck { display: grid; gap: 9px; }
.live-day-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #0e1216; }
.live-day-card.is-workday { background: linear-gradient(105deg, rgba(183,155,255,.04), #0e1216 28%); }
.live-day-head { min-height: 64px; padding: 11px 13px; display: grid; grid-template-columns: 92px minmax(0,1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.live-day-date { padding-right: 12px; border-right: 1px solid var(--line); }
.live-day-date span, .live-day-date strong { display: block; }
.live-day-date span { color: var(--muted-2); font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.live-day-date strong { margin-top: 2px; font-size: 11px; text-transform: capitalize; }
.live-day-focus > span { color: var(--lime); font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.live-day-focus h3 { margin: 2px 0 0; font-size: 14px; }
.day-badges { display: flex; align-items: center; gap: 5px; }
.workday-badge { padding: 4px 6px; border-radius: 6px; color: var(--violet); background: rgba(183,155,255,.07); font-size: 6px; font-weight: 900; letter-spacing: .08em; }
.day-choice-list { padding: 5px; display: grid; gap: 3px; }
.day-choice { position: relative; padding: 10px 10px; display: grid; grid-template-columns: 31px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 12px; transition: background .2s, border-color .2s; }
.day-choice:hover { background: rgba(255,255,255,.025); }
.day-choice.is-recommended { border-color: rgba(216,255,103,.09); background: rgba(216,255,103,.025); }
.day-choice.is-selected { border-color: rgba(105,229,158,.14); background: rgba(105,229,158,.025); }
.choice-kind { width: 31px; height: 31px; display: flex; align-items: center; justify-content: center; border-radius: 9px; color: var(--kind-color); background: color-mix(in srgb, var(--kind-color) 9%, transparent); }
.choice-copy { min-width: 0; }
.choice-top { display: flex; gap: 8px; align-items: center; color: var(--muted-2); font-size: 7px; }
.choice-top b { padding: 2px 5px; border-radius: 5px; color: var(--lime); background: rgba(216,255,103,.06); font-size: 6px; text-transform: uppercase; }
.choice-copy h4 { margin: 3px 0 0; font-size: 11px; }
.choice-copy > p { margin: 2px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.choice-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted-2); font-size: 7px; }
.choice-meta span { display: flex; align-items: center; gap: 3px; }
.choice-meta .icon { width: 10px; height: 10px; }
.choice-meta .needs-booking { color: var(--coral); }
.option-select { min-height: 30px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: rgba(255,255,255,.025); cursor: pointer; font-size: 8px; font-weight: 700; white-space: nowrap; }
.option-select:hover { color: var(--lime); border-color: rgba(216,255,103,.25); }
.option-select.is-selected { color: #69e59e; border-color: rgba(105,229,158,.18); background: rgba(105,229,158,.055); cursor: pointer; }
.option-pool-label { color: var(--muted-2); font-size: 7px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.booking-label { display: flex; align-items: center; gap: 4px; color: var(--coral); font-size: 7px; white-space: nowrap; }
.day-free-slot { min-height: 56px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; color: var(--muted); }
.day-free-slot > span { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line-strong); border-radius: 9px; }
.day-free-slot p { margin: 0; font-size: 8px; }
.day-free-slot strong { display: block; color: var(--text); font-size: 10px; }
.live-day-foot { padding: 8px 13px; display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.015); font-size: 7px; }
.live-day-foot span { display: flex; align-items: flex-start; gap: 4px; }
.live-day-foot .icon { width: 10px; height: 10px; }
.canvas-empty { min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.canvas-empty .icon { margin-bottom: 9px; color: var(--lime); }
.canvas-empty strong, .canvas-empty span { display: block; }
.canvas-empty strong { color: var(--text); font-size: 12px; }
.canvas-empty span { margin-top: 3px; font-size: 9px; }

.candidate-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.candidate-card { overflow: hidden; display: grid; grid-template-columns: 78px minmax(0,1fr); border: 1px solid var(--line); border-radius: 16px; background: #0e1216; }
.candidate-card.is-selected, .housing-card.is-selected, .mobility-list article.is-selected { border-color: rgba(105,229,158,.28); box-shadow: inset 0 0 0 1px rgba(105,229,158,.035); }
.candidate-art { position: relative; min-height: 142px; display: flex; align-items: center; justify-content: center; color: var(--kind-color); background: radial-gradient(circle, color-mix(in srgb, var(--kind-color) 14%, transparent), transparent 62%), #12171c; }
.candidate-art > .icon { width: 26px; height: 26px; }
.candidate-art span { position: absolute; left: 9px; top: 8px; color: var(--muted-2); font-family: ui-monospace, monospace; font-size: 7px; }
.candidate-art i { position: absolute; width: 36px; height: 36px; border: 1px solid color-mix(in srgb, var(--kind-color) 22%, transparent); border-radius: 50%; }
.candidate-body { min-width: 0; padding: 13px 13px 9px; }
.candidate-kicker { display: flex; justify-content: space-between; gap: 6px; color: var(--kind-color); font-size: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.candidate-kicker b { color: var(--lime); font-size: 6px; }
.candidate-body h3 { margin: 5px 0 4px; font-size: 13px; }
.candidate-body > p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.candidate-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.candidate-tags span { padding: 3px 5px; display: flex; align-items: center; gap: 3px; border-radius: 5px; color: var(--muted); background: rgba(255,255,255,.035); font-size: 6px; }
.candidate-tags .icon { width: 8px; height: 8px; }
.candidate-card > footer { grid-column: span 2; min-height: 45px; padding: 7px 9px 7px 12px; display: flex; align-items: center; justify-content: space-between; gap: 9px; border-top: 1px solid var(--line); }
.candidate-card > footer strong { color: var(--muted); font-size: 8px; }

.housing-grid { display: grid; gap: 9px; }
.housing-card { position: relative; display: grid; grid-template-columns: 112px minmax(0,1fr) 160px; border: 1px solid var(--line); border-radius: 17px; background: #0e1216; }
.housing-card.is-work-ready { border-color: rgba(216,255,103,.12); }
.housing-visual { position: relative; min-height: 145px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border-right: 1px solid var(--line); border-radius: 16px 0 0 16px; color: var(--lime); background: radial-gradient(circle, rgba(216,255,103,.08), transparent 65%), #12171b; }
.housing-visual > span { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(216,255,103,.15); border-radius: 13px; }
.housing-visual b { max-width: 86px; color: var(--muted); font-size: 7px; font-weight: 700; text-align: center; text-transform: uppercase; }
.housing-visual i { position: absolute; left: 9px; top: 8px; color: var(--muted-2); font-family: ui-monospace, monospace; font-size: 7px; font-style: normal; }
.housing-content { min-width: 0; padding: 13px; }
.housing-top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 7px; text-transform: uppercase; }
.housing-top b { color: var(--lime); font-size: 6px; }
.housing-content h3 { margin: 4px 0; font-size: 13px; }
.housing-content > p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.4; }
.housing-facts, .housing-pros-cons { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted-2); font-size: 6px; }
.housing-facts span { display: flex; align-items: center; gap: 3px; }
.housing-facts .icon { width: 9px; height: 9px; }
.housing-pros-cons .pro { color: #73cf9b; }.housing-pros-cons .con { color: #d0a077; }
.housing-card > footer { padding: 13px; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 10px; border-left: 1px solid var(--line); }
.housing-card > footer small, .housing-card > footer strong { display: block; }
.housing-card > footer small { color: var(--muted-2); font-size: 6px; }
.housing-card > footer strong { margin-top: 2px; font-size: 11px; }
.aggregator-actions { padding: 8px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; border-top: 1px solid var(--line); background: rgba(255,255,255,.012); }
.housing-card > .aggregator-actions { grid-column: 2 / 4; }
.aggregator-actions button, .aggregator-actions a { min-height: 27px; padding: 0 7px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: 7px; font-weight: 700; text-decoration: none; }
.aggregator-actions button:hover, .aggregator-actions a:hover { color: var(--sky); border-color: rgba(114,216,255,.22); }
.aggregator-actions .icon { width: 10px; height: 10px; }
.inventory-note { position: absolute; right: 8px; bottom: -16px; margin: 0; color: var(--muted-2); font-size: 6px; }
.housing-card + .housing-card { margin-top: 5px; }

.flight-board { display: grid; gap: 9px; }
.flight-card { overflow: hidden; display: grid; grid-template-columns: 135px minmax(280px,1fr) 145px; border: 1px solid rgba(114,216,255,.13); border-radius: 17px; background: linear-gradient(110deg, rgba(114,216,255,.035), #0e1216 38%); }
.flight-date-block, .flight-price { padding: 15px; display: flex; flex-direction: column; justify-content: center; }
.flight-date-block { border-right: 1px solid var(--line); }
.flight-date-block span { color: var(--sky); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.flight-date-block strong { margin: 3px 0; font-size: 10px; }
.flight-date-block small, .flight-price small, .flight-price span { color: var(--muted-2); font-size: 7px; }
.flight-route-block { padding: 15px; display: grid; grid-template-columns: 1fr minmax(78px,.7fr) 1fr; align-items: center; gap: 9px; }
.airport strong, .airport span { display: block; }
.airport strong { font-size: 22px; letter-spacing: -.02em; }
.airport span { overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.airport.is-arrival { text-align: right; }
.flight-line { position: relative; display: flex; align-items: center; justify-content: center; color: var(--sky); }
.flight-line > i { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(114,216,255,.3); }
.flight-line > .icon { position: relative; width: 14px; padding: 2px; box-sizing: content-box; background: #101519; }
.flight-line small { position: absolute; top: 17px; color: var(--muted-2); font-size: 6px; white-space: nowrap; }
.flight-price { border-left: 1px solid var(--line); text-align: right; }
.flight-price strong { margin: 2px 0; font-size: 11px; }
.flight-note { grid-column: 1 / 4; margin: 0; padding: 8px 13px; display: flex; gap: 6px; border-top: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.012); font-size: 7px; }
.flight-note .icon { width: 10px; height: 10px; }
.flight-card > .aggregator-actions { grid-column: 1 / 4; }
.flight-estimate-meta { grid-column: 1 / 4; padding: 0 12px 8px; color: var(--muted-2); background: rgba(255,255,255,.012); font-size: 6px; }

.week-aside { position: sticky; top: 96px; display: grid; gap: 10px; }
.week-aside .panel { padding: 17px; border-radius: 18px; }
.side-panel-head { display: flex; align-items: center; gap: 10px; }
.side-panel-icon { width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--lime); background: rgba(216,255,103,.07); }
.side-panel-icon.color-violet { color: var(--violet); background: rgba(183,155,255,.07); }
.side-panel-icon.color-coral { color: var(--coral); background: rgba(255,138,100,.07); }
.side-panel-head h3 { margin: 2px 0 0; font-size: 13px; }
.week-cost-total { margin-top: 17px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.018); }
.week-cost-total span, .week-cost-total small { display: block; color: var(--muted); font-size: 7px; }
.week-cost-total strong { display: block; margin: 2px 0; font-size: 16px; }
.week-cost-list { margin-top: 12px; display: grid; gap: 7px; }
.week-cost-list div { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 8px; }
.week-cost-list b { color: #c8cbd0; font-weight: 600; }
.side-estimate-note { margin: 12px 0 0; color: var(--muted-2); font-size: 7px; }
.side-empty { margin-top: 15px; padding: 13px; border: 1px dashed var(--line); border-radius: 11px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.mobility-list { margin-top: 13px; display: grid; gap: 8px; }
.mobility-list article { padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.016); }
.mobility-list article > div { display: flex; gap: 8px; }
.mobility-mode { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 8px; color: var(--violet); background: rgba(183,155,255,.07); }
.mobility-list strong, .mobility-list small { display: block; }
.mobility-list strong { font-size: 9px; }
.mobility-list small { margin-top: 2px; color: var(--muted); font-size: 7px; line-height: 1.35; }
.mobility-list article > p { margin: 8px 0 0; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 7px; }
.mobility-list article > p b { color: var(--text); }.mobility-list article > p i { margin-left: auto; color: var(--lime); font-size: 6px; font-style: normal; text-transform: uppercase; }
.mobility-choice { margin-top: 8px; }
.mobility-choice .option-select { width: 100%; }
.mobility-list .aggregator-actions { margin: 8px -9px -9px; }
.food-estimate { margin-top: 15px; }
.food-estimate small { color: var(--muted); font-size: 7px; }
.food-estimate strong { display: block; margin: 2px 0 6px; font-size: 17px; }
.food-estimate p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.food-days { margin-top: 12px; display: flex; gap: 5px; }
.food-days span { padding: 4px 6px; border-radius: 6px; color: var(--muted); background: rgba(255,255,255,.035); font-size: 6px; }
.context-panel { padding: 0 !important; overflow: hidden; }
.context-panel summary { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.context-panel summary::-webkit-details-marker { display: none; }
.context-panel summary strong { display: block; margin-top: 2px; font-size: 10px; }
.context-panel summary .icon { width: 13px; color: var(--muted); transition: transform .2s; }
.context-panel[open] summary .icon { transform: rotate(180deg); }
.context-panel .aside-list { padding: 0 16px 15px; }
.context-panel .aside-list li { font-size: 8px; }

.settings-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 15px; margin-top: 26px; align-items: start; }.settings-form { padding: 27px; }.form-section-head { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }.form-section-head > span { width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--lime); background: rgba(216,255,103,.07); font-size: 9px; font-weight: 800; }.form-section-head h3 { margin: 0; font-size: 16px; }.form-section-head p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }.form-grid { display: grid; gap: 14px; }.form-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }.form-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }.span-two { grid-column: span 2; }.form-divider { height: 1px; margin: 28px 0; background: var(--line); }
label { display: grid; gap: 7px; color: #b8bbc1; font-size: 10px; font-weight: 700; }label > span i { color: var(--muted-2); font-style: normal; font-weight: 500; }input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: #0e1115; transition: border-color .2s, background .2s; }input, select { height: 43px; padding: 0 12px; }textarea { padding: 11px 12px; resize: vertical; line-height: 1.5; }input::placeholder, textarea::placeholder { color: #555a64; }input:hover, textarea:hover, select:hover { border-color: var(--line-strong); }select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #777 50%),linear-gradient(135deg, #777 50%, transparent 50%); background-position: calc(100% - 16px) 18px,calc(100% - 12px) 18px; background-size: 4px 4px; background-repeat: no-repeat; }.form-actions { margin-top: 24px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }.form-actions > span { color: #69e59e; font-size: 9px; }
.settings-side { display: grid; gap: 14px; }.route-settings-list { display: grid; gap: 8px; margin-top: 17px; }.route-setting-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 9px; border: 1px solid transparent; border-radius: 12px; background: rgba(255,255,255,.025); cursor: pointer; }.route-setting-row:hover { border-color: var(--line); }.route-setting-code { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--row-color); background: color-mix(in srgb, var(--row-color) 10%, transparent); font-size: 8px; font-weight: 900; }.route-setting-row strong, .route-setting-row small { display: block; }.route-setting-row strong { font-size: 11px; }.route-setting-row small { color: var(--muted); font-size: 8px; }.route-setting-row > .icon { color: var(--muted-2); }
.security-panel { display: flex; gap: 14px; background: linear-gradient(145deg, rgba(183,155,255,.06), var(--surface) 50%); }.security-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 12px; color: var(--violet); background: rgba(183,155,255,.09); }.security-panel h3 { margin: 1px 0 5px; font-size: 13px; }.security-panel p { margin: 0 0 11px; color: var(--muted); font-size: 9px; line-height: 1.55; }

.login-gate { position: fixed; inset: 0; z-index: 1000; overflow: hidden; display: none; align-items: center; justify-content: center; background: radial-gradient(circle at 78% 20%, rgba(114,216,255,.07), transparent 28%), radial-gradient(circle at 20% 75%, rgba(216,255,103,.07), transparent 30%), #090b0e; }.login-gate.is-visible { display: flex; }
.login-gate::before { content: ""; position: absolute; inset: 0; opacity: .23; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 62px 62px; mask-image: radial-gradient(circle, #000, transparent 75%); }
.login-card { position: relative; z-index: 2; width: min(490px, calc(100% - 36px)); padding: 44px; border: 1px solid var(--line-strong); border-radius: 28px; background: rgba(15,18,23,.88); box-shadow: 0 40px 100px rgba(0,0,0,.45); backdrop-filter: blur(25px); }.brand-mark-large { width: 47px; height: 47px; margin-bottom: 28px; }.brand-mark-large span { top: 21px; }.login-card h1 { max-width: 390px; margin: 10px 0 14px; font-size: clamp(37px, 7vw, 57px); line-height: .96; letter-spacing: -.065em; }.login-lead { max-width: 400px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }.login-form { margin-top: 29px; }.field-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }.token-row { display: grid; grid-template-columns: 1fr 50px; gap: 7px; }.token-row input { height: 50px; padding: 0 15px; font-family: ui-monospace, monospace; letter-spacing: .04em; }.form-error { min-height: 18px; margin: 7px 0 0; color: #ff8a8a; font-size: 9px; }.login-foot { margin-top: 23px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 9px; }.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #69e59e; }
.login-orbit { position: absolute; border: 1px solid rgba(255,255,255,.05); border-radius: 50%; }.orbit-one { width: 620px; height: 620px; left: -240px; bottom: -310px; }.orbit-two { width: 470px; height: 470px; right: -170px; top: -160px; border-color: rgba(114,216,255,.08); }.login-route { position: absolute; z-index: 1; right: 4vw; bottom: 5vh; display: flex; align-items: center; gap: 9px; color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .11em; }.login-route i { width: 54px; border-top: 1px dashed rgba(216,255,103,.25); }

.modal { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; color: var(--text); background: transparent; }.modal::backdrop { background: rgba(2,3,4,.75); backdrop-filter: blur(8px); }.modal[open] { display: flex; align-items: center; justify-content: center; }.modal-card { width: min(660px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; padding: 27px; border: 1px solid var(--line-strong); border-radius: 24px; background: #12161b; box-shadow: var(--shadow); animation: modal-in .24s both; }.modal-card-small { width: min(490px, calc(100% - 32px)); }@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }.modal-head { margin-bottom: 21px; display: flex; justify-content: space-between; gap: 15px; }.modal-head h2 { margin: 5px 0 0; font-size: 25px; letter-spacing: -.045em; }.modal-card > label, .modal-card > .form-grid { margin-top: 14px; }.modal-actions { margin-top: 24px; display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; }.modal-intro { margin: -5px 0 20px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.invite-visual { display: flex; align-items: center; padding: 12px 0 25px; }.invite-visual .avatar { width: 46px; height: 46px; margin-right: -8px; font-size: 12px; }.invite-visual .avatar:nth-child(2) { background: var(--coral); }.invite-visual .avatar:nth-child(3) { background: var(--sky); }.invite-visual > span { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; margin-left: 3px; border: 1px dashed var(--line-strong); border-radius: 50%; color: var(--muted); }.share-url { height: 47px; padding: 0 8px 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: #0e1115; font-size: 10px; }.share-url button { padding: 6px 9px; border: 0; border-radius: 7px; color: var(--lime); background: rgba(216,255,103,.08); font-size: 9px; cursor: pointer; }.hint-box { margin-top: 13px; padding: 11px; display: flex; gap: 9px; border-radius: 10px; color: #aeb2b9; background: rgba(105,229,158,.05); font-size: 9px; }.hint-box .icon { width: 14px; color: #69e59e; }

.toast-stack { position: fixed; right: 22px; bottom: 22px; z-index: 2000; display: grid; gap: 8px; pointer-events: none; }.toast { max-width: 360px; padding: 12px 15px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--text); background: rgba(20,24,29,.94); box-shadow: 0 18px 45px rgba(0,0,0,.3); backdrop-filter: blur(14px); font-size: 10px; animation: toast-in .25s both; }.toast .icon { width: 14px; color: #69e59e; }.toast.is-error .icon { color: var(--danger); }@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }.mobile-nav { display: none; }

.embed-nav { display: none; }
body.is-embedded { background: #090b0e; }
body.is-embedded .app-shell { display: block; min-height: 100vh; padding: 0; }
body.is-embedded .sidebar,
body.is-embedded .topbar,
body.is-embedded .mobile-nav { display: none !important; }
body.is-embedded .embed-nav {
  position: sticky; top: 0; z-index: 60;
  min-height: 66px; padding: 9px 22px;
  display: flex; align-items: center; gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(9,11,14,.91); backdrop-filter: blur(18px);
}
.embed-brand { min-width: 132px; }
.embed-brand span, .embed-brand strong { display: block; }
.embed-brand span { color: var(--muted-2); font-size: 7px; font-weight: 800; letter-spacing: .18em; }
.embed-brand strong { margin-top: 2px; font-size: 13px; }
.embed-tabs { display: flex; align-items: center; gap: 4px; margin: 0 auto; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.embed-tabs button { min-height: 36px; padding: 0 12px; display: flex; align-items: center; gap: 7px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.embed-tabs button:hover { color: var(--text); }
.embed-tabs button.is-active { color: var(--lime); background: rgba(216,255,103,.075); }
.embed-tabs .icon { width: 15px; height: 15px; }
body.is-embedded .view { padding-top: 22px; }

@media (max-width: 1180px) {
  :root { --sidebar: 210px; }
  .topbar, .view { padding-left: 27px; padding-right: 27px; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }.activity-panel { grid-column: span 2; min-height: auto !important; }.activity-list { grid-template-columns: repeat(2,1fr); }
  .hero-map { left: 29%; }.hero-content { padding: 46px; }
  .wish-board { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .plan-layout { grid-template-columns: minmax(0,1fr) 280px; }
  .atlas-grid { grid-template-columns: minmax(0,1.35fr) 330px; }
  .week-layout { grid-template-columns: minmax(0,1fr) 300px; }
  .candidate-grid { grid-template-columns: 1fr; }
  .housing-card { grid-template-columns: 96px minmax(0,1fr) 145px; }
}

@media (max-width: 1020px) {
  .atlas-grid { grid-template-columns: 1fr; }
  .budget-dashboard { min-height: auto; }
  .budget-category-list { grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 22px; }
  .budget-empty { min-height: 250px; }
  .week-focus-facts > span:nth-child(2) { display: none; }
}

@media (max-width: 900px) {
  :root { --sidebar: 0px; }
  .app-shell { display: block; padding-bottom: 76px; }.sidebar { display: none; }
  .topbar { height: 70px; padding: 0 20px; }.breadcrumb { display: none; }.mobile-title { display: block; margin: 0; font-size: 18px; letter-spacing: -.04em; }.live-label, .topbar .button-quiet { display: none; }
  .view { padding: 20px 20px 50px; }.hero-card { min-height: 500px; }.hero-map { inset: 30% -20% 0 8%; opacity: .65; }.hero-card::before { background: linear-gradient(180deg, rgba(8,10,13,.97) 0%, rgba(8,10,13,.75) 52%, rgba(8,10,13,.16)); }.hero-content { padding: 34px; }.hero-kicker { margin-top: 30px; }.hero-content h1 { max-width: 500px; }.hero-facts { flex-wrap: wrap; }
  .route-canvas { grid-template-columns: 1fr; }.route-card { min-height: 160px; }.route-connector { top: auto; right: calc(50% - 15px); bottom: -22px; transform: rotate(90deg); }
  .dashboard-grid { grid-template-columns: 1fr; }.activity-panel { grid-column: auto; }.activity-list { grid-template-columns: 1fr; }
  .plan-head { align-items: flex-start; flex-direction: column; }.plan-layout, .settings-layout { grid-template-columns: 1fr; }.plan-aside { grid-template-columns: repeat(2, 1fr); }.tips-panel { grid-column: span 2; }
  .week-layout { grid-template-columns: 1fr; }
  .week-aside { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .context-panel:last-child { grid-column: span 2; }
  .mobile-nav { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 62px; padding: 6px 8px; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line-strong); border-radius: 19px; background: rgba(15,18,22,.92); box-shadow: 0 16px 50px rgba(0,0,0,.42); backdrop-filter: blur(18px); }.mobile-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 12px; color: var(--muted); background: transparent; font-size: 8px; font-weight: 700; }.mobile-nav button.is-active { color: var(--lime); background: rgba(216,255,103,.06); }.mobile-nav .icon { width: 17px; height: 17px; }.mobile-ai i { width: 25px; height: 25px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--lime-ink); background: var(--lime); font-style: normal; font-size: 13px; }
}

@media (max-width: 760px) {
  .world-map { min-height: 255px; }
  .week-focus-head { grid-template-columns: 54px minmax(0,1fr); }
  .week-number-orb { width: 54px; height: 54px; }
  .week-focus-facts { grid-column: span 2; justify-content: stretch; }
  .week-focus-facts > span { flex: 1; }
  .candidate-grid { grid-template-columns: 1fr; }
  .housing-card { grid-template-columns: 86px minmax(0,1fr); }
  .housing-card > footer { grid-column: span 2; padding: 10px 12px; flex-direction: row; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); border-left: 0; }
  .housing-card > .aggregator-actions { grid-column: span 2; }
  .flight-card { grid-template-columns: 110px minmax(210px,1fr); }
  .flight-price { grid-column: span 2; padding: 10px 13px; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); border-left: 0; text-align: left; }
  .flight-note, .flight-card > .aggregator-actions, .flight-estimate-meta { grid-column: span 2; }
}

@media (max-width: 620px) {
  .topbar { padding: 0 14px; }.topbar-actions { gap: 5px; }.topbar .button-accent { width: 42px; padding: 0; }.topbar .button-accent .icon { margin: 0; }.topbar .button-accent { font-size: 0; }.live-group { margin-right: 2px; }.avatar-stack .avatar { width: 25px; height: 25px; }
  .view { padding: 14px 14px 44px; }.hero-card { min-height: 565px; border-radius: 24px; }.hero-content { padding: 28px 23px; }.hero-content h1 { font-size: 43px; }.hero-subtitle { max-width: 260px; }.hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }.hero-buttons { align-items: stretch; flex-direction: column; }.hero-map { inset: 46% -45% -4% -30%; }.trip-number { display: none; }
  .section-heading { align-items: flex-end; }.section-heading .button { width: 40px; padding: 0; font-size: 0; }
  .panel { padding: 18px; }.dashboard-grid .panel { min-height: auto; }
  .page-head { min-height: 180px; align-items: flex-start; flex-direction: column; justify-content: flex-end; }.page-head .button { width: 100%; }.wish-board { grid-template-columns: 1fr; }
  .plan-head-copy { align-items: flex-start; }.ai-orb { width: 48px; height: 48px; }.plan-head { min-height: 230px; }.plan-head > .button { width: 100%; }.plan-head h1 { font-size: 36px; }.generation-banner { grid-template-columns: 38px 1fr; }.generation-time { display: none; }
  .plan-layout { margin-top: 17px; }.plan-aside { grid-template-columns: 1fr; }.tips-panel { grid-column: auto; }.day-card { grid-template-columns: 54px 1fr; }.day-timeline::before { left: 27px; }.day-content { padding: 17px 14px; }.day-item { grid-template-columns: 38px 20px 1fr; }.booking-dot { display: none; }.day-foot { flex-direction: column; gap: 6px; }
  .trip-canvas .plan-toolbar { align-items: flex-start; gap: 10px; }
  .trip-canvas .plan-stats { gap: 8px 13px; flex-wrap: wrap; }
  .world-map-panel, .budget-dashboard { border-radius: 20px; }
  .world-map-panel { padding: 17px 14px 12px; }
  .canvas-section-head { align-items: flex-start; }
  .canvas-section-head h2 { font-size: 18px; }
  .map-key { display: none; }
  .world-map { min-height: 210px; margin-top: 13px; overflow: hidden; }
  .world-map svg { width: 155%; max-width: none; transform: translateX(-18%); }
  .map-flight-arc text { display: none; }
  .world-stop:not(.is-major) text { display: none; }
  .map-flight-chip { min-width: 180px; }
  .budget-dashboard { padding: 18px; }
  .budget-category-list { grid-template-columns: 1fr; }
  .week-navigation-head > span { display: none; }
  .week-navigation-head h2 { font-size: 22px; }
  .week-strip-shell { grid-template-columns: minmax(0,1fr); }
  .week-scroll { display: none; }
  .week-tab { min-width: 136px; }
  .week-focus-head { padding: 15px; gap: 12px; border-radius: 18px; }
  .week-focus-copy h2 { font-size: 22px; }
  .week-focus-copy > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .week-focus-facts { overflow-x: auto; }
  .week-focus-facts > span { min-width: 100px; }
  .canvas-block { padding: 16px 12px; border-radius: 19px; }
  .soft-label, .estimate-disclaimer { display: none; }
  .live-day-head { grid-template-columns: 76px minmax(0,1fr); gap: 9px; }
  .day-badges { grid-column: span 2; justify-content: flex-end; }
  .day-choice { grid-template-columns: 29px minmax(0,1fr); align-items: start; }
  .choice-action { grid-column: 2; }
  .option-select { width: 100%; }
  .candidate-card { grid-template-columns: 66px minmax(0,1fr); }
  .candidate-art { min-height: 132px; }
  .candidate-card > footer { align-items: stretch; flex-direction: column; }
  .housing-card { grid-template-columns: 72px minmax(0,1fr); }
  .housing-visual { min-height: 155px; }
  .housing-content { padding: 11px; }
  .housing-pros-cons { display: none; }
  .flight-card { grid-template-columns: 1fr; }
  .flight-date-block { padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .flight-route-block { min-height: 90px; grid-template-columns: 1fr 72px 1fr; padding: 12px; }
  .flight-price, .flight-note, .flight-card > .aggregator-actions, .flight-estimate-meta { grid-column: 1; }
  .flight-price { flex-direction: column; align-items: flex-start; }
  .week-aside { grid-template-columns: 1fr; }
  .context-panel:last-child { grid-column: auto; }
  .settings-form { padding: 19px; }.form-grid.two, .form-grid.three { grid-template-columns: 1fr; }.span-two { grid-column: auto; }.form-actions { align-items: stretch; flex-direction: column; }.form-actions .button { width: 100%; }
  .login-card { padding: 29px 23px; }.login-card h1 { font-size: 42px; }.login-route { display: none; }
  .modal-card { padding: 21px 18px; border-radius: 20px; }.modal-actions { grid-template-columns: 1fr 1fr; }.modal-actions > span { display: none; }.modal-actions .button { padding-left: 10px; padding-right: 10px; }.modal-actions .button-danger { grid-column: span 2; order: 3; }
  .toast-stack { left: 14px; right: 14px; bottom: 86px; }.toast { max-width: none; }
  body.is-embedded .embed-nav { min-height: 58px; padding: 7px 9px; gap: 7px; }
  body.is-embedded .embed-brand { display: none; }
  body.is-embedded .embed-tabs { flex: 1; justify-content: space-between; min-width: 0; }
  body.is-embedded .embed-tabs button { padding: 0 8px; }
  body.is-embedded .embed-tabs button span { display: none; }
  body.is-embedded .embed-add { width: 40px; min-width: 40px; padding: 0; }
  body.is-embedded .embed-add span { display: none; }
  body.is-embedded .view { padding-top: 12px; }
}

.clipboard-proxy { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* The canvas carries dense planning data, but it still needs to read well at
   the dashboard's embedded width. Keep labels compact without dropping below
   comfortable UI text sizes. */
.week-tab strong { font-size: 11px; }
.week-tab small, .week-tab i { font-size: 8px; }
.week-focus-copy p, .week-focus-copy span { font-size: 10px; }
.week-focus-copy p { font-size: 9px; }
.week-focus-facts b { font-size: 10px; }
.soft-label, .estimate-disclaimer { font-size: 9px; }
.live-day-date span, .live-day-focus > span { font-size: 9px; }
.live-day-date strong { font-size: 13px; }
.live-day-focus h3 { font-size: 16px; }
.workday-badge, .pace-badge { font-size: 8px; }
.choice-top, .choice-meta { font-size: 9px; }
.choice-top b { font-size: 8px; }
.choice-copy h4 { font-size: 13px; }
.choice-copy > p { font-size: 10px; }
.option-select { min-height: 34px; font-size: 10px; }
.option-pool-label, .booking-label, .live-day-foot { font-size: 9px; }
.candidate-kicker, .candidate-kicker b { font-size: 8px; }
.candidate-body h3 { font-size: 14px; }
.candidate-body > p, .candidate-card > footer strong { font-size: 10px; }
.candidate-tags span { font-size: 8px; }
.housing-visual b, .housing-top { font-size: 9px; }
.housing-top b { font-size: 8px; }
.housing-content h3 { font-size: 14px; }
.housing-content > p { font-size: 10px; }
.housing-facts, .housing-pros-cons { font-size: 8px; }
.housing-card > footer small { font-size: 8px; }
.housing-card > footer strong { font-size: 13px; }
.aggregator-actions button, .aggregator-actions a { min-height: 31px; font-size: 9px; }
.inventory-note { font-size: 8px; }
.flight-date-block span { font-size: 10px; }
.flight-date-block strong { font-size: 12px; }
.flight-date-block small, .flight-price small, .flight-price span, .airport span { font-size: 9px; }
.flight-price strong { font-size: 13px; }
.flight-line small, .flight-estimate-meta { font-size: 8px; }
.flight-note { font-size: 9px; }
.side-panel-head h3 { font-size: 14px; }
.week-cost-total span, .week-cost-total small, .side-estimate-note { font-size: 9px; }
.week-cost-list div, .side-empty { font-size: 10px; }
.mobility-list strong { font-size: 11px; }
.mobility-list small, .mobility-list article > p { font-size: 9px; }
.mobility-list article > p i { font-size: 8px; }
.food-estimate small { font-size: 9px; }
.food-estimate p { font-size: 10px; }
.food-days span { font-size: 8px; }
.context-panel summary strong { font-size: 12px; }
.context-panel .aside-list li { font-size: 10px; }

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

/* Map workspace V2 ------------------------------------------------------- */
:root { --sidebar: 96px; --map-glass: rgba(14, 18, 22, .84); }
.sidebar { padding: 18px 10px 14px; }
.brand { justify-content: center; padding: 0; }
.brand > div:last-child, .trip-switcher, .codex-mini { display: none; }
.side-nav { margin-top: 24px; gap: 7px; }
.nav-item { position: relative; min-height: 58px; padding: 7px 4px; flex-direction: column; justify-content: center; gap: 5px; text-align: center; }
.nav-item:hover { transform: translateY(-1px); }
.nav-item span { flex: 0; font-size: 10px; line-height: 1.1; }
.nav-item b { position: absolute; top: 5px; right: 8px; min-width: 16px; padding: 1px 4px; font-size: 8px; }
.nav-item .new-badge { position: absolute; top: 4px; right: 5px; font-size: 7px; }
.profile-chip { min-height: 48px; padding: 5px; justify-content: center; }
.profile-chip > span:not(.avatar), .profile-chip > .icon { display: none; }
.topbar { height: 64px; padding: 0 22px; }
.map-view { height: calc(100dvh - 64px); padding: 0 !important; overflow: hidden; }
.map-workspace { position: relative; width: 100%; height: 100%; overflow: hidden; background: #10161b; }
.trip-map { position: absolute; inset: 0; }
.trip-map .maplibregl-canvas { outline: none; }
.trip-map .maplibregl-ctrl-top-right { top: 142px; right: 9px; }
.trip-map .maplibregl-ctrl-bottom-right { bottom: 108px; }
.trip-map .maplibregl-ctrl-group { overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: rgba(12,16,20,.82); box-shadow: 0 8px 30px rgba(0,0,0,.18); backdrop-filter: blur(18px); }
.trip-map .maplibregl-ctrl-group button { width: 38px; height: 38px; filter: invert(1); opacity: .8; }
.trip-map .maplibregl-ctrl-scale { margin: 0 12px 6px 0; border-color: rgba(255,255,255,.5); color: rgba(255,255,255,.8); background: rgba(5,8,10,.52); }
.trip-map .maplibregl-ctrl-attrib { color: #8c969e; background: rgba(5,8,10,.78); }
.trip-map .maplibregl-ctrl-attrib a { color: #b8c0c6; }
.trip-map .maplibregl-ctrl-attrib.maplibregl-compact { border-radius: 9px 0 0 0; background-color: rgba(5,8,10,.82); }
.trip-map .maplibregl-ctrl-attrib-button { filter: invert(1); opacity: .75; }
.map-loading { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 12px; color: #d8dee4; background: #10161b; transition: opacity .3s; }
.map-loading.is-ready { opacity: 0; pointer-events: none; }
.map-loading.is-error { padding: 24px; text-align: center; }
.map-loading span { width: 30px; height: 30px; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--lime); border-radius: 50%; animation: map-spin .8s linear infinite; }
.map-loading.is-error span { display: none; }
.map-loading p { margin: 0; font-size: 13px; }
.map-loading.is-error p { max-width: 340px; line-height: 1.5; }
@keyframes map-spin { to { transform: rotate(360deg); } }
.glass-panel { border: 1px solid rgba(255,255,255,.13); background: var(--map-glass); box-shadow: 0 14px 48px rgba(0,0,0,.24); backdrop-filter: blur(20px) saturate(1.25); }
.map-route-hud { position: absolute; z-index: 5; top: 16px; left: 16px; min-width: 260px; height: 58px; padding: 7px 8px 7px 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 16px; }
.map-trip-title { min-width: 0; display: flex; align-items: center; gap: 10px; }
.map-trip-title div { min-width: 0; }
.map-trip-title small, .map-trip-title strong { display: block; }
.map-trip-title small { color: #8c969f; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.map-trip-title strong { max-width: 260px; margin-top: 1px; overflow: hidden; color: #f5f7f8; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.map-live-dot { width: 8px; height: 8px; flex: 0 0 auto; border: 2px solid rgba(216,255,103,.24); border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(216,255,103,.06); }
.map-hud-actions { display: flex; align-items: center; gap: 5px; }
.map-ai-button { height: 40px; padding: 0 11px; display: flex; align-items: center; gap: 7px; flex: 0 0 auto; border: 1px solid rgba(216,255,103,.2); border-radius: 11px; color: var(--lime); background: rgba(216,255,103,.08); cursor: pointer; font-size: 10px; font-weight: 800; }
.map-ai-button .icon { width: 14px; height: 14px; }
.map-ai-button:hover { color: #111608; background: var(--lime); }
.map-ai-button:disabled { opacity: .55; cursor: wait; }
.map-ai-button[aria-busy="true"] .icon { animation: map-spin 1s linear infinite; }
.map-icon-button, .map-drawer-close { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border: 0; border-radius: 11px; color: #dce2e6; background: rgba(255,255,255,.06); cursor: pointer; }
.map-icon-button:hover, .map-drawer-close:hover { color: var(--lime); background: rgba(255,255,255,.1); }
.map-layer-controls { position: absolute; z-index: 5; top: 16px; right: 16px; padding: 5px; display: flex; align-items: center; gap: 3px; border-radius: 15px; }
.map-layer-controls button { height: 40px; padding: 0 11px; display: flex; align-items: center; gap: 7px; border: 0; border-radius: 10px; color: #7f8993; background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.map-layer-controls button:hover { color: #fff; }
.map-layer-controls button.is-active { color: #f1f4f5; background: rgba(255,255,255,.1); }
.map-layer-controls button:not(.is-active) .icon { opacity: .45; }
.map-budget-hud { position: absolute; z-index: 5; left: 16px; top: 86px; min-width: 214px; padding: 12px 14px; border-radius: 15px; }
.map-budget-hud > span { display: flex; align-items: center; gap: 7px; color: #909aa3; font-size: 10px; font-weight: 700; }
.map-budget-hud .icon { width: 14px; height: 14px; color: var(--lime); }
.map-budget-hud strong { display: block; margin-top: 3px; color: #fff; font-size: 17px; letter-spacing: -.025em; }
.map-budget-hud small { display: block; margin-top: 1px; color: #7c8790; font-size: 9px; }
.map-budget-hud.is-stale { border-color: rgba(255,138,100,.32); }
.map-budget-hud.is-stale > span .icon, .map-budget-hud.is-stale small { color: var(--coral); }
.map-create-tools { position: absolute; z-index: 5; left: 16px; top: 183px; padding: 5px; display: grid; gap: 3px; border-radius: 15px; }
.map-create-tools button { height: 39px; padding: 0 11px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; color: #d8dee2; background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; text-align: left; }
.map-create-tools button:hover, .map-create-tools button.is-active { color: #111608; background: var(--lime); }
.map-create-tools .icon { width: 15px; height: 15px; }
.map-mode-banner { position: absolute; z-index: 8; top: 18px; left: 50%; height: 44px; padding: 5px 6px 5px 15px; display: flex; align-items: center; gap: 14px; border: 1px solid rgba(216,255,103,.35); border-radius: 14px; color: #f3f6ef; background: rgba(18,23,16,.93); box-shadow: 0 15px 44px rgba(0,0,0,.32); transform: translateX(-50%); font-size: 12px; font-weight: 700; }
.map-mode-banner button { height: 32px; padding: 0 10px; border: 0; border-radius: 9px; color: var(--lime); background: rgba(216,255,103,.1); cursor: pointer; font-size: 10px; }
.map-mode-banner.is-hidden { display: none; }
.map-drawer { position: absolute; z-index: 10; top: 10px; right: 10px; bottom: 112px; width: min(390px, calc(100% - 32px)); overflow: hidden auto; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; background: rgba(13,17,21,.96); box-shadow: 0 28px 90px rgba(0,0,0,.45); transform: translateX(calc(100% + 24px)); transition: transform .28s cubic-bezier(.2,.8,.2,1); scrollbar-width: thin; }
.map-drawer.is-open { transform: translateX(0); }
.map-drawer-close { position: sticky; z-index: 2; top: 12px; float: right; margin: 12px 12px -52px 0; background: rgba(255,255,255,.07); }
.map-drawer-content, #mapDrawerContent { min-height: 100%; }
.drawer-hero { min-height: 145px; padding: 28px 66px 22px 24px; display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(circle at 80% 12%, rgba(114,216,255,.16), transparent 38%), linear-gradient(150deg, #1a2228, #101419); }
.drawer-hero.is-housing { background: radial-gradient(circle at 82% 10%, rgba(216,255,103,.14), transparent 38%), linear-gradient(150deg, #1a2221, #101419); }
.drawer-hero.is-food { background: radial-gradient(circle at 82% 10%, rgba(255,138,100,.16), transparent 38%), linear-gradient(150deg, #251d1a, #101419); }
.drawer-kicker { display: flex; align-items: center; gap: 7px; color: var(--lime); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.drawer-hero h2 { margin: 6px 0 3px; color: #fff; font-size: 25px; line-height: 1.05; letter-spacing: -.045em; }
.drawer-hero p { margin: 0; color: #96a0a8; font-size: 11px; }
.drawer-body { padding: 20px 22px 28px; }
.drawer-section { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.09); }
.drawer-section:first-child { padding-top: 0; border-top: 0; }
.drawer-section-title { margin: 0 0 10px; color: #858f97; font-size: 9px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.drawer-copy { margin: 0; color: #acb4bb; font-size: 12px; line-height: 1.58; }
.drawer-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.drawer-facts span { min-height: 29px; padding: 0 9px; display: inline-flex; align-items: center; gap: 6px; border-radius: 9px; color: #aab3ba; background: rgba(255,255,255,.055); font-size: 10px; }
.drawer-facts .icon { width: 13px; height: 13px; color: #c5ccd1; }
.drawer-actions { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
.drawer-actions button, .drawer-link { min-height: 42px; padding: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; color: #dde2e5; background: rgba(255,255,255,.04); cursor: pointer; text-align: center; text-decoration: none; font-size: 10px; font-weight: 750; }
.drawer-actions button:hover, .drawer-link:hover { border-color: rgba(216,255,103,.3); color: var(--lime); background: rgba(216,255,103,.06); }
.drawer-actions button:disabled { opacity: .4; cursor: wait; }
.drawer-actions > div, .drawer-actions > div .option-select { width: 100%; }
.drawer-actions button.is-primary { border-color: var(--lime); color: #111608; background: var(--lime); }
.drawer-actions button.is-danger { color: #ff9d9d; }
.drawer-form { display: grid; gap: 12px; }
.drawer-form .form-grid { gap: 9px; }
.drawer-form label { gap: 6px; font-size: 10px; }
.drawer-form input, .drawer-form select, .drawer-form textarea { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.drawer-form .drawer-submit { height: 44px; border: 0; border-radius: 12px; color: #111608; background: var(--lime); cursor: pointer; font-size: 11px; font-weight: 850; }
.drawer-form-coords { display: flex; justify-content: space-between; gap: 12px; color: #68747e; font: 9px/1.4 ui-monospace, monospace; }
.drawer-discoveries { display: grid; gap: 8px; }
.drawer-result { padding: 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(255,255,255,.025); }
.drawer-result.is-selected { border-color: rgba(216,255,103,.38); background: rgba(216,255,103,.055); }
.drawer-result.is-rejected { opacity: .5; }
.drawer-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.drawer-result h3 { margin: 0; color: #f2f4f5; font-size: 13px; }
.drawer-result small { color: #7f8992; font-size: 9px; }
.drawer-result p { margin: 6px 0 0; color: #939da5; font-size: 10px; line-height: 1.45; }
.drawer-result-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.drawer-result-actions button, .drawer-result-actions a { min-height: 30px; padding: 0 9px; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; color: #c7cdd1; background: rgba(255,255,255,.035); cursor: pointer; text-decoration: none; font-size: 9px; }
.drawer-result-actions button:hover { color: var(--lime); }
.discovery-schedule { margin-top: 8px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px; }
.discovery-schedule input { height: 32px; padding: 0 8px; border-radius: 8px; font-size: 9px; }
.discovery-schedule button { padding: 0 9px; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; color: #d6dce0; background: rgba(255,255,255,.04); cursor: pointer; font-size: 9px; }
.discovery-schedule button:hover { color: var(--lime); }
.map-drawer .aggregator-actions { background: transparent; }
.map-drawer .aggregator-actions button, .map-drawer .aggregator-actions a { min-height: 36px; font-size: 10px; }
.drawer-job { margin-bottom: 10px; padding: 10px 12px; display: flex; align-items: center; gap: 9px; border-radius: 11px; color: #bdc5ca; background: rgba(114,216,255,.07); font-size: 10px; }
.drawer-job i { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); animation: map-pulse 1s infinite alternate; }
@keyframes map-pulse { to { opacity: .3; } }
.map-timeline { position: absolute; z-index: 6; left: 16px; right: 16px; bottom: 14px; min-height: 86px; padding: 8px; border-radius: 18px; }
.map-week-rail, .map-day-rail { display: flex; align-items: stretch; gap: 5px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.map-week-rail::-webkit-scrollbar, .map-day-rail::-webkit-scrollbar { display: none; }
.map-week-rail button { min-width: 105px; height: 34px; padding: 0 10px; overflow: hidden; display: flex; align-items: center; gap: 7px; border: 0; border-radius: 10px; color: #858f98; background: transparent; cursor: pointer; scroll-snap-align: start; text-align: left; }
.map-week-rail button:hover { color: #e6e9eb; background: rgba(255,255,255,.05); }
.map-week-rail button.is-active { color: #111608; background: var(--lime); }
.map-week-rail button span { flex: 0 0 auto; font-size: 9px; font-weight: 900; }
.map-week-rail button strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.map-day-rail { min-height: 35px; margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.07); }
.map-day-rail:empty { display: none; }
.map-day-rail button { min-width: 124px; height: 34px; padding: 0 9px; overflow: hidden; display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 7px; border: 0; border-radius: 9px; color: #929ba3; background: transparent; cursor: pointer; text-align: left; }
.map-day-rail button:hover, .map-day-rail button.is-active { color: #fff; background: rgba(255,255,255,.08); }
.map-day-rail button span { color: var(--lime); font-size: 9px; font-weight: 900; }
.map-day-rail button strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.map-pin-popup .maplibregl-popup-content { min-width: 180px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; color: #f4f6f7; background: rgba(14,18,22,.96); box-shadow: 0 14px 44px rgba(0,0,0,.32); }
.map-pin-popup .maplibregl-popup-tip { border-top-color: rgba(14,18,22,.96); }
.map-pin-popup strong, .map-pin-popup span { display: block; }
.map-pin-popup strong { font-size: 12px; }
.map-pin-popup span { margin-top: 3px; color: #8c969e; font-size: 9px; }
.legacy-overview-hooks { display: none !important; }

body.is-embedded .map-view { height: calc(100dvh - 66px); padding: 0 !important; }
body.is-embedded .map-workspace { border-radius: 0; }

@media (max-width: 900px) {
  :root { --sidebar: 0px; }
  .map-view { height: calc(100dvh - 70px - 76px); padding: 0 !important; }
  .app-shell { overflow: hidden; }
  .map-route-hud { top: 10px; left: 10px; min-width: 0; max-width: calc(100% - 70px); height: 52px; }
  .map-trip-title strong { max-width: 180px; }
  .map-ai-button { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .map-ai-button span { display: none; }
  .map-layer-controls { top: 70px; right: 10px; flex-direction: column; }
  .map-layer-controls button { width: 40px; padding: 0; justify-content: center; }
  .map-layer-controls button span { display: none; }
  .map-budget-hud { top: 70px; left: 10px; min-width: 190px; padding: 10px 12px; }
  .map-create-tools { top: 158px; left: 10px; }
  .map-create-tools button span { display: none; }
  .map-create-tools button { width: 40px; padding: 0; justify-content: center; }
  .trip-map .maplibregl-ctrl-top-right { display: none; }
  .trip-map .maplibregl-ctrl-bottom-right { bottom: 94px; }
  .map-timeline { left: 8px; right: 8px; bottom: 7px; padding: 6px; border-radius: 15px; }
  .map-week-rail button { min-width: 88px; }
  .map-drawer { top: auto; left: 7px; right: 7px; bottom: 7px; width: auto; max-height: min(70%, 620px); border-radius: 22px; transform: translateY(calc(100% + 20px)); }
  .map-drawer.is-open { transform: translateY(0); }
  .map-workspace.has-drawer .map-timeline { opacity: 0; pointer-events: none; }
  .drawer-hero { min-height: 120px; }
  .map-mode-banner { top: 10px; width: calc(100% - 90px); justify-content: space-between; }
  .trip-map .maplibregl-ctrl-scale { margin-bottom: 5px; }
  .toast-stack { bottom: 86px; }
}

@media (max-width: 620px) {
  .map-trip-title small { font-size: 8px; }
  .map-trip-title strong { max-width: 150px; font-size: 12px; }
  .map-icon-button { width: 36px; height: 36px; }
  .map-budget-hud strong { font-size: 15px; }
  .map-week-rail button { min-width: 82px; padding: 0 8px; }
  .map-week-rail button strong { font-size: 9px; }
  .map-day-rail button { min-width: 110px; }
  .drawer-actions { grid-template-columns: 1fr; }
  body.is-embedded .map-view { height: calc(100dvh - 58px); padding: 0 !important; }
  body.is-embedded .map-timeline { bottom: 8px; }
}

/* Map workspace V3 — object intelligence -------------------------------- */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.map-command-stack { position: absolute; z-index: 7; top: 16px; left: 50%; width: min(620px, calc(100% - 720px)); min-width: 390px; transform: translateX(-50%); }
.map-command-bar { height: 54px; padding: 5px 5px 5px 15px; display: grid; grid-template-columns: 20px minmax(120px,1fr) auto auto; align-items: center; gap: 9px; border-radius: 15px; }
.map-command-bar > .icon { width: 17px; height: 17px; color: var(--lime); }
.map-command-bar input { height: 42px; min-width: 0; padding: 0; border: 0; color: #f7f8f8; background: transparent; font-size: 13px; }
.map-command-bar input:focus { outline: 0; }
.map-command-bar input::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }
.map-command-scope { max-width: 150px; padding: 5px 8px; overflow: hidden; border-radius: 7px; color: #9ca6ad; background: rgba(255,255,255,.055); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.map-command-bar > button { height: 42px; padding: 0 15px; border: 0; border-radius: 10px; color: #111608; background: var(--lime); cursor: pointer; font-size: 11px; font-weight: 850; }
.map-command-bar > button:disabled { opacity: .45; cursor: wait; }
.map-quick-chips { margin-top: 7px; display: flex; justify-content: center; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.map-quick-chips::-webkit-scrollbar { display: none; }
.map-quick-chips button { min-height: 29px; padding: 0 10px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; color: #b0b9c0; background: rgba(12,16,20,.81); box-shadow: 0 6px 22px rgba(0,0,0,.18); backdrop-filter: blur(16px); cursor: pointer; font-size: 9px; font-weight: 720; }
.map-quick-chips button:hover { border-color: rgba(216,255,103,.32); color: var(--lime); background: rgba(16,22,18,.92); }
.map-object-rail { position: absolute; z-index: 6; top: 183px; left: 16px; width: 164px; padding: 8px; border-radius: 15px; }
.map-object-rail > p { margin: 2px 7px 7px; color: #68737c; font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.map-object-rail .map-layer-controls { position: static; padding: 0; display: grid; gap: 2px; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.map-object-rail .map-layer-controls button { width: 100%; height: 36px; padding: 0 8px; display: grid; grid-template-columns: 18px minmax(0,1fr) auto; justify-content: stretch; gap: 7px; color: #8e99a2; border-radius: 8px; text-align: left; }
.map-object-rail .map-layer-controls button.is-active { color: #e8ecee; background: rgba(255,255,255,.065); }
.map-object-rail .map-layer-controls button .icon { width: 14px; height: 14px; }
.map-object-rail .map-layer-controls button span { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.map-object-rail .map-layer-controls button b { min-width: 21px; padding: 2px 4px; border-radius: 5px; color: #77828b; background: rgba(255,255,255,.045); font-size: 8px; text-align: center; }
.map-object-rail .map-layer-controls button.is-active b { color: var(--lime); }
.map-rail-divider { height: 1px; margin: 6px 4px; background: rgba(255,255,255,.08); }
.map-object-rail .map-create-tools { position: static; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border: 0; background: transparent; box-shadow: none; }
.map-object-rail .map-create-tools button { width: auto; height: 34px; padding: 0 6px; justify-content: center; gap: 5px; border-radius: 8px; color: #939da5; background: transparent; font-size: 9px; text-align: center; }
.map-object-rail .map-create-tools button:hover, .map-object-rail .map-create-tools button.is-active { color: #111608; background: var(--lime); }
.map-region-dossier { display: grid; gap: 8px; }
.dossier-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.dossier-summary div { padding: 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.025); }
.dossier-summary small, .dossier-summary strong { display: block; }
.dossier-summary small { color: #6f7a83; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.dossier-summary strong { margin-top: 3px; color: #dce2e5; font-size: 10px; }
.dossier-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.media-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(255,255,255,.025); }
.media-card-photo { position: relative; height: 118px; overflow: hidden; background: linear-gradient(145deg,#202a30,#12171b); }
.media-card-photo.is-image-missing::before, .drawer-result-media-wrap.is-image-missing::before { content: "PHOTO / SOURCE"; position: absolute; inset: 0; display: grid; place-items: center; color: #65717a; background: radial-gradient(circle at 70% 20%, rgba(183,155,255,.13), transparent 38%), linear-gradient(145deg,#202a30,#12171b); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.media-card-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.media-card:hover .media-card-photo img { transform: scale(1.035); }
.media-card-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5,7,8,.65)); pointer-events: none; }
.media-card-category { position: absolute; z-index: 1; top: 8px; left: 8px; padding: 4px 6px; border-radius: 6px; color: #eef2f3; background: rgba(8,11,13,.68); backdrop-filter: blur(8px); font-size: 7px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.media-attribution { position: absolute; z-index: 3; right: 7px; bottom: 6px; max-width: calc(100% - 14px); overflow: hidden; color: rgba(255,255,255,.72); font-size: 7px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.media-attribution:hover { color: #fff; text-decoration: underline; }
.media-card-body { padding: 10px; }
.media-card-body h3 { margin: 0; overflow: hidden; color: #f1f3f4; font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.media-card-body p { min-height: 42px; margin: 5px 0 8px; overflow: hidden; display: -webkit-box; color: #8f9aa2; font-size: 9px; line-height: 1.5; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.media-card-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.media-card-meta span { padding: 3px 5px; border-radius: 5px; color: #9fa8af; background: rgba(255,255,255,.045); font-size: 7px; }
.media-card-open { position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; cursor: pointer; font-size: 0; }
.drawer-hero.has-media { position: relative; min-height: 238px; overflow: hidden; background: #11171b; }
.drawer-hero.has-media.is-image-missing { background: radial-gradient(circle at 75% 20%, rgba(114,216,255,.14), transparent 38%), linear-gradient(145deg,#202a30,#11161a); }
.drawer-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drawer-hero.has-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,9,11,.04) 15%, rgba(7,9,11,.92) 90%); }
.drawer-hero.has-media > :not(.drawer-hero-media) { position: relative; z-index: 1; }
.drawer-hero-source { position: absolute !important; z-index: 2 !important; top: 14px; left: 18px; max-width: calc(100% - 82px); padding: 5px 7px; overflow: hidden; border-radius: 6px; color: rgba(255,255,255,.8); background: rgba(7,9,11,.58); backdrop-filter: blur(9px); font-size: 7px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.drawer-hero-source:hover { color: #fff; text-decoration: underline; }
.search-scope-note { margin-bottom: 10px; padding: 10px 12px; border-left: 2px solid var(--lime); border-radius: 0 9px 9px 0; color: #9da7ae; background: rgba(216,255,103,.045); font-size: 10px; line-height: 1.5; }
.search-empty-action { padding: 17px; border: 1px dashed rgba(255,255,255,.13); border-radius: 12px; text-align: center; }
.search-empty-action strong, .search-empty-action span { display: block; }
.search-empty-action strong { color: #edf0f1; font-size: 12px; }
.search-empty-action span { margin-top: 4px; color: #7f8991; font-size: 9px; line-height: 1.5; }
.drawer-result-media-wrap { position: relative; width: calc(100% + 24px); height: 150px; margin: -12px -12px 12px; overflow: hidden; }
.drawer-result-media { width: 100%; height: 100%; display: block; object-fit: cover; }
.drawer-result-query { margin-bottom: 10px; color: #7e8991; font-size: 9px; }

@media (max-width: 1250px) {
  .map-command-stack { top: 84px; width: min(590px, calc(100% - 410px)); min-width: 360px; }
  .map-budget-hud { top: 86px; }
  .map-object-rail { top: 183px; }
}

@media (max-width: 900px) {
  .map-command-stack { top: 68px; left: 10px; right: 58px; width: auto; min-width: 0; transform: none; }
  .map-command-bar { height: 48px; padding-left: 12px; grid-template-columns: 18px minmax(0,1fr) auto; }
  .map-command-bar input { height: 38px; font-size: 12px; }
  .map-command-bar > button { height: 38px; padding: 0 12px; }
  .map-command-scope { display: none; }
  .map-quick-chips { justify-content: flex-start; }
  .map-object-rail { top: 158px; left: 10px; width: 45px; padding: 4px; }
  .map-object-rail > p, .map-object-rail .map-layer-controls button span, .map-object-rail .map-layer-controls button b, .map-object-rail .map-create-tools button span { display: none; }
  .map-object-rail .map-layer-controls button { width: 36px; height: 36px; padding: 0; display: flex; justify-content: center; }
  .map-object-rail .map-create-tools { grid-template-columns: 1fr; }
  .map-object-rail .map-create-tools button { width: 36px; padding: 0; }
  .map-budget-hud { top: 158px; left: 64px; min-width: 176px; }
  .map-region-dossier .dossier-card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .map-command-stack { right: 10px; }
  .map-command-bar > button { width: 40px; padding: 0; overflow: hidden; font-size: 0; }
  .map-command-bar > button::before { content: "→"; font-size: 16px; }
  .map-quick-chips button { min-height: 27px; padding: 0 8px; }
  .dossier-card-grid { grid-template-columns: 1fr; }
  .drawer-hero.has-media { min-height: 210px; }
}

/* ---- Live search: click menu, guide strip, result cards ---- */

.map-click-menu { position: absolute; z-index: 9; top: 0; left: 0; width: 252px; padding: 12px; border-radius: var(--radius-md); transition: opacity .12s; }
.map-click-menu.is-hidden { display: none; }
.map-click-title { margin: 0 0 8px; color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.map-click-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.map-click-actions button { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface-2); cursor: pointer; font-size: 11px; font-weight: 640; }
.map-click-actions button:hover { border-color: rgba(216,255,103,.4); color: var(--lime); }
.map-click-actions button.is-primary { border-color: rgba(216,255,103,.45); color: var(--lime-ink); background: var(--lime); font-weight: 760; }
.map-click-actions button.is-primary:hover { color: var(--lime-ink); filter: brightness(1.06); }
.map-click-divider { height: 1px; margin: 9px 0; background: var(--line); }

.map-guide { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 8px 12px; border-radius: 12px; }
.map-guide.is-hidden { display: none; }
.map-guide-steps { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.map-guide-steps span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted-2); font-size: 10px; font-weight: 700; white-space: nowrap; }
.map-guide-steps span b { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 9px; }
.map-guide-steps span.is-active { color: var(--lime); }
.map-guide-steps span.is-active b { border-color: var(--lime); background: rgba(216,255,103,.12); }
.map-guide-steps span.is-done { color: var(--muted); }
.map-guide-steps span.is-done b { border-color: var(--muted); }
.map-guide-steps i { width: 14px; height: 1px; background: var(--line-strong); }
.map-guide-hint { flex: 1; margin: 0; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--muted); font-size: 11px; line-height: 1.3; }
.map-guide-tour { flex: 0 0 auto; min-height: 26px; padding: 0 9px; border: 1px solid rgba(216,255,103,.4); border-radius: 8px; color: var(--lime); background: rgba(216,255,103,.07); cursor: pointer; font-size: 10px; font-weight: 800; }
.map-guide-close { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; color: var(--muted-2); background: transparent; cursor: pointer; }
.map-guide-close:hover { color: var(--text); background: rgba(255,255,255,.07); }
.map-guide-reopen { position: static; margin-top: 8px; width: 26px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: rgba(12,16,20,.81); backdrop-filter: blur(16px); cursor: pointer; font-size: 12px; font-weight: 800; }
.map-guide-reopen.is-hidden { display: none; }
.map-guide-reopen:hover { color: var(--lime); border-color: rgba(216,255,103,.4); }

.live-list { display: flex; flex-direction: column; gap: 8px; }
.live-card { padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); cursor: pointer; transition: border-color .15s; }
.live-card:hover { border-color: var(--line-strong); }
.live-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.live-card-head h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
.live-card-iata { flex: 0 0 auto; padding: 2px 7px; border-radius: 7px; color: var(--lime-ink); background: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.live-card-type { flex: 0 0 auto; color: var(--muted-2); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.live-card-meta { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.live-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 8px; }
.live-card-actions button, .live-card-actions a { display: inline-flex; align-items: center; gap: 5px; min-height: 27px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface-3); cursor: pointer; font-size: 10.5px; font-weight: 660; text-decoration: none; }
.live-card-actions button:hover, .live-card-actions a:hover { border-color: rgba(216,255,103,.4); color: var(--lime); }
.live-card-actions .live-card-save { border-color: rgba(216,255,103,.4); color: var(--lime); }
.live-switch { row-gap: 6px; }
.drawer-hint { margin: 8px 0 0; color: var(--muted-2); font-size: 10.5px; line-height: 1.5; }

@media (max-width: 900px) {
  .map-click-menu { width: 230px; }
  .map-guide { gap: 8px; padding: 7px 10px; }
  .map-guide-steps span { font-size: 9px; }
  .map-guide-steps i { width: 8px; }
}

/* ---- Live search v2: photos, status pill, reset, radius ---- */

.live-card-photo { position: relative; margin: -11px -12px 9px; height: 132px; overflow: hidden; border-radius: 11px 11px 0 0; background: var(--surface-3); }
.live-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.live-card-photo.is-loading { display: flex; align-items: center; justify-content: center; height: 34px; }
.live-card-photo.is-loading span { color: var(--muted-2); font-size: 10px; }
.live-card-photo .media-attribution { position: absolute; right: 6px; bottom: 5px; max-width: 70%; overflow: hidden; padding: 2px 7px; border-radius: 7px; color: rgba(255,255,255,.75); background: rgba(9,11,14,.62); font-size: 8.5px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.live-card-famous { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 7px; color: var(--lime-ink); background: var(--lime); font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.live-card-strip { margin: -3px 0 7px; }
.live-card-strip .live-card-famous { position: static; display: inline-block; }
.live-card-photo.is-image-missing { display: none; }

.map-search-status { display: inline-flex; align-items: center; gap: 9px; margin-top: 8px; padding: 8px 14px; border-radius: 999px; align-self: flex-start; color: var(--text); font-size: 11.5px; font-weight: 650; }
.map-search-status.is-hidden { display: none; }
.map-search-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); animation: statusPulse 1.1s ease-in-out infinite; }
@keyframes statusPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.72); } }
.map-command-bar.is-busy > button[type="submit"] { opacity: .55; pointer-events: none; }

.map-command-clear { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: 0 0 auto; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--surface-2); cursor: pointer; }
.map-command-clear:hover { color: var(--danger); border-color: rgba(255,108,108,.45); }
.map-command-clear.is-hidden { display: none; }

.live-radius-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px dashed var(--line-strong); border-radius: 11px; color: var(--muted); font-size: 11px; }
.live-radius-row b { color: var(--text); }
.live-radius-row button { flex: 0 0 auto; min-height: 27px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface-3); cursor: pointer; font-size: 10.5px; font-weight: 660; }
.live-radius-row button:hover { border-color: rgba(216,255,103,.4); color: var(--lime); }

/* ---- UX audit round: legend, layer off-state, mobile compaction ---- */

#mapLayerControls button:not(.is-active) { opacity: .38; }
#mapLayerControls button:not(.is-active) span { text-decoration: line-through; }

.map-legend-button { width: 100%; min-height: 26px; padding: 0; border: 1px dashed var(--line-strong); border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }
.map-legend-button:hover { color: var(--lime); border-color: rgba(216,255,103,.4); }

.legend-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.legend-list b { color: var(--text); }
.legend-dot { display: inline-block; width: 11px; height: 11px; margin-right: 4px; border-radius: 50%; background: var(--dot, #fff); vertical-align: -1px; }
.legend-dot.is-ring { background: #72d8ff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(255,255,255,.25); }
.legend-ring { display: inline-block; width: 12px; height: 12px; margin-right: 4px; border: 1.6px dashed #72d8ff; border-radius: 50%; vertical-align: -2px; }

.live-card-actions .live-card-save.is-saved { border-color: rgba(216,255,103,.55); color: var(--lime-ink); background: var(--lime); opacity: 1; cursor: default; }

@media (max-width: 900px) {
  .map-budget-hud { display: none; }
  .map-guide { gap: 8px; margin-top: 6px; padding: 6px 10px; }
  .map-guide-steps { display: none; }
  .map-guide-hint { white-space: normal; font-size: 10.5px; line-height: 1.35; }
  .map-object-rail { top: 128px; }
  .drawer-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drawer-actions button, .drawer-link { min-height: 38px; font-size: 9.5px; }
  .drawer-actions.live-switch { display: flex; flex-wrap: wrap; gap: 6px; }
  .drawer-actions.live-switch button { flex: 0 0 auto; min-height: 30px; padding: 0 11px; font-size: 10px; }
  .live-radius-row { flex-wrap: wrap; }
  .live-card-photo { height: 116px; }
  .map-search-status { margin-top: 6px; padding: 6px 11px; font-size: 10.5px; }
}

/* ---- Round 3: collapsible search, day navigation, chip strip ---- */

.map-search-toggle { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 38px; padding: 0 16px; border-radius: 999px; color: var(--text); cursor: pointer; font-size: 12px; font-weight: 700; }
.map-search-toggle:hover { color: var(--lime); }
.map-command-stack .map-search-body { display: none; }
.map-command-stack.is-open .map-search-body { display: block; }
.map-command-stack.is-open .map-search-toggle { color: var(--lime); }
.map-search-body .map-command-bar { margin-top: 8px; }
.map-quick-chips { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.map-quick-chips::-webkit-scrollbar { display: none; }
.map-quick-chips button { white-space: nowrap; }

.day-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.day-nav button { min-height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface-2); cursor: pointer; font-size: 10.5px; font-weight: 680; white-space: nowrap; }
.day-nav button:hover { border-color: rgba(216,255,103,.4); color: var(--lime); }
.day-nav-current { color: var(--muted-2); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 900px) {
  .map-search-toggle { min-height: 34px; padding: 0 13px; font-size: 11px; }
  .map-quick-chips button { min-height: 30px; }
}

/* ---- Round 5: stage timeline, status chips, photo gallery ---- */

.map-week-rail { display: block; overflow: visible; }
.map-stage-rail { display: flex; align-items: stretch; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.map-stage-rail::-webkit-scrollbar { display: none; }
.map-week-rail .map-stage { min-width: auto; height: 44px; padding: 0 12px 0 8px; display: flex; align-items: center; gap: 9px; flex: 0 0 auto; border: 1px solid transparent; border-radius: 12px; color: #858f98; background: transparent; cursor: pointer; text-align: left; }
.map-week-rail .map-stage:hover { color: #e6e9eb; background: rgba(255,255,255,.05); }
.map-week-rail .map-stage.is-active { color: var(--text); border-color: rgba(216,255,103,.5); background: rgba(216,255,103,.09); }
.map-week-rail .map-stage b { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; color: #131708; background: var(--lime); font-size: 11px; }
.map-week-rail .map-stage.is-active b { box-shadow: 0 0 0 3px rgba(216,255,103,.25); }
.map-week-rail .map-stage-all b { color: inherit; background: rgba(255,255,255,.09); font-size: 12px; }
.map-week-rail .map-stage span { display: flex; flex-direction: column; min-width: 0; }
.map-week-rail .map-stage strong { overflow: hidden; font-size: 11.5px; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.map-week-rail .map-stage small { color: inherit; opacity: .62; font-size: 9px; white-space: nowrap; }
.map-week-chips { display: flex; gap: 5px; margin-top: 5px; overflow-x: auto; scrollbar-width: none; }
.map-week-chips::-webkit-scrollbar { display: none; }
.map-week-rail .map-week-chips button { min-width: auto; height: 26px; padding: 0 10px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface-2); cursor: pointer; font-size: 10px; font-weight: 660; white-space: nowrap; }
.map-week-rail .map-week-chips button.is-active { color: #111608; border-color: var(--lime); background: var(--lime); }
.map-day-rail { margin-top: 6px; }
.map-day-rail button { height: 38px; }
.map-day-rail button span { font-size: 10px; }
.map-day-rail button strong { font-size: 10.5px; }

.status-chip { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 9px; font-size: 11px; font-weight: 700; }
.status-chip.is-suggested { color: #ffb49a; background: rgba(255,138,100,.14); }
.status-chip.is-shortlisted { color: #ffd98f; background: rgba(255,207,114,.15); }
.status-chip.is-selected { color: var(--lime); background: rgba(216,255,103,.13); }
.status-chip.is-rejected { color: var(--muted); background: rgba(255,255,255,.06); }

.drawer-hero-gallery { position: absolute; right: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 3px 5px; border-radius: 999px; background: rgba(9,11,14,.72); backdrop-filter: blur(8px); }
.drawer-hero-gallery button { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; color: var(--text); background: rgba(255,255,255,.09); cursor: pointer; font-size: 14px; line-height: 1; }
.drawer-hero-gallery button:hover { color: var(--lime-ink); background: var(--lime); }
.drawer-hero-count { color: rgba(255,255,255,.85); font-size: 10px; font-weight: 700; }

@media (max-width: 900px) {
  .map-timeline { min-height: 74px; }
  .map-week-rail .map-stage { height: 40px; }
  .map-day-rail button { height: 34px; }
}

/* ---- Round 6: side itinerary, transfers, day focus, mini cards ---- */

.map-itinerary { position: absolute; z-index: 6; left: 16px; top: 183px; bottom: 14px; width: 240px; padding: 12px 10px; border-radius: 16px; overflow-y: auto; scrollbar-width: thin; }
.itinerary-head p { margin: 0 4px 8px; color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.itinerary-all { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 0 10px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11.5px; font-weight: 700; text-align: left; }
.itinerary-all:hover { color: var(--text); background: rgba(255,255,255,.05); }
.itinerary-all.is-active { color: var(--text); border-color: rgba(216,255,103,.45); background: rgba(216,255,103,.08); }
.itinerary-list { position: relative; margin: 8px 0 0; padding: 0 0 0 0; list-style: none; }
.itinerary-list::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, rgba(216,255,103,.5), rgba(114,216,255,.35)); border-radius: 2px; }
.itinerary-stage { position: relative; margin-bottom: 2px; }
.itinerary-stage-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 5px 8px; border: 1px solid transparent; border-radius: 12px; color: #8d949d; background: transparent; cursor: pointer; text-align: left; }
.itinerary-stage-btn:hover { color: var(--text); background: rgba(255,255,255,.05); }
.itinerary-stage.is-active .itinerary-stage-btn { color: var(--text); border-color: rgba(216,255,103,.45); background: rgba(216,255,103,.07); }
.itinerary-stage-btn b { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; color: #131708; background: var(--lime); font-size: 11px; box-shadow: 0 0 0 3px rgba(9,11,14,.9); }
.itinerary-stage-btn span { display: flex; flex-direction: column; min-width: 0; }
.itinerary-stage-btn strong { overflow: hidden; font-size: 12px; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.itinerary-stage-btn small { color: inherit; opacity: .6; font-size: 9.5px; }
.itinerary-transfer { position: relative; margin: 1px 0 3px; padding-left: 34px; }
.itinerary-transfer button, .itinerary-transfer span { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 9px; border: 0; border-radius: 8px; color: #7f96a4; background: rgba(114,216,255,.07); cursor: pointer; font-size: 9.5px; font-weight: 650; }
.itinerary-transfer span { cursor: default; }
.itinerary-transfer button:hover { color: var(--sky); background: rgba(114,216,255,.14); }
.itinerary-weeks { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 4px 34px; }
.itinerary-weeks button { min-height: 26px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface-2); cursor: pointer; font-size: 10px; font-weight: 650; text-align: left; }
.itinerary-weeks button.is-active { color: #111608; border-color: var(--lime); background: var(--lime); }
.itinerary-days { display: flex; flex-direction: column; gap: 3px; margin: 4px 0 8px 34px; }
.itinerary-days button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 5px 9px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; text-align: left; }
.itinerary-days button:hover { color: var(--text); background: rgba(255,255,255,.05); }
.itinerary-days button.is-active { color: var(--text); border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); }
.itinerary-days button span { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.itinerary-days button em { overflow: hidden; max-width: 100%; font-size: 10.5px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

.map-mini-card { position: absolute; z-index: 8; top: 0; left: 0; width: 216px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(12,15,19,.96); box-shadow: 0 18px 50px rgba(0,0,0,.45); backdrop-filter: blur(10px); pointer-events: auto; }
.map-mini-card.is-hidden { display: none; }
.map-mini-card img { display: block; width: 100%; height: 108px; object-fit: cover; }
.map-mini-card-noimg { display: flex; align-items: center; justify-content: center; height: 34px; color: var(--muted-2); background: var(--surface-2); }
.map-mini-card-body { padding: 8px 10px 9px; }
.map-mini-card-body strong { display: block; overflow: hidden; font-size: 12px; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.map-mini-card-body small { display: block; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.map-mini-card-hint { color: var(--muted-2) !important; }
.map-mini-card-actions { display: flex; gap: 6px; margin-top: 7px; }
.map-mini-card-actions button { min-height: 28px; padding: 0 11px; border: 1px solid rgba(216,255,103,.4); border-radius: 8px; color: var(--lime); background: rgba(216,255,103,.08); cursor: pointer; font-size: 10.5px; font-weight: 700; }
.map-mini-card-actions .map-mini-card-close { flex: 0 0 auto; border-color: var(--line); color: var(--muted); background: var(--surface-2); }

@media (min-width: 901px) {
  .map-timeline { display: none; }
  .map-object-rail { left: auto; right: 16px; top: 150px; transition: right .28s cubic-bezier(.2,.8,.2,1); }
  .map-workspace.has-drawer .map-object-rail { opacity: 0; pointer-events: none; }
}
@media (min-width: 1201px) {
  /* Wide desktop: don't hide the rail behind the drawer — slide it left,
     so слои/чек-лист/легенда остаются доступны при открытом досье. */
  .map-workspace.has-drawer .map-object-rail { opacity: 1; pointer-events: auto; right: 426px; }
}
@media (max-width: 900px) {
  .map-itinerary { display: none; }
}
.itinerary-days button.is-active { border-color: rgba(216,255,103,.55); background: rgba(216,255,103,.09); color: var(--text); }
.itinerary-days button.is-active span { color: var(--lime); opacity: 1; }

/* ---- Round 7: click-through hover card, mini badges, itinerary stops ---- */

.map-mini-card.is-hover { pointer-events: none; }
.map-mini-card-noimg { height: 64px; background: linear-gradient(110deg, var(--surface-2) 40%, var(--surface-3) 50%, var(--surface-2) 60%); background-size: 200% 100%; animation: skeletonShift 1.2s linear infinite; }
@keyframes skeletonShift { to { background-position: -200% 0; } }
.mini-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.mini-badge { display: inline-flex; padding: 2px 7px; border-radius: 6px; color: var(--muted); background: rgba(255,255,255,.07); font-size: 9px; font-style: normal; font-weight: 700; }
.mini-badge.is-famous { color: var(--lime-ink); background: var(--lime); }
.mini-badge.is-suggested { color: #ffb49a; background: rgba(255,138,100,.16); }
.mini-badge.is-shortlisted { color: #ffd98f; background: rgba(255,207,114,.17); }
.mini-badge.is-selected { color: var(--lime); background: rgba(216,255,103,.14); }

.drawer-hero.is-loading .drawer-hero-skeleton { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(255,255,255,.04) 40%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 60%); background-size: 200% 100%; animation: skeletonShift 1.3s linear infinite; }

.itinerary-stops { margin: 5px 0 4px 34px; }
.itinerary-stops p { margin: 0 0 4px 2px; color: var(--muted-2); font-size: 8.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.itinerary-stops button { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 26px; padding: 2px 7px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; text-align: left; }
.itinerary-stops button:hover { color: var(--text); background: rgba(255,255,255,.06); }
.itinerary-stops button b { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; flex: 0 0 auto; border-radius: 50%; color: #131708; background: var(--lime); font-size: 9px; }
.itinerary-stops button span { overflow: hidden; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.itinerary-stop-transfer { margin: 3px 0 0 3px; color: #7f96a4; font-size: 9.5px; }

/* ---- Round 8: unified day→stops itinerary ---- */

.itinerary-days { gap: 2px; }
.itinerary-day-block { border-left: 2px solid transparent; border-radius: 4px 10px 10px 4px; }
.itinerary-day-block.is-active { border-left-color: var(--lime); background: rgba(216,255,103,.05); }
.itinerary-days .itinerary-day-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 5px 9px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; text-align: left; }
.itinerary-days .itinerary-day-btn:hover { color: var(--text); background: rgba(255,255,255,.05); }
.itinerary-day-block.is-active .itinerary-day-btn { color: var(--text); }
.itinerary-day-block.is-active .itinerary-day-btn span { color: var(--lime); opacity: 1; }
.itinerary-day-btn span { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.itinerary-day-btn em { overflow: hidden; max-width: 100%; font-size: 10.5px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.itinerary-day-stops { display: flex; flex-direction: column; gap: 1px; margin: 1px 0 4px 10px; padding-left: 8px; border-left: 1px dashed rgba(216,255,103,.35); }
.itinerary-days .itinerary-stop { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 24px; padding: 2px 7px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; text-align: left; }
.itinerary-days .itinerary-stop:hover { color: var(--text); background: rgba(255,255,255,.06); }
.itinerary-days .itinerary-stop b { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex: 0 0 auto; border-radius: 50%; color: #131708; background: var(--lime); font-size: 8.5px; }
.itinerary-days .itinerary-stop span { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.itinerary-unassigned-title { margin: 6px 0 2px 9px; color: var(--muted-2); font-size: 8.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.itinerary-unassigned-hint { margin: 3px 0 4px 9px; color: var(--muted-2); font-size: 9px; line-height: 1.4; }
.itinerary-day-block.is-unassigned .itinerary-day-stops { border-left-color: rgba(255,255,255,.14); }
.itinerary-days .itinerary-stop { flex-direction: row; }
.itinerary-days .itinerary-stop span { font-weight: 620; letter-spacing: normal; text-transform: none; opacity: 1; }
.itinerary-days .itinerary-stop b { flex-direction: row; }

/* ---- Round 9: leg metrics, week totals, export ---- */
.itinerary-days .itinerary-stop i { flex: 0 0 auto; margin-left: auto; color: var(--muted-2); font-size: 8.5px; font-style: normal; font-weight: 700; }
.itinerary-week-total { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 7px 0 3px 9px; color: var(--muted); font-size: 9.5px; font-weight: 650; }
.itinerary-week-total a { color: var(--sky); text-decoration: none; font-weight: 700; }
.itinerary-week-total a:hover { text-decoration: underline; }

/* ---- Home & preparation: stay badges, checklist ---- */

.itinerary-stay { display: block; width: 100%; margin: -2px 0 2px 34px; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.stay-badge { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; overflow: hidden; padding: 2px 8px; border-radius: 7px; font-size: 9px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.stay-badge.is-missing { color: #ffb49a; background: rgba(255,138,100,.13); }
.stay-badge.is-chosen { color: #ffd98f; background: rgba(255,207,114,.13); }
.stay-badge.is-booked { color: var(--lime); background: rgba(216,255,103,.12); }
.itinerary-stay:hover .stay-badge { filter: brightness(1.2); }

.itinerary-checklist { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; margin-top: 4px; padding: 0 10px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; text-align: left; }
.itinerary-checklist:hover { color: var(--text); border-color: rgba(216,255,103,.4); }
.itinerary-checklist b { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; color: #131708; background: var(--coral); font-size: 10px; }

.checklist-progress { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.checklist-progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--lime), #9fe870); transition: width .3s; }
.checklist-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 4px; border: 0; border-bottom: 1px solid rgba(255,255,255,.05); background: transparent; text-align: left; }
.checklist-row.is-live { cursor: pointer; border-radius: 9px; }
.checklist-row.is-live:hover { background: rgba(255,255,255,.05); }
.checklist-row.is-live i { flex: 0 0 auto; }
.checklist-row.is-live span { flex: 1; color: var(--text); font-size: 11.5px; }
.checklist-row.is-live em { color: var(--muted-2); font-size: 10px; font-style: normal; }
.checklist-box { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: 0 0 auto; border: 1.5px solid var(--line-strong); border-radius: 7px; color: var(--lime-ink); background: transparent; cursor: pointer; font-size: 13px; font-weight: 800; }
.checklist-row.done .checklist-box { border-color: var(--lime); background: var(--lime); }
.checklist-row.na .checklist-box { color: var(--muted); }
.checklist-copy { flex: 1; min-width: 0; }
.checklist-copy span { display: block; color: var(--text); font-size: 11.5px; line-height: 1.35; }
.checklist-row.done .checklist-copy span { color: var(--muted); text-decoration: line-through; }
.checklist-row.na .checklist-copy span { color: var(--muted-2); }
.checklist-copy small { display: block; margin-top: 1px; color: var(--muted-2); font-size: 9.5px; line-height: 1.4; }
.checklist-na { flex: 0 0 auto; min-height: 22px; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted-2); background: transparent; cursor: pointer; font-size: 9px; }
.checklist-row.na .checklist-na { border-color: var(--line-strong); color: var(--muted); }
.checklist-add { display: flex; gap: 6px; }
.checklist-add input { flex: 1; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface-2); font-size: 11.5px; }
.checklist-add button { width: 32px; border: 1px solid rgba(216,255,103,.4); border-radius: 9px; color: var(--lime); background: rgba(216,255,103,.08); cursor: pointer; font-size: 15px; }
.status-chip.is-booked { color: var(--lime-ink); background: var(--lime); }

/* ---- Product pass: home button, day-assign, loose stops ---- */
.live-card-home { border-color: rgba(216,255,103,.45) !important; color: var(--lime) !important; font-weight: 750 !important; }
.assign-banner { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px dashed rgba(216,255,103,.5); border-radius: 10px; color: var(--lime); font-size: 11px; font-weight: 700; }
.assign-banner.is-warn { border-color: rgba(255,207,114,.55); color: #ffcf72; }
.day-pin-fixrow { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: -1px 0 6px; padding: 5px 9px; border-left: 2px solid rgba(255,207,114,.55); color: #e9c27b; font-size: 10px; line-height: 1.35; }
.day-pin-fixrow button { border: 1px solid rgba(255,207,114,.5); border-radius: 7px; padding: 3px 8px; color: #ffcf72; background: rgba(255,207,114,.08); cursor: pointer; font-size: 10px; font-weight: 700; }
.itinerary-unassigned-fold { margin: 4px 0 2px; }
.itinerary-unassigned-fold summary { display: flex; align-items: center; gap: 6px; min-height: 26px; margin-left: 9px; cursor: pointer; list-style: none; color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.itinerary-unassigned-fold summary::-webkit-details-marker { display: none; }
.itinerary-unassigned-fold summary::before { content: "▸"; transition: transform .18s; }
.itinerary-unassigned-fold[open] summary::before { transform: rotate(90deg); }
.itinerary-unassigned-fold .itinerary-day-stops { border-left-color: rgba(255,255,255,.14); }
.assign-banner button { margin-left: auto; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; text-decoration: underline; }
.itinerary-days .itinerary-stop.is-loose b { color: var(--muted); background: rgba(255,255,255,.12); }

/* checklist rail button */
.map-checklist-button { position: relative; margin-bottom: 6px; }
.map-checklist-button b { position: absolute; top: -6px; right: -6px; display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; color: #131708; background: var(--coral); font-size: 9px; font-weight: 800; }
.map-checklist-button b.is-hidden { display: none; }
.itinerary-bookend { margin: 5px 0 3px; }
.itinerary-bookend button { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 30px; padding: 0 10px; border: 1px solid rgba(114,216,255,.25); border-radius: 10px; color: #9fc6d8; background: rgba(114,216,255,.06); cursor: pointer; font-size: 10.5px; font-weight: 700; text-align: left; }
.itinerary-bookend button:hover { color: var(--sky); border-color: rgba(114,216,255,.5); }
.day-pin-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.day-pin-open { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface-2); cursor: pointer; text-align: left; }
.day-pin-open span { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.day-pin-open:hover { border-color: rgba(216,255,103,.4); }
.day-pin-remove { width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; }
.day-pin-remove:hover { color: var(--danger); border-color: rgba(255,108,108,.5); }
.ai-ideas summary { display: flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; list-style: none; color: #cfd6da; font-size: 12px; font-weight: 800; }
.ai-ideas summary::-webkit-details-marker { display: none; }
.ai-ideas summary::before { content: "▸"; color: var(--muted-2); transition: transform .18s; }
.ai-ideas[open] summary::before { transform: rotate(90deg); }
.ai-ideas summary small { overflow: hidden; color: var(--muted-2); font-size: 9.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ai-ideas > .day-choice { margin-top: 7px; }
.drawer-hint { margin: 8px 0 0; color: var(--muted-2); font-size: 10.5px; line-height: 1.45; }
.day-pool { margin-top: 8px; }
.day-pool summary { display: flex; align-items: center; gap: 7px; min-height: 34px; cursor: pointer; list-style: none; color: var(--lime); font-size: 11.5px; font-weight: 800; }
.day-pool summary::-webkit-details-marker { display: none; }
.day-pool summary::before { content: "▸"; color: var(--muted-2); transition: transform .18s; }
.day-pool[open] summary::before { transform: rotate(90deg); }
.day-pool-add { flex: 0 0 auto; min-height: 30px; padding: 0 10px; border: 1px solid rgba(216,255,103,.45); border-radius: 9px; color: var(--lime); background: rgba(216,255,103,.08); cursor: pointer; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.day-pool-add:hover { background: rgba(216,255,103,.15); }
.day-pool-when { flex: 0 0 auto; margin-left: auto; color: var(--muted-2); font-size: 9.5px; font-style: normal; }
.day-pin-move { display: flex; flex: 0 0 auto; gap: 2px; }
.day-pin-move button { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface-2); cursor: pointer; font-size: 10px; line-height: 1; }
.day-pin-move button:disabled { opacity: .3; cursor: default; }
.day-pin-move button:not(:disabled):hover { color: var(--lime); border-color: rgba(216,255,103,.4); }
.price-row { display: flex; align-items: center; gap: 8px; }
.price-row b { flex: 0 0 auto; font-size: 14px; }
.price-row input { flex: 1; min-width: 0; min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface-2); font-size: 12.5px; }
.price-row input:focus { border-color: rgba(216,255,103,.45); outline: none; }
.price-row small { flex: 0 0 auto; max-width: 104px; color: var(--muted-2); font-size: 9.5px; line-height: 1.25; }
.day-pin-open em { flex: 0 0 auto; margin-left: auto; color: var(--lime); font-size: 10px; font-style: normal; opacity: .85; }
.note-input { width: 100%; margin-top: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface-2); font: inherit; font-size: 12px; line-height: 1.4; resize: vertical; }
.note-input:focus { border-color: rgba(216,255,103,.45); outline: none; }
.discovery-note { margin: 6px 0 0; padding: 7px 10px; border-left: 2px solid rgba(216,255,103,.5); border-radius: 0 9px 9px 0; color: #cfd6c9; background: rgba(216,255,103,.05); font-size: 11.5px; line-height: 1.45; white-space: pre-wrap; }
/* Read-only share mode: hide mutation affordances; the server enforces 403 anyway. */
body.is-viewer .map-create-tools,
body.is-viewer #mapShareButton,
body.is-viewer .drawer-result-actions button[data-discovery-status],
body.is-viewer .discovery-schedule,
body.is-viewer .price-row,
body.is-viewer .note-input,
body.is-viewer .day-pin-remove,
body.is-viewer .day-pin-move,
body.is-viewer [data-day-assign],
body.is-viewer .day-pool,
body.is-viewer .day-pin-fixrow,
body.is-viewer [data-unschedule] { display: none !important; }
body.is-viewer .checklist-row input[type="checkbox"] { pointer-events: none; opacity: .5; }
body.is-viewer [data-live-save],
body.is-viewer [data-quick-point],
body.is-viewer [data-live-deep],
body.is-viewer [data-add-wish],
body.is-viewer [data-generate],
body.is-viewer .codex-mini,
body.is-viewer #settingsAddRoute,
body.is-viewer #shareViewerButton,
body.is-viewer .security-panel { display: none !important; }
img.img-failed { visibility: hidden; }
.flight-booked { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--surface-2); cursor: pointer; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.flight-booked.is-on { color: var(--lime); border-color: rgba(216,255,103,.5); background: rgba(216,255,103,.1); }
.ticket-fact { margin-left: 7px; color: var(--sky); font-size: 10px; font-style: normal; font-weight: 700; white-space: nowrap; }
.ticket-fact.is-booked { color: var(--lime); }
body.is-viewer [data-flight-price],
body.is-viewer [data-flight-booked] { display: none !important; }
.share-viewer-row { justify-content: center; }
.trip-tour { position: fixed; inset: 0; z-index: 80; background: rgba(5,8,10,.55); }
.trip-tour-ring { position: fixed; border: 2px solid var(--lime); border-radius: 14px; box-shadow: 0 0 0 6px rgba(216,255,103,.18), 0 0 40px rgba(216,255,103,.25); pointer-events: none; animation: refinePulse 1.4s ease-in-out infinite; }
.trip-tour-card { position: fixed; left: 50%; bottom: 96px; width: min(400px, calc(100vw - 32px)); padding: 15px 17px; border: 1px solid rgba(216,255,103,.35); border-radius: 16px; background: rgba(13,17,21,.98); box-shadow: 0 24px 80px rgba(0,0,0,.6); transform: translateX(-50%); }
.trip-tour-card small { display: block; color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.trip-tour-card strong { display: block; margin: 4px 0 5px; font-size: 15px; letter-spacing: -.02em; }
.trip-tour-card p { margin: 0 0 11px; color: #cfd6da; font-size: 12px; line-height: 1.5; }
.trip-tour-actions { display: flex; gap: 8px; justify-content: flex-end; }
.trip-tour-actions button { min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--surface-2); cursor: pointer; font-size: 11.5px; font-weight: 700; }
.trip-tour-actions button.is-primary { border-color: rgba(216,255,103,.5); color: #131708; background: var(--lime); }
.week-refine-chip { position: fixed; z-index: 60; left: 50%; bottom: 84px; display: flex; align-items: center; gap: 9px; padding: 9px 14px; border: 1px solid rgba(216,255,103,.4); border-radius: 999px; color: var(--lime); background: rgba(13,17,21,.95); box-shadow: 0 12px 40px rgba(0,0,0,.4); font-size: 11.5px; font-weight: 700; transform: translateX(-50%); pointer-events: none; }
.week-refine-chip i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--lime); animation: refinePulse 1.1s ease-in-out infinite; }
@keyframes refinePulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
.auto-refine-toggle { display: flex; align-items: center; gap: 8px; margin-top: 9px; cursor: pointer; color: var(--text); font-size: 12px; font-weight: 700; }
.auto-refine-toggle input { width: 17px; height: 17px; accent-color: #d8ff67; cursor: pointer; }
body.is-viewer .week-refine-chip { display: none; }
.share-viewer-copy { width: 100%; min-height: 40px; border: 1px solid rgba(216,255,103,.4); border-radius: 10px; color: var(--lime); background: rgba(216,255,103,.08); cursor: pointer; font-size: 12.5px; font-weight: 700; }
.share-viewer-copy:hover { background: rgba(216,255,103,.14); }
.checklist-flight { color: var(--sky) !important; }


/* ---- Типографика 2026-07-23: Unbounded (дисплей) + Golos Text (UI) + JetBrains Mono (тех-подписи). Всё OFL, селф-хост /fonts. ---- */
:root { --font-display: "Unbounded", "Golos Text", sans-serif; --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace; }
.hero-content h1, .login-card h1, .view-head h1 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; }
.login-card h1 { font-size: clamp(24px, 4.2vw, 36px); line-height: 1.12; }
.hero-content h1 { font-size: clamp(24px, 3.2vw, 42px); line-height: 1.1; }
.brand strong, .v2-brand, .embed-brand strong { font-family: var(--font-display); font-weight: 500; }
.v2-view-head h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(19px, 2.6vw, 28px); letter-spacing: -.01em; }
.eyebrow, .drawer-kicker, .field-label, .map-guide-steps span, .itinerary-head p, .map-object-rail > p,
.map-command-scope, .generation-time, .candidate-art span, .housing-visual i, .map-trip-title small,
.itinerary-day-btn > span, .v2-day-date, .route-order { font-family: var(--font-mono); }
.token-row input { font-family: var(--font-mono); }
.map-budget-hud strong { font-family: var(--font-display); font-weight: 500; letter-spacing: 0; }
