:root {
  --live-bg: #090b0f;
  --live-device: #12151b;
  --live-surface: rgba(26, 29, 36, 0.94);
  --live-surface-solid: #1d2129;
  --live-muted: #272b34;
  --live-text: #f7f8fa;
  --live-subtext: #a7aeb9;
  --live-faint: #737b87;
  --live-border: rgba(255, 255, 255, 0.1);
  --live-border-strong: rgba(255, 255, 255, 0.18);
  --live-accent: #7397ff;
  --live-accent-strong: #4f7df5;
  --live-accent-soft: rgba(105, 144, 255, 0.18);
  --live-map: #171a20;
  --live-road: #343944;
  --live-road-major: #494f5b;
  --live-park: #17382d;
  --live-shadow: 0 32px 100px rgba(0, 0, 0, 0.55);
}

:root[data-theme="light"] {
  --live-bg: #edf2f8;
  --live-device: #fff;
  --live-surface: rgba(255, 255, 255, 0.94);
  --live-surface-solid: #fff;
  --live-muted: #f1f4f8;
  --live-text: #111318;
  --live-subtext: #687180;
  --live-faint: #969eaa;
  --live-border: rgba(20, 31, 51, 0.09);
  --live-border-strong: rgba(20, 31, 51, 0.16);
  --live-accent: #4f7ff5;
  --live-accent-strong: #316cf2;
  --live-accent-soft: #e9f0ff;
  --live-map: #f8fafc;
  --live-road: #e3e8ef;
  --live-road-major: #d4dbe5;
  --live-park: #dff2e3;
  --live-shadow: 0 26px 80px rgba(43, 57, 86, 0.16);
}

.live-app-shell {
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--live-bg) 72%, var(--live-accent) 9%), var(--live-bg) 68%);
  color: var(--live-text);
}

.live-device {
  position: relative;
  width: min(430px, calc(100vw - 28px));
  height: min(874px, calc(100dvh - 28px));
  min-height: 680px;
  overflow: hidden;
  border: 1px solid var(--live-border-strong);
  border-radius: 46px;
  background: var(--live-device);
  box-shadow: var(--live-shadow);
  isolation: isolate;
}

.live-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--live-device);
}

.live-status {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 110;
  display: grid;
  grid-template-columns: 1fr 116px 1fr;
  align-items: center;
  height: 47px;
  padding: 0 27px;
  color: var(--live-text);
  font-size: 13px;
  pointer-events: none;
}

.live-island {
  justify-self: center;
  width: 106px;
  height: 30px;
  border-radius: 17px;
  background: #000;
}

.live-status-icons {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 4px;
}

.live-status-icons i {
  display: block;
  width: 15px;
  height: 10px;
  border: 1.6px solid currentColor;
  border-radius: 3px;
}

.live-status-icons i:first-child {
  width: 14px;
  border-width: 0 0 2px;
  border-radius: 0;
}

.live-status-icons i:nth-child(2) {
  width: 11px;
  height: 8px;
  border-width: 2px 0 0;
  border-radius: 50%;
}

.live-status-icons i:last-child {
  width: 20px;
}

.live-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 120;
  width: 118px;
  height: 5px;
  border-radius: 4px;
  background: var(--live-text);
  transform: translateX(-50%);
  pointer-events: none;
}

.live-view {
  position: absolute;
  inset: 0;
  padding: 47px 0 94px;
  overflow: hidden;
  background: var(--live-device);
  animation: live-view-in 180ms ease both;
}

.live-header,
.live-section-header {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 67px;
  padding: 0 18px;
  border-bottom: 1px solid var(--live-border);
  background: color-mix(in srgb, var(--live-surface) 92%, transparent);
  backdrop-filter: blur(22px);
}

.live-brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 20px;
  font-weight: 750;
}

.live-brand i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live-accent);
  box-shadow: 0 0 0 5px var(--live-accent-soft);
}

.live-brand small {
  color: var(--live-subtext);
  font-size: 12px;
  font-weight: 600;
}

.live-icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--live-border);
  border-radius: 50%;
  background: var(--live-muted);
  color: var(--live-text);
}

.live-search-wrap {
  position: absolute;
  top: 125px;
  right: 14px;
  left: 14px;
  z-index: 42;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  height: 53px;
  padding: 0 13px;
  border: 1px solid var(--live-border-strong);
  border-radius: 17px;
  background: color-mix(in srgb, var(--live-surface-solid) 89%, transparent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(24px);
}

.live-search-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--live-text);
  font-size: 15px;
}

.live-search-wrap input::placeholder {
  color: var(--live-faint);
}

.live-search-wrap kbd {
  padding: 5px 8px;
  border: 1px solid var(--live-border);
  border-radius: 7px;
  background: var(--live-muted);
  color: var(--live-subtext);
  font-family: inherit;
  font-size: 10px;
}

.live-category-control {
  position: absolute;
  top: 185px;
  right: 14px;
  left: 14px;
  z-index: 41;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--live-border);
  border-radius: 13px;
  background: color-mix(in srgb, var(--live-surface-solid) 89%, transparent);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
  color: var(--live-subtext);
  backdrop-filter: blur(22px);
}

.live-category-control > span,
.live-category-control > em {
  font-size: 9px;
  font-style: normal;
  font-weight: 650;
  white-space: nowrap;
}

.live-category-control > em {
  color: var(--live-faint);
  font-weight: 550;
}

.live-category-control select {
  min-width: 0;
  height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--live-text);
  font-family: inherit;
  font-size: 11px;
  font-weight: 650;
}

.live-search-panel {
  position: absolute;
  top: 231px;
  right: 14px;
  left: 14px;
  z-index: 45;
  max-height: min(455px, calc(100dvh - 300px));
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--live-border-strong);
  border-radius: 17px;
  background: color-mix(in srgb, var(--live-surface-solid) 96%, transparent);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(28px);
}

.live-search-result {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--live-text);
  text-align: left;
}

.live-search-result:hover {
  background: var(--live-muted);
}

.live-search-result > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
}

.live-search-result span {
  min-width: 0;
}

.live-search-result b,
.live-search-result small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-search-result b {
  font-size: 13px;
}

.live-search-result small {
  margin-top: 3px;
  color: var(--live-subtext);
  font-size: 10px;
}

.live-search-result em {
  color: var(--live-subtext);
  font-size: 10px;
  font-style: normal;
}

.live-search-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 72px;
  color: var(--live-subtext);
  font-size: 12px;
}

.live-map {
  position: absolute;
  inset: 114px 0 0;
  overflow: hidden;
  background: var(--live-map);
  transition: filter 180ms ease;
}

.live-mapkit {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}

.live-mapkit.is-ready {
  background: var(--live-map);
}

.live-mapkit.is-ready ~ .live-map-art,
.live-mapkit.is-ready ~ .live-marker {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.live-map-state {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 7;
  display: grid;
  place-items: center;
  gap: 8px;
  min-width: 190px;
  padding: 15px 17px;
  border: 1px solid var(--live-border);
  border-radius: 13px;
  background: color-mix(in srgb, var(--live-surface-solid) 91%, transparent);
  box-shadow: 0 15px 40px rgba(0, 0, 0, .18);
  color: var(--live-text);
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(22px);
}

.live-map-state.is-error {
  display: none;
}

.live-map-state b {
  font-size: 11px;
}

.live-map.is-contrast {
  filter: contrast(1.12) saturate(0.6);
}

.live-map-art {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  transition: opacity 180ms ease;
}

.live-map-ground { fill: var(--live-map); }
.live-park { fill: var(--live-park); opacity: .85; }
.live-roads-minor path { fill: none; stroke: var(--live-road); stroke-width: 3; stroke-linecap: round; }
.live-roads-major path { fill: none; stroke: var(--live-road-major); stroke-width: 8; stroke-linecap: round; }
.live-map-labels text { fill: #c88943; font-size: 9px; font-weight: 650; }
.live-map-labels .street { fill: var(--live-faint); font-size: 8px; font-weight: 450; }

.live-map-tools {
  position: absolute;
  top: 84px;
  right: 14px;
  z-index: 15;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--live-border);
  border-radius: 13px;
  background: var(--live-surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
  backdrop-filter: blur(20px);
}

.live-map-tools button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--live-text);
}

.live-map-tools button + button {
  border-top: 1px solid var(--live-border);
}

.live-map-caption {
  position: absolute;
  bottom: 92px;
  left: 14px;
  padding: 7px 10px;
  border: 1px solid var(--live-border);
  border-radius: 10px;
  background: var(--live-surface);
  color: var(--live-subtext);
  font-size: 10px;
  backdrop-filter: blur(18px);
}

.live-marker {
  --mx: 50%;
  --my: 50%;
  position: absolute;
  top: var(--my);
  left: var(--mx);
  z-index: 8;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
}

.live-marker > span {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--live-border-strong);
  border-radius: 50%;
  background: var(--live-surface-solid);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .24);
  color: var(--marker-color);
}

.live-marker > b {
  position: absolute;
  top: 45px;
  left: 50%;
  max-width: 110px;
  padding: 3px 6px;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--marker-color) 30%, transparent);
  background: color-mix(in srgb, var(--live-surface-solid) 89%, var(--marker-color) 11%);
  color: var(--marker-color);
  font-size: 8px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(-50%);
}

.live-marker.is-selected > span {
  width: 52px;
  height: 52px;
  border-color: color-mix(in srgb, var(--live-accent) 55%, transparent);
  color: var(--live-accent);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--live-accent) 26%, transparent);
}

.live-marker-ring {
  position: absolute;
  z-index: 1;
  width: 74px;
  height: 74px;
  border: 1px solid color-mix(in srgb, var(--live-accent) 45%, transparent);
  border-radius: 50%;
  animation: live-marker-ring 3s ease-out infinite;
}

.live-marker-ring.ring-b {
  width: 104px;
  height: 104px;
  animation-delay: 1s;
}

.live-bottom-nav {
  position: absolute;
  right: 13px;
  bottom: 20px;
  left: 13px;
  z-index: 62;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  height: 68px;
  padding: 6px;
  border: 1px solid var(--live-border-strong);
  border-radius: 22px;
  background: color-mix(in srgb, var(--live-surface-solid) 91%, transparent);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .28);
  backdrop-filter: blur(26px);
}

.pulse-store-label {
  --status-color: #73777d;
  display: block;
  max-width: 172px;
  padding: 5px 8px 5px 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--status-color) 38%, var(--live-border));
  border-radius: 8px;
  background:
    radial-gradient(circle at 10px 50%, var(--status-color) 0 3px, transparent 3.5px),
    color-mix(in srgb, var(--live-surface-solid) 91%, var(--status-color) 9%);
  box-shadow:
    0 5px 16px rgba(4, 8, 15, .18),
    inset 0 1px rgba(255, 255, 255, .13);
  color: var(--status-color);
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(14px) saturate(1.12);
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.pulse-store-label.is-quiet { --status-color: #16883d; }
.pulse-store-label.is-normal { --status-color: #a96500; }
.pulse-store-label.is-busy { --status-color: #d75618; }
.pulse-store-label.is-packed { --status-color: #d62920; }
.pulse-store-label.is-insufficient { --status-color: #6f7680; }

[data-theme="dark"] .pulse-store-label.is-quiet { --status-color: #65d99a; }
[data-theme="dark"] .pulse-store-label.is-normal { --status-color: #f2ca63; }
[data-theme="dark"] .pulse-store-label.is-busy { --status-color: #f09a56; }
[data-theme="dark"] .pulse-store-label.is-packed { --status-color: #ff7777; }
[data-theme="dark"] .pulse-store-label.is-insufficient { --status-color: #aeb5bf; }

.pulse-store-label:hover,
.pulse-store-label.is-selected {
  z-index: 5;
  border-color: var(--status-color);
  background:
    radial-gradient(circle at 10px 50%, var(--status-color) 0 3px, transparent 3.5px),
    color-mix(in srgb, var(--live-surface-solid) 82%, var(--status-color) 18%);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--status-color) 25%, transparent);
  transform: scale(1.06);
}

.pulse-store-label.is-selected {
  max-width: 220px;
  font-size: 11px;
  font-weight: 800;
}

.live-bottom-nav button {
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 44px;
  min-height: 50px;
  padding: 4px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--live-faint);
  font-size: 9px;
}

.live-bottom-nav button.is-active {
  background: var(--live-accent-soft);
  color: var(--live-accent);
}

.live-bottom-nav .live-nav-post {
  width: 52px;
  height: 52px;
  min-height: 52px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--live-text);
  color: var(--live-device);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}

.live-scrim {
  position: absolute;
  inset: 0;
  z-index: 70;
  background: rgba(2, 4, 8, .44);
  backdrop-filter: blur(3px);
  animation: live-fade-in 170ms ease both;
}

.live-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  overflow: hidden;
  border: 1px solid var(--live-border-strong);
  border-radius: 29px 29px 0 0;
  background:
    linear-gradient(145deg, rgba(255,255,255,.05), transparent 30%),
    color-mix(in srgb, var(--live-surface-solid) 94%, transparent);
  box-shadow: 0 -18px 60px rgba(0, 0, 0, .35);
  backdrop-filter: blur(30px) saturate(1.08);
  animation: live-sheet-in 210ms cubic-bezier(.22,.72,.2,1) both;
}

.live-detail-sheet {
  height: calc(100% - 54px);
  padding: 35px 17px 28px;
}

.live-report-sheet {
  min-height: 642px;
  padding: 34px 17px 24px;
}

.live-sheet-handle {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 42px;
  height: 4px;
  border-radius: 4px;
  background: var(--live-border-strong);
  transform: translateX(-50%);
}

.live-sheet-close {
  position: absolute;
  top: 13px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--live-muted);
  color: var(--live-subtext);
}

.live-detail-heading {
  padding: 0 52px 15px 0;
  border-bottom: 1px solid var(--live-border);
}

.live-category {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--live-accent);
  font-size: 10px;
  font-weight: 700;
}

.live-detail-heading h1,
.live-report-sheet h1 {
  margin: 0;
  overflow: hidden;
  color: var(--live-text);
  font-size: 22px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-detail-heading p {
  margin: 7px 0 0;
  color: var(--live-subtext);
  font-size: 11px;
}

.live-forecast {
  padding-top: 14px;
}

.live-forecast > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-forecast h3 {
  margin: 0;
  font-size: 16px;
}

.live-forecast > div > span {
  color: var(--live-faint);
  font-size: 9px;
}

.live-chart {
  position: relative;
  height: 150px;
  margin-top: 8px;
  padding: 8px 3px 22px 32px;
}

.live-grid {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--live-border);
}

.live-grid.g1 { top: 12px; }
.live-grid.g2 { top: 61px; }
.live-grid.g3 { top: 111px; }

.live-bars {
  position: absolute;
  right: 4px;
  bottom: 24px;
  left: 32px;
  display: flex;
  align-items: end;
  gap: 4px;
  height: 112px;
}

.live-bars i {
  flex: 1;
  height: var(--h);
  min-width: 4px;
  border-radius: 3px 3px 0 0;
  background: color-mix(in srgb, var(--live-text) 58%, var(--live-muted));
  opacity: .58;
}

.live-bars i.is-current {
  background: var(--live-accent);
  opacity: 1;
}

.live-current-line {
  position: absolute;
  top: 7px;
  bottom: 22px;
  left: 71%;
  z-index: 2;
  width: 1px;
  background: var(--live-text);
  opacity: .45;
}

.live-current-label {
  position: absolute;
  top: -9px;
  left: calc(71% - 13px);
  color: var(--live-subtext);
  font-size: 8px;
}

.live-axis {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 32px;
  display: flex;
  justify-content: space-between;
  color: var(--live-faint);
  font-size: 8px;
}

.live-crowd-summary {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: center;
  min-height: 102px;
  overflow: hidden;
  border: 1px solid var(--live-border);
  border-radius: 17px;
  background: var(--live-muted);
}

.live-blob,
.live-crowd-summary liquid-orb-gauge {
  display: block;
  width: 112px;
  height: 124px;
}

.live-blob-shadow {
  fill: color-mix(in srgb, var(--live-accent) 30%, transparent);
  opacity: .55;
}

.live-blob-number {
  fill: #fff;
  font-size: 33px;
  font-weight: 750;
}

.live-blob-label {
  fill: rgba(255, 255, 255, .9);
  font-size: 13px;
  font-weight: 650;
}

.live-crowd-summary > div {
  padding-left: 5px;
}

.live-crowd-summary small,
.live-crowd-summary strong,
.live-crowd-summary span {
  display: block;
}

.live-crowd-summary small {
  color: var(--live-subtext);
  font-size: 10px;
}

.live-crowd-summary strong {
  margin: 1px 0;
  font-size: 28px;
}

.live-crowd-summary span,
.live-plaza-card header > span {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--status) 14%, transparent);
  color: var(--status);
  font-size: 10px;
  font-weight: 700;
}

.live-crowd-scale {
  margin-top: 8px;
  padding: 9px 0 2px;
  border-top: 1px solid var(--live-border);
}

.live-crowd-scale-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.live-crowd-scale-heading b {
  color: var(--live-text);
  font-size: 9px;
  font-weight: 700;
}

.live-crowd-scale-heading span {
  color: var(--live-faint);
  font-size: 8px;
}

.live-crowd-scale-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.live-crowd-scale-item {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  min-width: 0;
  padding: 6px 5px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: color-mix(in srgb, var(--live-muted) 72%, transparent);
  color: var(--live-subtext);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.live-crowd-scale-item i {
  grid-row: 1 / 3;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--level-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--level-color) 12%, transparent);
}

.live-crowd-scale-item b {
  overflow: hidden;
  font-size: 8px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-crowd-scale-item small {
  color: var(--live-faint);
  font-size: 7px;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  white-space: nowrap;
}

.live-crowd-scale-item.is-active {
  border-color: color-mix(in srgb, var(--level-color) 36%, var(--live-border));
  background: color-mix(in srgb, var(--level-color) 12%, var(--live-muted));
  color: var(--live-text);
}

.live-crowd-scale-item.is-active small {
  color: var(--live-subtext);
}

.live-crowd-scale.is-map {
  position: absolute;
  bottom: 128px;
  left: 14px;
  z-index: 15;
  width: min(280px, calc(100% - 84px));
  margin: 0;
  padding: 8px;
  border: 1px solid var(--live-border);
  border-radius: 11px;
  background: color-mix(in srgb, var(--live-surface) 94%, transparent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
  backdrop-filter: blur(18px);
}

.live-crowd-scale.is-map .live-crowd-scale-heading {
  margin-bottom: 5px;
}

.live-crowd-scale.is-map .live-crowd-scale-item {
  padding: 4px;
  background: transparent;
}

.live-crowd-scale.is-report {
  margin-top: 8px;
  padding-top: 8px;
}

.live-basis {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--live-border);
  border-radius: 12px;
}

.live-basis b {
  font-size: 10px;
}

.live-basis span {
  grid-column: 1;
  overflow: hidden;
  color: var(--live-subtext);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-basis em {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--live-subtext);
  font-size: 9px;
  font-style: normal;
}

.live-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 11px;
}

.live-detail-actions a,
.live-detail-actions button,
.live-ai-button,
.live-submit-report,
.live-cancel-report {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.live-detail-actions a {
  border: 0;
  background: var(--live-text);
  color: var(--live-device);
}

.live-detail-actions button {
  border: 1px solid var(--live-border);
  background: var(--live-muted);
  color: var(--live-text);
}

.live-ai-button {
  width: 100%;
  margin-top: 9px;
  border: 1px solid var(--live-border);
  background: var(--live-accent-soft);
  color: var(--live-accent);
}

.live-report-place {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 45px 13px 0;
  color: var(--live-subtext);
  font-size: 11px;
}

.live-report-place span {
  color: var(--live-faint);
  font-size: 9px;
}

.live-report-blob {
  position: relative;
  display: grid;
  place-items: center;
  height: 218px;
  overflow: hidden;
  border: 1px solid var(--live-border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--live-muted) 94%, black 6%);
}

.live-report-blob small {
  position: absolute;
  top: 13px;
  color: var(--live-subtext);
  font-size: 10px;
}

.live-report-blob .live-blob,
.live-report-blob liquid-orb-gauge {
  width: 250px;
  height: 156px;
  margin-top: 20px;
}

.live-slider-field {
  padding: 14px 3px 12px;
}

.live-slider-field input {
  width: 100%;
  height: 22px;
  margin: 0;
  appearance: none;
  background: transparent;
}

.live-slider-field input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, #4ac082, #dcc44e 39%, #e79043 67%, #e15959);
}

.live-slider-field input::-webkit-slider-thumb {
  width: 21px;
  height: 21px;
  margin-top: -8px;
  appearance: none;
  border: 3px solid var(--live-surface-solid);
  border-radius: 50%;
  background: var(--live-accent);
  box-shadow: 0 3px 12px color-mix(in srgb, var(--live-accent) 45%, transparent);
}

.live-slider-labels {
  display: flex;
  justify-content: space-between;
  color: var(--live-faint);
  font-size: 8px;
}

.live-note {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid var(--live-border);
  border-radius: 13px;
  background: var(--live-muted);
}

.live-note span {
  display: grid;
  gap: 2px;
  pointer-events: none;
}

.live-note b { font-size: 10px; }
.live-note small { color: var(--live-faint); font-size: 9px; }

.live-note input {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 24px 12px 5px 42px;
  border: 0;
  background: transparent;
  color: var(--live-text);
  caret-color: var(--live-accent);
  font-size: 10px;
  outline: 0;
}

.live-note:focus-within small,
.live-note:has(input:not(:placeholder-shown)) small { visibility: hidden; }

.live-submit-report {
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: var(--live-text);
  color: var(--live-device);
}

.live-cancel-report {
  width: 100%;
  margin-top: 5px;
  border: 0;
  background: transparent;
  color: var(--live-subtext);
}

.live-section-header {
  height: 76px;
}

.live-section-header small {
  color: var(--live-faint);
  font-size: 9px;
}

.live-section-header h1 {
  margin: 3px 0 0;
  font-size: 21px;
}

.live-plaza-view {
  overflow-y: auto;
}

.live-plaza-filter {
  display: flex;
  gap: 5px;
  margin: 12px 14px 8px;
  padding: 4px;
  border-radius: 13px;
  background: var(--live-muted);
}

.live-plaza-filter button {
  flex: 1;
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--live-subtext);
  font-size: 11px;
}

.live-plaza-filter button.is-active {
  background: var(--live-surface-solid);
  color: var(--live-text);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
}

.live-plaza-feed {
  display: grid;
  gap: 10px;
  padding: 5px 14px 32px;
}

.live-plaza-card {
  padding: 14px;
  border: 1px solid var(--live-border);
  border-radius: 16px;
  background: var(--live-surface-solid);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.live-plaza-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.live-plaza-card h2 {
  margin: 0;
  font-size: 14px;
}

.live-plaza-card header p {
  margin: 4px 0 0;
  color: var(--live-faint);
  font-size: 9px;
}

.live-plaza-comment {
  margin: 12px 0;
  color: var(--live-text);
  font-size: 12px;
  line-height: 1.65;
}

.live-plaza-card footer {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--live-border);
  color: var(--live-subtext);
  font-size: 9px;
}

.live-plaza-empty {
  display: grid;
  place-items: center;
  gap: 9px;
  min-height: 350px;
  padding: 25px;
  color: var(--live-subtext);
  text-align: center;
}

.live-plaza-empty b { color: var(--live-text); font-size: 14px; }
.live-plaza-empty span { font-size: 10px; }

.live-plaza-empty button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--live-text);
  color: var(--live-device);
  font-size: 11px;
  font-weight: 650;
}

.live-ai-view {
  background:
    radial-gradient(circle at 50% 25%, color-mix(in srgb, var(--live-accent) 17%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--live-device) 86%, #162038), var(--live-device));
}

.live-ai-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  text-align: center;
}

.live-ai-header h1 {
  margin: 0;
  font-size: 17px;
}

.live-ai-menu {
  position: absolute;
  top: 115px;
  right: 14px;
  z-index: 50;
  display: grid;
  width: 170px;
  padding: 6px;
  border: 1px solid var(--live-border-strong);
  border-radius: 14px;
  background: var(--live-surface-solid);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .32);
}

.live-ai-menu button {
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--live-text);
  text-align: left;
  font-size: 11px;
}

.live-ai-menu button:hover { background: var(--live-muted); }

.live-ai-content {
  position: absolute;
  inset: 123px 0 88px;
  overflow-y: auto;
  padding: 8px 14px 35px;
}

.live-ai-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 4px auto 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #f4f8ff 0 5%, #8cadff 18%, #5d71e9 48%, #2b286b 72%, transparent 74%);
  color: #fff;
  filter: drop-shadow(0 8px 20px rgba(80, 113, 255, .3));
  animation: live-orb 6s ease-in-out infinite;
}

.live-ai-orb i {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(117, 151, 255, .24);
  border-radius: 44% 56% 62% 38%;
  transform: rotate(20deg);
}

.live-ai-orb i:nth-child(2) { inset: -13px; transform: rotate(70deg); }
.live-ai-orb i:nth-child(3) { inset: -19px; transform: rotate(120deg); }

.live-ai-greeting {
  text-align: center;
}

.live-ai-greeting h2 {
  margin: 0;
  font-size: 20px;
}

.live-ai-greeting p {
  margin: 5px 0 18px;
  color: var(--live-subtext);
  font-size: 10px;
}

.live-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-chat-bubble {
  width: fit-content;
  max-width: 82%;
  padding: 11px 13px;
  border: 1px solid var(--live-border);
  border-radius: 18px;
  font-size: 11px;
  line-height: 1.65;
}

.live-chat-bubble.is-assistant {
  align-self: flex-start;
  background: var(--live-muted);
}

.live-chat-bubble.is-user {
  align-self: flex-end;
  border-color: transparent;
  background: linear-gradient(135deg, #7299ff, #416fe8);
  color: #fff;
}

.live-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.live-suggestions button {
  min-height: 37px;
  padding: 0 12px;
  border: 1px solid var(--live-border);
  border-radius: 19px;
  background: var(--live-surface-solid);
  color: var(--live-text);
  font-size: 10px;
}

.live-message-form {
  position: absolute;
  right: 13px;
  bottom: 21px;
  left: 13px;
  z-index: 65;
  display: grid;
  grid-template-columns: 1fr 43px;
  align-items: center;
  height: 58px;
  padding: 5px 6px 5px 15px;
  border: 1px solid var(--live-border-strong);
  border-radius: 21px;
  background: var(--live-surface-solid);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.live-message-form input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--live-text);
  font-size: 12px;
}

.live-message-form button {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: var(--live-accent);
  color: #fff;
}

.live-settings-popover {
  position: absolute;
  top: 105px;
  right: 14px;
  z-index: 100;
  display: grid;
  width: 190px;
  padding: 8px;
  border: 1px solid var(--live-border-strong);
  border-radius: 15px;
  background: var(--live-surface-solid);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .36);
}

.live-settings-popover > b {
  padding: 7px 9px 9px;
  color: var(--live-subtext);
  font-size: 10px;
}

.live-settings-popover button,
.live-settings-popover a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--live-text);
  font-size: 11px;
  text-align: left;
  text-decoration: none;
}

.live-settings-popover button:hover,
.live-settings-popover a:hover {
  background: var(--live-muted);
}

.live-toast {
  position: absolute;
  right: 24px;
  bottom: 102px;
  left: 24px;
  z-index: 130;
  padding: 11px 14px;
  border: 1px solid var(--live-border-strong);
  border-radius: 13px;
  background: var(--live-surface-solid);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
  color: var(--live-text);
  font-size: 11px;
  text-align: center;
  animation: live-toast-in 180ms ease both;
}

.live-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--live-border-strong);
  border-top-color: var(--live-accent);
  border-radius: 50%;
  animation: live-spin .8s linear infinite;
}

.live-icon {
  display: block;
  flex: 0 0 auto;
}

.live-app-shell button,
.live-app-shell a,
.live-app-shell input {
  font: inherit;
}

.live-app-shell button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.live-app-shell button:focus-visible,
.live-app-shell a:focus-visible,
.live-app-shell input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--live-accent) 45%, transparent);
  outline-offset: 2px;
}

@keyframes live-view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes live-sheet-in {
  from { opacity: 0; transform: translateY(38px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes live-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes live-marker-ring {
  0% { opacity: .8; transform: scale(.68); }
  100% { opacity: 0; transform: scale(1.25); }
}

@keyframes live-orb {
  0%, 100% { transform: scale(.96); }
  50% { transform: scale(1.04); }
}

@keyframes live-spin {
  to { transform: rotate(360deg); }
}

@keyframes live-toast-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .live-device {
    width: 100vw;
    height: 100dvh;
    min-height: 620px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .live-app-shell {
    background: var(--live-device);
  }
}

@media (max-height: 760px) and (min-width: 601px) {
  .live-device {
    width: 365px;
    height: calc(100dvh - 20px);
    min-height: 620px;
    border-radius: 40px;
  }

  .live-detail-sheet {
    overflow-y: auto;
  }

  .live-report-sheet {
    min-height: calc(100% - 44px);
    overflow-y: auto;
  }

  .live-report-blob {
    height: 170px;
  }
}

@media (orientation: landscape) and (max-width: 1023px) and (max-height: 600px) {
  .live-app-shell {
    display: block;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
    background: var(--live-device);
  }

  .live-device {
    width: 100vw;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .live-status,
  .live-home-indicator {
    display: none;
  }

  .live-view {
    padding: 0 0 76px;
  }

  .live-map {
    inset: 67px 0 0;
  }

  .live-search-wrap {
    top: 76px;
    right: 14px;
    left: 14px;
  }

  .live-category-control {
    top: 136px;
    right: 14px;
    left: 14px;
  }

  .live-search-panel {
    top: 182px;
    max-height: calc(100dvh - 194px);
  }

  .live-bottom-nav {
    bottom: 8px;
    height: 60px;
  }

  .live-sheet {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(430px, 100vw);
    max-height: 100dvh;
    border-radius: 24px 0 0 24px;
  }

  .live-detail-sheet,
  .live-report-sheet {
    height: 100dvh;
    min-height: 0;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .live-report-blob {
    height: 156px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-view,
  .live-sheet,
  .live-scrim,
  .live-toast,
  .live-marker-ring,
  .live-ai-orb,
  .live-spinner {
    animation: none !important;
    transition: none !important;
  }
}

html[data-screenshot="true"] .live-marker-ring,
html[data-screenshot="true"] .live-ai-orb,
html[data-screenshot="true"] .live-spinner {
  animation: none !important;
}
