:root {
  color-scheme: light;
  --ink: #1e2924;
  --ink-soft: #45534d;
  --muted: #718078;
  --paper: #f4f1e9;
  --paper-deep: #ebe6da;
  --surface: #fffdf8;
  --surface-soft: #f9f6ef;
  --brand: #173f35;
  --brand-strong: #102f28;
  --brand-soft: #dce8e2;
  --accent: #b95c3d;
  --accent-soft: #f4ddd4;
  --gold: #b78339;
  --danger: #a6403e;
  --danger-soft: #f7e2df;
  --success: #34745c;
  --success-soft: #e0eee7;
  --border: #d8d2c5;
  --border-strong: #b8b1a3;
  --shadow-sm: 0 1px 2px rgba(20, 38, 31, 0.05), 0 8px 24px rgba(20, 38, 31, 0.04);
  --shadow-md: 0 16px 50px rgba(20, 38, 31, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(185, 92, 61, 0.38);
  outline-offset: 2px;
}

.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;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 17px;
  letter-spacing: 0.06em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px clamp(18px, 3vw, 42px);
  border-bottom: 1px solid rgba(216, 210, 197, 0.85);
  background: rgba(244, 241, 233, 0.94);
  backdrop-filter: blur(18px);
}

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

.quiet-status,
.user-chip,
.save-state {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.75);
  font-size: 12px;
  white-space: nowrap;
}

.quiet-status::before {
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.quiet-status.is-ready::before {
  background: var(--success);
}

.quiet-status.is-offline::before {
  background: var(--danger);
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

.button-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(23, 63, 53, 0.15);
}

.button-primary:hover:not(:disabled) {
  background: var(--brand-strong);
}

.button-secondary {
  border-color: var(--border);
  color: var(--ink);
  background: var(--surface);
}

.button-secondary:hover:not(:disabled) {
  border-color: var(--border-strong);
  background: #fff;
}

.button-danger {
  color: #fff;
  background: var(--danger);
}

.button-large {
  min-height: 50px;
  padding-inline: 24px;
  font-size: 15px;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink-soft);
  background: transparent;
  font-size: 24px;
  line-height: 1;
}

.text-button {
  min-height: 38px;
  padding: 4px 0;
  border: 0;
  color: var(--brand);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.workspace {
  display: grid;
  min-height: calc(100vh - 68px);
  grid-template-columns: minmax(310px, 370px) minmax(0, 1fr);
}

.queue-panel {
  display: flex;
  min-height: calc(100vh - 68px);
  flex-direction: column;
  padding: 28px 20px 22px;
  border-right: 1px solid var(--border);
  background: rgba(249, 246, 239, 0.68);
}

.queue-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.queue-heading h1 {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.count-badge {
  display: inline-grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  margin-top: 2px;
  border-radius: 50%;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 800;
}

.search-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
}

.filter-row {
  display: flex;
  gap: 6px;
  margin: 12px 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.filter-chip:hover {
  background: var(--paper-deep);
}

.filter-chip.is-active {
  border-color: var(--border);
  color: var(--brand);
  background: var(--surface);
}

.queue-list {
  display: grid;
  align-content: start;
  gap: 9px;
  overflow-y: auto;
}

.interview-row {
  position: relative;
  width: 100%;
  min-height: 92px;
  padding: 14px 14px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.interview-row:hover {
  border-color: var(--border);
  background: rgba(255, 253, 248, 0.7);
}

.interview-row.is-selected {
  border-color: rgba(23, 63, 53, 0.2);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.row-topline,
.row-meta,
.detail-topline,
.section-heading,
.review-actions,
.audio-heading,
.recording-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.interview-row h2 {
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.interview-row .job-line {
  margin: 5px 0 11px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-meta {
  color: var(--muted);
  font-size: 11px;
}

.status-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.status-interviewing {
  border-color: #e4b6a8;
  color: #873f29;
  background: var(--accent-soft);
}

.status-pill.status-completed,
.status-pill.status-reviewed,
.status-pill.status-assessment_submitted {
  border-color: #bad8ca;
  color: var(--success);
  background: var(--success-soft);
}

.status-pill.status-analysis_failed {
  border-color: #e3b5b3;
  color: var(--danger);
  background: var(--danger-soft);
}

.empty-list {
  padding: 28px 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
}

.skeleton-list {
  display: grid;
  gap: 9px;
}

.skeleton-row {
  height: 92px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #e9e4d9, #f6f2e9, #e9e4d9);
  background-size: 220% 100%;
  animation: shimmer 1.6s infinite linear;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -20% 0; }
}

.detail-panel {
  min-width: 0;
  padding: clamp(24px, 4vw, 50px);
}

.empty-state {
  display: grid;
  max-width: 560px;
  min-height: calc(100vh - 168px);
  align-content: center;
  margin: 0 auto;
  text-align: center;
}

.empty-symbol {
  display: inline-grid;
  width: 104px;
  height: 104px;
  place-items: center;
  margin: 0 auto 22px;
  border: 1px solid var(--border);
  border-radius: 34px;
  background: rgba(255, 253, 248, 0.74);
  box-shadow: var(--shadow-sm);
  transform: rotate(-3deg);
}

.empty-symbol img {
  width: 58px;
  opacity: 0.9;
}

.empty-state h2 {
  margin: 8px 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.04em;
}

.empty-state > p:not(.eyebrow) {
  max-width: 470px;
  margin: 0 auto 22px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.empty-state .button {
  justify-self: center;
}

.interview-detail {
  max-width: 1180px;
  margin: 0 auto;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: start;
  margin-bottom: 28px;
}

.detail-hero h1 {
  margin: 6px 0 7px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.detail-column {
  display: grid;
  gap: 18px;
}

.surface {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.surface-pad {
  padding: clamp(18px, 2.2vw, 26px);
}

.section-heading {
  align-items: flex-start;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 3px 0 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.link-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid #cfddd7;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
}

.link-card h2 {
  margin: 0 0 5px;
  font-size: 14px;
}

.link-card p {
  margin: 0 0 11px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.link-value {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--brand-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-image {
  width: 96px;
  height: 96px;
  border-radius: 9px;
  background: #fff;
}

.qr-fallback {
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.info-list,
.simple-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-pair {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid #ebe6dc;
}

.info-pair:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-pair dt {
  color: var(--muted);
  font-size: 12px;
}

.info-pair dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.text-block {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.resume-entry {
  display: grid;
  gap: 5px;
  padding: 13px 0;
  border-top: 1px solid #ebe6dc;
}

.resume-entry:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.resume-entry strong {
  font-size: 14px;
}

.resume-entry span {
  color: var(--muted);
  font-size: 12px;
}

.metric-list {
  display: grid;
  gap: 11px;
}

.metric-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.metric-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-deep);
}

.metric-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-2);
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.role-tag {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 11px;
  font-weight: 700;
}

.notice {
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #715422;
  background: #fbf0dd;
  font-size: 12px;
  line-height: 1.7;
}

.notice.danger {
  border-left-color: var(--danger);
  color: #71312f;
  background: var(--danger-soft);
}

.recording-panel {
  overflow: hidden;
}

.recording-heading {
  padding: 16px 20px;
  color: #fff;
  background: var(--brand);
}

.recording-heading h2 {
  margin: 0;
  font-size: 16px;
}

.recording-body {
  padding: 18px 20px 20px;
}

.recording-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.recording-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
}

.recording-dot::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  animation: pulse 1.3s infinite ease-in-out;
}

.recording-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}

.waveform {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}

.waveform i {
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.62;
  transition: height 80ms linear;
}

.live-transcript {
  max-height: 230px;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.suggestion-card {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #e4c4b9;
  border-radius: var(--radius-sm);
  background: #fff9f5;
}

.suggestion-card h3 {
  margin: 0 0 7px;
  color: #7e3c28;
  font-size: 14px;
}

.suggestion-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.suggestion-card strong {
  display: block;
  margin: 10px 0 5px;
  color: var(--ink);
  font-size: 13px;
}

.audio-player {
  width: 100%;
  margin: 4px 0 18px;
}

.transcript-full {
  max-height: 320px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.report-summary {
  padding: 18px;
  border-radius: var(--radius-sm);
  color: #213a31;
  background: var(--brand-soft);
  font-size: 14px;
  line-height: 1.8;
}

.evidence-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.evidence-item {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.evidence-item h3 {
  margin: 0 0 5px;
  font-size: 13px;
}

.evidence-item blockquote {
  margin: 8px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.review-form {
  display: grid;
  gap: 13px;
}

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

.review-option {
  position: relative;
}

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

.review-option span {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.review-option input:checked + span {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.modal {
  width: min(760px, calc(100vw - 30px));
  max-height: calc(100vh - 30px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  box-shadow: var(--shadow-md);
}

.modal::backdrop {
  background: rgba(17, 32, 27, 0.46);
  backdrop-filter: blur(4px);
}

.modal-card {
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.modal-header h2 {
  margin: 5px 0 0;
  font-family: var(--font-serif);
  font-size: 30px;
  letter-spacing: -0.04em;
}

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

.form-stack {
  display: grid;
  gap: 17px;
}

.field {
  display: grid;
  gap: 7px;
  align-content: start;
}

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

.field > span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.field em {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-2);
  outline: 3px solid rgba(44, 103, 87, 0.12);
  outline-offset: 0;
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--danger);
}

.form-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.6;
}

.modal-actions,
.flow-actions,
.assessment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: min(360px, calc(100vw - 40px));
  gap: 8px;
}

.toast {
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  line-height: 1.55;
}

.toast.is-error {
  border-color: #e0b5b2;
  color: #763330;
  background: var(--danger-soft);
}

/* Candidate */

.candidate-page {
  background:
    radial-gradient(circle at 8% 2%, rgba(185, 92, 61, 0.07), transparent 30rem),
    radial-gradient(circle at 96% 22%, rgba(23, 63, 53, 0.08), transparent 34rem),
    var(--paper);
}

.candidate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 12px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 210, 197, 0.7);
}

.candidate-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(30px, 6vw, 74px) 0 60px;
}

.candidate-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(32px, 7vw, 94px);
  align-items: center;
  min-height: calc(100vh - 220px);
}

.intro-copy h1,
.completion-view h1,
.blocked-view h1,
.assessment-top h1,
.step-heading h1 {
  margin: 8px 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.intro-copy > p:not(.eyebrow),
.step-heading > p:not(.eyebrow),
.completion-view > p,
.blocked-view > p {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
}

.job-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0;
}

.context-chip {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.66);
  font-size: 12px;
}

.intro-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.subtle-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.intro-notes {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: var(--shadow-sm);
}

.intro-notes h2 {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: 23px;
}

.intro-notes ol {
  display: grid;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.intro-notes li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
}

.intro-notes li > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.intro-notes strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.intro-notes p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.candidate-flow,
.assessment-shell {
  max-width: 880px;
  margin: 0 auto;
}

.flow-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.step-progress {
  display: grid;
  grid-template-columns: auto minmax(110px, 220px) auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.progress-track,
.assessment-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-deep);
}

.progress-track i,
.assessment-progress i {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 240ms ease;
}

.form-step {
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.step-heading {
  margin-bottom: 28px;
}

.step-heading h1 {
  font-size: clamp(34px, 5vw, 52px);
}

.step-heading > p:not(.eyebrow) {
  margin-bottom: 0;
  font-size: 14px;
}

.repeat-list {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.repeat-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.repeat-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.repeat-card-heading h2 {
  margin: 0;
  font-size: 15px;
}

.add-entry {
  width: 100%;
  border-style: dashed;
}

.consent-card {
  margin-bottom: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.consent-card h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.consent-card p {
  margin: 0 0 15px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.check-row {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.check-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--brand);
}

.assessment-shell {
  padding-top: 20px;
}

.assessment-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
}

.assessment-top h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 54px);
}

.assessment-counter {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
}

.assessment-counter strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 500;
}

.assessment-progress {
  height: 7px;
  margin-bottom: 24px;
}

.question-card {
  min-height: 350px;
  padding: clamp(26px, 6vw, 52px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.question-group {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.question-text {
  max-width: 690px;
  margin: 0 0 30px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.8vw, 38px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.answer-scale,
.forced-options {
  display: grid;
  gap: 9px;
}

.answer-scale {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.answer-option {
  position: relative;
}

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

.answer-option span {
  display: grid;
  min-height: 76px;
  place-items: center;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.answer-option input:checked + span {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}

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

.forced-option {
  position: relative;
}

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

.forced-option span {
  display: grid;
  min-height: 108px;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.forced-option input:checked + span {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.completion-view,
.blocked-view {
  display: grid;
  max-width: 640px;
  min-height: calc(100vh - 240px);
  align-content: center;
  justify-items: center;
  margin: 0 auto;
  text-align: center;
}

.completion-view h1,
.blocked-view h1 {
  font-size: clamp(40px, 7vw, 64px);
}

.completion-view > p:not(.eyebrow),
.blocked-view > p {
  margin: 0 0 22px;
}

.completion-mark {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 18px 48px rgba(23, 63, 53, 0.2);
  font-size: 30px;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.86); opacity: 0.55; }
  50% { transform: scale(1.12); opacity: 1; }
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  }

  .detail-panel {
    padding: 28px 24px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .app-header {
    position: static;
    min-height: 62px;
    padding: 10px 16px;
  }

  .brand-copy small,
  .quiet-status,
  .user-chip {
    display: none;
  }

  .header-actions {
    gap: 7px;
  }

  .app-header .button {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .workspace {
    display: block;
    min-height: 0;
  }

  .queue-panel {
    min-height: auto;
    padding: 18px 16px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .queue-heading {
    margin-bottom: 10px;
  }

  .queue-heading h1 {
    font-size: 24px;
  }

  .queue-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .interview-row {
    flex: 0 0 min(82vw, 300px);
    border-color: var(--border);
    background: rgba(255, 253, 248, 0.54);
    scroll-snap-align: start;
  }

  .detail-panel {
    padding: 24px 16px 46px;
  }

  .empty-state {
    min-height: 55vh;
  }

  .detail-hero h1 {
    font-size: 38px;
  }

  .link-card {
    grid-template-columns: minmax(0, 1fr) 78px;
  }

  .qr-image {
    width: 78px;
    height: 78px;
  }

  .form-grid,
  .review-options {
    grid-template-columns: 1fr;
  }

  .modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 18px;
  }

  .modal-card {
    padding: 20px;
  }

  .candidate-shell {
    width: min(100% - 28px, 760px);
    padding-top: 30px;
  }

  .candidate-intro {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 25px;
  }

  .intro-copy h1 {
    font-size: 43px;
  }

  .intro-notes {
    padding: 22px;
  }

  .flow-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .step-progress {
    width: 100%;
    grid-template-columns: auto minmax(80px, 1fr) auto;
  }

  .form-step,
  .question-card {
    padding: 20px;
    border-radius: var(--radius-md);
  }

  .step-heading h1 {
    font-size: 38px;
  }

  .repeat-card {
    padding: 16px;
  }

  .assessment-top {
    align-items: flex-start;
  }

  .assessment-top h1 {
    font-size: 36px;
  }

  .assessment-counter strong {
    font-size: 36px;
  }

  .question-text {
    font-size: 26px;
  }

  .answer-scale {
    gap: 6px;
  }

  .answer-option span {
    min-height: 70px;
    padding-inline: 5px;
    font-size: 11px;
  }

  .forced-options {
    grid-template-columns: 1fr;
  }

  .flow-actions,
  .assessment-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 18px -10px -10px;
    padding: 12px 10px calc(12px + env(safe-area-inset-bottom));
    background: rgba(244, 241, 233, 0.94);
    backdrop-filter: blur(14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
