:root {
  color-scheme: light;
  --paper: #f4efe4;
  --paper-2: #fbf8f1;
  --cream: #f7f1e4;
  --ink: #122b23;
  --ink-2: #1b3a30;
  --ink-soft: #365046;
  --muted: #6e7d74;
  --line: #d9d1c1;
  --line-strong: #bcb09b;
  --coral: #de5a37;
  --coral-deep: #b94326;
  --coral-soft: #f6d8ca;
  --sage: #2e6a52;
  --gold: #d8a13e;
  --amber-bg: #fbf0d8;
  --amber-line: #e8d0a1;
  --amber-text: #7a4f16;
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", "Times New Roman", serif;
  --sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Hiragino Sans GB", "Heiti SC", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
  --shadow-panel: 0 30px 80px -52px rgba(18, 43, 35, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --shadow-dark: 0 34px 90px -48px rgba(10, 32, 25, 0.95);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 300px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(900px 620px at 91% -8%, rgba(222, 90, 55, 0.13), transparent 62%),
    radial-gradient(820px 640px at -8% 25%, rgba(46, 106, 82, 0.14), transparent 62%),
    var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.dialog-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
}

svg {
  display: block;
}

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

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--small {
  width: 14px;
  height: 14px;
}

.icon--tiny {
  width: 12px;
  height: 12px;
}

.paper-grid {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18, 43, 35, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 43, 35, 0.032) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 20%, transparent 78%);
}

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 26px 32px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 50%;
}

.brand-mark svg {
  width: 37px;
  height: 37px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
}

.brand-mark__dot {
  fill: var(--coral);
  stroke: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-dot {
  color: var(--coral);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(46, 106, 82, 0.23);
  border-radius: 999px;
  color: var(--sage);
  background: rgba(251, 248, 241, 0.6);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.live-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.live-dot::after {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(46, 106, 82, 0.35);
  border-radius: 50%;
  content: "";
  animation: live 2.8s ease-out infinite;
}

.header-coord {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.page {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 32px 46px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(290px, 0.62fr);
  gap: 64px;
  align-items: end;
  padding: 38px 0 48px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.kicker {
  margin: 0;
  color: var(--sage);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow span {
  margin: 0 5px;
  color: var(--coral);
}

.hero h1 {
  max-width: 800px;
  margin: 18px 0 22px;
  font-family: var(--serif);
  font-size: clamp(46px, 6.1vw, 82px);
  font-weight: 600;
  letter-spacing: -0.052em;
  line-height: 0.99;
}

.accent {
  position: relative;
  display: inline-block;
  color: var(--coral);
}

.accent::after {
  position: absolute;
  right: -3px;
  bottom: -7px;
  left: -2px;
  height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9C62 3 148 2 298 5' fill='none' stroke='%23de5a37' stroke-width='3' stroke-linecap='round' opacity='.48'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  content: "";
}

.lede {
  max-width: 640px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
}

.lede strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.94em;
  font-weight: 700;
  white-space: nowrap;
}

.hero-side {
  padding: 2px 0 4px 27px;
  border-left: 1px solid var(--line);
}

.flow {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.flow-num {
  padding-top: 2px;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.flow-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.flow-text b {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.flow-text small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.note-line {
  width: 20px;
  height: 1px;
  flex: none;
  background: var(--line-strong);
}

.workspace {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-top: 32px;
}

.panel {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(251, 248, 241, 0.88);
  box-shadow: var(--shadow-panel);
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
  backdrop-filter: blur(12px);
}

.panel::-webkit-scrollbar {
  width: 4px;
}

.panel::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: var(--line-strong);
}

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

.panel-step {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.field-group {
  margin-top: 21px;
  padding-top: 21px;
  border-top: 1px dashed var(--line);
}

.panel-head + .field-group {
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.field-label {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.label-tag {
  padding: 2px 7px;
  border: 1px solid rgba(46, 106, 82, 0.22);
  border-radius: 999px;
  color: var(--sage);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.field-aside {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.coord-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--cream);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.coord-wrap:focus-within {
  border-color: var(--sage);
  background: #fffdf8;
  box-shadow: 0 0 0 4px rgba(46, 106, 82, 0.1);
}

.coord-wrap.is-error {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(222, 90, 55, 0.09);
}

.coord-input {
  width: 100%;
  min-width: 0;
  padding: 14px 48px 14px 15px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.015em;
}

.coord-input::placeholder {
  color: #9b9b8d;
  opacity: 1;
}

.input-action {
  position: absolute;
  right: 7px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: rgba(18, 43, 35, 0.06);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.input-action:hover {
  background: var(--ink);
  color: var(--cream);
}

.input-action:focus-visible,
.btn:focus-visible,
.text-btn:focus-visible,
.icon-btn:focus-visible,
.stepper-btn:focus-visible,
.spot-action:focus-visible,
.radius-option input:focus-visible + .radius-face {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.input-help {
  min-height: 19px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.input-help.is-ok {
  color: var(--sage);
}

.input-help.is-warn {
  color: var(--amber-text);
}

.input-help.is-error {
  color: var(--coral-deep);
}

.input-help a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.precision-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid var(--amber-line);
  border-radius: 11px;
  background: var(--amber-bg);
  color: var(--amber-text);
}

.precision-hint .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

.precision-hint p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.65;
}

.picker-row {
  display: flex;
  gap: 8px;
  margin-top: 11px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-picker {
  flex: 1;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.btn-picker:hover {
  border-color: var(--sage);
  background: var(--sage);
  box-shadow: 0 12px 24px -16px rgba(18, 43, 35, 0.8);
}

.btn-picker .icon--small {
  opacity: 0.55;
}

.picker-mobile-note {
  display: none;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink-soft);
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  background: rgba(18, 43, 35, 0.04);
}

.btn-compact {
  padding: 9px 13px;
  font-size: 11px;
}

.btn-primary {
  border-color: var(--coral);
  background: var(--coral);
  color: #fff8ee;
}

.btn-primary:hover {
  border-color: var(--coral-deep);
  background: var(--coral-deep);
}

.radius-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.radius-option {
  position: relative;
  cursor: pointer;
}

.radius-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.radius-face {
  display: flex;
  height: 68px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--cream);
  color: var(--ink-soft);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.radius-face b {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.radius-face small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
  transition: color 0.18s ease;
}

.radius-option:hover .radius-face {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.radius-option input:checked + .radius-face {
  position: relative;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 12px 24px -18px rgba(18, 43, 35, 0.9);
}

.radius-option input:checked + .radius-face small {
  color: rgba(247, 241, 228, 0.58);
}

.radius-option input:checked + .radius-face::after {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.field-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.field-group--count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.count-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stepper {
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--cream);
}

.stepper-btn {
  display: grid;
  width: 31px;
  height: 31px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.stepper-btn:hover:not(:disabled) {
  background: var(--ink);
  color: var(--cream);
}

.stepper-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.stepper-value {
  width: 34px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.btn-generate {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 13px 16px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: var(--coral);
  color: #fff9ef;
  text-align: left;
  box-shadow: 0 18px 34px -22px rgba(185, 67, 38, 0.95);
}

.btn-generate::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 24%, rgba(255, 255, 255, 0.19) 44%, transparent 64%);
  content: "";
  transform: translateX(-130%);
  transition: transform 0.75s ease;
}

.btn-generate:hover {
  background: var(--coral-deep);
  transform: translateY(-1px);
}

.btn-generate:hover::after {
  transform: translateX(130%);
}

.generate-icon {
  display: grid;
  width: 39px;
  height: 39px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 249, 239, 0.16);
}

.generate-icon .icon {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: none;
}

.generate-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.generate-text b {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.generate-text small {
  color: rgba(255, 249, 239, 0.72);
  font-size: 10px;
}

.generate-arrow {
  width: 19px;
  height: 19px;
  opacity: 0.85;
}

.btn-generate.is-shaking {
  animation: shake 0.4s ease;
}

.form-error {
  margin: 10px 0 0;
  padding: 8px 11px;
  border: 1px solid rgba(222, 90, 55, 0.25);
  border-radius: 10px;
  background: rgba(222, 90, 55, 0.07);
  color: var(--coral-deep);
  font-size: 10.5px;
  line-height: 1.6;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.stage {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 22px;
}

.radar-card {
  position: relative;
  overflow: hidden;
  padding: 24px 26px 16px;
  border: 1px solid rgba(247, 241, 228, 0.11);
  border-radius: 28px;
  background:
    radial-gradient(120% 120% at 50% 0%, #1c4739 0%, #102b23 54%, #0a2019 100%);
  color: var(--cream);
  box-shadow: var(--shadow-dark);
}

.radar-card::before {
  position: absolute;
  top: -240px;
  right: -150px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(247, 241, 228, 0.055);
  border-radius: 50%;
  content: "";
}

.radar-card::after {
  position: absolute;
  right: -12%;
  bottom: -62%;
  width: 70%;
  height: 150%;
  border: 1px solid rgba(247, 241, 228, 0.04);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.radar-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.kicker--light {
  color: rgba(247, 241, 228, 0.48);
}

.radar-title {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 2px 0 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.radar-title small {
  color: rgba(247, 241, 228, 0.45);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.radar-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 4px;
}

.radar-count,
.radar-system {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border: 1px solid rgba(247, 241, 228, 0.13);
  border-radius: 999px;
  color: rgba(247, 241, 228, 0.6);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.radar-count b {
  color: var(--coral);
  font-size: 11px;
}

.radar-system {
  color: rgba(247, 241, 228, 0.38);
}

.radar-wrap {
  position: relative;
  width: min(100%, 590px);
  margin: 2px auto 0;
  aspect-ratio: 1 / 1;
}

.radar {
  width: 100%;
  height: auto;
  overflow: visible;
}

.radar-grid line {
  stroke: rgba(247, 241, 228, 0.08);
  stroke-width: 0.8;
}

.radar-grid circle {
  fill: none;
  stroke: rgba(247, 241, 228, 0.075);
  stroke-width: 0.8;
}

.radar-grid circle:last-child {
  stroke: rgba(247, 241, 228, 0.17);
  stroke-dasharray: 2 6;
}

.radar-ticks text {
  fill: rgba(247, 241, 228, 0.36);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-anchor: middle;
}

.radar-sweep {
  opacity: 0.55;
  transform-origin: 280px 280px;
  animation: sweep 26s linear infinite;
}

.radar-ring {
  fill: none;
  stroke: rgba(247, 241, 228, 0.16);
  stroke-width: 0.9;
}

.radar-ring--dashed {
  stroke: rgba(247, 241, 228, 0.13);
  stroke-dasharray: 3 7;
}

.radar-ring-label {
  fill: rgba(247, 241, 228, 0.4);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-anchor: middle;
}

.base-ring {
  fill: none;
  stroke: rgba(247, 241, 228, 0.28);
  stroke-width: 1;
}

.base-ring--outer {
  stroke: rgba(247, 241, 228, 0.12);
  stroke-dasharray: 2 4;
}

.base-core {
  fill: var(--cream);
  stroke: #0a2019;
  stroke-width: 2;
}

.base-cross line {
  stroke: rgba(247, 241, 228, 0.5);
  stroke-width: 0.9;
}

.base-label {
  fill: rgba(247, 241, 228, 0.42);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-anchor: middle;
}

.radar-point {
  cursor: pointer;
  outline: none;
}

.point-halo {
  fill: var(--coral);
  opacity: 0.17;
  transform-box: fill-box;
  transform-origin: center;
  animation: halo 3.4s ease-out infinite;
}

.point-inner {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.point-dot {
  fill: var(--coral);
  stroke: #ffd8c8;
  stroke-width: 1.4;
}

.radar-point text {
  fill: #fff8ed;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.radar-point:hover .point-inner,
.radar-point:focus-visible .point-inner,
.radar-point.is-active .point-inner {
  transform: scale(1.28);
}

.radar-point:hover .point-dot,
.radar-point:focus-visible .point-dot,
.radar-point.is-active .point-dot {
  fill: var(--gold);
  stroke: #fff8ed;
}

.radar-point:focus-visible .point-halo {
  stroke: var(--gold);
  stroke-width: 1.5;
  opacity: 0.4;
}

.radar-tip {
  position: absolute;
  z-index: 4;
  display: flex;
  min-width: 150px;
  flex-direction: column;
  gap: 1px;
  padding: 8px 11px;
  border: 1px solid rgba(18, 43, 35, 0.08);
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 0 18px 36px -20px rgba(3, 16, 11, 0.7);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
}

.radar-tip::after {
  position: absolute;
  bottom: -5px;
  left: calc(50% - 5px);
  width: 9px;
  height: 9px;
  background: var(--paper-2);
  content: "";
  transform: rotate(45deg);
}

.radar-tip__index {
  color: var(--coral);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.radar-tip__coord {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.01em;
}

.radar-tip__meta {
  color: var(--muted);
  font-size: 9.5px;
}

.radar-empty {
  position: absolute;
  top: 60%;
  left: 50%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px;
  border: 1px solid rgba(247, 241, 228, 0.1);
  border-radius: 12px;
  background: rgba(10, 32, 25, 0.62);
  color: var(--cream);
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%);
  backdrop-filter: blur(4px);
}

.radar-empty__icon {
  display: grid;
  width: 27px;
  height: 27px;
  margin-bottom: 2px;
  place-items: center;
  opacity: 0.55;
}

.radar-empty__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--cream);
  stroke-width: 1;
  stroke-linecap: round;
}

.radar-empty b {
  color: rgba(247, 241, 228, 0.82);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.radar-empty small {
  color: rgba(247, 241, 228, 0.42);
  font-size: 8.5px;
  white-space: nowrap;
}

.radar-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 4px 2px 0;
  border-top: 1px solid rgba(247, 241, 228, 0.08);
  color: rgba(247, 241, 228, 0.45);
  font-size: 9px;
}

.radar-legend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.legend-dot--base {
  background: var(--cream);
}

.legend-dot--spot {
  background: var(--coral);
}

.radar-hint {
  margin-left: auto;
  font-family: var(--mono);
  letter-spacing: 0.03em;
}

.results {
  padding-top: 2px;
}

.results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 2px 13px;
  border-bottom: 1px solid var(--line);
}

.results-title {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.results-title #resultCount {
  color: var(--coral);
}

.results-actions {
  display: flex;
  gap: 2px;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.text-btn:hover {
  background: rgba(18, 43, 35, 0.06);
  color: var(--ink);
}

.text-btn--muted {
  color: var(--muted);
}

.text-btn:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.text-btn:disabled:hover {
  background: transparent;
  color: var(--ink-soft);
}

.empty-state {
  display: flex;
  align-items: flex-start;
  gap: 19px;
  padding: 26px 3px 8px;
}

.empty-state__num {
  color: var(--line-strong);
  font-family: var(--serif);
  font-size: 62px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.78;
  opacity: 0.5;
}

.empty-state b {
  font-size: 14px;
  font-weight: 650;
}

.empty-state p {
  max-width: 540px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.result-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 17px;
}

.spot-card {
  position: relative;
  padding: 14px 15px 11px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(251, 248, 241, 0.8);
  cursor: pointer;
  animation: card-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.spot-card:hover,
.spot-card.is-active {
  border-color: rgba(222, 90, 55, 0.65);
  background: var(--paper-2);
  box-shadow: 0 20px 34px -28px rgba(18, 43, 35, 0.65);
  transform: translateY(-2px);
}

.spot-card.is-active::before {
  position: absolute;
  top: -1px;
  left: 15px;
  width: 34px;
  height: 2px;
  background: var(--coral);
  content: "";
}

.spot-card:only-child {
  grid-column: 1 / -1;
}

.spot-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.spot-index {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.spot-index::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.spot-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.spot-meta b {
  color: var(--ink-soft);
  font-weight: 600;
}

.spot-coord {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.005em;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spot-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.spot-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.spot-action:hover {
  background: rgba(18, 43, 35, 0.07);
  color: var(--ink);
}

.spot-action--copy {
  margin-left: auto;
  color: var(--muted);
}

.spot-action--copy.is-copied {
  color: var(--sage);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.7;
}

.site-footer p {
  margin: 0;
}

.site-footer b {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--coral);
}

.footer-sep {
  margin: 0 6px;
  color: var(--line-strong);
}

.picker-dialog {
  width: min(1080px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(5, 20, 14, 0.75);
}

.picker-dialog::backdrop {
  background: rgba(8, 26, 19, 0.62);
  backdrop-filter: blur(6px);
}

.picker-dialog[open] {
  animation: dialog-in 0.24s ease both;
}

.picker-dialog:focus {
  outline: none;
}

.picker-shell {
  display: flex;
  max-height: calc(100vh - 40px);
  flex-direction: column;
}

.picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px 13px;
  border-bottom: 1px solid var(--line);
}

.picker-head h2 {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.picker-head-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.icon-btn:hover {
  border-color: var(--line);
  background: var(--cream);
  color: var(--ink);
}

.picker-help {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 9px 22px;
  border-bottom: 1px solid var(--line);
  background: #f0eadc;
  color: var(--muted);
  font-size: 10px;
}

.picker-help span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.picker-help b {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
}

.picker-status {
  margin-left: auto;
  color: var(--amber-text);
  font-size: 9.5px;
  line-height: 1.5;
}

.picker-status.is-warn {
  color: var(--coral-deep);
}

.picker-frame-wrap {
  position: relative;
  min-height: 420px;
  flex: 1;
  background: #e9e5db;
}

.picker-frame {
  display: block;
  width: 100%;
  height: min(61vh, 660px);
  border: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.picker-frame-wrap.is-loaded .picker-frame {
  opacity: 1;
}

.picker-loading {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: #f4f0e6;
  color: var(--muted);
  font-size: 11px;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--line-strong);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.picker-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 22px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.picker-foot p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
}

.picker-foot-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.picker-shortcut {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

kbd {
  display: inline-block;
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.3;
}

.toast {
  position: fixed;
  z-index: 100;
  bottom: 26px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid rgba(247, 241, 228, 0.13);
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 20px 40px -20px rgba(5, 20, 14, 0.8);
  font-size: 11px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast .icon {
  color: #9ec9a8;
}

@keyframes live {
  0% {
    opacity: 0.7;
    transform: scale(0.4);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

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

@keyframes halo {
  0% {
    opacity: 0.28;
    transform: scale(0.55);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-2px);
  }
}

@media (max-width: 1120px) {
  .hero {
    gap: 38px;
  }

  .workspace {
    grid-template-columns: 360px minmax(0, 1fr);
  }

  .panel {
    padding: 23px;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 30px;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .stage {
    gap: 20px;
  }

  .radar-wrap {
    width: min(100%, 560px);
  }

  .picker-mobile-note {
    display: block;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 19px 19px 12px;
  }

  .page {
    padding: 0 19px 36px;
  }

  .header-coord {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 22px 0 30px;
  }

  .hero h1 {
    margin-top: 14px;
    font-size: clamp(42px, 10vw, 60px);
  }

  .lede {
    font-size: 14.5px;
  }

  .hero-side {
    padding: 17px 0 0;
    border-top: 1px dashed var(--line);
    border-left: 0;
  }

  .flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .flow li {
    gap: 7px;
  }

  .flow-text small {
    display: none;
  }

  .hero-note {
    margin-top: 14px;
  }

  .workspace {
    padding-top: 20px;
  }

  .radar-card {
    padding: 20px 16px 13px;
    border-radius: 23px;
  }

  .radar-title {
    font-size: 46px;
  }

  .radar-footer {
    gap: 11px;
  }

  .radar-hint {
    display: none;
  }

  .input-action {
    right: 6px;
    width: 38px;
    height: 38px;
  }

  .coord-input {
    padding-right: 52px;
  }

  .stepper-btn {
    width: 35px;
    height: 35px;
  }

  .spot-action {
    padding: 8px 9px;
    font-size: 11px;
  }

  .results-title {
    font-size: 26px;
  }

  .result-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .spot-card:only-child {
    grid-column: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-top: 28px;
  }

  .picker-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .picker-shell {
    height: 100dvh;
    max-height: 100dvh;
  }

  .picker-head {
    padding: 16px 17px 12px;
  }

  .picker-head h2 {
    font-size: 23px;
  }

  .picker-help {
    gap: 5px 13px;
    padding: 8px 17px;
  }

  .picker-frame {
    height: calc(100dvh - 238px);
    min-height: 300px;
  }

  .picker-frame-wrap {
    min-height: 300px;
  }

  .picker-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 10px 17px calc(10px + env(safe-area-inset-bottom));
  }

  .picker-foot-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 19px;
  }

  .brand-mark,
  .brand-mark svg {
    width: 32px;
    height: 32px;
  }

  .header-pill {
    padding: 5px 9px;
    font-size: 9.5px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 50px);
  }

  .panel {
    padding: 19px 17px;
    border-radius: 21px;
  }

  .coord-input {
    padding-left: 12px;
    font-size: 12.5px;
  }

  .picker-row {
    flex-wrap: wrap;
  }

  .btn-picker {
    min-width: 0;
  }

  .btn-compact {
    padding-right: 11px;
    padding-left: 11px;
  }

  .radius-grid {
    gap: 5px;
  }

  .radius-face {
    height: 62px;
  }

  .radius-face b {
    font-size: 23px;
  }

  .radar-header {
    gap: 10px;
  }

  .radar-title {
    font-size: 40px;
  }

  .radar-system {
    display: none;
  }

  .radar-count {
    padding: 4px 7px;
    font-size: 8px;
  }

  .radar-empty {
    top: 63%;
    padding: 6px 10px;
  }

  .radar-empty small {
    font-size: 8px;
  }

  .results-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .results-actions {
    align-self: flex-end;
    margin-top: -3px;
  }

  .empty-state {
    gap: 13px;
  }

  .empty-state__num {
    font-size: 48px;
  }

  .spot-coord {
    font-size: 12px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    justify-content: center;
    transform: translateY(14px);
    text-align: center;
  }

  .toast.is-visible {
    transform: translateY(0);
  }
}

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