/* 神戶散步地圖：粉彩、圓角、手機優先。 */
:root {
    --ink: #3b3a55; --soft: #7b7a93; --line: #ece4d6; --paper: #fffaf2; --card: #ffffff; --accent: #f0564a; --accent-soft: #ffe7e2;
    --sky-top: #a9defa; --sky-bottom: #fdf3dd; --shadow: 0 6px 22px rgba(73, 62, 110, .16); --radius: 18px;
    --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px); --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
    font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Hiragino Sans", system-ui, sans-serif;
}
#app[data-night="1"] { --ink: #eef0ff; --soft: #a9aed3; --line: #363d6b; --paper: #1b2247; --card: #252d5a; --accent: #ff8a7a; --accent-soft: #46305a; --sky-top: #0c1230; --sky-bottom: #2c2f66; --shadow: 0 6px 22px rgba(0, 0, 0, .45); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #a9defa; color: var(--ink); overscroll-behavior: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
[hidden] { display: none !important; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

#app { position: fixed; inset: 0; overflow: hidden; overflow: clip; color: var(--ink); background: linear-gradient(var(--sky-top), var(--sky-bottom) 70%); transition: background .8s; }
#app[data-night="1"]::before { content: ""; position: absolute; inset: 0 0 45% 0; opacity: .8; pointer-events: none;
    background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 31% 9%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 47% 30%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 63% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 78% 26%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 90% 8%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 40%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 42%, #fff 50%, transparent 51%); }
#stage { position: absolute; inset: 0; }
#map { display: block; width: 100%; height: 100%; touch-action: none; outline: none; cursor: grab; }
#map:active { cursor: grabbing; }
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pin-label { --c: #f0564a; position: absolute; left: 0; top: 0; padding: 2px 9px 3px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #3b3a55; font-size: 12.5px; font-weight: 700; line-height: 1.35; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(60, 50, 100, .22), inset 0 -2px 0 color-mix(in srgb, var(--c) 55%, transparent); will-change: transform; max-width: 12em; overflow: hidden; text-overflow: ellipsis; }
.pin-label.eat { font-weight: 600; font-size: 12px; }
.pin-label.selected { background: var(--c); color: #fff; font-size: 14px; padding: 4px 12px; box-shadow: 0 4px 14px rgba(60, 50, 100, .35); }
.pin-label.route { box-shadow: 0 2px 8px rgba(60, 50, 100, .22), inset 0 0 0 2px var(--c); }
#app[data-night="1"] .pin-label:not(.selected) { background: rgba(30, 36, 78, .92); color: #f4f5ff; }
.station-label { position: absolute; left: 0; top: 0; font-size: 10.5px; font-weight: 700; color: #4c5a78; white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 4px #fff; will-change: transform; }
#app[data-night="1"] .station-label { color: #dfe6ff; text-shadow: 0 0 3px #101638, 0 0 3px #101638, 0 0 4px #101638; }

/* 上方：品牌、搜尋、按鈕 */
#top { position: absolute; left: calc(10px + var(--safe-l)); right: calc(10px + var(--safe-r)); top: calc(10px + var(--safe-t)); display: flex; gap: 8px; align-items: center; z-index: 20; pointer-events: none; }
#top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); flex: none; }
.brand svg { width: 34px; height: 34px; }
.brand b { display: block; font-size: 15px; letter-spacing: .04em; line-height: 1.15; }
.brand small { display: block; font-size: 10.5px; color: var(--soft); line-height: 1.2; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--soft); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; }
.search input::placeholder { color: var(--soft); }
.round { width: 44px; height: 44px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; flex: none; font-size: 20px; font-weight: 700; transition: transform .12s, background .2s; }
.round:active { transform: scale(.92); }
.round svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.round.accent { background: var(--accent); color: #fff; }
.round.on { background: #2f7dff; color: #fff; }
.round.busy svg { animation: spin 1.2s linear infinite; }
#btnMusic .slash { display: none; stroke: var(--accent); stroke-width: 2.4; }
#btnMusic[aria-pressed="false"] { color: var(--soft); }
#btnMusic[aria-pressed="false"] .slash { display: block; }
#btnNight .sun { display: none; } #app[data-night="1"] #btnNight .sun { display: block; } #app[data-night="1"] #btnNight .moon { display: none; }
#compass { transition: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 篩選列 */
#filters { position: absolute; left: 0; right: 0; top: calc(62px + var(--safe-t)); z-index: 19; display: flex; flex-direction: column; gap: 7px; pointer-events: none; }
#modes { align-self: flex-start; margin-left: calc(10px + var(--safe-l)); display: flex; padding: 3px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); pointer-events: auto; }
#modes button { display: flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--soft); }
#modes button[aria-selected="true"] { background: var(--accent); color: #fff; }
#modes .ic { width: 1em; height: 1em; }
#chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px calc(10px + var(--safe-r)) 8px calc(10px + var(--safe-l)); scrollbar-width: none; pointer-events: auto; touch-action: pan-x; }
#chips::-webkit-scrollbar { display: none; }
#chips button { --c: var(--accent); display: flex; align-items: center; gap: 4px; flex: none; padding: 5px 12px; border-radius: 999px; background: var(--card); box-shadow: 0 3px 10px rgba(73, 62, 110, .13); font-size: 13px; font-weight: 600; white-space: nowrap; }
#chips button .ic { color: var(--c); }
#chips button[aria-pressed="true"] { background: var(--c); color: #fff; }
#chips button[aria-pressed="true"] .ic { color: #fff; }

/* 地圖工具 */
#tools { position: absolute; right: calc(10px + var(--safe-r)); top: calc(158px + var(--safe-t)); z-index: 18; display: flex; flex-direction: column; gap: 8px; }
#tools .zoom { display: none; flex-direction: column; gap: 8px; }

/* 清單與介紹：手機是下方抽屜，寬螢幕是左側欄 */
#sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; height: 86%; max-height: calc(100% - 64px - var(--safe-t)); background: var(--paper); border-radius: 24px 24px 0 0; box-shadow: 0 -8px 30px rgba(60, 50, 100, .2);
    display: flex; flex-direction: column; transform: translateY(calc(100% - 76px - var(--safe-b))); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
#app[data-sheet="half"] #sheet { transform: translateY(46%); }
#app[data-sheet="full"] #sheet { transform: translateY(0); }
#app[data-sheet="half"] #listView, #app[data-sheet="half"] #detail { padding-bottom: calc(46vh + var(--safe-b)); }
#grab { flex: none; width: 100%; height: 26px; display: grid; place-items: center; touch-action: none; }
#grab i { width: 44px; height: 5px; border-radius: 3px; background: var(--line); }
#listView, #detail, #panelBody { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
#listView, #detail { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 0 14px calc(18px + var(--safe-b)); touch-action: pan-y; }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 2px 0 10px; background: var(--paper); }
.sheet-head h2 { flex: 1; margin: 0; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-head select { max-width: 9.5em; padding: 6px 8px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-size: 13px; }
.pill { padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill[aria-pressed="true"], .pill.solid { background: var(--accent); border-color: var(--accent); color: #fff; }
#routeBar { margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
#routeBar span { --c: var(--accent); display: flex; align-items: center; gap: 5px; font-weight: 700; color: var(--c); font-size: 14px; }
#routeBar p { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--soft); line-height: 1.5; order: 3; }
.season-note, .empty { margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; background: var(--accent-soft); font-size: 13.5px; line-height: 1.55; display: flex; gap: 6px; }
.season-note .ic { color: var(--accent); margin-top: 2px; }
.empty { background: none; color: var(--soft); justify-content: center; padding: 28px 12px; }
.item { --c: var(--accent); width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 8px; border-radius: var(--radius); background: var(--card); text-align: left; box-shadow: 0 2px 8px rgba(73, 62, 110, .07); }
.item:active { transform: scale(.985); }
.bubble { width: 44px; height: 44px; border-radius: 15px; background: color-mix(in srgb, var(--c) 16%, var(--card)); color: var(--c); display: grid; place-items: center; flex: none; font-size: 17px; }
.bubble b { font-size: 18px; }
.bubble.big { width: 58px; height: 58px; border-radius: 20px; font-size: 22px; background: var(--c); color: #fff; }
.item .text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.item .text b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .text small { font-size: 13px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .text em { font-style: normal; font-size: 11.5px; color: var(--soft); opacity: .9; }
.item .text em i { font-style: normal; color: #2f7dff; font-weight: 700; }
.marks { display: flex; gap: 3px; }
.marks .on { stroke: #f47c9c; fill: #f47c9c; } .marks .done { stroke: #3bb273; stroke-width: 2.6; }

#detail { padding-top: 0; }
.back { display: inline-flex; align-items: center; gap: 2px; padding: 4px 12px 4px 6px; margin-bottom: 8px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 600; }
.hero { --c: var(--accent); display: flex; gap: 12px; align-items: center; }
.hero h2 { margin: 0; font-size: 21px; line-height: 1.25; }
.hero .jp { margin: 2px 0 0; font-size: 12.5px; color: var(--soft); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 0; }
.tags span { padding: 3px 9px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.tags .dist { background: #e8f1ff; border-color: #cfe0ff; color: #2f6fe0; }
.lead { margin: 12px 0 4px; font-size: 16px; font-weight: 700; }
.desc { margin: 0; font-size: 14.5px; line-height: 1.75; }
.notice { display: flex; gap: 6px; margin: 10px 0 0; padding: 9px 12px; border-radius: 14px; background: #fff3cd; color: #7a5a00; font-size: 13.5px; line-height: 1.55; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.actions .primary { grid-column: 1 / -1; }
.actions > * { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 46px; padding: 0 12px; border-radius: 15px; background: var(--card); border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 700; text-decoration: none; color: inherit; white-space: nowrap; }
.actions .primary { background: var(--accent); border-color: var(--accent); color: #fff; font-size: 14.5px; }
.actions button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
#btnFav[aria-pressed="true"] .ic { fill: currentColor; }
.info { margin: 0; padding: 4px 14px; border-radius: var(--radius); background: var(--card); }
.info div { display: grid; grid-template-columns: 6.2em 1fr; gap: 8px; padding: 10px 0; border-bottom: 1.5px dashed var(--line); font-size: 14px; line-height: 1.6; }
.info div:last-child { border-bottom: 0; }
.info dt { display: flex; gap: 5px; align-items: center; color: var(--soft); font-weight: 600; align-self: start; }
.info dd { margin: 0; }
.tip { display: flex; gap: 7px; margin: 10px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--accent-soft); font-size: 14px; line-height: 1.6; }
.tip .ic { color: var(--accent); margin-top: 2px; }
#detail h3 { margin: 18px 0 8px; font-size: 15px; }
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini { --c: var(--accent); display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 14px; background: var(--card); text-align: left; min-width: 0; }
.mini .bubble { width: 34px; height: 34px; border-radius: 12px; font-size: 14px; }
.mini span:last-child { min-width: 0; display: grid; }
.mini b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini small { font-size: 11.5px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fine { margin: 16px 0 0; font-size: 12px; line-height: 1.6; color: var(--soft); }
.fine a { color: inherit; }

/* 選單 */
#panel { position: absolute; inset: 0; z-index: 60; background: rgba(40, 36, 70, .38); display: flex; align-items: flex-end; justify-content: center; }
.panel-card { width: min(100%, 560px); min-height: 0; max-height: calc(100vh - 48px - var(--safe-t)); max-height: calc(100dvh - 48px - var(--safe-t)); background: var(--paper); border-radius: 24px 24px 0 0; display: flex; flex-direction: column; box-shadow: var(--shadow); animation: rise .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.panel-tabs { flex: none; display: flex; gap: 4px; align-items: center; padding: 12px 12px 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.panel-tabs [data-tab] { padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--soft); white-space: nowrap; }
.panel-tabs [data-tab][aria-selected="true"] { background: var(--accent); color: #fff; }
.panel-tabs .round { margin-left: auto; width: 36px; height: 36px; font-size: 15px; box-shadow: none; border: 1.5px solid var(--line); }
#panelBody { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 4px 16px calc(22px + var(--safe-b)); overscroll-behavior: contain; }
#panelBody h3 { margin: 18px 0 6px; font-size: 15px; display: flex; align-items: center; gap: 6px; }
#panelBody h3 small { margin-left: auto; font-size: 12px; color: var(--soft); font-weight: 600; }
.hint { margin: 4px 0 10px; font-size: 13px; line-height: 1.7; color: var(--soft); }
.course { --c: var(--accent); margin-bottom: 12px; padding: 12px 14px 14px; border-radius: var(--radius); background: var(--card); border-left: 6px solid var(--c); }
.course h3 { margin: 0 0 4px !important; color: var(--c); } .course h3 small { color: var(--soft); }
.course p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.6; }
.course ol { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; counter-reset: stop; font-size: 12.5px; }
.course li { counter-increment: stop; display: flex; align-items: center; }
.course li::before { content: counter(stop); width: 1.5em; height: 1.5em; margin-right: 3px; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, var(--card)); color: var(--c); font-weight: 700; display: inline-grid; place-items: center; font-size: 11px; }
.course li:not(:last-child)::after { content: "›"; margin: 0 6px; color: var(--soft); }
.progress { padding: 12px 14px; border-radius: var(--radius); background: var(--card); font-size: 14px; }
.progress b { font-size: 24px; color: var(--accent); }
.progress span { display: block; height: 10px; margin-top: 8px; border-radius: 5px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #ffd166, var(--accent)); }
.stamps div { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.stamp { --c: var(--accent); display: grid; justify-items: center; gap: 3px; padding: 8px 2px; border-radius: 14px; background: var(--card); color: var(--soft); min-width: 0; }
.stamp .ic { width: 38px; height: 38px; padding: 8px; border-radius: 50%; border: 2px dashed var(--line); }
.stamp.on .ic { border: 2.5px solid var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--card)); transform: rotate(-8deg); }
.stamp span { font-size: 10.5px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.stamp.on span { color: var(--ink); font-weight: 700; }
.transport { margin: 0; padding: 4px 14px; border-radius: var(--radius); background: var(--card); }
.transport div { padding: 10px 0; border-bottom: 1.5px dashed var(--line); }
.transport div:last-child { border: 0; }
.transport dt { font-weight: 700; font-size: 14px; } .transport dd { margin: 2px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--soft); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 6px; font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 26px; height: 6px; border-radius: 3px; display: inline-block; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px var(--line); }
.legend i.dash { -webkit-mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 10px); mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 10px); box-shadow: none; }
.setting { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1.5px dashed var(--line); font-size: 14.5px; }
.setting label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.setting input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }
.setting input[type="range"] { flex: 1; accent-color: var(--accent); }
.setting select { flex: 1; min-width: 0; padding: 8px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); }

#toast { position: absolute; left: 50%; top: calc(150px + var(--safe-t)); z-index: 70; transform: translate(-50%, -12px); max-width: min(88vw, 420px); padding: 9px 16px; border-radius: 16px; background: rgba(59, 58, 85, .93); color: #fff; font-size: 14px; line-height: 1.5; text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#confetti { position: absolute; left: 50%; top: 45%; z-index: 80; pointer-events: none; }
#confetti i { position: absolute; width: 9px; height: 13px; border-radius: 3px; animation: confetti 1.5s var(--d) cubic-bezier(.15, .6, .4, 1) both; }
@keyframes confetti { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(calc(var(--x) * 46vw), 46vh) rotate(var(--r)); opacity: 0; } }

#loading { position: absolute; inset: 0; z-index: 100; display: grid; place-items: center; background: linear-gradient(#a9defa, #fdf3dd); transition: opacity .6s; }
#loading.done { opacity: 0; pointer-events: none; }
.loader-card { display: grid; justify-items: center; gap: 6px; color: #3b3a55; }
.loader-card b { font-size: 22px; letter-spacing: .08em; } .loader-card small { font-size: 13.5px; color: #7b7a93; }
.loader-art { position: relative; width: 150px; height: 130px; margin-bottom: 6px; }
.loader-art .sun { position: absolute; right: 12px; top: 6px; width: 34px; height: 34px; border-radius: 50%; background: #ffd166; animation: bob 2.4s ease-in-out infinite; }
.loader-art .tower { position: absolute; left: 50%; bottom: 22px; width: 44px; height: 92px; margin-left: -22px; background: #f0564a; clip-path: polygon(22% 0, 78% 0, 62% 48%, 86% 100%, 14% 100%, 38% 48%); animation: bob 2.4s -.6s ease-in-out infinite; }
.loader-art .wave { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; border-radius: 50% 50% 0 0 / 60% 60% 0 0; background: #6cc8ee; box-shadow: inset 0 6px 0 #fff8; animation: sway 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-7px); } } @keyframes sway { 50% { transform: scaleX(1.06) translateY(2px); } }
#app.no-map #stage, #app.no-map #tools { display: none; }

/* 寬螢幕：清單變成左側欄 */
@media (min-width: 900px) {
    #sheet { left: 14px; right: auto; top: 76px; bottom: 14px; width: 384px; height: auto; max-height: none; border-radius: 24px; transform: none !important; box-shadow: var(--shadow); padding-top: 14px; }
    #grab { display: none; }
    #app[data-sheet] #listView, #app[data-sheet] #detail { padding-bottom: 18px; }
    #top { left: 14px; right: 14px; top: 14px; }
    .search { flex: none; width: 250px; }
    #top .search { margin-right: auto; }
    #filters { left: 412px; top: 76px; }
    #modes { margin-left: 0; }
    #chips { padding-left: 0; flex-wrap: wrap; overflow: visible; max-width: calc(100vw - 500px); }
    #tools { top: 76px; right: 14px; }
    #tools .zoom { display: flex; }
    #toast { top: auto; bottom: 26px; left: calc(50% + 200px); }
    #panel { align-items: center; }
    .panel-card { border-radius: 24px; max-height: min(86vh, 760px); }
    .brand b { font-size: 17px; }
}
@media (max-width: 420px) { .brand small { display: none; } .brand b { font-size: 14px; } .brand { padding-right: 11px; } }
@media (max-height: 520px) and (max-width: 899px) { #tools { top: calc(112px + var(--safe-t)); flex-direction: row; right: auto; left: calc(10px + var(--safe-l)); } #filters { display: none; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01s !important; transition-duration: .01s !important; } }
@media (max-width: 520px) { .brand div { display: none; } .brand { padding: 5px; } }

/* 2026 皮克敏專區 */
.event-card { margin: 0 0 12px; padding: 14px; border-radius: var(--radius); background: linear-gradient(135deg, #e6f0ff, #f1e9ff); color: #2d3a66; border: 1.5px solid #cfdcff; }
#app[data-night="1"] .event-card { background: linear-gradient(135deg, #263a78, #3a2f70); color: #eef0ff; border-color: #4a5aa6; }
.event-card h3 { margin: 0 0 4px !important; font-size: 15.5px !important; display: flex; align-items: center; gap: 6px; line-height: 1.35; }
.event-card h3 .ic { color: #4a86e8; }
.event-card .status { margin: 0 0 8px; display: inline-block; padding: 3px 10px; border-radius: 999px; background: #4a86e8; color: #fff; font-size: 12.5px; font-weight: 700; }
.event-card dl { margin: 0 0 8px; }
.event-card dl div { display: grid; grid-template-columns: 3.2em 1fr; gap: 8px; font-size: 13px; line-height: 1.6; }
.event-card dt { font-weight: 700; opacity: .75; } .event-card dd { margin: 0; }
.event-card .visited { margin: 0 0 10px; font-size: 13px; } .event-card .visited b { font-size: 18px; color: #4a86e8; }
.event-card .visited span { display: block; height: 8px; margin-top: 5px; border-radius: 4px; background: #ffffff88; overflow: hidden; }
.event-card .visited i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #7aa5f7, #8e7df0); }
.event-card .row { display: flex; gap: 8px; flex-wrap: wrap; }
.event-card .pill { display: inline-flex; align-items: center; gap: 4px; }
.event-card .pill.solid { background: #4a86e8; border-color: #4a86e8; }
.event-banner { width: 100%; display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 10px 12px; border-radius: var(--radius); background: linear-gradient(135deg, #e6f0ff, #f1e9ff); border: 1.5px solid #cfdcff; color: #2d3a66; text-align: left; }
#app[data-night="1"] .event-banner { background: linear-gradient(135deg, #263a78, #3a2f70); color: #eef0ff; border-color: #4a5aa6; }
.event-banner > .ic { width: 30px; height: 30px; color: #4a86e8; }
.event-banner span { flex: 1; min-width: 0; display: grid; } .event-banner b { font-size: 14.5px; } .event-banner small { font-size: 12px; opacity: .8; }
.event-banner .go { transform: rotate(180deg); opacity: .6; }
.bullets { margin: 0; padding: 4px 14px 4px 30px; border-radius: var(--radius); background: var(--card); font-size: 13.5px; line-height: 1.7; }
.bullets li { padding: 5px 0; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.links a { padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); color: inherit; font-size: 13px; font-weight: 600; text-decoration: none; }
.stamp b.ic { display: grid; place-items: center; font-size: 15px; stroke: none; }
#modes button { padding-left: 12px; padding-right: 12px; }
@media (max-width: 380px) { #modes button { padding-left: 9px; padding-right: 9px; font-size: 13px; } }
