:root {
  --font-sans: "Pretendard Variable", Pretendard, "Noto Sans CJK KR", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #f7f9fc;
  --surface-tint: #eef4ff;
  --text: #14213d;
  --text-strong: #0b1736;
  --muted: #66728a;
  --muted-2: #8b96aa;
  --line: #e4e9f2;
  --line-strong: #d5dce9;
  --brand: #0b5cff;
  --brand-2: #00a7d8;
  --brand-soft: #eaf1ff;
  --teal: #00a99d;
  --green: #20a464;
  --orange: #ff8a34;
  --red: #f05252;
  --violet: #7158e7;
  --yellow: #ffc94a;
  --shadow-sm: 0 4px 16px rgba(35, 57, 92, 0.06);
  --shadow-md: 0 14px 40px rgba(31, 59, 102, 0.1);
  --shadow-lg: 0 28px 80px rgba(17, 48, 92, 0.18);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --container: 1240px;
  --header-height: 76px;
}

html[data-theme="dark"] {
  --bg: #0d1423;
  --surface: #151e30;
  --surface-raised: #192439;
  --surface-soft: #101a2b;
  --surface-tint: #172847;
  --text: #e8eef8;
  --text-strong: #ffffff;
  --muted: #a4afc2;
  --muted-2: #758198;
  --line: #26334a;
  --line-strong: #35435b;
  --brand-soft: #152d5d;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--text-strong);
  color: white;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 14px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-height);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(20px) saturate(1.25);
}

.header-inner {
  width: min(calc(100% - 40px), 1380px);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.mobile-menu-head .brand img { height: 30px; width: auto; display: block; }

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 8%, #1d82f5 54%, #2cc7d7 100%);
  box-shadow: 0 8px 22px rgba(11, 92, 255, 0.25);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.4;
}

.brand-word {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  color: var(--text-strong);
  font-size: 18px;
  letter-spacing: -0.035em;
  line-height: 1;
}

.brand-word strong {
  font-weight: 800;
}

.brand-word i {
  color: var(--brand);
  font-size: 21px;
  font-style: normal;
  font-weight: 900;
}

.brand-word small {
  position: absolute;
  left: 0;
  top: 21px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-right: auto;
}

.desktop-nav a {
  position: relative;
  padding: 12px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  transition: color 0.18s ease, background 0.18s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--text-strong);
  background: var(--surface-soft);
}

.desktop-nav a.active::after {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 16px;
  height: 2px;
  content: "";
  border-radius: 2px;
  background: var(--brand);
  transform: translateX(-50%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.edit-button,
.location-pill,
.text-button,
.secondary-button,
.primary-button,
.ghost-button,
.outline-link,
.mobile-editor-link {
  border: 0;
  cursor: pointer;
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: var(--surface);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.location-pill {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.location-pill > svg:first-child {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.location-pill .chevron {
  width: 14px;
  height: 14px;
  margin-left: 2px;
  color: var(--muted-2);
  transform: rotate(90deg);
}

.edit-button {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 13px;
  color: #fff;
  background: var(--text-strong);
  font-size: 13px;
  font-weight: 750;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.edit-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.edit-button svg {
  width: 16px;
  height: 16px;
}

.notification-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 9px;
  font-weight: 800;
}

.theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon {
  display: block;
}

.mobile-menu-button {
  display: none;
}

.location-popover {
  position: fixed;
  top: calc(var(--header-height) + 8px);
  right: 250px;
  z-index: 100;
  width: 320px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
}

.popover-search {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.popover-search svg {
  width: 17px;
  color: var(--muted);
}

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

.location-list {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.location-list button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.location-list button:hover,
.location-list button.active {
  background: var(--surface-tint);
}

.location-list button span {
  display: grid;
  gap: 2px;
}

.location-list button strong {
  font-size: 14px;
}

.location-list button small {
  color: var(--muted);
  font-size: 11px;
}

.location-list button > em {
  color: var(--brand);
  font-size: 18px;
  font-style: normal;
  font-weight: 800;
}

.popover-note {
  margin: 10px 4px 0;
  color: var(--muted-2);
  font-size: 11px;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  align-items: start;
  justify-items: center;
  padding-top: max(8vh, 70px);
  background: rgba(8, 20, 43, 0.52);
  backdrop-filter: blur(12px);
}

.search-dialog {
  width: min(calc(100% - 32px), 760px);
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 26px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
}

.search-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.search-dialog-head h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 25px;
  letter-spacing: -0.035em;
}

.search-field {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 0 17px;
  border: 2px solid var(--brand);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(11, 92, 255, 0.12);
}

.search-field svg {
  width: 22px;
  height: 22px;
  color: var(--brand);
}

.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  color: var(--text-strong);
  background: transparent;
  font-size: 16px;
}

.search-field kbd {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 10px;
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.suggestion-title {
  width: 100%;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search-suggestions button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-soft);
  font-size: 13px;
  cursor: pointer;
}

.mobile-menu,
.scrim {
  display: none;
}

.hero-shell {
  position: relative;
  padding: 34px 0 18px;
  overflow: hidden;
}

.hero-shell::before {
  position: absolute;
  left: 50%;
  top: -420px;
  width: 1100px;
  height: 700px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 151, 255, 0.15) 0, rgba(79, 151, 255, 0) 68%);
  transform: translateX(-75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(340px, 0.78fr);
  gap: 20px;
}

.current-card,
.decision-card {
  min-height: 490px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.current-card {
  position: relative;
  padding: 30px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 65, 175, 0.95), rgba(14, 112, 229, 0.93) 48%, rgba(20, 176, 203, 0.9)),
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.28), transparent 27%);
  overflow: hidden;
}

.current-card::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(100deg, transparent 5%, #000 88%);
  pointer-events: none;
}

.ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.32;
}

.ambient-one {
  right: -120px;
  top: -100px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #fff 0, rgba(255,255,255,0) 70%);
}

.ambient-two {
  left: -170px;
  bottom: -220px;
  width: 430px;
  height: 430px;
  background: radial-gradient(circle, #2de8c8 0, rgba(45,232,200,0) 70%);
}

.current-topline,
.current-main,
.current-metrics,
.ai-brief {
  position: relative;
  z-index: 2;
}

.current-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.current-location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 16px;
  font-weight: 750;
}

.current-location svg {
  width: 16px;
  height: 16px;
}

.current-date {
  margin: 7px 0 0 22px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 12px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  font-size: 10px;
  font-weight: 700;
}

.live-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #74f6ba;
  box-shadow: 0 0 0 4px rgba(116, 246, 186, 0.17);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(116, 246, 186, 0.17); }
  50% { box-shadow: 0 0 0 8px rgba(116, 246, 186, 0); }
}

.current-main {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 24px;
}

.weather-visual {
  position: relative;
  width: 150px;
  height: 150px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
}

.weather-visual > svg {
  position: relative;
  z-index: 2;
  width: 112px;
  height: 112px;
  stroke-width: 1.4;
  filter: drop-shadow(0 12px 25px rgba(0, 28, 74, 0.16));
}

.weather-ring {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.ring-a {
  animation: ringSpin 18s linear infinite;
}

.ring-a::before,
.ring-b::before {
  position: absolute;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
}

.ring-a::before {
  left: 9px;
  top: 25px;
}

.ring-b {
  inset: 2px;
  border-style: dashed;
  opacity: 0.65;
  animation: ringSpin 26s linear reverse infinite;
}

.ring-b::before {
  right: 18px;
  bottom: 18px;
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

.temperature {
  display: flex;
  align-items: flex-start;
  font-size: clamp(70px, 7vw, 96px);
  font-weight: 650;
  letter-spacing: -0.08em;
  line-height: 0.88;
}

.temperature sup {
  margin: 7px 0 0 7px;
  font-size: 29px;
  font-weight: 500;
  letter-spacing: 0;
}

.temperature-block h1 {
  margin: 13px 0 5px;
  font-size: 22px;
  font-weight: 740;
  letter-spacing: -0.035em;
}

.temperature-block p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.temperature-block p strong,
.temperature-block p span {
  color: #fff;
}

.current-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.current-metrics > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
}

.metric-icon {
  width: 30px;
  height: 30px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: #dff7ff;
  background: rgba(255, 255, 255, 0.12);
}

.metric-icon svg {
  width: 16px;
  height: 16px;
}

.current-metrics p {
  display: grid;
  gap: 2px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
}

.current-metrics strong {
  color: #fff;
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.ai-brief {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 17px;
  background: rgba(0, 24, 79, 0.17);
  backdrop-filter: blur(12px);
}

.ai-icon {
  width: 36px;
  height: 36px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: #163b78;
  background: linear-gradient(135deg, #fff, #dff7ff);
}

.ai-icon svg {
  width: 19px;
  height: 19px;
}

.ai-brief p {
  min-width: 0;
  display: grid;
  flex: 1;
  gap: 3px;
  margin: 0;
}

.ai-brief small {
  color: #bbf0ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.ai-brief strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-brief button {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.1);
  cursor: pointer;
}

.ai-brief button svg {
  width: 15px;
  height: 15px;
}

.decision-card {
  display: flex;
  flex-direction: column;
  padding: 27px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2,
.dashboard-toolbar h2,
.service-head h2,
.notice-head h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 27px;
  letter-spacing: -0.04em;
}

.compact-heading h2 {
  font-size: 21px;
}

.text-button {
  padding: 6px 0;
  color: var(--brand);
  background: transparent;
  font-size: 12px;
  font-weight: 750;
}

.decision-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.decision-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.decision-item:hover {
  border-color: var(--line-strong);
  transform: translateX(2px);
}

.decision-item .item-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--brand);
  background: var(--brand-soft);
}

.decision-item .item-icon.orange {
  color: var(--orange);
  background: color-mix(in srgb, var(--orange) 12%, var(--surface));
}

.decision-item .item-icon.green {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, var(--surface));
}

.decision-item .item-icon.violet {
  color: var(--violet);
  background: color-mix(in srgb, var(--violet) 12%, var(--surface));
}

.decision-item .item-icon svg {
  width: 20px;
  height: 20px;
}

.decision-item p {
  min-width: 0;
  display: grid;
  gap: 3px;
  margin: 0;
}

.decision-item p strong {
  color: var(--text-strong);
  font-size: 13px;
}

.decision-item p span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-tag {
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, var(--surface));
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.status-tag.caution {
  color: #d86f18;
  background: color-mix(in srgb, var(--orange) 13%, var(--surface));
}

.status-tag.normal {
  color: var(--brand);
  background: var(--brand-soft);
}

.decision-footer {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding: 16px 3px 0;
}

.confidence-ring {
  position: relative;
  --value: calc(var(--confidence) * 1%);
  width: 54px;
  height: 54px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--brand) var(--value), var(--line) 0);
}

.confidence-ring::before {
  position: absolute;
  width: 42px;
  height: 42px;
  content: "";
  border-radius: 50%;
  background: var(--surface-raised);
}

.confidence-ring span {
  position: relative;
  z-index: 1;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 800;
}

.confidence-ring small {
  font-size: 8px;
}

.decision-footer p {
  min-width: 0;
  display: grid;
  flex: 1;
  gap: 2px;
  margin: 0;
}

.decision-footer p strong {
  color: var(--text-strong);
  font-size: 12px;
}

.decision-footer p span {
  color: var(--muted);
  font-size: 10px;
}

.decision-footer button,
.decision-footer > a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-soft);
  cursor: pointer;
}

.seasonal-indices {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  overflow: hidden;
}

.seasonal-indices summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.seasonal-indices summary::-webkit-details-marker {
  display: none;
}

.seasonal-indices summary::after {
  content: "+";
  color: var(--brand);
  font-size: 18px;
  font-weight: 500;
}

.seasonal-indices[open] summary::after {
  content: "−";
}

.seasonal-index-list {
  display: grid;
  gap: 7px;
  padding: 0 8px 8px;
}

.seasonal-index-list .decision-item {
  background: var(--surface-raised);
}

.alert-strip-wrap {
  padding-top: 4px;
}

.alert-strip {
  min-height: 70px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--orange) 25%, var(--line));
  border-radius: 20px;
  background: color-mix(in srgb, var(--orange) 5%, var(--surface));
  box-shadow: var(--shadow-sm);
}

.alert-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #ff9748, #f26045);
}

.alert-symbol svg {
  width: 21px;
  height: 21px;
}

.alert-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-copy > span {
  padding: 5px 7px;
  border-radius: 6px;
  color: #d65d16;
  background: color-mix(in srgb, var(--orange) 13%, var(--surface));
  font-size: 9px;
  font-weight: 850;
}

.alert-copy strong {
  color: var(--text-strong);
  font-size: 13px;
}

.alert-copy p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-strip time {
  color: var(--muted-2);
  font-size: 10px;
}

.alert-strip > button {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.alert-strip > button svg {
  width: 13px;
  height: 13px;
}

.dashboard-section {
  padding-top: 76px;
  padding-bottom: 80px;
}

.dashboard-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-toolbar p,
.service-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.segmented button {
  min-width: 55px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.segmented button.active {
  color: #fff;
  background: var(--text-strong);
  box-shadow: var(--shadow-sm);
}

.secondary-button {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: var(--surface);
  font-size: 12px;
  font-weight: 750;
}

.secondary-button svg {
  width: 16px;
  height: 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.module-card {
  min-width: 0;
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: moduleIn 0.36s ease both;
}

@keyframes moduleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.module-card[data-span="12"] { grid-column: span 12; }
.module-card[data-span="8"] { grid-column: span 8; }
.module-card[data-span="7"] { grid-column: span 7; }
.module-card[data-span="6"] { grid-column: span 6; }
.module-card[data-span="5"] { grid-column: span 5; }
.module-card[data-span="4"] { grid-column: span 4; }
.module-card[data-span="3"] { grid-column: span 3; }

.module-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}

.module-head h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 18px;
  letter-spacing: -0.03em;
}

.module-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.module-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.module-tools button,
.module-link {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.module-tools .icon-only {
  width: 30px;
  padding: 0;
}

.module-tools svg,
.module-link svg {
  width: 13px;
  height: 13px;
}

.hourly-card {
  min-height: 310px;
}

.hourly-scroll {
  display: grid;
  grid-auto-columns: minmax(72px, 1fr);
  grid-auto-flow: column;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 1px 8px;
  scrollbar-width: thin;
}

.hourly-item {
  min-width: 72px;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 7px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: var(--surface-soft);
}

.hourly-item.now {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  background: var(--brand-soft);
}

.hourly-item time {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.hourly-item.now time {
  color: var(--brand);
  font-weight: 800;
}

.hourly-item .weather-mini {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #f5ad22;
}

.hourly-item .weather-mini.rain {
  color: var(--brand);
}

.hourly-item .weather-mini.cloud {
  color: #8797ad;
}

.hourly-item .weather-mini svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.7;
}

.hourly-item strong {
  color: var(--text-strong);
  font-size: 16px;
  letter-spacing: -0.03em;
}

.hourly-item span {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--brand);
  font-size: 9px;
}

.hourly-item span svg {
  width: 10px;
  height: 10px;
}

.hourly-chart {
  position: relative;
  height: 56px;
  margin-top: 8px;
  border-radius: 13px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 5%, transparent), transparent);
  overflow: hidden;
}

.hourly-chart svg {
  width: 100%;
  height: 100%;
  color: var(--brand);
  stroke-width: 2;
}

.hourly-chart .hourly-area {
  fill: url(#hourlyGradient);
  stroke: none;
}

.map-card {
  position: relative;
  min-height: 430px;
  padding: 0;
  color: #fff;
  background: #15395c;
}

.map-card .module-head {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 4;
  padding: 22px;
}

.map-card .module-head h3 {
  color: #fff;
}

.map-card .module-head p {
  color: rgba(255,255,255,.68);
}

.map-card .module-tools button {
  border-color: rgba(255,255,255,.18);
  color: #fff;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
}

.weather-map {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.weather-map::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 36% 34%, rgba(32, 231, 186, .75), transparent 14%),
    radial-gradient(circle at 64% 54%, rgba(255, 209, 75, .62), transparent 18%),
    radial-gradient(circle at 80% 28%, rgba(255, 91, 75, .56), transparent 12%),
    radial-gradient(circle at 30% 76%, rgba(36, 136, 255, .8), transparent 23%),
    linear-gradient(150deg, #082849 0%, #174d6f 54%, #0a304f 100%);
  filter: saturate(1.15);
}

.weather-map::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .23;
  background-image:
    linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
  background-size: 38px 38px;
}

.map-svg {
  position: absolute;
  inset: 66px 0 58px;
  z-index: 2;
  width: 100%;
  height: calc(100% - 124px);
  color: rgba(255, 255, 255, .76);
  stroke-width: 1.2;
}

.map-land {
  fill: rgba(255,255,255,.08);
  stroke: rgba(255,255,255,.65);
}

.map-region {
  fill: none;
  stroke: rgba(255,255,255,.22);
}

.map-contour {
  fill: none;
  stroke: rgba(255,255,255,.18);
  stroke-dasharray: 5 8;
}

.map-radar-ring {
  fill: rgba(83, 225, 206, .08);
  stroke: rgba(108, 240, 220, .58);
  stroke-dasharray: 7 7;
  transform-origin: center;
  animation: ringSpin 20s linear infinite;
}

.map-marker circle {
  fill: #fff;
  stroke: #0b5cff;
  stroke-width: 5;
}

.map-marker text {
  fill: #fff;
  stroke: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
}

.map-wind-path {
  fill: none;
  stroke: rgba(255,255,255,.42);
  stroke-width: 1.4;
  stroke-dasharray: 8 11;
  animation: dashMove 6s linear infinite;
}

@keyframes dashMove { to { stroke-dashoffset: -80; } }

.layer-chips {
  position: absolute;
  left: 22px;
  top: 84px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.layer-chips button {
  height: 31px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: rgba(255,255,255,.8);
  background: rgba(1, 21, 49, .34);
  backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.layer-chips button.active {
  color: #0c417c;
  background: #fff;
}

.map-legend {
  position: absolute;
  right: 22px;
  top: 91px;
  z-index: 4;
  display: grid;
  justify-items: end;
  gap: 5px;
}

.map-legend span {
  display: block;
  width: 110px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2b7fff, #35d7c3, #f3db4e, #ff6354);
}

.map-legend small {
  color: rgba(255,255,255,.7);
  font-size: 8px;
  word-spacing: 15px;
}

.map-timeline {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 17px;
  z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 15px;
  background: rgba(1, 22, 52, .48);
  backdrop-filter: blur(14px);
}

.map-timeline button {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #0d4b83;
  background: #fff;
  cursor: pointer;
}

.map-timeline button svg {
  width: 14px;
  height: 14px;
  transform: rotate(0deg);
}

.timeline-control {
  display: grid;
  gap: 5px;
}

.timeline-control input {
  width: 100%;
  accent-color: #fff;
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,.62);
  font-size: 8px;
}

.map-time-label {
  min-width: 60px;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  text-align: right;
}

.risk-card {
  min-height: 430px;
}

.risk-overview {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-soft);
}

.risk-gauge {
  --risk-value: 32%;
  position: relative;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--orange) var(--risk-value), var(--line) 0);
}

.risk-gauge::before {
  position: absolute;
  width: 80px;
  height: 80px;
  content: "";
  border-radius: 50%;
  background: var(--surface-raised);
}

.risk-gauge div {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.risk-gauge strong {
  color: var(--text-strong);
  font-size: 23px;
}

.risk-gauge span {
  color: var(--muted);
  font-size: 9px;
}

.risk-copy h4 {
  margin: 0 0 5px;
  color: var(--text-strong);
  font-size: 14px;
}

.risk-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.risk-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.risk-row {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
}

.risk-row:last-child { border-bottom: 0; }

.risk-row > span:first-child {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--brand);
  background: var(--brand-soft);
}

.risk-row > span:first-child svg {
  width: 17px;
  height: 17px;
}

.risk-row p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.risk-row p strong { color: var(--text-strong); font-size: 12px; }
.risk-row p small { color: var(--muted); font-size: 9px; }
.risk-row > strong { font-size: 11px; }
.risk-low { color: var(--green); }
.risk-mid { color: var(--orange); }
.risk-high { color: var(--red); }

.weekly-card {
  min-height: 310px;
}

.weekly-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.day-card {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.day-card.today {
  border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
  background: var(--brand-soft);
}

.day-card time {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.day-card.today time { color: var(--brand); }

.day-card .day-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #f2ac29;
}

.day-card .day-icon.rain { color: var(--brand); }
.day-card .day-icon.partly { color: #f2ac29; }
.day-card .day-icon.cloud { color: #8898ae; }
.day-card .day-icon svg { width: 31px; height: 31px; }

.day-card .temp-range {
  display: flex;
  gap: 5px;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 780;
}

.day-card .temp-range span:last-child {
  color: var(--muted-2);
  font-weight: 600;
}

.day-card .rain-prob {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--brand);
  font-size: 9px;
}

.day-card .rain-prob svg { width: 10px; height: 10px; }

.air-card,
.sun-card,
.marine-card,
.longterm-card {
  min-height: 320px;
}

.air-layout {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 15px;
}

.air-gauge {
  --aqi: 26%;
  position: relative;
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--teal) var(--aqi), var(--line) 0);
}

.air-gauge::before {
  position: absolute;
  width: 90px;
  height: 90px;
  content: "";
  border-radius: 50%;
  background: var(--surface-raised);
}

.air-gauge div {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.air-gauge strong {
  color: var(--text-strong);
  font-size: 27px;
}

.air-gauge span {
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
}

.air-values {
  display: grid;
  gap: 8px;
}

.air-values div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.air-values div:last-child { border-bottom: 0; }
.air-values span { color: var(--muted); font-size: 10px; }
.air-values strong { color: var(--text-strong); font-size: 12px; }
.air-advice {
  margin: 14px 0 0;
  padding: 11px 12px;
  border-radius: 13px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 10px;
  line-height: 1.55;
}

.sun-arc {
  position: relative;
  height: 116px;
  margin: 12px 0;
  overflow: hidden;
}

.sun-arc::before {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -69%;
  height: 154%;
  content: "";
  border: 1.5px dashed color-mix(in srgb, var(--orange) 55%, var(--line));
  border-radius: 50% 50% 0 0;
}

.sun-dot {
  position: absolute;
  left: 58%;
  top: 17%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ffcb45, #ff8e35);
  box-shadow: 0 7px 20px rgba(255, 148, 48, .28);
}

.sun-dot svg { width: 18px; height: 18px; }

.sun-times {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
}

.sun-times div { display: grid; gap: 3px; }
.sun-times div:last-child { text-align: right; }
.sun-times span { color: var(--muted); font-size: 9px; }
.sun-times strong { color: var(--text-strong); font-size: 12px; }

.uv-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
}

.uv-row > strong {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--orange);
  font-size: 13px;
}

.uv-row p { display: grid; gap: 2px; margin: 0; }
.uv-row p strong { color: var(--text-strong); font-size: 11px; }
.uv-row p span { color: var(--muted); font-size: 9px; }

.marine-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.marine-metric {
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.marine-metric span { color: var(--muted); font-size: 9px; }
.marine-metric strong { display: block; margin-top: 4px; color: var(--text-strong); font-size: 18px; }
.marine-metric small { color: var(--muted-2); font-size: 9px; }

.wave-visual {
  position: relative;
  height: 70px;
  margin-top: 13px;
  border-radius: 14px;
  color: var(--brand);
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 11%, var(--surface)), var(--surface-soft));
  overflow: hidden;
}

.wave-visual svg {
  position: absolute;
  left: -3%;
  bottom: 0;
  width: 106%;
  height: 64px;
  stroke-width: 1.8;
}

.wave-visual path:first-child { opacity: .4; }

.marine-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 9px;
}

.marine-note svg { width: 13px; height: 13px; color: var(--orange); }

.longterm-bars {
  display: grid;
  gap: 9px;
  margin-top: 3px;
}

.longterm-row {
  display: grid;
  grid-template-columns: 58px minmax(0,1fr) 36px;
  align-items: center;
  gap: 8px;
}

.longterm-row > span { color: var(--muted); font-size: 10px; }
.longterm-row > strong { color: var(--text-strong); font-size: 10px; text-align: right; }

.prob-bar {
  height: 9px;
  display: flex;
  border-radius: 999px;
  background: var(--surface-soft);
  overflow: hidden;
}

.prob-bar i { display: block; height: 100%; }
.prob-low { background: #61a5ff; }
.prob-normal { background: #9da8bb; }
.prob-high { background: #ff805d; }

.longterm-legend {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 9px;
}

.longterm-legend span { display: flex; align-items: center; gap: 4px; }
.longterm-legend i { width: 8px; height: 8px; border-radius: 3px; }

.empty-dashboard {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 60px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  text-align: center;
}

.empty-dashboard span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--brand);
  background: var(--brand-soft);
}

.empty-dashboard span svg { width: 27px; height: 27px; }
.empty-dashboard h3 { margin: 0; color: var(--text-strong); font-size: 18px; }
.empty-dashboard p { margin: 0; color: var(--muted); font-size: 12px; }

.service-section {
  padding: 80px 0 88px;
  background: var(--surface);
}

.service-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.outline-link,
.notice-head > a,
.notice-head > .notice-more,
.business-cards a,
.insight-copy > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 750;
}

.outline-link {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.outline-link svg,
.notice-head > a svg,
.notice-head > .notice-more svg,
.business-cards a svg,
.insight-copy > a svg {
  width: 13px;
  height: 13px;
}

.filter-row {
  display: flex;
  gap: 7px;
  margin-top: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar { display: none; }

.filter-row button {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 730;
  cursor: pointer;
}

.filter-row button.active {
  border-color: var(--text-strong);
  color: #fff;
  background: var(--text-strong);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.service-card {
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-raised);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.service-card:hover {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card[hidden] { display: none; }

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.service-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--brand);
  background: var(--brand-soft);
}

.service-icon svg { width: 23px; height: 23px; }
.service-icon.teal { color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, var(--surface)); }
.service-icon.orange { color: var(--orange); background: color-mix(in srgb, var(--orange) 12%, var(--surface)); }
.service-icon.violet { color: var(--violet); background: color-mix(in srgb, var(--violet) 12%, var(--surface)); }
.service-icon.green { color: var(--green); background: color-mix(in srgb, var(--green) 12%, var(--surface)); }
.service-icon.red { color: var(--red); background: color-mix(in srgb, var(--red) 12%, var(--surface)); }
.service-icon.blue { color: var(--brand); background: var(--brand-soft); }

.service-badge,
.pill {
  padding: 5px 7px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .04em;
}

.service-badge.new,
.pill.new {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--brand));
}

.service-card h3 {
  margin: 15px 0 6px;
  color: var(--text-strong);
  font-size: 16px;
  letter-spacing: -0.03em;
}

.service-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.service-card-footer a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text);
  font-size: 10px;
  font-weight: 750;
}

.service-card-footer a svg { width: 12px; height: 12px; }

.add-service {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--brand);
  background: var(--surface-soft);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.add-service svg { width: 12px; height: 12px; }
.add-service.added { color: var(--green); }

.insight-section {
  padding-top: 80px;
  padding-bottom: 88px;
}

.insight-feature {
  min-height: 390px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: 40px;
  padding: 46px;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 18%, rgba(88, 235, 210, .3), transparent 25%),
    linear-gradient(135deg, #112a56 0%, #184f88 52%, #106d8c 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.insight-copy h2 {
  margin: 17px 0 13px;
  font-size: clamp(30px, 3.2vw, 45px);
  line-height: 1.12;
  letter-spacing: -.055em;
}

.insight-copy p {
  max-width: 430px;
  margin: 0 0 20px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.65;
}

.insight-copy > a { color: #fff; }

.trend-panel {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(18px);
}

.trend-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.trend-top span { color: rgba(255,255,255,.66); font-size: 11px; }
.trend-top strong { color: #95f3d8; font-size: 13px; }

.trend-panel > svg {
  width: 100%;
  height: auto;
  margin-top: 14px;
  color: #77efd1;
  overflow: visible;
}

.trend-panel .grid-line { stroke: rgba(255,255,255,.09); stroke-width: 1; }
.trend-panel .baseline { fill: none; stroke: rgba(255,255,255,.42); stroke-dasharray: 6 7; stroke-width: 1.4; }
.trend-panel .area { fill: url(#areaGradient); stroke: none; }
.trend-panel .trend-line { fill: none; stroke: currentColor; stroke-width: 3; filter: drop-shadow(0 4px 8px rgba(21,238,193,.3)); }
.trend-panel circle { fill: #fff; stroke: currentColor; stroke-width: 3; }

.trend-legend {
  display: flex;
  gap: 15px;
  color: rgba(255,255,255,.65);
  font-size: 9px;
}

.trend-legend span { display: flex; align-items: center; gap: 5px; }
.trend-legend i { width: 17px; height: 2px; background: #77efd1; }
.trend-legend .legend-dash { background: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 4px, transparent 4px 7px); }

.business-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.business-cards article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
}

.business-cards .eyebrow { margin: 15px 0 6px; font-size: 9px; }
.business-cards h3 { margin: 0 0 8px; color: var(--text-strong); font-size: 18px; }
.business-cards article > p:not(.eyebrow) { margin: 0 0 17px; color: var(--muted); font-size: 11px; line-height: 1.6; }

.notice-section {
  padding-bottom: 90px;
}

.notice-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 20px;
}

.notice-grid a,
.notice-grid .notice-item {
  display: grid;
  width: 100%;
  text-align: left;
  gap: 10px;
  min-height: 145px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-raised);
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}

.notice-grid a:hover,
.notice-grid .notice-item:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.notice-grid span { color: var(--brand); font-size: 9px; font-weight: 800; }
.notice-grid strong { color: var(--text-strong); font-size: 14px; line-height: 1.45; }
.notice-grid time { margin-top: auto; color: var(--muted-2); font-size: 10px; }

.site-footer {
  padding: 44px 0 110px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 50px;
}

.footer-brand .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
.footer-brand .brand-mark svg { width: 24px; height: 24px; }
.footer-grid > div:first-child > p { margin: 12px 0 0; color: var(--muted); font-size: 11px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  align-self: center;
}

.footer-links a { color: var(--muted); font-size: 10px; }
.footer-links strong { color: var(--text); }

.footer-meta {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-meta p { margin: 3px 0; color: var(--muted); font-size: 10px; }
.footer-meta small { display: block; margin-top: 10px; color: var(--muted-2); font-size: 9px; }

.mobile-bottom-nav {
  display: none;
}

.editor-drawer {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 160;
  width: min(440px, 100%);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border-left: 1px solid var(--line);
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
  transform: translateX(105%);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}

.editor-drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.drawer-head h2 { margin: 0; color: var(--text-strong); font-size: 25px; letter-spacing: -.04em; }
.drawer-head p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }

.drawer-preview-note {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding: 13px;
  border-radius: 15px;
  color: var(--brand);
  background: var(--brand-soft);
}

.drawer-preview-note > svg { width: 19px; height: 19px; flex: 0 0 auto; }
.drawer-preview-note p { display: grid; gap: 3px; margin: 0; }
.drawer-preview-note strong { color: var(--text-strong); font-size: 11px; }
.drawer-preview-note span { color: var(--muted); font-size: 9px; line-height: 1.45; }

.component-list {
  min-height: 0;
  display: grid;
  gap: 8px;
  margin-top: 18px;
  overflow-y: auto;
  padding-right: 3px;
}

.component-editor-item {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.component-editor-item.disabled { opacity: .58; }

.component-editor-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--brand);
  background: var(--brand-soft);
}

.component-editor-icon svg { width: 19px; height: 19px; }

.component-editor-copy { min-width: 0; display: grid; gap: 2px; }
.component-editor-copy strong { color: var(--text-strong); font-size: 12px; }
.component-editor-copy span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.component-editor-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.reorder-buttons {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reorder-buttons button {
  width: 23px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
}

.reorder-buttons button:disabled { opacity: .3; cursor: default; }
.reorder-buttons svg { width: 11px; height: 11px; }

.switch {
  position: relative;
  width: 38px;
  height: 22px;
  display: inline-block;
}

.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: background .2s ease;
}

.switch span::after {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  content: "";
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.18);
  transition: transform .2s ease;
}

.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 30%, transparent); }

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.primary-button,
.ghost-button {
  min-height: 47px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 800;
}

.primary-button { color: #fff; background: var(--brand); box-shadow: 0 9px 24px rgba(11,92,255,.22); }
.ghost-button { border: 1px solid var(--line); color: var(--text); background: var(--surface-soft); }

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(5, 17, 37, .43);
  backdrop-filter: blur(4px);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  color: #fff;
  background: rgba(11, 24, 47, .94);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: opacity .22s ease, transform .22s ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--green); }
.toast svg { width: 15px; height: 15px; }
.toast p { margin: 0; font-size: 11px; font-weight: 700; }

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 32%, transparent);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .desktop-nav a { padding-inline: 8px; font-size: 13px; }
  .location-pill span { display: none; }
  .location-pill { width: 42px; justify-content: center; padding: 0; }
  .location-pill .chevron { display: none; }
  .location-popover { right: 207px; }
  .hero-grid { grid-template-columns: minmax(0,1.45fr) minmax(315px,.72fr); }
  .current-card { padding: 26px; }
  .current-metrics > div { padding: 10px; gap: 7px; }
  .module-card[data-span="8"], .module-card[data-span="7"] { grid-column: span 8; }
  .module-card[data-span="5"], .module-card[data-span="4"] { grid-column: span 4; }
}

@media (max-width: 1020px) {
  .desktop-nav { display: none; }
  .brand { margin-right: auto; }
  .mobile-menu-button { display: grid; }
  .edit-button { display: none; }
  .location-popover { right: 156px; }
  .mobile-menu {
    position: fixed;
    right: 0;
    top: 0;
    z-index: 145;
    width: min(390px, 88%);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: var(--surface-raised);
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    transition: transform .28s ease;
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu-head { display: flex; align-items: center; justify-content: space-between; }
  .mobile-menu nav { display: grid; gap: 3px; margin-top: 26px; }
  .mobile-menu nav a { min-height: 51px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border-bottom: 1px solid var(--line); color: var(--text-strong); font-size: 14px; font-weight: 700; }
  .mobile-menu nav svg { width: 15px; height: 15px; color: var(--muted); }
  .mobile-editor-link { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: auto; border-radius: 13px; color: #fff; background: var(--brand); font-size: 12px; font-weight: 750; }
  .mobile-editor-link svg { width: 16px; height: 16px; }
  .scrim { position: fixed; inset: 0; z-index: 140; background: rgba(4,14,31,.42); backdrop-filter: blur(3px); }
  .hero-grid { grid-template-columns: 1fr; }
  .current-card, .decision-card { min-height: auto; }
  .decision-card { min-height: 420px; }
  .decision-list { grid-template-columns: 1fr 1fr; }
  .decision-footer { margin-top: 18px; }
  .dashboard-grid { gap: 14px; }
  .module-card[data-span="8"], .module-card[data-span="7"], .module-card[data-span="6"], .module-card[data-span="5"], .module-card[data-span="4"] { grid-column: span 6; }
  .map-card { grid-column: span 7 !important; }
  .risk-card { grid-column: span 5 !important; }
  .service-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  :root { --header-height: 64px; --radius-xl: 26px; --radius-lg: 21px; }
  html { scroll-padding-top: 76px; }
  body { padding-bottom: 72px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { width: calc(100% - 24px); gap: 8px; }
  .site-header { height: var(--header-height); }
  .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .brand-mark svg { width: 24px; height: 24px; }
  .brand-word { font-size: 16px; }
  .brand-word i { font-size: 19px; }
  .brand-word small { display: none; }
  .header-actions { gap: 6px; }
  .icon-button, .location-pill { width: 38px; height: 38px; border-radius: 12px; }
  .alert-button, .theme-icon-sun, .theme-icon-moon { }
  .header-actions .alert-button { display: none; }
  .location-popover { top: 70px; right: 12px; left: 12px; width: auto; }
  .search-dialog { padding: 21px; border-radius: 22px; }
  .search-dialog-head h2 { font-size: 21px; }
  .search-field { height: 54px; }
  .search-field kbd { display: none; }
  .hero-shell { padding-top: 16px; }
  .hero-grid { width: calc(100% - 20px); gap: 12px; }
  .current-card { padding: 21px 18px 18px; border-radius: 25px; }
  .current-topline { align-items: center; }
  .current-location { font-size: 14px; }
  .current-date { margin-left: 21px; font-size: 10px; }
  .live-badge { padding: 6px 8px; font-size: 8px; }
  .current-main { gap: 12px; margin-top: 20px; }
  .weather-visual { width: 104px; height: 104px; }
  .weather-visual > svg { width: 78px; height: 78px; }
  .weather-ring { inset: 9px; }
  .ring-b { inset: 0; }
  .temperature { font-size: 68px; }
  .temperature sup { margin-top: 4px; font-size: 23px; }
  .temperature-block h1 { margin-top: 9px; font-size: 17px; }
  .temperature-block p { font-size: 11px; }
  .current-metrics { grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 17px; }
  .current-metrics > div { min-height: 53px; padding: 8px 10px; }
  .metric-icon { width: 29px; height: 29px; }
  .ai-brief { padding: 11px; }
  .ai-brief strong { font-size: 10px; }
  .decision-card { min-height: auto; padding: 20px 18px; border-radius: 25px; }
  .compact-heading h2 { font-size: 19px; }
  .decision-list { grid-template-columns: 1fr; gap: 7px; }
  .decision-item { min-height: 59px; }
  .decision-footer { padding-top: 12px; }
  .alert-strip-wrap { width: calc(100% - 20px); }
  .alert-strip { grid-template-columns: 39px minmax(0,1fr) auto; gap: 10px; min-height: 66px; padding: 11px; border-radius: 18px; }
  .alert-symbol { width: 39px; height: 39px; }
  .alert-copy { display: grid; gap: 2px; }
  .alert-copy > span { width: max-content; padding: 3px 5px; }
  .alert-copy strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .alert-copy p { font-size: 9px; }
  .alert-strip time { display: none; }
  .alert-strip > button { width: 32px; height: 32px; padding: 0; font-size: 0; }
  .alert-strip > button svg { width: 15px; height: 15px; }
  .dashboard-section { padding-top: 58px; padding-bottom: 64px; }
  .dashboard-toolbar { display: grid; gap: 17px; margin-bottom: 16px; }
  .dashboard-toolbar h2, .service-head h2, .notice-head h2 { font-size: 23px; }
  .dashboard-toolbar p, .service-head p { font-size: 11px; line-height: 1.55; }
  .dashboard-actions { justify-content: space-between; }
  .secondary-button { height: 40px; }
  .dashboard-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .module-card,
  .module-card[data-span="12"], .module-card[data-span="8"], .module-card[data-span="7"], .module-card[data-span="6"], .module-card[data-span="5"], .module-card[data-span="4"], .module-card[data-span="3"],
  .map-card, .risk-card { grid-column: 1 !important; }
  .module-card { padding: 18px; border-radius: 21px; }
  .module-head { margin-bottom: 14px; }
  .module-head h3 { font-size: 16px; }
  .module-head p { font-size: 9px; }
  .hourly-card { min-height: 282px; }
  .hourly-scroll { grid-auto-columns: 68px; margin-right: -18px; padding-right: 18px; }
  .map-card { min-height: 400px; padding: 0; }
  .map-card .module-head { padding: 18px; }
  .layer-chips { left: 18px; top: 75px; max-width: calc(100% - 36px); overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .layer-chips::-webkit-scrollbar { display:none; }
  .map-legend { display: none; }
  .map-timeline { left: 13px; right: 13px; bottom: 13px; padding: 10px; }
  .map-svg { inset-top: 58px; }
  .risk-card { min-height: auto; }
  .risk-overview { grid-template-columns: 95px 1fr; }
  .risk-gauge { width: 88px; height: 88px; }
  .risk-gauge::before { width: 68px; height: 68px; }
  .weekly-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; overflow: visible; margin-right: 0; padding-right: 0; }
  .weekly-grid::-webkit-scrollbar { display:none; }
  .day-card { gap: 7px; padding: 10px 3px; border-radius: 13px; }
  .air-card, .sun-card, .marine-card, .longterm-card { min-height: auto; }
  .service-section { padding: 62px 0 68px; }
  .service-head { align-items: flex-start; }
  .outline-link { display: none; }
  .filter-row { margin-right: -14px; padding-right: 14px; }
  .service-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .service-card { min-height: 190px; padding: 16px; border-radius: 18px; }
  .service-card h3 { font-size: 14px; }
  .service-card > p { font-size: 9.5px; }
  .service-card-footer a { display: none; }
  .insight-section { padding-top: 62px; padding-bottom: 68px; }
  .insight-feature { grid-template-columns: 1fr; gap: 27px; min-height: auto; padding: 28px 21px; border-radius: 26px; }
  .insight-copy h2 { font-size: 31px; }
  .insight-copy p { font-size: 11px; }
  .trend-panel { padding: 16px; }
  .business-cards { grid-template-columns: 1fr; gap: 11px; }
  .business-cards article { min-height: 210px; padding: 20px; }
  .notice-section { padding-bottom: 70px; }
  .notice-grid { grid-template-columns: 1fr; gap: 8px; }
  .notice-grid a, .notice-grid .notice-item { min-height: 120px; }
  .site-footer { padding: 38px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-links { justify-content: flex-start; gap: 12px; }
  .footer-meta { grid-column: auto; }
  .mobile-bottom-nav {
    position: fixed;
    left: 9px;
    right: 9px;
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 90;
    height: 64px;
    display: grid;
    grid-template-columns: repeat(5,1fr);
    padding: 5px 8px;
    border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
    border-radius: 22px;
    background: color-mix(in srgb, var(--surface-raised) 90%, transparent);
    box-shadow: 0 18px 45px rgba(10, 30, 62, .2);
    backdrop-filter: blur(18px) saturate(1.2);
  }
  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 3px;
    border: 0;
    border-radius: 15px;
    color: var(--muted);
    background: transparent;
    font-size: 8px;
    font-weight: 700;
    cursor: pointer;
  }
  .mobile-bottom-nav a.active { color: var(--brand); background: var(--brand-soft); }
  .mobile-bottom-nav svg { width: 19px; height: 19px; }
  .nav-alert { position: relative; }
  .nav-alert i { position: absolute; right: -2px; top: -1px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
  .editor-drawer { width: 100%; padding: 21px 17px calc(18px + env(safe-area-inset-bottom)); border-left: 0; }
  .toast { bottom: 84px; width: calc(100% - 36px); min-width: 0; }
}

@media (max-width: 420px) {
  .search-trigger { display: none; }
  .theme-icon-sun, .theme-icon-moon { }
  .header-actions #themeToggle { display: none; }
  .current-main { align-items: flex-start; }
  .weather-visual { width: 88px; height: 88px; }
  .weather-visual > svg { width: 67px; height: 67px; }
  .temperature { font-size: 62px; }
  .current-metrics { margin-top: 15px; }
  .ai-brief strong { max-width: 220px; }
  .service-card { min-height: 180px; }
  .service-card-footer a { display: inline-flex; }
  .trend-top { align-items: flex-start; flex-direction: column; gap: 5px; }
}

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


@media (max-width: 350px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 164px; }
}


/* ===== 기상특보 (special01 연동) ===== */
.wx-alerts { padding-top: 4px; display: grid; gap: 12px; }
.wx-alerts-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wx-alerts-title { display: grid; gap: 3px; min-width: 0; }
.wx-alerts-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--muted); }
.wx-alerts-title strong { font-size: 15px; color: var(--text-strong); }
.wx-alerts-status { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.wx-alerts-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.wx-alerts-status.is-live { color: #1a7f4b; border-color: color-mix(in srgb, #22c55e 40%, var(--line)); background: color-mix(in srgb, #22c55e 10%, var(--surface)); }
.wx-alerts-status.is-live i { background: #22c55e; box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 25%, transparent); }

.wx-alert-list { display: grid; gap: 10px; }

.wx-alert-card { position: relative; display: grid; gap: 11px; padding: 14px 15px 14px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.wx-alert-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--orange); }
.wx-alert-card[data-level="warning"]::before { background: var(--red); }

.wx-alert-top { display: flex; align-items: flex-start; gap: 12px; }
.wx-alert-symbol { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #ff9748, #f26045); }
.wx-alert-card[data-level="warning"] .wx-alert-symbol { background: linear-gradient(135deg, #f97066, #e02424); }
.wx-alert-symbol svg { width: 19px; height: 19px; }
.wx-alert-headings { min-width: 0; display: grid; gap: 5px; }
.wx-alert-titleline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wx-alert-badge { padding: 3px 8px; border-radius: 7px; font-size: 11px; font-weight: 850; color: #d65d16; background: color-mix(in srgb, var(--orange) 15%, var(--surface)); }
.wx-alert-card[data-level="warning"] .wx-alert-badge { color: #cf2b2b; background: color-mix(in srgb, var(--red) 14%, var(--surface)); }
.wx-alert-name { font-size: 15px; color: var(--text-strong); }
.wx-alert-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 12px; }
.wx-alert-meta em { color: var(--muted-2); font-style: normal; }

.wx-alert-regions { display: flex; flex-wrap: wrap; gap: 6px; }
.wx-chip { padding: 5px 9px; border-radius: 8px; background: var(--surface-soft); border: 1px solid var(--line); color: var(--text); font-size: 12px; }
.wx-region-extra { display: contents; }
.wx-region-extra[hidden] { display: none; }
.wx-region-toggle { display: inline-flex; align-items: center; gap: 3px; padding: 5px 10px; border-radius: 8px; border: 1px dashed var(--line); background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.wx-region-toggle svg { width: 13px; height: 13px; transition: transform .2s ease; }
.wx-alert-card.is-open .wx-region-toggle svg { transform: rotate(90deg); }

.wx-alert-detail { display: inline-flex; align-items: center; gap: 3px; width: max-content; color: var(--accent, #0b5cff); font-size: 12px; font-weight: 750; text-decoration: none; }
.wx-alert-detail svg { width: 13px; height: 13px; }

.wx-alert-empty { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.wx-alert-empty svg { width: 26px; height: 26px; flex-shrink: 0; color: #22c55e; }
.wx-alert-empty strong { display: block; font-size: 14px; color: var(--text-strong); }
.wx-alert-empty span { font-size: 12px; color: var(--muted); }

.wx-alerts-note { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; color: var(--muted-2); font-size: 11px; line-height: 1.5; }
.wx-alerts-note a { display: inline-flex; align-items: center; gap: 2px; color: var(--accent, #0b5cff); font-weight: 700; text-decoration: none; }
.wx-alerts-note a svg { width: 12px; height: 12px; }

@media (max-width: 600px) {
  .wx-alerts-title strong { font-size: 14px; }
  .wx-alert-name { font-size: 14px; }
  .wx-alert-card { padding: 12px 13px 12px 16px; border-radius: 16px; }
  .wx-chip { font-size: 11px; padding: 4px 8px; }
}

/* ===== 대기질 등급 색상 / 장기경향 보조 ===== */
.air-gauge.air-good { background: conic-gradient(#22c55e var(--aqi), var(--line) 0); }
.air-gauge.air-normal { background: conic-gradient(#3b82f6 var(--aqi), var(--line) 0); }
.air-gauge.air-bad { background: conic-gradient(#f59e0b var(--aqi), var(--line) 0); }
.air-gauge.air-verybad { background: conic-gradient(#ef4444 var(--aqi), var(--line) 0); }
.longterm-row > span small { display: block; color: var(--muted-2); font-size: 9px; font-weight: 400; }

/* ===== 실시간 레이더 지도 ===== */
.radar-stage { position: absolute; inset: 62px 0 56px; z-index: 2; display: grid; place-items: center; overflow: hidden; }
.radar-frame { width: 100%; height: 100%; object-fit: contain; filter: saturate(1.05) contrast(1.02); }
.radar-loc { position: absolute; top: 8px; left: 10px; display: inline-flex; align-items: center; gap: 3px; padding: 4px 9px; border-radius: 999px; background: rgba(11,23,54,.62); color: #fff; font-size: 11px; font-weight: 700; backdrop-filter: blur(4px); }
.radar-loc svg { width: 12px; height: 12px; }
.map-source { position: absolute; right: 12px; bottom: 60px; z-index: 3; margin: 0; padding: 3px 8px; border-radius: 7px; background: rgba(11,23,54,.55); color: rgba(255,255,255,.9); font-size: 10px; }


/* ===== 지역 선택 섹션 ===== */
.loc-group-label { padding: 10px 8px 4px; font-size: 11px; font-weight: 800; letter-spacing: .03em; color: var(--muted-2); }
.loc-item.current .loc-pin { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 7px; color: var(--accent, #0b5cff); }
.loc-item.current .loc-pin svg { width: 15px; height: 15px; }
.loc-item.current > span:nth-child(2) { display: inline-flex; align-items: center; }


/* ===== 지도 확대 / 레이어 embed ===== */
.map-card { min-height: 470px; }
.map-card .weather-map { min-height: 470px; }
.radar-stage { inset: 58px 0 54px; }
.radar-stage.radar-loading { display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: 12px; }
.map-embed-wrap { position: absolute; inset: 58px 0 0; z-index: 2; overflow: hidden; }
.map-embed { width: 100%; height: 100%; border: 0; display: block; background: #0b1736; }
.weather-map.is-embed .map-legend { display: none; }
@media (min-width: 720px) { .map-card { min-height: 620px; } }


/* ===== 물때/소식/레저/일출 ===== */
.sun-daylen { margin: 6px 0 0; font-size: 11px; color: var(--muted); }
.tide-area { padding: 4px 9px; border-radius: 999px; background: var(--surface-soft); border: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--muted); }
.tide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 4px; }
.tide-item { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-soft); }
.tide-item .tide-type { font-size: 11px; font-weight: 800; }
.tide-item.high .tide-type { color: #2f7ef0; }
.tide-item.low .tide-type { color: #d98324; }
.tide-item strong { font-size: 16px; color: var(--text-strong); }
.tide-item small { font-size: 11px; color: var(--muted); }

.leisure-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 4px; }
.leisure-item { display: grid; gap: 6px; place-items: center; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-soft); color: var(--text); text-decoration: none; transition: transform .15s ease; }
.leisure-item:hover { transform: translateY(-2px); }
.leisure-item span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--accent, #0b5cff); background: color-mix(in srgb, var(--accent, #0b5cff) 12%, var(--surface)); }
.leisure-item span svg { width: 19px; height: 19px; }
.leisure-item small { font-size: 12px; font-weight: 700; }

.news-more { display: inline-flex; align-items: center; gap: 2px; color: var(--accent, #0b5cff); font-size: 12px; font-weight: 700; text-decoration: none; }
.news-more svg { width: 13px; height: 13px; }
.news-list { display: grid; gap: 2px; margin-top: 2px; }
.news-item { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; text-decoration: none; cursor: pointer; }
.news-item:hover strong { color: var(--brand); }
.news-item:last-child { border-bottom: 0; }
.news-item strong { font-size: 13px; font-weight: 600; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-item small { flex-shrink: 0; font-size: 11px; color: var(--muted-2); }
.news-notice { margin: 10px 4px 0; padding: 10px 12px; border-radius: 10px; color: var(--brand); background: var(--brand-soft); font-size: 11px; font-weight: 700; line-height: 1.45; }
@media (max-width: 600px) { .leisure-grid { grid-template-columns: repeat(4, 1fr); } }

.loc-badge { display: inline-flex; align-items: center; margin-right: 7px; padding: 2px 6px; border-radius: 6px; font-size: 10px; font-weight: 800; color: var(--accent, #0b5cff); background: color-mix(in srgb, var(--accent, #0b5cff) 12%, var(--surface)); }


/* ===== 특보 지도(모바일 축소판) / PC버전 링크 ===== */
.wx-map { margin-top: 12px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.wx-map-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; font-size: 13px; font-weight: 800; color: var(--text-strong); }
.wx-map-head a { color: var(--accent, #0b5cff); font-size: 12px; font-weight: 700; text-decoration: none; }
.wx-map-frame { width: 100%; height: 490px; border: 0; display: block; background: var(--surface-soft); }

.site-footer .footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pc-view-link { margin-left: auto; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.pc-view-link:hover { color: var(--text-strong); border-color: var(--muted-2); }

.mobile-bottom-nav .nav-spacer { pointer-events: none; }
