:root {
  --canvas: #0b0d11;
  --canvas-secondary: #171a20;
  --phone-shell: #111419;
  --surface: rgba(29, 32, 38, 0.94);
  --surface-strong: #20242b;
  --surface-muted: #272b32;
  --text-primary: #f7f8fa;
  --text-secondary: #a8afb9;
  --text-tertiary: #747b85;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.17);
  --accent: #7397ff;
  --accent-strong: #4f7df5;
  --accent-soft: rgba(98, 137, 255, 0.18);
  --assistant-bubble: #2a2e35;
  --user-bubble: #416fe8;
  --input-surface: #191d23;
  --map-ground: #171b20;
  --map-road: #343a43;
  --map-road-major: #444b55;
  --map-park: #183328;
  --map-label: #c98a42;
  --pin-surface: #dfe3e8;
  --pin-ink: #1c2026;
  --sheet-highlight: rgba(255, 255, 255, 0.045);
  --blob-light: #f1f3f7;
  --blob-mid: #aeb5bf;
  --blob-dark: #4e545d;
  --primary-button: #f6f7f8;
  --primary-button-text: #101216;
  --flow-color: rgba(245, 247, 250, 0.9);
  --phone-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 2px 12px rgba(0, 0, 0, 0.46);
  --card-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  --spring: cubic-bezier(0.22, 0.75, 0.22, 1);
}

:root[data-theme="light"] {
  --canvas: #f8fafd;
  --canvas-secondary: #ffffff;
  --phone-shell: #ffffff;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: #ffffff;
  --surface-muted: #f4f6fa;
  --text-primary: #111318;
  --text-secondary: #697180;
  --text-tertiary: #98a0ad;
  --border: #e5e9f0;
  --border-strong: #d8dee8;
  --accent: #4f7ff5;
  --accent-strong: #316cf2;
  --accent-soft: #eaf1ff;
  --assistant-bubble: #ffffff;
  --user-bubble: #3f75f2;
  --input-surface: #ffffff;
  --map-ground: #f8fafc;
  --map-road: #e4e8ef;
  --map-road-major: #d6dce5;
  --map-park: #dff2e2;
  --map-label: #d7872a;
  --pin-surface: #ffffff;
  --pin-ink: #333944;
  --sheet-highlight: rgba(255, 255, 255, 0.9);
  --blob-light: #e9f1ff;
  --blob-mid: #9fbdff;
  --blob-dark: #5d87f5;
  --primary-button: #4f7ff5;
  --primary-button-text: #ffffff;
  --flow-color: rgba(17, 19, 24, 0.88);
  --phone-shadow: 0 26px 70px rgba(43, 57, 86, 0.14), 0 2px 10px rgba(43, 57, 86, 0.07);
  --card-shadow: 0 8px 26px rgba(52, 67, 104, 0.08);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html,
body {
  width: 100%;
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--canvas);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 44%, transparent);
  outline-offset: 2px;
}

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

.showcase-shell,
.demo-shell {
  position: relative;
  width: 100vw;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--canvas-secondary) 93%, white 7%) 0%, var(--canvas) 66%),
    var(--canvas);
}

:root[data-theme="dark"] .showcase-shell::after,
:root[data-theme="dark"] .demo-shell::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at center, transparent 36%, rgba(0, 0, 0, 0.34) 100%);
  content: "";
  pointer-events: none;
}

.showcase-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100dvh;
  padding: 35px 36px 28px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.showcase-stage::-webkit-scrollbar {
  display: none;
}

.phone-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 360px);
  gap: 48px;
  width: 1584px;
  height: 854px;
  margin: auto;
  padding-top: 17px;
  flex: 0 0 auto;
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: 360px;
  height: 810px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 47px;
  background: var(--phone-shell);
  box-shadow: var(--phone-shadow);
}

.phone-bezel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: var(--phone-shell);
  isolation: isolate;
}

.phone-bezel::before {
  position: absolute;
  inset: 1px;
  z-index: 90;
  border: 1px solid var(--sheet-highlight);
  border-radius: 45px;
  content: "";
  pointer-events: none;
}

.phone-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.status-bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr 116px 1fr;
  align-items: center;
  height: 48px;
  padding: 0 26px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
}

.status-time {
  justify-self: start;
}

.dynamic-island {
  justify-self: center;
  width: 104px;
  height: 31px;
  border-radius: 17px;
  background: #000;
}

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

.signal-bars {
  display: flex;
  align-items: end;
  gap: 2px;
  width: 17px;
  height: 12px;
}

.signal-bars b {
  width: 3px;
  border-radius: 2px;
  background: currentColor;
}

.signal-bars b:nth-child(1) { height: 4px; }
.signal-bars b:nth-child(2) { height: 7px; }
.signal-bars b:nth-child(3) { height: 9px; }
.signal-bars b:nth-child(4) { height: 12px; }

.wifi-mark {
  position: relative;
  width: 15px;
  height: 11px;
  overflow: hidden;
}

.wifi-mark::before,
.wifi-mark::after {
  position: absolute;
  left: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.wifi-mark::before {
  top: 0;
  width: 12px;
  height: 12px;
}

.wifi-mark::after {
  top: 4px;
  width: 5px;
  height: 5px;
}

.battery-mark {
  position: relative;
  display: block;
  width: 23px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.battery-mark::after {
  position: absolute;
  top: 3px;
  right: -3px;
  width: 2px;
  height: 5px;
  border-radius: 0 2px 2px 0;
  background: currentColor;
  content: "";
}

.battery-mark b {
  position: absolute;
  inset: 2px;
  border-radius: 1px;
  background: currentColor;
}

.home-indicator {
  position: absolute;
  right: 50%;
  bottom: 10px;
  z-index: 100;
  width: 118px;
  height: 5px;
  border-radius: 3px;
  background: var(--text-primary);
  transform: translateX(50%);
  pointer-events: none;
}

.app-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--phone-shell);
}

.screen-enter {
  animation: screen-enter 210ms ease both;
}

.screen-header {
  position: absolute;
  top: 46px;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
  backdrop-filter: blur(24px) saturate(1.1);
}

.screen-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.settings-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 2px 0 10px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
}

.settings-trigger .icon {
  padding: 8px;
  overflow: visible;
  border-radius: 50%;
  background: var(--surface-muted);
}

.map-scene {
  position: absolute;
  inset: 118px 0 0;
  overflow: hidden;
  background: var(--map-ground);
}

.map-scene.compact {
  inset: 48px 0 0;
  opacity: 0.6;
  filter: saturate(0.72);
}

.map-art {
  display: block;
  width: 100%;
  height: 100%;
}

.map-ground {
  fill: var(--map-ground);
}

.park {
  fill: var(--map-park);
  opacity: 0.82;
}

.minor-roads path {
  fill: none;
  stroke: var(--map-road);
  stroke-linecap: round;
  stroke-width: 3;
}

.major-roads path {
  fill: none;
  stroke: var(--map-road-major);
  stroke-linecap: round;
  stroke-width: 7;
}

.map-labels text {
  fill: var(--map-label);
  font-size: 9px;
  font-weight: 600;
}

.map-labels .street-name {
  fill: var(--text-tertiary);
  font-size: 8px;
  font-weight: 400;
}

.map-marker {
  --x: 50%;
  --y: 50%;
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 5;
  display: block;
  width: 48px;
  height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
}

button.map-marker {
  cursor: pointer;
}

.marker-core {
  position: absolute;
  top: 0;
  left: 5px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--border-strong) 80%, transparent);
  border-radius: 50%;
  background: var(--pin-surface);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  color: var(--pin-ink);
}

.marker-tip {
  position: absolute;
  top: 30px;
  left: 19px;
  z-index: 2;
  width: 12px;
  height: 12px;
  background: var(--pin-surface);
  box-shadow: 4px 5px 8px rgba(0, 0, 0, 0.1);
  transform: rotate(45deg);
}

.map-marker.selected {
  width: 74px;
  height: 78px;
}

.map-marker.selected .marker-core {
  top: 12px;
  left: 12px;
  width: 50px;
  height: 50px;
  color: var(--accent);
}

.map-marker.selected .marker-tip {
  top: 54px;
  left: 31px;
  background: var(--pin-surface);
}

.marker-ring {
  position: absolute;
  top: 37px;
  left: 37px;
  z-index: 1;
  border: 1px solid color-mix(in srgb, var(--accent) 44%, transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: marker-pulse 3.2s ease-out infinite;
}

.marker-ring.ring-1 { width: 66px; height: 66px; }
.marker-ring.ring-2 { width: 88px; height: 88px; animation-delay: .65s; }
.marker-ring.ring-3 { width: 110px; height: 110px; animation-delay: 1.3s; }

.map-tools {
  position: absolute;
  top: 18px;
  right: 14px;
  z-index: 8;
  display: grid;
  width: 45px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.map-tools button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

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

.maps-credit {
  position: absolute;
  bottom: 18px;
  left: 15px;
  z-index: 4;
  font-size: 11px;
  font-weight: 650;
}

.map-post-button {
  position: absolute;
  right: 50%;
  bottom: 43px;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.28);
  transform: translateX(50%);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.map-post-button b {
  position: absolute;
  top: calc(100% + 10px);
  font-size: 17px;
  font-weight: 600;
}

.post-plus {
  position: absolute;
  top: -8px;
  right: -2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-strong);
  box-shadow: var(--card-shadow);
}

.glass-sheet {
  position: absolute;
  z-index: 22;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(145deg, var(--sheet-highlight), transparent 35%),
    color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(30px) saturate(1.08);
  backdrop-filter: blur(30px) saturate(1.08);
}

.detail-sheet {
  top: 55px;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 34px 17px 25px;
  border-radius: 26px 26px 45px 45px;
}

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

.sheet-close,
.header-close,
.ai-menu-button,
.ai-back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 12px;
}

.store-heading {
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
}

.store-heading h1 {
  max-width: 285px;
  margin: 0 0 9px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.store-heading p {
  margin: 3px 0 0;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.35;
}

.forecast-chart {
  padding: 15px 0 8px;
}

.chart-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 29px;
}

.chart-heading h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.chart-heading span {
  margin-right: 58px;
  color: var(--text-secondary);
  font-size: 11px;
}

.chart-body {
  position: relative;
  height: 174px;
  padding: 14px 0 24px 34px;
}

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

.grid-1 { top: 17px; }
.grid-2 { top: 76px; }
.grid-3 { top: 137px; }

.axis-high,
.axis-low {
  position: absolute;
  left: 0;
  z-index: 3;
  color: var(--text-tertiary);
  font-size: 10px;
}

.axis-high.top { top: 9px; }
.axis-high.middle { top: 67px; }
.axis-low.middle { top: 87px; }
.axis-low.bottom { top: 128px; }

.chart-bars {
  position: absolute;
  right: 5px;
  bottom: 25px;
  left: 39px;
  z-index: 2;
  display: flex;
  align-items: end;
  gap: 3px;
  height: 125px;
}

.chart-bars i {
  flex: 1;
  height: var(--bar);
  min-width: 3px;
  border-radius: 2px 2px 0 0;
  background: color-mix(in srgb, var(--text-primary) 57%, var(--surface-muted));
  opacity: 0.68;
}

:root[data-theme="light"] .chart-bars i {
  background: color-mix(in srgb, var(--accent) 25%, white);
  opacity: 1;
}

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

.current-line {
  position: absolute;
  top: 8px;
  bottom: 24px;
  left: 73%;
  z-index: 3;
  width: 1px;
  background: color-mix(in srgb, var(--text-primary) 68%, transparent);
}

.chart-labels {
  position: absolute;
  right: 5px;
  bottom: 4px;
  left: 39px;
  display: flex;
  justify-content: space-between;
  color: var(--text-tertiary);
  font-size: 9px;
}

.crowd-summary-card {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  align-items: center;
  min-height: 93px;
  padding: 6px 14px 6px 4px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-muted);
}

.crowd-summary-card liquid-orb-gauge {
  display: block;
  width: 112px;
  height: 124px;
  overflow: visible;
}

.report-blob-card liquid-orb-gauge {
  width: 250px;
  height: 156px;
}

.crowd-summary-card span {
  color: var(--text-secondary);
  font-size: 14px;
}

.crowd-summary-card p {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 2px 0 0;
}

.crowd-summary-card b {
  font-size: 29px;
  font-weight: 700;
}

.crowd-summary-card em {
  color: var(--text-primary);
  font-size: 14px;
  font-style: normal;
}

.report-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 37px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
}

.report-link span {
  margin-left: 9px;
  font-size: 20px;
}

.primary-action,
.secondary-action,
.cancel-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
}

.primary-action {
  border: 0;
  background: var(--primary-button);
  box-shadow: 0 5px 14px color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--primary-button-text);
}

.primary-action.confirmed {
  background: var(--accent-soft);
  color: var(--accent);
}

.secondary-action {
  margin-top: 10px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text-primary);
}

.cancel-action {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
}

.report-header {
  padding-right: 14px;
}

.report-header h1 {
  font-size: 23px;
}

.report-screen > .map-scene {
  inset: 118px 0 0;
  opacity: 0.72;
}

.report-screen > .map-scene .maps-credit {
  display: none;
}

.report-sheet {
  top: 294px;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 30px 16px 21px;
  border-radius: 29px 29px 45px 45px;
}

.report-sheet h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.report-location {
  margin: 7px 0 15px;
  overflow: hidden;
  color: var(--text-tertiary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.report-blob-card > span {
  position: absolute;
  top: 13px;
  color: var(--text-secondary);
  font-size: 11px;
}

.report-blob-card liquid-orb-gauge {
  margin-top: 21px;
}

.crowd-slider-wrap {
  position: relative;
  padding: 15px 3px 21px;
}

.crowd-slider {
  width: 100%;
  height: 21px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.crowd-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #48b982, #d5b940 38%, #e79532 64%, #db5753);
}

.crowd-slider::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -8px;
  appearance: none;
  border: 3px solid var(--surface-strong);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 44%, transparent);
}

.crowd-slider::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #48b982, #d5b940 38%, #e79532 64%, #db5753);
}

.crowd-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid var(--surface-strong);
  border-radius: 50%;
  background: var(--accent);
}

.slider-labels {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  display: flex;
  justify-content: space-between;
  color: var(--text-tertiary);
  font-size: 8px;
}

.note-field {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 53px;
  margin-bottom: 11px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--input-surface);
}

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

.note-field b {
  font-size: 11px;
  font-weight: 600;
}

.note-field small {
  color: var(--text-tertiary);
  font-size: 9px;
}

.note-field input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 23px 12px 4px 41px;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: var(--accent);
  outline: none;
}

.note-field:focus-within > span small {
  color: transparent;
}

.note-field:focus-within input,
.note-field input:not(:placeholder-shown) {
  color: var(--text-primary);
}

.ai-screen {
  background:
    radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--phone-shell) 90%, #15213b 10%), var(--phone-shell));
}

.ai-header {
  position: absolute;
  top: 47px;
  right: 14px;
  left: 14px;
  z-index: 22;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 58px;
}

.ai-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.ai-back {
  color: var(--accent);
}

.assistant-intro {
  position: absolute;
  top: 112px;
  right: 0;
  left: 0;
  display: grid;
  justify-items: center;
}

.ai-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 152px;
  height: 116px;
  margin-bottom: 2px;
  animation: orb-breathe 6s ease-in-out infinite;
}

.orb-glow {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #c3d2ff 0%, #6a8eff 32%, #5e62c8 61%, transparent 72%);
  box-shadow: 0 0 34px color-mix(in srgb, var(--accent) 30%, transparent);
}

.orb-ring {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 50%;
}

.orb-ring.ring-a { width: 86px; height: 86px; }
.orb-ring.ring-b { width: 110px; height: 70px; transform: rotate(33deg); }
.orb-ring.ring-c { width: 110px; height: 70px; transform: rotate(-33deg); }

.orb-wave {
  position: absolute;
  right: -13px;
  left: -13px;
  width: 178px;
  overflow: visible;
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 34%, transparent);
  stroke-width: 1.3;
}

.ai-orb > span {
  position: relative;
  z-index: 3;
  color: #fff;
}

.assistant-intro h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
}

.assistant-intro p {
  margin: 5px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.chat-thread {
  position: absolute;
  top: 304px;
  right: 14px;
  bottom: 166px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  scrollbar-width: none;
}

.chat-thread::-webkit-scrollbar {
  display: none;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 19px;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.55;
  animation: bubble-in 190ms ease both;
}

.chat-bubble.assistant {
  align-self: flex-start;
  border: 1px solid var(--border);
  border-bottom-left-radius: 7px;
  background: var(--assistant-bubble);
  box-shadow: var(--card-shadow);
}

.chat-bubble.user {
  align-self: flex-end;
  border-bottom-right-radius: 7px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--user-bubble) 80%, white 20%), var(--user-bubble));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--user-bubble) 23%, transparent);
  color: #fff;
}

.suggestion-row {
  position: absolute;
  right: 14px;
  bottom: 120px;
  left: 14px;
  display: flex;
  gap: 7px;
}

.suggestion-chip {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 550;
}

.message-input {
  position: absolute;
  right: 14px;
  bottom: 35px;
  left: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: center;
  min-height: 58px;
  padding: 5px 5px 5px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: var(--input-surface);
  box-shadow: var(--card-shadow);
}

.message-input input {
  width: 100%;
  height: 45px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

.message-input input::placeholder {
  color: var(--text-tertiary);
}

.message-input button {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  padding: 0;
  border: 0;
  border-radius: 17px;
  background: var(--accent-soft);
  color: var(--accent);
}

.theme-popover,
.ai-menu-popover {
  position: absolute;
  z-index: 70;
  display: grid;
  gap: 4px;
  min-width: 160px;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  animation: popover-in 160ms ease both;
}

.theme-popover {
  top: 105px;
  right: 14px;
}

.theme-popover b {
  padding: 7px 9px;
  color: var(--text-secondary);
  font-size: 11px;
}

.theme-popover button,
.ai-menu-popover button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-primary);
  font-size: 12px;
  text-align: left;
}

.theme-popover button:hover,
.ai-menu-popover button:hover {
  background: var(--surface-muted);
}

.ai-menu-popover {
  top: 97px;
  right: 14px;
}

.flow-arrow-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 1584px;
  height: 854px;
  overflow: visible;
  color: var(--flow-color);
  pointer-events: none;
}

.flow-arrow-overlay path:not([fill]) {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-shell {
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 20px;
}

.demo-phone-wrap {
  position: relative;
  z-index: 2;
}

.demo-caption {
  position: fixed;
  bottom: 10px;
  z-index: 2;
  margin: 0;
  color: var(--text-tertiary);
  font-size: 11px;
}

.is-interactive button {
  cursor: pointer;
}

.is-interactive button:active {
  transform: scale(0.97);
}

.is-interactive .map-post-button:active {
  transform: translateX(50%) scale(0.97);
}

@keyframes marker-pulse {
  0% { opacity: .65; transform: translate(-50%, -50%) scale(.55); }
  70%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

@keyframes screen-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes orb-breathe {
  0%, 100% { transform: scale(.97); }
  50% { transform: scale(1.035); }
}

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@keyframes popover-in {
  from { opacity: 0; transform: translateY(-5px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1697px) {
  .showcase-stage {
    place-items: center start;
  }

  .phone-track {
    margin-right: 0;
    margin-left: max(24px, calc((100vw - 1584px) / 2));
  }
}

@media (max-height: 890px) and (min-width: 1000px) {
  .phone-track {
    transform: scale(.94);
    transform-origin: center center;
  }
}

@media (max-width: 620px) {
  .demo-shell {
    padding: 0;
  }

  .demo-phone-wrap,
  .demo-phone {
    width: min(100vw, 390px);
    height: 100dvh;
    max-height: 844px;
  }

  .demo-phone {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .demo-phone .phone-bezel,
  .demo-phone .phone-bezel::before {
    border-radius: 0;
  }

  .demo-caption {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html[data-screenshot="true"] *,
html[data-screenshot="true"] *::before,
html[data-screenshot="true"] *::after {
  animation: none !important;
  transition: none !important;
}
