:root {
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f1f5f9;
  --accent: #0f766e;
  --accent-fg: #ffffff;
  --hot: #dc2626;
  --cold: #2563eb;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --fg: #e2e8f0;
    --muted: #94a3b8;
    --line: #1e293b;
    --soft: #111a2e;
    --accent: #2dd4bf;
    --accent-fg: #042f2e;
    --hot: #f87171;
    --cold: #60a5fa;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  font:
    15px/1.45 system-ui,
    -apple-system,
    'Segoe UI',
    'Apple SD Gothic Neo',
    'Noto Sans KR',
    sans-serif;
  color: var(--fg);
  background: var(--bg);
}
#map {
  position: fixed;
  inset: 0;
}
#panel {
  position: fixed;
  top: 12px;
  left: 12px;
  bottom: 12px;
  width: 380px;
  overflow-y: auto;
  background: var(--bg);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 720px) {
  #panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 62vh;
    border-radius: 16px 16px 0 0;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  }
}
h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
}
.seg.cities span {
  padding: 4px 8px;
  font-size: 13px;
}
.tagline {
  flex-basis: 100%;
}
.tagline {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.place {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.place input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--fg);
  font: inherit;
}
.place input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--line);
}
.dot.from {
  background: #0f766e;
}
.dot.to {
  background: #db2777;
}
button {
  font: inherit;
  cursor: pointer;
}
.icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font-size: 17px;
}
.suggest {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 20px;
  right: 46px;
  margin: 4px 0 0;
  padding: 4px;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.suggest:empty {
  display: none;
}
.suggest li {
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.suggest li small {
  display: block;
  color: var(--muted);
}
.suggest li:hover,
.suggest li[aria-selected='true'] {
  background: var(--soft);
}
.row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.seg {
  display: flex;
  background: var(--soft);
  border-radius: 10px;
  padding: 3px;
}
.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg span {
  display: block;
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--muted);
}
.seg input:checked + span {
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.seg input:focus-visible + span {
  outline: 2px solid var(--accent);
}
select {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--fg);
  font: inherit;
}
.slider {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}
.slider b {
  color: var(--fg);
}
.slider input {
  accent-color: var(--accent);
}
details {
  font-size: 13px;
  color: var(--muted);
}
summary {
  cursor: pointer;
}
.limit {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.limit input {
  width: 64px;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--fg);
  font: inherit;
}
.hint {
  margin: 6px 0 0;
}
.primary {
  padding: 11px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
}
.primary:disabled {
  opacity: 0.6;
  cursor: progress;
}
.link {
  background: none;
  border: 0;
  color: var(--accent);
  padding: 0;
  font-size: 13px;
  text-align: left;
}
#status:empty {
  display: none;
}
#status {
  font-size: 13px;
  color: var(--muted);
}
#status.error {
  color: var(--hot);
}
#weather {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 13px;
}
#weather .big {
  font-size: 22px;
  font-weight: 700;
}
#weather .sub {
  color: var(--muted);
}
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
}
.card + .card {
  margin-top: 8px;
}
.card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.card h2 {
  margin: 0;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card .swatch {
  width: 18px;
  height: 4px;
  border-radius: 2px;
  display: inline-block;
}
.card .time {
  font-size: 18px;
  font-weight: 700;
  text-align: right;
}
.card .meta {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
}
.card .meta b {
  color: var(--fg);
  font-weight: 600;
}
.verdict {
  margin: 10px 0 0;
  font-size: 14px;
}
.verdict.good {
  color: var(--accent);
}
ol.steps {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 13px;
}
ol.steps li {
  margin: 3px 0;
}
ol.steps small {
  color: var(--muted);
}
.feel {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.feel i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.seg.units span {
  padding: 2px 10px;
}
.probe {
  font:
    12px/1.4 system-ui,
    sans-serif;
  color: #0f172a;
}
.probe-head {
  font-size: 14px;
}
.probe-verdict {
  margin: 2px 0 6px;
  color: #475569;
}
.probe table {
  border-collapse: collapse;
}
.probe th {
  text-align: left;
  font-weight: 500;
  color: #475569;
  padding: 1px 8px 1px 0;
  vertical-align: top;
}
.probe td {
  padding: 1px 0;
}
.probe-note {
  margin-top: 6px;
  color: #64748b;
  font-size: 11px;
}
footer {
  margin-top: auto;
  font-size: 11px;
  color: var(--muted);
}
.overlay-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
.legend i {
  width: 14px;
  height: 6px;
  border-radius: 3px;
  display: inline-block;
  margin-left: 4px;
}
.credits {
  margin: 0;
}
.credits a {
  color: inherit;
}
.powered-by {
  margin: 6px 0 0;
}
.powered-by a {
  color: inherit;
  font-weight: 600;
}
.maplibregl-ctrl-attrib {
  font-size: 10px;
}
.models-toggle {
  display: block;
  margin-top: 10px;
}
.models-toggle small {
  display: block;
  margin-left: 22px;
  color: var(--muted);
}
