body.product {
  --night: #050707;
  --night-2: #0b0f0e;
  --night-3: #121816;
  --surface: rgba(13, 18, 16, .92);
  --surface-solid: #0d1210;
  --product-line: rgba(226, 255, 238, .15);
  --product-muted: #9aa8a0;
  --product-text: #f2f8f4;
  --signal: #b8ff35;
  --teal: #22c1ad;
  --warm: #ffb45c;
  min-height: 100dvh;
  color: var(--product-text);
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 193, 173, .12), transparent 33rem),
    radial-gradient(circle at 88% 18%, rgba(184, 255, 53, .08), transparent 28rem),
    var(--night);
}

body.product a { color: inherit; }
body.product [hidden] { display: none !important; }
body.product input,
body.product select {
  color-scheme: dark;
  border-color: var(--product-line);
  border-radius: 12px;
  color: var(--product-text);
  background: #121816;
}
body.product select option { color: #f2f8f4; background: #121816; }
body.product input::placeholder { color: #748078; }
body.product button,
body.product .button { border-radius: 999px; }
body.product button.secondary,
body.product .button.secondary { border-color: var(--product-line); color: var(--product-text); }
body.product button.secondary:hover,
body.product .button.secondary:hover { background: rgba(255, 255, 255, .08); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.product-topbar {
  position: sticky;
  z-index: 90;
  top: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 8px clamp(14px, 3vw, 34px);
  border-bottom: 1px solid var(--product-line);
  background: rgba(5, 7, 7, .88);
  backdrop-filter: blur(18px);
}
.product-brand { font: 14px var(--display); letter-spacing: .12em; }
.product-brand span { color: var(--teal); font: 10px var(--mono); }
.product-nav { justify-self: center; display: flex; gap: 4px; padding: 4px; border: 1px solid var(--product-line); border-radius: 999px; }
.product-nav a { min-height: 40px; padding: 9px 17px; border-radius: 999px; color: var(--product-muted); font: 12px var(--mono); display: grid; place-items: center; }
.product-nav a[aria-current='page'] { color: var(--night); background: var(--signal); }
.product-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.product-account { min-height: 44px; min-width: 68px; padding: 8px 13px; border-color: var(--product-line); background: transparent; color: var(--product-text); font: 11px var(--mono); }
.theme-switch { display: grid; grid-template-columns: repeat(2,minmax(48px,1fr)); padding: 3px; border: 1px solid var(--product-line); border-radius: 999px; background: rgba(5,7,7,.72); }
.theme-switch button { min-width: 48px; min-height: 44px; padding: 7px 11px; border: 0; background: transparent; color: var(--product-muted); font: 10px var(--mono); }
.theme-switch button:hover { background: rgba(255,255,255,.07); }
.theme-switch button[aria-pressed="true"] { background: var(--signal); color: var(--night); }

.product-shell { width: min(1540px, 100%); margin: 0 auto; padding: clamp(14px, 2.4vw, 32px); }
.product-kicker { margin: 0 0 6px; color: var(--teal); font: 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.product-title { margin: 0; color: var(--product-text); font: clamp(28px, 5vw, 62px)/1.02 var(--display); letter-spacing: -.04em; }
.product-subtitle { margin: 10px 0 0; max-width: 720px; color: var(--product-muted); font-size: clamp(14px, 2vw, 17px); }
.product-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--product-muted); font: 11px var(--mono); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 14px rgba(184, 255, 53, .8); }
.status-dot.warn { background: var(--warm); box-shadow: none; }

.product-controls {
  display: grid;
  grid-template-columns: minmax(210px, 1.15fr) repeat(4, minmax(132px, .55fr)) auto;
  align-items: end;
  gap: 10px;
  margin: 18px 0;
}
.control-field { min-width: 0; display: grid; gap: 7px; }
.control-label { margin: 0; color: #c8d4cc; font: 10px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.product-controls .control-search { position: relative; }
.product-controls input,
.product-controls select { width: 100%; min-width: 0; height: 48px; }
.product-controls button { min-height: 48px; white-space: nowrap; }
.control-primary { border-color: var(--signal); background: var(--signal); color: var(--night); font-weight: 700; }
.control-primary:hover { background: #cbff70; }

.scene-picker { margin: 22px 0 4px; padding: 16px; border: 1px solid var(--product-line); border-radius: 18px; background: rgba(13,18,16,.74); }
.scene-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.scene-heading p { margin: 5px 0 0; color: var(--product-muted); font-size: 12px; }
.scene-heading > span { color: #738078; font: 9px var(--mono); white-space: nowrap; }
.scene-chips { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
.scene-chips button { min-width: 0; min-height: 64px; display: grid; align-content: center; gap: 4px; padding: 10px 12px; border-color: var(--product-line); border-radius: 13px; background: #101613; color: var(--product-text); text-align: left; }
.scene-chips button:hover { background: rgba(255,255,255,.075); }
.scene-chips button[aria-pressed="true"] { border-color: var(--signal); background: rgba(184,255,53,.11); box-shadow: inset 0 0 0 1px rgba(184,255,53,.28); }
.scene-chips b { font-size: 13px; }
.scene-chips small { overflow: hidden; color: var(--product-muted); font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }

.map-workspace { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .75fr); min-height: calc(100dvh - 210px); border: 1px solid var(--product-line); border-radius: 24px; overflow: hidden; background: var(--night-2); }
.radar-panel { position: relative; min-height: 640px; overflow: hidden; background: radial-gradient(circle at center, rgba(34, 193, 173, .08), transparent 54%), #07100d; }
.radar-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: linear-gradient(rgba(184,255,53,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(184,255,53,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle, #000 22%, transparent 78%);
}
.radar-sweep { position: absolute; inset: 8%; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 82%, rgba(184,255,53,.16) 94%, transparent 100%); animation: radar-sweep 9s linear infinite; pointer-events: none; }
.radar-ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: var(--size); aspect-ratio: 1; border: 1px solid rgba(184,255,53,.17); border-radius: 50%; pointer-events: none; }
.radar-ring span { position: absolute; right: 8%; top: 48%; padding: 2px 5px; background: #07100d; color: #76917f; font: 9px var(--mono); }
.radar-axis { position: absolute; background: rgba(184,255,53,.12); pointer-events: none; }
.radar-axis.x { left: 5%; right: 5%; top: 50%; height: 1px; }
.radar-axis.y { top: 5%; bottom: 5%; left: 50%; width: 1px; }
.radar-center { position: absolute; z-index: 3; left: 50%; top: 50%; width: 13px; height: 13px; transform: translate(-50%,-50%); border: 3px solid var(--night); border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 5px rgba(184,255,53,.14), 0 0 24px rgba(184,255,53,.75); }
.radar-point { position: absolute; z-index: 4; width: 44px; min-width: 44px; min-height: 44px; height: 44px; padding: 0; transform: translate(-50%, -50%); border: 0; background: transparent; box-shadow: none; }
.radar-point::before { content: ''; position: absolute; left: 50%; top: 50%; width: var(--node, 10px); height: var(--node, 10px); transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.75); border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px rgba(34,193,173,.7); transition: width .16s ease,height .16s ease,filter .16s ease; }
.radar-point.has-event::before { background: var(--signal); box-shadow: 0 0 16px rgba(184,255,53,.9); }
.radar-point.active::before { width: 18px; height: 18px; border: 4px solid rgba(255,255,255,.88); }
.radar-caption { position: absolute; z-index: 5; left: 18px; top: 18px; max-width: 260px; padding: 10px 12px; border: 1px solid var(--product-line); border-radius: 12px; background: rgba(5,7,7,.76); color: var(--product-muted); font: 10px/1.5 var(--mono); }
.radar-legend { position: absolute; z-index: 5; left: 18px; bottom: 18px; display: flex; gap: 12px; padding: 9px 12px; border-radius: 999px; background: rgba(5,7,7,.8); color: var(--product-muted); font: 10px var(--mono); }
.radar-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--teal); }
.radar-legend i.event { background: var(--signal); }
.night-radar-layer { position: absolute; inset: 0; }
.gta-vector-map,.gta-map-stage,.gta-map-meta,.gta-map-detail-status,.gta-compass,.gta-map-scale,.gta-map-controls,.gta-map-help,.gta-hud,.venue-blip,.detail-blip { display: none; }

.venue-panel { min-width: 0; display: grid; grid-template-rows: auto 1fr; border-left: 1px solid var(--product-line); background: var(--surface-solid); }
.venue-summary { padding: 16px; border-bottom: 1px solid var(--product-line); color: var(--product-muted); font: 11px var(--mono); }
.venue-feed { min-height: 0; max-height: calc(100dvh - 260px); overflow: auto; }
.venue-row { width: 100%; min-height: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 16px; border: 0; border-bottom: 1px solid var(--product-line); border-radius: 0 !important; background: transparent; color: var(--product-text); text-align: left; }
.venue-row:hover,.venue-row.active { background: rgba(184,255,53,.075); }
.venue-index { color: #66746c; font: 10px var(--mono); }
.venue-copy b { display: block; margin-bottom: 4px; font-size: 15px; }
.venue-copy span { color: var(--product-muted); font-size: 12px; }
.venue-copy .venue-reason,.venue-copy .quality-caveat { display: block; margin-top: 6px; color: #c5d4cb; font-size: 11px; line-height: 1.45; }
.venue-copy .quality-caveat { color: var(--warm); }
.venue-signal { color: var(--signal); font: 10px var(--mono); white-space: nowrap; }
.scenario-tags { display: flex !important; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.scenario-tags span { display: inline-flex; padding: 3px 7px; border: 1px solid rgba(34,193,173,.3); border-radius: 999px; background: rgba(34,193,173,.08); color: #9fe9dc; font: 9px var(--mono); }

.calendar-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.calendar-workspace { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(330px, .7fr); gap: 18px; }
.calendar-frame { min-width: 0; padding: 14px; border: 1px solid var(--product-line); border-radius: 22px; background: var(--surface-solid); }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.calendar-toolbar h2 { margin: 0; color: var(--product-text); font: clamp(17px,2.2vw,24px) var(--display); }
.calendar-toolbar .row { flex-wrap: nowrap; }
.calendar-toolbar button { min-width: 44px; padding: 8px 12px; }
.calendar-host { min-height: 620px; }
.agenda-panel { min-width: 0; border: 1px solid var(--product-line); border-radius: 22px; overflow: hidden; background: var(--surface-solid); }
.agenda-head { padding: 18px; border-bottom: 1px solid var(--product-line); }
.agenda-head h2 { margin: 0 0 5px; color: var(--product-text); font: 18px var(--display); }
.agenda-head p { margin: 0; color: var(--product-muted); font: 11px var(--mono); }
.agenda-feed { max-height: 690px; overflow: auto; }
.agenda-card { width: 100%; min-height: 0; display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 13px; padding: 16px; border: 0; border-bottom: 1px solid var(--product-line); border-radius: 0 !important; background: transparent; color: var(--product-text); text-align: left; }
.agenda-card:hover { background: rgba(34,193,173,.08); }
.agenda-time { color: var(--signal); font: 11px/1.5 var(--mono); }
.agenda-copy b { display: block; margin-bottom: 5px; }
.agenda-copy span { color: var(--product-muted); font-size: 12px; }

.ec { --ec-bg-color: transparent; --ec-border-color: rgba(226,255,238,.12); --ec-text-color: var(--product-text); --ec-today-bg-color: rgba(184,255,53,.08); --ec-event-bg-color: var(--teal); --ec-event-text-color: #04110d; }
.ec .ec-header { display: none; }
.ec .ec-day-head { color: var(--product-muted); font: 10px var(--mono); }
.ec .ec-day { min-height: 88px; }
.ec .ec-day.ec-today .ec-day-head { color: var(--signal); }
.ec .ec-event { border-radius: 5px; font-size: 11px; }

.detail-sheet { position: fixed; z-index: 120; inset: 0; display: grid; align-items: end; background: rgba(0,0,0,.62); backdrop-filter: blur(7px); }
.detail-sheet[hidden] { display: none; }
.detail-card { width: min(760px, calc(100% - 24px)); max-height: min(86dvh, 780px); margin: 0 auto 12px; overflow: auto; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; background: #101613; box-shadow: 0 -24px 80px rgba(0,0,0,.55); animation: sheet-in .22s ease-out; }
.detail-hero { position: relative; min-height: 120px; padding: 24px; display: grid; align-content: end; background: radial-gradient(circle at 20% 20%, rgba(34,193,173,.24), transparent 55%), #0a0e0c; }
.detail-hero.has-cover { min-height: 260px; background-size: cover; background-position: center; }
.detail-hero.has-cover::after { content:''; position:absolute; inset:0; background: linear-gradient(transparent 20%, rgba(5,7,7,.92)); }
.detail-hero > * { position: relative; z-index: 2; }
.detail-hero h2 { margin: 7px 46px 0 0; color: #fff; font: clamp(22px,4.5vw,38px)/1.15 var(--display); }
.detail-close { position: absolute !important; z-index: 4 !important; right: 14px; top: 14px; width: 44px; min-width: 44px; height: 44px; padding: 0; border-color: rgba(255,255,255,.22); background: rgba(5,7,7,.72); color: #fff; }
.detail-body { padding: 22px; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0 0 18px; }
.detail-fact { padding: 12px; border: 1px solid var(--product-line); border-radius: 13px; }
.detail-fact small { display: block; margin-bottom: 4px; color: var(--product-muted); font: 9px var(--mono); text-transform: uppercase; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.detail-actions .primary { border-color: var(--signal); background: var(--signal); color: var(--night); }
.detail-description { color: #c9d4cd; }
.recommendation-box { margin: 0 0 16px; padding: 14px; border: 1px solid rgba(184,255,53,.25); border-radius: 14px; background: rgba(184,255,53,.07); }
.recommendation-box b { color: var(--signal); }
.recommendation-box p { margin: 6px 0; color: #e1ebe5; font-size: 13px; }
.recommendation-box small { color: var(--product-muted); font-size: 10px; line-height: 1.5; }

.empty-product { padding: 30px 18px; color: var(--product-muted); text-align: center; }
.product-toast { position: fixed; z-index: 180; left: 50%; bottom: 22px; transform: translateX(-50%); max-width: calc(100% - 30px); padding: 11px 15px; border: 1px solid var(--product-line); border-radius: 999px; background: #edf9f0; color: #09100c; font-size: 13px; box-shadow: 0 16px 44px rgba(0,0,0,.35); }
.product-toast[hidden] { display: none; }

html[data-map-theme='gta'] body.product {
  --accent: #f5c842;
  --night: #080806;
  --night-2: #0d0e0b;
  --night-3: #171711;
  --surface: rgba(16,16,12,.94);
  --surface-solid: #10100d;
  --product-line: rgba(246,234,194,.24);
  --product-muted: #b3ad98;
  --product-text: #f6f2e6;
  --signal: #f5c842;
  --teal: #61dfcf;
  --warm: #ff6a55;
  background:
    repeating-linear-gradient(0deg,rgba(255,255,255,.018) 0 1px,transparent 1px 4px),
    radial-gradient(circle at 78% 8%,rgba(245,200,66,.13),transparent 31rem),
    radial-gradient(circle at 8% 28%,rgba(97,223,207,.08),transparent 28rem),
    #080806;
}
html[data-map-theme='gta'] body.product .product-topbar { border-bottom-color: rgba(245,200,66,.35); background: rgba(8,8,6,.94); backdrop-filter: blur(10px); }
html[data-map-theme='gta'] body.product .product-brand { color: #fff8df; font-weight: 800; transform: skew(-7deg); }
html[data-map-theme='gta'] body.product .product-brand span { color: var(--signal); }
html[data-map-theme='gta'] body.product .product-nav,
html[data-map-theme='gta'] body.product .theme-switch { border-radius: 3px; background: #11110d; }
html[data-map-theme='gta'] body.product .product-nav a,
html[data-map-theme='gta'] body.product .theme-switch button,
html[data-map-theme='gta'] body.product .product-account { border-radius: 2px; }
html[data-map-theme='gta'] body.product .product-nav a[aria-current='page'],
html[data-map-theme='gta'] body.product .theme-switch button[aria-pressed='true'] { color: #161207; background: var(--signal); box-shadow: inset 0 -3px 0 rgba(0,0,0,.32); }
html[data-map-theme='gta'] body.product .product-shell > header { position: relative; padding-left: clamp(14px,2vw,26px); border-left: 5px solid var(--signal); }
html[data-map-theme='gta'] body.product .product-kicker { color: var(--signal); font-weight: 700; }
html[data-map-theme='gta'] body.product .product-title { max-width: 1020px; font-family: var(--body); font-weight: 900; font-style: italic; letter-spacing: -.055em; text-transform: uppercase; text-shadow: 4px 4px 0 rgba(0,0,0,.6); }
html[data-map-theme='gta'] body.product .product-status { width: fit-content; margin-top: 10px; padding: 6px 10px; border-left: 3px solid var(--teal); background: rgba(0,0,0,.34); color: #d9d2bc; text-transform: uppercase; }
html[data-map-theme='gta'] body.product .status-dot { border-radius: 1px; background: var(--teal); box-shadow: 0 0 12px rgba(97,223,207,.85); }
html[data-map-theme='gta'] body.product .scene-picker,
html[data-map-theme='gta'] body.product .map-workspace { border-radius: 4px; border-color: rgba(245,200,66,.28); }
html[data-map-theme='gta'] body.product .scene-picker { background: linear-gradient(120deg,rgba(245,200,66,.07),transparent 34%),#0e0f0c; }
html[data-map-theme='gta'] body.product .scene-chips button { position: relative; border-radius: 2px; background: #151611; box-shadow: inset 4px 0 0 rgba(246,234,194,.12); }
html[data-map-theme='gta'] body.product .scene-chips button[aria-pressed='true'] { border-color: var(--signal); background: linear-gradient(105deg,rgba(245,200,66,.2),rgba(245,200,66,.04)); box-shadow: inset 5px 0 0 var(--signal); }
html[data-map-theme='gta'] body.product input,
html[data-map-theme='gta'] body.product select { border-radius: 2px; background: #12130f; }
html[data-map-theme='gta'] body.product .control-primary { border-radius: 2px; box-shadow: 4px 4px 0 #473a10; }
html[data-map-theme='gta'] body.product .radar-panel { isolation: isolate; background: radial-gradient(circle at center,rgba(97,223,207,.08),transparent 51%),#0a0d0b; }
html[data-map-theme='gta'] body.product .radar-panel::before { opacity: .44; mask-image: none; background-image: linear-gradient(rgba(246,234,194,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(246,234,194,.08) 1px,transparent 1px),linear-gradient(32deg,transparent 0 47%,rgba(97,223,207,.055) 48% 49%,transparent 50% 100%); background-size: 46px 46px,46px 46px,116px 116px; }
html[data-map-theme='gta'] body.product .radar-panel::after { content: ''; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg,transparent 0 3px,rgba(0,0,0,.1) 3px 4px),radial-gradient(circle,transparent 48%,rgba(0,0,0,.58) 100%); }
html[data-map-theme='gta'] body.product .radar-sweep { background: conic-gradient(from 0deg,transparent 0 86%,rgba(245,200,66,.14) 95%,transparent 100%); animation-duration: 12s; }
html[data-map-theme='gta'] body.product .radar-ring { border-color: rgba(246,234,194,.22); }
html[data-map-theme='gta'] body.product .radar-ring span { border-left: 2px solid var(--signal); border-radius: 0; background: #0a0d0b; color: #c9c0a2; }
html[data-map-theme='gta'] body.product .radar-axis { background: rgba(246,234,194,.15); }
html[data-map-theme='gta'] body.product .radar-center { width: 19px; height: 22px; border: 0; border-radius: 0; background: var(--teal); clip-path: polygon(50% 0,100% 100%,50% 78%,0 100%); box-shadow: 0 0 20px rgba(97,223,207,.85); }
html[data-map-theme='gta'] body.product .radar-point::before { width: 30px; height: 30px; border: 0; border-radius: 0; background: center / contain no-repeat var(--blip-url); box-shadow: none; filter: drop-shadow(0 2px 1px #000) drop-shadow(0 0 4px rgba(255,255,255,.28)); }
html[data-map-theme='gta'] body.product .radar-point.has-event::before { background: center / contain no-repeat var(--blip-url); box-shadow: none; filter: drop-shadow(0 2px 1px #000) drop-shadow(0 0 7px rgba(245,200,66,.95)); }
html[data-map-theme='gta'] body.product .radar-point.active::before { width: 38px; height: 38px; border: 0; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 9px var(--signal)); }
html[data-map-theme='gta'] body.product .radar-caption { border-radius: 2px; border-left: 4px solid var(--signal); background: rgba(8,8,6,.88); color: #ddd5bd; }
html[data-map-theme='gta'] body.product .radar-legend { border: 1px solid rgba(246,234,194,.18); border-radius: 2px; background: rgba(8,8,6,.88); }
html[data-map-theme='gta'] body.product .radar-legend i { width: 18px; height: 18px; margin-right: 6px; border-radius: 0; vertical-align: middle; background: center / contain no-repeat url('./assets/radar/gta/venue-default.png'); }
html[data-map-theme='gta'] body.product .radar-legend i.event { background: center / contain no-repeat url('./assets/radar/gta/venue-hot.png'); }
html[data-map-theme='gta'] body.product .gta-hud { position: absolute; z-index: 6; top: 18px; right: 18px; min-width: 230px; display: grid; gap: 7px; padding: 12px 14px; border-right: 4px solid var(--signal); background: linear-gradient(90deg,rgba(8,8,6,.58),rgba(8,8,6,.94)); text-align: right; }
html[data-map-theme='gta'] body.product .gta-hud-line { color: var(--signal); font: 8px var(--mono); letter-spacing: .14em; }
html[data-map-theme='gta'] body.product .gta-hud-main { display: flex; align-items: baseline; justify-content: flex-end; gap: 12px; }
html[data-map-theme='gta'] body.product .gta-hud-main b { color: #fff8df; font-size: 17px; font-style: italic; }
html[data-map-theme='gta'] body.product .gta-hud-main span { color: #c9c0a2; font: 9px var(--mono); }
html[data-map-theme='gta'] body.product .gta-signal-meter { display: flex; justify-content: flex-end; gap: 4px; }
html[data-map-theme='gta'] body.product .gta-signal-meter i { width: 24px; height: 6px; transform: skew(-18deg); background: #34342c; }
html[data-map-theme='gta'] body.product .gta-signal-meter i.active { background: var(--signal); box-shadow: 0 0 8px rgba(245,200,66,.55); }
html[data-map-theme='gta'] body.product .venue-panel { background: #0e0f0c; }
html[data-map-theme='gta'] body.product .venue-summary { border-left: 4px solid var(--signal); color: #d1c8ad; text-transform: uppercase; }
html[data-map-theme='gta'] body.product .venue-row { grid-template-columns: 30px auto 1fr auto; border-radius: 0; }
html[data-map-theme='gta'] body.product .venue-row:hover,
html[data-map-theme='gta'] body.product .venue-row.active { background: linear-gradient(90deg,rgba(245,200,66,.16),rgba(245,200,66,.025)); box-shadow: inset 4px 0 0 var(--signal); }
html[data-map-theme='gta'] body.product .venue-blip { display: block; width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 1px #000); }
html[data-map-theme='gta'] body.product .venue-index { color: var(--signal); font-weight: 700; }
html[data-map-theme='gta'] body.product .venue-signal { color: var(--signal); }
html[data-map-theme='gta'] body.product .scenario-tags span { border-radius: 2px; border-color: rgba(97,223,207,.38); color: #a7eee4; }
html[data-map-theme='gta'] body.product .detail-card { border-radius: 4px; border-color: rgba(245,200,66,.36); background: #11110d; }
html[data-map-theme='gta'] body.product .detail-hero { background: linear-gradient(112deg,rgba(245,200,66,.18),transparent 48%),#0d0e0b; }
html[data-map-theme='gta'] body.product .detail-hero h2 { font-family: var(--body); font-weight: 900; font-style: italic; text-transform: uppercase; }
html[data-map-theme='gta'] body.product .detail-blip { position: absolute; right: 72px; top: 18px; display: block; width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(245,200,66,.6)); }
html[data-map-theme='gta'] body.product .detail-fact,
html[data-map-theme='gta'] body.product .recommendation-box { border-radius: 2px; }

/* GTA 地图 v2：复用 Pouch 小程序三层上海道路重绘素材，点位按经纬度直接落图。 */
html[data-map-theme='gta'] body.product .product-shell { width: min(1760px,100%); }
html[data-map-theme='gta'] body.product .map-workspace { grid-template-columns: minmax(0,2.15fr) minmax(340px,.72fr); min-height: 720px; box-shadow: 0 24px 70px rgba(0,0,0,.34); }
html[data-map-theme='gta'] body.product .radar-panel { min-height: 720px; isolation: isolate; background: #111113; }
html[data-map-theme='gta'] body.product .radar-panel::before,
html[data-map-theme='gta'] body.product .radar-panel::after { display: none; }
html[data-map-theme='gta'] body.product .night-radar-layer,
html[data-map-theme='gta'] body.product .night-radar-point { display: none; }
html[data-map-theme='gta'] body.product .gta-vector-map { position: absolute; z-index: 2; inset: 0; display: block; opacity: 0; background: #090a08; pointer-events: none; transition: opacity .28s ease; }
html[data-map-theme='gta'] body.product .radar-panel.has-vector-map .gta-vector-map { opacity: 1; pointer-events: auto; }
html[data-map-theme='gta'] body.product .gta-map-stage { position: absolute; z-index: 1; display: block; overflow: visible; opacity: 1; transform-origin: 50% 50%; background-position: center; background-repeat: no-repeat; background-size: 100% 100%; cursor: grab; touch-action: none; user-select: none; will-change: transform; transition: opacity .24s ease; }
html[data-map-theme='gta'] body.product .radar-panel.has-vector-map .gta-map-stage { opacity: 0; pointer-events: none; }
html[data-map-theme='gta'] body.product .gta-map-stage.is-dragging { cursor: grabbing; }
html[data-map-theme='gta'] body.product .gta-map-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
html[data-map-theme='gta'] body.product .gta-map-image { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; display: block; object-fit: fill; opacity: 0; pointer-events: none; }
html[data-map-theme='gta'] body.product .gta-map-points { position: absolute; z-index: 3; inset: 0; }
html[data-map-theme='gta'] body.product .gta-map-point { position: absolute; z-index: 4; width: 44px; min-width: 44px; min-height: 44px; height: 44px; padding: 0; transform: translate(-50%,-50%) scale(var(--gta-marker-scale,1)); border: 0; border-radius: 0; background: transparent; box-shadow: none; }
html[data-map-theme='gta'] body.product .gta-map-point::before { content: ''; position: absolute; left: 50%; top: 50%; width: 31px; height: 31px; transform: translate(-50%,-50%); background: center / contain no-repeat var(--blip-url); filter: drop-shadow(0 2px 1px #000) drop-shadow(0 0 5px rgba(255,255,255,.45)); transition: width .18s ease,height .18s ease,filter .18s ease; }
html[data-map-theme='gta'] body.product .gta-map-point:hover::before,
html[data-map-theme='gta'] body.product .gta-map-point:focus-visible::before { width: 38px; height: 38px; filter: drop-shadow(0 2px 1px #000) drop-shadow(0 0 10px rgba(245,200,66,.95)); }
html[data-map-theme='gta'] body.product .gta-map-point.has-event::before { width: 35px; height: 35px; filter: drop-shadow(0 2px 1px #000) drop-shadow(0 0 10px rgba(245,200,66,.92)); }
html[data-map-theme='gta'] body.product .gta-map-point.active::before { width: 43px; height: 43px; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 13px var(--signal)); }
html[data-map-theme='gta'] body.product .gta-map-point.active::after { content: ''; position: absolute; inset: 1px; border: 2px solid var(--signal); transform: rotate(45deg); animation: map-target 1.1s ease-in-out infinite; }
html[data-map-theme='gta'] body.product .gta-map-self { position: absolute; z-index: 6; width: 46px; height: 46px; transform: translate(-50%,-50%) scale(var(--gta-marker-scale,1)); background: center / contain no-repeat url('./assets/radar/gta/self.png'); filter: drop-shadow(0 2px 1px #000) drop-shadow(0 0 12px rgba(97,223,207,.95)); }
html[data-map-theme='gta'] body.product .gta-vector-marker { width: 44px; height: 44px; }
html[data-map-theme='gta'] body.product .gta-vector-marker .gta-map-point { position: relative; left: auto; top: auto; transform: none; }
html[data-map-theme='gta'] body.product .gta-vector-self { width: 46px; height: 46px; }
html[data-map-theme='gta'] body.product .gta-vector-self .gta-map-self { position: relative; left: auto; top: auto; transform: none; }
html[data-map-theme='gta'] body.product .gta-vector-map .maplibregl-canvas { outline: none; }
html[data-map-theme='gta'] body.product .gta-vector-map .maplibregl-ctrl-bottom-right { right: 10px; bottom: 54px; }
html[data-map-theme='gta'] body.product .gta-vector-map .maplibregl-ctrl-attrib { border: 1px solid rgba(246,234,194,.14); background: rgba(8,8,6,.82); color: rgba(246,242,230,.62); font: 8px var(--mono); }
html[data-map-theme='gta'] body.product .gta-vector-map .maplibregl-ctrl-attrib a { color: #87d8ce; }
html[data-map-theme='gta'] body.product .gta-map-meta { position: absolute; z-index: 7; left: 18px; top: 18px; display: grid; gap: 5px; padding: 10px 12px; border-left: 4px solid var(--signal); background: linear-gradient(90deg,rgba(8,8,6,.92),rgba(8,8,6,.46)); text-transform: uppercase; }
html[data-map-theme='gta'] body.product .gta-map-meta span { color: var(--signal); font: 9px var(--mono); letter-spacing: .12em; }
html[data-map-theme='gta'] body.product .gta-map-meta b { color: #f6f2e6; font: 11px var(--mono); }
html[data-map-theme='gta'] body.product .gta-map-detail-status { position: absolute; z-index: 8; left: 18px; top: 86px; display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid rgba(246,234,194,.18); background: rgba(8,8,6,.8); color: #c9c1aa; font: 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
html[data-map-theme='gta'] body.product .gta-map-detail-status i { width: 7px; height: 7px; border-radius: 50%; background: #7d796c; box-shadow: 0 0 0 2px rgba(125,121,108,.14); }
html[data-map-theme='gta'] body.product .gta-map-detail-status[data-state='loading'] i { background: #f5c842; box-shadow: 0 0 9px rgba(245,200,66,.86); animation: gta-detail-pulse 1.1s ease-in-out infinite; }
html[data-map-theme='gta'] body.product .gta-map-detail-status[data-state='ready'] { border-color: rgba(97,223,207,.3); color: #a6ebe2; }
html[data-map-theme='gta'] body.product .gta-map-detail-status[data-state='ready'] i { background: #61dfcf; box-shadow: 0 0 10px rgba(97,223,207,.9); }
html[data-map-theme='gta'] body.product .gta-map-detail-status[data-state='fallback'] { color: #e0c58a; }
html[data-map-theme='gta'] body.product .gta-compass { position: absolute; z-index: 7; left: 50%; top: 14px; width: 92px; height: 28px; display: flex; align-items: center; justify-content: space-between; transform: translateX(-50%); color: rgba(246,242,230,.58); font: 8px var(--mono); }
html[data-map-theme='gta'] body.product .gta-compass::before { content: ''; position: absolute; left: 50%; top: 0; width: 1px; height: 28px; background: var(--signal); box-shadow: 0 0 8px rgba(245,200,66,.8); }
html[data-map-theme='gta'] body.product .gta-compass b { position: absolute; left: 50%; top: 0; transform: translate(-50%,-105%); color: var(--signal); font-size: 10px; }
html[data-map-theme='gta'] body.product .gta-compass i,
html[data-map-theme='gta'] body.product .gta-compass em { font-style: normal; }
html[data-map-theme='gta'] body.product .gta-map-scale { position: absolute; z-index: 7; right: 18px; bottom: 18px; display: block; padding: 8px 10px; border-bottom: 3px solid var(--signal); background: rgba(8,8,6,.82); color: #e6dfc9; font: 9px var(--mono); letter-spacing: .1em; }
html[data-map-theme='gta'] body.product .gta-map-controls { position: absolute; z-index: 8; right: 18px; top: 108px; display: grid; grid-template-columns: 44px 64px 44px; overflow: hidden; border: 1px solid rgba(246,234,194,.24); background: rgba(8,8,6,.9); box-shadow: 0 8px 24px rgba(0,0,0,.34); }
html[data-map-theme='gta'] body.product .gta-map-controls button { min-width: 44px; min-height: 44px; padding: 0; border: 0; border-right: 1px solid rgba(246,234,194,.18); border-radius: 0; background: transparent; color: #fff8df; font: 700 19px var(--mono); }
html[data-map-theme='gta'] body.product .gta-map-controls button:last-child { border-right: 0; }
html[data-map-theme='gta'] body.product .gta-map-controls button:hover,
html[data-map-theme='gta'] body.product .gta-map-controls button:focus-visible { background: var(--signal); color: #090906; }
html[data-map-theme='gta'] body.product #gtaZoomReset { font-size: 10px; color: var(--signal); }
html[data-map-theme='gta'] body.product .gta-map-help { position: absolute; z-index: 7; left: 50%; bottom: 18px; display: block; margin: 0; padding: 7px 10px; transform: translateX(-50%); background: rgba(8,8,6,.78); color: rgba(246,242,230,.7); font: 8px var(--mono); letter-spacing: .06em; pointer-events: none; }
html[data-map-theme='gta'] body.product .radar-caption { z-index: 7; top: auto; bottom: 62px; border-left-color: var(--teal); background: rgba(8,8,6,.86); }
html[data-map-theme='gta'] body.product .radar-legend { z-index: 7; }
html[data-map-theme='gta'] body.product .gta-hud { z-index: 7; }
html[data-map-theme='gta'] body.product .venue-panel { box-shadow: -18px 0 42px rgba(0,0,0,.28); }
html[data-map-theme='gta'] body.product .venue-feed { max-height: 720px; }

@keyframes radar-sweep { to { transform: rotate(360deg); } }
@keyframes map-target { 0%,100% { opacity: .35; transform: rotate(45deg) scale(.72); } 50% { opacity: 1; transform: rotate(45deg) scale(1); } }
@keyframes gta-detail-pulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }

@media (max-width: 900px) {
  .product-controls { grid-template-columns: 1fr 1fr; }
  .control-search { grid-column: 1 / -1; }
  .scene-chips { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .map-workspace { grid-template-columns: 1fr; min-height: 0; }
  .radar-panel { min-height: min(68dvh, 620px); }
  .venue-panel { border-left: 0; border-top: 1px solid var(--product-line); }
  .venue-feed { max-height: 45dvh; }
  .calendar-workspace { grid-template-columns: 1fr; }
  .agenda-feed { max-height: none; }
  html[data-map-theme='gta'] body.product .map-workspace { grid-template-columns: 1fr; min-height: 0; }
  html[data-map-theme='gta'] body.product .radar-panel { min-height: min(72dvh,720px); }
  html[data-map-theme='gta'] body.product .venue-feed { max-height: 48dvh; }
}

@media (max-width: 640px) {
  .product-topbar { grid-template-columns: 1fr auto; gap: 10px; padding: 7px 12px; }
  .product-nav { grid-row: 2; grid-column: 1 / -1; width: 100%; }
  .product-nav a { flex: 1; min-height: 38px; }
  .product-shell { padding: 14px 12px 24px; }
  .product-controls { grid-template-columns: 1fr 1fr; margin: 14px 0; }
  .product-controls select { min-width: 0; }
  .product-controls .nearby { grid-column: 1 / -1; }
  .scene-picker { margin-top: 16px; padding: 12px; }
  .scene-heading { align-items: start; }
  .scene-heading > span { display: none; }
  .scene-chips { display: flex; margin: 0 -2px; padding: 2px; overflow-x: auto; scroll-snap-type: x proximity; }
  .scene-chips button { flex: 0 0 148px; min-height: 60px; scroll-snap-align: start; }
  .map-workspace,.calendar-frame,.agenda-panel { border-radius: 18px; }
  .radar-panel { min-height: 58dvh; }
  .radar-caption { left: 12px; top: 12px; max-width: calc(100% - 24px); }
  .radar-legend { left: 12px; bottom: 12px; }
  .calendar-heading { grid-template-columns: 1fr; gap: 12px; }
  .calendar-host { min-height: 430px; }
  .ec .ec-day { min-height: 58px; }
  .ec .ec-event { display: none; }
  .ec .ec-day.ec-day-has-events::after { content: ''; display: block; width: 6px; height: 6px; margin: 4px auto; border-radius: 50%; background: var(--signal); }
  .detail-card { width: calc(100% - 12px); margin-bottom: 6px; border-radius: 20px; }
  .detail-grid { grid-template-columns: 1fr; }
  .product-brand span { display: none; }
  .theme-switch { grid-template-columns: repeat(2,minmax(43px,1fr)); }
  .theme-switch button { min-width: 43px; padding-inline: 8px; }
  html[data-map-theme='gta'] body.product .radar-panel { min-height: 64dvh; }
  html[data-map-theme='gta'] body.product .gta-map-meta { left: 12px; top: 12px; max-width: calc(100% - 24px); }
  html[data-map-theme='gta'] body.product .gta-map-meta b { display: none; }
  html[data-map-theme='gta'] body.product .gta-map-detail-status { left: 12px; top: 64px; }
  html[data-map-theme='gta'] body.product .gta-hud { top: 68px; right: 12px; min-width: 172px; padding: 9px 10px; }
  html[data-map-theme='gta'] body.product .gta-hud-main b { font-size: 14px; }
  html[data-map-theme='gta'] body.product .gta-signal-meter i { width: 18px; }
  html[data-map-theme='gta'] body.product .gta-compass { display: none; }
  html[data-map-theme='gta'] body.product .gta-map-scale { right: 12px; bottom: 58px; }
  html[data-map-theme='gta'] body.product .gta-map-controls { right: 12px; top: 158px; grid-template-columns: 44px 58px 44px; }
  html[data-map-theme='gta'] body.product .gta-map-help { display: none; }
  html[data-map-theme='gta'] body.product .gta-vector-map .maplibregl-ctrl-bottom-right { right: 6px; bottom: 96px; }
  html[data-map-theme='gta'] body.product .radar-caption { left: 12px; bottom: 54px; max-width: calc(100% - 140px); font-size: 8px; }
  html[data-map-theme='gta'] body.product .radar-legend { gap: 8px; padding: 7px 9px; }
  html[data-map-theme='gta'] body.product .venue-row { grid-template-columns: 28px auto 1fr; }
  html[data-map-theme='gta'] body.product .venue-signal { grid-column: 3; }
}

@media (prefers-reduced-motion: reduce) {
  .radar-sweep { animation: none; opacity: .35; }
  .detail-card { animation: none; }
  .radar-point::before { transition: none; }
  .gta-map-point::before { transition: none !important; }
  .gta-map-point.active::after { animation: none !important; opacity: .8; }
  * { scroll-behavior: auto !important; }
}
/* Pouch 城市日历：以日期选择和当天行动为主，不继承地图端的视觉密度。 */
body.calendar-product {
  --calendar-surface: #0c1210;
  --calendar-surface-raised: #111916;
  --calendar-line: rgba(201, 230, 214, .17);
  background:
    linear-gradient(115deg, rgba(34, 193, 173, .08), transparent 38rem),
    radial-gradient(circle at 88% 8%, rgba(184, 255, 53, .065), transparent 28rem),
    #050807;
}
.calendar-product .product-shell { width: min(1480px, 100%); }
.calendar-product .calendar-heading {
  display: block;
  margin: 2px 0 18px;
  padding: 8px 0 10px 20px;
  border-left: 4px solid var(--teal);
}
.calendar-product .product-title {
  max-width: 900px;
  font-family: var(--body);
  font-size: clamp(34px, 4.1vw, 58px);
  font-weight: 760;
  letter-spacing: -.055em;
}
.calendar-product .product-subtitle { margin-top: 8px; line-height: 1.6; }
.calendar-product .product-status { margin-top: 8px; }
.calendar-product .product-controls {
  grid-template-columns: minmax(250px, 1.45fr) minmax(130px, .55fr) minmax(180px, .8fr) minmax(130px, .55fr) auto;
  gap: 10px;
  margin: 0 0 16px;
  padding: 13px;
  border: 1px solid var(--calendar-line);
  border-radius: 16px;
  background: rgba(12, 18, 16, .88);
}
.calendar-product .product-controls .control-label { color: #aebbb3; }
.calendar-product .product-controls input,
.calendar-product .product-controls select { height: 46px; border-radius: 10px; background: #151d19; }
.calendar-product .product-controls button { align-self: end; min-height: 46px; border-radius: 10px; }

.week-signal {
  display: grid;
  grid-template-columns: minmax(175px, .34fr) minmax(0, 1.66fr);
  gap: 18px;
  align-items: stretch;
  margin: 0 0 18px;
  padding: 14px 0;
  border-top: 1px solid var(--calendar-line);
  border-bottom: 1px solid var(--calendar-line);
}
.week-signal-head { display: flex; flex-direction: column; justify-content: center; padding-left: 4px; }
.week-signal-head h2 { margin: 0; color: var(--product-text); font: 22px var(--display); }
.week-signal-head > p { margin: 7px 0 0; max-width: 220px; color: var(--product-muted); font-size: 12px; line-height: 1.5; }
.week-rail { min-width: 0; display: grid; grid-template-columns: repeat(7, minmax(72px, 1fr)); gap: 7px; scrollbar-width: none; }
.week-rail::-webkit-scrollbar { display: none; }
.week-day {
  min-width: 0;
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  align-items: end;
  gap: 2px 8px;
  padding: 10px 11px;
  border-color: var(--calendar-line);
  border-radius: 13px !important;
  background: var(--calendar-surface-raised);
  color: var(--product-text);
  text-align: left;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.week-day:hover { border-color: rgba(184,255,53,.46); background: #17211c; }
.week-day span { align-self: start; color: var(--product-muted); font: 10px var(--mono); }
.week-day strong { grid-row: 2; font: 28px/1 var(--display); letter-spacing: -.04em; }
.week-day small { grid-column: 2; grid-row: 2; color: var(--teal); font: 9px var(--mono); white-space: nowrap; }
.week-day[aria-pressed='true'] { border-color: var(--signal); background: var(--signal); color: var(--night); }
.week-day[aria-pressed='true'] span,
.week-day[aria-pressed='true'] small { color: #27330f; }

.calendar-product .calendar-workspace {
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, .72fr);
  align-items: start;
  gap: 14px;
}
.calendar-product .calendar-frame,
.calendar-product .agenda-panel { border-color: var(--calendar-line); border-radius: 18px; background: var(--calendar-surface); }
.calendar-product .calendar-frame { overflow: hidden; padding: 16px; }
.calendar-product .calendar-toolbar { min-width: 0; margin-bottom: 14px; }
.calendar-product .calendar-toolbar h2 { min-width: 0; font-size: clamp(18px, 2vw, 25px); }
.calendar-product .calendar-toolbar button { border-radius: 10px; }
.calendar-product .calendar-host { min-width: 0; min-height: 540px; overflow: hidden; }
.calendar-product .ec { min-width: 0; width: 100%; }
.calendar-product .ec .ec-main { min-width: 0; width: 100%; }
.calendar-product .ec .ec-day { min-width: 0; overflow: hidden; }
.calendar-product .ec .ec-day.is-selected-date { box-shadow: inset 0 0 0 2px var(--signal); }
.calendar-product .ec .ec-day.ec-day-has-events .ec-day-head::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-right: auto;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 9px rgba(34,193,173,.65);
}
.calendar-product .ec .ec-event { border: 0; border-radius: 4px; padding: 3px 5px; font-size: 10px; box-shadow: none; }
.calendar-product .agenda-panel { position: sticky; top: 78px; }
.calendar-product .agenda-head { padding: 17px 18px 14px; }
.calendar-product .agenda-head h2 { font-family: var(--body); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.calendar-product .agenda-feed { max-height: calc(100dvh - 175px); }
.agenda-group > h3 {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 9px 16px;
  border-bottom: 1px solid var(--calendar-line);
  background: #101714;
  color: #cbd7d0;
  font: 10px var(--mono);
  letter-spacing: .08em;
}
.agenda-group > h3 span { color: var(--teal); }
.calendar-product .agenda-card { grid-template-columns: 58px minmax(0,1fr); padding: 14px 16px; }
.calendar-product .agenda-time { width: fit-content; padding: 3px 6px; border: 1px solid rgba(184,255,53,.28); border-radius: 999px; }
.calendar-product .agenda-copy b { font-size: 14px; line-height: 1.45; }
.agenda-more {
  width: calc(100% - 28px);
  margin: 14px;
  border-color: var(--calendar-line);
  border-radius: 10px !important;
  background: #151d19;
  color: var(--product-text);
}

@media (max-width: 900px) {
  .week-signal { grid-template-columns: 1fr; gap: 12px; }
  .week-signal-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: end; }
  .week-signal-head > p { align-self: center; margin: 0; max-width: none; }
  .calendar-product .calendar-workspace { grid-template-columns: 1fr; }
  .calendar-product .agenda-panel { position: static; }
  .calendar-product .agenda-feed { max-height: none; }
}

@media (max-width: 640px) {
  .calendar-product .product-topbar { min-width: 0; }
  .calendar-product .product-brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .calendar-product .product-account { justify-self: end; min-width: 60px; }
  .calendar-product .product-nav { min-width: 0; overflow: hidden; }
  .calendar-product .product-nav a { min-width: 0; padding-inline: 10px; }
  .calendar-product .calendar-heading { margin-bottom: 14px; padding: 5px 0 8px 13px; }
  .calendar-product .product-title { font-size: clamp(31px, 9.6vw, 40px); line-height: 1.08; }
  .calendar-product .product-subtitle { font-size: 14px; }
  .calendar-product .product-controls { grid-template-columns: 1fr 1fr; padding: 11px; }
  .calendar-product .product-controls > * { min-width: 0; }
  .calendar-product .product-controls .control-search { order: 1; grid-column: 1 / -1; }
  .calendar-product .product-controls > label:nth-child(2) { order: 2; }
  .calendar-product .product-controls .control-district { order: 3; }
  .calendar-product .product-controls .control-venue { order: 4; grid-column: 1 / -1; }
  .calendar-product .product-controls #thisWeek { order: 5; grid-column: 1 / -1; width: 100%; }
  .week-signal { margin-bottom: 14px; padding: 12px 0; }
  .week-signal-head { display: block; padding-inline: 2px; }
  .week-signal-head h2 { font-size: 19px; }
  .week-signal-head > p { margin-top: 5px; }
  .week-rail { display: flex; gap: 7px; padding-bottom: 4px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; }
  .week-day { flex: 0 0 82px; min-height: 74px; scroll-snap-align: start; }
  .calendar-product .calendar-frame { width: 100%; padding: 11px; }
  .calendar-product .calendar-toolbar { display: grid; grid-template-columns: 1fr; align-items: stretch; }
  .calendar-product .calendar-toolbar h2 { order: -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .calendar-product .calendar-toolbar .row { justify-content: flex-start; }
  .calendar-product .calendar-toolbar button { min-width: 46px; }
  .calendar-product .calendar-host { width: 100%; min-height: 390px; }
  .calendar-product .ec .ec-main { overflow: hidden; }
  .calendar-product .ec .ec-day { min-height: 54px; }
  .calendar-product .ec .ec-day-head { justify-content: center; padding: 5px 2px; }
  .calendar-product .ec .ec-day.ec-day-has-events .ec-day-head::before { position: absolute; width: 5px; height: 5px; margin: 23px 0 0; }
  .calendar-product .ec .ec-event { display: none; }
  .calendar-product .ec .ec-day.ec-day-has-events::after { display: none; }
  .calendar-product .agenda-head { padding: 15px; }
  .calendar-product .agenda-card { grid-template-columns: 54px minmax(0,1fr); padding: 13px 14px; }
}

@media (max-width: 390px) {
  .calendar-product .product-nav a { font-size: 11px; }
  .calendar-product .product-controls { grid-template-columns: 1fr; }
  .calendar-product .product-controls > * { grid-column: 1 !important; }
  .calendar-product .product-controls > label:nth-child(2),
  .calendar-product .product-controls .control-district,
  .calendar-product .product-controls .control-venue,
  .calendar-product .product-controls #thisWeek { order: initial; }
}

@media (prefers-reduced-motion: reduce) {
  .week-day { transition: none; }
}
