:root {
  --ink: #15202b;
  --water: #1595a3;
  --mint: #c7f65a;
  --coral: #ef6b57;
  --cloud: #e8f8f6;
  --night: #102538;
  --line: #dbe5ea;
  --paper: #ffffff;
  --bg: #f5faf8;
  --shadow: 0 18px 40px rgba(21, 32, 43, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Prompt, ui-sans-serif, system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
[hidden] { display: none !important; }
body.nav-open { overflow: hidden; }
body.nav-open .hero,
body.nav-open .footer,
body.nav-open .mobile-controls {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  border-bottom: 1px solid rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(16px);
}
.site-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: var(--shadow);
}
.brand strong, .brand small { display: block; }
.brand small { color: #64748b; font-size: 12px; }
.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.desktop-menu { display: none; gap: 4px; }
.nav-help-link {
  border-radius: 8px;
  padding: 10px 12px;
  color: #475569;
  font-weight: 600;
}
.nav-help-link:hover { background: #f1f5f9; }
.menu-region { position: relative; }
.menu-region > button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 10px 12px;
  color: #475569;
}
.menu-region:hover > button,
.menu-region.open > button,
.menu-region:focus-within > button { background: #f1f5f9; }
.menu-popover {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 288px;
  display: grid;
  gap: 6px;
  visibility: hidden;
  opacity: 0;
  padding: 8px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  transition: .16s ease;
}
.menu-region:hover .menu-popover,
.menu-region.open .menu-popover,
.menu-region:focus-within .menu-popover {
  visibility: visible;
  opacity: 1;
}
.mobile-menu {
  position: fixed;
  top: var(--nav-offset, 73px);
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(100vh - var(--nav-offset, 73px));
  height: calc(100dvh - var(--nav-offset, 73px));
  z-index: 10001;
  border-top: 1px solid var(--line);
  background: white;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 104px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
}
.mobile-help-link {
  display: block;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ecfeff;
  padding: 12px 14px;
  color: var(--water);
  font-weight: 700;
}
.region-tabs button, .family-link, .variant-row a {
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  padding: 9px 12px;
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
}
.region-tabs .active, .variant-row a:hover { background: var(--water); color: white; }
.mobile-region { display: grid; gap: 8px; }
.mobile-menu-empty {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
  color: #64748b;
  font-weight: 600;
}
.family-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
}
.variant-row { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-row a { padding: 7px 10px; font-size: 12px; }
.mobile-menu a {
  position: relative;
  z-index: 10002;
  pointer-events: auto;
  touch-action: manipulation;
}

.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 380px;
  background: linear-gradient(90deg, rgba(245,250,248,.95), rgba(245,250,248,.68)), var(--hero-image) center/cover;
}
.dashboard-shell {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  padding: 24px 16px;
}
.main-column, .side-column { display: grid; align-content: start; gap: 20px; }
.main-column { gap: 8px; }
.siblings { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.siblings a {
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 8px;
  background: rgba(255,255,255,.8);
  padding: 9px 12px;
  color: #475569;
  font-weight: 600;
}
.siblings .active { background: var(--water); color: white; border-color: var(--water); }
.radar-card, .legend-card, .side-card, .feedback-card, .admin-status, .form-section, .login-card {
  border: 1px solid rgba(203, 213, 225, .75);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
}
.radar-card { overflow: hidden; }
.mobile-canvas-zoom {
  display: grid;
  grid-template-columns: auto auto minmax(120px, 1fr);
  align-items: center;
  gap: 10px;
  margin: 10px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
  color: #475569;
  font-weight: 700;
  white-space: nowrap;
}
.radar-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 12px;
  border-bottom: 1px solid #eef2f7;
  background: var(--radar-head-bg, white);
  color: var(--radar-head-color, var(--ink));
  padding: 16px;
  text-align: center;
  transition: background .4s ease, color .4s ease, border-color .4s ease;
}
.radar-head > * {
  position: relative;
  z-index: 1;
}
.radar-head::before,
.radar-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
.radar-head.weather-day {
  border-bottom-color: rgba(56, 189, 248, .28);
  background:
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.16)),
    radial-gradient(ellipse at 8% 16%, rgba(255, 246, 190, .68) 0 28%, rgba(255, 238, 165, .28) 29% 48%, transparent 68%),
    radial-gradient(circle at 82% 18%, rgba(255, 242, 168, .95) 0 9%, rgba(255, 205, 86, .45) 10% 20%, transparent 32%),
    linear-gradient(135deg, #fff3bf 0%, #fff8df 24%, #f4fbff 52%, #fff4cf 100%);
  color: #123047;
}
.radar-head.weather-day::before {
  opacity: .95;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.95) 0 5%, rgba(255,231,116,.7) 6% 14%, rgba(255,196,87,.28) 15% 28%, transparent 42%);
  filter: blur(.2px);
}
.radar-head.weather-day::after {
  opacity: .8;
  background:
    radial-gradient(ellipse at 16% 30%, rgba(255,255,255,.86) 0 8%, transparent 9%),
    radial-gradient(ellipse at 23% 28%, rgba(255,255,255,.78) 0 11%, transparent 12%),
    radial-gradient(ellipse at 31% 32%, rgba(255,255,255,.66) 0 8%, transparent 9%),
    radial-gradient(ellipse at 66% 72%, rgba(255,255,255,.56) 0 9%, transparent 10%),
    radial-gradient(ellipse at 75% 70%, rgba(255,255,255,.48) 0 12%, transparent 13%);
}
.radar-head.weather-night {
  border-bottom-color: rgba(148, 163, 184, .28);
  background:
    linear-gradient(180deg, rgba(3, 14, 36, .16), rgba(3, 14, 36, .5)),
    radial-gradient(circle at 94% 10%, rgba(226, 232, 240, .86) 0 4%, rgba(96, 165, 250, .24) 5% 12%, transparent 22%),
    linear-gradient(135deg, #03142f 0%, #07346b 52%, #0b4a86 100%);
  color: #f8fafc;
}
.radar-head.weather-night::before {
  opacity: .72;
  background:
    radial-gradient(circle at 94% 10%, rgba(255,255,255,.9) 0 3%, rgba(191,219,254,.56) 4% 7%, rgba(59,130,246,.2) 8% 18%, transparent 30%);
}
.radar-head.weather-night::after {
  opacity: .85;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 16% 48%, rgba(255,255,255,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 21% 34%, rgba(191,219,254,.8) 0 1px, transparent 2px),
    radial-gradient(circle at 28% 62%, rgba(255,255,255,.72) 0 1px, transparent 2px),
    radial-gradient(circle at 34% 15%, rgba(255,255,255,.78) 0 1px, transparent 2px),
    radial-gradient(circle at 43% 26%, rgba(255,255,255,.85) 0 1px, transparent 2px),
    radial-gradient(circle at 48% 70%, rgba(191,219,254,.72) 0 1px, transparent 2px),
    radial-gradient(circle at 59% 42%, rgba(255,255,255,.62) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 20%, rgba(255,255,255,.78) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 66%, rgba(255,255,255,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 48%, rgba(191,219,254,.72) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 72%, rgba(255,255,255,.82) 0 1px, transparent 2px),
    radial-gradient(circle at 92% 36%, rgba(255,255,255,.66) 0 1px, transparent 2px),
    radial-gradient(circle at 8% 72%, rgba(191,219,254,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 52% 12%, rgba(255,255,255,.72) 0 1px, transparent 2px),
    radial-gradient(circle at 38% 82%, rgba(255,255,255,.62) 0 1px, transparent 2px),
    radial-gradient(ellipse at 18% 78%, rgba(255,255,255,.2) 0 10%, transparent 11%),
    radial-gradient(ellipse at 27% 76%, rgba(255,255,255,.16) 0 12%, transparent 13%);
}
.radar-head.weather-night .toggle-button,
.radar-head.weather-night select {
  border-color: rgba(226, 232, 240, .34);
  background: rgba(255, 255, 255, .92);
  color: #1e293b;
}
.status-pill {
  justify-self: center;
  border-radius: 8px;
  background: var(--cloud);
  padding: 5px 12px;
  color: var(--water);
  font-size: 12px;
  font-weight: 600;
}
.radar-head h1 { margin: 0; color: inherit; font-size: clamp(26px, 5vw, 42px); line-height: 1.18; }
.focus-heading {
  margin-top: -4px;
  color: inherit;
  font-size: clamp(20px, 3.5vw, 34px);
  font-weight: 700;
  line-height: 1.2;
}
.radar-datetime {
  display: grid;
  gap: 2px;
  margin: 0;
  color: inherit;
  font-size: clamp(20px, 3.4vw, 28px);
  font-weight: 700;
  line-height: 1.25;
}
.radar-datetime b { font-weight: 700; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.toggle-button, .toolbar select, .mobile-controls select, .mobile-controls button, .mobile-head-controls button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 12px;
  color: #475569;
  font-weight: 600;
}
.toolbar select {
  width: auto;
  min-width: 180px;
  max-width: 260px;
  flex: 0 1 220px;
}
.toggle-button.active, .mobile-controls button.active, .mobile-head-controls button.active {
  border-color: var(--mint);
  background: var(--mint);
  color: var(--ink);
}
.radar-head .toggle-button.active,
.radar-head.weather-night .toggle-button.active {
  border-color: #16a34a;
  background: #16a34a;
  color: white;
}
.mobile-head-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.icon-toggle {
  width: 46px;
  padding: 0 !important;
  display: inline-grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
}
.zoom-slider-row {
  width: min(100%, 620px);
  justify-self: center;
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) 62px;
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}
.zoom-slider-row input,
.mobile-canvas-zoom input {
  width: 100%;
  accent-color: var(--water);
}
.zoom-slider-row strong { text-align: center; color: inherit; }
.radar-viewport { position: relative; background: rgba(2, 6, 23, .05); overflow: visible; }
.radar-viewport.can-drag {
  max-height: min(52vh, 520px);
  overflow: auto;
  cursor: grab;
  touch-action: pan-x pan-y pinch-zoom;
}
.icon-toggle.active {
  background: var(--mint);
  color: var(--ink);
  border-color: var(--mint);
}
.radar-stage { position: relative; width: 100%; }
.radar-image { display: block; width: 100%; height: auto; max-width: none; }
.radar-overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.radar-loading {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, .28);
  pointer-events: none;
}
.radar-loading[hidden] {
  display: none !important;
}
.radar-loading b {
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  padding: 12px 18px 12px 52px;
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
}
.radar-loading span {
  position: absolute;
  width: 26px;
  height: 26px;
  transform: translateX(-72px);
  border: 3px solid rgba(21, 149, 163, .2);
  border-top-color: var(--water);
  border-radius: 999px;
  animation: radar-spin .8s linear infinite;
}
.radar-arrow-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.radar-arrow {
  position: absolute;
  display: block;
  min-width: 56px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  pointer-events: auto;
  cursor: move;
  touch-action: none;
}
.radar-arrow::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid transparent;
  border-radius: 8px;
}
.radar-arrow.selected::before {
  border-color: rgba(220, 38, 38, .42);
  background: rgba(254, 226, 226, .12);
}
.radar-arrow:not(.selected) .radar-arrow-handle,
.radar-arrow:not(.selected) .radar-arrow-rotate {
  display: none;
}
.radar-arrow-line {
  position: absolute;
  left: 0;
  right: 18px;
  top: 50%;
  height: var(--arrow-thickness, 7px);
  border-radius: 999px;
  background: var(--arrow-color, #dc2626);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .35);
  transform: translateY(-50%);
}
.radar-arrow-head {
  position: absolute;
  right: 0;
  top: 50%;
  width: 0;
  height: 0;
  border-top: calc(var(--arrow-thickness, 7px) * 1.9) solid transparent;
  border-bottom: calc(var(--arrow-thickness, 7px) * 1.9) solid transparent;
  border-left: calc(var(--arrow-thickness, 7px) * 3.2) solid var(--arrow-color, #dc2626);
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, .35));
  transform: translateY(-50%);
}
.radar-arrow-handle {
  position: absolute;
  right: -18px;
  top: 50%;
  width: 28px;
  height: 28px;
  border: 3px solid white;
  border-radius: 999px;
  background: var(--arrow-color, #dc2626);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .35);
  cursor: ew-resize;
  transform: translateY(-50%);
}
.radar-arrow-rotate {
  position: absolute;
  left: 50%;
  top: -38px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 3px solid white;
  border-radius: 999px;
  background: #1595a3;
  color: white;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .35);
  cursor: grab;
  transform: translateX(-50%);
}
.arrow-confirm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px 16px;
  background: white;
}
.arrow-confirm-row button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--water);
  padding: 0 18px;
  color: white;
  font-weight: 700;
}
.arrow-confirm-row .arrow-add-button {
  background: #16a34a;
}
.arrow-confirm-row button.danger {
  background: #dc2626;
}
.legend-card {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.legend-card img { display: block; width: 100%; border-radius: 0; }
.side-card { display: grid; gap: 12px; padding: 20px; }
.side-card h2 { margin: 0; font-size: 18px; }
.side-card p { margin: -6px 0 2px; color: #64748b; font-size: 13px; }
.option-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px 14px;
  text-align: left;
}
.option-row.active { border-color: var(--water); background: #ecfeff; }
.option-row small { display: block; color: #64748b; font-size: 12px; }
.arrow-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.arrow-color-row button,
.mobile-arrow-color {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border: 2px solid white;
  border-radius: 999px;
  background: var(--swatch);
  padding: 0;
  box-shadow: 0 0 0 1px rgba(15,23,42,.18);
}
.arrow-color-row button.active,
.mobile-arrow-color.active {
  box-shadow: 0 0 0 3px rgba(21,149,163,.3), 0 0 0 1px rgba(15,23,42,.18);
}
.arrow-size-row {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  min-width: 150px;
}
.arrow-size-row button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #334155;
  font-size: 20px;
  font-weight: 800;
}
.arrow-size-row strong {
  text-align: center;
  color: #334155;
  font-size: 14px;
}
.arrow-selection-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.credit-card {
  display: grid;
  gap: 8px;
  border-radius: 12px;
  background: var(--night);
  color: white;
  padding: 20px;
  box-shadow: var(--shadow);
}
.credit-card small { color: var(--mint); font-weight: 600; }
.credit-card strong { font-size: 26px; }
.credit-card p { margin: 0; color: rgba(255,255,255,.72); }
.feedback-card {
  display: grid;
  gap: 12px;
  padding: 20px;
}
.feedback-card h2 {
  margin: 0;
  font-size: 18px;
}
.feedback-card textarea {
  min-height: 120px;
  resize: vertical;
}
.feedback-card button {
  border: 0;
  border-radius: 8px;
  background: var(--mint);
  padding: 11px 14px;
  color: var(--ink);
  font-weight: 700;
}
.feedback-status {
  margin: 0;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}
.feedback-status.error { color: #dc2626; }
.help-short-card .primary-button {
  display: grid;
  place-items: center;
  text-align: center;
}
.install-app-button {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--water);
  padding: 0 14px;
  color: white;
  font-weight: 700;
}
.install-app-button[hidden] {
  display: none !important;
}
.footer { max-width: 1280px; margin: 0 auto; padding: 16px 16px 96px; text-align: center; color: #64748b; font-size: 12px; font-weight: 600; }

.help-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(232, 248, 246, .82), rgba(245, 250, 248, 0) 310px),
    var(--bg);
}
.help-wrap {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding-inline: 16px;
}
.help-hero {
  border-bottom: 1px solid rgba(203, 213, 225, .62);
  background:
    linear-gradient(135deg, rgba(21, 149, 163, .14), rgba(199, 246, 90, .18)),
    white;
}
.help-hero .help-wrap {
  display: grid;
  gap: 10px;
  padding-top: 42px;
  padding-bottom: 38px;
}
.help-kicker {
  margin: 0;
  color: var(--water);
  font-weight: 700;
}
.help-hero h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.12;
}
.help-hero p:not(.help-kicker) {
  margin: 0;
  max-width: 760px;
  color: #475569;
  font-size: 17px;
  line-height: 1.75;
}
.help-grid {
  display: grid;
  gap: 14px;
  padding-top: 24px;
  padding-bottom: 80px;
}
.help-card {
  position: relative;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(203, 213, 225, .75);
  border-radius: 8px;
  background: white;
  padding: 18px 18px 18px 72px;
  box-shadow: 0 12px 30px rgba(21, 32, 43, .07);
}
.help-mark {
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--water);
  color: white;
  font-weight: 700;
}
.help-card h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}
.help-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.75;
}
.help-card b {
  color: var(--ink);
}
.help-visual {
  position: relative;
  height: 118px;
  overflow: hidden;
  border: 1px solid #dbe5ea;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}
.help-visual::before,
.help-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.help-visual-station {
  background:
    linear-gradient(90deg, var(--water) 0 25%, transparent 25%),
    linear-gradient(180deg, #ffffff 0 32%, #eefaf8 32% 100%);
}
.help-visual-station::before {
  left: 18px;
  right: 18px;
  top: 18px;
  height: 18px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0 34%, #e2e8f0 34% 58%, transparent 58% 64%, #e2e8f0 64% 100%);
}
.help-visual-station::after {
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 44px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--water) 0 31%, transparent 31% 36%, #ffffff 36% 66%, transparent 66% 71%, #ffffff 71% 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}
.help-visual-loop {
  background:
    radial-gradient(circle at 70% 42%, rgba(21, 149, 163, .28) 0 18%, transparent 19%),
    linear-gradient(135deg, #e8f8f6, #ffffff);
}
.help-visual-loop::before {
  left: 36px;
  top: 22px;
  width: 78px;
  height: 60px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 18px 10px 0 #dbe5ea, 36px 20px 0 #c7f65a;
}
.help-visual-loop::after {
  left: 72px;
  top: 46px;
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 21px solid var(--water);
}
.help-visual-overlay {
  background:
    linear-gradient(90deg, rgba(21,149,163,.16) 1px, transparent 1px) 0 0/34px 34px,
    linear-gradient(0deg, rgba(21,149,163,.16) 1px, transparent 1px) 0 0/34px 34px,
    linear-gradient(135deg, #f8fafc, #e8f8f6);
}
.help-visual-overlay::before {
  inset: 24px 32px 28px 32px;
  border: 4px solid var(--water);
  border-radius: 48% 52% 45% 55%;
  transform: rotate(-8deg);
}
.help-visual-overlay::after {
  right: 22px;
  bottom: 18px;
  width: 86px;
  height: 32px;
  border-radius: 8px;
  background: var(--mint);
}
.help-visual-zoom {
  background:
    radial-gradient(circle at 72% 36%, rgba(21,149,163,.18) 0 24%, transparent 25%),
    linear-gradient(135deg, #ffffff, #f5faf8);
}
.help-visual-zoom::before {
  left: 26px;
  right: 26px;
  top: 56px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--water) 0 42%, #dbe5ea 42% 100%);
}
.help-visual-zoom::after {
  left: calc(42% - 13px);
  top: 45px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--water);
  box-shadow: 0 0 0 8px rgba(21,149,163,.14);
}
.help-visual-focus {
  background:
    radial-gradient(circle at 50% 50%, rgba(199,246,90,.35) 0 23%, transparent 24%),
    linear-gradient(135deg, #eefaf8, #ffffff);
}
.help-visual-focus::before {
  left: 34px;
  top: 24px;
  width: 86px;
  height: 58px;
  border: 3px solid var(--water);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 62%, rgba(21,149,163,.22) 62% 66%, transparent 66%),
    linear-gradient(0deg, transparent 0 48%, rgba(21,149,163,.22) 48% 52%, transparent 52%);
}
.help-visual-focus::after {
  right: 28px;
  bottom: 22px;
  width: 76px;
  height: 28px;
  border-radius: 8px;
  background: var(--water);
}
.help-visual-arrow,
.help-visual-resize,
.help-visual-rotate {
  background:
    radial-gradient(circle at 28% 72%, rgba(34,197,94,.34) 0 13%, transparent 14%),
    radial-gradient(circle at 70% 34%, rgba(56,189,248,.24) 0 18%, transparent 19%),
    linear-gradient(135deg, #eefaf8, #ffffff);
}
.help-visual-arrow::before,
.help-visual-resize::before,
.help-visual-rotate::before {
  left: 46px;
  top: 55px;
  width: 122px;
  height: 8px;
  border-radius: 999px;
  background: #dc2626;
  transform: rotate(-22deg);
  transform-origin: right center;
  box-shadow: 0 2px 6px rgba(15,23,42,.22);
}
.help-visual-arrow::after,
.help-visual-resize::after,
.help-visual-rotate::after {
  left: 160px;
  top: 38px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 25px solid #dc2626;
  transform: rotate(-22deg);
  filter: drop-shadow(0 2px 4px rgba(15,23,42,.22));
}
.help-visual-resize {
  box-shadow: inset 0 0 0 2px rgba(220, 38, 38, .18);
}
.help-visual-resize::before {
  width: 150px;
}
.help-visual-resize::after {
  left: 188px;
  box-shadow: 18px 10px 0 -5px #dc2626;
}
.help-visual-rotate::before,
.help-visual-rotate::after {
  transform: rotate(18deg);
}
.help-visual-rotate {
  background:
    radial-gradient(circle at 50% 16%, var(--water) 0 13%, transparent 14%),
    radial-gradient(circle at 74% 78%, #fee2e2 0 13%, transparent 14%),
    linear-gradient(135deg, #eefaf8, #ffffff);
}
.help-visual-mobile {
  background: linear-gradient(135deg, #f8fafc, #e8f8f6);
}
.help-visual-mobile::before {
  left: 50%;
  top: 14px;
  width: 92px;
  height: 84px;
  border: 6px solid #334155;
  border-radius: 14px;
  background:
    linear-gradient(180deg, transparent 0 60%, rgba(21,149,163,.22) 60% 100%),
    #ffffff;
  transform: translateX(-50%);
}
.help-visual-mobile::after {
  left: 50%;
  bottom: 18px;
  width: 112px;
  height: 24px;
  border-radius: 999px;
  background: var(--water);
  transform: translateX(-50%);
}
.mobile-tools-toggle {
  position: fixed;
  right: 12px;
  bottom: calc(68px + env(safe-area-inset-bottom));
  z-index: 60;
  width: 42px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--water);
  padding: 0;
  color: white;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(15,23,42,.16);
}
body.mobile-tools-hidden .mobile-tools-toggle {
  bottom: calc(12px + env(safe-area-inset-bottom));
  background: var(--mint);
  color: var(--ink);
}
body.mobile-tools-hidden .mobile-controls {
  transform: translateY(calc(100% + 18px));
  pointer-events: none;
}
.mobile-controls {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.9);
  box-shadow: 0 -10px 24px rgba(15,23,42,.1);
  backdrop-filter: blur(12px);
  transition: transform .18s ease;
}
.mobile-focus-select {
  min-width: 130px;
  max-width: 42vw;
  display: grid;
  grid-template-columns: minmax(90px, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 10px;
  color: #475569;
  font-weight: 700;
  white-space: nowrap;
}
.mobile-focus-select select {
  min-width: 0;
  border: 0;
  padding-left: 0;
  padding-right: 22px;
}
.desktop-controls { display: none; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(100%, 390px); display: grid; gap: 16px; padding: 24px; }
.login-title { display: flex; gap: 12px; align-items: center; }
.login-title h1, .login-title p { margin: 0; }
.login-title p { color: #64748b; font-size: 14px; }
.lock-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--water);
  color: white;
  font-weight: 700;
}
label { display: grid; gap: 6px; color: #334155; font-weight: 600; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
  color: #1e293b;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--water); box-shadow: 0 0 0 3px #cffafe; }
.login-card button, .primary-button, .save-button {
  border: 0;
  border-radius: 8px;
  background: var(--mint);
  padding: 11px 14px;
  color: var(--ink);
  font-weight: 700;
}
.form-error { margin: 0; color: #dc2626; font-weight: 600; }

.admin-page {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  padding: 24px 16px;
}
.admin-sidebar, .admin-main { display: grid; align-content: start; gap: 16px; }
.admin-sidebar h1 { margin: 0; font-size: 26px; }
.admin-sidebar p { margin: 4px 0 0; color: #64748b; }
.sidebar-filter { gap: 8px; }
.secondary-button, .admin-actions button, .section-head button {
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  padding: 10px 14px;
  color: #334155;
  font-weight: 700;
}
.station-list {
  max-height: 70vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 8px;
  box-shadow: var(--shadow);
}
.station-list button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: white;
  padding: 10px;
  text-align: left;
}
.station-list button.active { background: var(--water); color: white; }
.station-list small { display: block; opacity: .75; }
.station-empty {
  padding: 14px;
  color: #64748b;
  font-weight: 600;
  text-align: center;
}
.admin-status {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  backdrop-filter: blur(14px);
}
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-view-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.admin-view-menu button {
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  padding: 10px 12px;
  color: #334155;
  font-weight: 700;
}
.admin-view-menu button.active {
  background: var(--water);
  color: white;
}
.danger-button { color: #dc2626 !important; background: #fee2e2 !important; }
.editor-form { display: grid; gap: 16px; }
.form-section { display: grid; gap: 16px; padding: 16px; }
.two-col { display: grid; grid-template-columns: 1fr; gap: 16px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; align-self: end; }
.checkbox-row input { width: auto; }
.color-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.color-row input[type="color"] {
  width: 56px;
  height: 44px;
  padding: 4px;
}
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.section-head h2, .form-section h2 { margin: 0; font-size: 18px; }
.image-fields, .focus-list { display: grid; gap: 14px; }
.image-field, .focus-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}
.image-row { display: grid; gap: 8px; }
.preview {
  min-height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #94a3b8;
}
.preview img { width: 100%; max-height: 280px; object-fit: contain; }
.upload-button {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: white;
  color: #475569;
  font-weight: 700;
}
.upload-button input { display: none; }
.upload-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
  color: #475569;
  font-weight: 700;
}
.upload-progress[hidden] { display: none; }
.upload-progress progress {
  width: 100%;
  height: 14px;
  accent-color: #16a3b7;
}
.upload-progress span { text-align: right; }
.focus-item { grid-template-columns: 1fr; }
.remove-focus { border: 0; border-radius: 8px; background: #fee2e2; color: #dc2626; font-weight: 700; }
.feedback-admin-section .section-head small {
  color: #64748b;
  font-weight: 700;
}
.feedback-admin-list {
  display: grid;
  gap: 10px;
}
.feedback-admin-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}
.feedback-admin-item div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
.feedback-admin-item p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.feedback-admin-item small {
  color: #64748b;
}
.feedback-error {
  color: #dc2626;
}

.sweet-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .42);
  animation: sweet-fade .14s ease-out;
}
.sweet-overlay.closing { animation: sweet-fade .14s ease-in reverse; }
.sweet-box {
  width: min(100%, 390px);
  display: grid;
  justify-items: center;
  gap: 12px;
  border-radius: 14px;
  background: white;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
  animation: sweet-pop .16s ease-out;
}
.sweet-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 3px solid #22c55e;
  border-radius: 999px;
  color: #16a34a;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}
.sweet-warning .sweet-icon { border-color: #f59e0b; color: #d97706; }
.sweet-error .sweet-icon { border-color: #ef4444; color: #dc2626; }
.sweet-box h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}
.sweet-box p {
  margin: 0;
  max-width: 32ch;
  overflow-wrap: anywhere;
  color: #64748b;
  font-size: 14px;
}
.sweet-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}
.sweet-actions button {
  min-width: 96px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
}
.sweet-confirm { background: var(--water); color: white; }
.sweet-warning .sweet-confirm { background: #dc2626; }
.sweet-cancel { background: #e2e8f0; color: #334155; }
.install-guide-box {
  width: min(100%, 430px);
  display: grid;
  justify-items: center;
  gap: 16px;
  border-radius: 18px;
  background: white;
  padding: 24px 22px 22px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
  animation: sweet-pop .16s ease-out;
}
.install-guide-box h2 {
  margin: 0;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.25;
}
.install-guide-box ol {
  width: 100%;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.install-guide-box li {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px 10px 48px;
  color: #334155;
  font-weight: 700;
}
.install-guide-box li::before {
  content: counter(list-item);
  position: absolute;
  left: 12px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--water);
  color: white;
  font-size: 14px;
  transform: translateY(-50%);
}
.install-guide-box button {
  min-width: 140px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 700;
}
.install-phone {
  position: relative;
  width: 156px;
  height: 138px;
  border: 7px solid #1e293b;
  border-radius: 24px;
  background:
    linear-gradient(180deg, #eefaf8 0 58%, white 58% 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .14);
}
.install-phone-bar {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 48px;
  height: 6px;
  border-radius: 999px;
  background: #cbd5e1;
  transform: translateX(-50%);
}
.install-share-icon {
  position: absolute;
  left: 50%;
  bottom: 34px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #0ea5e9;
  color: white;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  transform: translateX(-50%);
}
.install-menu-line,
.install-menu-line.short {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 18px;
  height: 6px;
  border-radius: 999px;
  background: #cbd5e1;
}
.install-menu-line.short {
  left: 50px;
  right: 50px;
  bottom: 8px;
}

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

@keyframes sweet-pop {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@media (min-width: 768px) {
  .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .image-row { grid-template-columns: minmax(0, 1fr) 220px; }
  .focus-item { grid-template-columns: minmax(0, 1fr) 90px 90px 90px 44px; align-items: end; }
  .radar-viewport.can-drag { max-height: min(56vh, 580px); }
}

@media (max-width: 1023px) {
  .install-app-button:not([hidden]) {
    display: grid;
    place-items: center;
  }
}

@media (min-width: 1024px) {
  .help-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .desktop-menu, .desktop-controls { display: flex; }
  .nav-toggle, .mobile-controls, .mobile-tools-toggle, .mobile-head-controls, .mobile-canvas-zoom { display: none; }
  .dashboard-shell { grid-template-columns: minmax(0, 1fr) 360px; padding-left: 32px; padding-right: 32px; }
  .side-column {
    align-content: start;
    padding-top: 64px;
  }
  .admin-page { grid-template-columns: 320px minmax(0, 1fr); padding-left: 32px; padding-right: 32px; }
  .radar-viewport.can-drag { max-height: min(58vh, 620px); }
}
