:root {
  color-scheme: light;
  --bg: #f4f1ec;
  --surface: #fffaf2;
  --surface-strong: #ffffff;
  --ink: #17201d;
  --muted: #626b66;
  --line: #d9d0c2;
  --accent: #0f766e;
  --accent-dark: #09564f;
  --accent-soft: #dff2ee;
  --warning: #8a5a12;
  --shadow: 0 20px 50px rgba(27, 31, 29, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

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

.is-hidden {
  display: none !important;
}

button,
select,
input {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell.signed-out {
  display: block;
}

.app-shell.home-mode {
  display: block;
}

.app-shell.home-mode .sidebar,
.app-shell.home-mode .result-section {
  display: none;
}

.app-shell.signed-out .sidebar,
.app-shell.signed-out .questionnaire,
.app-shell.signed-out .result-section,
.app-shell.signed-in .auth-gate {
  display: none;
}

.app-shell.home-mode .content {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px;
}

.app-shell.home-mode .questionnaire,
.app-shell.signed-out .auth-gate {
  width: min(100%, 1180px);
  margin: 0;
}

.app-shell:not(.home-mode) .questionnaire {
  display: none;
}

.sidebar {
  background: #17201d;
  color: #f7f2e8;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand h1 {
  margin: 6px 0 0;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sidebar .kicker {
  color: #7ed3c7;
}

.pathway-card,
.sidebar-panel {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 7px;
}

.pathway-card span,
.sidebar-label {
  color: #aac3bb;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pathway-card strong {
  color: #fff;
  line-height: 1.35;
}

.sidebar-facts {
  margin: 0;
  display: grid;
  gap: 10px;
}

.sidebar-facts div {
  display: grid;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 10px;
}

.sidebar-facts dt {
  color: #aac3bb;
  font-size: 0.82rem;
  font-weight: 800;
}

.sidebar-facts dd {
  margin: 0;
  color: #fff;
  font-weight: 700;
}

.sidebar-facts select {
  width: 100%;
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.18);
  background: #22302b;
  color: #fff;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.sidebar-facts select:disabled {
  opacity: 0.7;
}

.auth-panel {
  gap: 10px;
}

.auth-current {
  margin: 0;
  color: #d8e2de;
  font-size: 0.9rem;
  line-height: 1.35;
}

.auth-form {
  display: grid;
  gap: 8px;
}

.auth-form input {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: #22302b;
  color: #fff;
  padding: 0 10px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-form input::placeholder {
  color: #aac3bb;
}

.auth-form button,
.secondary-action {
  min-height: 36px;
  border: 1px solid #7ed3c7;
  border-radius: 6px;
  background: #7ed3c7;
  color: #11201c;
  padding: 0 10px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.secondary-action {
  background: transparent;
  color: #f7f2e8;
}

.progress-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.progress-heading strong {
  color: #fff;
  font-size: 0.9rem;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #7ed3c7;
  transition: width 160ms ease;
}

.next-step,
.sidebar-panel.compact p {
  margin: 0;
  color: #d8e2de;
  font-size: 0.9rem;
  line-height: 1.4;
}

.control-group {
  display: grid;
  gap: 8px;
}

label {
  color: #d7dfda;
  font-size: 0.88rem;
  font-weight: 700;
}

select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #fff;
  background: #25312d;
  padding: 0 12px;
}

.light-control label {
  color: var(--ink);
}

.light-control select {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.logic-controls {
  display: none !important;
}

.notice {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 6px;
  color: #d8e2de;
  font-size: 0.9rem;
}

.notice strong {
  color: #fff;
}

.content {
  padding: 28px 40px 30px;
  overflow: auto;
}

.questionnaire {
  max-width: 980px;
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.auth-gate {
  max-width: 720px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.auth-gate h2 {
  margin: 6px 0 10px;
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-gate p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.auth-gate-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.sign-in-form {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.8fr) 104px;
  max-width: 820px;
}

.reset-password-form {
  grid-template-columns: minmax(260px, 1fr) 180px;
  max-width: 820px;
}

.create-account-panel {
  margin-top: 0;
}

.create-account-panel p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.create-account-form {
  grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
  max-width: 920px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field label {
  color: var(--ink);
  font-weight: 900;
}

.auth-field input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.auth-gate-form button {
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  padding: 0 16px;
  font-weight: 900;
  cursor: pointer;
}

.auth-secondary-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.8fr) 104px;
  gap: 10px;
  align-items: center;
  max-width: 820px;
  margin-top: 16px;
}

.auth-gate.create-mode .auth-secondary-actions {
  grid-template-columns: 1fr;
  max-width: 920px;
}

.sign-in-form > button {
  width: 104px;
}

.auth-mode-toggle {
  width: fit-content;
  max-width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--accent-dark);
  padding: 0 14px;
  font-size: 0.95rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.auth-text-button {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  padding: 0;
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
  justify-self: start;
}

.auth-mode-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.auth-message {
  min-height: 20px;
  margin: 12px 0 0 !important;
  color: var(--accent-dark) !important;
  font-weight: 800;
}

.result-section {
  display: block;
}

.questionnaire-heading h2 {
  margin: 6px 0 18px;
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.status-group {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.status-group legend {
  padding: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.choice-card {
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.choice-card input {
  margin: 0;
  accent-color: var(--accent);
}

.choice-card strong {
  display: block;
  line-height: 1.2;
}

.question-flow {
  display: grid;
  gap: 22px;
}

.flow-question {
  display: grid;
  gap: 10px;
}

.flow-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flow-question h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.answer-card {
  min-height: 78px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.answer-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.answer-card strong {
  font-size: 1.02rem;
  line-height: 1.2;
}

.answer-dot {
  width: 14px;
  height: 14px;
  border: 2px solid #8b928d;
  border-radius: 999px;
  display: inline-block;
}

.answer-card.is-selected .answer-dot {
  border: 5px solid var(--accent);
}

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

.question-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.question-actions button,
.header-actions button {
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.question-actions button:disabled {
  border-color: var(--line);
  background: #d8d4cb;
  color: #767d78;
  cursor: not-allowed;
}

.page-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
  max-width: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions button:not(.icon-button) {
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--ink);
}

.page-header h2 {
  margin: 6px 0 0;
  max-width: none;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.result-context {
  margin: 12px 0 0;
  max-width: none;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.35;
}

.result-context:empty {
  display: none;
}

.icon-button,
.panel-heading button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.icon-button {
  width: 44px;
  height: 44px;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  max-width: none;
}

.panel {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.panel h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.panel-heading h3 {
  margin: 0;
}

.panel-heading button {
  min-height: 36px;
  padding: 0 12px;
}

.steps-list {
  list-style: none;
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.step-item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.step-number::before {
  content: counter(step);
}

.step-main {
  display: grid;
  gap: 7px;
  position: relative;
}

.step-main:has(.component-upload) {
  gap: 2px;
}

.step-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  padding-right: 190px;
}

.step-toggle {
  flex: 1 1 260px;
  width: auto;
  min-width: 0;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.step-toggle span:first-child {
  min-width: 0;
  overflow-wrap: break-word;
}

.step-toggle:disabled {
  cursor: default;
  opacity: 1;
}

.step-main:has(.component-upload) .step-toggle {
  min-height: 0;
}

.step-status-pill {
  flex: 0 0 150px;
  position: absolute;
  top: 0;
  right: 0;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-weight: 900;
  text-align: center;
}

.step-status-pill.is-complete {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.toggle-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--accent-dark);
  background: #fff;
}

.step-toggle[aria-expanded="true"] .toggle-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.step-detail {
  margin: 2px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.step-detail p {
  margin: 0;
}

.step-link-actions {
  display: grid;
  gap: 6px;
  width: fit-content;
  margin-top: 8px;
}

.step-link {
  display: inline-flex;
  width: fit-content;
  color: var(--accent-dark);
  font-weight: 800;
}

.component-checklist {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.step-main:has(.component-upload) .component-checklist {
  gap: 8px;
  margin-top: 0;
}

.component-item {
  display: grid;
  gap: 6px;
}

.component-item:has(.component-upload) {
  gap: 8px;
}

.component-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
}

.component-check input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--accent);
}

.component-check input:disabled {
  cursor: default;
  opacity: 1;
}

.component-check a {
  color: var(--accent-dark);
  font-weight: 900;
}

.component-question {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.component-context {
  display: grid;
  gap: 3px;
  margin-left: 28px;
  padding: 8px 10px;
  width: fit-content;
  border-left: 3px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.35;
}

.component-item:has(.component-upload) .component-context {
  margin-left: 0;
}

.component-upload {
  display: grid;
  gap: 6px;
  margin-left: 28px;
}

.component-item:has(.component-upload) .component-upload {
  margin-left: 0;
}

.component-upload label {
  display: grid;
  gap: 5px;
  width: fit-content;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.component-upload input {
  max-width: 360px;
  color: var(--muted);
}

.uploaded-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.uploaded-file button,
.uploaded-components-panel button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
}

.text-action {
  color: var(--muted) !important;
  text-decoration: none !important;
}

.uploaded-components-panel {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.uploaded-components-panel ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding-left: 0;
  justify-items: start;
}

.uploaded-components-panel li {
  max-width: 100%;
  text-align: left;
}

.download-summary-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.download-summary-check input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 4px;
  accent-color: var(--accent);
}

.summary-info-item {
  padding-left: 28px;
}

.uploaded-components-panel button {
  display: inline;
  max-width: 100%;
  overflow-wrap: break-word;
  text-align: left;
  line-height: 1.25;
}

.component-summary-label {
  color: var(--ink);
  font-weight: 900;
}

.uploaded-components-panel p {
  margin: 0;
  color: var(--muted);
}

.address-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px 28px;
  margin: 8px 0 0 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(17, 29, 25, 0.03);
}

.address-section-title {
  grid-column: 1 / -1;
  margin: 4px 0 8px;
  padding: 12px;
  background: #deddd9;
  color: #333735;
  text-align: center;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.address-fields label {
  display: grid;
  gap: 7px;
  color: #5f6864;
  font-size: 0.9rem;
  font-weight: 750;
}

.required-marker {
  color: #d73d32;
  font-weight: 900;
}

.address-fields input,
.address-fields select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c9cfcc;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
  font-weight: 650;
}

.address-fields input:focus,
.address-fields select:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(18, 128, 116, 0.18);
}

.address-fields input.is-invalid,
.address-fields select.is-invalid {
  border-color: #d73d32;
  background: #fff8f6;
}

.field-error {
  color: #b9322a;
  font-size: 0.82rem;
  font-weight: 800;
}

.temporary-approval {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
  max-width: 360px;
}

.choice-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
}

.choice-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.choice-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.supervisor-fields,
.endorser-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.supervisor-fields label,
.endorser-fields label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.supervisor-fields input,
.endorser-fields input,
.endorser-fields textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.endorser-fields textarea {
  min-height: 84px;
  padding: 10px 12px;
  resize: vertical;
}

.endorser-fields .endorser-comments {
  grid-column: 1 / -1;
}

.endorser-fields input.is-invalid {
  border-color: #d73d32;
  background: #fff8f6;
}

.program-lookup {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.program-lookup label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.program-lookup input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.degree-complete {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--ink);
  font-weight: 900;
}

.degree-complete input {
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: var(--accent);
}

.step-complete-check {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--ink);
  font-weight: 900;
}

.step-complete-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.step-complete-inline {
  flex: 0 0 150px;
  position: absolute;
  top: 0;
  right: 0;
  min-height: 36px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  padding: 0 10px;
}

.step-complete-inline input {
  display: none;
}

.step-complete-inline:has(input:checked) {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.step-complete-detail {
  margin-top: 8px;
}

.program-match {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
}

.program-match.is-match {
  color: var(--accent-dark);
  font-weight: 800;
}

.program-match.is-warning {
  color: var(--warning);
}

.program-match.is-empty {
  color: var(--muted);
}

.step-status-line {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px !important;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 880px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .status-group,
  .answer-grid,
  .auth-gate-form,
  .auth-secondary-actions,
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 20px;
  }

  .app-shell.home-mode .content {
    padding: 20px;
    place-items: start stretch;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-header h2 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .choice-card {
    min-height: 58px;
  }

  .step-main {
    position: static;
  }

  .step-row {
    padding-right: 0;
  }

  .step-status-pill,
  .step-complete-inline {
    flex-basis: 100%;
    position: static;
    width: 100%;
  }

  .address-fields,
  .endorser-fields {
    grid-template-columns: 1fr;
    margin-left: 0;
  }
}

@media print {
  body {
    background: #fff;
  }

  .sidebar,
  .questionnaire,
  .icon-button,
  .panel-heading button {
    display: none;
  }

  .app-shell,
  .layout-grid {
    display: block;
  }

  .content {
    padding: 0;
  }

  .panel {
    box-shadow: none;
    break-inside: avoid;
    margin-bottom: 16px;
  }
}
