/* ============================================
   Colloqua — Editorial Design System
   ============================================ */

:root {
  /* Warm, serious palette inspired by editorial design */
  --ink: #1a1a1a;
  --ink-light: #4a4a4a;
  --ink-muted: #8a8a8a;
  --paper: #faf9f7;
  --paper-warm: #f5f3ef;
  --paper-hover: #edeae4;
  --accent: #c0392b;
  --accent-hover: #a93226;
  --accent-soft: #c0392b18;
  --success: #27ae60;
  --success-soft: #27ae6018;
  --border: #e0ddd7;
  --border-strong: #ccc8c0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
  --radius: 8px;
  --radius-lg: 12px;
  
  /* Typography */
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   Layout
   ============================================ */

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 960px;
}

/* ============================================
   Header
   ============================================ */

.header {
  border-bottom: 1px solid var(--border);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(250, 249, 247, 0.92);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header__logo-icon {
  width: 28px;
  height: 28px;
  background: var(--ink);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__logo-icon img {
  filter: invert(1);
}

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

/* ============================================
   Typography
   ============================================ */

.heading-1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.heading-2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.heading-3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.text-muted {
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.text-small {
  font-size: 0.82rem;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--ink);
  color: white;
}

.btn--primary:hover:not(:disabled) {
  background: #333;
  box-shadow: var(--shadow-sm);
}

.btn--accent {
  background: var(--accent);
  color: white;
}

.btn--accent:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: var(--shadow-sm);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-light);
  padding: 8px 14px;
}

.btn--ghost:hover:not(:disabled) {
  background: var(--paper-hover);
  color: var(--ink);
}

.btn--outline {
  background: white;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.btn--outline:hover:not(:disabled) {
  background: var(--paper-warm);
  border-color: var(--ink-muted);
}

.btn--danger {
  background: transparent;
  color: var(--accent);
}

.btn--danger:hover:not(:disabled) {
  background: var(--accent-soft);
}

.btn--small {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.btn--large {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* ============================================
   Forms
   ============================================ */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-light);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--ink-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

/* ============================================
   Cards
   ============================================ */

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow 0.15s;
}

.card:hover {
  box-shadow: var(--shadow-sm);
}

.card--interactive {
  cursor: pointer;
}

.card--interactive:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

/* ============================================
   Login Screen
   ============================================ */

.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-box {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.login-box__icon {
  width: 56px;
  height: 56px;
  background: var(--ink);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: white;
}

.login-box__icon img {
  filter: invert(1);
}

.login-box__title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.login-box__subtitle {
  color: var(--ink-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.login-box .form-input {
  text-align: center;
  margin-bottom: 16px;
}

.login-box .btn {
  width: 100%;
  justify-content: center;
}

.login-error {
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 12px;
}

/* ============================================
   Admin Dashboard
   ============================================ */

.page-header {
  padding: 40px 0 32px;
}

.page-header__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-header__subtitle {
  color: var(--ink-muted);
  margin-top: 6px;
  font-size: 0.95rem;
}

.interview-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 60px;
}

.interview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.interview-card__info {
  flex: 1;
  min-width: 0;
}

.interview-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.interview-card__meta {
  display: flex;
  gap: 16px;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.interview-card__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-state__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state__text {
  color: var(--ink-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

/* ============================================
   Interview Detail (Admin)
   ============================================ */

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 12px;
  cursor: pointer;
  transition: color 0.15s;
}

.detail-back:hover {
  color: var(--ink);
}

.share-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-top: 16px;
}

.share-link-box__url {
  flex: 1;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--ink-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
}

.response-group {
  margin-top: 32px;
}

.response-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.response-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.response-item:last-child {
  border-bottom: none;
}

.response-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.response-item__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.response-item__date {
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.response-item__question {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-light);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.response-item__audio {
  display: flex;
  align-items: center;
  gap: 12px;
}

.response-item__audio audio {
  flex: 1;
  height: 40px;
}

/* ============================================
   Transcript
   ============================================ */

.transcript {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--paper-warm);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.transcript__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.transcript__text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-light);
  white-space: pre-wrap;
}

.transcript--pending .transcript__label {
  color: var(--ink-muted);
  font-style: italic;
}

.transcript--failed .transcript__label {
  color: var(--accent);
}

/* ============================================
   Create Interview Modal
   ============================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.15s ease;
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s ease;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0;
}

.modal__body {
  padding: 24px;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Question builder */
.question-list-edit {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.question-edit-row {
  display: flex;
  gap: 8px;
  align-items: start;
}

.question-edit-row__number {
  width: 28px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.question-edit-row .form-textarea {
  min-height: 40px;
  height: 40px;
  padding: 8px 12px;
}

.question-edit-row .btn {
  flex-shrink: 0;
  height: 40px;
}

.add-question-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.15s;
  background: none;
  border: none;
  font-family: var(--font-sans);
}

.add-question-btn:hover {
  color: var(--ink);
}

/* ============================================
   Public Interview — Respondent View
   ============================================ */

.interview-public {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.interview-public__header {
  padding: 32px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.interview-public__intro {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.interview-public__title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.interview-public__desc {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Briefing accordion */
.briefing-accordion {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
  text-align: left;
}

.briefing-accordion__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-light);
  transition: color 0.15s, background 0.15s;
}

.briefing-accordion__toggle:hover {
  color: var(--ink);
  background: rgba(0,0,0,0.02);
}

.briefing-accordion__icon {
  transition: transform 0.2s ease;
  font-size: 1.2rem;
  color: var(--ink-muted);
}

.briefing-accordion--open .briefing-accordion__icon {
  transform: rotate(90deg);
}

.briefing-accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.briefing-accordion--open .briefing-accordion__content {
  max-height: 5000px;
}

.briefing-accordion__text {
  padding: 4px 20px 20px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-light);
}

.briefing-accordion__text h1,
.briefing-accordion__text h2,
.briefing-accordion__text h3 {
  font-family: var(--font-serif);
  color: var(--ink);
  margin: 16px 0 8px;
}
.briefing-accordion__text > :first-child {
  margin-top: 0;
}
.briefing-accordion__text h1 { font-size: 1.4rem; }
.briefing-accordion__text h2 { font-size: 1.2rem; }
.briefing-accordion__text h3 { font-size: 1.05rem; }
.briefing-accordion__text p { margin: 0 0 8px; }

.briefing-accordion__file {
  padding: 0 20px 20px;
}

/* Briefing file attachment */
.briefing-file {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.briefing-file__link {
  color: var(--ink-light);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s;
}
.briefing-file__link:hover {
  color: var(--ink);
}

/* Rich text editor */
.rich-editor {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rich-editor:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}

.rich-editor__toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  background: var(--warm-bg);
}

.rich-editor__sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 6px;
}

.rich-editor__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 28px;
  padding: 0 6px;
  border: none;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--ink-light);
  transition: background 0.1s, color 0.1s;
}

.rich-editor__btn:hover {
  background: rgba(0,0,0,0.06);
  color: var(--ink);
}

.rich-editor__btn--active {
  background: var(--ink);
  color: white;
}

.rich-editor__content {
  min-height: 100px;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
  outline: none;
}

.rich-editor__content h1,
.rich-editor__content h2,
.rich-editor__content h3 {
  font-family: var(--font-serif);
  margin: 12px 0 6px;
}
.rich-editor__content h1 { font-size: 1.4rem; }
.rich-editor__content h2 { font-size: 1.2rem; }
.rich-editor__content h3 { font-size: 1.05rem; }
.rich-editor__content p { margin: 0 0 8px; }

.rich-editor__content:empty::before {
  content: "Optional background information, context, or instructions for respondents...";
  color: var(--ink-muted);
  pointer-events: none;
}

/* Respondent info form */
.respondent-form {
  max-width: 420px;
  margin: 48px auto;
  padding: 0 24px;
  text-align: center;
}

.respondent-form__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.respondent-form__desc {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

/* Question stepper */
.stepper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.stepper__progress {
  height: 3px;
  background: var(--border);
  position: relative;
}

.stepper__progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.4s ease;
}

.stepper__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  max-width: 580px;
  margin: 0 auto;
  width: 100%;
}

.stepper__counter {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.stepper__question {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 48px;
  color: var(--ink);
}

/* Audio recorder */
.recorder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.recorder__button {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--border);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.recorder__button:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.recorder__button--recording {
  border-color: var(--accent);
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

.recorder__button--recording:hover {
  background: var(--accent-hover);
}

.recorder__button-inner {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.recorder__button--recording .recorder__button-inner {
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 4px;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0.2); }
  50% { box-shadow: 0 0 0 16px rgba(192,57,43,0); }
}

.recorder__timer {
  font-family: monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.recorder__hint {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

/* Recorded state */
.recorder__playback {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.recorder__playback audio {
  width: 100%;
  max-width: 400px;
  height: 44px;
}

.recorder__playback-actions {
  display: flex;
  gap: 10px;
}

/* Stepper nav */
.stepper__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid var(--border);
}

/* ============================================
   Success screen
   ============================================ */

.success-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.success-screen__icon {
  width: 72px;
  height: 72px;
  background: var(--success-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
}

.success-screen__title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.success-screen__text {
  color: var(--ink-muted);
  font-size: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

/* ============================================
   Badge / Tag
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge--count {
  background: var(--paper-warm);
  color: var(--ink-light);
  border: 1px solid var(--border);
}

/* ============================================
   Invitee tracker
   ============================================ */

.invitee-tracker {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.invitee-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--border);
  transition: background 0.15s;
}

.invitee-row--done {
  background: var(--success-soft);
  border-color: transparent;
}

.invitee-row__status {
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.invitee-check {
  color: var(--success);
  font-weight: 700;
  font-size: 1rem;
}

.invitee-pending {
  color: var(--ink-muted);
  font-size: 1rem;
}

.invitee-row__info {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.invitee-row__name {
  font-weight: 600;
  font-size: 0.92rem;
}

.invitee-row__meta {
  flex-shrink: 0;
}

/* Invitee edit rows (in modals) */
.invitee-list-edit {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.invitee-edit-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.invitee-edit-row .form-input {
  padding: 8px 12px;
  font-size: 0.9rem;
}

/* Badge done state */
.badge--done {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(39,174,96,0.2);
}

/* ============================================
   Waveform visualiser
   ============================================ */

.recorder__waveform {
  width: 280px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--paper-warm);
  border: 1px solid var(--border);
}

/* ============================================
   Question dots (stepper navigation)
   ============================================ */

.stepper__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  flex-wrap: wrap;
}

.stepper__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: white;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper__dot:hover {
  border-color: var(--ink-muted);
  color: var(--ink);
}

.stepper__dot--current {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--paper-warm);
}

.stepper__dot--done {
  border-color: var(--success);
  background: var(--success);
  color: white;
}

.stepper__dot--done.stepper__dot--current {
  box-shadow: 0 0 0 3px var(--success-soft);
}

/* ============================================
   Upload progress bar
   ============================================ */

.upload-progress {
  width: 100%;
  max-width: 320px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin: 20px auto 0;
}

.upload-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.2s ease;
}

/* ============================================
   Utilities
   ============================================ */

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 640px) {
  html { font-size: 16px; }
  .heading-1 { font-size: 1.7rem; }
  .heading-2 { font-size: 1.3rem; }
  .stepper__question { font-size: 1.25rem; margin-bottom: 32px; }
  .stepper__content { padding: 32px 24px; }
  .interview-public__title { font-size: 1.5rem; }
  .page-header__row { flex-direction: column; }
  .interview-card { flex-direction: column; align-items: flex-start; }
  .interview-card__actions { width: 100%; }
  .modal { max-height: 95vh; margin: 12px; }
  .stepper__nav { flex-wrap: wrap; }
  .stepper__nav .btn--large { width: 100%; justify-content: center; }

  /* Briefing accordion — larger touch target on mobile */
  .briefing-accordion__toggle { padding: 18px 16px; font-size: 1rem; }
  .briefing-accordion__icon { font-size: 1.3rem; }
  .briefing-accordion__text { padding: 0 16px 16px; font-size: 0.9rem; }
  .briefing-accordion__file { padding: 0 16px 16px; }

  /* Rich text editor on mobile */
  .rich-editor__toolbar { flex-wrap: wrap; padding: 6px; }
  .rich-editor__btn { min-width: 36px; height: 34px; font-size: 0.82rem; }
  .rich-editor__content { min-height: 80px; padding: 10px 14px; font-size: 0.93rem; }

  /* File upload on mobile */
  .briefing-file { flex-wrap: wrap; }
  .briefing-file__link { word-break: break-all; }

  /* Settings layout on mobile */
  .form-group .form-input { max-width: 100% !important; }
}
