.team-intro,
.team-walkthrough,
.team-more {
  width: min(920px, calc(100% - clamp(36px, 8vw, 96px)));
  margin-inline: auto;
  color: var(--text);
  font: 400 1rem/1.55 GarageInter, Arial, sans-serif;
}
.team-intro { padding-block: clamp(32px, 4vw, 60px) clamp(18px, 2.5vw, 32px); }
.team-intro h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 1;
  text-wrap: balance;
}
.team-intro p {
  max-width: 64ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}
.team-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--teal);
  font-size: .93rem;
  font-weight: 700;
}

.team-walkthrough {
  --team-inset: clamp(20px, 3.6vw, 40px);
  padding-block-end: clamp(32px, 5vw, 64px);
  overflow-wrap: anywhere;
}
.team-walkthrough ol.team-progress,
.team-progress ol {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.team-progress li {
  flex: 1;
  min-width: 0;
  border-top: 3px solid var(--line);
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.3;
}
.team-progress li > :is(a, span, strong) {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 2px;
}
.team-progress li:is([aria-current], :has([aria-current])) {
  border-color: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
}
.team-progress a { text-underline-offset: .2em; }
.team-tour-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 14px;
  margin-block: 4px;
  color: var(--muted);
  font-size: .83rem;
  font-weight: 700;
}
.team-tour-tools a, .team-app-header a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}
.team-frame {
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--background);
  box-shadow: 0 12px 44px var(--shadow);
}
.team-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 16px;
  min-height: 60px;
  padding: 7px var(--team-inset);
  border-bottom: 1px solid var(--line);
  background: var(--background);
  font-size: .88rem;
  font-weight: 600;
}
.team-app-header > span { color: var(--muted); }
.team-app-header strong { color: var(--text); }
.team-back { gap: 7px; color: var(--text); }
.team-body { padding: clamp(22px, 3vw, 36px) var(--team-inset); }
.team-heading { margin-bottom: 20px; }
.team-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.7vw, 2.85rem);
  line-height: 1.06;
  text-wrap: balance;
}
.team-heading p, .team-guide p, .team-more p {
  max-width: 67ch;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.team-content { min-width: 0; }
.team-account-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 14px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
}
.team-account-summary div { display: flex; flex-direction: column-reverse; justify-content: center; padding: 0 6px; }
.team-account-summary div + div { border-left: 1px solid var(--line); }
.team-account-summary dt { color: var(--muted); font-size: .8rem; }
.team-account-summary dd { margin: 0; font-weight: 700; font-size: .9rem; }
.team-content > * + * { margin-top: 16px; }
.team-content h3, .team-guide h3, .team-more h2 {
  margin: 0;
  font: 700 clamp(1.45rem, 2.1vw, 1.8rem)/1.18 Barlow, Arial, sans-serif;
}
.team-viewer-label {
  display: flex;
  align-items: baseline;
  gap: 8px 18px;
  padding: 9px 0;
  margin-bottom: 14px;
  border-block: 1px solid var(--line);
}
.team-viewer-label span { color: var(--muted); font-size: .9rem; }
.team-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 12px;
  border-left: 3px solid var(--accent);
  background: var(--accent-wash);
  color: var(--text);
}
.team-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}
.team-choices legend {
  padding: 0 0 10px;
  font-weight: 700;
}
.team-choice {
  display: flex;
  align-items: start;
  gap: 13px;
  min-height: 68px;
  padding: 15px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.team-choice:has(input:checked) {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal-wash) 65%, var(--surface));
}
.team-choice:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.team-choice input {
  flex: none;
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}
.team-choice .choice-copy, .team-row .row-copy { flex: 1; min-width: 0; }
.team-walkthrough :is(.choice-copy, .row-copy) :is(strong, small) { display: block; }
.team-walkthrough :is(.choice-copy, .row-copy) small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.45;
}
.team-record, .team-list {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.team-record { padding: clamp(16px, 2.5vw, 24px); }
.team-record > p { max-width: 66ch; margin: 8px 0 0; color: var(--muted); }
.team-record > :is(.team-list, .team-action, a:has(.team-file-photo)) { margin-top: 14px; }
.team-record > a:has(.team-file-photo) {
  display: inline-flex;
  max-width: 100%;
  flex-direction: column;
  align-items: start;
  gap: 8px;
  color: var(--teal);
  font-size: .91rem;
  font-weight: 700;
}
.team-file-photo { display: block; width: min(100%, 390px); height: auto; border-radius: 8px; }
.team-record dl { margin: 12px 0 0; }
.team-record dl > div {
  display: grid;
  grid-template-columns: minmax(100px, .7fr) minmax(0, 1.3fr);
  gap: 8px 16px;
  align-items: baseline;
  padding-block: 11px;
  border-top: 1px solid var(--line);
}
.team-record dl > div:last-child { padding-bottom: 0; }
.team-record dt { color: var(--muted); }
.team-record dd { margin: 0; font-weight: 600; }
.team-list { padding-inline: clamp(12px, 2vw, 20px); }
.team-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding-block: 13px;
  color: var(--text);
  text-decoration: none;
}
.team-row + .team-row { border-top: 1px solid var(--line); }
.team-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-block-start: 18px;
}
.team-action, .team-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  background: var(--accent);
  color: var(--on-accent);
  font: 700 .94rem/1.35 GarageInter, Arial, sans-serif;
  text-align: center;
  text-decoration: none;
}
.team-secondary {
  border-color: var(--input-border);
  background: var(--panel);
  color: var(--text);
}
.team-guide {
  margin-top: clamp(20px, 3vw, 32px);
  padding: 18px var(--team-inset);
  border-left: 3px solid var(--teal);
  border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--teal-wash) 48%, var(--background));
}
.team-guide p { color: var(--text); }
.team-more { padding-block: 20px clamp(34px, 5vw, 64px); border-top: 1px solid var(--line); }
.team-more a { margin-right: 16px; }
@media (min-width: 800px) {
  .team-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: 8px clamp(24px, 4vw, 56px);
    padding-block: clamp(28px, 2.5vw, 38px) 20px;
  }
  .team-intro h1 { font-size: clamp(3rem, 4.8vw, 4rem); }
  .team-intro > p { margin: 0; }
}
@media (hover: hover) {
  .team-action:hover { background: var(--accent-hover); }
  .team-secondary:hover { background: var(--raised); }
  .team-choice:hover { border-color: var(--teal); }
  .team-row:hover .row-copy strong, .team-app-header a:hover, .team-tour-tools a:hover { color: var(--accent-text); }
}
@media (max-width: 640px) {
  .team-walkthrough { --team-inset: 16px; }
  .team-frame { border-radius: 14px; }
  .team-body { padding-block: 20px; }
  .team-choices { grid-template-columns: minmax(0, 1fr); }
  .team-choice { min-height: 58px; padding: 12px; }
  .team-progress li { font-size: .78rem; }
  .team-record dl > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
}
