/* Layout: sticky slim header; 16:9 rolling photo banner with logo; short essay; five photo-and-gradient bands (colour from the flip cards, solid where the text sits); about; follow; dark footer with logo. */
:root {
  --bg: #F4F4F7;
  --fg: #1B1B26;
  --muted: #5B5B6C;
  --line: #DADAE3;
  --panel: #FFFFFF;
  --accent: #3A549E;
  --serif: "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --gutter: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111117; --fg: #ECECF3; --muted: #A2A2B4; --line: #2B2B38; --panel: #1A1A23; --accent: #9DB6F2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111117; --fg: #ECECF3; --muted: #A2A2B4; --line: #2B2B38; --panel: #1A1A23; --accent: #9DB6F2;
  color-scheme: dark;
}
/* 五個品牌色：全站只在這裡定義（c = 顏色，o = 放在該顏色上的字色） */
:root { --cL: #553F4A; --cI: #C08361; --cV: #F19DAF; --cE: #367455; --cD: #4561AC; --oL: #FFFFFF; --oI: #2A1B10; --oV: #3A1020; --oE: #FFFFFF; --oD: #FFFFFF; --gray: #4A4A57; }
* { box-sizing: border-box; }
body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.95;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px))); padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.brand i { font-weight: 400; }
.nav { display: flex; align-items: center; gap: 20px; font-size: .9rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--fg); }
.dots { display: flex; gap: 6px; }
.dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: .95rem; font-weight: 500; line-height: 1; color: #fff; text-decoration: none; transition: transform .2s; }
.dL { --dc: var(--cL); --do: var(--oL); } .dI { --dc: var(--cI); --do: var(--oI); } .dV { --dc: var(--cV); --do: var(--oV); } .dE { --dc: var(--cE); --do: var(--oE); } .dD { --dc: var(--cD); --do: var(--oD); }
.dot { background: var(--dc); color: var(--do); }
/* 右上角 L I V E D：平時深灰色，滑鼠移上去（或正在瀏覽該範疇）才轉成品牌色 */
.nav .dot { background: var(--gray); color: #fff; transition: background .25s, color .25s, transform .2s; }
.nav .dot:hover, .nav .dot:focus-visible, .nav .dot[aria-current="true"] { background: var(--dc); color: var(--do); }
.nav .dot:hover { transform: translateY(-2px); }
.links { display: flex; gap: 20px; }
@media (max-width: 640px) { .links { display: none; } }
@media (max-width: 480px) { .top .wrap { gap: 10px; } .brand { font-size: 1.08rem; } .nav .dots { gap: 5px; } .nav .dot { width: 25px; height: 25px; font-size: .88rem; } }

.intro { display: flex; flex-wrap: wrap; gap: 28px 54px; justify-content: space-between; align-items: center; padding-block: 36px 72px; }
.lead { font-size: 1.12rem; max-width: 28em; color: var(--muted); margin: 0; }
.letters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .88rem; background: var(--panel); transition: border-color .2s; }
.chip:hover { border-color: var(--fg); }
.chip .dot { width: 26px; height: 26px; font-size: .85rem; }

/* essay */
.essay { display: grid; grid-template-columns: 220px minmax(0, 38em); gap: 70px; padding-block: 80px; border-top: 1px solid var(--line); justify-content: center; }
.essay h2, .sect-h { font-weight: 300; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.4; letter-spacing: .08em; margin: 0; text-wrap: balance; }
.label { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--muted); margin-bottom: 10px; }
.essay p { margin: 0 0 1.55em; }
.pull { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 300; line-height: 1.7; letter-spacing: .04em; margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--cV); }
.dig { font-family: var(--serif); font-style: italic; }
.warm { font-size: 1.12rem; padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; margin-bottom: 0 !important; }
@media (max-width: 860px) { .essay { grid-template-columns: 1fr; gap: 26px; padding-block: 53px; } }

/* five photo bands */
.bandhead { padding-block: 80px 40px; border-top: 1px solid var(--line); max-width: 44em; }
.bandhead p { color: var(--muted); margin: 14px 0 0; }
.band { --fadeR: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.02) 8%, rgba(0,0,0,.08) 16%, rgba(0,0,0,.2) 25%, rgba(0,0,0,.38) 35%, rgba(0,0,0,.58) 45%, rgba(0,0,0,.78) 57%, rgba(0,0,0,.92) 69%, #000 82%); --fadeL: linear-gradient(270deg, transparent 0%, rgba(0,0,0,.02) 8%, rgba(0,0,0,.08) 16%, rgba(0,0,0,.2) 25%, rgba(0,0,0,.38) 35%, rgba(0,0,0,.58) 45%, rgba(0,0,0,.78) 57%, rgba(0,0,0,.92) 69%, #000 82%); position: relative; isolation: isolate; overflow: hidden; margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px))); padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); background: linear-gradient(90deg, var(--c1) 0%, var(--c1) 30%, var(--c2) 100%); background: linear-gradient(90deg in oklab, var(--c1) 0%, var(--c1) 28%, var(--c2) 100%); color: var(--on); }
.band.flip { background: linear-gradient(270deg, var(--c1) 0%, var(--c1) 30%, var(--c2) 100%); background: linear-gradient(270deg in oklab, var(--c1) 0%, var(--c1) 28%, var(--c2) 100%); }
.band::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: 62%; background: linear-gradient(color-mix(in srgb, var(--c2) var(--tw, 26%), transparent), color-mix(in srgb, var(--c2) var(--tw, 26%), transparent)), var(--img) var(--pos, center) / cover no-repeat; background-blend-mode: color, normal; filter: saturate(.8) contrast(.97) brightness(1.02); -webkit-mask-image: var(--fadeR); mask-image: var(--fadeR); }
.band.flip::before { right: auto; left: 0; -webkit-mask-image: var(--fadeL); mask-image: var(--fadeL); }
.band-in { max-width: 1120px; margin: 0 auto; padding-block: 97px; display: grid; grid-template-columns: minmax(0, 520px); min-height: 506px; align-content: center; }
.band.flip .band-in { justify-content: end; }
.q-who { font-size: .8rem; letter-spacing: .26em; opacity: .85; margin-bottom: 8px; }
.en { font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 8vw, 5.2rem); line-height: 1.02; margin: 0; letter-spacing: -.005em; }
.en b { font-weight: 500; }
.en span { opacity: .65; }
.zh { font-weight: 300; font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: .22em; margin: 11px 0 24px; }
.desc { font-size: 1.1rem; max-width: 28em; margin: 0 0 22px; }
.note { font-size: .95rem; margin: 0 0 20px; max-width: 28em; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.topics li { font-size: .86rem; padding: 3px 14px; border: 1px solid color-mix(in srgb, var(--on) 55%, transparent); border-radius: 999px; line-height: 1.8; }
.ask { font-size: .95rem; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--on) 40%, transparent); max-width: 28em; }
.ask small { display: block; font-size: .72rem; letter-spacing: .2em; opacity: .85; }
.cL { --tw: 30%; --c1: var(--cL); --c2: #B8A6B0; --on: var(--oL); }
.cI { --tw: 18%; --c1: var(--cI); --c2: #DEBD53; --on: var(--oI); }
.cV { --c1: var(--cV); --c2: #F6B49E; --on: var(--oV); }
.cE { --tw: 14%; --c1: var(--cE); --c2: #99CA6D; --on: var(--oE); }
.cD { --tw: 24%; --c1: var(--cD); --c2: #99D4E4; --on: var(--oD); }
@media (max-width: 860px) {
  .band, .band.flip { background: linear-gradient(180deg, var(--c1) 0%, var(--c1) 58%, var(--c2) 100%); }
  .band::before, .band.flip::before { top: auto; bottom: 0; left: 0; right: 0; width: 100%; height: 220px; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%); mask-image: linear-gradient(180deg, transparent 0%, #000 55%); }
  .band-in, .band.flip .band-in { padding-block: 58px 210px; min-height: 0; justify-content: start; }
}

/* closing, about, follow */
.close { padding-block: 97px; text-align: center; max-width: 36em; margin: 0 auto; }
.close p { margin: 0 0 1.2em; }
.close .big { font-size: clamp(1.5rem, 3.6vw, 2.1rem); line-height: 1.6; letter-spacing: .08em; font-weight: 300; }
.about { display: grid; grid-template-columns: 220px minmax(0, 40em); gap: 70px; padding-block: 80px; border-top: 1px solid var(--line); justify-content: center; }
.about p { margin: 0 0 1.2em; }
.five { list-style: none; margin: 24px 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.five li { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.five a { text-decoration: none; color: var(--muted); font-size: .85rem; }
.five a:hover { color: var(--fg); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 26px; padding-block: 53px; } }
.follow { border-top: 1px solid var(--line); padding-block: 80px; display: flex; flex-wrap: wrap; gap: 31px 70px; align-items: center; justify-content: space-between; }
.follow h2 { margin: 0 0 6px; font-weight: 300; font-size: 1.6rem; letter-spacing: .08em; }
.follow p { margin: 0; color: var(--muted); max-width: 28em; }
.btn { display: inline-block; padding: 12px 26px; border-radius: 999px; background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 400; font-size: .95rem; letter-spacing: .04em; }
.btn:hover { opacity: .85; }

/* footer: deliberately dark in both themes so the white logo reads */
.foot { background: #14141C; color: #C9C9D6; margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px))); padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-block: 62px 44px; text-align: center; }
.foot img { width: min(300px, 70%); height: auto; margin: 0 auto 14px; opacity: .95; }
.foot p { margin: 0; font-family: var(--serif); font-size: .8rem; letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; }
.foot small { display: block; margin-top: 18px; font-size: .75rem; color: #8C8C9C; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .dot { transition: none; } }

/* rolling banner */
.stage { position: relative; margin-top: 28px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #1b2a3a; isolation: isolate; }
.slide { position: absolute; inset: 0; background: var(--img) var(--pos, center) / cover no-repeat; opacity: 0; transition: opacity 1.4s ease; z-index: 0; }
.slide.on { opacity: 1; z-index: 1; animation: drift 9s ease-out forwards; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07); } }
.stage::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(8, 10, 20, .18) 0%, rgba(8, 10, 20, .08) 40%, rgba(8, 10, 20, .55) 100%); }
.mark { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(4px, .9vw, 9px); pointer-events: none; text-align: center; padding: 0 5%; }
.mark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 34% 26% at 50% 50%, rgba(8, 10, 20, .42), transparent 100%); }
.mark h1 { margin: 0; line-height: 0; width: 100%; }
.mark .logo { width: min(32%, 294px); height: auto; margin-inline: auto; filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .4)); }
.mark p { margin: 0; font-family: var(--serif); font-size: clamp(.5rem, .9vw, .58rem); letter-spacing: .5em; text-transform: uppercase; color: rgba(255, 255, 255, .92); font-weight: 400; padding-left: .5em; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.ctl { position: absolute; z-index: 4; right: 14px; bottom: 12px; display: flex; align-items: center; gap: 8px; }
.pips { display: flex; gap: 6px; }
.pip { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.pip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: all .25s; }
.pip[aria-current="true"]::before { background: #fff; width: 18px; border-radius: 4px; }
.pp { width: 26px; height: 26px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; background: rgba(10, 12, 24, .35); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.pp svg { width: 10px; height: 10px; fill: currentColor; }
@media (max-width: 640px) { .ctl { top: 10px; bottom: auto; right: 10px; } .mark .logo { width: min(42%, 210px); } }

/* ===== multi-page additions ===== */
.chip.on, .links a[aria-current="page"] { color: var(--fg); }
.links a[aria-current="page"] { border-bottom: 1px solid currentColor; }
.pagehead { padding-block: 72px 32px; max-width: 44em; }
.pagehead p { color: var(--muted); margin: 14px 0 0; }
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--fg); }
.lhero { --fadeR: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.02) 8%, rgba(0,0,0,.08) 16%, rgba(0,0,0,.2) 25%, rgba(0,0,0,.38) 35%, rgba(0,0,0,.58) 45%, rgba(0,0,0,.78) 57%, rgba(0,0,0,.92) 69%, #000 82%); }
.lhero.flip { --fadeL: linear-gradient(270deg, transparent 0%, rgba(0,0,0,.02) 8%, rgba(0,0,0,.08) 16%, rgba(0,0,0,.2) 25%, rgba(0,0,0,.38) 35%, rgba(0,0,0,.58) 45%, rgba(0,0,0,.78) 57%, rgba(0,0,0,.92) 69%, #000 82%); }
.band .band-in a.more { display: inline-block; margin-top: 22px; color: var(--on); font-size: .92rem; letter-spacing: .06em; text-underline-offset: 5px; }
.list { padding-block: 72px 97px; max-width: 46em; margin-inline: auto; }
.list h2 { font-weight: 300; font-size: 1.5rem; letter-spacing: .08em; margin: 0 0 8px; }
.posts { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.posts li { border-bottom: 1px solid var(--line); }
.posts a { display: grid; grid-template-columns: 96px 1fr; gap: 22px; padding: 22px 0; text-decoration: none; align-items: start; }
.posts img { width: 96px; height: 96px; object-fit: cover; border-radius: 4px; }
.posts .t { font-size: 1.15rem; line-height: 1.6; }
.posts .m { font-size: .82rem; color: var(--muted); letter-spacing: .06em; margin-top: 2px; }
.posts .x { font-size: .95rem; color: var(--muted); margin-top: 6px; line-height: 1.8; }
.posts a:hover .t { text-decoration: underline; text-underline-offset: 5px; }
.empty { margin: 28px 0 0; padding: 28px; border: 1px dashed var(--line); border-radius: 4px; color: var(--muted); text-align: center; }
.siblings { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.article { padding-block: 72px 97px; display: grid; grid-template-columns: minmax(0, 38em); justify-content: center; }
.article h1 { font-weight: 300; font-size: clamp(1.8rem, 4.4vw, 2.6rem); line-height: 1.5; letter-spacing: .06em; margin: 0 0 12px; text-wrap: balance; }
.article .meta { font-size: .85rem; color: var(--muted); letter-spacing: .06em; margin-bottom: 40px; display: flex; gap: 12px; align-items: center; }
.article .cover { margin: 0 0 40px; border-radius: 4px; width: 100%; height: auto; }
.article p { margin: 0 0 1.55em; }
.article .endnav { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .92rem; }
.article .endnav a { color: var(--muted); text-decoration: none; }
.article .endnav a:hover { color: var(--fg); }
.region { padding-block: 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 220px minmax(0, 40em); gap: 70px; justify-content: center; }
.region h2 { font-weight: 300; font-size: 1.5rem; letter-spacing: .08em; margin: 0; }
.region ul { list-style: none; margin: 0; padding: 0; }
.region li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.region li small { color: var(--muted); margin-left: 8px; }
@media (max-width: 860px) { .region { grid-template-columns: 1fr; gap: 14px; } .posts a { grid-template-columns: 72px 1fr; gap: 16px; } .posts img { width: 72px; height: 72px; } .pagehead { padding-block: 48px 24px; } }

/* one-line intro copy (wraps only on narrow screens) */
.intro .lead { max-width: none; flex: 1 1 100%; }
.bandhead { max-width: none; }
.bandhead p { max-width: none; }
@media (min-width: 1000px) { .intro .lead, .bandhead p { white-space: nowrap; } }
@media (max-width: 999px) { .intro .lead, .bandhead p { white-space: normal; } }
/* Encounters photo: shift 15% to the left */
@media (min-width: 861px) { .cE.band.flip::before { left: -15%; width: 77%; background-size: auto, 80% auto; background-position: 0 0, 0 42%; } }

/* ===== 世界地圖 ===== */
.mapwrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding-block: 8px 80px; }
.mapcol { min-width: 0; }
.map { --ocean: #EAF1F6; --land: #CFD1DC; --visited: #3A549E; --dive: #35B6D6; position: relative; border: 1px solid var(--line); border-radius: 6px; background: #EAF1F6; overflow: hidden; }
.map svg { display: block; width: 100%; height: auto; }
.map .c { fill: var(--land); stroke: var(--ocean, #fff); stroke-width: .35; transition: fill 1s ease; }
.map .c.v, .map .cdot.v circle { cursor: pointer; }
.map.ready .c.v { fill: var(--visited); transition-delay: calc(var(--i, 0) * .35s + .2s); }
.map .c.v:hover, .map .c.on { fill: color-mix(in srgb, var(--visited) 78%, #fff); stroke: #fff; stroke-width: .8; }
.map .cdot circle { fill: var(--land); stroke: var(--ocean, #fff); stroke-width: .6; transition: fill 1s ease; }
.map.ready .cdot.v circle { fill: var(--visited); transition-delay: calc(var(--i, 0) * .35s + .2s); }
.map .cdot.on circle { stroke: #fff; stroke-width: 1.2; }
.map .dive { cursor: pointer; }
.map .dive .dot { fill: var(--dive); stroke: #fff; stroke-width: .7; }
.map .dive .rip { fill: var(--dive); opacity: 0; transform-box: fill-box; transform-origin: center; animation: ripple 2.6s ease-out infinite; animation-delay: var(--d, 0s); }
@keyframes ripple { 0% { transform: scale(.7); opacity: .6; } 100% { transform: scale(3.4); opacity: 0; } }
.map svg :focus-visible { outline: none; }
.map svg .c.v:focus-visible { stroke: var(--fg); stroke-width: 1; }
.tip { position: absolute; transform: translate(-50%, -100%); background: var(--fg); color: var(--bg); padding: 7px 12px; border-radius: 4px; font-size: .82rem; line-height: 1.6; pointer-events: none; white-space: nowrap; z-index: 2; }
.maptools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 16px; font-size: .88rem; color: var(--muted); }
.maptools i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.maptools .l1 { background: #CFD1DC; } .maptools .l2 { background: #3A549E; } .maptools .l3 { background: #35B6D6; border-radius: 50%; }
.maptools .stat { margin-left: auto; } .maptools .stat b { color: var(--fg); font-weight: 500; font-size: 1.05rem; }
.maptools button { font: inherit; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 14px; cursor: pointer; }
.maptools button:hover { color: var(--fg); border-color: var(--fg); }
.tl { position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow: auto; padding-left: 0; }
.tl h2 { margin: 0 0 18px; font-weight: 300; font-size: 1.3rem; letter-spacing: .08em; }
.tl ol { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.tl ol::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl ol > li { position: relative; padding-bottom: 22px; }
.tl ol > li::before { content: ""; position: absolute; left: -26px; top: .75em; width: 9px; height: 9px; border-radius: 50%; background: var(--visited, #3A549E); box-shadow: 0 0 0 4px var(--bg); }
.tl ol > li.on::before { background: #35B6D6; }
.tl-b { display: flex; gap: 12px; align-items: baseline; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: var(--fg); cursor: pointer; text-align: left; font-size: 1.05rem; }
.tl-b:hover .tl-n, .tl li.on .tl-n { text-decoration: underline; text-underline-offset: 5px; }
.tl-y { font-size: .8rem; color: var(--muted); letter-spacing: .06em; }
.tl ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: .92rem; color: var(--muted); }
.tl ul li { padding: 1px 0; }
.tl ul a { color: var(--fg); text-underline-offset: 4px; }
.bdg { font-size: .7rem; padding: 0 7px; border-radius: 999px; background: #35B6D6; color: #06303B; margin-left: 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map { background: #14202B; --land: #2C2D3A; --visited: #6F8FE0; } :root:not([data-theme="light"]) .maptools .l1 { background: #2C2D3A; } :root:not([data-theme="light"]) .maptools .l2 { background: #6F8FE0; } }
:root[data-theme="dark"] .map { background: #14202B; --land: #2C2D3A; --visited: #6F8FE0; }
@media (max-width: 960px) { .mapwrap { grid-template-columns: 1fr; gap: 28px; } .tl { position: static; max-height: none; border-top: 1px solid var(--line); padding-top: 24px; } .maptools .stat { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .map .c, .map .cdot circle { transition: none; } .map .dive .rip { animation: none; opacity: .35; transform: scale(2); } }

/* ===== 旅行資料卡（Informed） ===== */
.gfilter { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.gfilter button { font: inherit; font-size: .88rem; padding: 5px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); cursor: pointer; }
.gfilter button:hover { color: var(--fg); border-color: var(--fg); }
.gfilter button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-top: 22px; }
.gcard { display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform .2s, border-color .2s; }
.gcard:hover { transform: translateY(-3px); border-color: var(--cI); }
.gcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--line); }
.gcard .gb { padding: 16px 18px 18px; }
.gcard .gt { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 1.1rem; }
.gcard .gs { font-family: var(--serif); font-size: 1.3rem; color: var(--cI); white-space: nowrap; }
.gcard .gc { font-size: .8rem; color: var(--muted); letter-spacing: .06em; margin-top: 2px; }
.gcard .gx { font-size: .92rem; color: var(--muted); line-height: 1.8; margin-top: 8px; }
.gtypes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.gtypes span, .gtags span { font-size: .75rem; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.gnote { font-size: .88rem; color: var(--muted); margin-top: 22px; }
.gnote summary { cursor: pointer; }
/* 資料卡頁（儀表板式） */
.gwrap { max-width: 1080px; margin: 0 auto; padding-block: 28px 20px; }
.gwrap h1 { font-weight: 300; font-size: clamp(1.9rem, 4.6vw, 2.8rem); line-height: 1.4; letter-spacing: .06em; margin: 0 0 10px; }
.gmeta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--muted); font-size: .88rem; letter-spacing: .04em; }
.gcover { margin: 24px 0 0; width: 100%; aspect-ratio: 16 / 6; object-fit: cover; border-radius: 8px; }
.gdraft { margin: 20px 0 0; padding: 12px 18px; border: 1px dashed var(--cI); border-radius: 6px; font-size: .9rem; color: var(--muted); }
.gsummary { margin: 24px 0 0; font-size: 1.12rem; line-height: 1.9; }
.gd { --tg: #3E8E63; --to: #D9A93B; --tr: #C2645F; display: grid; gap: 16px; margin-top: 24px; }
.gkpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.kpi { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.kpi .ring { flex: none; width: 54px; height: 54px; }
.kpi .ring circle { fill: none; stroke-width: 6; }
.kpi .ring .bg { stroke: var(--line); }
.kpi .ring .fg { stroke: var(--cI); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.2s cubic-bezier(.2, .7, .2, 1); transform: rotate(-90deg); transform-origin: center; }
.ready .kpi .ring .fg { stroke-dasharray: var(--p) 100; }
.kpi .ring text { font-family: var(--serif); font-size: 15px; fill: var(--fg); text-anchor: middle; dominant-baseline: central; }
.kpi .k { font-size: .72rem; letter-spacing: .14em; color: var(--muted); }
.kpi .v { white-space: nowrap; font-size: 1.35rem; line-height: 1.3; font-weight: 400; margin-top: 2px; }
.kpi .s { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.dollars { letter-spacing: .08em; } .dollars i { font-style: normal; color: var(--line); } .dollars i.on { color: var(--cI); }
.pill { display: inline-block; font-size: .78rem; padding: 1px 11px; border-radius: 999px; line-height: 1.7; color: #fff; background: var(--muted); white-space: nowrap; }
.pill.good { background: var(--tg); } .pill.ok { background: var(--to); color: #2A1B10; } .pill.warn { background: var(--tr); }
.gp { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; min-width: 0; overflow: hidden; }
.gp > h2 { margin: 0; padding: 12px 20px; font-size: .74rem; font-weight: 500; letter-spacing: .16em; color: var(--muted); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.gp > h2 small { font-weight: 300; letter-spacing: .04em; }
.gp .pb { padding: 16px 20px 18px; }
.g2c { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rt { display: grid; grid-template-columns: 6.8em 1fr 2.2em; gap: 14px; align-items: center; padding: 7px 0; font-size: .94rem; }
.rt b { font-weight: 400; text-align: right; font-family: var(--serif); font-size: 1.1rem; }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--c, var(--cI)); border-radius: 4px; transition: width 1.1s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--k, 0) * .1s); }
.ready .bar i { width: var(--w); }
.aud .bar i { --c: var(--cD); }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.fit ul { list-style: none; margin: 0; padding: 0; } .fit h3 { margin: 0 0 6px; font-size: .78rem; letter-spacing: .12em; font-weight: 500; }
.fit li { position: relative; padding: 3px 0 3px 20px; font-size: .92rem; line-height: 1.7; }
.fit li::before { position: absolute; left: 0; } .fit .y li::before { content: "✓"; color: var(--tg); } .fit .n li::before { content: "—"; color: var(--muted); }
/* 月份圖 */
.mchart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 150px; padding-top: 8px; }
.mcol { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.mcol i { display: block; width: 100%; height: 0; border-radius: 4px 4px 0 0; background: var(--mc); transition: height 1s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--k) * .05s); position: relative; }
.ready .mcol i { height: var(--h); }
.mcol.g { --mc: var(--tg); } .mcol.o { --mc: var(--to); } .mcol.r { --mc: #B7B9C6; }
.mlab { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; text-align: center; font-size: .78rem; color: var(--muted); margin-top: 6px; }
.mmk { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; text-align: center; font-size: .68rem; min-height: 1.4em; margin-top: 4px; }
.mmk .pk { color: var(--cI); } .mmk .rn { color: var(--cD); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.mnote { margin: 10px 0 0; font-size: .88rem; color: var(--muted); }
/* 預算 */
.stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--line); }
.stack i { display: block; height: 100%; width: 0; background: var(--sc); transition: width 1.1s cubic-bezier(.2, .7, .2, 1); }
.ready .stack i { width: var(--w); }
.btable { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .92rem; }
.btable td { padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.btable td:nth-child(3), .btable td:nth-child(4) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.btable td:nth-child(4) { color: var(--muted); width: 3.5em; }
.btable .sw { width: 14px; padding-right: 0; } .btable .sw i { display: block; width: 10px; height: 10px; border-radius: 3px; background: var(--sc); }
.btable small { display: block; color: var(--muted); font-size: .78rem; }
.btable tr.tot td { border-bottom: 0; border-top: 2px solid var(--fg); font-weight: 500; padding-top: 10px; }
.bavg { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; font-size: .86rem; color: var(--muted); } .bavg b { color: var(--fg); font-weight: 500; }
/* 分段卡 */
.gsecs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ktable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ktable th, .ktable td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.75; }
.ktable th { width: 6.5em; font-weight: 400; color: var(--muted); letter-spacing: .04em; }
.ktable tr:last-child th, .ktable tr:last-child td { border-bottom: 0; }
.stips { margin: 10px 0 0; padding: 12px 14px; list-style: none; background: color-mix(in srgb, var(--cI) 9%, transparent); border-radius: 6px; font-size: .88rem; line-height: 1.75; }
.stips li { position: relative; padding-left: 16px; } .stips li::before { content: "·"; position: absolute; left: 4px; color: var(--cI); font-weight: 700; }
.tscroll { overflow-x: auto; }
.dtable { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.dtable th { text-align: left; font-size: .72rem; letter-spacing: .12em; font-weight: 500; color: var(--muted); padding: 0 10px 8px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dtable td { padding: 11px 10px 11px 4px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.7; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable td.n { font-weight: 400; } .dtable td.sc { font-family: var(--serif); font-size: 1.05rem; }
.alerts { list-style: none; margin: 0; padding: 0; }
.alerts li { display: grid; grid-template-columns: 10px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .94rem; line-height: 1.75; }
.alerts li:last-child { border-bottom: 0; }
.alerts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: .65em; background: var(--muted); }
.alerts li.warn::before { background: var(--tr); } .alerts li.good::before { background: var(--tg); } .alerts li.info::before { background: var(--cD); }
.gsrc { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.garticle { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 38em); justify-content: center; }
.garticle h2 { font-weight: 300; font-size: clamp(1.6rem, 3.6vw, 2.1rem); letter-spacing: .08em; margin: 0 0 28px; }
.garticle h3 { font-weight: 400; font-size: 1.2rem; letter-spacing: .06em; margin: 2em 0 .6em; }
.garticle p { margin: 0 0 1.55em; }
@media (max-width: 860px) { .g2c, .gsecs { grid-template-columns: 1fr; } .fit { grid-template-columns: 1fr; gap: 12px; } .rt { grid-template-columns: 5.6em 1fr 2.2em; gap: 10px; } .mchart, .mlab, .mmk { gap: 3px; } .gcover { aspect-ratio: 16 / 9; } }
@media (prefers-reduced-motion: reduce) { .bar i, .mcol i, .stack i, .kpi .ring .fg { transition: none; } .gcard { transition: none; } }

/* ===== 資料卡 v2：儀表板式 ===== */
:root { --good: #2F6B4D; --mid: #8A6A12; --warn: #A5522B; --bad: #A12B3B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --good: #7CC79C; --mid: #E2C265; --warn: #E7A27C; --bad: #EE8E9B; } }
:root[data-theme="dark"] { --good: #7CC79C; --mid: #E2C265; --warn: #E7A27C; --bad: #EE8E9B; }
.gm { font-size: .82rem; color: var(--fg); margin-top: 10px; letter-spacing: .03em; }
.gsummary { font-size: 1.15rem; color: var(--muted); margin: 14px 0 0; max-width: 40em; line-height: 1.9; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 32px; }
.kpi { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.kpi .kl { font-size: .78rem; letter-spacing: .14em; color: var(--muted); }
.kpi .kv { font-family: var(--serif); font-size: 2.3rem; line-height: 1.15; font-weight: 500; }
.kpi .kv small { font-size: .95rem; color: var(--muted); font-weight: 400; }
.kpi .kv.sm { font-family: var(--sans); font-size: 1.25rem; font-weight: 400; margin-top: 4px; letter-spacing: .02em; }
.kpi .ks { font-size: .8rem; color: var(--muted); line-height: 1.6; margin-top: 4px; }
.dollars { display: flex; gap: 3px; margin-top: 6px; }
.dollars i { font-style: normal; font-family: var(--serif); font-size: 1.05rem; color: var(--line); line-height: 1; }
.dollars i.on { color: var(--cI); font-weight: 600; }
.steps { display: flex; gap: 4px; margin-top: 8px; }
.steps i { width: 22px; height: 6px; border-radius: 3px; background: var(--line); }
.steps i.on { background: var(--cI); }
.gp { margin-top: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; min-width: 0; }
.g2 > .gp { margin-top: 0; }
.gp > header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--cI) 9%, var(--panel)); }
.gp > header h2 { margin: 0; font-size: 1rem; font-weight: 500; letter-spacing: .12em; display: block; }
.gp > header h2::before { display: none; }
.gp > header span { font-size: .78rem; color: var(--muted); }
.gpb { padding: 18px 22px 20px; }
.gwrap .g2 { margin-top: 22px; align-items: stretch; }
.g2.plain .gbox { margin: 0; }
.fit { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: .95rem; border-bottom: 1px solid var(--line); }
.fit:last-child { border-bottom: 0; }
.dots5 { display: flex; gap: 6px; }
.dots5 i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.dots5 i.on { background: var(--cI); }
.gl { margin: 0; padding: 0; list-style: none; }
.gl li { position: relative; padding: 4px 0 4px 22px; font-size: .96rem; line-height: 1.8; }
.gl li::before { position: absolute; left: 0; font-family: var(--serif); }
.gl.yes li::before { content: "✓"; color: var(--good); } .gl.no li::before { content: "—"; color: var(--muted); } .gl.tipl li::before { content: "·"; color: var(--cI); font-weight: 700; }
.gbox .gl { margin: 0; }
.mchart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.mchart .mb { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--k) * .05s); }
.ready .mchart .mb { transform: scaleY(1); }
.mb.m3, .mleg i.m3 { fill: var(--cE); background: var(--cE); } .mb.m2, .mleg i.m2 { fill: #99CA6D; background: #99CA6D; } .mb.m1, .mleg i.m1 { fill: #DEBD53; background: #DEBD53; } .mb.m0, .mleg i.m0 { fill: var(--line); background: var(--line); }
.mchart .ml { font-size: 12px; fill: var(--muted); font-family: var(--sans); }
.mchart .tline { fill: none; stroke: var(--cD); stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s ease .5s; }
.ready .mchart .tline { stroke-dashoffset: 0; }
.mchart .tdot { fill: var(--panel); stroke: var(--cD); stroke-width: 2; }
.mleg { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .84rem; color: var(--muted); }
.mleg i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.mleg i.tl { height: 3px; border-radius: 2px; background: var(--cD); vertical-align: 3px; width: 18px; }
.mtab { overflow-x: auto; margin-top: 12px; }
.mtab table { border-collapse: collapse; font-size: .82rem; min-width: 640px; width: 100%; text-align: center; }
.mtab th, .mtab td { padding: 6px 4px; border-top: 1px solid var(--line); font-weight: 400; }
.mtab thead th { border-top: 0; color: var(--muted); font-size: .76rem; }
.mtab tbody th { text-align: left; color: var(--muted); white-space: nowrap; padding-right: 10px; }
.gnote2 { font-size: .9rem; color: var(--muted); margin: 14px 0 0; line-height: 1.8; }
.bi { padding: 8px 0; }
.bt { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .95rem; margin-bottom: 6px; }
.bt small { display: block; font-size: .76rem; color: var(--muted); }
.bt b { font-weight: 400; font-family: var(--serif); font-size: 1.1rem; white-space: nowrap; }
.btot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 14px; border-top: 2px solid var(--fg); font-size: 1rem; }
.btot b { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.etab { overflow-x: auto; }
.etab table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.etab th, .etab td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.75; }
.etab tbody tr:last-child th, .etab tbody tr:last-child td { border-bottom: 0; }
.etab thead th { font-size: .76rem; letter-spacing: .12em; color: var(--muted); font-weight: 400; padding-top: 0; }
.etab tbody th { white-space: nowrap; font-weight: 500; width: 8em; }
.vt { display: inline-block; padding: 1px 12px; border-radius: 999px; font-size: .8rem; white-space: nowrap; background: color-mix(in srgb, currentColor 13%, transparent); }
.vt.good { color: var(--good); } .vt.mid { color: var(--mid); } .vt.warn { color: var(--warn); } .vt.bad { color: var(--bad); }
.alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.al { display: grid; grid-template-columns: 4.6em 1fr; gap: 14px; padding: 12px 16px; border-radius: 6px; border-left: 4px solid; background: color-mix(in srgb, currentColor 7%, transparent); line-height: 1.75; font-size: .95rem; }
.al b { font-weight: 500; font-size: .85rem; letter-spacing: .06em; } .al span { color: var(--fg); }
.al.warn { color: var(--warn); } .al.info { color: var(--cD); } .al.ok { color: var(--good); }
.itin { list-style: none; margin: 0; padding: 0; position: relative; }
.itin li { display: grid; grid-template-columns: 6.5em 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; line-height: 1.8; }
.itin li:last-child { border-bottom: 0; } .itin b { font-weight: 500; color: var(--cI); }
@media (max-width: 860px) {
  .gpb { padding: 16px 16px 18px; } .gp > header { padding: 12px 16px; }
  .etab table, .etab thead, .etab tbody, .etab tr, .etab th, .etab td { display: block; }
  .etab thead { display: none; }
  .etab tr { padding: 12px 0; border-bottom: 1px solid var(--line); } .etab tbody tr:last-child { border-bottom: 0; }
  .etab th, .etab td { border: 0; padding: 2px 0; width: auto !important; }
  .etab td[data-l]::before { content: attr(data-l) "　"; font-size: .76rem; color: var(--muted); letter-spacing: .08em; }
  .itin li { grid-template-columns: 5.5em 1fr; } .al { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .ring .rf, .mchart .mb, .mchart .tline { transition: none; } }

.gcard .demo { font-style: normal; font-size: .7rem; padding: 0 8px; border-radius: 999px; border: 1px solid var(--cI); color: var(--cI); margin-left: 6px; vertical-align: 2px; }
.gcard .demo { white-space: nowrap; display: inline-block; }

/* 示範文章標籤 */
.posts .demo { font-style: normal; font-size: .7rem; padding: 0 8px; border-radius: 999px; border: 1px solid var(--muted); color: var(--muted); margin-left: 8px; vertical-align: 2px; white-space: nowrap; display: inline-block; letter-spacing: .04em; }
.article .mocknote { font-size: .85rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 4px; padding: 8px 14px; margin: 0 0 1.6em; }
.article ul { padding-left: 1.3em; line-height: 2; }
/* 地圖：點選地點後的文章面板 */
.mpanel { position: absolute; left: 14px; right: 14px; bottom: 14px; max-width: 420px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 14px 16px 10px; z-index: 3; }
.mpanel[hidden] { display: none; }
.mpanel h3 { margin: 0 0 6px; font-weight: 400; font-size: 1rem; letter-spacing: .06em; padding-right: 28px; }
.mpanel .x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.mpanel ul { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow: auto; }
.mpanel li a { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: .95rem; line-height: 1.5; }
.mpanel li a:hover span.tt { text-decoration: underline; text-underline-offset: 4px; }
.mpanel .ld { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; color: #fff; }
.mpanel .ld.cL { background: var(--cL); } .mpanel .ld.cI { background: var(--cI); color: #2A1B10; } .mpanel .ld.cV { background: var(--cV); color: #3A1020; } .mpanel .ld.cE { background: var(--cE); } .mpanel .ld.cD { background: var(--cD); }
.mpanel .none { margin: 4px 0 8px; font-size: .9rem; color: var(--muted); }
@media (max-width: 960px) { .mpanel { left: 8px; right: 8px; bottom: 8px; max-width: none; } }
