:root {
  color-scheme: light;
  --paper: #f8f5ee;
  --card: #fffdf8;
  --ink: #2b3029;
  --quiet: #645e55;
  --accent: #9c4032;
  --gold-text: #734808;
  --gold-fill: #f1bf52;
  --gold-paper: #fff3d4;
  --gold-line: #b08030;
  --line: #e4ded1;
  --serif: "Songti SC", "Noto Serif CJK SC", "STSong", "SimSun", serif;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; min-width: 0 }
button, input { font: inherit }
button { cursor: pointer; color: inherit }
a { color: inherit }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px }
button:disabled { opacity: .42; cursor: default }
.shell { width: min(1200px, calc(100% - 72px)); margin-inline: auto }
.skip { position: fixed; left: 12px; top: 12px; transform: translateY(-150%); padding: 10px 14px; z-index: 10; background: white }
.skip:focus { transform: translateY(0) }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); white-space: nowrap; overflow: hidden }
.masthead { background: #fffaf3; border-bottom: 1px solid var(--line) }
.masthead-inner, .intro, .card-head, .map-foot, .footer, .table-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px }
.masthead-inner { min-height: 68px }
.identity { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 19px; font-weight: 700; white-space: nowrap }
.identity small { display: block; margin-top: 3px; color: var(--quiet); font: 10px/1.1 -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: .06em }
.tabs { display: flex; background: #f3ede2; border: 1px solid var(--line); border-radius: 999px; padding: 3px; white-space: nowrap }
.tabs a { text-decoration: none; padding: 8px 15px; border-radius: 999px; color: var(--quiet); font-size: 13px; font-weight: 600 }
.tabs a[aria-current] { background: #fffdf8; color: var(--accent); box-shadow: 0 1px 3px #36331a20 }
.intro { align-items: flex-end; margin-block: 31px 23px }
.intro-copy { min-width: 0; flex: 1 }
.event-title { display: flex; align-items: center; gap: 12px }
.event-title h1 { min-width: 0; font-size: 38px; overflow-wrap: anywhere }
.event-title-favorite { flex-shrink: 0; font: 28px/1 system-ui, sans-serif }
.event-list { list-style: none; margin: 0; padding: 0 20px 20px }
.event-choice { padding: 16px 0; border-bottom: 1px solid var(--line) }
.event-choice-link { display: inline-block; font-size: 17px; font-weight: 700; overflow-wrap: anywhere }
.event-current { display: inline-block; font-size: 12px; color: var(--accent); margin-top: 8px }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .11em; color: var(--accent); font-weight: 600; margin: 0 0 7px }
.eyebrow > span:first-child { flex: 0 0 19px; height: 1px; background: currentColor }
.eyebrow > #event-theme { min-width: 0; line-height: 1.5 }
h1, h2, .event-info > span, #detail-brand { font-family: var(--serif) }
h1 { font-size: clamp(38px, 5vw, 56px); letter-spacing: .055em; line-height: 1.14; margin: 0 }
.intro-description { margin: 9px 0 0; color: var(--quiet); font-size: 14px; line-height: 1.55 }
.event-info { border-left: 1px solid var(--line); padding: 3px 0 3px 17px; flex-shrink: 0 }
.event-info > span { display: block; font-size: 22px; font-weight: 700; color: var(--accent); font-variant-numeric: lining-nums }
.event-info small { font-size: 12px; color: var(--quiet) }
.storage-notice { margin: -7px 0 12px; padding: 8px 12px; background: var(--gold-paper); color: var(--gold-text); border-radius: 8px; font-size: 13px; line-height: 1.5 }
.card { border-radius: 19px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 8px 30px #46351808 }
.card-head { padding: 16px 21px 10px }
.card-head h2 { font-size: 23px; margin: 0 }
.card-head p { margin: 5px 0 0; font-size: 13px; line-height: 1.55; color: var(--quiet) }
.map-stats, .table-caption, .footer, .map-foot { font-size: 12px; color: var(--quiet) }
.map-stats { text-align: right; white-space: nowrap; background: #f6f1e7; border-radius: 20px; padding: 5px 9px }
.zones { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 21px 11px }
.zones button { min-height: 33px; border: 1px solid var(--line); background: #fffdf9; border-radius: 100px; padding: 5px 10px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap }
.zones button:hover, .zones button[aria-pressed=true] { background: #f7ebe4; border-color: #bf8d7b; color: #89372b }
.dot { width: 8px; height: 8px; background: var(--zone); border: 1px solid var(--zone-edge); border-radius: 50%; flex: none }
[data-zone=A] { --zone: #e6e8b4; --zone-edge: #a3a748 }
[data-zone=B] { --zone: #dce8f3; --zone-edge: #7c9fbe }
[data-zone=C] { --zone: #f3d7d3; --zone-edge: #bf877b }
[data-zone=D] { --zone: #f1e7ae; --zone-edge: #a99036 }
[data-zone=E] { --zone: #e5ebde; --zone-edge: #869a77 }
[data-zone=X] { --zone: #eedaca; --zone-edge: #b18b70 }
.map-viewport { position: relative; min-height: 260px; height: clamp(320px, 35vw, 420px); overflow: hidden; margin-inline: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f3eee6; cursor: grab; touch-action: none; isolation: isolate }
.map-viewport.is-dragging { cursor: grabbing; user-select: none }
.map-world { position: absolute; left: 0; top: 0; width: 1414px; height: 388px; transform-origin: 0 0; user-select: none }
#floor-map, .booth-art, .poi-layer, .route-layer { position: absolute; inset: 0; width: 100%; height: 100% }
#floor-map, .booth-art { pointer-events: none }
.booth-art-block, .booth-art-grid { stroke: var(--zone-edge); stroke-width: .62 }
.booth-art-block { fill: var(--zone) }
.booth-art-grid { fill: none }
.booth-art-code { fill: #262b25; font: 700 8.6px ui-monospace, Menlo, Consolas, monospace; text-anchor: middle; dominant-baseline: central }
.booth-art [data-zone=X] .booth-art-code { font-size: 6.8px }
.booth-art-circle { stroke: #fff; stroke-width: .6 }
.booth-art-code.circle-code { fill: #101810; font-size: 7px; paint-order: stroke; stroke: #fff8; stroke-width: .3 }
.poi[data-shape=circle] { border-radius: 50% }
.route-layer { pointer-events: none; overflow: visible }
.route-active-layer { z-index: 2 }
.route-block { fill: #784a4f18; stroke: #784a4f50; stroke-width: .6 }
.route-aisle, .route-halo, .route-line { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke }
.route-aisle { stroke: #24736f; stroke-width: 1.6; opacity: .8 }
.route-halo { stroke: #fffeff; stroke-width: 5 }
.route-line { stroke: #1756a4; stroke-width: 2.8 }
.route-marker { stroke: white; stroke-width: 1.4; vector-effect: non-scaling-stroke; fill: #1756a4 }
.route-start { fill: #17675e }
.route-review-marker { fill: #944900 }
.route-marker-label { fill: white; font: bold 6px system-ui, sans-serif; text-anchor: middle; dominant-baseline: central }
.poi { position: absolute; padding: 0; border: 1px solid transparent; border-radius: 4px; width: 17px; height: 16px; background: transparent; transform: translate(-50%, -50%); color: var(--accent); }
.poi:hover, .poi:focus-visible { background: #fff7dc60; border-color: #a34838; z-index: 1 }
.poi[data-zone=X] { width: 12px }
.poi[data-favorite] { border-color: var(--gold-line); background: #ffefb853 }
.favorite-pin { position: absolute; right: -6px; top: -7px; display: grid; place-items: center; width: 17px; height: 17px; color: #6c4307; background: #fff9e9; border: 1px solid #b88a36; border-radius: 50%; transform: scale(var(--pin-scale, 1)); transform-origin: right top; pointer-events: none; }
.favorite-pin svg { fill: var(--gold-fill) }
.poi[aria-pressed=true] { background: #fbe3d56b; border: 1.5px solid #9c4032; box-shadow: 0 0 0 1.5px #fffbf3; z-index: 2 }
.poi[aria-pressed=true]::after { content: attr(data-code); position: absolute; top: -3px; left: 50%; transform: translate(-50%, -100%); font: 700 10px/1.2 system-ui,sans-serif; background: #9c4032; color: white; padding: 1px 4px; border-radius: 3px }
.map-controls { position: absolute; z-index: 3; top: 10px; right: 10px; display: grid; border: 1px solid var(--line); border-radius: 11px; background: var(--card); box-shadow: 0 3px 14px #3b32251c; touch-action: manipulation }
.map-controls button { width: 38px; height: 38px; border: 0; background: transparent; display: grid; place-items: center; font-size: 21px; padding: 0 }
.map-controls button + button { border-top: 1px solid var(--line) }
.map-controls button:hover:enabled { color: var(--accent) }
svg { display: block }
.zoom-level { position: absolute; bottom: 10px; right: 10px; border-radius: 5px; padding: 3px 6px; font-size: 11px; color: #514a41; background: #fffbf5e8; pointer-events: none }
.booth-detail { position: absolute; width: min(278px, calc(100% - 18px)); max-height: min(70%, 290px); overflow: auto; z-index: 4; background: #fffdf9; border: 1px solid #d1b5a6; border-top: 3px solid var(--accent); border-radius: 11px; padding: 11px 14px; box-shadow: 0 7px 28px #4b30252b; cursor: auto; overscroll-behavior: contain; touch-action: pan-y }
.close { position: absolute; right: 7px; top: 5px; width: 32px; height: 32px; padding: 0; background: transparent; border: 0; border-radius: 6px; font-size: 23px; color: var(--quiet) }
.close:hover { background: #f5eee5 }
.detail-tools { display: flex; align-items: center; gap: 8px; padding-inline-end: 26px }
.detail-tools > .favorite-button { width: 36px; height: 36px; flex-shrink: 0 }
.detail-tools > .member-favorites { min-width: 0; flex: 1 }
.detail-tools .member-favorites[open] > .member-choices { position: static; width: 100%; box-shadow: none }
#detail-brand { font-size: 19px; margin: 6px 24px 0 0; line-height: 1.23; overflow-wrap: anywhere }
.detail-links { display: grid; gap: 5px; margin-top: 8px }
.detail-links a { color: var(--accent); font-size: 13px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere }
.detail-note { margin: 7px 0 0; color: var(--quiet); font-size: 12px; line-height: 1.42 }
.route-form { display: grid; gap: 5px; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; font-size: 13px }
.route-form label { font-weight: 650 }
.route-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px }
.route-fields input { min-width: 0; width: 100%; border: 1px solid #b9bbaf; background: #fffefa; border-radius: 7px; padding: 5px 8px; font-size: 16px }
.route-fields input[aria-invalid=true] { border-color: var(--accent) }
.route-fields button, .route-panel button, .route-actions button { min-height: 34px; border: 1px solid #a8b8b5; border-radius: 8px; background: #f4faf7; color: #235e55; padding: 4px 8px; white-space: nowrap; font-size: 12px; font-weight: 650 }
.route-fields button { min-height: 40px; background: #1756a4; border-color: #1756a4; color: white }
.route-error { margin: 0; color: #8a3227; line-height: 1.4 }
.route-error:empty { display: none }
.route-summary, .route-panel { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 12px 0; font-size: 12px }
.route-summary { border: 1px solid #b8d0ef; border-radius: 9px; background: #eef5ff; color: #164e91; padding: 6px 9px }
.route-actions { display: flex; gap: 6px }
.route-panel { padding: 0 4px; color: var(--quiet) }
.route-panel button[aria-pressed=true] { background: #dceee8; border-color: #528578 }
.route-review { margin: 8px 12px 0; padding: 8px 12px; font-size: 12px; color: var(--quiet); border: 1px solid #e6d3ad; border-radius: 9px; background: #fff8e7 }
.route-review p { margin: 0 }
.route-review ol { margin: 6px 0 0; padding-inline-start: 20px; line-height: 1.45 }
.route-review li + li { margin-top: 4px }
.route-review-locate { border: 0; padding: 2px 0; background: transparent; color: #874102; font-weight: 650; text-align: left; text-decoration: underline; text-underline-offset: 2px }
.route-key { display: inline-block; vertical-align: middle; width: 16px; margin-inline: 0 4px; border-top: 2px solid #24736f }
.route-key.pending { margin-inline-start: 8px; width: 8px; height: 8px; border: 0; border-radius: 50%; background: #944900 }
.map-foot { padding: 10px 16px 12px; line-height: 1.4 }
.map-legend { display: inline-flex; align-items: center; gap: 5px }
#favorite-legend { color: var(--gold-text) }
#favorite-legend svg { fill: var(--gold-fill) }
.map-foot a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px }
.footer { margin-block: 14px 23px; line-height: 1.5; }
.list-head { align-items: center }
.search { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: #fffaf3; color: var(--quiet); width: min(345px, 45%); }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px }
.search input { width: 100%; height: 42px; min-width: 0; border: 0; background: transparent; outline: 0; color: var(--ink); font-size: 16px; }
.search input::placeholder { font-size: 13px; color: var(--quiet) }
.table-caption { padding: 8px 21px; border-block: 1px solid var(--line); background: #f8f3e9 }
.favorite-filter { display: flex; align-items: center; gap: 5px; border-radius: 999px; color: var(--gold-text); border: 1px solid var(--line); background: var(--card); padding: 5px 9px; min-height: 34px; white-space: nowrap }
.favorite-filter:hover, .favorite-filter[aria-pressed=true] { background: var(--gold-paper); border-color: var(--gold-line) }
.favorite-filter[aria-pressed=true] svg { fill: var(--gold-fill) }
#favorite-count { display: grid; min-width: 18px; place-items: center; padding-inline: 3px; border-radius: 9px; background: #f4e7cb; font-variant-numeric: tabular-nums }
.booth-list { list-style: none; padding: 0 21px; margin: 0 }
.booth-row { display: grid; grid-template-columns: 55px minmax(0, 1fr) 44px 44px; align-items: center; gap: 10px; min-height: 57px; padding-block: 6px }
.booth-row + .booth-row { border-top: 1px solid #eee8dc }
.booth-code { display: inline-flex; width: fit-content; min-width: 41px; align-items: center; justify-content: center; background: var(--zone, #f4e6db); color: var(--ink); border-radius: 5px; padding: 3px 6px; font: 650 12px/1.25 system-ui,sans-serif; letter-spacing: .02em }
.brand-main { color: var(--ink); font-weight: 650; font-size: 15px; overflow-wrap: anywhere }
a.brand-main { text-decoration: none }
a.brand-main:hover { color: var(--accent); text-decoration: underline }
.external-mark { color: var(--accent); font-size: 12px; margin-inline-start: 5px }
.extra-links { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 4px }
.extra-links a, .row-note { font-size: 12px; line-height: 1.45 }
.extra-links a { color: var(--accent); overflow-wrap: anywhere }
.row-note { color: var(--quiet); margin: 3px 0 0 }
.locate { width: 44px; height: 44px; color: var(--accent); border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; text-decoration: none; }
.locate:hover { border-color: #bf8d7b; background: #faeee7 }
.favorite-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--gold-text); background: var(--card) }
.favorite-button:hover, .favorite-button[aria-pressed=true] { border-color: var(--gold-line); background: var(--gold-paper) }
.capability-notice { color: var(--quiet); font-size: 14px }
.personal-panel { padding: 14px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card) }
.personal-panel summary { cursor: pointer; font-weight: bold; padding: 5px }
.legacy-row { display: flex; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line) }
.legacy-row > * { margin-right: 10px; margin-bottom: 5px }
.personal-favorite { padding: 18px 0; border-bottom: 1px solid var(--line) }
#my-favorites { padding: 0 20px 20px }
#my-event-favorites { padding: 0 20px 20px }
.favorite-tabs { display: flex; gap: 8px; padding: 0 20px 14px }
.favorite-tabs button { border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; background: var(--card); color: var(--quiet) }
.favorite-tabs button[aria-selected=true] { background: var(--gold-paper); border-color: var(--gold-line); color: var(--gold-text) }
.event-favorite-link { min-width: 0; overflow-wrap: anywhere; font-weight: 700 }
.personal-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.personal-brand { min-width: 0; overflow-wrap: anywhere }
.personal-brand > .brand-main { font-weight: 700; font-size: 17px }
.brand-links a { margin-right: 10px }
.personal-heading > .favorite-button { flex-shrink: 0 }
.current-favorites-filter { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer }
.favorites-help { padding: 0 20px; color: var(--quiet); font-size: 13px }
#favorites-view .table-caption { flex-wrap: wrap }
#personal-count, .current-favorites-filter { white-space: nowrap }
.recent-attendance { margin-top: 10px }
.recent-attendance summary { cursor: pointer; color: var(--accent); padding: 6px 0 }
.attendance-event { display: flex; flex-direction: column; gap: 3px; padding: 9px 12px; margin-top: 5px; border-left: 2px solid var(--line) }
.attendance-event a { overflow-wrap: anywhere }
.legacy-row > strong { width: 100% }
.member-favorites { position: relative }
.member-favorites summary { cursor: pointer; font-size: 23px; color: var(--gold-text); padding: 7px; list-style: none }
.member-favorites[open] { z-index: 12 }
.member-favorites[open] > .member-choices { position: absolute; right: 0; width: 260px; background: var(--card); border: 1px solid var(--line); padding: 12px; border-radius: 10px; box-shadow: 0 5px 18px #0002 }
.member-choices > .favorite-button { margin-bottom: 5px; white-space: normal; text-align: left; height: auto; min-height: 36px }
.locate[aria-disabled=true] { opacity: .35; cursor: default }
.favorite-button[aria-pressed=true] svg { fill: var(--gold-fill) }
.detail-favorite { display: inline-flex; justify-content: center; gap: 4px; width: auto; height: 36px; padding-inline: 8px; font-size: 12px; white-space: nowrap }
.empty { padding: 24px; text-align: center; color: var(--quiet) }
.empty button { border: 1px solid #c8a294; border-radius: 8px; background: #fff8f1; color: var(--accent); padding: 8px 15px }
@media (max-width: 670px) {
  .shell { width: calc(100% - 24px) }
  .masthead-inner { min-height: 61px; gap: 7px }
  .masthead-inner { flex-wrap: wrap; padding-block: 10px }
  .tabs { max-width: 100%; flex-wrap: wrap }
  .identity { font-size: 15px; gap: 5px }
  .identity img { width: 29px; height: 29px }
  .identity small { font-size: 9px }
  .tabs a { font-size: 12px; padding-inline: 10px }
  .intro { flex-direction: column; gap: 9px; align-items: flex-start; margin-block: 20px 14px }
  .intro-copy { width: 100% }
  .event-title h1 { font-size: 26px; line-height: 1.35; letter-spacing: 0 }
  .event-title { gap: 8px }
  .intro-description { font-size: 13px; margin-top: 6px }
  .event-info { padding-inline-start: 8px }
  .event-info > span { font-size: 15px; display: inline; margin-inline-end: 4px }
  .event-info small { font-size: 11px }
  .card { border-radius: 14px }
  .card-head { padding: 12px 12px 9px; gap: 8px }
  .card-head h2 { font-size: 20px }
  .card-head p, .map-stats { font-size: 11px }
  .zones { padding: 0 12px 9px; gap: 4px }
  .zones button { min-height: 33px; padding-inline: 8px }
  .map-viewport { margin-inline: 7px; height: clamp(310px, 49vh, 400px) }
  .booth-detail { width: auto; left: 7px !important; right: 7px; top: auto !important; bottom: 7px; max-height: 61% }
  .map-foot { padding: 8px 12px 10px; font-size: 11px }
  .map-hint { display: none }
  .footer { margin: 11px 0 17px; flex-wrap: wrap; gap: 4px; font-size: 11px }
  .list-head { align-items: stretch; flex-direction: column }
  .search { width: 100% }
  .booth-list, .table-caption { padding-inline: 12px }
  .booth-row { grid-template-columns: 42px minmax(0, 1fr) 44px 44px; gap: 6px }
}
