.wdw-calculator,
.wdw-hub,
.wdw-context,
.wdw-related {
  --wdw-ink: #153b32;
  --wdw-ink-soft: #45645c;
  --wdw-paper: #f6f3ea;
  --wdw-card: #fffdf8;
  --wdw-line: #d8ddd5;
  --wdw-lime: #d7f75d;
  --wdw-lime-deep: #b9db3e;
  box-sizing: border-box;
}
.wdw-calculator *, .wdw-hub *, .wdw-context *, .wdw-related * { box-sizing: border-box; }
.wdw-calculator { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 62px 0 82px; color: var(--wdw-ink); }
.wdw-tool-heading { max-width: 850px; margin-bottom: 36px; }
.wdw-eyebrow { margin: 0 0 15px; display: flex; align-items: center; gap: 9px; color: #587067; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.wdw-eyebrow > span { width: 24px; height: 3px; flex: 0 0 auto; border-radius: 3px; background: var(--wdw-lime-deep); }
.wdw-eyebrow-light { color: #c8d7d2; }
.wdw-tool-heading h1, .wdw-tool-heading > h2 { margin: 0; max-width: 820px; color: var(--wdw-ink); font-size: clamp(40px, 5.2vw, 66px); line-height: 0.98; letter-spacing: -0.057em; }
.wdw-tool-heading > p:last-child { max-width: 720px; margin: 21px 0 0; color: var(--wdw-ink-soft); font-size: 16px; line-height: 1.65; }
.wdw-workspace-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(410px, 1.05fr); gap: 22px; align-items: start; }
.wdw-form { margin: 0; padding: 31px; border: 1px solid var(--wdw-line); border-radius: 23px; background: var(--wdw-card); box-shadow: 0 18px 50px rgba(37, 60, 50, 0.055); }
.wdw-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.wdw-form legend { width: 100%; margin: 0 0 20px; padding: 0; display: flex; align-items: center; gap: 11px; color: var(--wdw-ink); font-size: 15px; font-weight: 760; }
.wdw-form legend > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: var(--wdw-ink); color: var(--wdw-lime); font-size: 12px; }
.wdw-form fieldset > .wdw-field + .wdw-field { margin-top: 10px; }
.wdw-form-divider { height: 1px; margin: 27px 0; background: #e2e5df; }
.wdw-field-single { margin-top: 22px; }
.wdw-field { min-width: 0; padding: 9px 10px 9px 14px; border: 1px solid #dde2dc; border-radius: 14px; background: #fff; }
.wdw-field-main { min-width: 0; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: text; }
.wdw-field-copy { min-width: 0; display: grid; gap: 3px; }
.wdw-field-copy strong { color: var(--wdw-ink); font-size: 13px; line-height: 1.25; }
.wdw-field-copy small { color: #7b8c85; font-size: 10px; line-height: 1.35; }
.wdw-field-help { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid #edf0ec; }
.wdw-field-help summary { width: fit-content; cursor: pointer; color: #60776e; font-size: 10px; font-weight: 760; line-height: 1.4; }
.wdw-field-help summary:hover, .wdw-field-help summary:focus-visible { color: var(--wdw-ink); }
.wdw-field-help p { max-width: 520px; margin: 7px 0 2px; color: #687d75; font-size: 10px; line-height: 1.55; }
.wdw-number-control { width: 142px; height: 45px; flex: 0 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; overflow: hidden; border: 1px solid #cfd6cf; border-radius: 12px; background: #fff; transition: border-color 160ms ease, box-shadow 160ms ease; }
.wdw-number-control:focus-within { border-color: #7c9a52; box-shadow: 0 0 0 3px rgba(185, 219, 62, 0.24); }
.wdw-number-control input { width: 100%; min-width: 0; height: 100%; margin: 0; padding: 0 7px 0 12px; border: 0; outline: 0; background: transparent; color: var(--wdw-ink); font-size: 15px; font-weight: 720; font-variant-numeric: tabular-nums; }
.wdw-number-control > span { padding-right: 10px; color: #7a8d87; font-size: 10px; font-weight: 650; }
.wdw-select-control { width: min(245px, 52%); min-height: 45px; flex: 0 0 auto; padding: 0 35px 0 12px; border: 1px solid #cfd6cf; border-radius: 12px; outline: 0; background: #fff; color: var(--wdw-ink); font-size: 12px; font-weight: 700; }
.wdw-select-control:focus { border-color: #7c9a52; box-shadow: 0 0 0 3px rgba(185, 219, 62, 0.24); }
.wdw-check { min-height: 66px; padding: 14px; display: flex; align-items: flex-start; gap: 12px; border: 1px solid #dde2dc; border-radius: 14px; background: #fff; cursor: pointer; }
.wdw-check input { width: 19px; height: 19px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--wdw-ink); }
.wdw-check > span { min-width: 0; display: grid; gap: 4px; }
.wdw-check strong { color: var(--wdw-ink); font-size: 13px; line-height: 1.35; }
.wdw-check small { color: #71837c; font-size: 10px; line-height: 1.5; }
.wdw-form-note, .wdw-source-note { margin: -8px 0 15px; color: #687d75; font-size: 10px; line-height: 1.55; }
.wdw-source-note { margin: 20px 0 0; padding: 13px 14px; border-radius: 12px; background: #eef3e9; color: #506a60; }
.wdw-three-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.wdw-three-fields .wdw-field { min-height: 93px; padding: 11px; }
.wdw-three-fields .wdw-field-main { display: grid; align-content: space-between; gap: 8px; }
.wdw-three-fields .wdw-number-control { width: 100%; }
.wdw-group-label { margin: 16px 0 8px; color: #71827b; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.wdw-result { position: sticky; top: 22px; min-height: 510px; padding: 34px; overflow: hidden; border-radius: 24px; background: var(--wdw-ink); color: #fff; box-shadow: 0 18px 50px rgba(21, 59, 50, 0.14); }
.admin-bar .wdw-result { top: 54px; }
.wdw-result::before { content: ""; position: absolute; width: 270px; height: 270px; right: -150px; top: -150px; border: 52px solid rgba(215, 247, 93, 0.075); border-radius: 50%; }
.wdw-result-kicker { position: relative; margin: 0; display: flex; align-items: center; gap: 9px; color: #d6e3df; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.wdw-result-kicker > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--wdw-lime); color: var(--wdw-ink); font-size: 15px; }
.wdw-result.is-negative .wdw-result-kicker > span, .wdw-result.is-invalid .wdw-result-kicker > span { background: #ffd3c9; color: #842f25; }
.wdw-result.is-tight .wdw-result-kicker > span { background: #ffe4a8; color: #704708; }
.wdw-result > h2 { position: relative; margin: 24px 0 7px; max-width: 500px; color: #fff; font-size: clamp(30px, 3.4vw, 43px); line-height: 1.02; letter-spacing: -0.045em; }
.wdw-result > h2.wdw-big-number { color: #fff; font-size: clamp(43px, 5vw, 62px); }
.wdw-result-subtitle { position: relative; margin: 0; color: #c9d7d2; font-size: 13px; line-height: 1.55; }
.wdw-caveat { position: relative; margin: 27px 0 0; padding-top: 17px; border-top: 1px solid rgba(255, 255, 255, 0.13); color: #aebfba; font-size: 10px; line-height: 1.55; }
.wdw-machine-visual { position: relative; height: 205px; margin: 15px 0 8px; display: grid; place-items: end center; border-bottom: 2px solid rgba(255,255,255,.2); }
.wdw-machine { position: relative; width: min(230px, 70%); height: 158px; display: block; border-radius: 9px 9px 4px 4px; background: #f2f1e9; }
.wdw-machine::before { content: ""; position: absolute; left: 50%; top: 55%; width: 88px; height: 88px; transform: translate(-50%, -50%); border: 12px solid #274b42; border-radius: 50%; background: #183e34; }
.wdw-machine i { position: absolute; left: 18px; top: 18px; width: 80px; height: 12px; border-radius: 6px; background: #d0d6d0; }
.wdw-machine b { position: absolute; right: 22px; top: 16px; width: 19px; height: 19px; border-radius: 50%; background: var(--wdw-lime); }
.wdw-clearance-list { position: relative; display: grid; gap: 1px; overflow: hidden; border-radius: 13px; background: rgba(255, 255, 255, 0.1); }
.wdw-clearance-list > div { min-height: 43px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: rgba(255, 255, 255, 0.055); font-size: 12px; }
.wdw-clearance-list span { color: #d0ddd8; }
.wdw-clearance-list strong { color: var(--wdw-lime); font-size: 13px; font-variant-numeric: tabular-nums; }
.wdw-clearance-list strong.is-negative { color: #ffb8a9; }
.wdw-result-metrics { position: relative; margin: 28px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.wdw-result-metrics > div { min-height: 76px; padding: 15px; display: grid; align-content: center; gap: 4px; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 13px; background: rgba(255, 255, 255, 0.055); }
.wdw-result-metrics span { color: #b8c9c3; font-size: 10px; }
.wdw-result-metrics strong { color: var(--wdw-lime); font-size: 18px; font-variant-numeric: tabular-nums; }
.wdw-breakdown { position: relative; margin-top: 28px; }
.wdw-breakdown h3 { margin: 0 0 15px; color: #fff; font-size: 13px; }
.wdw-breakdown-row + .wdw-breakdown-row { margin-top: 13px; }
.wdw-breakdown-row > div { margin-bottom: 6px; display: flex; justify-content: space-between; gap: 20px; color: #cfddd8; font-size: 11px; }
.wdw-breakdown-row strong { color: #fff; font-variant-numeric: tabular-nums; }
.wdw-breakdown-row > i { height: 7px; display: block; overflow: hidden; border-radius: 20px; background: rgba(255, 255, 255, 0.1); }
.wdw-breakdown-row > i > b { width: 0; height: 100%; display: block; border-radius: inherit; background: var(--wdw-lime); transition: width 180ms ease; }
.wdw-orientations { position: relative; margin-top: 28px; display: grid; gap: 8px; }
.wdw-orientation { min-height: 74px; padding: 12px 13px; display: grid; grid-template-columns: minmax(0, 1fr) auto 25px; align-items: center; gap: 14px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 13px; background: rgba(255, 255, 255, 0.05); }
.wdw-orientation.is-fitting { border-color: rgba(215, 247, 93, 0.38); background: rgba(215, 247, 93, 0.08); }
.wdw-orientation > div { min-width: 0; display: grid; gap: 3px; }
.wdw-orientation > div:nth-child(2) { text-align: right; }
.wdw-orientation span { color: #afc1bb; font-size: 9px; }
.wdw-orientation__badge { text-align: right; }
.wdw-orientation strong { color: #eef4f2; font-size: 12px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.wdw-orientation b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #ffd3c9; color: #842f25; font-size: 12px; }
.wdw-orientation.is-fitting b { background: var(--wdw-lime); color: var(--wdw-ink); }
.wdw-required-box { position: relative; margin: 28px 0 18px; padding: 21px; display: grid; gap: 7px; border: 1px solid rgba(215, 247, 93, 0.34); border-radius: 15px; background: rgba(215, 247, 93, 0.075); }
.wdw-required-box > span { color: #c2d3cd; font-size: 10px; }
.wdw-required-box > strong { color: var(--wdw-lime); font-size: clamp(24px, 3vw, 34px); line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.wdw-required-box > small { color: #9eb2ab; font-size: 9px; }

.wdw-context, .wdw-related { width: min(1180px, calc(100% - 40px)); margin: 0 auto; color: var(--wdw-ink); }
.wdw-context { padding: 8px 0 98px; display: grid; grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr); gap: 80px; }
.wdw-context h2 { max-width: 430px; margin: 0; font-size: clamp(31px, 3.6vw, 46px); line-height: 1.04; letter-spacing: -0.047em; }
.wdw-context-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.wdw-context-columns article { padding: 25px; border: 1px solid #d5dcd4; border-radius: 18px; background: rgba(255, 253, 248, 0.68); }
.wdw-context-columns h3 { margin: 0 0 18px; font-size: 16px; }
.wdw-context-columns ul { margin: 0; padding: 0; display: grid; gap: 11px; list-style: none; }
.wdw-context-columns li { position: relative; padding-left: 17px; color: var(--wdw-ink-soft); font-size: 12px; line-height: 1.5; }
.wdw-context-columns li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--wdw-lime-deep); }
.wdw-related { padding-bottom: 105px; }
.wdw-list-heading { margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.wdw-list-heading h2 { margin: 0; font-size: clamp(27px, 3vw, 38px); letter-spacing: -0.04em; }
.wdw-list-heading > span, .wdw-list-heading > a { color: #6a7e76; font-size: 12px; font-weight: 700; }
.wdw-tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wdw-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wdw-tool-card { min-height: 285px; padding: 28px; display: flex; flex-direction: column; border: 1px solid #d2d9d1; border-radius: 22px; background: var(--wdw-card); color: var(--wdw-ink); text-decoration: none !important; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.wdw-tool-card:hover, .wdw-tool-card:focus-visible { transform: translateY(-3px); border-color: #b7c2b7; box-shadow: 0 17px 40px rgba(30, 56, 46, 0.08); outline: 0; }
.wdw-tool-symbol { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--wdw-ink); color: var(--wdw-lime); font-size: 19px; font-weight: 850; }
.wdw-tool-card > p { margin: 28px 0 9px; color: #839347; font-size: 11px; font-weight: 820; letter-spacing: 0.09em; text-transform: uppercase; }
.wdw-tool-card h2, .wdw-tool-card h3 { max-width: 460px; margin: 0; color: var(--wdw-ink); font-size: 25px; line-height: 1.08; letter-spacing: -0.035em; }
.wdw-tool-description { max-width: 470px; margin: 13px 0 24px; color: var(--wdw-ink-soft); font-size: 13px; line-height: 1.58; }
.wdw-tool-card > strong { margin-top: auto; font-size: 12px; }
.wdw-tool-card > strong span { margin-left: 5px; color: #89a02d; }
.wdw-related-grid .wdw-tool-card { min-height: 260px; }
.wdw-related-grid .wdw-tool-card h2, .wdw-related-grid .wdw-tool-card h3 { font-size: 21px; }

.wdw-hub { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 110px; color: var(--wdw-ink); }
.wdw-hub-hero { min-height: 380px; margin-bottom: 68px; padding: 54px; display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 55px; align-items: end; overflow: hidden; border-radius: 28px; background: var(--wdw-ink); color: #fff; }
.wdw-hub-hero h1 { max-width: 760px; margin: 0; color: #fff; font-size: clamp(42px, 5.5vw, 70px); line-height: 0.98; letter-spacing: -0.057em; }
.wdw-hub-hero > div:first-child > p:last-child { max-width: 700px; margin: 23px 0 0; color: #cbd9d4; font-size: 16px; line-height: 1.65; }
.wdw-hub-stat { min-height: 178px; padding: 25px; display: grid; align-content: end; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 20px; background: rgba(255, 255, 255, 0.07); }
.wdw-hub-stat strong { color: var(--wdw-lime); font-size: 70px; line-height: 0.9; letter-spacing: -0.06em; }
.wdw-hub-stat span { max-width: 130px; margin-top: 12px; color: #dce6e2; font-size: 12px; line-height: 1.45; }
.wdw-next-tools { margin-top: 80px; padding: 46px; display: grid; grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr); gap: 70px; border-radius: 25px; background: #e3ebdf; }
.wdw-next-tools h2 { margin: 0; font-size: 38px; letter-spacing: -0.045em; }
.wdw-next-tools ul { margin: 0; padding: 0; list-style: none; }
.wdw-next-tools li { min-height: 52px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid rgba(21, 59, 50, 0.14); color: #36564d; font-size: 14px; }
.wdw-next-tools li:first-child { border-top: 1px solid rgba(21, 59, 50, 0.14); }
.wdw-next-tools li span { color: #78902b; font-size: 11px; font-weight: 850; }

@media (max-width: 900px) {
  .wdw-workspace-grid { grid-template-columns: 1fr; }
  .wdw-result { position: relative; top: auto; }
  .wdw-context { grid-template-columns: 1fr; gap: 35px; }
  .wdw-related-grid { grid-template-columns: 1fr 1fr; }
  .wdw-hub-hero { grid-template-columns: 1fr; }
  .wdw-hub-stat { min-height: 130px; }
}

@media (max-width: 650px) {
  .wdw-calculator, .wdw-hub, .wdw-context, .wdw-related { width: min(100% - 28px, 1180px); }
  .wdw-calculator { padding: 42px 0 70px; }
  .wdw-tool-heading h1, .wdw-tool-heading > h2 { font-size: 42px; }
  .wdw-form, .wdw-result { padding: 22px; border-radius: 20px; }
  .wdw-field-main { align-items: stretch; flex-direction: column; gap: 8px; }
  .wdw-number-control { width: 100%; }
  .wdw-select-control { width: 100%; }
  .wdw-three-fields { grid-template-columns: 1fr; }
  .wdw-three-fields .wdw-field { min-height: 0; }
  .wdw-orientation { grid-template-columns: minmax(0, 1fr) 25px; }
  .wdw-orientation > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .wdw-orientation > b { grid-column: 2; grid-row: 1; }
  .wdw-context { padding-bottom: 74px; }
  .wdw-context-columns { grid-template-columns: 1fr; }
  .wdw-related { padding-bottom: 80px; }
  .wdw-list-heading { align-items: start; flex-direction: column; gap: 8px; }
  .wdw-tools-grid, .wdw-related-grid { grid-template-columns: 1fr; }
  .wdw-tool-card { min-height: 265px; padding: 23px; }
  .wdw-hub { padding: 36px 0 78px; }
  .wdw-hub-hero { min-height: 0; margin-bottom: 55px; padding: 29px 23px; gap: 34px; border-radius: 22px; }
  .wdw-hub-hero h1 { font-size: 42px; }
  .wdw-hub-stat { min-height: 110px; }
  .wdw-hub-stat strong { font-size: 55px; }
  .wdw-next-tools { margin-top: 55px; padding: 28px 22px; grid-template-columns: 1fr; gap: 28px; }
  .wdw-next-tools h2 { font-size: 33px; }
  .wdw-next-tools li { align-items: flex-start; padding: 15px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wdw-calculator *, .wdw-hub *, .wdw-context *, .wdw-related * { transition-duration: 0.01ms !important; }
}
