:root {
  --paper: #f4efe3;
  --paper-strong: #e9e1d0;
  --ink: #163431;
  --ink-soft: #49635f;
  --cream: #fffaf0;
  --lime: #d9f36d;
  --lime-deep: #b8da35;
  --coral: #ff795b;
  --sky: #9ddbeb;
  --sky-deep: #63bcd5;
  --violet: #b7a9e8;
  --yellow: #ffd66b;
  --line: rgba(22, 52, 49, 0.15);
  --shadow: 0 24px 70px rgba(35, 55, 48, 0.13);
  --shadow-small: 0 12px 30px rgba(35, 55, 48, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1240px;
  --header-font: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body-font:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body-font);
  line-height: 1.5;
  transition: background-color 400ms ease;
}

body[data-weather="rain"] {
  --sky: #b8cfdf;
  --sky-deep: #789cb4;
  --yellow: #f0cc77;
}

body[data-weather="snow"] {
  --paper: #edf2ef;
  --paper-strong: #dce7e4;
  --sky: #d9e8f0;
  --lime: #ccebf1;
}

body[data-weather="storm"] {
  --paper: #dedbd5;
  --paper-strong: #c7c5c2;
  --sky: #9ea6ba;
  --lime: #e5e873;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

[hidden] {
  display: none !important;
}

.page-noise {
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

.sky-orb {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.36;
  pointer-events: none;
}

.sky-orb--one {
  top: -210px;
  right: -100px;
  background: var(--sky);
}

.sky-orb--two {
  top: 55vh;
  left: -290px;
  background: var(--lime);
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 26px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--header-font);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand__mark {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
}

.brand__sun {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}

.brand__cloud {
  position: absolute;
  bottom: 8px;
  left: 7px;
  width: 23px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--sky);
}

.brand__cloud::before {
  position: absolute;
  top: -8px;
  left: 4px;
  width: 12px;
  height: 12px;
  content: "";
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  background: var(--sky);
}

.api-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 250, 240, 0.62);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.api-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 214, 107, 0.2);
}

.api-status.is-ready .api-status__dot {
  background: #59b96b;
  box-shadow: 0 0 0 4px rgba(89, 185, 107, 0.18);
}

.api-status.is-error .api-status__dot {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 121, 91, 0.18);
}

main {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: clamp(42px, 7vw, 105px);
  align-items: center;
  min-height: 630px;
  padding: 52px 0 86px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: var(--ink-soft);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--header-font);
  font-size: clamp(54px, 7.6vw, 106px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.075em;
}

.hero h1 span {
  position: relative;
  display: inline-block;
  color: var(--ink);
}

.hero h1 span::after {
  position: absolute;
  z-index: -1;
  right: -4px;
  bottom: -6px;
  left: 7px;
  height: 18px;
  content: "";
  border-radius: 50%;
  background: var(--lime);
  transform: rotate(-2deg);
}

.hero__lead {
  max-width: 680px;
  margin: 28px 0 32px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.58;
}

.location-panel {
  max-width: 720px;
}

.search {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 62px;
  padding: 6px 7px 6px 18px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 6px 6px 0 var(--ink);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.search:focus-within {
  box-shadow: 8px 8px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.search__icon {
  width: 22px;
  height: 22px;
  margin-right: 11px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search input {
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
  font-weight: 650;
}

.search input::placeholder {
  color: #80918e;
}

.search > button {
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: var(--lime);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.search > button:hover {
  background: var(--lime-deep);
}

.search-results {
  position: absolute;
  z-index: 40;
  top: calc(100% + 12px);
  right: 0;
  left: 0;
  overflow: hidden;
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 8px 8px 0 var(--ink);
}

.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 13px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.search-result:hover,
.search-result.is-active {
  background: rgba(217, 243, 109, 0.48);
}

.search-result strong {
  display: block;
  font-size: 14px;
}

.search-result small {
  color: var(--ink-soft);
  font-size: 12px;
}

.search-result span:last-child {
  font-size: 19px;
}

.search-empty {
  margin: 0;
  padding: 14px;
  color: var(--ink-soft);
  font-size: 13px;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 20px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.text-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.text-button:hover {
  color: var(--ink);
}

.hero__visual {
  position: relative;
  min-height: 490px;
  isolation: isolate;
}

.weather-blob {
  position: absolute;
  z-index: 1;
  top: 42px;
  right: 12px;
  width: min(92%, 430px);
  aspect-ratio: 0.88;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 46% 54% 52% 48% / 38% 45% 55% 62%;
  background: var(--sky);
  box-shadow: 13px 13px 0 var(--ink);
  transform: rotate(2deg);
}

.weather-blob::after {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 230px;
  height: 230px;
  content: "";
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
}

.weather-blob__sun {
  position: absolute;
  top: 74px;
  right: 58px;
  width: 112px;
  height: 112px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 13px rgba(255, 214, 107, 0.22);
}

.weather-blob__cloud {
  position: absolute;
  z-index: 2;
  width: 160px;
  height: 60px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
}

.weather-blob__cloud::before,
.weather-blob__cloud::after {
  position: absolute;
  content: "";
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  background: var(--cream);
}

.weather-blob__cloud::before {
  top: -53px;
  left: 34px;
  width: 78px;
  height: 61px;
}

.weather-blob__cloud::after {
  top: -32px;
  right: 17px;
  width: 50px;
  height: 39px;
}

.weather-blob__cloud--one {
  top: 200px;
  left: 40px;
}

.weather-blob__cloud--two {
  top: 304px;
  right: 46px;
  width: 112px;
  height: 44px;
  transform: scale(0.8);
}

.weather-stamp {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 0;
  max-width: 220px;
  padding: 15px 18px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--cream);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-4deg);
}

.weather-stamp__label {
  display: block;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.weather-stamp strong {
  display: block;
  margin-top: 3px;
  font-family: var(--header-font);
  font-size: 18px;
  line-height: 1.18;
}

.wardrobe-orbit {
  position: absolute;
  z-index: 6;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: 6px 6px 0 var(--ink);
}

.wardrobe-orbit svg {
  width: 68%;
  height: 68%;
  color: var(--ink);
  fill: none;
  stroke: currentColor;
}

.wardrobe-orbit--front {
  right: 18px;
  bottom: 16px;
  width: 150px;
  height: 150px;
  border-radius: 42px;
  color: var(--coral);
  background: #ffb6a5;
  transform: rotate(7deg);
}

.wardrobe-orbit--back {
  bottom: 48px;
  left: 5px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--yellow);
  transform: rotate(-8deg);
}

.wardrobe-orbit--small {
  top: 126px;
  left: -22px;
  width: 90px;
  height: 90px;
  border-radius: 25px;
  background: var(--violet);
  transform: rotate(8deg);
}

.hero-note {
  position: absolute;
  z-index: 7;
  right: 82px;
  bottom: -12px;
  max-width: 220px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.planner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 0.75fr);
  gap: 24px;
  align-items: start;
  padding: 36px 0 64px;
}

.outfit-card {
  min-height: 590px;
  padding: clamp(24px, 4vw, 48px);
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  background: var(--cream);
  box-shadow: 10px 10px 0 var(--ink);
}

.outfit-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.outfit-card__header h2,
.control-card h2,
.section-heading h2 {
  margin: 0;
  font-family: var(--header-font);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.range-badge {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  font-size: 12px;
  font-weight: 850;
}

.loading-state {
  display: grid;
  place-items: center;
  min-height: 390px;
  color: var(--ink-soft);
  text-align: center;
}

.loading-state p {
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 750;
}

.hanger-loader {
  position: relative;
  display: block;
  width: 70px;
  height: 46px;
  border-bottom: 3px solid var(--ink);
  animation: hanger 1.4s ease-in-out infinite;
}

.hanger-loader::before {
  position: absolute;
  top: 12px;
  left: 9px;
  width: 49px;
  height: 33px;
  content: "";
  border: 3px solid var(--ink);
  border-bottom: 0;
  transform: rotate(45deg) skew(-5deg, -5deg);
}

.hanger-loader::after {
  position: absolute;
  top: -2px;
  left: 30px;
  width: 13px;
  height: 17px;
  content: "";
  border: 3px solid var(--ink);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

@keyframes hanger {
  0%,
  100% {
    transform: rotate(-3deg) translateY(0);
  }
  50% {
    transform: rotate(3deg) translateY(-7px);
  }
}

.outfit-content {
  padding-top: 30px;
}

.outfit-intro {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.3fr);
  column-gap: 30px;
  align-items: end;
  margin-bottom: 30px;
}

.outfit-intro__label {
  grid-column: 1;
  margin: 0 0 5px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.outfit-intro h3 {
  grid-column: 1;
  margin: 0;
  font-family: var(--header-font);
  font-size: clamp(26px, 3.5vw, 45px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.outfit-intro > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

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

.clothing-item {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  padding: 18px 16px 15px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--item-bg, var(--paper));
}

.clothing-item:nth-child(4n + 1) {
  --item-bg: #d9f36d;
}

.clothing-item:nth-child(4n + 2) {
  --item-bg: #bfe8f1;
}

.clothing-item:nth-child(4n + 3) {
  --item-bg: #f9c4b7;
}

.clothing-item:nth-child(4n + 4) {
  --item-bg: #d7cff4;
}

.clothing-item__tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 7px;
  border: 1px solid rgba(22, 52, 49, 0.45);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.55);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.clothing-item svg {
  width: 78px;
  height: 78px;
  margin: 2px auto 10px;
  color: var(--ink);
  fill: none;
  stroke: currentColor;
}

.clothing-item strong {
  display: block;
  font-family: var(--header-font);
  font-size: 15px;
  line-height: 1.12;
  text-align: center;
}

.clothing-item small {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.carry-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 17px;
  align-items: center;
  margin-top: 18px;
  padding: 17px 20px;
  border: 1px dashed var(--ink);
  border-radius: var(--radius-md);
  background: rgba(217, 243, 109, 0.2);
}

.carry-card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--ink);
  border-radius: 17px;
  background: var(--lime);
}

.carry-card__icon svg {
  width: 39px;
  height: 39px;
  fill: none;
  stroke: currentColor;
}

.carry-card p {
  margin: 0;
}

.carry-card__label {
  margin-bottom: 3px !important;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

#carryText {
  font-size: 13px;
  font-weight: 750;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.insight {
  min-height: 130px;
  padding: 17px;
  border-top: 1px solid var(--ink);
  background: rgba(244, 239, 227, 0.42);
}

.insight__icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--sky);
  font-size: 15px;
}

.insight strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.insight p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
}

.raw-details {
  margin-top: 25px;
  border-top: 1px solid var(--line);
}

.raw-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0 0;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.raw-details summary::-webkit-details-marker {
  display: none;
}

.raw-details__plus {
  position: relative;
  width: 22px;
  height: 22px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.raw-details__plus::before,
.raw-details__plus::after {
  position: absolute;
  top: 10px;
  left: 5px;
  width: 10px;
  height: 1px;
  content: "";
  background: var(--ink);
}

.raw-details__plus::after {
  transform: rotate(90deg);
  transition: transform 160ms ease;
}

.raw-details[open] .raw-details__plus::after {
  transform: rotate(0);
}

.raw-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 15px;
}

.raw-stat {
  padding: 12px;
  border-radius: 12px;
  background: var(--paper);
}

.raw-stat span {
  display: block;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.raw-stat strong {
  display: block;
  margin-top: 3px;
  font-family: var(--header-font);
  font-size: 17px;
}

.error-state {
  min-height: 390px;
  padding: 80px 15px;
  text-align: center;
}

.error-state__eyebrow {
  color: var(--coral);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.error-state h3 {
  margin: 8px 0;
  font-family: var(--header-font);
  font-size: 30px;
}

.error-state p {
  color: var(--ink-soft);
}

.controls {
  display: grid;
  gap: 24px;
}

.control-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--sky);
  box-shadow: 7px 7px 0 var(--ink);
}

.control-card--accent {
  background: var(--lime);
}

.control-card__number {
  position: absolute;
  top: 16px;
  right: 20px;
  color: rgba(22, 52, 49, 0.22);
  font-family: var(--header-font);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.control-card__heading {
  position: relative;
  z-index: 1;
  padding-right: 48px;
}

.control-card__heading h2 {
  max-width: 230px;
  font-size: 27px;
}

.time-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  gap: 8px;
  align-items: end;
  margin-top: 28px;
}

.time-row label span {
  display: block;
  margin-bottom: 7px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.time-row input {
  width: 100%;
  height: 51px;
  padding: 0 10px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.82);
  font-family: var(--header-font);
  font-size: 17px;
  font-weight: 800;
}

.time-row input:focus {
  box-shadow: 0 0 0 3px rgba(22, 52, 49, 0.17);
}

.time-row__line {
  height: 1px;
  margin-bottom: 25px;
  background: var(--ink);
}

.control-hint {
  min-height: 34px;
  margin: 12px 0 0;
  color: rgba(22, 52, 49, 0.68);
  font-size: 10px;
  line-height: 1.45;
}

.quick-times {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}

.quick-times button {
  flex: 1;
  height: 35px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.45);
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.quick-times button:hover {
  background: var(--cream);
}

.tolerance-output {
  margin-top: 27px;
}

.tolerance-output strong {
  display: block;
  font-family: var(--header-font);
  font-size: 21px;
}

.tolerance-output span {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 11px;
}

.tolerance-range {
  width: 100%;
  height: 24px;
  margin: 21px 0 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.tolerance-range::-webkit-slider-runnable-track {
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--sky-deep),
    var(--cream) 48%,
    var(--coral)
  );
}

.tolerance-range::-moz-range-track {
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--sky-deep),
    var(--cream) 48%,
    var(--coral)
  );
}

.tolerance-range::-webkit-slider-thumb {
  width: 25px;
  height: 25px;
  margin-top: -9px;
  appearance: none;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 2px 2px 0 var(--ink);
}

.tolerance-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 2px 2px 0 var(--ink);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: rgba(22, 52, 49, 0.72);
  font-size: 9px;
  font-weight: 800;
}

.control-card--forecast {
  overflow: visible;
  background: var(--cream);
}

.forecast-peek__headline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.forecast-peek__headline strong {
  font-family: var(--header-font);
  font-size: 18px;
}

.forecast-peek__headline span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
  text-align: right;
}

.forecast-peek__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: stretch;
  margin-top: 13px;
}

.forecast-peek__hours {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
}

.forecast-hour {
  min-width: 0;
  padding: 13px 11px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 17px;
  background: var(--sky);
  box-shadow: 3px 3px 0 var(--ink);
}

.forecast-hour:nth-child(2) {
  background: var(--violet);
}

.forecast-hour.is-wet {
  background: #b7dff0;
}

.forecast-hour.is-windy {
  box-shadow: 3px 3px 0 var(--coral);
}

.forecast-hour__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.forecast-hour time {
  font-family: var(--header-font);
  font-size: 14px;
  font-weight: 900;
}

.forecast-hour__emoji {
  font-size: 20px;
  line-height: 1;
}

.forecast-hour__temperature {
  display: block;
  margin-top: 11px;
  font-family: var(--header-font);
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.forecast-hour__caption {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.forecast-hour__metrics {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid rgba(22, 52, 49, 0.24);
}

.forecast-hour__metric {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
}

.forecast-hour__metric b {
  flex: 0 0 auto;
  font-size: 11px;
}

.forecast-hour__metric span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hour-scrubber {
  display: flex;
  min-width: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 3px;
}

.hour-scrubber > span,
.day-scrubber__label label {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hour-scrubber input {
  width: 118px;
  height: 22px;
  margin: 53px -37px;
  appearance: none;
  transform: rotate(-90deg);
  background: transparent;
  cursor: ns-resize;
}

.hour-scrubber input::-webkit-slider-runnable-track,
.day-scrubber input::-webkit-slider-runnable-track {
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.hour-scrubber input::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, var(--sky-deep), var(--coral));
}

.hour-scrubber input::-moz-range-track,
.day-scrubber input::-moz-range-track {
  height: 7px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.hour-scrubber input::-moz-range-track {
  background: linear-gradient(90deg, var(--sky-deep), var(--coral));
}

.hour-scrubber input::-webkit-slider-thumb,
.day-scrubber input::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7px;
  appearance: none;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 1px 1px 0 var(--ink);
}

.hour-scrubber input::-moz-range-thumb,
.day-scrubber input::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 1px 1px 0 var(--ink);
}

.hour-scrubber output {
  min-width: 40px;
  padding: 4px 6px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  font-family: var(--header-font);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.day-scrubber {
  margin-top: 19px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.day-scrubber__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.day-scrubber__label output {
  font-family: var(--header-font);
  font-size: 12px;
  font-weight: 900;
}

.day-scrubber input {
  width: 100%;
  height: 22px;
  margin-top: 9px;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
}

.day-scrubber input::-webkit-slider-runnable-track {
  background: linear-gradient(
    90deg,
    var(--lime),
    var(--sky-deep),
    var(--violet)
  );
}

.day-scrubber input::-moz-range-track {
  background: linear-gradient(
    90deg,
    var(--lime),
    var(--sky-deep),
    var(--violet)
  );
}

.day-scrubber__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 750;
}

.timeline-section {
  padding: 68px 0 86px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.section-heading > p {
  max-width: 460px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: 8px 8px 0 var(--ink);
}

.timeline-item {
  position: relative;
  min-height: 190px;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
}

.timeline-item:last-child {
  border-right: 0;
}

.timeline-item.is-key {
  background: rgba(217, 243, 109, 0.32);
}

.timeline-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timeline-item time {
  font-family: var(--header-font);
  font-size: 19px;
  font-weight: 850;
}

.timeline-item__emoji {
  font-size: 24px;
  filter: saturate(0.9);
}

.timeline-item__trend {
  display: inline-block;
  margin-top: 24px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-item strong {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.35;
}

.timeline-item p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.42;
}

.timeline-empty {
  grid-column: 1 / -1;
  padding: 42px;
  color: var(--ink-soft);
  text-align: center;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 42px 0 50px;
  border-top: 1px solid var(--line);
}

.brand--footer {
  margin-bottom: 13px;
}

.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.footer-meta {
  max-width: 520px;
  text-align: right;
}

.footer-meta p + p {
  margin-top: 5px;
}

.footer-meta a {
  font-weight: 800;
}

.welcome {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.welcome.is-closing {
  pointer-events: none;
  animation: fade-out 220ms ease forwards;
}

.welcome__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 52, 49, 0.58);
  backdrop-filter: blur(10px);
}

.welcome__card {
  position: relative;
  width: min(100%, 520px);
  padding: 38px;
  border: 2px solid var(--ink);
  border-radius: 30px;
  background: var(--cream);
  box-shadow: 13px 13px 0 var(--ink);
  animation: card-in 350ms cubic-bezier(0.2, 0.9, 0.25, 1.15);
}

.welcome__close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.welcome__close span {
  position: absolute;
  top: 15px;
  left: 8px;
  width: 16px;
  height: 1px;
  background: var(--ink);
  transform: rotate(45deg);
}

.welcome__close span:last-child {
  transform: rotate(-45deg);
}

.welcome__illustration {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  margin-bottom: 25px;
  border: 2px solid var(--ink);
  border-radius: 27px;
  background: var(--lime);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-4deg);
}

.welcome__illustration svg {
  width: 70px;
  height: 70px;
  fill: none;
  stroke: currentColor;
}

.welcome h2 {
  max-width: 390px;
  margin: 0;
  font-family: var(--header-font);
  font-size: clamp(32px, 7vw, 47px);
  line-height: 0.97;
  letter-spacing: -0.055em;
}

.welcome h2 + p {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.62;
}

.welcome__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 25px;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 0 17px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.primary-button {
  background: var(--lime);
  box-shadow: 3px 3px 0 var(--ink);
}

.primary-button:hover {
  background: var(--lime-deep);
}

.secondary-button {
  background: var(--cream);
}

.secondary-button:hover {
  background: var(--paper);
}

.welcome__privacy {
  margin: 16px 0 0;
  color: #7c8e89;
  font-size: 10px;
  text-align: center;
}

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

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

.toast {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: min(440px, calc(100% - 44px));
  padding: 14px 15px 14px 18px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  box-shadow: var(--shadow-small);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  animation: toast-in 220ms ease;
}

.toast button {
  padding: 0;
  border: 0;
  color: var(--cream);
  background: transparent;
  font-size: 21px;
  cursor: pointer;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 40px;
  }

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

  .controls {
    grid-template-columns: 1fr 1fr;
  }

  .control-card--forecast {
    grid-column: 1 / -1;
  }

  .timeline {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    width: min(calc(100% - 28px), var(--max-width));
  }

  main,
  .site-footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 40px 0 65px;
  }

  .hero__copy {
    position: relative;
    z-index: 2;
  }

  .hero h1 {
    max-width: 700px;
  }

  .hero__visual {
    width: min(100%, 500px);
    min-height: 480px;
    margin: -5px auto 0;
  }

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

  .control-card--forecast {
    grid-column: auto;
  }

  .forecast-peek__hours {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }

  .insight {
    min-height: 0;
  }

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

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 12px;
    text-align: left;
  }

  .site-footer {
    display: block;
  }

  .footer-meta {
    margin-top: 24px;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 18px 0;
  }

  .api-status {
    max-width: 150px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .brand {
    font-size: 17px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding-top: 30px;
  }

  .hero h1 {
    font-size: clamp(49px, 16vw, 76px);
  }

  .hero__lead {
    font-size: 16px;
  }

  .search {
    grid-template-columns: auto 1fr;
    padding-right: 10px;
  }

  .search > button {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 3px;
  }

  .search-results {
    top: calc(100% + 10px);
  }

  .location-actions {
    display: grid;
    gap: 14px;
  }

  .hero__visual {
    min-height: 390px;
  }

  .weather-blob {
    top: 20px;
    right: 10px;
    width: 88%;
  }

  .weather-blob__sun {
    top: 48px;
    right: 38px;
    width: 86px;
    height: 86px;
  }

  .weather-blob__cloud--one {
    top: 170px;
    left: 27px;
    transform: scale(0.8);
    transform-origin: left;
  }

  .weather-stamp {
    left: 4px;
    max-width: 180px;
  }

  .wardrobe-orbit--front {
    width: 115px;
    height: 115px;
  }

  .wardrobe-orbit--back {
    bottom: 30px;
    width: 95px;
    height: 95px;
  }

  .wardrobe-orbit--small {
    top: 105px;
    left: -4px;
    width: 72px;
    height: 72px;
  }

  .hero-note {
    right: 37px;
    bottom: -5px;
  }

  .planner {
    padding-top: 10px;
  }

  .outfit-card {
    padding: 22px 18px 27px;
    border-radius: 23px;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .outfit-card__header {
    display: block;
  }

  .range-badge {
    display: inline-block;
    margin-top: 14px;
  }

  .outfit-intro {
    display: block;
  }

  .outfit-intro > p:last-child {
    margin-top: 14px;
  }

  .outfit-grid {
    gap: 9px;
  }

  .clothing-item {
    min-height: 158px;
    padding: 15px 10px 13px;
  }

  .clothing-item svg {
    width: 68px;
    height: 68px;
  }

  .carry-card {
    padding: 14px;
  }

  .controls {
    grid-template-columns: 1fr;
  }

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

  .control-card {
    padding: 23px 21px;
  }

  .timeline-section {
    padding: 55px 0 70px;
  }

  .timeline {
    grid-template-columns: repeat(5, minmax(165px, 1fr));
    box-shadow: 5px 5px 0 var(--ink);
  }

  .welcome__card {
    padding: 29px 23px 25px;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .welcome__illustration {
    width: 80px;
    height: 80px;
  }

  .welcome__illustration svg {
    width: 60px;
    height: 60px;
  }

  .welcome__actions {
    grid-template-columns: 1fr;
  }
}

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

/* Przełączalny układ pogodowy / plan — tryb ekranu i TV */
.planner {
  position: relative;
  overflow-anchor: none;
  grid-template-areas:
    "primary controls"
    "primary secondary";
}

.planner > .controls {
  grid-area: controls;
}

.planner[data-primary="plan"] .widget--plan,
.planner[data-primary="weather"] .widget--weather {
  grid-area: primary;
}

.planner[data-primary="plan"] .widget--weather,
.planner[data-primary="weather"] .widget--plan {
  grid-area: secondary;
}

.widget {
  min-width: 0;
  transition:
    box-shadow 220ms ease,
    transform 220ms ease;
}

.plan-peek {
  display: none;
}

.plan-peek[hidden] {
  display: none !important;
}

.planner[data-primary="weather"] .widget--plan {
  min-height: 0;
  padding: 26px;
  border-radius: var(--radius-lg);
  box-shadow: 7px 7px 0 var(--ink);
}

.planner[data-primary="weather"] .widget--plan > :not(.plan-peek) {
  display: none !important;
}

.planner[data-primary="weather"] .plan-peek {
  display: block;
}

.plan-peek__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-peek__top p {
  margin: 0;
}

.plan-peek__top span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  font-size: 8px;
  font-weight: 900;
}

.plan-peek__place {
  margin: 25px 0 5px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-peek h2 {
  margin: 0;
  font-family: var(--header-font);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.plan-peek__summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 11px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.plan-peek__items {
  display: flex;
  gap: 7px;
  margin-top: 17px;
}

.plan-peek__item {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--item-bg, var(--sky));
}

.plan-peek__item:nth-child(2) {
  --item-bg: var(--lime);
}

.plan-peek__item:nth-child(3) {
  --item-bg: #f9c4b7;
}

.plan-peek__item:nth-child(4) {
  --item-bg: var(--violet);
}

.plan-peek__item svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
}

.widget-promote,
.widget-swap {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--cream);
  font-weight: 900;
  cursor: pointer;
}

.widget-promote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 20px;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 10px;
}

.widget-promote:hover,
.widget-swap:hover {
  background: var(--lime);
}

.control-card--forecast {
  position: relative;
}

.widget-swap {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--ink);
}

.widget-swap span {
  display: none;
}

.planner[data-primary="weather"] .widget--weather {
  min-height: 590px;
  overflow: hidden;
  padding: clamp(30px, 4vw, 48px);
  border-radius: var(--radius-xl);
  box-shadow: 10px 10px 0 var(--ink);
}

.planner[data-primary="weather"] .widget-swap {
  right: 100px;
  width: auto;
  padding: 0 14px;
  border-radius: 999px;
}

.planner[data-primary="weather"] .widget-swap span {
  display: inline;
  margin-left: 7px;
  font-size: 10px;
}

.forecast-peek__timing {
  display: grid;
  gap: 2px;
  justify-items: end;
}

.forecast-peek__timing .live-clock {
  color: var(--ink);
  font-family: var(--header-font);
  font-size: 12px;
  font-weight: 900;
}

.planner[data-primary="weather"] .forecast-widget__body {
  max-width: 100%;
}

.planner[data-primary="weather"] .widget--weather .control-card__heading h2 {
  max-width: none;
  font-size: clamp(38px, 5vw, 64px);
}

.planner > .controls .control-card__heading h2 {
  max-width: none;
  font-size: clamp(29px, 3.75vw, 48px);
}

.planner[data-primary="weather"] .control-card__number,
.planner[data-primary="plan"] > .controls .control-card__number {
  font-size: 74px;
}

.planner[data-primary="weather"] .forecast-peek__headline {
  margin-top: 44px;
}

.planner[data-primary="weather"] .forecast-peek__headline strong {
  font-size: clamp(25px, 3vw, 38px);
}

.planner[data-primary="weather"] .forecast-peek__layout {
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 24px;
  margin-top: 22px;
}

.planner[data-primary="weather"] .forecast-peek__hours {
  gap: 18px;
}

.planner[data-primary="weather"] .forecast-hour {
  min-height: 280px;
  padding: 28px 26px 24px;
  border-width: 2px;
  border-radius: 25px;
  box-shadow: 6px 6px 0 var(--ink);
}

.planner[data-primary="weather"] .forecast-hour time {
  font-size: 22px;
}

.planner[data-primary="weather"] .forecast-hour__emoji {
  font-size: 35px;
}

.planner[data-primary="weather"] .forecast-hour__temperature {
  margin-top: 24px;
  font-size: clamp(58px, 8vw, 92px);
}

.planner[data-primary="weather"] .forecast-hour__metrics {
  gap: 10px;
  margin-top: 25px;
  padding-top: 18px;
}

.planner[data-primary="weather"] .forecast-hour__metric {
  font-size: 13px;
}

.planner[data-primary="weather"] .hour-scrubber > span {
  font-size: 10px;
}

.planner[data-primary="weather"] .hour-scrubber input {
  width: 210px;
  margin: 96px -73px;
}

.planner[data-primary="weather"] .hour-scrubber output {
  padding: 6px 9px;
  font-size: 13px;
}

.planner[data-primary="weather"] .day-scrubber {
  margin-top: 29px;
  padding-top: 22px;
}

.tv-focus-dot {
  position: fixed;
  z-index: 1200;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(22, 52, 49, 0.22);
  border-radius: 50%;
  opacity: 0;
  background: rgba(229, 232, 115, 0.42);
  box-shadow: 0 0 0 6px rgba(157, 219, 235, 0.1);
  pointer-events: none;
  transition:
    left 120ms ease,
    top 120ms ease,
    opacity 120ms ease;
}

.tv-focus-dot.is-visible {
  opacity: 1;
}

body.is-tv-navigation
  :where(
    a,
    button,
    input,
    select,
    textarea,
    summary,
    [tabindex]
  ):focus-visible {
  outline: 2px solid rgba(22, 52, 49, 0.16);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .tv-focus-dot {
    transition: none;
  }
}

@media (max-width: 1080px) {
  .planner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "primary"
      "controls"
      "secondary";
  }

  .planner[data-primary="weather"] .widget--plan {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .planner[data-primary="weather"] .widget--weather {
    min-height: 0;
    padding: 25px 21px;
    border-radius: var(--radius-lg);
    box-shadow: 7px 7px 0 var(--ink);
  }

  .planner[data-primary="weather"] .widget-swap {
    right: 72px;
    width: 34px;
    padding: 0;
    border-radius: 50%;
  }

  .planner[data-primary="weather"] .widget-swap span {
    display: none;
  }

  .planner[data-primary="weather"] .widget--weather .control-card__heading h2 {
    font-size: 34px;
  }

  .planner > .controls .control-card__heading h2 {
    font-size: 26px;
  }

  .planner[data-primary="weather"] .control-card__number,
  .planner[data-primary="plan"] > .controls .control-card__number {
    font-size: 48px;
  }

  .planner[data-primary="weather"] .forecast-peek__headline {
    margin-top: 27px;
  }

  .planner[data-primary="weather"] .forecast-peek__headline strong {
    font-size: 20px;
  }

  .planner[data-primary="weather"] .forecast-peek__layout {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 10px;
    margin-top: 14px;
  }

  .planner[data-primary="weather"] .forecast-peek__hours {
    gap: 8px;
  }

  .planner[data-primary="weather"] .forecast-hour {
    min-height: 210px;
    padding: 16px 12px;
    border-width: 1.5px;
    border-radius: 18px;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .planner[data-primary="weather"] .forecast-hour time {
    font-size: 15px;
  }

  .planner[data-primary="weather"] .forecast-hour__emoji {
    font-size: 21px;
  }

  .planner[data-primary="weather"] .forecast-hour__temperature {
    margin-top: 14px;
    font-size: 42px;
  }

  .planner[data-primary="weather"] .forecast-hour__metrics {
    gap: 6px;
    margin-top: 14px;
    padding-top: 10px;
  }

  .planner[data-primary="weather"] .forecast-hour__metric {
    font-size: 9px;
  }

  .planner[data-primary="weather"] .hour-scrubber input {
    width: 132px;
    margin: 60px -44px;
  }

  .planner[data-primary="weather"] .day-scrubber {
    margin-top: 19px;
    padding-top: 16px;
  }
}
