/* ============================================================
   THEWING.AI • AIR FORCE WAPS CALCULATOR
   WAPS.CSS
   AFSC-FIRST AURA INTERFACE
   Version 2.2.0

   FILE PAIRING
   - index.html v2.2.0
   - waps.js v2.2.0

   PRIMARY FLOW
   1. Select CAFSC on the PECD
   2. Automatically determine promotion cycle and testing path
   3. Display required test-score fields
   4. Calculate EPB, decoration and total WAPS points
============================================================ */


/* ============================================================
   1. DOCUMENT RESET
============================================================ */

:root {
  color-scheme: dark;
}

html {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: #05131f;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #05131f;
}

body,
button,
input,
select,
textarea {
  font-family:
    "Barlow",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}


/* ============================================================
   2. APPLICATION ROOT AND TOKENS
============================================================ */

#thewing-waps {
  --waps-bg-deep: #05131f;
  --waps-bg-mid: #081d2d;
  --waps-bg-blue: #0d2a40;

  --waps-panel: rgba(17, 42, 62, 0.84);
  --waps-panel-strong: rgba(10, 31, 48, 0.94);
  --waps-panel-soft: rgba(255, 255, 255, 0.035);
  --waps-panel-hover: rgba(255, 255, 255, 0.06);

  --waps-stroke: rgba(207, 229, 247, 0.17);
  --waps-stroke-strong: rgba(207, 229, 247, 0.29);
  --waps-stroke-soft: rgba(207, 229, 247, 0.095);

  --waps-white: #f8fbff;
  --waps-ink: #edf5ff;
  --waps-ink-soft: rgba(231, 241, 252, 0.82);
  --waps-muted: rgba(216, 231, 247, 0.64);
  --waps-faint: rgba(216, 231, 247, 0.43);

  --waps-teal: #78ded3;
  --waps-teal-bright: #91eee3;
  --waps-teal-soft: rgba(120, 222, 211, 0.14);

  --waps-blue: #85d4f4;
  --waps-blue-soft: rgba(133, 212, 244, 0.13);

  --waps-green: #80d5a1;
  --waps-green-soft: rgba(128, 213, 161, 0.14);

  --waps-orange: #f3ab50;
  --waps-orange-soft: rgba(243, 171, 80, 0.14);

  --waps-purple: #b38aef;
  --waps-purple-soft: rgba(179, 138, 239, 0.14);

  --waps-amber: #f1d989;
  --waps-amber-soft: rgba(241, 217, 137, 0.14);

  --waps-danger: #ff9b9b;
  --waps-danger-soft: rgba(255, 155, 155, 0.13);

  --waps-success: #93e4b2;
  --waps-success-soft: rgba(147, 228, 178, 0.13);

  --waps-shadow:
    0 30px 78px rgba(0, 7, 16, 0.38),
    0 12px 30px rgba(0, 7, 16, 0.22);

  --waps-shadow-soft:
    0 16px 36px rgba(0, 7, 16, 0.22);

  --waps-radius-xl: 24px;
  --waps-radius-lg: 18px;
  --waps-radius-md: 14px;
  --waps-radius-sm: 11px;

  position: relative;
  display: block;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;

  color: var(--waps-ink);

  background:
    radial-gradient(
      900px 620px at 94% 2%,
      rgba(128, 159, 193, 0.09),
      transparent 62%
    ),
    radial-gradient(
      900px 700px at 4% 96%,
      rgba(42, 172, 190, 0.09),
      transparent 66%
    ),
    linear-gradient(
      145deg,
      #05131f 0%,
      #071a29 46%,
      #0a2235 76%,
      #122b3d 100%
    );

  line-height: 1.45;
  isolation: isolate;
}

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

#thewing-waps a {
  color: inherit;
}

#thewing-waps ::selection {
  color: #041a18;
  background: var(--waps-teal-bright);
}


/* ============================================================
   3. BACKGROUND EFFECTS
============================================================ */

.waps-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.waps-aura {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
}

.waps-aura-top {
  top: -290px;
  right: -170px;
  width: 820px;
  height: 820px;

  background:
    radial-gradient(
      circle,
      rgba(115, 159, 199, 0.13) 0%,
      rgba(115, 159, 199, 0.045) 48%,
      transparent 72%
    );
}

.waps-aura-bottom {
  bottom: -350px;
  left: -220px;
  width: 900px;
  height: 900px;

  background:
    radial-gradient(
      circle,
      rgba(52, 193, 197, 0.11) 0%,
      rgba(52, 193, 197, 0.035) 48%,
      transparent 73%
    );
}

.waps-grid {
  position: absolute;
  inset: 0;
  opacity: 0.11;

  background:
    linear-gradient(
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px
    );

  background-size: 48px 48px;

  mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.66),
      transparent 92%
    );
}

.waps-grain {
  position: absolute;
  inset: 0;
  opacity: 0.14;

  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.012) 0,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 4px
    );
}


/* ============================================================
   4. APPLICATION CONTAINER
============================================================ */

.waps-container {
  position: relative;
  z-index: 2;

  width: min(1480px, calc(100% - 58px));
  margin: 0 auto;

  padding:
    max(22px, env(safe-area-inset-top))
    0
    max(28px, env(safe-area-inset-bottom));
}


/* ============================================================
   5. ACCESSIBILITY
============================================================ */

.waps-visually-hidden {
  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;
}

#thewing-waps :focus-visible {
  outline: 2px solid var(--waps-teal-bright);
  outline-offset: 3px;
}


/* ============================================================
   6. SHARED ACTION BUTTONS
============================================================ */

.waps-reset-button,
.waps-copy-button,
.waps-dialog-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  border: 1px solid var(--waps-stroke);
  border-radius: 11px;

  color: var(--waps-ink-soft);

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.025)
    );

  cursor: pointer;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  transition:
    transform 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.waps-reset-button:hover,
.waps-copy-button:hover,
.waps-dialog-done:hover {
  color: var(--waps-white);
  border-color: var(--waps-stroke-strong);

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.085),
      rgba(255, 255, 255, 0.04)
    );

  transform: translateY(-1px);
}

.waps-reset-icon,
.waps-copy-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.waps-reset-icon svg,
.waps-copy-icon svg {
  width: 100%;
  height: 100%;
}


/* ============================================================
   7. PANEL EYEBROW
============================================================ */

.waps-panel-eyebrow {
  color: var(--waps-teal-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}


/* ============================================================
   8. CALCULATOR GRID
============================================================ */

.waps-calculator-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.98fr)
    minmax(480px, 1.02fr);

  gap: 20px;
  align-items: start;
}

.waps-panel {
  position: relative;
  min-width: 0;

  border: 1px solid var(--waps-stroke);
  border-radius: var(--waps-radius-xl);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.057),
      rgba(255, 255, 255, 0.018) 44%
    ),
    var(--waps-panel);

  box-shadow:
    var(--waps-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);

  backdrop-filter: blur(17px) saturate(135%);
  -webkit-backdrop-filter: blur(17px) saturate(135%);

  overflow: hidden;
}

.waps-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.045),
      transparent 24%,
      transparent 74%,
      rgba(255, 255, 255, 0.014)
    );
}

.waps-input-panel,
.waps-result-panel {
  padding: 24px;
}

.waps-panel-heading,
.waps-result-heading {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;

  padding-bottom: 16px;

  border-bottom:
    1px solid var(--waps-stroke-soft);
}

.waps-panel-title {
  margin: 5px 0 0;

  color: rgba(250, 252, 255, 0.98);

  font-family:
    "Gilda Display",
    Georgia,
    serif;

  font-size: 26px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
}


/* ============================================================
   9. INPUT SECTIONS
============================================================ */

.waps-input-section {
  position: relative;
  z-index: 2;

  padding: 20px 0 0;
  margin: 0;

  border: 0;
}

.waps-input-section + .waps-input-section {
  margin-top: 19px;
  border-top: 1px solid var(--waps-stroke-soft);
}

.waps-section-heading {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;

  width: 100%;
  padding: 0;
  margin: 0 0 10px;

  color: var(--waps-ink);
}

.waps-section-number,
.waps-section-label,
.waps-section-qualifier {
  line-height: 1.2;
}

.waps-section-number {
  color: var(--waps-ink);
  font-size: 14px;
  font-weight: 800;
}

.waps-section-number::after {
  content: ".";
}

.waps-section-label {
  min-width: 0;
  margin: 0;

  color: var(--waps-ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.waps-section-qualifier {
  color: var(--waps-muted);
  font-size: 12px;
  font-weight: 500;
}

.waps-section-description {
  max-width: 640px;
  margin: 0 0 13px;

  color: var(--waps-muted);
  font-size: 11px;
  line-height: 1.5;
}

.waps-info-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;

  width: 25px;
  height: 25px;
  padding: 0;
  margin-left: auto;

  border: 0;
  border-radius: 50%;

  color: var(--waps-muted);
  background: transparent;
  cursor: pointer;

  transition:
    color 150ms ease,
    background 150ms ease;
}

.waps-info-button:hover {
  color: var(--waps-teal-bright);
  background: var(--waps-teal-soft);
}

.waps-info-button svg {
  width: 18px;
  height: 18px;
}


/* ============================================================
   10. CAFSC SEARCH
============================================================ */

.waps-cafsc-search-shell {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 58px;

  border: 1px solid var(--waps-stroke-strong);
  border-radius: 13px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.022)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045);

  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.waps-cafsc-search-shell:hover {
  border-color: rgba(120, 222, 211, 0.36);
}

.waps-cafsc-search-shell:focus-within {
  border-color: rgba(120, 222, 211, 0.78);

  box-shadow:
    0 0 0 4px rgba(120, 222, 211, 0.085),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.waps-cafsc-search-icon {
  position: absolute;
  left: 16px;

  display: grid;
  place-items: center;

  width: 22px;
  height: 22px;

  color: var(--waps-teal);
  pointer-events: none;
}

.waps-cafsc-search-icon svg {
  width: 20px;
  height: 20px;
}

.waps-cafsc-input {
  width: 100%;
  min-width: 0;
  min-height: 56px;

  padding: 0 52px 0 48px;

  border: 0;
  outline: 0;

  color: var(--waps-white);
  background: transparent;

  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.waps-cafsc-input::placeholder {
  color: rgba(216, 231, 247, 0.40);
  font-weight: 600;
}

.waps-cafsc-clear {
  position: absolute;
  right: 10px;

  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;
  padding: 0;

  border: 0;
  border-radius: 9px;

  color: var(--waps-muted);
  background: transparent;

  cursor: pointer;

  transition:
    color 150ms ease,
    background 150ms ease;
}

.waps-cafsc-clear:hover {
  color: var(--waps-white);
  background: rgba(255, 255, 255, 0.06);
}

.waps-cafsc-clear svg {
  width: 18px;
  height: 18px;
}

.waps-field-status {
  min-height: 18px;
  margin-top: 9px;

  color: var(--waps-muted);
  font-size: 11px;
  font-weight: 700;
}

.waps-field-status[data-status="valid"],
.waps-field-status[data-status="pass"] {
  color: var(--waps-success);
}

.waps-field-status[data-status="warning"] {
  color: var(--waps-amber);
}

.waps-field-status[data-status="invalid"],
.waps-field-status[data-status="fail"] {
  color: var(--waps-danger);
}

.waps-field-help {
  margin: 5px 0 0;

  color: var(--waps-faint);
  font-size: 10px;
  line-height: 1.45;
}


/* ============================================================
   12. INPUT FLOW AND EMPTY STATE
============================================================ */

.waps-input-flow {
  position: relative;
  z-index: 2;
}

.waps-input-empty-state {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 310px;
  padding: 28px 20px;

  color: var(--waps-muted);
  text-align: center;
}

.waps-empty-state-icon {
  display: grid;
  place-items: center;

  width: 68px;
  height: 68px;
  margin-bottom: 17px;

  border: 1px solid rgba(120, 222, 211, 0.18);
  border-radius: 50%;

  color: var(--waps-teal);

  background:
    radial-gradient(
      circle,
      rgba(120, 222, 211, 0.11),
      rgba(120, 222, 211, 0.025)
    );
}

.waps-empty-state-icon svg {
  width: 42px;
  height: 42px;
}

.waps-input-empty-state strong {
  color: var(--waps-white);
  font-size: 16px;
  font-weight: 800;
}

.waps-input-empty-state > span:last-child {
  max-width: 360px;
  margin-top: 6px;

  color: var(--waps-muted);
  font-size: 12px;
  line-height: 1.5;
}


/* ============================================================
   13. TESTING PATH NOTICE
============================================================ */

.waps-testing-path-notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;

  margin-bottom: 14px;
  padding: 13px 14px;

  border: 1px solid var(--waps-stroke);
  border-radius: 12px;

  color: var(--waps-muted);
  background: rgba(255, 255, 255, 0.028);
}

.waps-testing-path-notice[data-path="both"],
.waps-testing-path-notice[data-path="skt-pfe"] {
  color: var(--waps-teal);
  border-color: rgba(120, 222, 211, 0.30);
  background: var(--waps-teal-soft);
}

.waps-testing-path-notice[data-path="pfe-only"] {
  color: var(--waps-orange);
  border-color: rgba(243, 171, 80, 0.30);
  background: var(--waps-orange-soft);
}

.waps-testing-path-icon {
  display: grid;
  flex: 0 0 22px;
  place-items: center;

  width: 22px;
  height: 22px;
}

.waps-testing-path-icon svg {
  width: 20px;
  height: 20px;
}

.waps-testing-path-notice strong {
  display: block;
  color: currentColor;
  font-size: 11px;
  font-weight: 800;
}

.waps-testing-path-notice span span {
  display: block;
  margin-top: 2px;

  color: var(--waps-ink-soft);
  font-size: 10px;
  line-height: 1.4;
}


/* ============================================================
   14. TEST SCORE CARDS
============================================================ */

.waps-test-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#thewing-waps[data-testing-path="pfe-only"] .waps-test-score-grid {
  grid-template-columns: minmax(0, 1fr);
}

.waps-score-card {
  min-width: 0;
  padding: 16px;

  border: 1px solid var(--waps-stroke-soft);
  border-radius: var(--waps-radius-md);

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.042),
      rgba(255, 255, 255, 0.018)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.waps-score-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.waps-score-card-label {
  display: block;
  color: var(--waps-ink);
  font-size: 13px;
  font-weight: 800;
}

.waps-score-card-description {
  margin-top: 3px;
  color: var(--waps-muted);
  font-size: 10px;
  font-weight: 600;
}

.waps-score-maximum {
  color: var(--waps-muted);
  font-size: 12px;
  font-weight: 700;
}

.waps-score-value-row {
  display: flex;
  align-items: center;
  margin-top: 13px;
}

.waps-score-number {
  width: 100%;
  min-width: 0;
  padding: 0;

  border: 0;
  outline: 0;

  color: var(--waps-white);
  background: transparent;

  font-size: 31px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;

  appearance: textfield;
  -moz-appearance: textfield;
}

.waps-score-number::-webkit-inner-spin-button,
.waps-score-number::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.waps-range {
  --range-fill: 50%;
  --range-color: var(--waps-teal);

  width: 100%;
  height: 8px;
  padding: 0;
  margin: 17px 0 0;

  border: 0;
  border-radius: 999px;
  outline: none;

  appearance: none;
  -webkit-appearance: none;

  background:
    linear-gradient(
      90deg,
      var(--range-color) 0%,
      var(--range-color) var(--range-fill),
      rgba(255, 255, 255, 0.11) var(--range-fill),
      rgba(255, 255, 255, 0.11) 100%
    );

  cursor: pointer;
}

.waps-range-teal {
  --range-color: #7bd7df;
}

.waps-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: transparent;
}

.waps-range::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -6px;

  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;

  appearance: none;
  -webkit-appearance: none;

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #d7e4ec
    );

  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.34),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);

  cursor: grab;
}

.waps-range::-webkit-slider-thumb:active {
  cursor: grabbing;
}

.waps-range::-moz-range-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: transparent;
}

.waps-range::-moz-range-thumb {
  width: 20px;
  height: 20px;

  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #d7e4ec
    );

  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.34),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);

  cursor: grab;
}

.waps-range:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.waps-range-ticks {
  display: flex;
  justify-content: space-between;
  gap: 5px;

  margin-top: 7px;

  color: var(--waps-faint);
  font-size: 9px;
  font-weight: 600;
}

.waps-score-feedback {
  min-height: 16px;
  margin-top: 10px;

  color: var(--waps-muted);
  font-size: 10px;
  font-weight: 700;
}

.waps-score-feedback[data-status="pass"] {
  color: var(--waps-success);
}

.waps-score-feedback[data-status="warning"] {
  color: var(--waps-amber);
}

.waps-score-feedback[data-status="fail"] {
  color: var(--waps-danger);
}


/* ============================================================
   15. MINIMUM REQUIREMENTS NOTICE
============================================================ */

.waps-minimum-notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;

  margin-top: 14px;
  padding: 13px 14px;

  border: 1px solid var(--waps-stroke);
  border-radius: 12px;

  color: var(--waps-muted);
  background: rgba(255, 255, 255, 0.028);
}

.waps-minimum-notice[data-status="pass"] {
  color: var(--waps-success);
  border-color: rgba(147, 228, 178, 0.36);
  background: var(--waps-success-soft);
}

.waps-minimum-notice[data-status="warning"] {
  color: var(--waps-amber);
  border-color: rgba(241, 217, 137, 0.34);
  background: var(--waps-amber-soft);
}

.waps-minimum-notice[data-status="fail"] {
  color: var(--waps-danger);
  border-color: rgba(255, 155, 155, 0.34);
  background: var(--waps-danger-soft);
}

.waps-minimum-icon {
  display: grid;
  flex: 0 0 21px;
  place-items: center;

  width: 21px;
  height: 21px;
}

.waps-minimum-icon svg {
  width: 20px;
  height: 20px;
}

.waps-minimum-copy {
  display: block;
  min-width: 0;
}

.waps-minimum-copy strong {
  display: block;
  color: currentColor;
  font-size: 11px;
  font-weight: 800;
}

.waps-minimum-copy span {
  display: block;
  margin-top: 2px;

  color: var(--waps-ink-soft);
  font-size: 10px;
  line-height: 1.4;
}


/* ============================================================
   16. EPB SELECT CARDS
============================================================ */

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

.waps-select-card {
  min-width: 0;
  padding: 13px;

  border: 1px solid var(--waps-stroke-soft);
  border-radius: var(--waps-radius-md);

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.017)
    );
}

.waps-select-card-label {
  display: block;
  margin-bottom: 8px;

  color: var(--waps-muted);
  font-size: 10px;
  font-weight: 700;
}

.waps-select-shell,
.waps-text-shell,
.waps-number-shell {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;

  border: 1px solid var(--waps-stroke);
  border-radius: 10px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.021)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035);

  transition:
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.waps-select-shell:hover,
.waps-text-shell:hover,
.waps-number-shell:hover {
  border-color: var(--waps-stroke-strong);
}

.waps-select-shell:focus-within,
.waps-text-shell:focus-within,
.waps-number-shell:focus-within {
  border-color: rgba(120, 222, 211, 0.58);

  box-shadow:
    0 0 0 3px rgba(120, 222, 211, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.waps-select,
.waps-text-input,
.waps-number-input {
  width: 100%;
  min-width: 0;

  border: 0;
  outline: 0;

  color: var(--waps-ink);
  background: transparent;
}

.waps-select {
  min-height: 42px;
  padding: 0 36px 0 12px;

  appearance: none;
  -webkit-appearance: none;

  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.waps-select option {
  color: #0b2030;
  background: #f3f7fb;
}

.waps-select-arrow {
  position: absolute;
  top: 50%;
  right: 13px;

  width: 8px;
  height: 8px;
  margin-top: -6px;

  border-right:
    2px solid rgba(230, 242, 255, 0.55);

  border-bottom:
    2px solid rgba(230, 242, 255, 0.55);

  transform: rotate(45deg);
  pointer-events: none;
}

.waps-select-card-points {
  margin-top: 8px;

  color: var(--waps-muted);
  font-size: 10px;
  font-weight: 700;
}

.waps-select-card-points span {
  color: var(--waps-white);
  font-size: 13px;
  font-weight: 800;
}


/* ============================================================
   17. DECORATION QUANTITY INTERFACE
============================================================ */

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

.waps-decoration-item {
  display: flex;
  flex-direction: column;
  gap: 6px;

  min-width: 0;
  padding: 12px;

  border: 1px solid var(--waps-stroke-soft);
  border-radius: var(--waps-radius-md);

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.017)
    );
}

.waps-decoration-item-label {
  display: block;

  color: var(--waps-ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.waps-decoration-item-meta {
  color: var(--waps-muted);
  font-size: 10px;
  font-weight: 600;
}

.waps-decoration-qty-shell {
  display: flex;
  align-items: center;

  min-height: 40px;
  margin-top: 2px;

  border: 1px solid var(--waps-stroke);
  border-radius: 10px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.021)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035);

  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.waps-decoration-qty-shell:hover {
  border-color: var(--waps-stroke-strong);
}

.waps-decoration-qty-shell:focus-within {
  border-color: rgba(120, 222, 211, 0.58);

  box-shadow:
    0 0 0 3px rgba(120, 222, 211, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.waps-decoration-qty {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 12px;

  border: 0;
  outline: 0;

  color: var(--waps-white);
  background: transparent;

  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;

  appearance: textfield;
  -moz-appearance: textfield;
}

.waps-decoration-qty::-webkit-inner-spin-button,
.waps-decoration-qty::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.waps-additional-decorations {
  margin-top: 14px;

  border: 1px solid var(--waps-stroke);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.waps-additional-decorations-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 44px;
  padding: 10px 15px;

  color: var(--waps-ink-soft);
  font-size: 12px;
  font-weight: 700;

  cursor: pointer;
  list-style: none;
  user-select: none;
}

.waps-additional-decorations-summary::-webkit-details-marker {
  display: none;
}

.waps-additional-decorations-summary:hover {
  color: var(--waps-white);
  background: rgba(255, 255, 255, 0.025);
}

.waps-additional-decorations[open] .waps-advanced-arrow {
  transform: rotate(180deg);
}

.waps-decoration-grid-additional {
  padding: 0 14px 14px;

  border-top:
    1px solid var(--waps-stroke-soft);
}

.waps-additional-decorations[open] .waps-decoration-grid-additional {
  padding-top: 14px;
}

.waps-decoration-summary {
  margin-top: 14px;
  padding: 13px 14px;

  border: 1px solid var(--waps-stroke);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.028);
}

.waps-decoration-summary[data-cap-applied="true"] {
  border-color: rgba(241, 217, 137, 0.34);
  background: var(--waps-amber-soft);
}

.waps-decoration-summary-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.waps-decoration-summary-label {
  color: var(--waps-ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.waps-decoration-summary-value {
  color: var(--waps-muted);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.waps-decoration-summary-value strong {
  color: var(--waps-purple);
  font-size: 18px;
  font-weight: 800;
}

.waps-decoration-summary[data-cap-applied="true"]
.waps-decoration-summary-value strong {
  color: var(--waps-amber);
}

.waps-decoration-raw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-top: 10px;
  padding-top: 10px;

  border-top: 1px solid rgba(241, 217, 137, 0.22);

  color: var(--waps-ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.waps-decoration-raw-row strong {
  color: var(--waps-amber);
  font-size: 13px;
  font-weight: 800;
}

.waps-decoration-cap-notice {
  margin-top: 9px;

  color: var(--waps-amber);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.waps-decoration-help {
  margin: 10px 0 0;

  color: var(--waps-muted);
  font-size: 11px;
  line-height: 1.45;
}

.waps-decoration-summary[data-cap-applied="true"]
.waps-decoration-help {
  color: var(--waps-ink-soft);
}


/* ============================================================
   18. ADVANCED OPTIONS
============================================================ */

.waps-advanced {
  position: relative;
  z-index: 2;

  margin-top: 22px;

  border: 1px solid var(--waps-stroke);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.waps-advanced-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 48px;
  padding: 10px 15px;

  color: var(--waps-ink-soft);
  font-size: 12px;
  font-weight: 700;

  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.waps-advanced-summary:hover {
  color: var(--waps-white);
  background: rgba(255, 255, 255, 0.025);
}

.waps-advanced-arrow {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;

  transition: transform 180ms ease;
}

.waps-advanced-arrow svg {
  width: 100%;
  height: 100%;
}

.waps-advanced[open] .waps-advanced-arrow {
  transform: rotate(180deg);
}

.waps-advanced-content {
  padding: 18px;

  border-top:
    1px solid var(--waps-stroke-soft);
}

.waps-advanced-intro {
  margin: 0 0 17px;

  color: var(--waps-muted);
  font-size: 11px;
  line-height: 1.5;
}

.waps-advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.waps-field-group {
  min-width: 0;
}

.waps-field-wide {
  grid-column: 1 / -1;
}

.waps-field-label {
  display: block;
  margin-bottom: 7px;

  color: var(--waps-ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.waps-text-input {
  min-height: 42px;
  padding: 0 12px;

  font-size: 13px;
  font-weight: 700;
}

.waps-text-input-normal {
  text-transform: none;
}

.waps-text-input::placeholder,
.waps-number-input::placeholder {
  color: rgba(216, 231, 247, 0.35);
  font-weight: 600;
}

.waps-number-shell {
  min-height: 42px;
}

.waps-number-input {
  min-height: 40px;
  padding: 0 45px 0 12px;

  font-size: 14px;
  font-weight: 700;

  appearance: textfield;
  -moz-appearance: textfield;
}

.waps-number-input::-webkit-inner-spin-button,
.waps-number-input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.waps-number-suffix {
  position: absolute;
  right: 12px;

  color: var(--waps-faint);
  font-size: 10px;
  font-weight: 800;

  pointer-events: none;
}

.waps-toggle-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;

  min-height: 48px;
  padding: 10px 12px;

  border: 1px solid var(--waps-stroke);
  border-radius: 10px;

  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.waps-toggle-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.waps-toggle-control {
  position: relative;
  flex: 0 0 34px;

  width: 34px;
  height: 19px;

  border: 1px solid var(--waps-stroke-strong);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.07);

  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.waps-toggle-control::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;

  width: 13px;
  height: 13px;

  border-radius: 50%;
  background: rgba(236, 244, 252, 0.76);

  transition:
    transform 160ms ease,
    background 160ms ease;
}

.waps-toggle-row input:checked + .waps-toggle-control {
  border-color: rgba(120, 222, 211, 0.74);
  background: rgba(120, 222, 211, 0.34);
}

.waps-toggle-row input:checked + .waps-toggle-control::after {
  transform: translateX(15px);
  background: #f5fffe;
}

.waps-toggle-copy {
  color: var(--waps-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.waps-cutoff-result {
  margin-top: 15px;
  padding: 11px 12px;

  border: 1px solid var(--waps-stroke-soft);
  border-radius: 10px;

  color: var(--waps-muted);
  background: rgba(255, 255, 255, 0.02);

  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.waps-cutoff-result[data-status="above"] {
  color: var(--waps-success);
  border-color: rgba(147, 228, 178, 0.3);
  background: var(--waps-success-soft);
}

.waps-cutoff-result[data-status="below"] {
  color: var(--waps-danger);
  border-color: rgba(255, 155, 155, 0.3);
  background: var(--waps-danger-soft);
}

.waps-cutoff-result[data-status="match"] {
  color: var(--waps-amber);
  border-color: rgba(241, 217, 137, 0.3);
  background: var(--waps-amber-soft);
}


/* ============================================================
   19. RESULT PANEL HEADER
============================================================ */

.waps-reset-button {
  min-height: 36px;
  padding: 8px 11px;

  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}


/* ============================================================
   20. RESULT EMPTY STATE
============================================================ */

.waps-result-empty-state {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 560px;
  padding: 40px 24px;

  color: var(--waps-muted);
  text-align: center;
}

.waps-result-empty-icon {
  display: grid;
  place-items: center;

  width: 110px;
  height: 110px;
  margin-bottom: 22px;

  border: 1px solid rgba(133, 212, 244, 0.18);
  border-radius: 50%;

  color: var(--waps-blue);

  background:
    radial-gradient(
      circle,
      rgba(133, 212, 244, 0.10),
      rgba(133, 212, 244, 0.018)
    );

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.18);
}

.waps-result-empty-icon svg {
  width: 66px;
  height: 66px;
}

.waps-result-empty-state strong {
  color: var(--waps-white);
  font-size: 19px;
  font-weight: 800;
}

.waps-result-empty-state > span:last-child {
  max-width: 400px;
  margin-top: 7px;

  color: var(--waps-muted);
  font-size: 12px;
  line-height: 1.55;
}


/* ============================================================
   21. RESULT CONTENT AND SCORE HERO
============================================================ */

.waps-result-content {
  position: relative;
  z-index: 2;
}

.waps-result-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
  align-items: center;

  padding: 25px 0 22px;
}

.waps-score-ring {
  --score-percent: 0;

  position: relative;
  display: grid;
  place-items: center;

  width: 280px;
  height: 280px;

  border-radius: 50%;

  background:
    conic-gradient(
      from -90deg,
      #87e1ef 0%,
      #79e0cf calc(var(--score-percent) * 0.72%),
      #85dca8 calc(var(--score-percent) * 0.92%),
      #f0d382 calc(var(--score-percent) * 1%),
      rgba(255, 255, 255, 0.095) calc(var(--score-percent) * 1%),
      rgba(255, 255, 255, 0.095) 100%
    );

  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.27),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.waps-score-ring::before {
  content: "";
  position: absolute;
  inset: 16px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;

  background:
    radial-gradient(
      circle at 34% 23%,
      rgba(255, 255, 255, 0.075),
      transparent 36%
    ),
    rgba(10, 31, 48, 0.96);

  box-shadow:
    inset 0 12px 26px rgba(255, 255, 255, 0.018),
    inset 0 -14px 28px rgba(0, 0, 0, 0.19);
}

.waps-score-ring-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.waps-total-score {
  color: var(--waps-white);
  font-size: 57px;
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.waps-total-maximum {
  margin-top: 11px;
  color: var(--waps-muted);
  font-size: 15px;
  font-weight: 500;
}

.waps-total-maximum strong {
  color: var(--waps-white);
  font-weight: 800;
}

.waps-result-summary {
  min-width: 0;
}

.waps-result-status {
  display: flex;
  align-items: flex-start;
  gap: 11px;

  padding-bottom: 19px;
  margin-bottom: 18px;

  border-bottom:
    1px solid var(--waps-stroke-soft);

  color: var(--waps-muted);
}

.waps-result-status[data-status="pass"] {
  color: var(--waps-success);
}

.waps-result-status[data-status="warning"] {
  color: var(--waps-amber);
}

.waps-result-status[data-status="fail"] {
  color: var(--waps-danger);
}

.waps-result-status-icon {
  display: grid;
  flex: 0 0 25px;
  place-items: center;

  width: 25px;
  height: 25px;
}

.waps-result-status-icon svg {
  width: 23px;
  height: 23px;
}

.waps-result-status strong {
  display: block;

  color: currentColor;
  font-size: 15px;
  font-weight: 800;
}

.waps-result-status span span {
  display: block;
  margin-top: 5px;

  color: var(--waps-ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.waps-component-summary {
  display: grid;
  gap: 13px;

  padding: 0;
  margin: 0;
}

.waps-component-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.waps-component-summary-row dt,
.waps-component-summary-row dd {
  margin: 0;
}

.waps-component-summary-row dt {
  color: var(--waps-ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.waps-component-summary-row dd {
  color: var(--waps-muted);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.waps-component-summary-row dd strong {
  color: var(--waps-blue);
  font-size: 15px;
  font-weight: 800;
}

.waps-component-summary-row:nth-child(2) dd strong {
  color: var(--waps-green);
}

.waps-component-summary-row:nth-child(3) dd strong {
  color: var(--waps-purple);
}

.waps-total-row {
  padding-top: 13px;
  margin-top: 3px;

  border-top:
    1px solid var(--waps-stroke-strong);
}

.waps-total-row dt {
  color: var(--waps-white);
  font-size: 15px;
  font-weight: 800;
}

.waps-total-row dd strong {
  color: var(--waps-white);
  font-size: 22px;
}


/* ============================================================
   22. WHAT THIS MEANS
============================================================ */

.waps-meaning-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;

  padding: 16px;

  border: 1px solid rgba(87, 180, 237, 0.3);
  border-radius: var(--waps-radius-md);

  background:
    linear-gradient(
      135deg,
      rgba(32, 112, 163, 0.13),
      rgba(32, 112, 163, 0.045)
    );
}

.waps-meaning-icon {
  display: grid;
  flex: 0 0 28px;
  place-items: center;

  width: 28px;
  height: 28px;

  border: 1px solid rgba(106, 210, 255, 0.35);
  border-radius: 50%;

  color: var(--waps-blue);
  background: rgba(106, 210, 255, 0.09);
}

.waps-meaning-icon svg {
  width: 17px;
  height: 17px;
}

.waps-meaning-title {
  margin: 0;

  color: var(--waps-blue);
  font-size: 14px;
  font-weight: 800;
}

.waps-meaning-card p {
  margin: 5px 0 0;

  color: var(--waps-ink-soft);
  font-size: 11px;
  line-height: 1.55;
}


/* ============================================================
   23. COMPONENT BREAKDOWN
============================================================ */

.waps-breakdown-card {
  margin-top: 16px;

  border: 1px solid var(--waps-stroke);
  border-radius: var(--waps-radius-md);

  background: rgba(255, 255, 255, 0.022);
  overflow: hidden;
}

.waps-breakdown-heading {
  padding: 14px 15px;
  margin: 0;

  border-bottom:
    1px solid var(--waps-stroke-soft);

  color: var(--waps-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.waps-breakdown-list {
  display: grid;
  gap: 15px;
  padding: 15px;
}

.waps-breakdown-item {
  min-width: 0;
}

.waps-breakdown-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;

  color: var(--waps-ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.waps-breakdown-top > span:first-child {
  min-width: 0;
}

.waps-breakdown-top > span:last-child {
  flex: 0 0 auto;
  color: var(--waps-muted);
  text-align: right;
}

.waps-breakdown-top strong {
  color: var(--waps-white);
  font-weight: 800;
}

.waps-progress-track {
  position: relative;

  height: 7px;
  margin-top: 8px;

  border-radius: 999px;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.09);
}

.waps-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;

  width: 0;
  max-width: 100%;

  border-radius: inherit;

  transition: width 230ms ease;
}

.waps-progress-blue {
  background:
    linear-gradient(
      90deg,
      #62b8e8,
      #88d8f6
    );
}

.waps-progress-orange {
  background:
    linear-gradient(
      90deg,
      #e88a35,
      #f4b24f
    );
}

.waps-progress-green {
  background:
    linear-gradient(
      90deg,
      #68b788,
      #8ad9a8
    );
}

.waps-progress-purple {
  background:
    linear-gradient(
      90deg,
      #8d68d0,
      #bb91f2
    );
}


/* ============================================================
   24. RESULT ACTIONS
============================================================ */

.waps-result-actions {
  display: flex;
  justify-content: flex-end;

  margin-top: 15px;
}

.waps-copy-button {
  min-height: 39px;
  padding: 9px 13px;

  font-size: 11px;
  font-weight: 700;
}


/* ============================================================
   25. FOOTER
============================================================ */

.waps-footer {
  margin-top: 18px;
}

.waps-footer-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: max-content;
  max-width: 100%;
  min-height: 43px;

  padding: 10px 18px;
  margin: 0 auto;

  border: 1px solid rgba(124, 192, 225, 0.16);
  border-radius: 999px;

  color: var(--waps-muted);
  background: rgba(7, 28, 43, 0.64);

  box-shadow:
    var(--waps-shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);

  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);

  font-size: 11px;
  line-height: 1.4;
}

.waps-footer-icon {
  display: grid;
  flex: 0 0 18px;
  place-items: center;

  width: 18px;
  height: 18px;

  color: var(--waps-blue);
}

.waps-footer-icon svg {
  width: 17px;
  height: 17px;
}

.waps-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 15px 4px 0;

  color: var(--waps-faint);
  font-size: 10px;
  font-weight: 700;
}


/* ============================================================
   26. HELP DIALOG
============================================================ */

.waps-dialog {
  width: min(650px, calc(100% - 30px));
  max-height: min(760px, calc(100vh - 40px));

  padding: 0;
  border: 0;
  border-radius: 21px;

  color: var(--waps-ink);
  background: transparent;

  overflow: visible;
}

.waps-dialog::backdrop {
  background: rgba(1, 9, 16, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.waps-dialog-surface {
  max-height: min(760px, calc(100vh - 40px));
  padding: 22px;

  border: 1px solid var(--waps-stroke-strong);
  border-radius: 21px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.018)
    ),
    rgba(8, 29, 45, 0.97);

  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);

  overflow: auto;
}

.waps-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;

  padding-bottom: 16px;

  border-bottom:
    1px solid var(--waps-stroke-soft);
}

.waps-dialog-title {
  margin: 5px 0 0;

  color: var(--waps-white);

  font-family:
    "Gilda Display",
    Georgia,
    serif;

  font-size: 28px;
  font-weight: 400;
  line-height: 1.08;
}

.waps-dialog-close {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;
  padding: 0;

  border: 1px solid var(--waps-stroke);
  border-radius: 10px;

  color: var(--waps-muted);
  background: rgba(255, 255, 255, 0.03);

  cursor: pointer;
}

.waps-dialog-close:hover {
  color: var(--waps-white);
  border-color: var(--waps-stroke-strong);
  background: rgba(255, 255, 255, 0.06);
}

.waps-dialog-close svg {
  width: 18px;
  height: 18px;
}

.waps-dialog-content {
  display: grid;
  gap: 15px;
  padding: 19px 0;
}

.waps-dialog-content section {
  padding: 14px;

  border: 1px solid var(--waps-stroke-soft);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.022);
}

.waps-dialog-content h3 {
  margin: 0;

  color: var(--waps-teal-bright);
  font-size: 13px;
  font-weight: 800;
}

.waps-dialog-content p {
  margin: 7px 0 0;

  color: var(--waps-ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.waps-dialog-done {
  width: 100%;
  min-height: 44px;

  color: #06201b;
  border-color: rgba(120, 222, 211, 0.5);

  background:
    linear-gradient(
      135deg,
      #a4eee0,
      #72d7ca
    );

  font-size: 12px;
  font-weight: 800;
}

.waps-dialog-done:hover {
  color: #041914;

  background:
    linear-gradient(
      135deg,
      #b7f6ea,
      #83e2d4
    );
}


/* ============================================================
   27. NOSCRIPT
============================================================ */

.waps-noscript {
  position: relative;
  z-index: 20;

  width: min(680px, calc(100% - 30px));
  margin: 20px auto;
  padding: 14px 16px;

  border: 1px solid rgba(255, 155, 155, 0.32);
  border-radius: 12px;

  color: var(--waps-danger);
  background: var(--waps-danger-soft);

  font-size: 13px;
  font-weight: 700;
  text-align: center;
}


/* ============================================================
   28. STATE AND TRANSITION CLASSES
============================================================ */

#thewing-waps[data-ready="false"] .waps-total-score,
#thewing-waps[data-ready="false"] .waps-score-number {
  font-variant-numeric: tabular-nums;
}

#thewing-waps.is-calculating .waps-score-ring {
  animation:
    waps-score-pulse
    760ms
    ease-in-out
    infinite
    alternate;
}

#thewing-waps .is-hidden {
  display: none !important;
}

#thewing-waps .is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

@keyframes waps-score-pulse {
  from {
    filter: brightness(0.97);
  }

  to {
    filter: brightness(1.07);
  }
}


/* ============================================================
   29. LARGE DESKTOP
============================================================ */

@media (min-width: 1500px) {
  .waps-container {
    width: min(1510px, calc(100% - 72px));
  }

  .waps-calculator-grid {
    grid-template-columns:
      minmax(0, 0.96fr)
      minmax(510px, 1.04fr);
  }
}


/* ============================================================
   30. STANDARD DESKTOP
============================================================ */

@media (max-width: 1240px) {
  .waps-container {
    width: min(100% - 36px, 1480px);
  }

  .waps-calculator-grid {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(420px, 0.93fr);
  }

  .waps-result-hero {
    grid-template-columns:
      230px
      minmax(0, 1fr);

    gap: 24px;
  }

  .waps-score-ring {
    width: 230px;
    height: 230px;
  }

  .waps-total-score {
    font-size: 48px;
  }

  .waps-epb-grid {
    grid-template-columns: 1fr;
  }

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


/* ============================================================
   31. TABLET
============================================================ */

@media (max-width: 980px) {
  .waps-container {
    width: min(100% - 28px, 1480px);
  }

  .waps-calculator-grid {
    grid-template-columns: 1fr;
  }

  .waps-input-panel {
    grid-row: 1;
  }

  .waps-result-panel {
    grid-row: 2;
  }

  .waps-result-hero {
    grid-template-columns:
      260px
      minmax(0, 1fr);
  }

  .waps-score-ring {
    width: 260px;
    height: 260px;
  }

  .waps-total-score {
    font-size: 53px;
  }

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

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

  .waps-result-empty-state {
    min-height: 370px;
  }
}


/* ============================================================
   32. SMALL TABLET
============================================================ */

@media (max-width: 760px) {
  .waps-container {
    width: min(100% - 18px, 1480px);
    padding-top: 14px;
  }

  .waps-input-panel,
  .waps-result-panel {
    padding: 19px;
  }

  .waps-result-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .waps-result-summary {
    width: 100%;
    text-align: left;
  }

  .waps-result-status {
    justify-content: center;
    text-align: left;
  }

  .waps-score-ring {
    width: 245px;
    height: 245px;
  }

  .waps-total-score {
    font-size: 50px;
  }

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

  .waps-epb-grid {
    grid-template-columns: 1fr;
  }

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

  .waps-advanced-grid {
    grid-template-columns: 1fr;
  }

  .waps-field-wide {
    grid-column: auto;
  }
}


/* ============================================================
   33. MOBILE
============================================================ */

@media (max-width: 560px) {
  .waps-container {
    width: min(100% - 12px, 1480px);
    padding-bottom: 20px;
  }

  .waps-calculator-grid {
    gap: 13px;
  }

  .waps-input-panel,
  .waps-result-panel {
    padding: 16px 14px;
    border-radius: 19px;
  }

  .waps-panel-heading,
  .waps-result-heading {
    padding-bottom: 13px;
  }

  .waps-panel-title {
    font-size: 23px;
  }

  .waps-reset-button > span:last-child {
    display: none;
  }

  .waps-reset-button {
    width: 36px;
    padding: 0;
  }

  .waps-input-section {
    padding-top: 17px;
  }

  .waps-input-section + .waps-input-section {
    margin-top: 16px;
  }

  .waps-section-heading {
    margin-bottom: 9px;
  }

  .waps-section-label {
    font-size: 12px;
  }

  .waps-section-qualifier {
    font-size: 10px;
  }

  .waps-cafsc-search-shell {
    min-height: 54px;
  }

  .waps-cafsc-input {
    min-height: 52px;
    padding-left: 44px;
    font-size: 14px;
  }

  .waps-cafsc-search-icon {
    left: 14px;
  }

  .waps-score-card {
    padding: 14px;
  }

  .waps-score-number {
    font-size: 28px;
  }

  .waps-decoration-grid {
    grid-template-columns: 1fr;
  }

  .waps-result-empty-state {
    min-height: 320px;
  }

  .waps-result-empty-icon {
    width: 90px;
    height: 90px;
  }

  .waps-result-empty-icon svg {
    width: 56px;
    height: 56px;
  }

  .waps-result-hero {
    gap: 21px;
    padding-top: 21px;
  }

  .waps-score-ring {
    width: 220px;
    height: 220px;
  }

  .waps-total-score {
    font-size: 45px;
  }

  .waps-total-maximum {
    font-size: 13px;
  }

  .waps-component-summary-row dt,
  .waps-component-summary-row dd {
    font-size: 11px;
  }

  .waps-total-row dt {
    font-size: 13px;
  }

  .waps-total-row dd strong {
    font-size: 19px;
  }

  .waps-breakdown-top {
    font-size: 10px;
  }

  .waps-footer-notice {
    align-items: flex-start;
    width: 100%;
    border-radius: 15px;
  }

  .waps-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .waps-dialog {
    width: calc(100% - 16px);
  }

  .waps-dialog-surface {
    padding: 17px;
    border-radius: 17px;
  }

  .waps-dialog-title {
    font-size: 24px;
  }
}


/* ============================================================
   34. VERY SMALL MOBILE
============================================================ */

@media (max-width: 390px) {
  .waps-score-ring {
    width: 205px;
    height: 205px;
  }

  .waps-total-score {
    font-size: 41px;
  }

  .waps-component-summary-row {
    gap: 8px;
  }

}


/* ============================================================
   35. NON-HOVER DEVICES
============================================================ */

@media (hover: none) {
  .waps-reset-button:hover,
  .waps-copy-button:hover,
  .waps-dialog-done:hover {
    transform: none;
  }
}


/* ============================================================
   36. REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #thewing-waps *,
  #thewing-waps *::before,
  #thewing-waps *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


/* ============================================================
   37. PRINT
============================================================ */

@media print {
  @page {
    margin: 0.5in;
  }

  html,
  body {
    color: #111827;
    background: #ffffff !important;
  }

  #thewing-waps {
    min-height: auto;
    overflow: visible;
    color: #111827;
    background: #ffffff !important;
  }

  .waps-background,
  .waps-reset-button,
  .waps-copy-button,
  .waps-info-button,
  .waps-range,
  .waps-advanced,
  .waps-dialog,
  .waps-noscript {
    display: none !important;
  }

  .waps-container {
    width: 100%;
    padding: 0;
  }

  .waps-panel-eyebrow,
  .waps-panel-title,
  .waps-section-label,
  .waps-section-number,
  .waps-section-qualifier,
  .waps-section-description,
  .waps-score-card-label,
  .waps-score-card-description,
  .waps-score-number,
  .waps-score-maximum,
  .waps-select-card-label,
  .waps-select-card-points,
  .waps-decoration-help,
  .waps-decoration-item-label,
  .waps-decoration-item-meta,
  .waps-decoration-summary-label,
  .waps-decoration-summary-value,
  .waps-decoration-raw-row,
  .waps-decoration-cap-notice,
  .waps-total-score,
  .waps-total-maximum,
  .waps-component-summary-row dt,
  .waps-component-summary-row dd,
  .waps-result-status,
  .waps-result-status span span,
  .waps-meaning-title,
  .waps-meaning-card p,
  .waps-breakdown-heading,
  .waps-breakdown-top,
  .waps-footer-notice,
  .waps-footer-bottom {
    color: #111827 !important;
  }

  .waps-calculator-grid {
    display: block;
  }

  .waps-panel {
    margin-bottom: 18px;

    border-color: #d1d5db !important;
    background: #ffffff !important;
    box-shadow: none !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .waps-panel::before {
    display: none;
  }

  .waps-result-panel {
    break-inside: avoid;
  }

  .waps-score-card,
  .waps-select-card,
  .waps-decoration-item,
  .waps-decoration-summary,
  .waps-additional-decorations,
  .waps-minimum-notice,
  .waps-testing-path-notice,
  .waps-meaning-card,
  .waps-breakdown-card {
    border-color: #d1d5db !important;
    background: #ffffff !important;
  }

  .waps-score-ring {
    border: 13px solid #9ca3af;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  .waps-score-ring::before {
    border-color: #d1d5db;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  .waps-progress-track {
    border: 1px solid #d1d5db;
    background: #f3f4f6;
  }

  .waps-progress-fill {
    background: #6b7280 !important;
  }

  .waps-footer {
    break-inside: avoid;
  }
}
