@charset "utf-8";

:root {
  color-scheme: light;
  --paper: #f4eee0;
  --card: #fffaf0;
  --ink: #172751;
  --secondary: #4b5675;
  --line: #c6cadd;
  --accent: #1b46b9;
  --accent-dark: #12399d;
  --tint: #e5ecfb;
  --orange: #e8562d;
  --sand: #ffdfbc;
  --sans: "Instrument Sans", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
h1, h2, h3, p { margin: 0; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button, a { -webkit-tap-highlight-color: transparent; }
button, .nav-item { transition: background-color .17s ease, color .17s ease, border-color .17s ease, transform .17s ease; }
button:not(:disabled):active { transform: scale(.97); }
a { color: var(--accent-dark); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #315dcd; outline-offset: 3px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; padding: 8px 16px; background: white; border-radius: 8px; }
.frame { width: min(1256px, calc(100% - 76px)); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--accent-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand strong { font-size: 17px; letter-spacing: .035em; display: block; }
.brand small { display: block; font-size: 11px; color: var(--secondary); }
.mark { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px; border-radius: 50%; background: var(--accent-dark); color: var(--card); font: 900 20px/1 var(--sans); }
.mark.small { width: 36px; height: 36px; flex-basis: 36px; font-size: 18px; }
nav { display: flex; align-items: center; gap: 5px; }
.nav-item { display: inline-flex; align-items: center; min-height: 44px; gap: 5px; padding: 0 15px; border-bottom: 2px solid transparent; color: var(--secondary); text-decoration: none; font-size: 13px; font-weight: 600; }
.nav-item:hover, .nav-item.current { color: var(--accent-dark); border-bottom-color: var(--accent-dark); }
.connection { flex-shrink: 0; display: flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--accent-dark); color: var(--accent-dark); font-size: 12px; }
.connection i { width: 7px; height: 7px; background: #a78242; border-radius: 50%; }
.connection.online i { background: #378b61; box-shadow: 0 0 0 3px #e7efe3; }
.connection.offline i { background: #b2644c; }
.stage { position: relative; isolation: isolate; overflow: hidden; margin-top: 20px; min-height: 340px; background: var(--accent-dark); color: var(--card); display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 620px) 1fr; align-items: center; border: 1px solid var(--accent-dark); }
.stage-art { position: absolute; inset: 0 0 0 auto; width: 58%; z-index: -1; }
.stage-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 22%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 46%); mask-image: linear-gradient(90deg, transparent 0, #000 46%); }
.stage-host { display: grid; justify-items: center; align-self: end; padding: 24px 6px 0 clamp(14px, 2.2vw, 30px); position: relative; }
.stage-host::before { content: ""; position: absolute; left: 50%; bottom: -70px; width: 270px; height: 270px; border-radius: 50%; background: radial-gradient(circle, #2a5ad0 0, #1b46b9 55%, transparent 71%); transform: translateX(-46%); z-index: -1; }
.stage-avatar { width: min(230px, 100%); }
.stage-bubble { order: -1; position: relative; display: grid; gap: 1px; margin-bottom: 8px; padding: 8px 13px; max-width: 250px; background: var(--card); color: var(--ink); border-radius: 14px; font-size: 12px; line-height: 1.45; box-shadow: 0 5px 0 #0b2a7a; }
.stage-bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: var(--card); transform: translateX(-50%); }
.stage-bubble b { color: var(--orange); font-size: 12px; letter-spacing: .06em; }
.stage-copy { padding: 30px clamp(16px, 2.6vw, 34px) 30px 6px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--sand); border-bottom: 2px solid var(--orange); padding-bottom: 3px; }
.stage h1 { font: 900 clamp(34px, 4.6vw, 62px)/1.04 var(--sans); margin: 12px 0 10px; letter-spacing: -.05em; text-shadow: 3px 3px 0 #0b2a7a; }
.stage-lede { color: #e4ebff; font-size: 14px; line-height: 1.7; max-width: 430px; }
.judge-tour { margin-top: 12px; display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--accent, #1f6feb); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.judge-tour small { font-weight: 400; opacity: .85; }
.judge-tour:disabled { opacity: .75; cursor: progress; }
.judge-tour:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
@media (max-width: 560px) { .judge-tour { flex-wrap: wrap; } .judge-tour small { flex-basis: 100%; } }
.skills { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.starter.skill { display: grid; grid-template-columns: none; border-top: 0; align-content: start; gap: 2px; min-height: 92px; padding: 10px 11px 11px; text-align: left; color: var(--ink); background: var(--card); border: 0; border-radius: 4px; box-shadow: 0 4px 0 #0b2a7a; }
.starter.skill:hover { background: var(--sand); transform: translateY(-2px); box-shadow: 0 6px 0 #0b2a7a; }
.skill .skill-no { font: 900 13px/1 var(--sans); color: var(--orange); letter-spacing: .04em; }
.skill strong { font-size: 14px; line-height: 1.3; margin-top: 6px; }
.skill small { font-size: 11px; color: var(--secondary); }
.illustration-credit { position: absolute; bottom: 0; right: 0; color: var(--ink); font-size: 10px; padding: 3px 8px; background: var(--sand); }

/* Porpoise receptionist */
.porpoise { position: relative; width: 100%; aspect-ratio: 360 / 356; }
.porpoise-body { position: absolute; inset: 0; transform-origin: 50% 94%; animation: porpoise-float 3.8s ease-in-out infinite; }
.porpoise-body img { display: block; width: 100%; height: 100%; }
.porpoise .lid { position: absolute; top: 28.6%; width: 14.6%; height: 16.4%; border-radius: 50% 50% 46% 46%; background: linear-gradient(#93cdf8, #7cbdf0); box-shadow: inset 0 -2px 0 #2e5f9c; transform: scaleY(0); transform-origin: 50% 0; transition: transform 70ms ease-in; }
.porpoise .lid.l { left: 22.9%; } .porpoise .lid.r { left: 62.1%; top: 28.2%; }
.blink .porpoise .lid { transform: scaleY(1); }
.porpoise .blush { position: absolute; top: 52%; width: 13%; height: 8%; border-radius: 50%; background: #ff8f9a; opacity: 0; filter: blur(4px); transition: opacity .3s; }
.porpoise .blush.l { left: 17%; } .porpoise .blush.r { right: 17%; }
.porpoise-shadow { position: absolute; left: 22%; right: 22%; bottom: -3%; height: 7%; border-radius: 50%; background: #061b55; opacity: .45; filter: blur(3px); animation: porpoise-shadow 3.8s ease-in-out infinite; z-index: -1; }
.porpoise-dots, .porpoise-waves { position: absolute; opacity: 0; transition: opacity .2s; pointer-events: none; }
.porpoise-dots { top: 2%; right: -4%; display: flex; gap: 4px; padding: 6px 9px; border-radius: 12px; background: var(--card); box-shadow: 0 2px 0 #0b2a7a; }
.porpoise-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: dot 1s ease-in-out infinite; }
.porpoise-dots i:nth-child(2) { animation-delay: .15s; } .porpoise-dots i:nth-child(3) { animation-delay: .3s; }
.porpoise-waves { inset: 18% -10% auto auto; width: 30%; height: 40%; }
.porpoise-waves i { position: absolute; inset: 0; border: 3px solid var(--sand); border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(45deg) scale(.5); animation: wave 1.1s ease-out infinite; }
.porpoise-waves i + i { animation-delay: .45s; }
[data-state="thinking"] .porpoise-dots { opacity: 1; }
[data-state="thinking"] .porpoise-body { animation: porpoise-think 1.6s ease-in-out infinite; }
[data-state="speaking"] .porpoise-waves { opacity: 1; }
[data-state="speaking"] .porpoise-body.beat { animation: porpoise-talk .22s ease-out, porpoise-float 3.8s ease-in-out infinite; }
[data-state="happy"] .porpoise .blush { opacity: .55; }
[data-state="happy"] .porpoise-body { animation: porpoise-hop .7s cubic-bezier(.3,1.6,.5,1) 2, porpoise-float 3.8s ease-in-out 1.4s infinite; }
[data-state="error"] .porpoise-body { animation: porpoise-shake .5s ease-in-out 2; }
@keyframes porpoise-float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-4%) } }
@keyframes porpoise-shadow { 0%,100% { transform: scaleX(1); opacity: .45 } 50% { transform: scaleX(.86); opacity: .3 } }
@keyframes porpoise-think { 0%,100% { transform: rotate(-4deg) } 50% { transform: rotate(4deg) translateY(-2%) } }
@keyframes porpoise-talk { 0% { transform: scale(1.035, .955) } 100% { transform: scale(1) } }
@keyframes porpoise-hop { 0%,100% { transform: translateY(0) } 40% { transform: translateY(-9%) scale(.98, 1.03) } }
@keyframes porpoise-shake { 0%,100% { transform: rotate(0) } 25% { transform: rotate(-6deg) } 75% { transform: rotate(6deg) } }
@keyframes dot { 0%,100% { transform: translateY(0); opacity: .4 } 50% { transform: translateY(-4px); opacity: 1 } }
@keyframes wave { from { transform: rotate(45deg) scale(.4); opacity: 1 } to { transform: rotate(45deg) scale(1.15); opacity: 0 } }
.mini-avatar { display: block; flex: 0 0 52px; width: 52px; margin: -6px 0 -2px; }
.mini-avatar .porpoise-shadow { opacity: .18; }
.mini-avatar .porpoise-dots { top: -8%; right: -30%; padding: 3px 5px; gap: 2px; } .mini-avatar .porpoise-dots i { width: 4px; height: 4px; }
.mini-avatar .porpoise-waves i { border-width: 2px; border-top-color: var(--orange); border-right-color: var(--orange); }
.head-actions { display: flex; gap: 6px; align-items: center; }
.voice-toggle { font-size: 12px; }
.voice-toggle[aria-pressed="false"] { color: var(--secondary); border-color: var(--line); }

.workbench { display: grid; grid-template-columns: minmax(0,1.42fr) minmax(0,1fr); gap: 16px; margin-top: 16px; }
.panel { min-width: 0; background: var(--card); border: 1px solid var(--accent-dark); scroll-margin-top: 14px; }
.chat-panel, .trip-panel { display: flex; flex-direction: column; height: clamp(520px, calc(100dvh - 104px), 780px); }
.panel-head { padding: 15px 19px; border-bottom: 1px solid var(--line); display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 10px; min-height: 72px; }
.head-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.head-title h2 { font-size: 16px; line-height: 1.4; letter-spacing: .02em; }
.head-title p { color: var(--secondary); font-size: 11px; margin-top: 1px; }
.board-mark { display: grid; place-items: center; background: var(--sand); color: var(--accent-dark); width: 36px; height: 36px; flex: 0 0 36px; font: 900 18px/1 var(--sans); }
.text-button { border: 1px solid var(--accent-dark); background: transparent; border-radius: 3px; min-height: 40px; padding: 0 10px; color: var(--ink); white-space: nowrap; font-size: 13px; }
.text-button:hover:not(:disabled) { background: var(--tint); }
.export-button { background: var(--sand); }
.board-actions { display: flex; justify-content: end; align-items: center; flex-wrap: wrap; gap: 5px; }
.map-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.chat-window { flex: 1 1 0; min-height: 0; overflow: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; padding: 18px 20px; }
.welcome .greeting { font: 900 26px/1.35 var(--sans); margin-bottom: 4px; letter-spacing: -.03em; color: var(--accent-dark); }
.starter-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 11px; }
.starter { min-width: 0; min-height: 59px; padding: 8px 9px; text-align: left; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 8px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); }
.starter:hover { background: var(--tint); border-color: var(--accent-dark); }
.starter strong { display: block; font-size: 13px; line-height: 1.3; }
.starter small { display: block; font-size: 11px; color: var(--secondary); margin-top: 3px; }
.starter-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; font: 800 15px/1 var(--sans); color: var(--accent-dark); border: 1px solid var(--accent-dark); }
.starter:nth-child(2) .starter-icon { background: var(--accent-dark); color: var(--card); }
.arrow { font-size: 14px; color: var(--secondary); }
.compose-area { padding: 10px 16px 11px; border-top: 1px solid var(--line); background: var(--paper); }
#composer { display: flex; align-items: end; gap: 9px; border: 1px solid var(--accent-dark); background: var(--card); padding: 5px; }
#composer:focus-within { box-shadow: 0 0 0 2px #7898ec; }
textarea { width: 100%; min-height: 43px; max-height: 132px; height: 43px; resize: none; padding: 8px; color: var(--ink); background: transparent; border: 0; outline: none; }
textarea:focus-visible { outline: none; }
textarea::placeholder { color: var(--secondary); }
.send { border: 1px solid var(--accent-dark); color: white; background: var(--accent-dark); padding: 0 13px; border-radius: 2px; min-height: 43px; font-size: 13px; white-space: nowrap; font-weight: 600; }
.send:not(:disabled):hover { background: var(--accent); }
.send span { margin-left: 5px; }
.compose-meta { display: flex; min-height: 23px; align-items: end; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.followups { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 7px; }
.chip, .source { min-height: 36px; background: var(--tint); color: var(--accent-dark); border: 1px solid var(--line); border-radius: 3px; padding: 5px 9px; font-size: 12px; text-align: left; }
.chip:hover, .source:hover { border-color: var(--accent-dark); }
#messages { display: grid; gap: 15px; }
.message { min-inline-size: 0; display: flex; gap: 9px; }
.message.user { justify-content: end; }
.message:first-child { margin-top: 3px; }
.reply-in { animation: reply-in .34s cubic-bezier(.18,.7,.28,1) both; }
.working::before { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--orange); content: ""; animation: signal 1.3s ease-in-out infinite; }
.bubble { min-width: 0; max-width: min(94%,640px); border-radius: 3px; color: var(--ink); padding: 11px 13px; background: #f4f0e5; border: 1px solid var(--line); font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.user .bubble { white-space: pre-wrap; border-color: var(--line); background: var(--tint); }
.message .mark { width: 27px; height: 27px; flex-basis: 27px; font-size: 14px; margin-top: 2px; }
.message.error .bubble { background: #fbede6; border-color: #e7c9bb; color: #703927; }
.message h3 { font-size: 14px; margin-bottom: 3px; }
.message-body p { text-wrap: pretty; }
.message-body p+p { margin-top: 6px; }
.message-body .route-snippet { font-variant-numeric: tabular-nums; }
.sources { margin-top: 9px; }
.sources summary, .day-card summary { cursor: pointer; font-weight: 600; }
.sources summary { color: var(--accent-dark); font-size: 12px; min-height: 35px; line-height: 35px; }
.source-list { display: flex; flex-wrap: wrap; gap: 5px; }
.source { display: inline-flex; align-items: center; line-height: 1.4; text-decoration: none; }
.delivery-list { display: grid; gap: 6px; margin-bottom: 8px; }
.delivery { width: 100%; min-height: 40px; color: var(--accent-dark); border: 1px solid var(--accent-dark); background: var(--card); text-align: left; padding: 5px 9px; font-size: 12px; display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.delivery:hover { background: var(--tint); }
.delivery .arrow { flex-shrink: 0; }
.failed { font-size: 13px; color: #733c2a; }
.answer-detail summary { margin-top: 3px; color: var(--accent-dark); cursor: pointer; font-size: 12px; min-height: 32px; display: list-item; }

.trip-head { border-bottom: 0; }
.tabs { display: flex; margin: 0 15px; border: 1px solid var(--accent-dark); flex-shrink: 0; }
.tabs button { border: 0; min-height: 40px; flex: 1; color: var(--accent-dark); background: var(--card); font-size: 13px; }
.tabs button[aria-selected="true"] { background: var(--accent-dark); color: var(--card); font-weight: 700; }
.tabs button:hover:not([aria-selected="true"]) { background: var(--tint); }
.board-content { overflow: auto; flex: 1; min-height: 0; padding: 13px 15px; overscroll-behavior-y: contain; scrollbar-gutter: stable; }
.empty-board { min-height: 100%; border: 1px dashed var(--line); display: grid; align-content: center; justify-items: center; text-align: center; gap: 7px; padding: 18px; background: #faf5e8; }
.empty-board h3 { margin-top: 1px; font-size: 15px; }
.empty-board p { color: var(--secondary); font-size: 12px; max-width: 230px; }
.empty-board button { margin-top: 7px; min-height: 39px; }
.route-symbol { display: flex; width: 98px; height: 32px; align-items: center; justify-content: space-between; position: relative; padding: 0 9px; }
.route-symbol::before { position: absolute; content: ""; inset: 15px 14px auto; height: 3px; background: var(--accent-dark); }
.route-symbol span { position: relative; border: 2px solid var(--accent-dark); border-radius: 50%; width: 12px; height: 12px; background: var(--card); }
.route-symbol span:nth-child(2) { background: var(--orange); }
.plan-grid { display: grid; gap: 10px; }
.plan { border: 1px solid var(--line); padding: 9px; background: var(--card); }
.plan.selected { border-color: var(--accent-dark); }
.plan-header { cursor: pointer; font-size: 14px; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; padding: 4px 6px; border: 0; color: var(--ink); background: transparent; font-weight: 800; }
.plan-header:hover { background: var(--tint); }
.plan-title { overflow-wrap: anywhere; }
.plan-meta { color: var(--secondary); font-size: 11px; flex-shrink: 0; font-weight: 500; white-space: nowrap; }
.plan-content { padding: 6px 3px 1px; }
.plan-note { color: var(--card); background: var(--accent-dark); border-left: 5px solid var(--orange); padding: 8px 10px; font-size: 12px; margin-bottom: 7px; }
.plan-note p + p { margin-top: 2px; font-weight: 650; font-variant-numeric: tabular-nums; font-size: 15px; }
.plan-note .stop-change { font-size: 24px; line-height: 1.3; letter-spacing: -.035em; color: var(--sand); font-weight: 850; }
.plan-flash { animation: plan-flash .58s ease-out both; }
.day-card + .day-card { margin-top: 6px; }
.day-card { border: 1px solid var(--line); background: var(--card); padding: 0 8px; }
.day-card summary { min-height: 39px; line-height: 39px; font-size: 12px; padding: 0 3px; color: var(--accent-dark); }
.day-card small { margin-left: 7px; font-weight: 400; color: var(--secondary); }
.stops { margin: 0 0 7px; list-style: none; padding: 0 2px; font-size: 13px; }
.stops li { display: grid; grid-template-columns: 94px minmax(0,1fr); gap: 9px; align-items: baseline; padding: 6px 2px; border-top: 1px solid #eeeae0; }
.stops time { font-size: 11px; color: var(--secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stops .arrival { color: var(--accent-dark); font-weight: 700; }
.stops .leg { grid-column: 2; color: var(--secondary); margin-top: -7px; font-size: 11px; overflow-wrap: anywhere; }
.guide { display: block; margin: 6px 1px 8px; overflow-wrap: anywhere; font-size: 11px; }
.comparison-body { display: grid; gap: 8px; }
.comparison-card { border: 1px solid var(--line); border-left: 4px solid var(--accent-dark); padding: 9px 11px; background: var(--card); }
.comparison-card h3 { font-size: 13px; margin-bottom: 3px; }
.comparison-card p { color: var(--secondary); font-size: 12px; overflow-wrap: anywhere; }
.comparison-text { font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.comparison-text p { padding: 5px 1px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; padding: 15px 0; color: var(--secondary); font-size: 11px; }
dialog { border: 1px solid var(--line); border-radius: 14px; color: var(--ink); padding: 22px; background: var(--card); }
dialog h2 { font-size: 18px; margin-bottom: 4px; }
dialog p { color: var(--secondary); font-size: 14px; }
dialog::backdrop { background: #15262188; }
.dialog-actions { margin-top: 17px; display: flex; justify-content: end; gap: 8px; }

@keyframes reply-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes poster-in { from { opacity: .45; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }
@keyframes signal { 50% { opacity: .52; transform: scale(.8); } }
@keyframes plan-flash { from { background-color: #2857ce; transform: translateX(4px); } to { background-color: var(--accent-dark); transform: none; } }


@media (max-width: 950px) {
  .frame { width: calc(100% - 42px); }
  .workbench { gap: 13px; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); }
  .panel-head { padding-inline: 13px; }
  .chat-window { padding-inline: 13px; }
}
@media (max-width: 720px) {
  .frame { width: calc(100% - 28px); }
  .header-inner { min-height: 64px; gap: 5px; }
  .brand strong { font-size: 13px; }
  .brand .mark { width: 33px; height: 33px; flex-basis: 33px; border-radius: 9px; font-size: 18px; }
  .header-inner { flex-wrap: wrap; padding-top: 7px; }
  nav { display: flex; width: 100%; order: 3; justify-content: space-between; gap: 0; }
  .nav-item { padding: 0 6px; font-size: 12px; }

  .connection { font-size: 11px; }
  .illustration-credit { font-size: 9px; }
  .workbench { grid-template-columns: minmax(0,1fr); margin-top: 13px; gap: 13px; }
  .chat-panel { height: auto; }
  .chat-window { max-height: max(335px,56dvh); flex-basis: auto; }
  .panel-head { min-height: 62px; padding-block: 10px; }
  .starter { min-height: 57px; grid-template-columns: 26px minmax(0,1fr); gap: 5px; padding: 6px; }
  .starter .arrow { display: none; }
  .starter-icon { width: 26px; height: 26px; font-size: 16px; }
  .starter small { font-size: 10px; overflow-wrap: anywhere; }
  .trip-panel { height: auto; min-height: 295px; }
  .board-content { max-height: min(525px,65dvh); min-height: 190px; }
  .text-button,.send,.tabs button { min-height: 44px; }
  .compose-meta > span:last-child { display: none; }
  .compose-meta:has(#progress:empty) { min-height: 0; }
  .message .bubble { max-width: 91%; }
  .board-actions .text-button { font-size: 12px; padding-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media (min-width: 821px) { html { overflow-y: scroll; } }

.receptionist-face {display:inline-block;flex:0 0 auto;width:36px;height:36px;border-radius:50%;background:#dcecfb url("/web/porpoise-face.webp") 50% 30% / 92% auto no-repeat;box-shadow:inset 0 0 0 1px #b8d3ee}
.welcome .greeting {display:flex;align-items:center;gap:10px}
.greeting .receptionist-face {width:52px;height:52px}

#atlas-map.wuhan-board,#route-map.wuhan-board {
  background-color:#f2e9d7;background-image:radial-gradient(#b9aa8d61 .85px,transparent 1px);
  background-size:9px 9px;isolation:isolate;
}
.wuhan-board .leaflet-control-scale-line {background:#fffaebdb;border-color:#596e64;color:#394e47}
.wuhan-board .board-model {background-image:url("/web/atlas/wuhan-landmarks.webp");background-size:200% 200%;background-repeat:no-repeat;pointer-events:none;filter:drop-shadow(1px 3px 1px #395c422b)}
.wuhan-board .board-model.model-svg{background:none}.board-model.model-svg img{width:100%;height:100%;display:block;object-fit:contain}
.model-tower{background-position:0 0}.model-bridge{background-position:100% 0}.model-campus{background-position:0 100%}.model-mountain{background-position:100% 100%}
.board-status{position:absolute;z-index:650;left:50%;bottom:26px;transform:translateX(-50%);display:flex;align-items:center;gap:7px;white-space:nowrap;background:#fffaf0;border:1px solid #9eae98;border-radius:15px;color:#264e4b;padding:4px 12px;font-size:12px}
.board-status button{border:0;background:none;color:#16418b;text-decoration:underline;min-height:28px}

.wuhan-board[data-board-scale="0"] .geo-label{visibility:hidden}

/* Reply anatomy: which of the four functions answered, then a compact itinerary summary */
.welcome-copy { color: var(--secondary); font-size: 13px; }
.welcome .starter-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.welcome .starter.chip { display: inline-flex; grid-template-columns: none; border: 1px solid var(--line); border-radius: 16px; min-height: 34px; padding: 5px 12px; }
.topic-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: -2px 0 6px; }
.topic-tags span { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--accent-dark); background: var(--sand); border-radius: 10px; padding: 1px 8px; }
.topic-tags span:first-child { color: white; background: var(--accent-dark); }
.plan-summary { display: grid; gap: 6px; margin-bottom: 4px; }
.summary-day { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: baseline; }
.summary-day b { color: white; background: var(--orange); font-size: 12px; padding: 0 7px; border-radius: 3px; white-space: nowrap; }
.plan-summary .delivery { margin-top: 4px; }
@media (max-width: 980px) {
  .stage { grid-template-columns: 210px minmax(0, 1fr); }
  .stage-art { width: 70%; opacity: .45; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .stage { grid-template-columns: 1fr; min-height: 0; }
  .stage-host { grid-template-columns: 112px 1fr; align-items: end; justify-items: start; padding: 16px 16px 0; gap: 10px; }
  .stage-host::before { left: 70px; bottom: -40px; width: 170px; height: 170px; }
  .stage-avatar { width: 112px; grid-row: 1; }
  .stage-bubble { order: 0; grid-column: 2; grid-row: 1; margin: 0 0 30px; }
  .stage-bubble::after { left: -8px; top: 50%; bottom: auto; border: 8px solid transparent; border-left: 0; border-right-color: var(--card); transform: translateY(-50%); }
  .stage-copy { padding: 16px 16px 26px; }
  .stage-art { width: 100%; opacity: .22; }
  .starter.skill { min-height: 78px; }
}
@media (prefers-reduced-motion: reduce) {
  .porpoise-body, .porpoise-shadow, .porpoise-dots i, .porpoise-waves i { animation: none !important; }
}
.voice-toggle { display: inline-flex; align-items: center; gap: 5px; }
.porpoise-mark { background: #dcecfb url("/web/porpoise-face.webp") 50% 30% / 94% auto no-repeat; box-shadow: inset 0 0 0 2px var(--accent-dark); }
.leaflet-container .wuhan-streets img.leaflet-tile { mix-blend-mode: normal; }

/* Citations as numbered footnotes */
.footnote { appearance: none; border: 0; background: none; padding: 0 1px; margin-left: 2px; vertical-align: super; font-size: 10px; line-height: 1; font-weight: 800; color: var(--orange); min-height: 0; }
.footnote:hover { color: var(--accent-dark); text-decoration: underline; }
.source-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; }
.source-item { display: grid; grid-template-columns: auto 1fr; gap: 2px 7px; align-items: baseline; padding: 6px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 3px; }
.source-item b { color: var(--orange); font-size: 12px; }
.source-item .source { min-height: 0; padding: 0; border: 0; background: none; font-weight: 700; }
.source-item q { grid-column: 2; font-size: 11px; color: var(--secondary); line-height: 1.5; }
.source-item.flash { animation: source-flash 1.2s ease-out; }
@keyframes source-flash { 0%, 30% { background: var(--sand); border-color: var(--orange); } }

/* Fact cards for the community venue and the SAIG schedule */
.info-card { margin-top: 10px; border: 1px solid var(--accent-dark); background: var(--card); border-radius: 4px; padding: 11px 12px; }
.info-card > small, .venue-copy small { display: block; color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.venue-card { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; }
.venue-pin { position: relative; height: 74px; border-radius: 50%; background: radial-gradient(circle at 50% 55%, #dce7fb 0 45%, var(--tint) 46%); }
.venue-pin .pin-dot { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -15px 0 0 -9px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--orange); box-shadow: 0 0 0 3px white; }
.venue-pin .pin-ring { position: absolute; left: 50%; top: 50%; width: 46px; height: 16px; margin: 4px 0 0 -23px; border-radius: 50%; border: 2px solid var(--accent); animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.venue-copy strong { display: block; font-size: 22px; line-height: 1.2; color: var(--accent-dark); }
.venue-copy p { font-size: 12px; color: var(--secondary); }
.metro-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.metro { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; }
.metro b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-dark); color: white; font-size: 10px; }
.info-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.info-actions .text-button { min-height: 32px; font-size: 12px; text-decoration: none; display: inline-flex; align-items: center; }
.info-actions small { color: var(--secondary); font-size: 11px; }
.timeline { list-style: none; margin: 8px 0 4px; padding: 0 0 0 4px; }
.timeline li { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 5px 0 5px 16px; font-size: 12px; line-height: 1.5; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent-dark); }
.timeline li::after { content: ""; position: absolute; left: 5px; top: 22px; bottom: -6px; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline time { font-weight: 800; color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.timeline li.now::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px #e8562d33; }
.timeline li.now time { color: var(--orange); }
.source-link { font-size: 11px; }

/* Day route map inside the trip board */
.board-map { position: relative; margin: 10px 15px 0; border: 1px solid var(--accent-dark); flex: 0 0 auto; }
#board-map-canvas { height: clamp(170px, 26vh, 250px); background: #f3eddd; }
.board-map-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 500; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 9px; background: #fffaf0e6; font-size: 11px; border-top: 1px solid var(--line); }
.board-map-bar strong { color: var(--accent-dark); }
.board-map .leaflet-control-attribution, .board-map .leaflet-control-scale, .board-map .leaflet-control-zoom { display: none; }
.board-map .board-model { opacity: .85; }
.board-leg { stroke-dasharray: 600; stroke-dashoffset: 600; animation: leg-draw .9s ease-out var(--delay, 0s) forwards; }
@keyframes leg-draw { to { stroke-dashoffset: 0; } }
.board-step { background: none !important; border: 0 !important; box-shadow: none !important; }
.board-step span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-dark); color: white; border: 2px solid var(--card); font: 800 12px/1 var(--sans); box-shadow: 0 1px 4px #0b2a7a60; animation: step-pop .35s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes step-pop { from { transform: scale(0); } to { transform: scale(1); } }

/* What changed after a revision */
.changed-badge { margin-left: 8px; font-size: 10px; font-weight: 800; color: white; background: var(--orange); border-radius: 8px; padding: 1px 7px; vertical-align: 1px; }
.stops li.changed { background: #fff3e4; }
.stops li.changed time { color: var(--orange); font-weight: 800; }
.stops del.was { display: block; color: var(--secondary); font-weight: 400; text-decoration-color: var(--orange); }
.change-tag { margin-left: 6px; font-style: normal; font-size: 10px; font-weight: 800; color: var(--orange); border: 1px solid var(--orange); border-radius: 8px; padding: 0 6px; }
.stops li.added { background: #edf6ee; }
.stops li.added .change-tag { color: #2f7d4f; border-color: #2f7d4f; }
.stops li.removed { display: block; color: var(--secondary); font-size: 12px; text-decoration: line-through; text-decoration-color: var(--orange); }
.has-changes .stops li.changed { animation: change-in 1.4s ease-out; }
@keyframes change-in { 0%, 25% { background: var(--sand); } }

/* Staged progress while the receptionist works */
.work-steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; font-size: 12px; color: var(--secondary); }
.work-steps li { display: flex; align-items: center; gap: 7px; opacity: .45; transition: opacity .2s; }
.work-steps li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; flex: 0 0 auto; }
.work-steps li.active { opacity: 1; color: var(--accent-dark); font-weight: 700; }
.work-steps li.active::before { border-color: var(--orange); border-top-color: transparent; animation: spin .8s linear infinite; }
.work-steps li.done { opacity: .85; }
.work-steps li.done::before { background: var(--accent-dark); border-color: var(--accent-dark); }
@keyframes spin { to { transform: rotate(360deg); } }
.pending-reveal { opacity: 0; transform: translateY(4px); }
.info-card, .sources, .footnote, .plan-summary .delivery, .answer-detail { transition: opacity .35s ease, transform .35s ease; }
@media (max-width: 720px) { .timeline li { grid-template-columns: 78px 1fr; } .venue-card { grid-template-columns: 56px 1fr; } .venue-pin { height: 56px; } }
.stop-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; vertical-align: -6px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--accent-dark); font-style: normal; }
.work-steps li.failed { opacity: .8; color: #8a4b21; }
.work-steps li.failed::before { border-color: #b2644c; background: #fbede6; }
.live-text { margin-top: 8px; white-space: pre-wrap; font-size: 14px; line-height: 1.75; color: var(--ink); max-width: 640px; }

.trip-takeaway { margin: 0 0 10px; padding: 10px 0 12px; border-bottom: 1px solid var(--accent-dark); }
.takeaway-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.takeaway-head strong { color: var(--ink); font-size: 13px; letter-spacing: .02em; }
.takeaway-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--secondary); }
.takeaway-date input { font: inherit; font-size: 12px; padding: 2px 6px; border: 1px solid var(--accent-dark); border-radius: 3px; background: transparent; color: var(--ink); }
.takeaway-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.takeaway-actions button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 6px; border: 1px solid var(--accent-dark); border-radius: 3px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.takeaway-actions button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.takeaway-actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.takeaway-actions svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.now-plan { border: 1px solid var(--accent-dark); background: transparent; color: var(--accent-dark); border-radius: 3px; padding: 2px 10px; font: inherit; font-size: 12px; cursor: pointer; margin-right: 8px; }
.now-plan:hover { border-color: var(--accent); }
.now-plan { display: inline-flex; align-items: center; gap: 4px; }
.now-plan svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.leg .amap-nav { white-space: nowrap; font-size: 12px; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* 3D flyover */
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.judge-tour.fly-hero { background: var(--orange); }
.board-map-bar { gap: 10px; }
.fly-button { margin-left: auto; border: 0; border-radius: 3px; background: var(--orange); color: #fff; font: inherit; font-size: 12px; font-weight: 600; padding: 3px 10px; cursor: pointer; }
.fly-button:hover { filter: brightness(1.08); }
body.flyover-open { overflow: hidden; }
.flyover { position: fixed; inset: 0; z-index: 3000; background: linear-gradient(#bfe0f0 0%, #e9f3f2 55%, #f4eee0 100%); color: var(--ink); }
.flyover-stage, .flyover-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.flyover-head { position: absolute; top: 16px; left: 20px; display: flex; align-items: baseline; gap: 12px; pointer-events: none; }
.flyover-head strong { font-size: 20px; background: #fffaf0e6; padding: 4px 12px; border-radius: 3px; border: 1px solid var(--accent-dark); }
.flyover-hint { font-size: 12px; color: var(--secondary); }
.flyover-caption { position: absolute; left: 20px; bottom: 84px; min-width: 220px; max-width: min(420px, calc(100vw - 40px)); padding: 12px 16px; background: #fffaf0f2; border: 1px solid var(--accent-dark); border-left: 6px solid var(--orange); border-radius: 3px; display: grid; gap: 2px; animation: fly-in .35s ease-out; }
.flyover-caption small { color: var(--orange); font-weight: 700; font-size: 12px; }
.flyover-caption strong { font-size: 22px; }
.flyover-caption span { font-size: 13px; color: var(--secondary); }
@keyframes fly-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.flyover-steps { position: absolute; top: 60px; left: 20px; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100vw - 40px); }
.flyover-steps li { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #fffaf0cc; border: 1px solid var(--line); color: var(--secondary); }
.flyover-steps li.done { background: #e5ecfb; border-color: var(--accent); color: var(--accent-dark); }
.flyover-steps li.now { background: var(--orange); border-color: var(--orange); color: #fff; }
.flyover-bar { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; background: #fffaf0f2; border: 1px solid var(--accent-dark); border-radius: 3px; }
.flyover-bar button { font: inherit; font-size: 13px; min-height: 36px; padding: 0 14px; border: 1px solid var(--accent-dark); border-radius: 3px; background: transparent; color: var(--ink); cursor: pointer; }
.flyover-bar button:hover:not(:disabled) { background: var(--accent); color: #fff; }
.flyover-bar button:disabled { opacity: .45; cursor: default; }
.flyover-bar .flyover-close { background: var(--ink); color: #fff; }
.flyover-view { position: absolute; inset: 0; margin: 0; overflow: hidden; opacity: 0; transition: opacity .45s; background: #000; }
.flyover-view.show { opacity: 1; }
.flyover-view img { width: 112%; height: 112%; object-fit: cover; transform-origin: 30% 50%; }
.flyover-view.show img { animation: lookout 5.6s ease-in-out forwards; }
@keyframes lookout { from { transform: scale(1.02) translateX(0); } to { transform: scale(1.1) translateX(-9%); } }
.flyover-view figcaption { position: absolute; left: 50%; bottom: 90px; transform: translateX(-50%); padding: 8px 18px; background: #172751d9; color: #fff; font-size: 18px; letter-spacing: .06em; border-radius: 3px; white-space: nowrap; }
@media (max-width: 560px) { .flyover-head strong { font-size: 16px; } .flyover-caption { bottom: 76px; } .flyover-caption strong { font-size: 18px; } .flyover-view figcaption { font-size: 14px; white-space: normal; text-align: center; width: 86%; } }
@media (prefers-reduced-motion: reduce) { .flyover-view.show img { animation: none; } }
.stops li.free-day { color: var(--secondary); padding: 10px 0; }

/* ── Button system ─────────────────────────────────────────────────────────
   primary  solid ink-blue: the main action of a panel
   accent   solid orange: the 3D flyover only (the page's one bold element)
   onblue   solid paper on the blue hero
   secondary paper with a hairline border: supporting actions
   tool     no border, icon + label (label hidden on phones): panel tools
   chip     tinted pill: suggested questions
   Heights: sm 32, default 36, lg 44. One radius (6px) for every button. */
.btn { --h: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--h); padding: 0 14px;
  border: 1px solid transparent; border-radius: 6px; font: inherit; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.sm { --h: 32px; padding: 0 10px; font-size: 12px; }
.btn.sm svg { width: 14px; height: 14px; }
.btn.lg { --h: 44px; padding: 0 18px; font-size: 15px; }
.btn.lg svg { width: 18px; height: 18px; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn.primary { background: var(--accent-dark); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--accent); }
.btn.accent { background: var(--orange); color: #fff; }
.btn.accent:hover:not(:disabled) { background: #d4471f; }
.btn.onblue { background: var(--card); color: var(--accent-dark); }
.btn.onblue:hover:not(:disabled) { background: #fff; }
.btn.onblue:focus-visible, .btn.accent:focus-visible { outline-color: #fff; }
.btn.secondary { background: var(--card); color: var(--ink); border-color: var(--line); font-weight: 500; }
.btn.secondary:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-dark); background: #fff; }
.btn.tool { background: transparent; color: var(--secondary); font-weight: 500; padding: 0 8px; }
.btn.tool:hover:not(:disabled) { background: var(--tint); color: var(--accent-dark); }
.btn.tool[aria-pressed="false"] { color: #8a90a6; }
.chip { min-height: 32px; padding: 0 12px; display: inline-flex; align-items: center; border: 0; border-radius: 999px; background: var(--tint); color: var(--accent-dark); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.chip:hover { background: #d3defa; }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Hero: two actions side by side, the explanation underneath (not inside the buttons). */
.hero-actions { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero-note { flex-basis: 100%; margin: 0; font-size: 12px; color: #dfe7ff; }
/* Panel headers */
.head-actions { gap: 2px; }
.board-actions { gap: 6px; }
.board-map-bar { gap: 8px; padding: 5px 8px; }
.board-map-bar .btn.accent { margin-left: auto; }
.map-expand { font-size: 12px; color: var(--accent-dark); }
.plan-jump { margin-top: 8px; }
.compose-meta { align-items: center; }
.now-plan { margin-right: auto; }
/* Take-away row uses the secondary style */
.takeaway-actions button { border-color: var(--line); border-radius: 6px; background: var(--card); font-weight: 500; }
.takeaway-actions button:hover { background: #fff; border-color: var(--accent); color: var(--accent-dark); }
.takeaway-date input { border-color: var(--line); border-radius: 6px; }
.trip-takeaway { border-bottom-color: var(--line); }
.connection { border: 0; padding: 6px 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 560px) {
  .btn.tool .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .btn.tool { --h: 36px; padding: 0 9px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-actions .btn.lg { padding: 0 10px; font-size: 14px; }
  .board-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .trip-head { flex-wrap: wrap; }
}
.hero-note { max-width: 560px; }
.trip-takeaway { margin: 10px 15px; }
@media (max-width: 560px) { .hero-note { grid-column: 1 / -1; } }
/* Empty trip board: one quiet hint at the top, not a tall dashed box. */
.empty-board { min-height: 0; align-content: start; padding: 22px 18px; margin-top: 4px; }
/* Secondary actions stay out of the main line: export lives in a small menu, map links are quiet. */
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: var(--tint); color: var(--accent-dark); }
.menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 900; min-width: 180px; padding: 4px; display: grid; gap: 2px;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px #17275126; }
.menu-list button { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent;
  color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; white-space: nowrap; }
.menu-list button:hover, .menu-list button:focus-visible { background: var(--tint); color: var(--accent-dark); outline: none; }
.menu-list svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.leg .amap-nav { display: inline-flex; vertical-align: -3px; margin-left: 4px; color: #9aa1b8; text-decoration: none; }
.leg .amap-nav svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.leg .amap-nav:hover { color: var(--accent); }
.map-expand { color: var(--secondary); text-decoration: none; }
.map-expand:hover { color: var(--accent-dark); text-decoration: underline; }
@media (max-width: 560px) { .board-actions { width: auto; display: flex; } }
