:root {
  color-scheme: light;
  --ink: #4a2d16;
  --muted: #755f4c;
  --line: #f1c94d;
  --paper: #fffaf0;
  --panel: #fffdf6;
  --butter: #ffd94d;
  --peach: #ff956f;
  --coral: #ff5959;
  --leaf: #78c45a;
  --sky: #5aa7f2;
  --brown: #8d5619;
  --cream: #fff4cf;
  --gray: #b9b4aa;
  --amber: #ffc94b;
  --clay: #ef6b4f;
  --grass: #69b553;
  --shadow: 0 18px 34px rgba(141, 86, 25, 0.12);
}

* {
  box-sizing: border-box;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

html,
body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  touch-action: pan-y;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(90, 167, 242, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 201, 75, 0.12) 1px, transparent 1px),
    linear-gradient(120deg, rgba(255, 250, 240, 0.95), rgba(255, 255, 255, 0.78) 46%, rgba(255, 244, 207, 0.74)),
    var(--paper);
  background-size:
    42px 42px,
    42px 42px,
    auto;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(326px, 420px) minmax(0, 1fr);
  gap: 18px;
  width: min(1180px, calc(100% - 28px));
  max-width: 100%;
  min-height: calc(100vh - 48px);
  margin: 24px auto;
  overflow: hidden;
}

.control-panel,
.result-panel {
  min-width: 0;
  max-width: 100%;
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 253, 246, 0.96)),
    var(--panel);
  box-shadow: var(--shadow);
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px;
}

.result-panel {
  position: relative;
  min-height: 590px;
  overflow: hidden;
}

.result-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(241, 201, 77, 0.14) 1px, transparent 1px),
    linear-gradient(0deg, rgba(241, 201, 77, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.48), transparent 78%);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand > div:last-child {
  min-width: 0;
  flex: 1;
}

.brand-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 3px solid var(--brown);
  border-radius: 50%;
  background: var(--butter);
  box-shadow: inset 0 0 0 4px rgba(255, 253, 246, 0.76);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.eyebrow {
  max-width: none;
  margin: 0 0 4px;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: none;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--brown);
  text-shadow: 1px 1px 0 rgba(255, 217, 77, 0.35);
}

.forecast-form {
  display: grid;
  gap: 18px;
}

.setting-group {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 2px dashed rgba(241, 201, 77, 0.82);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.58);
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.location-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.location-controls {
  display: grid;
  gap: 8px;
}

input,
select {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  height: 48px;
  border: 2px solid rgba(90, 167, 242, 0.62);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.74);
  font-weight: 750;
}

input:focus,
select:focus {
  border-color: var(--sky);
  box-shadow:
    0 0 0 3px rgba(90, 167, 242, 0.2),
    inset 0 0 0 2px rgba(255, 255, 255, 0.76);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.choice-field {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-field legend {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.image-choice-grid {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.dog-type-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.image-choice {
  min-width: 0;
  cursor: pointer;
}

.image-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.image-choice > span {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 8px;
  border: 2px dashed rgba(241, 201, 77, 0.92);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.88);
  box-shadow: 0 3px 0 rgba(141, 86, 25, 0.08);
  color: var(--ink);
  text-align: center;
}

.image-choice img {
  width: 100%;
  height: 76px;
  object-fit: contain;
}

.image-choice strong {
  display: block;
  align-self: end;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.2;
}

.image-choice input:checked + span {
  border-color: var(--coral);
  background: rgba(255, 241, 235, 0.96);
  box-shadow:
    0 0 0 3px rgba(255, 89, 89, 0.12),
    0 4px 0 rgba(141, 86, 25, 0.12);
}

.image-choice input:focus-visible + span {
  outline: 3px solid rgba(90, 167, 242, 0.35);
  outline-offset: 2px;
}

.geo-button,
.primary-button {
  border: 2px solid currentColor;
  border-radius: 8px;
  color: #fffdf6;
  background: var(--coral);
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(141, 86, 25, 0.22);
}

.geo-button {
  min-height: 48px;
  width: 100%;
  padding: 0 14px;
  background: var(--sky);
  font-weight: 900;
}

.primary-button {
  min-height: 54px;
  padding: 0 18px;
  border-color: rgba(255, 253, 246, 0.9);
  font-weight: 850;
  font-size: 18px;
}

.primary-button:hover,
.geo-button:hover {
  filter: saturate(1.06) brightness(1.02);
  transform: translateY(-1px);
}

.note {
  margin: auto 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  border-top: 1px dashed rgba(241, 201, 77, 0.9);
  padding-top: 14px;
}

.status {
  position: relative;
  display: grid;
  min-height: 590px;
  place-items: center;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.status.error {
  color: #b83e32;
}

.result {
  position: relative;
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  padding: 28px;
}

.hidden {
  display: none;
}

.hero-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
  padding: 18px;
  border: 2px dashed rgba(241, 201, 77, 0.92);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.78);
}

.hero-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(241, 201, 77, 0.86);
}

.result-meta p {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.result-meta span {
  flex: 0 0 auto;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 900;
}

.result-meta strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.headline {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--brown);
}

.action {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.6;
}

.walk-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-width: 0;
  border-radius: 8px;
  text-align: center;
}

.score-card {
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 2px dashed rgba(241, 201, 77, 0.92);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.72), transparent 25%),
    rgba(255, 244, 207, 0.94);
  color: var(--brown);
  box-shadow:
    0 5px 0 rgba(141, 86, 25, 0.12),
    inset 0 0 0 5px rgba(255, 253, 246, 0.76);
}

.hero-result.caution .score-card {
  border-color: rgba(255, 201, 75, 0.96);
  background: rgba(255, 248, 220, 0.96);
  color: #3f2d0b;
}

.hero-result.stop .score-card {
  border-color: rgba(255, 89, 89, 0.74);
  background: rgba(255, 241, 235, 0.98);
  color: #9b3d26;
}

.score-card p {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin: 0;
}

.score-card strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.score-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.score-card span {
  display: block;
  font-size: 10px;
  font-weight: 850;
}

.main-condition {
  position: relative;
  display: grid;
  grid-template-rows: minmax(clamp(240px, 34vw, 440px), 1fr) auto;
  min-width: 0;
  overflow: hidden;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.92);
  box-shadow: 0 4px 0 rgba(141, 86, 25, 0.12);
  text-align: left;
}

.main-condition img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(240px, 34vw, 440px);
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.58);
  border-bottom: 2px dashed rgba(241, 201, 77, 0.9);
}

.main-condition div {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.main-condition span {
  color: var(--brown);
  font-size: 12px;
  font-weight: 850;
}

.main-condition strong {
  overflow-wrap: anywhere;
  font-size: 21px;
  line-height: 1.05;
  color: var(--ink);
}

.main-condition p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.main-condition.caution {
  border-color: rgba(255, 201, 75, 0.96);
  background: rgba(255, 248, 220, 0.96);
}

.main-condition.danger {
  border-color: rgba(255, 89, 89, 0.74);
  background: rgba(255, 241, 235, 0.98);
}

.main-condition.danger strong,
.main-condition.danger p {
  color: #9b3d26;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.metric,
.recommendation,
.timeline,
.alert-box {
  min-width: 0;
  max-width: 100%;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.86);
}

.metric {
  min-width: 0;
  padding: 14px;
  box-shadow: 0 3px 0 rgba(141, 86, 25, 0.08);
}

.weather-metric {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.weather-value {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.weather-metric img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.metric span {
  display: block;
  color: var(--brown);
  font-size: 12px;
  font-weight: 850;
}

.metric:nth-child(2) {
  border-color: rgba(255, 149, 111, 0.7);
}

.metric:nth-child(3) {
  border-color: rgba(90, 167, 242, 0.72);
}

.metric:nth-child(4) {
  border-color: rgba(120, 196, 90, 0.72);
}

.metric:nth-child(2) span {
  color: var(--peach);
}

.metric:nth-child(3) span {
  color: var(--sky);
}

.metric:nth-child(4) span {
  color: var(--leaf);
}

.metric strong {
  display: block;
  min-width: 0;
  margin-top: 6px;
  overflow-wrap: anywhere;
  font-size: 24px;
  line-height: 1.15;
  color: var(--ink);
}

.recommendation {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.rec-block {
  padding: 18px;
}

.rec-block + .rec-block {
  border-left: 2px dashed var(--line);
  background: rgba(255, 244, 207, 0.48);
  letter-spacing: 1.5em;
}

h2 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: 0;
  color: var(--brown);
}

ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.55;
  letter-spacing: 0.15rem;
}

li::before {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  background: url("./assets/paw-logo.png") center / contain no-repeat;
  content: "";
}

.alert-box {
  padding: 16px 18px;
  border-color: rgba(255, 89, 89, 0.54);
  background: rgba(255, 241, 235, 0.9);
  color: #9b3d26;
  font-weight: 750;
  line-height: 1.6;
}

.timeline {
  min-width: 0;
  max-width: 100%;
  padding: 18px;
}

.timeline-note {
  margin: -6px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}

.hour-row {
  display: grid;
  grid-template-columns: 54px 30px minmax(88px, 1fr) 68px minmax(70px, 0.45fr) 92px;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px dashed rgba(241, 201, 77, 0.92);
  color: var(--muted);
  font-size: 14px;
}

.hour-row:first-of-type {
  border-top: 0;
}

.timeline-weather {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 244, 207, 0.86);
  border: 1px solid rgba(241, 201, 77, 0.7);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grass);
}

.hour-row.caution .bar span {
  background: var(--amber);
}

.hour-row.stop .bar span {
  background: var(--clay);
}

.score,
.walk-tip {
  color: var(--ink);
  font-weight: 850;
  line-height: 1.35;
}

.score small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.policy-shell {
  width: min(900px, calc(100% - 28px));
  max-width: 100%;
  margin: 24px auto;
}

.policy-card {
  display: grid;
  gap: 24px;
  padding: 28px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 253, 246, 0.98)),
    var(--panel);
  box-shadow: var(--shadow);
}

.policy-brand {
  padding-bottom: 18px;
  border-bottom: 2px dashed rgba(241, 201, 77, 0.9);
}

.policy-content {
  display: grid;
  gap: 18px;
}

.policy-content p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.9;
}

.policy-content h2 {
  margin: 12px 0 -8px;
  font-size: 20px;
}

.policy-content a,
.text-link,
.back-link {
  color: var(--brown);
  font-weight: 900;
  text-decoration-color: rgba(141, 86, 25, 0.35);
  text-underline-offset: 4px;
}

.policy-content a:hover,
.text-link:hover,
.back-link:hover {
  color: var(--coral);
}

.back-link {
  justify-self: start;
}

.policy-date {
  padding-top: 12px;
  border-top: 1px dashed rgba(241, 201, 77, 0.82);
}

.site-footer {
  display: grid;
  width: min(1180px, calc(100% - 28px));
  max-width: 100%;
  margin: -10px auto 24px;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.6;
  text-align: center;
}

.site-footer p {
  margin: 0;
  max-width: 680px;
}

.creator-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--brown);
  text-decoration: none;
  font-weight: 900;
}

.creator-link span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--brown);
  border-radius: 50%;
  background: rgba(255, 253, 246, 0.92);
  box-shadow: 0 3px 0 rgba(141, 86, 25, 0.12);
  font-size: 14px;
  line-height: 1;
}

.creator-link:hover {
  color: var(--coral);
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .control-panel,
  .result-panel {
    border-radius: 0;
    min-height: auto;
  }

  .status {
    min-height: 280px;
  }

  .hero-result,
  .recommendation {
    grid-template-columns: 1fr;
  }

  .walk-score {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .score-card {
    width: 108px;
    height: 108px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rec-block + .rec-block {
    border-top: 2px dashed var(--line);
    border-left: 0;
  }

  .hour-row {
    grid-template-columns: 46px 28px 58px minmax(0, 1fr);
    gap: 7px;
  }

  .hour-row .bar {
    display: none;
  }

  .walk-tip,
  .rain {
    min-width: 0;
    font-size: 13px;
    white-space: nowrap;
  }

  .rain::before {
    content: "/";
    margin: 0 5px 0 2px;
    color: var(--muted);
  }

  .site-footer {
    width: 100%;
    margin: 0;
    padding: 16px 18px 22px;
    background: rgba(255, 253, 246, 0.92);
  }
}

@media (max-width: 480px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  body {
    background-size:
      34px 34px,
      34px 34px,
      auto;
  }

  .app-shell {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: clip;
  }

  .control-panel,
  .result-panel,
  .result {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .control-panel,
  .result {
    padding: 14px;
  }

  .control-panel {
    gap: 14px;
  }

  .note {
    display: none;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    border-width: 2px;
  }

  .brand-mark img {
    width: 40px;
    height: 40px;
  }

  .eyebrow {
    font-size: 11px;
  }

  h1 {
    font-size: 29px;
  }

  .forecast-form {
    gap: 12px;
  }

  .setting-group {
    gap: 10px;
    padding: 10px;
  }

  .field,
  .choice-field legend {
    gap: 6px;
    font-size: 13px;
  }

  .choice-field {
    gap: 6px;
  }

  .choice-field legend {
    margin-bottom: 4px;
  }

  input,
  select {
    min-height: 42px;
    height: 42px;
  }

  .geo-button {
    min-height: 42px;
  }

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

  .metric {
    padding: 11px 12px;
  }

  .weather-metric {
    gap: 4px;
  }

  .weather-metric img {
    width: 36px;
    height: 36px;
  }

  .weather-value {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 6px;
  }

  .metric strong {
    margin-top: 4px;
    font-size: 22px;
  }

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

  .dog-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

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

  .image-choice > span {
    min-height: 78px;
    padding: 5px;
    gap: 4px;
  }

  .image-choice img {
    height: 42px;
  }

  .image-choice strong {
    font-size: 11px;
    line-height: 1.15;
  }

  .primary-button {
    min-height: 48px;
    font-size: 17px;
  }

  .walk-score {
    grid-template-columns: 1fr;
  }

  .score-card {
    width: 88px;
    height: 88px;
  }

  .score-card p {
    gap: 4px;
  }

  .score-card strong {
    font-size: 24px;
    margin-right: -4px;
  }

  .score-card em {
    font-size: 10px;
  }

  .score-card span {
    font-size: 9px;
  }

  .hero-heading {
    gap: 10px;
  }

  .main-condition {
    grid-template-columns: 42% 1fr;
    grid-template-rows: auto;
  }

  .main-condition img {
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-right: 2px dashed var(--line);
    border-bottom: 0;
  }

  .headline {
    font-size: 30px;
  }

  .site-footer {
    gap: 12px;
    padding: 16px 14px 24px;
  }

  .creator-link {
    justify-self: center;
  }
}

@media (max-width: 390px) {
  .brand {
    align-items: flex-start;
  }

  h1 {
    font-size: 26px;
  }

  .hero-heading {
    grid-template-columns: 1fr;
  }

  .policy-shell {
    width: 100%;
    margin: 0;
  }

  .policy-card {
    padding: 18px 14px;
    border-radius: 0;
  }
}
