:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --surface-soft: #f6f6f8;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.09);
  --line-soft: rgba(0, 0, 0, 0.06);
  --primary: #0071e3;
  --primary-dark: #0057b8;
  --accent: #34c759;
  --danger: #b42318;
  --warning: #b25e00;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.09), 0 1px 0 rgba(255, 255, 255, 0.72) inset;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 48%, #eef1f5 100%);
  min-height: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  padding: 24px;
  overflow-x: hidden;
  width: 100%;
  touch-action: pan-y;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  overflow-x: clip;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 4px 2px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-logo {
  width: 74px;
  height: 70px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 18px rgba(0, 82, 165, 0.12));
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

h4 {
  margin-bottom: 6px;
  font-size: 16px;
}

p {
  line-height: 1.7;
}

.nav-tabs,
.button-row,
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-btn,
.admin-tab,
.btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  min-height: 44px;
  padding: 0 18px;
  font-weight: 750;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:active,
.nav-btn:active,
.admin-tab:active {
  transform: scale(0.98);
}

.nav-btn.active,
.admin-tab.active,
.btn.primary {
  border-color: var(--primary);
  background: linear-gradient(180deg, #0a84ff 0%, #0071e3 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.22);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.72);
}

.btn.danger {
  border-color: rgba(180, 35, 24, 0.3);
  color: var(--danger);
  background: #fff7f6;
}

.small-btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.panel + .panel,
#admin-panel > .panel {
  margin-top: 16px;
}

.compact-panel {
  max-width: 620px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 26px;
  min-height: 390px;
  align-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.66));
}

.intro-copy h2 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  margin-bottom: 16px;
  font-weight: 820;
}

.intro-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
}

.ai-disclosure {
  max-width: 680px;
  margin-top: 16px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.56);
  color: #3a3a3c;
  font-weight: 700;
  line-height: 1.6;
}

.report-disclosure {
  max-width: none;
  margin: 0 0 14px;
}

label {
  display: block;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input,
select {
  height: 46px;
  padding: 0 13px;
}

textarea {
  padding: 10px 11px;
  resize: vertical;
}

label input,
label select,
label textarea {
  margin-top: 7px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 113, 227, 0.75);
  box-shadow: 0 0 0 4px rgba(23, 105, 170, 0.1);
}

.access-form,
.inline-form,
.editor-form {
  display: grid;
  gap: 14px;
}

.inline-form {
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
}

.editor-form {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto auto;
  align-items: end;
  margin-bottom: 18px;
}

.wide-field {
  grid-column: span 2;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.form-message.error {
  color: var(--danger);
}

.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.status-pill,
.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--primary-dark);
  font-weight: 800;
}

.quiz-group {
  display: none;
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
  margin-top: 20px;
}

.quiz-group.active {
  display: block;
}

.quiz-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.question {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.question p {
  margin-bottom: 14px;
  font-weight: 760;
  font-size: 18px;
  line-height: 1.6;
}

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

.scale label {
  margin: 0;
}

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

.scale span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-weight: 750;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.scale input:checked + span {
  border-color: var(--primary);
  background: linear-gradient(180deg, #0a84ff 0%, #0071e3 100%);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(0, 113, 227, 0.24);
}

.scale span:active {
  transform: scale(0.98);
}

.scale-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.quiz-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  gap: 14px;
  margin: 0 0 22px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.quiz-stepper {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.step-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 0 12px 0 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.step-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
  font-size: 12px;
}

.step-chip.active {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: rgba(0, 113, 227, 0.10);
}

.step-chip.active span,
.step-chip.done span {
  background: var(--primary);
  color: #fff;
}

.step-chip.done {
  border-color: rgba(22, 132, 111, 0.4);
  color: #10664f;
}

.quiz-actions,
.quiz-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.quiz-actions {
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.quiz-actions .btn {
  min-width: 112px;
}

#quiz-prev:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.quiz-footer {
  margin-top: 18px;
}

.inline-quiz-action {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.inline-quiz-action p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.inline-quiz-action .btn {
  width: 100%;
  height: 52px;
  font-size: 17px;
}

.generating-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}

.generating-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.generating-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 800;
}

.generating-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(245, 245, 247, 0.72);
  opacity: 0;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: opacity 0.22s ease;
}

.generating-overlay.active {
  opacity: 1;
}

.generating-panel {
  width: min(460px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14), 0 1px 0 rgba(255, 255, 255, 0.78) inset;
  text-align: center;
}

.generating-panel h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.generating-panel p {
  margin: 0 auto 24px;
  max-width: 340px;
  color: var(--muted);
  font-weight: 750;
}

.generating-mark {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
}

.generating-mark::before,
.generating-mark::after,
.generating-mark span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.generating-mark::before {
  content: "";
  border: 1px solid rgba(0, 113, 227, 0.14);
  background: rgba(0, 113, 227, 0.06);
}

.generating-mark::after {
  content: "";
  inset: 16px;
  background: linear-gradient(180deg, #0a84ff 0%, #0071e3 100%);
  box-shadow: 0 12px 26px rgba(0, 113, 227, 0.24);
}

.generating-mark span {
  border: 1px solid rgba(0, 113, 227, 0.24);
  animation: pulse-ring 1.9s ease-out infinite;
}

.generating-mark span + span {
  animation-delay: 0.55s;
}

.progress-shell {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eaee;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0071e3 0%, #34c759 100%);
  transition: width 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.progress-text {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.loader,
.mini-loader {
  display: inline-block;
  border-radius: 999px;
  border: 3px solid rgba(23, 105, 170, 0.18);
  border-top-color: var(--primary);
  animation: spin 0.82s linear infinite;
}

.loader {
  width: 38px;
  height: 38px;
}

.mini-loader {
  width: 16px;
  height: 16px;
  margin-right: 7px;
  vertical-align: -3px;
  border-width: 2px;
  border-top-color: #fff;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-ring {
  0% {
    opacity: 0.72;
    transform: scale(0.66);
  }

  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

.btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.btn.primary:disabled {
  background: #7aa9cf;
  border-color: #7aa9cf;
}

.report {
  background: rgba(245, 245, 247, 0.82);
}

#report-content {
  display: flex;
  justify-content: center;
}

.report-paper {
  width: min(100%, 920px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  padding: 38px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.10);
}

.report-cover {
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.report-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.report-logo {
  width: 88px;
  height: 84px;
  object-fit: contain;
  flex: 0 0 auto;
}

.report-cover h2 {
  font-size: 38px;
  margin-bottom: 0;
}

dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

dl div,
.summary-grid div {
  background: rgba(246, 246, 248, 0.82);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px;
}

dt,
.summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.report-section {
  break-inside: avoid;
  margin-bottom: 26px;
}

.report-section > h3 {
  padding-left: 0;
  border-left: none;
  font-size: 20px;
}

.ai-review-section {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.74);
}

.ai-review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.ai-review-header h3 {
  margin-bottom: 0;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.ai-review-grid,
.ai-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.ai-review-grid > div,
.ai-list-grid > div {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.ai-review-grid h4,
.ai-list-grid h4 {
  margin-bottom: 6px;
}

.ai-review-grid p,
.ai-list-grid p {
  margin-bottom: 6px;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.lead {
  font-size: 16px;
  color: #26313d;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.summary-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.bar-list {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 92px 1fr 42px;
  gap: 10px;
  align-items: center;
}

.bar-label,
.bar-score {
  font-size: 13px;
  font-weight: 900;
}

.bar-score {
  text-align: right;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eaee;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0071e3, #34c759);
}

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

.recommend-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.related-careers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
}

.related-careers span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.related-careers em {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  padding: 0 8px;
  background: #f2f7f5;
  color: #10664f;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--primary-dark);
  font-weight: 900;
}

.muted {
  color: var(--muted);
  margin-bottom: 8px;
}

.score-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.score-pill,
.priority-pill {
  margin-bottom: 8px;
  font-size: 13px;
}

.priority-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  background: #f4f6f8;
  color: var(--muted);
  font-weight: 900;
}

.score-pill.strong {
  background: #e7f8f2;
  color: #10664f;
}

.score-pill.good {
  background: rgba(0, 113, 227, 0.08);
  color: var(--primary-dark);
}

.score-pill.mid {
  background: #fff7e8;
  color: var(--warning);
}

.score-pill.low {
  background: #f4f6f8;
  color: var(--muted);
}

.advice-list p,
.note-section p {
  border-left: 3px solid var(--line);
  padding-left: 12px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 16px;
}

.admin-tabs {
  margin-bottom: 14px;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.78);
}

th,
td {
  border-bottom: 1px solid var(--line-soft);
  padding: 11px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 13px;
}

code {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 6px;
  background: var(--surface-soft);
}

.copy-key {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.copy-key:hover,
.copy-key.copied {
  border-color: rgba(0, 113, 227, 0.35);
  background: rgba(0, 113, 227, 0.08);
  color: var(--primary-dark);
}

.copy-key:active {
  transform: scale(0.98);
}

.key-output {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.submission-list,
.config-list {
  display: grid;
  gap: 10px;
}

.submission-card,
.config-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.submission-card div,
.config-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.config-item > div:first-child {
  min-width: 0;
}

.submission-card p,
.config-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.mapping-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.mapping-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.68);
  color: #3a3a3c;
  font-size: 12px;
  font-weight: 800;
}

.env-panel {
  margin-bottom: 16px;
}

.env-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.env-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.env-card strong,
.env-card span {
  display: block;
}

.env-card strong {
  margin-bottom: 5px;
}

.env-card span {
  color: var(--muted);
  font-weight: 800;
}

.env-card.ok {
  border-color: rgba(22, 132, 111, 0.3);
  background: #f3fbf8;
}

.env-card.warn {
  border-color: rgba(161, 92, 7, 0.28);
  background: #fff8eb;
}

.hidden {
  display: none !important;
}

@media (max-width: 860px) {
  body {
    padding: 12px;
  }

  h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .brand-lockup {
    align-items: flex-start;
    gap: 12px;
  }

  .brand-logo {
    width: 58px;
    height: 54px;
  }

  .topbar,
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .intro-grid,
  .two-column,
  .summary-grid,
  .recommend-grid,
  .ai-review-grid,
  .ai-list-grid,
  .admin-grid,
  .inline-form,
  .editor-form,
  dl {
    grid-template-columns: 1fr;
  }

  .wide-field {
    grid-column: auto;
  }

  .report-paper {
    padding: 22px;
  }

  .report-brand {
    align-items: flex-start;
    gap: 12px;
  }

  .report-logo {
    width: 62px;
    height: 58px;
  }

  .report-cover h2 {
    font-size: 27px;
  }

  .panel {
    padding: 18px;
  }

  .quiz-nav {
    margin-left: -6px;
    margin-right: -6px;
    padding: 12px;
  }

  .quiz-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .quiz-actions .btn {
    width: 100%;
    min-width: 0;
  }

  #submit-quiz {
    grid-column: span 2;
  }

  .env-status {
    grid-template-columns: 1fr;
  }

  .intro-copy h2 {
    font-size: 31px;
  }

  .bar-row {
    grid-template-columns: 86px 1fr 36px;
  }
}

@media print {
  html,
  body {
    background: #fff;
    padding: 0;
  }

  .topbar,
  .print-hidden,
  #access-card,
  #quiz-card,
  #admin-view,
  body:not(.printing-report) #report-card {
    display: none !important;
  }

  .app-shell {
    width: 100%;
  }

  .panel {
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .report,
  #report-content {
    display: block;
    background: #fff;
  }

  .report-paper {
    width: 100%;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }

  .report-section {
    page-break-inside: avoid;
  }
}
