.io-tool {
  --sh-ink: #10161f;
  --sh-navy: #243447;
  --sh-navy-2: #20394f;
  --sh-line: #d5e0e8;
  --sh-muted: #5c6f82;
  --sh-surface: #f4f8fa;
  --sh-white: #ffffff;
  --sh-accent: #33c5e0;
  --sh-accent-soft: #e8f9fc;
  --sh-danger: #a43b3b;
  --radius: 6px;
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
}

.io-tool,
.io-tool * {
  box-sizing: border-box;
}

.io-tool .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.io-tool button,
.io-tool input,
.io-tool select {
  font: inherit;
}

.io-tool {
  width: min(1440px, calc(100% - 32px));
  margin: 32px auto;
  background: var(--sh-white);
  border-top: 6px solid var(--sh-accent);
  box-shadow: 0 18px 46px rgba(23, 43, 61, 0.1);
}

.io-guide {
  padding: 42px 40px 46px;
  border-top: 1px solid var(--sh-line);
  background: var(--sh-white);
}

.io-guide__intro {
  max-width: 900px;
}

.io-guide h2,
.io-guide h3,
.io-guide p {
  letter-spacing: 0;
}

.io-guide h2 {
  margin: 0;
  color: var(--sh-navy);
  font-size: 28px;
  line-height: 1.2;
}

.io-guide__intro > p:last-child {
  margin: 14px 0 0;
  color: var(--sh-muted);
  font-size: 16px;
  line-height: 1.6;
}

.io-guide__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--sh-line);
  border-bottom: 1px solid var(--sh-line);
}

.io-guide__grid article {
  min-width: 0;
  padding: 24px 24px 24px 0;
}

.io-guide__grid article + article {
  padding-left: 24px;
  border-left: 1px solid var(--sh-line);
}

.io-guide__grid span {
  color: #117f96;
  font-size: 12px;
  font-weight: 800;
}

.io-guide__grid h3 {
  margin: 9px 0 0;
  color: var(--sh-navy);
  font-size: 18px;
  line-height: 1.3;
}

.io-guide__grid p {
  margin: 9px 0 0;
  color: var(--sh-muted);
  font-size: 14px;
  line-height: 1.55;
}

.io-guide__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.io-guide__links a {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid #9eb3c1;
  border-radius: 4px;
  color: var(--sh-navy);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.io-guide__links a:hover {
  border-color: var(--sh-accent);
  background: var(--sh-accent-soft);
}

.io-guide__notice {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 4px solid var(--sh-accent);
  background: var(--sh-navy);
  color: #e9f1f5;
}

.io-guide__notice strong {
  color: var(--sh-accent);
}

.io-guide__notice p {
  margin: 6px 0 0;
  color: #cdd9e0;
  font-size: 13px;
  line-height: 1.5;
}

.io-tool__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  padding: 34px 40px 30px;
  border-bottom: 1px solid var(--sh-line);
}

.io-tool__eyebrow,
.io-result__eyebrow {
  margin: 0 0 10px;
  color: #117f96;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.io-tool h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.io-tool__lead {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--sh-muted);
  font-size: 17px;
  line-height: 1.55;
}

.io-tool__flow {
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  background: var(--sh-navy);
  color: #e9f1f5;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
}

.io-tool__flow b {
  color: var(--sh-accent);
}

.io-tool__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.65fr);
  align-items: start;
}

.io-form {
  min-width: 0;
  padding: 8px 40px 48px;
}

.io-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--sh-line);
}

.io-section:last-child {
  border-bottom: 0;
}

.io-section__heading {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.io-section__number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--sh-accent);
  color: #117f96;
  font-size: 12px;
  font-weight: 800;
}

.io-section h2,
.io-result h2,
.io-result h3 {
  margin: 0;
  letter-spacing: 0;
}

.io-section h2 {
  font-size: 21px;
  line-height: 1.25;
}

.io-section__heading p {
  margin: 5px 0 0;
  color: var(--sh-muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.io-field {
  display: grid;
  gap: 8px;
  color: var(--sh-navy);
  font-size: 13px;
  font-weight: 700;
}

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

.io-brand-fieldset,
.io-profile {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.io-brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.io-brand-option {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--sh-line);
  border-radius: var(--radius);
  background: var(--sh-white);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.io-brand-option:hover,
.io-brand-option:has(input:checked) {
  border-color: #159bb5;
  background: var(--sh-accent-soft);
}

.io-brand-option input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: #159bb5;
}

.io-brand-option__name {
  display: block;
  color: var(--sh-navy);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.io-brand-option__scope {
  display: block;
  margin-top: 5px;
  color: var(--sh-muted);
  font-size: 11px;
  line-height: 1.4;
}

.io-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid #9eb3c1;
  border-radius: 4px;
  color: var(--sh-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.io-badge--ready {
  border-color: #159bb5;
  background: #d9f6fb;
  color: #0e6c7f;
}

.io-profile {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  border: 1px solid #b9c9d4;
  border-radius: 4px;
  overflow: hidden;
}

.io-profile label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 8px 10px;
  background: var(--sh-white);
  color: var(--sh-navy);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.io-profile label + label {
  border-left: 1px solid #b9c9d4;
}

.io-profile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.io-profile label:has(input:checked) {
  background: var(--sh-navy);
  color: var(--sh-white);
}

.io-inline-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  border-left: 4px solid var(--sh-accent);
  background: var(--sh-accent-soft);
  color: var(--sh-muted);
  font-size: 13px;
}

.io-field input,
.io-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #b9c9d4;
  border-radius: 4px;
  background: var(--sh-white);
  color: var(--sh-ink);
  font-weight: 400;
}

.io-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.io-signal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--sh-line);
  border-radius: var(--radius);
  background: var(--sh-surface);
}

.io-signal > span {
  align-self: end;
  color: var(--sh-navy);
  font-size: 14px;
  line-height: 1.35;
}

.io-signal > span strong {
  display: inline-block;
  min-width: 44px;
  color: #117f96;
  font-size: 12px;
}

.io-signal small {
  align-self: start;
  margin-top: 4px;
  color: var(--sh-muted);
  font-size: 11px;
  line-height: 1.35;
}

.io-signal input {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 74px;
  min-height: 48px;
  border: 1px solid #9eb3c1;
  border-radius: 4px;
  background: var(--sh-white);
  color: var(--sh-ink);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.io-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.io-options legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: var(--sh-navy);
  font-size: 13px;
  font-weight: 700;
}

.io-options label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px;
  border: 1px solid #b9c9d4;
  border-radius: 4px;
  background: var(--sh-white);
  color: var(--sh-navy);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.io-options input {
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
  accent-color: #159bb5;
}

.io-reserve {
  margin-top: 22px;
  padding: 18px;
  border-left: 4px solid var(--sh-accent);
  background: var(--sh-accent-soft);
}

.io-reserve > label {
  color: var(--sh-navy);
  font-size: 14px;
  font-weight: 800;
}

.io-reserve__control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
}

.io-reserve input {
  width: 100%;
  accent-color: #159bb5;
}

.io-reserve output {
  padding: 9px 8px;
  background: var(--sh-navy);
  color: var(--sh-white);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.io-reserve p {
  margin: 12px 0 0;
  color: var(--sh-muted);
  font-size: 12px;
  line-height: 1.45;
}

.io-result {
  min-width: 0;
  align-self: stretch;
  padding: 32px;
  background: var(--sh-navy);
  color: #e9f1f5;
}

.io-result__sticky {
  position: sticky;
  top: 16px;
}

.io-result h2 {
  font-size: 28px;
}

.io-result h3 {
  font-size: 15px;
}

.io-dataset-state {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #496177;
  border-radius: 4px;
  color: #cdd9e0;
  font-size: 11px;
  line-height: 1.4;
}

.io-dataset-state[data-ready="true"] {
  border-color: var(--sh-accent);
  color: var(--sh-accent);
}

.io-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0;
  border-top: 1px solid #496177;
  border-bottom: 1px solid #496177;
}

.io-metrics div {
  min-width: 0;
  padding: 16px 10px 16px 0;
}

.io-metrics div + div {
  padding-left: 12px;
  border-left: 1px solid #496177;
}

.io-metrics span {
  display: block;
  min-height: 30px;
  color: #b8c8d3;
  font-size: 11px;
  line-height: 1.3;
}

.io-metrics strong {
  display: block;
  margin-top: 5px;
  color: var(--sh-accent);
  font-size: 28px;
}

.io-result__table-wrap {
  overflow: auto;
  max-height: 300px;
  border: 1px solid #496177;
}

.io-result__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.io-result__table th,
.io-result__table td {
  padding: 10px;
  border-bottom: 1px solid #496177;
  text-align: left;
}

.io-result__table th:nth-child(n + 2),
.io-result__table td:nth-child(n + 2) {
  width: 72px;
  text-align: right;
}

.io-result__table thead {
  position: sticky;
  top: 0;
  background: var(--sh-ink);
  color: var(--sh-accent);
}

.io-result__table tbody tr:last-child td {
  border-bottom: 0;
}

.io-result__empty td {
  color: #b8c8d3;
  text-align: center !important;
}

.io-result__notes,
.io-result__spec,
.io-solutions {
  margin-top: 24px;
}

.io-solution-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.io-solution {
  padding: 12px;
  border: 1px solid #496177;
  border-radius: 4px;
  background: var(--sh-navy-2);
}

.io-solution--ready {
  border-color: var(--sh-accent);
}

.io-solution__head {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.io-solution__head strong {
  color: #f0f5f7;
  font-size: 13px;
}

.io-solution__state {
  flex: 0 0 auto;
  color: var(--sh-accent);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.io-solution p,
.io-result__muted {
  margin: 7px 0 0;
  color: #b8c8d3;
  font-size: 11px;
  line-height: 1.45;
}

.io-solution__bom {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid #496177;
  color: #dfe8ed;
  font-size: 11px;
}

.io-solution__bom a {
  color: var(--sh-accent);
}

.io-solution__warnings {
  display: grid;
  gap: 5px;
  margin-top: 9px;
  padding-left: 10px;
  border-left: 2px solid var(--sh-accent);
  color: #d5e1e7;
  font-size: 10px;
  line-height: 1.45;
}

.io-result__notes ul {
  margin: 12px 0 0;
  padding: 0 0 0 18px;
  color: #cdd9e0;
  font-size: 12px;
  line-height: 1.55;
}

.io-result__notes li + li {
  margin-top: 6px;
}

.io-result__spec pre {
  max-height: 220px;
  overflow: auto;
  margin: 12px 0 0;
  padding: 14px;
  border: 1px solid #496177;
  background: var(--sh-ink);
  color: #dfe8ed;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.io-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.io-button {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #7890a1;
  border-radius: 4px;
  background: transparent;
  color: #e9f1f5;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.io-button:hover {
  border-color: var(--sh-accent);
  color: var(--sh-accent);
}

.io-button--primary {
  border-color: var(--sh-accent);
  background: var(--sh-accent);
  color: var(--sh-ink);
}

.io-button--primary:hover {
  background: #6ed9eb;
  color: var(--sh-ink);
}

.io-button--quiet {
  color: #b8c8d3;
}

.io-result__status {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--sh-accent);
  font-size: 11px;
}

.io-result__warning {
  margin-top: 18px;
  padding: 14px;
  border-left: 4px solid var(--sh-accent);
  background: var(--sh-ink);
}

.io-result__warning strong {
  color: var(--sh-accent);
  font-size: 12px;
}

.io-result__warning p {
  margin: 7px 0 0;
  color: #b8c8d3;
  font-size: 11px;
  line-height: 1.5;
}

.io-tool input:focus-visible,
.io-tool select:focus-visible,
.io-tool button:focus-visible,
.io-tool label:has(input:focus-visible),
.io-tool a:focus-visible {
  outline: 3px solid var(--sh-accent);
  outline-offset: 2px;
}

@media (max-width: 1080px) {
  .io-tool__header {
    grid-template-columns: 1fr;
  }

  .io-tool__flow {
    width: fit-content;
  }

  .io-tool__layout {
    grid-template-columns: 1fr;
  }

  .io-guide__grid {
    grid-template-columns: 1fr;
  }

  .io-guide__grid article + article {
    padding-left: 0;
    border-top: 1px solid var(--sh-line);
    border-left: 0;
  }

  .io-result__sticky {
    position: static;
  }
}

@media (max-width: 720px) {
  .io-tool {
    width: 100%;
    margin: 0;
    box-shadow: none;
  }

  .io-tool__header,
  .io-form,
  .io-result,
  .io-guide {
    padding-left: 18px;
    padding-right: 18px;
  }

  .io-tool__header {
    gap: 24px;
    padding-top: 24px;
  }

  .io-tool__flow {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .io-tool__flow b {
    display: none;
  }

  .io-fields,
  .io-signal-grid,
  .io-brand-grid {
    grid-template-columns: 1fr;
  }

  .io-profile {
    grid-template-columns: 1fr;
  }

  .io-profile label + label {
    border-top: 1px solid #b9c9d4;
    border-left: 0;
  }

  .io-brand-option {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .io-brand-option .io-badge {
    grid-column: 2;
    width: fit-content;
  }

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

  .io-options label:last-child {
    grid-column: 1 / -1;
  }

  .io-metrics strong {
    font-size: 24px;
  }

  .io-guide h2 {
    font-size: 24px;
  }
}

@media print {
  .io-tool {
    width: 100%;
    margin: 0;
    border-top: 0;
    box-shadow: none;
  }

  .io-tool__header,
  .io-form,
  .io-guide,
  .io-actions,
  .io-result__status {
    display: none;
  }

  .io-tool__layout {
    display: block;
  }

  .io-result {
    padding: 0;
    background: var(--sh-white);
    color: var(--sh-ink);
  }

  .io-result__eyebrow,
  .io-result h2,
  .io-result h3,
  .io-metrics strong,
  .io-result__warning strong {
    color: var(--sh-ink);
  }

  .io-result__table-wrap,
  .io-result__table th,
  .io-result__table td,
  .io-result__spec pre,
  .io-result__warning {
    border-color: #777;
  }

  .io-result__table thead,
  .io-result__spec pre,
  .io-result__warning {
    background: var(--sh-white);
    color: var(--sh-ink);
  }

  .io-result__notes ul,
  .io-result__warning p {
    color: var(--sh-ink);
  }
}
