.wind-chill-calculator-container,
.wind-chill-calculator-container *,
.wind-chill-calculator-container *::before,
.wind-chill-calculator-container *::after {
  box-sizing: border-box;
  border-radius: 0 !important;
  letter-spacing: 0 !important;
}

.wind-chill-calculator-container.windchill-rec-tool {
  --windchill-rec-shell: #faf2e8;
  --windchill-rec-paper: #fff7e8;
  --windchill-rec-panel: #fffdf7;
  --windchill-rec-panel-soft: #fff9ee;
  --windchill-rec-line: #6b5745;
  --windchill-rec-ink: #2b2119;
  --windchill-rec-muted: #756556;
  --windchill-rec-soft-chip: #faecd4;
  --windchill-rec-action: #f2e3d3;
  --windchill-rec-result: #e3efd2;
  --windchill-rec-cool: #dfeef8;
  --windchill-rec-warn: #f7df9d;
  --windchill-rec-danger: #f2c7b8;
  --windchill-rec-status-calm: #386a2f;
  --windchill-rec-status-cool: #526129;
  --windchill-rec-status-cold: #315c73;
  --windchill-rec-status-warning: #805713;
  --windchill-rec-status-danger: #8f3325;
  position: relative;
  display: block;
  width: min(100%, 840px);
  max-width: 840px;
  margin: 14px auto 18px;
  padding: 0;
  overflow: visible;
  color: var(--windchill-rec-ink);
  font-family: "Noto Sans KR", "Malgun Gothic", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  line-height: 1.45;
  background:
    linear-gradient(rgba(107, 87, 69, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 87, 69, 0.045) 1px, transparent 1px),
    var(--windchill-rec-shell);
  background-size: 18px 18px;
  border: 2px solid var(--windchill-rec-line);
  box-shadow: 4px 4px 0 rgba(107, 87, 69, 0.34);
}

.windchill-rec-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.99), rgba(255, 249, 238, 0.98) 64%, rgba(247, 223, 157, 0.3));
}

.windchill-rec-title-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.windchill-rec-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 4px 7px;
  color: var(--windchill-rec-ink);
  background: var(--windchill-rec-soft-chip);
  border: 1px solid var(--windchill-rec-line);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.windchill-rec-title h2 {
  margin: 0;
  color: var(--windchill-rec-ink);
  font-size: 26px;
  font-weight: 950;
  line-height: 1.18;
}

.windchill-rec-title p:not(.windchill-rec-kicker) {
  margin: 0;
  max-width: 560px;
  color: var(--windchill-rec-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.windchill-rec-title-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--windchill-rec-ink);
  background: var(--windchill-rec-result);
  border: 2px solid var(--windchill-rec-line);
  box-shadow: 3px 3px 0 rgba(107, 87, 69, 0.24);
  font-size: 17px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.windchill-rec-body {
  border-top: 2px solid var(--windchill-rec-line);
  padding: 12px;
}

.windchill-rec-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 12px;
  align-items: stretch;
}

.windchill-rec-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--windchill-rec-panel);
  border: 2px solid var(--windchill-rec-line);
  box-shadow: 3px 3px 0 rgba(107, 87, 69, 0.22);
}

.windchill-rec-panel-head {
  display: grid;
  gap: 4px;
  padding: 11px 12px 9px;
  border-bottom: 1px solid var(--windchill-rec-line);
  background: rgba(250, 236, 212, 0.52);
}

.windchill-rec-panel-head h3 {
  margin: 0;
  color: var(--windchill-rec-ink);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.22;
}

.windchill-rec-panel-head p {
  margin: 0;
  color: var(--windchill-rec-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.windchill-rec-fields {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.windchill-rec-field {
  display: grid;
  gap: 7px;
  margin: 0;
}

.windchill-rec-field-text {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  color: var(--windchill-rec-ink);
}

.windchill-rec-field-text strong {
  min-width: fit-content;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
}

.windchill-rec-field-text em {
  color: var(--windchill-rec-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}

.windchill-rec-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 40px;
  background: var(--windchill-rec-panel);
  border: 1px solid var(--windchill-rec-line);
}

.windchill-rec-input-wrap input {
  min-width: 0;
  width: 100% !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 9px 10px !important;
  color: var(--windchill-rec-ink) !important;
  background: var(--windchill-rec-panel) !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  font-family: "Noto Sans KR", "Malgun Gothic", -apple-system, BlinkMacSystemFont, system-ui, sans-serif !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  font-variation-settings: "wght" 950;
  font-variant-numeric: tabular-nums;
  line-height: 1.2 !important;
}

.windchill-rec-input-wrap input::placeholder {
  color: #a89786;
  font-weight: 700;
  opacity: 1;
}

.windchill-rec-input-wrap input:focus {
  background: #fffaf1 !important;
}

.windchill-rec-input-wrap input.is-invalid {
  color: #8f3325 !important;
  background: #fff3ee !important;
}

.windchill-rec-unit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 0 9px;
  color: var(--windchill-rec-ink);
  background: var(--windchill-rec-soft-chip);
  border-left: 1px solid var(--windchill-rec-line);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.windchill-rec-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding: 0 12px 12px;
}

.windchill-rec-preset,
.windchill-rec-action,
.windchill-rec-icon-copy,
.windchill-rec-inline-copy {
  appearance: none;
  color: var(--windchill-rec-ink) !important;
  background: var(--windchill-rec-action) !important;
  border: 1px solid var(--windchill-rec-line) !important;
  box-shadow: 2px 2px 0 rgba(107, 87, 69, 0.2) !important;
  cursor: pointer;
  font-family: inherit !important;
  font-weight: 950 !important;
  text-decoration: none !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.windchill-rec-preset {
  display: grid;
  gap: 2px;
  align-content: center;
  min-height: 42px !important;
  padding: 7px 8px !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  text-align: left;
}

.windchill-rec-preset strong {
  font-size: 11px;
  font-weight: 800;
  color: var(--windchill-rec-muted);
  line-height: 1.15;
}

.windchill-rec-preset:hover,
.windchill-rec-action:hover,
.windchill-rec-icon-copy:hover,
.windchill-rec-inline-copy:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(107, 87, 69, 0.2) !important;
}

.windchill-rec-preset:active,
.windchill-rec-action:active,
.windchill-rec-icon-copy:active,
.windchill-rec-inline-copy:active {
  transform: translate(2px, 2px);
  box-shadow: none !important;
}

.windchill-rec-hero {
  position: relative;
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 142px;
  margin: 12px;
  padding: 14px 44px 14px 14px;
  background: var(--windchill-rec-result);
  border: 2px solid var(--windchill-rec-line);
  box-shadow: 3px 3px 0 rgba(107, 87, 69, 0.2);
}

.windchill-rec-label {
  color: var(--windchill-rec-muted);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.windchill-rec-value {
  color: var(--windchill-rec-ink);
  font-size: clamp(32px, 6vw, 54px);
  font-weight: 950;
  font-variation-settings: "wght" 950;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  word-break: keep-all;
}

.windchill-rec-icon-copy {
  position: absolute;
  top: 9px;
  right: 9px;
  min-width: 44px !important;
  min-height: 28px !important;
  padding: 6px 8px !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

.windchill-rec-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.windchill-rec-metric {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  background: var(--windchill-rec-panel-soft);
  border: 1px solid var(--windchill-rec-line);
}

.windchill-rec-metric span {
  color: var(--windchill-rec-muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.windchill-rec-metric strong {
  color: var(--windchill-rec-ink);
  font-size: 18px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1.18;
  word-break: keep-all;
}

.windchill-rec-inline-copy {
  width: fit-content;
  min-height: 26px !important;
  padding: 5px 7px !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

.windchill-rec-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding: 0 12px 12px;
}

.windchill-rec-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
}

.windchill-rec-action--copy {
  background: var(--windchill-rec-result) !important;
}

.windchill-rec-action--reset {
  background: var(--windchill-rec-soft-chip) !important;
}

.windchill-rec-basis {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  color: var(--windchill-rec-ink);
  background: rgba(255, 253, 247, 0.78);
  border: 1px dashed var(--windchill-rec-line);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.windchill-rec-basis strong {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 7px;
  background: var(--windchill-rec-soft-chip);
  border: 1px solid var(--windchill-rec-line);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.windchill-rec-hidden-action[hidden] {
  display: none !important;
}

.windchill-rec-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  width: min(320px, calc(100vw - 24px));
  color: var(--windchill-rec-ink);
  background: var(--windchill-rec-panel);
  border: 2px solid var(--windchill-rec-line);
  box-shadow: 4px 4px 0 rgba(107, 87, 69, 0.28);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
}

.windchill-rec-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.windchill-rec-toast .toast-header {
  padding: 8px 10px;
  background: var(--windchill-rec-result);
  border-bottom: 1px solid var(--windchill-rec-line);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
}

.windchill-rec-toast .toast-body {
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

@media (prefers-color-scheme: dark) {
  .wind-chill-calculator-container.windchill-rec-tool {
    --windchill-rec-shell: #28231d;
    --windchill-rec-paper: #332b22;
    --windchill-rec-panel: #2f2a23;
    --windchill-rec-panel-soft: #383024;
    --windchill-rec-line: #d9c5aa;
    --windchill-rec-ink: #fff8ec;
    --windchill-rec-muted: #d8c9b6;
    --windchill-rec-soft-chip: #5a472d;
    --windchill-rec-action: #56432f;
    --windchill-rec-result: #3e5138;
    --windchill-rec-cool: #334858;
    --windchill-rec-warn: #5d4725;
    --windchill-rec-danger: #663829;
    --windchill-rec-status-calm: #b7e0a8;
    --windchill-rec-status-cool: #d7da88;
    --windchill-rec-status-cold: #a9d6ea;
    --windchill-rec-status-warning: #f4cf7e;
    --windchill-rec-status-danger: #f4a28f;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
  }

  .windchill-rec-title {
    background:
      linear-gradient(90deg, rgba(58, 49, 39, 0.98), rgba(50, 42, 34, 0.98) 64%, rgba(88, 68, 39, 0.5));
  }

  .windchill-rec-input-wrap input {
    background: var(--windchill-rec-panel) !important;
    color: var(--windchill-rec-ink) !important;
  }

  .windchill-rec-input-wrap input:focus {
    background: #3b3025 !important;
  }
}

body.dark-mode .wind-chill-calculator-container.windchill-rec-tool,
body.dark .wind-chill-calculator-container.windchill-rec-tool,
html.dark .wind-chill-calculator-container.windchill-rec-tool,
.color-scheme-dark .wind-chill-calculator-container.windchill-rec-tool {
  --windchill-rec-shell: #28231d;
  --windchill-rec-paper: #332b22;
  --windchill-rec-panel: #2f2a23;
  --windchill-rec-panel-soft: #383024;
  --windchill-rec-line: #d9c5aa;
  --windchill-rec-ink: #fff8ec;
  --windchill-rec-muted: #d8c9b6;
  --windchill-rec-soft-chip: #5a472d;
  --windchill-rec-action: #56432f;
  --windchill-rec-result: #3e5138;
  --windchill-rec-cool: #334858;
  --windchill-rec-warn: #5d4725;
  --windchill-rec-danger: #663829;
  --windchill-rec-status-calm: #b7e0a8;
  --windchill-rec-status-cool: #d7da88;
  --windchill-rec-status-cold: #a9d6ea;
  --windchill-rec-status-warning: #f4cf7e;
  --windchill-rec-status-danger: #f4a28f;
}

@media (max-width: 720px) {
  .wind-chill-calculator-container.windchill-rec-tool {
    width: calc(100% - 16px);
    margin: 10px auto 14px;
  }

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

  .windchill-rec-title-badge {
    display: none;
  }

  .windchill-rec-title h2 {
    font-size: 23px;
  }

  .windchill-rec-body {
    padding: 10px;
  }

  .windchill-rec-layout,
  .windchill-rec-basis {
    grid-template-columns: 1fr;
  }

  .windchill-rec-presets {
    grid-template-columns: 1fr;
  }

  .windchill-rec-metrics {
    grid-template-columns: 1fr;
  }

  .windchill-rec-hero {
    min-height: 122px;
  }
}

@media (max-width: 390px) {
  .wind-chill-calculator-container.windchill-rec-tool {
    width: calc(100% - 12px);
  }

  .windchill-rec-title,
  .windchill-rec-body,
  .windchill-rec-fields,
  .windchill-rec-panel-head {
    padding-left: 10px;
    padding-right: 10px;
  }

  .windchill-rec-title h2 {
    font-size: 21px;
  }

  .windchill-rec-title p:not(.windchill-rec-kicker),
  .windchill-rec-panel-head p,
  .windchill-rec-basis {
    font-size: 12px;
  }

  .windchill-rec-field-text {
    display: grid;
    gap: 3px;
  }

  .windchill-rec-field-text em {
    text-align: left;
  }

  .windchill-rec-input-wrap input {
    font-size: 17px !important;
  }

  .windchill-rec-unit {
    min-width: 48px;
    padding: 0 7px;
    font-size: 11px;
  }

  .windchill-rec-actions {
    grid-template-columns: 1fr;
  }
}
