.is-view {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(22px, 4vw, 52px) clamp(22px, 4vw, 62px);
  overflow-wrap: anywhere;
}

.is-view > * { min-width: 0; }
.is-view [hidden] { display: none !important; }
.is-view .is-intro { margin: 0; }
.is-intro h1 { text-wrap: balance; }
.is-intro .is-attribution { margin-bottom: 0; font-size: 0.82rem; }

.is-plate { margin: 0; }
.is-plate img { display: block; width: 100%; height: auto; }
.is-plate figcaption {
  margin-block-start: 11px;
  padding-inline-start: 12px;
  border-inline-start: 2px solid var(--amber);
  line-height: 1.55;
}

.is-workbench { grid-column: 1 / -1; }
.is-workbench h2 { margin-bottom: 0.65em; }

.is-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.is-steps li { min-width: 0; }

.is-steps button {
  display: grid;
  grid-template-columns: 1.55em minmax(0, 1fr);
  align-items: center;
  gap: 0.55em;
  width: 100%;
  height: 100%;
  min-height: 44px;
  background: var(--cream);
  color: var(--navy);
  font-size: 0.82rem;
}

.is-step-number {
  display: grid;
  place-items: center;
  width: 1.55em;
  min-height: 1.55em;
  border-radius: 50%;
  background: var(--mist);
  color: var(--royal);
  font-variant-numeric: tabular-nums;
}

.is-steps [aria-current="step"] {
  border-color: var(--royal);
  background: var(--royal);
  color: var(--surface);
}

.is-toolbar,
.is-controls,
.is-progress,
.is-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.is-toolbar {
  justify-content: space-between;
  margin-block: 16px 0;
  padding-block-end: 14px;
  border-bottom: 1px solid var(--border);
}

.is-progress {
  color: var(--navy);
  font: 700 0.85rem/1.35 var(--ui);
}

.is-progress svg { flex: none; }
.is-progress circle { fill: none; stroke-width: 3; }
.is-dial-track { stroke: var(--border); }
.is-dial-fill {
  stroke: var(--teal);
  stroke-linecap: round;
  transition: stroke-dasharray 240ms ease-out;
}

.is-controls { gap: 6px; }
.is-controls button { font-size: 0.81rem; }

.is-filter {
  margin-block-start: 16px;
  color: var(--navy);
  font: 700 0.81rem/1.4 var(--ui);
}

.is-filter select { width: min(100%, 23rem); }

.is-stage { padding-block-start: clamp(18px, 3vw, 34px); }
.is-stage > header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
  margin-bottom: 6px;
}

.is-stage > header small { white-space: nowrap; }
.is-stage > p { max-width: 78ch; }
.is-stage > header h3 { scroll-margin-block-start: 12px; }
.is-stage h3.is-result-title { margin-block-start: 20px; }

.is-feature-toggle { margin-block-end: 7px; }
.is-feature-toggle[aria-pressed="true"],
.is-applicants button[aria-pressed="true"] {
  border-color: var(--royal);
  background: var(--mist);
}

.is-feature-list {
  display: grid;
  max-width: 76ch;
  margin-block: 7px 14px;
  padding-inline-start: 1.5em;
}

.is-feature-list li {
  border-block-end: 1px solid var(--border);
  padding: 8px 0 9px 5px;
}

.is-feature-list small {
  margin-inline-start: 6px;
  color: var(--teal);
  font-weight: 700;
}

.is-details {
  max-width: 78ch;
  border-block-end: 1px solid var(--border);
}

.is-details summary {
  padding-block: 8px;
  color: var(--royal);
  font-weight: 700;
}

.is-details > p, .is-details > ul, .is-details > ol { margin-block-start: 0; }
.is-list { padding-inline-start: 1.4em; }
.is-list li + li { margin-top: 0.3em; }

.is-applicants, .is-profile-needs, .is-obstacles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin-block: 0 12px;
  padding: 0;
  list-style: none;
}

.is-applicants button {
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  min-height: 44px;
}

.is-profile {
  margin-block: 10px 15px;
  border-inline-start: 2px solid var(--teal);
  padding: 14px;
  background: var(--teal-soft, #e6f5f2);
}

.is-profile-needs > div, .is-obstacles > div {
  border-block-end: 1px solid var(--border);
  padding: 7px 0;
}

.is-profile dt { color: var(--navy); font-weight: 600; }
.is-profile dd {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  margin: 0;
  font-size: 0.82rem;
}

.is-profile dd span, .is-profile dd strong { white-space: nowrap; }

.is-matrix {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-block: 12px;
  color: var(--navy);
  font-size: 0.84rem;
  line-height: 1.45;
}

.is-matrix caption {
  padding-bottom: 8px;
  font-weight: 700;
  text-align: start;
}

.is-matrix th, .is-matrix td {
  border-block-end: 1px solid var(--border);
  padding: 9px 7px;
  text-align: center;
  vertical-align: middle;
}

.is-matrix th:first-child { width: 30%; text-align: start; }
.is-matrix tbody th { font-weight: 600; }
.is-matrix thead { background: var(--mist); }
.is-matrix tbody tr:nth-child(even) { background: var(--cream); }
.is-verdict th:first-child { width: 15%; }
.is-filtered .is-matrix:not(.is-verdict) th:first-child { width: 65%; }
.is-cell-label { display: none; }
.is-value { font-variant-numeric: tabular-nums; }
.is-value.is-highlight {
  display: inline-block;
  min-width: 1.7em;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--teal-soft, #e6f5f2);
  color: var(--teal);
  font-weight: 700;
}

.is-key, .is-solution-key, .is-source-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.is-solution-key div { display: flex; flex-wrap: wrap; gap: 0 8px; }
.is-solution-key dt { color: var(--navy); font-weight: 700; }
.is-solution-key dd { margin: 0; }

.is-outcome {
  padding: 11px 14px;
  border-inline-start: 2px solid var(--teal);
  background: var(--teal-soft, #e6f5f2);
}

.is-source-note { padding-top: 8px; border-top: 1px solid var(--border); }

.is-carnet {
  margin-block-start: clamp(18px, 3vw, 32px);
  padding-block-start: 14px;
  border-top: 1px solid var(--border);
}

@media (max-width: 880px) {
  .is-matrix { display: block; }
  .is-matrix caption { display: block; }
  .is-matrix thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .is-matrix tbody { display: block; }
  .is-matrix tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 5px 0;
    border-top: 1px solid var(--border);
  }

  .is-matrix tbody th:first-child {
    grid-column: 1 / -1;
    width: auto;
  }

  .is-matrix tbody :is(th, td) {
    padding: 5px 7px;
    border: 0;
    text-align: start;
  }

  .is-filtered .is-matrix:not(.is-verdict) tbody tr { grid-template-columns: minmax(0, 1fr) minmax(0, 8.5em); }
  .is-filtered .is-matrix:not(.is-verdict) tbody th:first-child { grid-column: auto; width: auto; }

  .is-cell-label {
    display: block;
    color: var(--muted);
    font: 600 0.72rem/1.35 var(--ui);
  }
}

@media (max-width: 650px) {
  .is-view { grid-template-columns: minmax(0, 1fr); }
  .is-workbench { padding-inline: 12px; }
  .is-steps {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 3px;
  }

  .is-steps button {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding: 0;
  }

  .is-step-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .is-stage > header { display: block; }
  .is-applicants, .is-profile-needs { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .is-dial-fill { transition: none; }
}
