@import url("/assets/cache/generated-print.6e41c324a9948d88.css");
@import url("/assets/cache/generated-workspace.70277f189ba3afbe.css");

/* ============================================================
   CommonHelpSource — Assessment Standard Layout
   Editorial design system. Overrides Tailwind / DaisyUI.
   ============================================================ */

:root {
  --primary:   #2a6b6b;   /* teal — was blue */
  --secondary: #3d6b4f;   /* sage — was purple */
  --accent:    #b8860b;   /* gold */
  --neutral:   #1a1a18;   /* ink */
  --base-100:  #faf8f4;   /* warm white */
  --error:     #c0392b;   /* red */
  --success:   #2a6b6b;   /* teal */
}

/* ── BASE ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #faf8f4;
  padding-bottom: 80px;
  color: #1a1a18;
  -webkit-font-smoothing: antialiased;
}

/* ── HERO / PAGE TITLE ───────────────────────────────────── */
.survey-hero {
  background: #1a1a18 !important;
  background-image: none !important;
  color: #f5f0e8;
  padding: 48px 24px 52px;
  text-align: left;
  margin: 0;
  position: relative;
}
.survey-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: #c0392b;
}
.survey-hero h1 {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: clamp(26px, 4vw, 46px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.5px !important;
  color: #f5f0e8 !important;
  line-height: 1.1 !important;
  margin: 0 0 12px !important;
}
.survey-hero p {
  font-size: 15px !important;
  color: rgba(245,240,232,0.55) !important;
  max-width: 560px;
  line-height: 1.65;
  margin: 0;
}
.hero-container,
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
}
.hero-content { max-width: 800px; }

/* Eyebrow label above hero h1 */
.survey-eyebrow {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 14px;
  display: block;
}

/* ── MAIN LAYOUT ─────────────────────────────────────────── */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}
.assessment-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Section headers inside assessment body */
.assessment-section-label {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b6560;
  margin-bottom: 18px;
  display: block;
}

/* ── QUESTION CARDS ──────────────────────────────────────── */
.question,
.question-container {
  background: #faf8f4;
  padding: 28px 24px 24px;
  border-radius: 2px;
  margin-bottom: 16px;
  border: 1px solid #d4cdc0;
  border-left: 3px solid #d4cdc0;
  transition: border-color 0.15s;
}
.question:hover,
.question-container:hover {
  border-color: #2a6b6b;
  border-left-color: #2a6b6b;
}
.question.answered,
.question-container.answered {
  border-color: #2a6b6b;
  border-left-color: #2a6b6b;
  background: #f5f0e8;
}
.question h3,
.question-container h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #1a1a18;
  line-height: 1.3;
}

/* ── ANSWER OPTIONS ──────────────────────────────────────── */
.options { display: flex; flex-direction: column; gap: 8px; }

.option,
.radio-option {
  padding: 13px 16px;
  background: #faf8f4;
  border: 1px solid #d4cdc0;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  color: #1a1a18;
  display: flex;
  align-items: center;
}
.option:hover,
.radio-option:hover {
  background: #ede8d8;
  border-color: #2a6b6b;
}
.option.selected,
.radio-option.selected {
  background: #2a6b6b;
  border-color: #2a6b6b;
  color: #f5f0e8;
}

/* ── FORM INPUTS ─────────────────────────────────────────── */
.text-input,
.form-select,
input[type="text"],
input[type="number"],
input[type="email"],
select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d4cdc0 !important;
  border-radius: 2px !important;
  font-size: 15px;
  font-family: 'Inter', system-ui, sans-serif !important;
  background: #faf8f4;
  color: #1a1a18;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.text-input:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: #2a6b6b !important;
  box-shadow: 0 0 0 2px rgba(42,107,107,0.15) !important;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.submit-btn,
.btn-primary {
  background: #2a6b6b !important;
  background-image: none !important;
  color: #f5f0e8 !important;
  padding: 14px 28px;
  border: none;
  border-radius: 2px;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  margin-top: 24px;
  transition: background 0.15s;
  box-shadow: none !important;
  transform: none !important;
}
.submit-btn:hover,
.btn-primary:hover {
  background: #1f5252 !important;
  background-image: none !important;
  transform: none !important;
  box-shadow: none !important;
}
.submit-btn:disabled,
.btn-primary:disabled {
  background: #d4cdc0 !important;
  color: #6b6560 !important;
  cursor: not-allowed;
}

/* Secondary / outline button */
.btn {
  padding: 10px 20px;
  border-radius: 2px;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  border: 1px solid #d4cdc0;
  color: #1a1a18;
}
.btn-outline:hover {
  background: #ede8d8;
  border-color: #6b6560;
}
.btn-ghost {
  background: transparent;
  border: none;
  color: #6b6560;
}
.btn-ghost:hover {
  background: #ede8d8;
  color: #1a1a18;
}

/* ── ASSESSMENT CARDS ────────────────────────────────────── */
.assessment-card {
  background: #faf8f4;
  border: 1px solid #d4cdc0;
  border-radius: 2px;
  box-shadow: none !important;
  padding: 28px 24px;
  margin-bottom: 16px;
  transition: border-color 0.15s;
}
.assessment-card:hover {
  box-shadow: none !important;
  transform: none !important;
  border-color: #6b6560;
}

/* ── RESULTS SECTION ─────────────────────────────────────── */
#results { margin-top: 2rem; }
#results .assessment-card { margin-bottom: 0; }
#results h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #1a1a18;
  margin: 0 0 20px;
}

/* Action plan item */
.action-item {
  padding: 18px 20px;
  border: 1px solid #d4cdc0;
  border-left: 3px solid #2a6b6b;
  background: #faf8f4;
  margin-bottom: 10px;
  border-radius: 2px;
}
.action-item:first-child { border-left-color: #c0392b; }

/* Priority badge */
.priority-badge {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  background: #2a6b6b;
  color: #f5f0e8;
  display: inline-block;
  margin-bottom: 8px;
}
.priority-badge.high,
.priority-badge.urgent { background: #c0392b; }
.priority-badge.medium { background: #b8860b; }
.priority-badge.low    { background: #3d6b4f; }

/* ── LOADING STATES ──────────────────────────────────────── */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  background: #faf8f4;
  border: 1px solid #d4cdc0;
  border-radius: 2px;
  margin: 2rem auto;
  max-width: 760px;
  width: 100%;
}
.loading-content {
  text-align: center;
  max-width: 440px;
  padding: 2rem;
  width: 100%;
}
.loading-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #1a1a18;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.loading-content p { color: #6b6560; margin-bottom: 1.5rem; }

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #d4cdc0;
  border-top: 3px solid #2a6b6b;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── PROGRESS BAR ────────────────────────────────────────── */
.progress-bar {
  width: 100%;
  height: 4px;
  background: #d4cdc0;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 28px;
}
.progress-fill {
  height: 100%;
  background: #2a6b6b;
  background-image: none;
  transition: width 0.3s ease;
}

/* ── VOICE BUTTON ────────────────────────────────────────── */
.voice-btn {
  background: #2a6b6b;
  color: #f5f0e8;
  border: none;
  padding: 8px 14px;
  border-radius: 2px;
  cursor: pointer;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 10px;
  transition: background 0.12s;
}
.voice-btn:hover { background: #1f5252; }
.voice-btn.recording { background: #c0392b; animation: pulse 1s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}
.voice-status {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 2px;
  font-size: 13px;
  font-family: 'DM Mono', 'Courier New', monospace;
  display: none;
}
.voice-status.listening {
  background: #e0f0f0;
  color: #1f5252;
  border: 1px solid #2a6b6b;
}
.voice-status.processing {
  background: #fdf3d0;
  color: #5a4000;
  border: 1px solid #b8860b;
}
.voice-status.error {
  background: #fef2f2;
  color: #c0392b;
  border: 1px solid #c0392b;
}

.speech-input-shell {
  position: relative;
}

.speech-input-shell textarea {
  padding-right: 7.5rem;
}

.speech-input-button {
  position: absolute;
  top: .7rem;
  right: .7rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .7rem;
  border: 0;
  border-radius: 999px;
  background: #1f5252;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(23, 55, 50, .18);
}

.speech-input-button:hover { background: #163f3f; }
.speech-input-button[aria-pressed="true"] { background: #a33a2c; }

.speech-input-status {
  min-height: 1.25rem;
  margin-top: .4rem;
  color: #53615d;
  font-size: .78rem;
}

.speech-input-status.is-error { color: #9b2c21; }
.speech-input-feedback { margin-top: .45rem; padding: .65rem .75rem; border: 1px solid #d7e0dd; border-radius: 4px; background: #f7faf9; }
.speech-input-meter { position: relative; height: 6px; overflow: hidden; border-radius: 999px; background: #dce6e3; }
.speech-input-meter::after { content: ""; display: block; width: var(--speech-level, 0%); height: 100%; border-radius: inherit; background: #1f7066; transition: width 80ms linear; }
.speech-input-shell[data-speech-state="hearing"] .speech-input-meter::after { background: #c47e25; }
.speech-input-shell[data-speech-state="listening"] .speech-input-button svg,
.speech-input-shell[data-speech-state="hearing"] .speech-input-button svg { animation: speech-pulse 1.25s ease-in-out infinite; }
.speech-input-preview { min-height: 1.15rem; margin-top: .4rem; color: #344d47; font-size: .8rem; font-style: italic; }
.speech-input-preview:not(:empty)::before { content: "Hearing: “"; font-style: normal; font-weight: 700; }
.speech-input-preview:not(:empty)::after { content: "”"; }
.speech-input-controls { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.speech-input-controls button { border: 1px solid #8ca09b; border-radius: 4px; padding: .4rem .55rem; background: #fff; color: #163f3f; font-size: .74rem; font-weight: 700; cursor: pointer; }
.speech-input-controls button:disabled { cursor: default; opacity: .45; }
.speech-input-unsupported { margin-bottom: .5rem; }
@keyframes speech-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.14); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .speech-input-button svg { animation: none !important; } }

@media (max-width: 520px) {
  .speech-input-shell textarea { padding-right: 4rem; }
  .speech-input-button span:last-child { display: none; }
}

/* ── ERROR MESSAGE ───────────────────────────────────────── */
.error-message {
  background: #fef2f2;
  border: 1px solid #c0392b;
  border-left: 3px solid #c0392b;
  color: #c0392b;
  padding: 16px 18px;
  border-radius: 2px;
  margin: 16px 0;
}
.retry-button {
  background: #c0392b;
  color: #f5f0e8;
  border: none;
  padding: 8px 16px;
  border-radius: 2px;
  cursor: pointer;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 10px;
  transition: background 0.12s;
}
.retry-button:hover { background: #a93225; }

/* ── CHECKBOX OPTIONS ────────────────────────────────────── */
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.checkbox-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2a6b6b;
  border-radius: 2px;
}
.checkbox-option label {
  flex: 1;
  cursor: pointer;
  margin: 0;
  font-size: 14px;
}

/* ── STEP / SCREEN LAYOUT ────────────────────────────────── */
.step-content {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-content.hidden { display: none; }

/* ── ADDITIONAL DETAILS ──────────────────────────────────── */
.additional-details-input { margin-top: 14px; }
.additional-details-input textarea { min-height: 80px; resize: vertical; }

/* ── OLD HEADER STYLES (hidden — replaced by shared-nav.js) ── */
.header-container,
.header-left,
.header-right,
.header-nav,
.header-cta {
  display: none !important;
}

/* ── RESULTS SCREEN SPACING ──────────────────────────────── */
#screen-results { padding-bottom: 80px; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer { margin-top: 0 !important; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .survey-hero { padding: 36px 20px 40px; }
  .main-content { padding: 28px 16px 48px; }
  .question, .question-container { padding: 20px 16px; }
  .assessment-card { padding: 20px 16px; }
  .submit-btn, .btn-primary { font-size: 10px; padding: 13px 20px; }
}

/* ── UTILITY OVERRIDES (keep Tailwind utils working) ─────── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.assessment-privacy-preview {
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px solid #b8d5cf;
  border-left: 4px solid #2a6b6b;
  border-radius: 8px;
  background: #f0fdfa;
  color: #23413f;
  font-size: 13px;
}

.assessment-privacy-preview summary {
  cursor: pointer;
  font-weight: 700;
}

.assessment-privacy-preview p {
  margin: 8px 0 0;
}

.assessment-privacy-preview pre {
  margin: 10px 0 0;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #163a37;
}

.assessment-privacy-identifiers {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid #b8d5cf;
  border-radius: 8px;
  background: #f8fffd;
  color: #23413f;
  font-size: 13px;
}

.assessment-privacy-identifiers label,
.assessment-privacy-identifiers span {
  display: block;
}

.assessment-privacy-identifiers span {
  margin: 4px 0 10px;
}

.assessment-privacy-identifiers textarea {
  width: 100%;
  min-height: 64px;
  box-sizing: border-box;
}

/* Selectable, document-like result presentation. This is HTML rather than an
   embedded PDF so workers can copy individual passages without losing access
   to the normal PDF download. */
.assessment-document-preview {
  width: min(100%, 8.5in);
  margin: 32px auto;
  padding: clamp(24px, 5vw, 54px) !important;
  box-sizing: border-box;
  border: 1px solid #d8d2c4;
  border-top: 7px solid #b84933;
  border-radius: 2px !important;
  background: #fffdf8 !important;
  color: #172522;
  box-shadow: 12px 12px 0 #dcece6, 0 22px 50px rgba(18, 63, 55, 0.15) !important;
  user-select: text;
  -webkit-user-select: text;
}

.assessment-document-preview::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 36px;
  background: linear-gradient(90deg, #123f37 0 68%, #d8a94c 68% 84%, #b84933 84% 100%);
}

.assessment-preview-label {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px 18px;
  margin: calc(-1 * clamp(24px, 5vw, 54px)) calc(-1 * clamp(24px, 5vw, 54px)) 30px;
  padding: 20px clamp(18px, 4vw, 32px) 16px;
  border-bottom: 1px solid #d8d2c4;
  background: #f6f1e7;
  color: #52605c;
}

.assessment-preview-brand strong,
.assessment-preview-brand span,
.assessment-preview-meta strong,
.assessment-preview-meta span {
  display: block;
}

.assessment-preview-brand strong {
  color: #123f37;
  font: 900 clamp(22px, 4vw, 31px)/0.95 "Playfair Display", Georgia, serif;
  letter-spacing: -0.025em;
}

.assessment-preview-brand span {
  margin-top: 7px;
  color: #b84933;
  font: 600 10px/1.2 "DM Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.assessment-preview-meta {
  text-align: right;
}

.assessment-preview-meta strong {
  color: #123f37;
  font: 600 10px/1.2 "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assessment-preview-meta span {
  margin-top: 6px;
  font-size: 12px;
}

.assessment-document-preview h1,
.assessment-document-preview h2,
.assessment-document-preview h3 {
  color: #123f37 !important;
  font-family: "Playfair Display", Georgia, serif !important;
}

.assessment-document-preview .report-preparation {
  border: 1px solid #d8d2c4 !important;
  background: #f6f1e7 !important;
}

.assessment-document-preview .report-step {
  margin: 0 !important;
  padding: 22px 0 !important;
  border: 0 !important;
  border-top: 1px solid #d8d2c4 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  break-inside: avoid;
}

/* Older assessment renderers build their own colored cards rather than using
   assessmentResponse.nextSteps. Flatten those cards into newsletter-style
   sections inside the shared document preview. */
.assessment-document-preview #summary > div {
  padding: 0 0 22px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.assessment-document-preview #nextSteps > div,
.assessment-document-preview #resources > div {
  margin: 0 !important;
  padding: 22px 0 !important;
  border: 0 !important;
  border-top: 1px solid #d8d2c4 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  break-inside: avoid;
}

.assessment-document-preview #nextSteps > div > div > div {
  margin: 0 !important;
  padding: 22px 0 !important;
  border: 0 !important;
  border-top: 1px solid #d8d2c4 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  break-inside: avoid;
}

.assessment-document-preview #nextSteps > div h4,
.assessment-document-preview #resources > div h4 {
  color: #b84933 !important;
  font: 600 11px/1.4 "DM Mono", monospace !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assessment-document-preview .report-step > p:first-child {
  margin-top: 0;
  color: #b84933;
  font: 600 11px/1.4 "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assessment-document-preview .report-note,
.assessment-document-preview .report-warning {
  border: 0 !important;
  border-left: 4px solid #d8a94c !important;
  border-radius: 0 !important;
  background: #f8f3e7 !important;
}

.assessment-document-preview button,
.assessment-document-preview a {
  user-select: none;
  -webkit-user-select: none;
}

@media (max-width: 640px) {
  .assessment-document-preview {
    margin: 18px auto;
    padding: 24px 18px !important;
  }

  .assessment-preview-label {
    margin: -24px -18px 24px;
    padding: 10px 14px;
  }

  .assessment-preview-meta {
    text-align: left;
  }
}

@media print {
  .assessment-document-preview {
    width: auto;
    margin: 0;
    padding: 0 !important;
    border: 0;
    box-shadow: none !important;
  }

  .assessment-document-preview::after {
    display: none;
  }
}

/* Shared assessment workspace: input is centered until there is an actual
   generated PDF to place beside it. */
.assessment-workspace {
  display: grid !important;
  grid-template-columns: minmax(0, 900px) !important;
  justify-content: center;
  gap: 32px !important;
  width: min(900px, calc(100vw - 40px)) !important;
  max-width: none !important;
  margin: 24px 50% 60px !important;
  transform: translateX(-50%);
  align-items: start;
}

.assessment-workspace-input,
.assessment-workspace-output {
  min-width: 0;
}

.assessment-workspace-input > * {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.assessment-workspace-output {
  display: none;
  position: sticky;
  top: 92px;
  min-height: 720px;
  border: 1px solid #d8d2c4;
  border-radius: 14px;
  background: #e9e3d8;
  box-shadow: 0 18px 45px rgba(18, 63, 55, 0.14);
  overflow: hidden;
}

.assessment-workspace[data-assessment-preview-ready="true"] {
  grid-template-columns: minmax(0, 420px) minmax(520px, 1fr) !important;
  justify-content: stretch;
  width: min(1500px, calc(100vw - 40px)) !important;
}

.assessment-workspace[data-assessment-preview-ready="true"] .assessment-workspace-output {
  display: block;
}

.assessment-working-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 620px;
  margin: 18px auto 0;
  padding: 14px 16px;
  border: 1px solid #c8d8d3;
  border-radius: 10px;
  background: #eef6f3;
  color: #123f37;
  font-weight: 700;
  line-height: 1.45;
}

.assessment-working-status[hidden] {
  display: none !important;
}

.assessment-working-spinner {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 3px solid #b8d2cb;
  border-top-color: #b84933;
  border-radius: 50%;
  animation: assessment-working-spin .8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .assessment-working-spinner { animation: none; }
}

.assessment-workspace-placeholder {
  display: grid;
  min-height: 720px;
  place-content: center;
  padding: 48px;
  text-align: center;
  color: #52605c;
  background: linear-gradient(145deg, #f6f1e7, #e7f0ee);
}

.assessment-workspace-placeholder span {
  color: #b84933;
  font: 700 11px/1.2 "DM Mono", monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.assessment-workspace-placeholder h2 {
  margin: 14px 0 10px;
  color: #123f37;
  font: 800 30px/1.08 "Playfair Display", Georgia, serif;
}

.assessment-workspace-placeholder p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.65;
}

.assessment-pdf-frame {
  display: block;
  width: 100%;
  height: min(80vh, 940px);
  min-height: 720px;
  border: 0;
  background: #d7d2c9;
}

.assessment-pdf-frame[hidden],
.assessment-workspace-placeholder[hidden],
.assessment-workspace-actions[hidden] {
  display: none !important;
}

.assessment-workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid #cfc6b6;
  background: #fffdf8;
}

.assessment-workspace-actions button {
  border: 1px solid #294b6a;
  border-radius: 7px;
  padding: 10px 14px;
  background: #fffdf8;
  color: #294b6a;
  font-weight: 750;
  cursor: pointer;
}

.assessment-workspace-actions button:nth-child(2) {
  background: #294b6a;
  color: white;
}

.assessment-report-source-hidden {
  display: none !important;
}

@media (max-width: 1050px) {
  .assessment-workspace {
    grid-template-columns: 1fr !important;
    width: min(900px, calc(100vw - 28px)) !important;
  }
  .assessment-workspace-output { position: static; }
  .assessment-workspace[data-assessment-preview-ready="true"] .assessment-workspace-output {
    order: -1;
  }
}

@media (max-width: 640px) {
  .assessment-workspace-placeholder,
  .assessment-pdf-frame,
  .assessment-workspace-output { min-height: 560px; }
  .assessment-pdf-frame { height: 70vh; }
  .assessment-workspace-placeholder { padding: 28px 20px; }
}
