.swwhc-app,
.swwhc-app * {
  box-sizing: border-box;
}

.swwhc-app {
  --swwhc-navy: #10233f;
  --swwhc-blue: #245fa7;
  --swwhc-blue-soft: #eaf3ff;
  --swwhc-green: #16805b;
  --swwhc-green-soft: #e7f8f0;
  --swwhc-amber: #9a6700;
  --swwhc-amber-soft: #fff6d8;
  --swwhc-red: #b42318;
  --swwhc-red-soft: #fff0ee;
  --swwhc-ink: #172033;
  --swwhc-muted: #687386;
  --swwhc-line: #dfe5ee;
  --swwhc-surface: #ffffff;
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 52px;
  color: var(--swwhc-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.swwhc-app button,
.swwhc-app input,
.swwhc-app select {
  font: inherit;
}

.swwhc-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 235px;
  padding: 42px 46px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 88% 0%, rgba(56, 142, 255, .38), transparent 34%),
    radial-gradient(circle at 8% 110%, rgba(26, 173, 121, .28), transparent 34%),
    linear-gradient(135deg, #0d1d35 0%, #173b68 66%, #1e5593 100%);
  box-shadow: 0 24px 65px rgba(18, 49, 86, .19);
}

.swwhc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .2;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent, #000);
}

.swwhc-hero > * {
  position: relative;
  z-index: 1;
}

.swwhc-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #9fc8ff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .11em;
}

.swwhc-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.swwhc-hero p {
  max-width: 715px;
  margin: 16px 0 0;
  color: #d9e8fa;
  font-size: 17px;
}

.swwhc-local-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(9, 29, 53, .38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  color: #e9f5ff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.swwhc-local-badge span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4bd19b;
  color: #083f2c;
}

.swwhc-scope-note {
  margin: 18px 0;
  padding: 13px 16px;
  border: 1px solid #bcd8fa;
  border-radius: 13px;
  background: var(--swwhc-blue-soft);
  color: #27496f;
  font-size: 13px;
}

.swwhc-scope-note strong {
  color: #153f6f;
}

.swwhc-calculator {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 18px;
}

.swwhc-panel,
.swwhc-rates {
  border: 1px solid var(--swwhc-line);
  border-radius: 20px;
  background: var(--swwhc-surface);
  box-shadow: 0 14px 42px rgba(31, 53, 79, .08);
}

.swwhc-panel {
  padding: 24px;
}

.swwhc-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}

.swwhc-panel-head > span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--swwhc-blue-soft);
  color: var(--swwhc-blue);
  font-size: 13px;
  font-weight: 900;
}

.swwhc-panel-head h2,
.swwhc-section-title h2 {
  margin: 0;
  color: var(--swwhc-navy);
  font-size: 19px;
  line-height: 1.25;
}

.swwhc-panel-head p {
  margin: 3px 0 0;
  color: var(--swwhc-muted);
  font-size: 12px;
}

.swwhc-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
}

.swwhc-field-grid label {
  display: block;
  margin: 0;
}

.swwhc-field-grid label > span {
  display: block;
  margin: 0 0 6px;
  color: #37445a;
  font-size: 12px;
  font-weight: 800;
}

.swwhc-field-grid input,
.swwhc-field-grid select {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #cfd7e4;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: var(--swwhc-ink);
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.swwhc-field-grid input:focus,
.swwhc-field-grid select:focus {
  border-color: #4b8ed8;
  box-shadow: 0 0 0 3px rgba(36, 95, 167, .13);
}

.swwhc-input-unit {
  display: flex;
  position: relative;
}

.swwhc-input-unit input {
  padding-right: 45px;
}

.swwhc-input-unit b {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--swwhc-muted);
  font-size: 11px;
  pointer-events: none;
}

.swwhc-field-grid small {
  display: block;
  margin-top: 5px;
  color: var(--swwhc-muted);
  font-size: 10px;
  line-height: 1.35;
}

.swwhc-actions {
  display: flex;
  gap: 9px;
  margin-top: 22px;
}

.swwhc-primary,
.swwhc-secondary,
.swwhc-copy {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.swwhc-primary {
  border: 1px solid var(--swwhc-green);
  background: var(--swwhc-green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 128, 91, .2);
}

.swwhc-secondary,
.swwhc-copy {
  border: 1px solid #cdd7e5;
  background: #fff;
  color: #34445b;
}

.swwhc-primary:hover,
.swwhc-secondary:hover,
.swwhc-copy:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(31, 53, 79, .13);
}

.swwhc-copy:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.swwhc-formula {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--swwhc-line);
  color: var(--swwhc-muted);
  font-size: 11px;
}

.swwhc-formula strong {
  color: #38465b;
}

.swwhc-status {
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid #dce3ec;
  border-radius: 11px;
  font-size: 12px;
}

.swwhc-status.is-neutral {
  background: #f6f8fb;
  color: var(--swwhc-muted);
}

.swwhc-status.is-success {
  border-color: #aee3ce;
  background: var(--swwhc-green-soft);
  color: #0b6948;
}

.swwhc-status.is-error {
  border-color: #f4b9b3;
  background: var(--swwhc-red-soft);
  color: var(--swwhc-red);
}

.swwhc-status strong {
  display: block;
  margin-bottom: 2px;
}

.swwhc-status ul {
  margin: 5px 0 0 18px;
  padding: 0;
}

.swwhc-total {
  margin-bottom: 14px;
  padding: 20px;
  border-radius: 17px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 15%, rgba(87, 157, 244, .4), transparent 30%),
    linear-gradient(135deg, #10243f, #205690);
}

.swwhc-total span,
.swwhc-total small {
  display: block;
  color: #c9dff7;
}

.swwhc-total span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.swwhc-total strong {
  display: block;
  margin: 4px 0;
  color: #fff;
  font-size: 34px;
  line-height: 1.2;
}

.swwhc-total small {
  font-size: 11px;
}

.swwhc-breakdown {
  overflow: hidden;
  border: 1px solid var(--swwhc-line);
  border-radius: 13px;
}

.swwhc-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf0f5;
  font-size: 12px;
}

.swwhc-breakdown > div:last-child {
  border-bottom: 0;
}

.swwhc-breakdown span {
  color: var(--swwhc-muted);
}

.swwhc-breakdown strong {
  color: #26364b;
  text-align: right;
}

.swwhc-breakdown .is-highlight {
  background: var(--swwhc-green-soft);
}

.swwhc-breakdown .is-highlight span,
.swwhc-breakdown .is-highlight strong {
  color: #0b6948;
}

.swwhc-copy {
  width: 100%;
  margin-top: 13px;
}

.swwhc-rates {
  margin-top: 18px;
  padding: 24px;
}

.swwhc-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.swwhc-section-title span {
  display: block;
  margin-bottom: 3px;
  color: var(--swwhc-blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}

.swwhc-section-title small {
  color: var(--swwhc-muted);
  font-size: 10px;
}

.swwhc-rate-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.swwhc-rate-grid > div {
  min-height: 94px;
  padding: 13px;
  border: 1px solid #e2e7ef;
  border-radius: 12px;
  background: #f8fafc;
}

.swwhc-rate-grid span,
.swwhc-rate-grid strong {
  display: block;
}

.swwhc-rate-grid span {
  min-height: 36px;
  color: var(--swwhc-muted);
  font-size: 10px;
}

.swwhc-rate-grid strong {
  margin-top: 7px;
  color: var(--swwhc-navy);
  font-size: 20px;
}

.swwhc-step-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.swwhc-step-strip span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--swwhc-blue-soft);
  color: #34597f;
  font-size: 10px;
}

.swwhc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 4px 0;
  color: var(--swwhc-muted);
  font-size: 10px;
}

.swwhc-footer p {
  margin: 0;
}

.swwhc-footer p:first-child {
  max-width: 720px;
}

.swwhc-footer p:last-child {
  display: flex;
  gap: 7px;
  flex: 0 0 auto;
}

.swwhc-footer a {
  color: var(--swwhc-blue);
  font-weight: 700;
  text-decoration: none;
}

.swwhc-dependency {
  max-width: 860px;
  margin: 32px auto;
  padding: 16px 18px;
  border: 1px solid #f1c6c2;
  border-radius: 12px;
  background: #fff3f1;
  color: #8c2f27;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

@media (max-width: 980px) {
  .swwhc-calculator {
    grid-template-columns: 1fr;
  }

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

  .swwhc-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .swwhc-app {
    width: min(100% - 20px, 1180px);
    margin-top: 16px;
  }

  .swwhc-hero {
    display: block;
    min-height: 0;
    padding: 30px 24px;
    border-radius: 18px;
  }

  .swwhc-hero p {
    font-size: 14px;
  }

  .swwhc-local-badge {
    margin-top: 20px;
  }

  .swwhc-panel,
  .swwhc-rates {
    padding: 18px;
    border-radius: 16px;
  }

  .swwhc-field-grid {
    grid-template-columns: 1fr;
  }

  .swwhc-actions {
    flex-wrap: wrap;
  }

  .swwhc-primary,
  .swwhc-secondary {
    flex: 1;
  }

  .swwhc-section-title {
    display: block;
  }

  .swwhc-section-title small {
    display: block;
    margin-top: 5px;
  }

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

@media (max-width: 420px) {
  .swwhc-rate-grid {
    grid-template-columns: 1fr;
  }

  .swwhc-rate-grid > div {
    min-height: 0;
  }

  .swwhc-rate-grid span {
    min-height: 0;
  }
}

