.iwfc {
  --iwfc-primary: #005b8f;
  --iwfc-accent: #ff7a2f;
  --iwfc-navy: #032b40;
  --iwfc-header-bg: #032b40;
  --iwfc-header-heading: #ffffff;
  --iwfc-header-text: #ffffff;
  --iwfc-header-eyebrow: #9cc7dc;
  --iwfc-ink: #17394b;
  --iwfc-muted: #607482;
  --iwfc-line: #d9e2e7;
  --iwfc-soft: #f3f6f8;
  --iwfc-button-primary-bg: #4e98f7;
  --iwfc-button-primary-text: #ffffff;
  --iwfc-button-primary-border: #4e98f7;
  --iwfc-button-secondary-bg: #ffffff;
  --iwfc-button-secondary-text: #17394b;
  --iwfc-button-secondary-border: #4e98f7;
  --iwfc-white: #fff;
  color: var(--iwfc-ink);
  font-family: inherit;
  line-height: 1.55;
  margin: 1.5rem auto;
  max-width: 1180px;
}
.iwfc *, .iwfc *::before, .iwfc *::after { box-sizing: border-box; }
.iwfc [hidden] { display: none !important; }
.iwfc__hero {
  align-items: center;
  background: var(--iwfc-header-bg);
  color: var(--iwfc-header-text);
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.2fr 1fr;
  padding: clamp(2rem, 5vw, 4.5rem);
}
.iwfc__hero h2 { color: var(--iwfc-header-heading); font-size: clamp(2rem, 5vw, 4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin: 0; }
.iwfc__hero p { color: var(--iwfc-header-text); font-size: 1.05rem; margin: 0; }
.iwfc__eyebrow { color: var(--iwfc-header-eyebrow); font-size: .82rem !important; font-weight: 700; letter-spacing: .14em; margin-bottom: .8rem !important; text-transform: uppercase; }
.iwfc__app { background: #fff; border: 1px solid var(--iwfc-line); border-top: 0; padding: clamp(1rem, 3vw, 2.25rem); }
.iwfc__tabs { background: var(--iwfc-soft); border-radius: 999px; display: grid; gap: .3rem; grid-template-columns: repeat(3, 1fr); margin: 0 auto 2rem; max-width: 850px; padding: .3rem; }
.iwfc__tab, .iwfc__state-tab { appearance: none; background: transparent; border: 1px solid transparent; border-radius: 999px; color: #566b78; cursor: pointer; font: inherit; font-size: .86rem; font-weight: 750; letter-spacing: .01em; padding: .8rem 1rem; transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease; }
.iwfc__tab.is-active, .iwfc__state-tab.is-active { background: #fff; border-color: rgba(3,43,64,.08); box-shadow: 0 2px 8px rgba(0,0,0,.12); color: #071f2c; }
.iwfc__panel { max-width: 960px; margin: 0 auto; }
.iwfc label, .iwfc legend { color: #17394b; font-size: .9rem; font-weight: 650; }
.iwfc input, .iwfc select { background: #fff; border: 1px solid #8499a6; border-radius: 4px; color: #17394b; font: inherit; min-height: 46px; padding: .65rem .75rem; width: 100%; }
.iwfc input:focus, .iwfc select:focus, .iwfc button:focus-visible, .iwfc summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--iwfc-button-primary-bg) 38%, transparent); outline-offset: 2px; }
.iwfc__quick { margin: 0 0 1.4rem; }
.iwfc__quick label { display: block; margin-bottom: .45rem; }
.iwfc__quick input { font-size: 1.05rem; min-height: 56px; }
.iwfc__grid { display: grid; gap: 1rem; }
.iwfc__grid--main { grid-template-columns: .75fr 1fr 1fr; }
.iwfc__grid--advanced { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.iwfc__grid--reverse { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.iwfc__grid--finder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.iwfc__field label { display: block; margin-bottom: .4rem; }
.iwfc__part { border: 1px solid var(--iwfc-line); border-radius: 8px; margin: 0; padding: .7rem 1rem 1rem; }
.iwfc__part legend { padding: 0 .35rem; }
.iwfc__select-pair { display: grid; gap: .6rem; grid-template-columns: 1.35fr 1fr; }
.iwfc__select-pair label span { display: block; font-size: .75rem; font-weight: 500; margin-bottom: .25rem; }
.iwfc__input-unit { align-items: stretch; display: flex; }
.iwfc__input-unit input { border-bottom-right-radius: 0; border-top-right-radius: 0; }
.iwfc__input-unit span { align-items: center; background: var(--iwfc-soft); border: 1px solid #8499a6; border-left: 0; border-radius: 0 4px 4px 0; color: #49616e; display: flex; font-size: .82rem; padding: 0 .65rem; white-space: nowrap; }
.iwfc__advanced { display: grid; gap: .7rem; margin-top: 1.25rem; }
.iwfc__advanced details, .iwfc__faq details { background: var(--iwfc-soft); border: 1px solid var(--iwfc-line); border-radius: 8px; padding: .85rem 1rem; }
.iwfc__advanced summary, .iwfc__faq summary { color: #17394b; cursor: pointer; font-weight: 750; }
.iwfc__advanced p { color: var(--iwfc-muted); font-size: .88rem; margin: .6rem 0 .9rem; }
.iwfc__actions { display: flex; gap: .7rem; justify-content: flex-end; margin-top: 1.3rem; }
.iwfc__button {
  align-items: center;
  appearance: none;
  background: var(--iwfc-button-primary-bg);
  border: 1px solid var(--iwfc-button-primary-border);
  border-radius: 999px;
  color: var(--iwfc-button-primary-text);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
  justify-content: center;
  letter-spacing: .035em;
  line-height: 1.15;
  min-height: 42px;
  padding: .72rem 1.55rem;
  text-align: center;
  text-transform: uppercase;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.iwfc__button:hover {
  box-shadow: 0 6px 16px rgba(3, 43, 64, .14);
  filter: brightness(.97);
  transform: translateY(-1px);
}
.iwfc__button:active { box-shadow: none; transform: translateY(0); }
.iwfc__button--secondary {
  background: var(--iwfc-button-secondary-bg);
  border-color: var(--iwfc-button-secondary-border);
  color: var(--iwfc-button-secondary-text);
}
.iwfc__button--secondary:hover {
  background: var(--iwfc-button-secondary-border);
  color: #fff;
  filter: none;
}
.iwfc__result-head .iwfc__button--secondary {
  background: transparent;
  border-color: var(--iwfc-button-secondary-border);
  color: #fff;
}
.iwfc__result-head .iwfc__button--secondary:hover {
  background: var(--iwfc-button-secondary-border);
  color: #fff;
}
.iwfc__error { background: #fff1f0; border: 1px solid #df6a61; border-radius: 6px; color: #8d1e18; margin: 1rem auto; max-width: 960px; padding: .85rem 1rem; }
.iwfc__results { border-top: 1px solid var(--iwfc-line); margin: 2rem auto 0; max-width: 1040px; padding-top: 2rem; scroll-margin-top: 2rem; }
.iwfc__result-head { align-items: center; background: var(--iwfc-navy); border-radius: 10px; color: #fff; display: flex; justify-content: space-between; padding: 1.35rem 1.5rem; }
.iwfc__result-head p { color: #b8d1dd; font-size: .78rem; font-weight: 700; letter-spacing: .1em; margin: 0; text-transform: uppercase; }
.iwfc__result-head h3 { color: #fff; font-size: 1.55rem; margin: .15rem 0; }
.iwfc__result-head strong { color: #fff; }
.iwfc__state-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.iwfc__state-tab { background: var(--iwfc-soft); border: 1px solid var(--iwfc-line); }
.iwfc__result-grid { display: grid; gap: 1rem; grid-template-columns: 1.05fr .95fr; margin-top: 1rem; }
.iwfc__card { background: #fff; border: 1px solid var(--iwfc-line); border-radius: 9px; padding: 1rem; }
.iwfc__table-wrap { overflow-x: auto; }
.iwfc table { border-collapse: collapse; min-width: 510px; width: 100%; }
.iwfc th, .iwfc td { border-bottom: 1px solid var(--iwfc-line); padding: .72rem .65rem; text-align: right; }
.iwfc th:first-child, .iwfc td:first-child { text-align: left; }
.iwfc thead th { background: var(--iwfc-soft); color: #17394b; font-size: .85rem; }
.iwfc tbody th { font-size: .88rem; font-weight: 650; }
.iwfc__table-accent th, .iwfc__table-accent td { background: color-mix(in srgb, var(--iwfc-accent) 10%, white); border-bottom: 0; font-weight: 750; }
.iwfc__chart-card { align-items: center; display: flex; min-height: 360px; }
.iwfc__svg { height: auto; overflow: visible; width: 100%; }
.iwfc__svg text { fill: #294957; font-family: inherit; font-size: 13px; }
.iwfc__zero { stroke: #78909c; stroke-dasharray: 5 5; stroke-width: 1.5; }
.iwfc__bar--hole { fill: var(--iwfc-primary); opacity: .9; }
.iwfc__bar--shaft { fill: var(--iwfc-accent); opacity: .92; }
.iwfc__chart-label { font-weight: 750; }
.iwfc__inspection-grid { display: grid; gap: .75rem; grid-template-columns: repeat(3, minmax(0,1fr)); }
.iwfc__inspection-grid > div { background: var(--iwfc-soft); border-radius: 7px; display: grid; gap: .25rem; padding: .85rem; }
.iwfc__inspection-grid small { color: var(--iwfc-muted); }
.iwfc__status { border-radius: 999px; display: inline-block; font-size: .82rem; font-weight: 750; padding: .25rem .55rem; width: fit-content; }
.iwfc__status--within { background: #e5f6ed; color: #14653a; }
.iwfc__status--outside { background: #fff0ef; color: #92241e; }
.iwfc__status--ambiguous { background: #fff6db; color: #785800; }
.iwfc__recommendations { margin-top: 1.3rem; }
.iwfc__recommendations > h3 { margin-bottom: .8rem; }
.iwfc__recommendation-grid { display: grid; gap: .85rem; grid-template-columns: repeat(3, minmax(0,1fr)); }
.iwfc__recommendation { border: 1px solid var(--iwfc-line); border-left: 5px solid var(--iwfc-primary); border-radius: 8px; padding: 1rem; }
.iwfc__recommendation--transition { border-left-color: #9b7b00; }
.iwfc__recommendation--interference { border-left-color: var(--iwfc-accent); }
.iwfc__recommendation-top { align-items: center; display: flex; justify-content: space-between; gap: .8rem; }
.iwfc__recommendation-top strong { font-size: 1.25rem; }
.iwfc__recommendation-top span { color: var(--iwfc-muted); font-size: .78rem; }
.iwfc__recommendation p { font-size: .88rem; margin: .55rem 0 0; }
.iwfc__recommendation-range { font-weight: 750; }
.iwfc__matches h3 { margin: .5rem 0 .75rem; }
.iwfc__match-grid { display: grid; gap: .7rem; grid-template-columns: repeat(4, minmax(0,1fr)); margin-bottom: 1.2rem; }
.iwfc__match { background: var(--iwfc-soft); border-radius: 7px; display: grid; gap: .25rem; padding: .8rem; }
.iwfc__match strong { font-size: 1.2rem; }
.iwfc__match span, .iwfc__match small { color: var(--iwfc-muted); }
.iwfc__content { background: #f7f9fa; border: 1px solid var(--iwfc-line); border-top: 0; padding: clamp(1.5rem, 4vw, 3rem); }
.iwfc__content > h3 { margin-top: 0; }
.iwfc__faq { display: grid; gap: .7rem; margin: 1.5rem 0; }
.iwfc__faq p { margin-bottom: .1rem; }
.iwfc__note { border-left: 4px solid var(--iwfc-primary); padding-left: 1rem; }
.iwfc__disclaimer { color: var(--iwfc-muted); font-size: .82rem; }
.iwfc__runtime-notice { background: #f6f8f9; border-left: 4px solid #8799a3; color: var(--iwfc-muted); font-size: .78rem; margin: 1.25rem auto 0; max-width: 1040px; padding: .75rem 1rem; }
@media (max-width: 900px) {
  .iwfc__hero { grid-template-columns: 1fr; }
  .iwfc__grid--main, .iwfc__result-grid { grid-template-columns: 1fr; }
  .iwfc__grid--reverse { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .iwfc__recommendation-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .iwfc__hero { padding: 2rem 1.2rem; }
  .iwfc__app { padding: 1rem; }
  .iwfc__tabs { border-radius: 10px; grid-template-columns: 1fr; }
  .iwfc__grid--advanced, .iwfc__grid--reverse, .iwfc__grid--finder, .iwfc__recommendation-grid, .iwfc__inspection-grid, .iwfc__match-grid { grid-template-columns: 1fr; }
  .iwfc__result-head { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .iwfc__actions { justify-content: stretch; }
  .iwfc__actions .iwfc__button { flex: 1; }
}
