/* Pouch visual refinement · shared map/calendar system.
   Incumbent dark identity; map signals teal, calendar signals violet.
   Loaded after the existing product/experience styles. No external assets. */
body.product {
  --night: #090c12;
  --night-2: #0e131b;
  --night-3: #151c27;
  --surface-solid: #101620;
  --product-text: #edf1f7;
  --product-muted: #a4b0bf;
  --product-line: #293440;
  --teal: #73e9d2;
  --signal: #73e9d2;
  --ui-accent: var(--teal);
  --ui-soft: #162c31;
  --ui-hover: #18232e;
  --ui-radius: 12px;
  background: var(--night);
  color: var(--product-text);
  font-family: var(--body);
  text-rendering: optimizeLegibility;
}
body.product.calendar-product {
  --teal: #c2a4ff;
  --signal: #c2a4ff;
  --ui-soft: #251e39;
  --ui-hover: #211f30;
  --calendar-surface: #10151f;
  --calendar-surface-raised: #171d29;
  --calendar-line: var(--product-line);
}
html[data-map-theme='gta'] body.product.map-product {
  --ui-accent: #f5c842;
  --ui-soft: #2b2618;
  --ui-hover: #252319;
}
body.product ::selection { background: var(--ui-accent); color: #0c111a; }
body.product :is(input, textarea) { caret-color: var(--ui-accent); }
body.product :is(.venue-feed, .agenda-feed, .detail-card, .detail-content, .scene-chips) {
  scrollbar-width: thin;
  scrollbar-color: #425062 transparent;
}
body.product :is(.venue-feed, .agenda-feed, .detail-card, .detail-content)::-webkit-scrollbar { width: 6px; }
body.product :is(.venue-feed, .agenda-feed, .detail-card, .detail-content)::-webkit-scrollbar-thumb { background: #425062; border-radius: 4px; }
body.product :is(button, input, select, a, summary, [role='button']):focus-visible {
  outline: 2px solid var(--ui-accent); outline-offset: 3px;
}
body.product .product-topbar {
  min-height: 72px;
  gap: 20px;
  padding: 10px clamp(16px, 3vw, 40px);
  border-bottom: 1px solid var(--product-line);
  background: #0c1119;
  backdrop-filter: none;
}
body.product .product-brand { font: 16px/1.2 var(--display); letter-spacing: .06em; }
body.product .product-brand span { margin-left: 8px; font: 12px var(--body); letter-spacing: 0; color: var(--product-muted); }
body.product .product-nav { padding: 4px; gap: 4px; border-radius: 12px; border-color: var(--product-line); background: #101722; }
body.product .product-nav a {
  min-height: 44px; gap: 8px; display: inline-flex;
  font: 600 13px/1.4 var(--body); border-radius: 8px; color: #b8c2cf; padding: 10px 16px;
}
body.product .product-nav a[data-surface='map'][aria-current='page'] { background: #17342f; color: #8debd9; }
body.product .product-nav a[data-surface='calendar'][aria-current='page'] { background: #332743; color: #d5bdff; }
body.product .product-nav a:hover { background: #1d2836; color: #edf1f7; }
body.product .product-nav a[aria-current='page']:hover { filter: brightness(1.12); }
.ui-icon { width: 17px; height: 17px; flex: none; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body.product .product-account {
  min-width: 64px; min-height: 44px; padding: 10px 16px;
  border-radius: 10px; background: #101722; font: 600 12px var(--body);
}
body.product .product-account:hover { background: var(--ui-hover); }
body.product .theme-switch { border-radius: 10px; background: #101722; }
body.product .theme-switch button { min-height: 44px; border-radius: 7px; font: 600 11px var(--body); }
body.product .theme-switch button[aria-pressed='true'] { color: #0b1718; background: var(--ui-accent); }
body.product .product-shell { width: min(1440px, 100%); padding: 28px clamp(16px, 3vw, 40px) 40px; }
body.product .product-shell > header { margin: 0 0 24px; padding: 10px 0 0; border: 0; }
body.product .product-kicker { display: none; }
body.product .product-title {
  font-family: var(--body); font-size: clamp(32px, 4vw, 56px);
  font-weight: 750; line-height: 1.2; letter-spacing: -.035em;
  text-wrap: balance; max-width: 1000px;
}
body.product .product-subtitle { font: 14px/1.7 var(--body); color: var(--product-muted); max-width: 70ch; margin-top: 10px; }
body.product .product-status { margin-top: 14px; font: 12px/1.6 var(--body); gap: 9px; }
body.product .status-dot { width: 6px; height: 6px; box-shadow: none; background: var(--ui-accent); }
body.product .control-label { font: 500 11px/1.4 var(--body); letter-spacing: .025em; color: #b4c0d0; }
body.product .product-controls :is(input, select), body.product .calendar-date-field input {
  height: 46px; border-radius: 9px; border-color: #344153;
  color: var(--product-text); background: #151d29; font: 13px/1.4 var(--body);
}
body.product select option { background: #151d29; color: var(--product-text); }
body.product input::placeholder { color: #9ba8ba; }
body.product .product-controls :is(input, select):hover { border-color: #52627b; }
body.product .product-controls :is(input, select):focus { border-color: var(--ui-accent); }
body.product :is(button.secondary, .button.secondary) {
  border-color: #344153; color: #cad3df; border-radius: 9px; font: 500 12px/1.5 var(--body);
}
body.product :is(button.secondary, .button.secondary):hover { background: var(--ui-hover); color: #fff; }
body.product .control-primary {
  min-height: 46px; border-color: var(--ui-accent); background: var(--ui-accent);
  color: #0d1620; border-radius: 9px; font: 650 13px var(--body);
}
body.product .control-primary:hover { filter: brightness(1.08); }
body.product .product-controls { gap: 12px; }
body.product .control-field { gap: 6px; }
body.product .detail-card { border-color: #344153; background: var(--surface-solid); border-radius: 18px; }
body.product .detail-hero { background: #151e2a; border-bottom: 1px solid var(--product-line); }
body.product .detail-hero h2 { font-family: var(--body); font-weight: 700; letter-spacing: -.025em; line-height: 1.25; }
body.product .detail-body { padding: 24px; }
body.product .detail-fact { border-radius: 10px; background: #141c28; border-color: var(--product-line); }
body.product .detail-fact small { font: 11px/1.4 var(--body); letter-spacing: 0; color: var(--product-muted); }
body.product .detail-fact strong { font-size: 15px; line-height: 1.5; }
body.product .detail-description { font-size: 14px; line-height: 1.8; max-width: 70ch; }
body.product .detail-source { font: 12px/1.6 var(--body); }
body.product .detail-actions .primary { border-color: var(--ui-accent); background: var(--ui-accent); color: #101322; border-radius: 10px; }
body.product .product-toast { border-radius: 10px; background: #edf1f7; color: #101620; }
@media (max-width: 900px) {
  body.product .product-shell { padding-top: 22px; }
  body.product .product-title { font-size: clamp(32px, 4.6vw, 42px); }
}
@media (max-width: 640px) {
  body.product .product-topbar { grid-template-columns: 1fr auto; gap: 10px; padding: 10px 16px; min-height: 64px; }
  body.product .product-brand { font-size: 15px; }
  body.product .product-brand span { display: none; }
  body.product .product-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-self: stretch; border: 0; padding: 0; background: #101722; }
  body.product .product-nav a { flex: 1; min-width: 0; min-height: 44px; padding: 10px 8px; }
  body.product .product-actions { gap: 7px; }
  body.product .product-account { min-width: 58px; padding: 8px 12px; }
  body.product .theme-switch button { min-width: 44px; min-height: 44px; padding: 6px 9px; }
  body.product .product-shell { padding: 20px 16px 28px; }
  body.product .product-shell > header { margin-bottom: 20px; padding: 4px 0 0; }
  body.product .product-title { font-size: 30px; line-height: 1.25; max-width: 100%; }
  body.product .title-lead, body.product .title-main { display: block; }
  body.product .product-subtitle { font-size: 13px; line-height: 1.7; }
  body.product .product-status { font-size: 11px; margin-top: 10px; }
  body.product .product-controls { gap: 12px 10px; }
  body.product .detail-card { border-radius: 0; }
  body.product .detail-body { padding: 20px 16px; }
  body.product.calendar-product .detail-mobile-bar,
  body.product.calendar-product .detail-actions { background: #101620; }
}
@media (prefers-reduced-motion: reduce) {
  body.product *, body.product *::before, body.product *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
