:root {
  --bg: #edf3fb;
  --bg-soft: #f7faff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-muted: rgba(247, 250, 255, 0.92);
  --text: #202124;
  --muted: #5f6368;
  --blue: #1a73e8;
  --blue-deep: #165ec0;
  --green: #188038;
  --yellow: #f9ab00;
  --red: #d93025;
  --line: rgba(32, 33, 36, 0.08);
  --line-strong: rgba(26, 115, 232, 0.18);
  --shadow-lg: 0 30px 80px rgba(79, 104, 139, 0.18);
  --shadow-md: 0 16px 40px rgba(99, 117, 143, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font-sans: "Google Sans Text", "Product Sans", "Manrope", "Avenir Next", sans-serif;
  --font-display: "Google Sans", "Product Sans", "Manrope", "Avenir Next", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(26, 115, 232, 0.14), transparent 24%),
    radial-gradient(circle at 92% 18%, rgba(249, 171, 0, 0.12), transparent 24%),
    radial-gradient(circle at 82% 84%, rgba(24, 128, 56, 0.12), transparent 28%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 42%, #edf3fb 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 82%);
}

.color-cloud {
  position: fixed;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}

.color-cloud-blue {
  top: -8rem;
  left: -10rem;
  background: rgba(26, 115, 232, 0.36);
}

.color-cloud-green {
  top: 14rem;
  right: -8rem;
  background: rgba(24, 128, 56, 0.22);
}

.color-cloud-yellow {
  bottom: -10rem;
  left: 28%;
  background: rgba(249, 171, 0, 0.2);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.masthead,
.hero-grid,
.dashboard-grid,
.panel,
.watch-card,
.empty-state {
  animation: rise-in 600ms ease both;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0 1.5rem;
}

.brand-lockup,
.masthead-actions,
.hero-pills,
.watch-summary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.brand-lockup {
  gap: 1rem;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.26rem;
  width: 2.9rem;
  aspect-ratio: 1;
  padding: 0.22rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
}

.brand-segment {
  border-radius: 0.55rem;
}

.brand-blue {
  background: var(--blue);
}

.brand-red {
  background: var(--red);
}

.brand-yellow {
  background: var(--yellow);
}

.brand-green {
  background: var(--green);
}

.brand-name,
.brand-subtitle,
.metric-label,
.metric-copy,
.form-helper,
.field-note,
.section-copy,
.info-card p,
.watch-card .address,
.meta-label,
.status,
.resolve-preview {
  margin: 0;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
}

.eyebrow,
.panel-label,
.metric-label,
.info-title,
.summary-chip {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

.eyebrow,
.panel-label,
.metric-label,
.info-title {
  color: var(--blue);
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 0.5rem;
}

.hero-copy {
  padding: 2.6rem 0 1.8rem;
}

.hero-copy h1,
.panel h2,
.empty-state h3,
.watch-card h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.045em;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.98;
  margin-top: 0.5rem;
}

.lede,
.section-copy,
.form-helper,
.field-note,
.info-card p,
.watch-card .address,
.meta-label,
.status,
.resolve-preview {
  color: var(--muted);
  line-height: 1.65;
}

.lede {
  max-width: 62ch;
  margin-top: 1rem;
  font-size: 1.04rem;
}

.hero-pills {
  margin-top: 1.6rem;
}

.hero-pill,
.summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(26, 115, 232, 0.12);
  box-shadow: 0 8px 24px rgba(99, 117, 143, 0.08);
  color: #3c4043;
  font-size: 0.84rem;
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.hero-card,
.metric-card,
.panel,
.watch-card,
.empty-state,
.info-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.hero-card,
.metric-card,
.panel,
.watch-card,
.empty-state,
.info-card {
  border-radius: var(--radius-xl);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -3rem -4rem auto;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.16), transparent 70%);
}

.hero-card-feature h2 {
  margin-top: 0.5rem;
  font-size: 2rem;
  line-height: 1.05;
}

.hero-card-feature p:last-child {
  position: relative;
  z-index: 1;
  margin-top: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card {
  padding: 1.25rem 1.3rem;
}

.metric-card strong {
  display: block;
  margin-top: 0.55rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.05em;
}

.metric-copy {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.92rem;
}

.panel {
  padding: 1.5rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.2rem;
  margin-top: 1rem;
}

.section-head,
.watch-card-header,
.watch-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.section-head {
  align-items: flex-start;
}

.panel h2 {
  margin-top: 0.35rem;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.section-copy {
  max-width: 28ch;
  font-size: 0.94rem;
}

.watch-form {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) 112px auto;
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: start;
}

.watch-form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.93rem;
  color: #3c4043;
}

.field-primary {
  grid-column: 1 / span 3;
}

.field-secondary {
  grid-column: 1 / span 2;
}

.field-icon {
  grid-column: 3;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.1rem;
  padding: 0.4rem 0.55rem 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(32, 33, 36, 0.08);
  background: var(--surface-strong);
  box-shadow: 0 10px 24px rgba(99, 117, 143, 0.12);
}

.search-field:focus-within {
  border-color: rgba(26, 115, 232, 0.32);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.12), 0 16px 32px rgba(99, 117, 143, 0.18);
}

.search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(26, 115, 232, 0.09);
  color: var(--blue);
  font-size: 1.15rem;
}

.watch-form input {
  width: 100%;
  border: 1px solid rgba(32, 33, 36, 0.08);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  color: var(--text);
  padding: 0.95rem 1rem;
  font: inherit;
  box-shadow: 0 6px 20px rgba(99, 117, 143, 0.08);
}

.search-field input {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 1.02rem;
}

.watch-form input:focus {
  outline: none;
  border-color: rgba(26, 115, 232, 0.32);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.12);
}

.form-actions {
  display: grid;
  gap: 0.6rem;
  align-self: stretch;
}

.form-helper {
  font-size: 0.85rem;
}

.resolve-preview {
  grid-column: 1 / -1;
  min-height: 3.6rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26, 115, 232, 0.12);
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.95), rgba(238, 244, 255, 0.92));
}

.resolve-preview.is-loading {
  color: var(--blue);
  border-color: rgba(26, 115, 232, 0.24);
}

.resolve-preview.is-success {
  color: var(--green);
  border-color: rgba(24, 128, 56, 0.22);
  background: linear-gradient(180deg, rgba(241, 248, 244, 0.96), rgba(233, 246, 236, 0.9));
}

.resolve-preview.is-error {
  color: var(--red);
  border-color: rgba(217, 48, 37, 0.22);
  background: linear-gradient(180deg, rgba(253, 243, 242, 0.96), rgba(252, 236, 234, 0.9));
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.info-card {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
}

.info-title {
  margin: 0 0 0.45rem;
}

.status {
  min-height: 1.65rem;
  margin-top: 1rem;
  padding-left: 0.1rem;
  font-size: 0.92rem;
}

.status.is-error {
  color: var(--red);
}

.status.is-success {
  color: var(--green);
}

.primary-button,
.ghost-button,
.link-button,
.remove-button {
  border: 0;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease, opacity 160ms ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, var(--blue), #4a95f7);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(26, 115, 232, 0.28);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
  box-shadow: none;
}

.ghost-button,
.link-button,
.remove-button {
  padding: 0.8rem 1.05rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(99, 117, 143, 0.08);
}

.link-button {
  color: var(--blue);
  font-weight: 700;
}

.remove-button {
  align-self: flex-start;
  color: var(--red);
  background: rgba(217, 48, 37, 0.08);
}

.primary-button:hover,
.ghost-button:hover,
.link-button:hover,
.remove-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(99, 117, 143, 0.14);
}

.watch-head {
  align-items: center;
}

.watch-summary {
  margin-top: 1rem;
}

.watch-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.watch-card,
.empty-state {
  padding: 1.25rem;
}

.watch-card {
  display: grid;
  gap: 0.95rem;
}

.watch-card-topline {
  align-items: center;
}

.watch-card-coordinates {
  font-size: 0.84rem;
  color: var(--muted);
}

.watch-card-header {
  align-items: flex-start;
}

.watch-card h3 {
  font-size: 1.3rem;
}

.watch-card .address {
  margin-top: 0.38rem;
  font-size: 0.95rem;
}

.watch-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.meta-block {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(244, 247, 253, 0.96);
  border: 1px solid rgba(26, 115, 232, 0.08);
}

.meta-label {
  display: block;
  font-size: 0.78rem;
}

.meta-block strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.45;
}

.smoke-advisory {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(251, 245, 227, 0.98), rgba(248, 238, 210, 0.96));
  border: 1px solid rgba(249, 171, 0, 0.22);
}

.smoke-advisory-title {
  margin: 0;
  color: #9b6600;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.smoke-advisory-list {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  color: #5f4b12;
}

.smoke-advisory-list li + li {
  margin-top: 0.35rem;
}

.alert-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(26, 115, 232, 0.1);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.alert-pill.monitor,
.alert-pill.prepare,
.alert-pill.syncing {
  background: rgba(249, 171, 0, 0.14);
  color: #9b6600;
}

.alert-pill.warning,
.alert-pill.evacuate {
  background: rgba(217, 48, 37, 0.12);
  color: var(--red);
}

.empty-state {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.94));
}

.empty-state h3 {
  margin-top: 0.4rem;
  font-size: 1.55rem;
  line-height: 1.12;
}

.empty-state .address {
  margin-top: 0.8rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 1.6rem;
  }
}

@media (max-width: 860px) {
  .app-shell {
    width: min(100%, calc(100% - 1.2rem));
    padding-top: 1rem;
  }

  .masthead,
  .section-head,
  .watch-card-header,
  .watch-card-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .watch-form,
  .info-strip,
  .hero-metrics,
  .watch-meta {
    grid-template-columns: 1fr;
  }

  .field-primary,
  .field-secondary,
  .field-icon {
    grid-column: auto;
  }

  .form-actions {
    align-self: auto;
  }
}

@media (max-width: 600px) {
  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .panel,
  .watch-card,
  .empty-state,
  .hero-card,
  .metric-card {
    border-radius: 24px;
  }

  .search-field {
    min-height: 3.7rem;
  }
}