.pulse-web-shell {
  position: relative;
  width: 100vw;
  height: 100dvh;
  min-width: 1024px;
  overflow: hidden;
  background: var(--live-device);
  color: var(--live-text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
}

.web-topbar {
  position: relative;
  z-index: 200;
  display: grid;
  grid-template-columns: 288px minmax(360px, 1fr) 420px;
  align-items: center;
  height: 64px;
  border-bottom: 1px solid var(--live-border);
  background: color-mix(in srgb, var(--live-surface-solid) 94%, transparent);
  backdrop-filter: blur(24px);
}

.web-brand {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 22px;
  border-right: 1px solid var(--live-border);
  color: var(--live-text);
  text-decoration: none;
}

.web-brand > i {
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--live-accent);
  box-shadow: 0 0 0 5px var(--live-accent-soft);
}

.web-brand strong {
  font-size: 17px;
}

.web-brand span {
  margin-left: 6px;
  color: var(--live-subtext);
  font-size: 11px;
  font-weight: 650;
}

.web-brand em {
  margin-left: 10px;
  padding: 3px 6px;
  border: 1px solid var(--live-border);
  border-radius: 5px;
  color: var(--live-faint);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.web-primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.web-primary-nav button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--live-subtext);
  font-size: 11px;
  font-weight: 650;
}

.web-primary-nav button:hover {
  background: var(--live-muted);
  color: var(--live-text);
}

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

.web-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-right: 16px;
}

.web-data-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: 7px;
  color: var(--live-subtext);
  font-size: 9px;
}

.web-data-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #53c98b;
  box-shadow: 0 0 0 4px color-mix(in srgb, #53c98b 14%, transparent);
}

.web-top-actions > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--live-border);
  border-radius: 8px;
  background: var(--live-text);
  color: var(--live-device);
  font-size: 10px;
  font-weight: 700;
}

.web-top-actions .web-settings-button {
  width: 38px;
  padding: 0;
  background: var(--live-muted);
  color: var(--live-text);
}

.web-workspace {
  display: grid;
  grid-template-columns: 288px minmax(500px, 1fr) 370px;
  height: calc(100dvh - 64px);
  min-height: 0;
  overflow: hidden;
}

.web-sidebar {
  position: relative;
  z-index: 90;
  display: flex;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
  border-right: 1px solid var(--live-border);
  background: var(--live-device);
}

.web-search-block {
  position: relative;
  z-index: 60;
  flex: 0 0 auto;
  padding: 16px 14px 14px;
  border-bottom: 1px solid var(--live-border);
}

.web-search-field {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  height: 43px;
  padding: 0 11px;
  border: 1px solid var(--live-border-strong);
  border-radius: 9px;
  background: var(--live-muted);
  color: var(--live-subtext);
}

.web-search-field:focus-within {
  border-color: color-mix(in srgb, var(--live-accent) 55%, transparent);
  box-shadow: 0 0 0 3px var(--live-accent-soft);
}

.web-search-field input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--live-text);
  font-size: 11px;
}

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

.web-search-field kbd {
  padding: 3px 5px;
  border: 1px solid var(--live-border);
  border-radius: 5px;
  color: var(--live-faint);
  font-family: inherit;
  font-size: 8px;
}

.web-category-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  height: 36px;
  margin-top: 9px;
  padding: 0 9px;
  border: 1px solid var(--live-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--live-muted) 78%, transparent);
  color: var(--live-subtext);
}

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

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

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

.web-search-block .live-search-panel {
  top: 109px;
  right: 10px;
  left: 10px;
  max-height: min(520px, calc(100dvh - 155px));
  border-radius: 10px;
}

.web-sidebar-heading {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px 9px;
}

.web-sidebar-heading small {
  color: var(--live-faint);
  font-size: 8px;
}

.web-sidebar-heading h2 {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 2px 0 0;
  font-size: 13px;
}

.web-sidebar-heading h2 em {
  color: var(--live-faint);
  font-size: 7px;
  font-style: normal;
  font-weight: 550;
}

.web-sidebar-heading button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--live-border);
  border-radius: 8px;
  background: transparent;
  color: var(--live-subtext);
}

.web-place-list {
  display: grid;
  flex: 1 1 0;
  align-content: start;
  gap: 2px;
  min-height: 0;
  max-height: 100%;
  padding: 0 8px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.web-place-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 90px;
  padding: 16px;
  color: var(--live-faint);
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.web-place-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--live-text);
  text-align: left;
}

.web-place-row:hover {
  background: var(--live-muted);
}

.web-place-row.is-selected {
  border-color: color-mix(in srgb, var(--live-accent) 25%, transparent);
  background: var(--live-accent-soft);
}

.web-place-row > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status);
}

.web-place-row > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.web-place-row b {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.web-place-row small {
  overflow: hidden;
  color: var(--live-faint);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.web-place-row em {
  color: var(--live-subtext);
  font-size: 10px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.web-sidebar-foot {
  display: grid;
  flex: 0 0 auto;
  gap: 4px;
  margin-top: auto;
  padding: 14px 16px 17px;
  border-top: 1px solid var(--live-border);
}

.web-sidebar-foot > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--live-subtext);
  font-size: 8px;
}

.web-sidebar-foot > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e1b94d;
}

.web-sidebar-foot > b {
  font-size: 9px;
}

.web-sidebar-foot > small {
  color: var(--live-faint);
  font-size: 8px;
  line-height: 1.5;
}

.web-sidebar-foot .live-crowd-scale.is-sidebar {
  margin: 5px 0 2px;
  padding-top: 8px;
}

.web-sidebar-foot .live-crowd-scale-item {
  padding: 5px 4px;
}

.web-sidebar-foot .live-crowd-scale-item b {
  font-size: 7px;
}

.web-sidebar-foot .live-crowd-scale-item small {
  font-size: 6px;
}

.web-legal-links {
  display: flex;
  gap: 11px;
  margin-top: 4px;
}

.web-legal-links a {
  color: var(--live-faint);
  font-size: 7px;
  text-decoration: none;
}

.web-legal-links a:hover {
  color: var(--live-text);
  text-decoration: underline;
}

.web-center {
  position: relative;
  width: 100%;
  height: calc(100dvh - 64px);
  min-width: 0;
  min-height: 0;
  max-height: calc(100dvh - 64px);
  overflow: hidden;
  background: var(--live-map);
  contain: strict;
}

.web-map-stage,
.web-mapkit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.web-mapkit {
  z-index: 1;
  background: var(--live-map);
}

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

.web-map-state.is-error {
  color: var(--live-subtext);
}

.web-map-state b {
  color: var(--live-text);
  font-size: 11px;
}

.web-map-state small {
  max-width: 290px;
  color: var(--live-faint);
  font-size: 8px;
  line-height: 1.6;
}

.web-map-toolbar {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 12;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--live-border-strong);
  border-radius: 8px;
  background: color-mix(in srgb, var(--live-surface-solid) 91%, transparent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
  backdrop-filter: blur(20px);
}

.web-map-toolbar span {
  display: flex;
  align-items: center;
  padding: 0 11px;
  border-right: 1px solid var(--live-border);
  color: var(--live-subtext);
  font-size: 9px;
  font-weight: 650;
}

.web-map-toolbar button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--live-border);
  background: transparent;
  color: var(--live-text);
}

.web-map-toolbar button:last-child {
  border-right: 0;
}

.web-map-selected {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 12;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(360px, calc(100% - 36px));
  min-height: 55px;
  padding: 9px 12px;
  border: 1px solid var(--live-border-strong);
  border-radius: 9px;
  background: color-mix(in srgb, var(--live-surface-solid) 91%, transparent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .23);
  backdrop-filter: blur(22px);
}

.web-map-selected > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live-accent);
}

.web-map-selected > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.web-map-selected small {
  color: var(--live-faint);
  font-size: 7px;
}

.web-map-selected b {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.web-map-selected em {
  color: var(--live-accent);
  font-size: 14px;
  font-style: normal;
  font-weight: 750;
}

.web-inspector {
  position: relative;
  z-index: 90;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid var(--live-border);
  background: var(--live-device);
}

.web-inspector-panel {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.web-inspector-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--live-border);
}

.web-inspector-heading span {
  color: var(--live-accent);
  font-size: 8px;
  font-weight: 700;
}

.web-inspector-heading h1 {
  margin: 5px 0 0;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.web-inspector-heading p {
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--live-subtext);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.web-inspector-heading button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--live-border);
  border-radius: 8px;
  background: var(--live-muted);
  color: var(--live-text);
}

.web-crowd-overview {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  align-items: center;
  min-height: 142px;
  margin: 17px 0 3px;
  border: 1px solid var(--live-border);
  border-radius: 10px;
  background: var(--live-muted);
  overflow: hidden;
}

.web-crowd-overview liquid-orb-gauge {
  width: 128px;
  height: 141px;
}

.web-crowd-overview > div {
  display: grid;
}

.web-crowd-overview small {
  color: var(--live-subtext);
  font-size: 8px;
}

.web-crowd-overview strong {
  font-size: 27px;
  font-variant-numeric: tabular-nums;
}

.web-crowd-overview span {
  width: fit-content;
  margin-top: 3px;
  padding: 3px 6px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--status) 14%, transparent);
  color: var(--status);
  font-size: 8px;
  font-weight: 700;
}

.web-inspector .live-forecast {
  padding-top: 16px;
}

.web-inspector .live-forecast h3 {
  font-size: 12px;
}

.web-inspector .live-chart {
  height: 142px;
}

.web-inspector .live-basis {
  margin-top: 8px;
}

.web-inspector .live-crowd-scale {
  margin-top: 9px;
}

.web-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

.web-detail-actions a,
.web-detail-actions button,
.web-ai-action,
.web-submit-report {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
}

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

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

.web-ai-action {
  width: 100%;
  margin-top: 7px;
  border: 1px solid color-mix(in srgb, var(--live-accent) 25%, transparent);
  background: var(--live-accent-soft);
  color: var(--live-accent);
}

.web-report-blob {
  position: relative;
  display: grid;
  place-items: center;
  height: 240px;
  margin-top: 17px;
  overflow: hidden;
  border: 1px solid var(--live-border);
  border-radius: 10px;
  background: var(--live-muted);
}

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

.web-report-blob liquid-orb-gauge {
  width: 270px;
  height: 169px;
  margin-top: 24px;
}

.web-note-field {
  display: grid;
  gap: 7px;
  margin-top: 5px;
}

.web-note-field > span {
  font-size: 9px;
  font-weight: 700;
}

.web-note-field small {
  margin-left: 3px;
  color: var(--live-faint);
  font-size: 7px;
  font-weight: 500;
}

.web-note-field textarea {
  min-height: 84px;
  resize: vertical;
  padding: 10px;
  border: 1px solid var(--live-border);
  border-radius: 8px;
  outline: 0;
  background: var(--live-muted);
  color: var(--live-text);
  font: inherit;
  font-size: 10px;
  line-height: 1.6;
}

.web-note-field textarea:focus {
  border-color: color-mix(in srgb, var(--live-accent) 55%, transparent);
  box-shadow: 0 0 0 3px var(--live-accent-soft);
}

.web-report-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0;
  color: var(--live-subtext);
  font-size: 8px;
}

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

.web-feed-stage,
.web-ai-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--live-device);
}

.web-feed-stage .live-view,
.web-ai-stage .live-view {
  inset: 0;
  padding: 0;
}

.web-feed-stage .live-section-header,
.web-ai-stage .live-section-header {
  height: 72px;
  padding: 0 22px;
}

.web-feed-stage .live-plaza-filter {
  width: 250px;
  margin: 14px 22px 8px;
}

.web-feed-stage .live-plaza-feed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 7px 22px 24px;
}

.web-feed-stage .live-plaza-card {
  border-radius: 9px;
  box-shadow: none;
}

.web-ai-stage .live-ai-content {
  inset: 72px 0 76px;
  width: min(680px, calc(100% - 44px));
  margin: 0 auto;
  padding: 22px 10px 35px;
}

.web-ai-stage .live-ai-orb {
  width: 94px;
  height: 94px;
}

.web-ai-stage .live-chat-bubble {
  max-width: 72%;
  font-size: 11px;
}

.web-ai-stage .live-message-form {
  right: max(22px, calc((100% - 680px) / 2));
  bottom: 14px;
  left: max(22px, calc((100% - 680px) / 2));
  height: 52px;
  border-radius: 10px;
}

.pulse-web-shell .live-settings-popover {
  top: 58px;
  right: 16px;
  z-index: 300;
  width: 205px;
  border-radius: 10px;
}

.pulse-web-shell .web-toast {
  right: 392px;
  bottom: 20px;
  left: auto;
  width: 300px;
}

.pulse-web-shell button,
.pulse-web-shell a,
.pulse-web-shell input,
.pulse-web-shell textarea {
  font-family: inherit;
}

.pulse-web-shell button {
  cursor: pointer;
}

.pulse-web-shell button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

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

@media (max-width: 1220px) {
  .web-topbar {
    grid-template-columns: 250px minmax(330px, 1fr) 340px;
  }

  .web-workspace {
    grid-template-columns: 250px minmax(430px, 1fr) 340px;
  }

  .web-data-status {
    display: none;
  }
}

@media (max-height: 740px) {
  .web-crowd-overview {
    min-height: 108px;
    margin-top: 10px;
  }

  .web-crowd-overview liquid-orb-gauge {
    width: 104px;
    height: 115px;
  }

  .web-inspector .live-chart {
    height: 115px;
  }

  .web-inspector-panel {
    padding: 14px 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-web-shell *,
  .pulse-web-shell *::before,
  .pulse-web-shell *::after {
    scroll-behavior: auto !important;
  }
}
