:root {
  font-family:
    -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei',
    sans-serif;
  color: #17384f;
  background: #f2f7fa;
  font-size: 18px;
  line-height: 1.65;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #163e5b;
  color: white;
  padding: 18px max(20px, calc((100vw - 820px) /2));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}
a {
  color: inherit;
}
header a {
  text-decoration: none;
}
main {
  max-width: 820px;
  margin: auto;
  padding: 35px 24px;
}
.heading {
  margin-bottom: 30px;
}
.heading > p:first-child,
.kicker {
  color: #467b9d;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
}
h1 {
  font-size: 34px;
  line-height: 1.3;
  margin: 12px 0;
}
h2 {
  font-size: 25px;
  line-height: 1.4;
  margin: 10px 0;
}
p {
  margin: 12px 0;
}
#connection {
  font-size: 14px;
  color: #49715a;
}
select,
button,
.button {
  font: inherit;
  min-height: 58px;
  border-radius: 12px;
  border: 1px solid #bfd1dd;
  padding: 12px 18px;
  background: white;
  color: #17384f;
  cursor: pointer;
}
select {
  display: block;
  width: 100%;
  margin: 10px 0 22px;
  font-size: 18px;
}
label {
  font-weight: 650;
}
#count {
  font-weight: 400;
  color: #6a7f8e;
  font-size: 14px;
}
article,
.run-result,
#empty {
  background: white;
  border: 1px solid #d4e2ec;
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 22px;
}
.terrain {
  font-size: 16px;
  color: #677f90;
}
.focus {
  background: #e7f3fa;
  border-left: 4px solid #4285b7;
  padding: 20px;
  border-radius: 8px;
  margin: 28px 0;
}
.focus span {
  display: block;
  font-size: 14px;
  color: #648194;
}
.focus strong {
  font-size: 25px;
  line-height: 1.5;
  display: block;
  margin-top: 8px;
}
.step-head {
  display: flex;
  justify-content: space-between;
  color: #608096;
  font-size: 13px;
}
.step {
  font-size: 23px;
  min-height: 104px;
  margin: 18px 0;
}
.step-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.step-buttons button:last-child,
#save-run,
.button {
  background: #246ca3;
  color: white;
  border-color: #246ca3;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid #eda963;
  outline-offset: 3px;
}
details {
  margin-top: 25px;
  border-top: 1px solid #dfebf2;
  padding-top: 20px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details p {
  color: #5a7283;
}
.run-result > p {
  color: #648092;
  font-size: 16px;
}
.result-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.result-options button {
  flex: 1;
  font-size: 16px;
}
.result-options button[aria-pressed='true'] {
  background: #e3f0f8;
  border-color: #397fae;
  box-shadow: 0 0 0 1px #397fae;
}
#save-run {
  width: 100%;
}
#saved {
  color: #327651;
  font-weight: 600;
  font-size: 17px;
  min-height: 26px;
}
#total {
  font-size: 14px;
}
footer {
  color: #79909f;
  font-size: 13px;
  line-height: 1.8;
  margin-top: 35px;
}
.button {
  display: inline-block;
  text-decoration: none;
  margin-top: 15px;
}
[hidden] {
  display: none !important;
}
.snow-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  font-size: 16px;
  font-weight: 450;
}
.snow-check input {
  width: 24px;
  height: 24px;
  accent-color: #246ca3;
}
#run-conditions,
#run-observation {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 15px;
  min-height: 58px;
  border: 1px solid #bfd1dd;
  border-radius: 10px;
  margin: 10px 0 20px;
  font: inherit;
}
#run-observation {
  min-height: 110px;
}
#next-advice {
  color: #765934;
  padding: 12px 0;
}
@media (max-width: 560px) {
  header {
    padding: 16px 18px;
    font-size: 12px;
  }
  main {
    padding: 28px 16px;
  }
  h1 {
    font-size: 28px;
  }
  article,
  .run-result,
  #empty {
    padding: 22px 18px;
  }
  .focus {
    padding: 18px;
  }
  .focus strong {
    font-size: 23px;
  }
  .step {
    font-size: 21px;
    min-height: 136px;
  }
  .result-options {
    gap: 8px;
  }
  .result-options button {
    padding: 10px 8px;
    font-size: 15px;
  }
}
