@font-face {
  font-family: "Workspace Inter";
  src: url("/assets/inter-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Workspace Inter";
  src: url("/assets/inter-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Workspace Inter";
  src: url("/assets/inter-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Workspace Inter";
  src: url("/assets/inter-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* Presentation layer only. Classic mode keeps the original stylesheet. */
.workspace-theme {
  --workspace-font: "Workspace Inter", Arial, sans-serif;
  --blue-950: #1e2d40;
  --blue-900: #1e2d40;
  --blue-800: #164ce0;
  --blue-700: #195bfa;
  --gold-500: #195bfa;
  --gold-600: #164ce0;
  --premium-blue: #195bfa;
  --ink: #1e2d40;
  --muted: #748197;
  --line: #dfe6f1;
  --soft: #f6f7fb;
  --soft-2: #edf3ff;
  --green-600: #218b80;
  --orange-600: #b87d0c;
  --shadow: 0 8px 28px rgb(32 51 84 / 5%);
  font-family: var(--workspace-font);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  background: var(--soft);
}

.workspace-theme *,
.workspace-theme *::before,
.workspace-theme *::after {
  /* UI text must not fall back to fonts declared by legacy components. */
  font-family: var(--workspace-font) !important;
  letter-spacing: 0;
}
.workspace-theme :is(h1, h2, h3, strong, b, th) { font-weight: 600; }
.workspace-theme :is(h1, h2, h3) { color: var(--ink); line-height: 1.3; }
.workspace-theme h1 { font-size: 32px; }
.workspace-theme h2 { font-size: 23px; }
.workspace-theme h3 { font-size: 19px; }
.workspace-theme :is(p, label, input, textarea, select) { line-height: 1.55; }
.workspace-theme :is(button, a, label, input, select, textarea):focus-visible {
  outline: 3px solid #98b8ff;
  outline-offset: 3px;
}

.workspace-frame {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-rows: 96px minmax(0, 1fr);
  min-height: 100dvh;
  background: white;
}
.workspace-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line);
  background: white;
  z-index: 5;
}
.workspace-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
}
.workspace-brand-mark {
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  align-items: baseline;
  width: 52px;
  height: 56px;
  padding-top: 1px;
  border-radius: 9px;
  color: white;
  background: #195bfa;
  font-family: var(--workspace-font);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
}
.workspace-brand-mark > span { color: #98e8db; }
.workspace-brand-name {
  color: #1e2d40;
  font-family: var(--workspace-font);
  font-size: 29px;
  font-weight: 700;
  line-height: 1.2;
}
.workspace-brand-name > span { color: #195bfa; }
.workspace-location {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}
.workspace-theme :is(.workspace-location, .workspace-tool-link, .workspace-sidebar-note, .workspace-tool-menu summary, .upload-arrow, .workspace-quick-links, .btn, .contact-email) svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.workspace-top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.workspace-quick-links { display: flex; align-items: center; gap: 20px; }
.workspace-quick-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; white-space: nowrap; text-decoration: none; }
.workspace-quick-links a:hover { color: var(--blue-700); }
.workspace-theme .workspace-quick-links svg { width: 18px; height: 18px; }
.contact-email { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin: 24px 0 8px; color: var(--blue-700); overflow-wrap: anywhere; }
.contact-page .report-section { display: grid; gap: 16px; margin-top: 24px; }
.workspace-theme .report .btn { gap: 9px; }
.workspace-theme .language-switcher,
.workspace-theme .language-selector { margin: 0; }
.workspace-theme [data-language-select] {
  width: 104px;
  min-height: 38px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: white;
  font-size: 13px;
  font-weight: 400;
}
.workspace-top-actions label > span { display: none; }

.workspace-sidebar {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 6;
  flex-direction: column;
  align-self: start;
  width: 72px;
  min-width: 72px;
  height: calc(100dvh - 96px);
  padding: 24px 10px 20px;
  border-right: 1px solid var(--line);
  background: white;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: none;
  transition: width 180ms ease, min-width 180ms ease, padding 180ms ease, box-shadow 180ms ease;
}
.workspace-sidebar:hover,
.workspace-sidebar:focus-within {
  width: 240px;
  min-width: 240px;
  padding: 32px 16px 28px;
  box-shadow: 16px 0 34px rgba(21, 38, 57, .12);
}
.workspace-tool-menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  list-style: none;
  pointer-events: none;
  white-space: nowrap;
}
.workspace-tool-menu > summary::-webkit-details-marker { display: none; }
.workspace-tool-menu > summary svg { display: block; }
.workspace-sidebar:hover .workspace-tool-menu > summary,
.workspace-sidebar:focus-within .workspace-tool-menu > summary {
  justify-content: space-between;
  padding: 0 14px 20px;
}
.workspace-tool-menu-title {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 140ms ease, max-width 180ms ease;
}
.workspace-sidebar:hover .workspace-tool-menu-title,
.workspace-sidebar:focus-within .workspace-tool-menu-title {
  opacity: 1;
  max-width: 150px;
}
.workspace-tools { display: grid; gap: 6px; }
.workspace-tool-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 13px;
  border-radius: 8px;
  color: #748197;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}
.workspace-sidebar:not(:hover):not(:focus-within) .workspace-tool-link {
  justify-content: center;
  gap: 0;
  padding: 12px 0;
}
.workspace-tool-link:hover { color: var(--blue-700); background: #f6f8fd; }
.workspace-tool-link.active {
  color: var(--blue-700);
  background: #edf3ff;
  box-shadow: inset 4px 0 var(--blue-700);
  font-weight: 500;
}
.workspace-tool-link span {
  min-width: 0;
  overflow-wrap: anywhere;
  opacity: 1;
  transition: opacity 120ms ease;
}
.workspace-sidebar:not(:hover):not(:focus-within) .workspace-tool-link span {
  width: 0;
  opacity: 0;
  overflow: hidden;
}
.workspace-sidebar-note {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding: 40px 14px 0;
}
.workspace-sidebar-note svg { color: #218b80; }
.workspace-sidebar-note strong { font-size: 16px; font-weight: 500; }
.workspace-sidebar-note p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.workspace-sidebar:not(:hover):not(:focus-within) .workspace-sidebar-note {
  justify-items: center;
  padding: 30px 0 0;
}
.workspace-sidebar:not(:hover):not(:focus-within) .workspace-sidebar-note :is(strong, p) {
  display: none;
}
.workspace-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--soft);
}
.workspace-body {
  flex: 1;
  min-width: 0;
  padding: 36px 36px 24px;
}
.workspace-body > main {
  width: min(1240px, 100%);
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0 auto;
  background: transparent;
}
.workspace-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 36px 26px;
  color: #218b80;
  font-size: 12px;
}
.workspace-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.workspace-footer button {
  border: 0;
  padding: 4px 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 400;
}
.workspace-footer button:hover { color: var(--blue-700); }

.workspace-theme .btn {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  transition: background 160ms ease, box-shadow 160ms ease;
}
.workspace-theme .btn:is(.primary, .accent, .gold, .unlock) {
  border-color: var(--blue-700);
  color: white;
  background: var(--blue-700);
  box-shadow: 0 5px 12px rgb(25 91 250 / 10%);
  text-shadow: none;
}
.workspace-theme .btn:is(.primary, .accent, .gold, .unlock):hover {
  color: white;
  background: #164ce0;
  box-shadow: 0 7px 16px rgb(25 91 250 / 17%);
  transform: none;
}
.workspace-theme .btn.secondary {
  color: var(--ink);
  background: white;
  box-shadow: none;
}
.workspace-theme .btn.secondary:hover { background: #f6f8fc; }
.workspace-theme .badge {
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 500;
}
.workspace-theme .badge.blue { color: var(--blue-700); background: var(--soft-2); }
.workspace-theme .eyebrow {
  color: var(--blue-700);
  font-size: 15px;
  font-weight: 500;
}
.workspace-theme .eyebrow::before { display: none; }
.workspace-theme .centered .eyebrow { justify-content: flex-start; }
.workspace-theme :is(.section-head, .upload-hero-copy) {
  margin: 0 0 30px;
  text-align: left;
}
.workspace-theme :is(.section-head, .upload-hero-copy) h1 {
  max-width: 100%;
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.3;
}
.workspace-theme :is(.section-head, .upload-hero-copy) > p {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
}

.workspace-theme :is(.landing-upload-screen, .upload-first-screen, .upload-first-inner) {
  display: block;
  width: 100%;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
}
.workspace-theme .upload-start-card {
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr);
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}
.workspace-theme .upload-main-dropzone {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 410px;
  margin: 20px;
  padding: 28px 20px;
  border: 1px dashed #ced9ea;
  border-radius: 8px;
  background: white;
  transition: background 160ms ease, border-color 160ms ease;
}
.workspace-theme .upload-main-dropzone:hover,
.workspace-theme .upload-main-dropzone.dragging {
  border-color: var(--blue-700);
  background: #fafbff;
}
.workspace-theme .upload-main-dropzone:is(.has-file, .is-reading) {
  border-color: #7bcfc0;
  background: #f1fbf8;
}
.workspace-theme .upload-inner { width: 100%; max-width: 490px; }
.workspace-theme .upload-arrow {
  width: 58px;
  height: 58px;
  margin: 0 auto 24px;
  border: 1px solid #e5ebf6;
  border-radius: 12px;
  color: var(--blue-700);
  background: #f5f8ff;
}
.workspace-theme .upload-arrow svg { width: 28px; height: 28px; }
.workspace-theme .upload-title {
  color: var(--ink);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.workspace-theme .upload-or {
  max-width: 220px;
  margin: 20px auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.workspace-theme .upload-file-button { min-width: 0; width: min(270px, 100%); padding: 15px 20px; }
.workspace-theme .upload-meta { margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 400; }
.workspace-theme .upload-privacy-line {
  align-items: flex-start;
  max-width: 370px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.workspace-theme .upload-privacy-line svg { margin-top: 2px; }
.workspace-theme .upload-proof-panel {
  gap: 16px;
  min-width: 0;
  padding: 28px 24px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: #fafbfe;
}
.workspace-theme .upload-proof-panel h2 { color: var(--ink); font-size: 21px; font-weight: 500; line-height: 1.35; }
.workspace-theme .mini-result-preview { gap: 16px; }
.workspace-theme .mini-result-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
}
.workspace-theme .mini-result-preview strong { margin-top: 4px; color: var(--ink); font-size: 14px; font-weight: 500; }
.workspace-theme .quality-chart { min-height: 90px; margin-top: 4px; gap: 12px; }
.workspace-theme .chart-row { height: 84px; }
.workspace-theme .chart-row i { width: 12px; background: #195bfa; }
.workspace-theme .chart-row i + i { background: #98dcd1; }
.workspace-theme .chart-row.muted i { background: #d8e2f5; }
.workspace-theme .chart-row.muted i + i { background: #c9e8e1; }
.workspace-theme .chart-note { color: var(--muted); font-size: 12px; line-height: 1.55; }
.workspace-theme .start-trust-row {
  justify-content: flex-start;
  gap: 12px 18px;
  margin-top: 24px;
  font-size: 12px;
}
.workspace-theme .start-trust-row strong { font-weight: 500; }
.workspace-theme .start-trust-row span { color: var(--muted); }
.workspace-theme .start-trust-row span::before { color: #218b80; font-weight: 400; }

.workspace-theme :is(.panel, .card, .login-card, .analysis-minimal-card) {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  box-shadow: var(--shadow);
}
.workspace-theme :is(.field input, .field select, .field textarea, .service-note-field textarea) {
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: white;
  font-size: 15px;
  font-weight: 400;
}
.workspace-theme :is(.field label, .check-label) { color: var(--ink); font-size: 14px; font-weight: 400; }
.workspace-theme input[type="checkbox"] { accent-color: var(--blue-700); }
.workspace-theme :is(.hint, .optional-label, .privacy-line) { color: var(--muted); font-weight: 400; }
.workspace-theme .notice {
  border: 0;
  border-left: 3px solid #98e8db;
  border-radius: 0;
  color: #38796f;
  background: #edf9f6;
  font-size: 13px;
}
.workspace-theme .page.narrow { width: min(760px, 100%); padding: 0; }
.workspace-theme .login-gate {
  display: flex;
  min-height: 560px;
  align-items: center;
  justify-content: center;
  padding: 12px 0 32px;
}
.workspace-theme .login-gate > :is(.login-logo, .language-select, .language-selector, .language-switcher, .login-footer) { display: none; }
.workspace-theme .login-card {
  gap: 24px;
  width: min(560px, 100%);
  margin: 0;
  padding: 36px;
}
.workspace-theme .login-copy h1 { color: var(--ink); font-size: 27px; font-weight: 500; line-height: 1.35; }
.workspace-theme .file-chip {
  max-width: 100%;
  border-radius: 6px;
  color: var(--muted);
  background: #f3f6fa;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.workspace-theme .onboarding-minimal-head {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 400;
}
.workspace-theme .onboarding-minimal-head span { font-weight: 400; }
.workspace-theme .citation-combobox-toggle { font-weight: 500; }
.workspace-theme .analysis-minimal { padding: 16px 0 32px; }
.workspace-theme .analysis-minimal-card { width: min(780px, 100%); margin: 0 auto; padding: 32px; gap: 18px; }
.workspace-theme .analysis-minimal-card .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.workspace-theme .analysis-minimal-card .check-item { min-width: 0; gap: 8px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.workspace-theme .analysis-minimal-card .status-dot { flex: 0 0 auto; font-weight: 500; }
.workspace-theme .analysis-minimal-card > .login-brand { display: none; }
.workspace-theme .analysis-minimal-card h1 { font-size: 28px; font-weight: 500; }
.workspace-theme .analysis-minimal-card .lead { color: var(--muted); font-size: 16px; }
.workspace-theme .check-item { color: var(--muted); font-size: 14px; font-weight: 400; }
.workspace-theme .check-item.done { color: #218b80; }
.workspace-theme .progress-label { font-weight: 500; }
.workspace-theme .progress-track { background: #e9eef6; }
.workspace-theme .progress-bar { background: var(--blue-700); }

/* Preserve the document, metrics, tabs and paywall behavior of the existing preview. */
.workspace-theme .locked-result.clean-result { min-height: 0; background: transparent; }
.workspace-theme .locked-result.clean-result .result-checker-header {
  display: flex;
  justify-content: flex-end;
  min-height: 0;
  padding: 0 0 20px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.workspace-theme .result-checker-brand { display: none; }
.workspace-theme .locked-result.clean-result .result-checker-cta > strong { color: var(--ink); font-size: 20px; font-weight: 500; }
.workspace-theme .locked-result.clean-result .clean-file-strip {
  min-height: 58px;
  margin: 0;
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  color: var(--muted);
  background: white;
  font-size: 15px;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.workspace-theme .locked-result.clean-result .clean-file-strip > span { color: var(--muted); font-weight: 400; }
.workspace-theme .locked-result.clean-result .result-review-workspace {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: white !important;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.workspace-theme .locked-result.clean-result .document-preview {
  width: 100% !important;
  max-width: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.workspace-theme .locked-result.clean-result .paper-page:not(.paper-page-original) {
  padding: 36px 30px !important;
  color: var(--ink) !important;
}
.workspace-theme .paper-source { font-weight: 500; }
.workspace-theme .paper-risk-dot::after { font-weight: 600; }
.workspace-theme .locked-result.clean-result .locked-side {
  position: static;
  min-width: 0;
  min-height: 100%;
  padding: 24px;
  border-left: 1px solid var(--line);
  background: #fafbfe;
}
.workspace-theme .locked-result.clean-result .result-insight-tabs {
  gap: 4px !important;
  padding: 5px;
  border-radius: 8px;
  background: #f0f3f9;
}
.workspace-theme .locked-result.clean-result .result-insight-tab {
  min-width: 0;
  min-height: 88px !important;
  padding: 10px 5px !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
.workspace-theme .locked-result.clean-result .result-insight-tab.active {
  border-color: #e6ebf3 !important;
  background: white !important;
  box-shadow: 0 2px 8px rgb(30 45 64 / 5%) !important;
}
.workspace-theme .locked-result.clean-result .result-insight-tab span { color: var(--muted) !important; font-size: 11px !important; font-weight: 400 !important; }
.workspace-theme .locked-result.clean-result .result-insight-tab strong { color: var(--ink) !important; font-size: 16px !important; font-weight: 500 !important; }
.workspace-theme .locked-result.clean-result .result-insight-tab small { color: var(--muted) !important; font-size: 10px !important; font-weight: 400 !important; }
.workspace-theme .locked-result.clean-result .result-insight-tab.active > span { color: var(--blue-700) !important; }
.workspace-theme .locked-result.clean-result .result-insight-tab i { width: 20px !important; height: 20px !important; color: #a85b35 !important; background: #fff1dc !important; font-size: 12px !important; font-weight: 500 !important; }
.workspace-theme .locked-result.clean-result .result-insight-panel {
  padding: 24px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.workspace-theme .locked-result.clean-result .result-insight-panel :is(h3, strong) { color: var(--ink) !important; font-weight: 500 !important; }
.workspace-theme .locked-result.clean-result .result-insight-panel :is(p, small) { color: var(--muted) !important; font-weight: 400 !important; }
.workspace-theme .locked-result.clean-result .result-score-summary { grid-template-columns: 84px minmax(0, 1fr) !important; gap: 16px !important; }
.workspace-theme .locked-result.clean-result .result-score-summary h3 { font-size: 18px !important; }
.workspace-theme .locked-result.clean-result .result-score-summary p { font-size: 14px !important; }
.workspace-theme .locked-result.clean-result .score-ring { width: 84px !important; height: 84px !important; }
.workspace-theme .locked-result.clean-result .score-ring strong { font-size: 27px !important; }
.workspace-theme .locked-result.clean-result .score-ring span { font-weight: 500 !important; }
.workspace-theme .locked-result.clean-result .ai-signal-bars label { font-weight: 400 !important; }
.workspace-theme .locked-result.clean-result .finding-accordion-row summary { padding: 14px 0 !important; }
.workspace-theme .locked-result.clean-result .finding-accordion-row summary > i { font-weight: 500 !important; }
.workspace-theme .locked-result.clean-result .finding-accordion-row .error-status-icon { font-weight: 600 !important; }
.workspace-theme .locked-result.clean-result .finding-row-title strong { font-size: 14px !important; }
.workspace-theme .locked-result.clean-result .finding-row-title small { font-size: 12px !important; }
.workspace-theme .locked-result.clean-result .error-status-icon { border-radius: 5px !important; box-shadow: none !important; }
.workspace-theme .locked-result.clean-result .finding-accordion-row.critical .error-status-icon { color: #ab4343 !important; background: #fcecec !important; }
.workspace-theme .locked-result.clean-result .finding-accordion-row.warning .error-status-icon { color: #a7720b !important; background: #fff4d6 !important; }
.workspace-theme .locked-result.clean-result .result-insight-upsell {
  padding: 20px !important;
  border: 0 !important;
  border-left: 4px solid #98e8db !important;
  border-radius: 0 8px 8px 0 !important;
  background: #edf9f6 !important;
  box-shadow: none !important;
}
.workspace-theme .locked-result.clean-result .result-insight-upsell p { color: var(--ink) !important; font-size: 16px !important; font-weight: 500 !important; }
.workspace-theme .locked-result.clean-result .result-insight-upsell small { color: #518078 !important; font-size: 12px !important; font-weight: 400 !important; }
.workspace-theme .locked-result.clean-result .result-insight-upsell .premium-gem-icon { color: #218b80 !important; }
.workspace-theme .locked-result.clean-result .btn.unlock {
  border: 1px solid var(--blue-700) !important;
  border-radius: 8px !important;
  color: white !important;
  background: var(--blue-700) !important;
  box-shadow: 0 4px 12px rgb(25 91 250 / 10%) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-shadow: none !important;
  animation: none !important;
}
.workspace-theme .locked-result.clean-result .locked-overlay-card {
  width: calc(100% - 40px) !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
  padding: 22px !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: white !important;
  box-shadow: 0 8px 28px rgb(30 45 64 / 10%) !important;
}
.workspace-theme .locked-result.clean-result .locked-overlay-card strong { color: var(--ink) !important; font-size: 18px !important; font-weight: 500 !important; }
.workspace-theme .locked-result.clean-result .locked-overlay-card p { color: var(--muted) !important; font-size: 14px !important; font-weight: 400 !important; }
.workspace-theme .locked-result.clean-result .locked-overlay-card .btn.unlock { justify-self: start; min-width: 0 !important; max-width: 100%; }
.workspace-theme :is(.stripe-checkout-page, .premium-page) { padding: 0; background: transparent; }
.workspace-theme .stripe-checkout-header > .brand { display: none; }
.workspace-theme :is(.stripe-checkout-page, .premium-page) h1 { font-size: 32px; font-weight: 500; }
.workspace-theme :is(.checkout-card, .checkout-summary, .stripe-checkout-card) { border-color: var(--line); background: white; box-shadow: var(--shadow); }
.workspace-theme .stripe-order-card h2,
.workspace-theme .stripe-payment-card h2 { font-size: 23px; font-weight: 500; }
.workspace-theme .stripe-trust-list { gap: 0; }
.workspace-theme .stripe-trust-list li { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; color: var(--muted); background: transparent; font-size: 14px; font-weight: 400; }
.workspace-theme .stripe-tier-name { border-radius: 6px; color: var(--blue-700); background: var(--soft-2); font-size: 12px; font-weight: 500; }
.workspace-theme :is(.stripe-payment-divider, .stripe-payment-message) { font-weight: 500; }

.local-report-preview-link { padding: 8px 0; color: #195bfa; font-size: 14px; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.report-design-notice { display: grid; gap: 4px; border-left: 3px solid #218b80; padding: 12px 16px; color: #27685f; background: #edf9f6; font-size: 13px; }
.workspace-theme .report { gap: 28px; min-width: 0; }
.workspace-theme .report > * { min-width: 0; }
.workspace-theme .report-cover { gap: 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 0 28px; color: var(--ink); background: transparent; box-shadow: none; }
.workspace-theme .report-cover > span { color: var(--blue-700); font-weight: 500; }
.workspace-theme .report-cover h1 { color: var(--ink); font-size: 30px; font-weight: 500; line-height: 1.3; }
.workspace-theme .report-cover p { color: var(--muted); }
.workspace-theme .report-cover .grid { gap: 24px; margin: 10px 0; }
.workspace-theme .report-cover .grid > div { padding-left: 18px; border-left: 2px solid var(--line); }
.workspace-theme .report-cover .grid > div:first-child { border-left-color: var(--blue-700); }
.workspace-theme .report-cover .grid strong { font-size: 25px; font-weight: 500; }
.workspace-theme .report-cover .grid p { margin-top: 5px; font-size: 13px; }
.workspace-theme .report-unlocked-next { grid-template-columns: minmax(0, 1fr) minmax(200px, .55fr); border: 0; border-left: 3px solid #98e8db; border-radius: 0 8px 8px 0; padding: 24px; background: #edf9f6; box-shadow: none; }
.workspace-theme .report-unlocked-next h2 { font-size: 22px; font-weight: 500; }
.workspace-theme .report-unlocked-next p { color: #537870; font-size: 14px; }
.workspace-theme .report-section { min-width: 0; padding: 8px 0 28px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.workspace-theme .report-section h2 { font-weight: 500; }
.workspace-theme .report-section:last-child { border-bottom: 0; }
.workspace-theme .report :is(.expert-feedback-card, .chapter-feedback-item, .finding, .expert-checklist-group) { border-color: var(--line); box-shadow: var(--shadow); }
.workspace-theme .expert-feedback-card.primary { border-left: 3px solid #98e8db; color: var(--ink); background: #edf9f6; }
.workspace-theme .expert-feedback-card.primary > span { color: #218b80; }
.workspace-theme .expert-feedback-card.primary p { color: var(--ink); }
.workspace-theme :is(.expert-feedback-card > span, .expert-checklist-group h3) { font-size: 15px; font-weight: 500; }
.workspace-theme :is(.expert-feedback-card li, .expert-action-list li, .expert-checklist-row) { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 0; background: transparent; }
.workspace-theme :is(.expert-feedback-card li, .expert-action-list li, .expert-checklist-row):first-child { border-top: 0; }
.workspace-theme .expert-checklist-row { grid-template-columns: minmax(0, 1fr); }
.workspace-theme .expert-checklist-row p { grid-column: 1; }
.workspace-theme .expert-checklist-status { grid-row: auto; justify-self: start; }
.workspace-theme :is(.expert-checklist-status, .chapter-feedback-status) { border-radius: 5px; color: #218b80; background: #edf9f6; font-weight: 500; }
.workspace-theme .review :is(.expert-checklist-status, .chapter-feedback-status) { color: #9d710a; background: #fff4d6; }
.workspace-theme .urgent :is(.expert-checklist-status, .chapter-feedback-status) { color: #ab4343; background: #fcecec; }
.workspace-theme .chapter-feedback-item { border-left: 3px solid #98e8db; padding: 20px; }
.workspace-theme :is(.chapter-feedback-item.urgent, .finding.critical) { border-left-color: #d98383; }
.workspace-theme :is(.chapter-feedback-item.review, .finding.warning) { border-left-color: #d8af51; }
.workspace-theme :is(.chapter-feedback-item h3, .finding > strong) { font-size: 18px; font-weight: 500; }
.workspace-theme .chapter-feedback-header { align-items: start; }
.workspace-theme .report .finding { gap: 10px; padding: 20px; }
.workspace-theme .report .finding-evidence { border: 0; border-radius: 0; padding: 14px; background: #f6f7fb; }
.workspace-theme .report :is(.finding-evidence blockquote, .chapter-feedback-item blockquote) { font-size: 16px; line-height: 1.65; }
.workspace-theme .report .card.highlight { border-left: 3px solid #98e8db; background: #edf9f6; }
.workspace-theme .report :is(.table-wrap, .grid > *, .expert-feedback-grid > *, .expert-checklist-grid > *) { min-width: 0; }
.workspace-theme .report .table-wrap { max-width: 100%; overflow-x: auto; background: white; }
.workspace-theme .report .table-wrap table { min-width: 640px; }
.workspace-theme .report :is(p, strong, h1, h2, h3, span) { overflow-wrap: anywhere; }
.workspace-theme .report .btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.workspace-theme :is(.unassessed .expert-checklist-status, .unassessed .chapter-feedback-status, .badge.neutral) { color: #637186; background: #eef1f5; }
.workspace-theme .individual-review-context { display: grid; gap: 14px; margin: 20px 0; }
.workspace-theme .individual-review-context div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; }
.workspace-theme .individual-review-context dt { color: var(--muted); font-weight: 400; }
.workspace-theme .individual-review-context dd { margin: 0; overflow-wrap: anywhere; }
.workspace-theme .individual-review-scope { display: grid; gap: 8px; margin: 0 0 24px; }
.workspace-theme .report .expert-checklist-row blockquote { margin: 0; padding: 10px 14px; border-left: 2px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .workspace-theme .individual-review-context div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
.workspace-theme :is(.service-hero-panel, .service-request-panel) { border: 0; border-radius: 0; padding: 20px 0 28px; background: transparent; box-shadow: none; }
.workspace-theme .service-hero-panel { border-bottom: 1px solid var(--line); }
.workspace-theme .service-hero-panel h1 { color: var(--ink); font-size: 30px; font-weight: 500; }
.workspace-theme .service-hero-panel p { color: var(--muted); }
.workspace-theme .service-context-grid div { border: 0; border-left: 2px solid var(--line); border-radius: 0; background: transparent; }
.workspace-theme :is(.service-context-grid span, .service-package-kicker, .service-date-box span, .service-note-field) { font-weight: 500; }
.workspace-theme .service-note-field textarea { width: 100%; min-width: 0; padding: 11px 12px; }
.workspace-theme .service-request-copy h2 { font-size: 23px; font-weight: 500; }
.workspace-theme .service-includes-card { border: 0; border-left: 3px solid #98e8db; border-radius: 0; background: #edf9f6; box-shadow: none; }
.workspace-theme .service-package-card { border-color: var(--line); background: white; box-shadow: var(--shadow); }
.workspace-theme .service-package-card.highlight { border-color: #98e8db; background: white; }
.workspace-theme .service-price-row strong { font-size: 28px; font-weight: 500; }
.workspace-theme .service-date-box { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
@media (min-width: 761px) and (max-width: 1390px) {
  .workspace-location { display: none; }
  .workspace-top-actions { margin-left: auto; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .workspace-frame { grid-template-rows: auto minmax(0, 1fr); }
  .workspace-top { flex-wrap: wrap; gap: 18px; }
  .workspace-top-actions { width: 100%; margin: 0; justify-content: space-between; }
}
@media (max-width: 1100px) {
  .workspace-theme .report-unlocked-next { grid-template-columns: minmax(0, 1fr); }
  .workspace-theme .report .expert-checklist-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .workspace-theme .report-cover h1 { font-size: 25px; }
  .workspace-theme .report-cover .grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .workspace-theme .report .expert-feedback-grid { grid-template-columns: minmax(0, 1fr); }
  .workspace-theme .report .chapter-feedback-header { flex-wrap: wrap; }
  .workspace-theme .report-unlocked-next { padding: 18px; }
}

@media (min-width: 1500px) {
  .workspace-frame { grid-template-columns: 72px minmax(0, 1fr); }
  .workspace-body { padding: 44px 44px 28px; }
  .workspace-sidebar:hover,
  .workspace-sidebar:focus-within {
    width: 270px;
    min-width: 270px;
    padding-right: 24px;
    padding-left: 24px;
  }
  .workspace-theme .upload-main-dropzone { min-height: 470px; }
  .workspace-theme .upload-proof-panel { padding: 32px; }
}
@media (min-width: 981px) and (max-height: 950px) {
  .workspace-theme .workspace-body { padding: 24px 28px 18px; }
  .workspace-theme :is(.section-head, .upload-hero-copy) { margin-bottom: 22px; }
  .workspace-theme :is(.section-head, .upload-hero-copy) > p { margin-top: 10px; }
  .workspace-theme .upload-main-dropzone { min-height: 330px; padding: 22px 16px; margin: 16px; }
  .workspace-theme .upload-proof-panel { gap: 10px; padding: 22px; }
  .workspace-theme .mini-result-preview { gap: 10px; }
  .workspace-theme .quality-chart { min-height: 70px; }
  .workspace-theme .chart-row { height: 64px; }
  .workspace-theme .start-trust-row { margin-top: 20px; }
  .workspace-theme .workspace-footer { padding: 12px 28px 20px; }
}
@media (max-width: 1180px) {
  .workspace-frame { grid-template-columns: 72px minmax(0, 1fr); }
  .workspace-body { padding: 28px 24px 20px; }
  .workspace-location { display: none; }
  .workspace-top-actions { margin-left: auto; }
  .workspace-brand-name { font-size: 25px; }
  .workspace-sidebar:hover,
  .workspace-sidebar:focus-within {
    width: 218px;
    min-width: 218px;
  }
  .workspace-tool-link { font-size: 14px; }
  .workspace-sidebar:hover .workspace-tool-link,
  .workspace-sidebar:focus-within .workspace-tool-link { gap: 10px; padding: 10px; }
  .workspace-theme .upload-start-card { grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr); }
  .workspace-theme .upload-main-dropzone { margin: 16px; padding: 24px 12px; }
  .workspace-theme .upload-proof-panel { padding: 24px 18px; }
  .workspace-theme .locked-result.clean-result .result-review-workspace { grid-template-columns: minmax(0, 1fr) !important; }
  .workspace-theme .locked-result.clean-result .document-preview { max-width: 700px !important; justify-self: center !important; }
  .workspace-theme .locked-result.clean-result .locked-side { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .workspace-frame { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); }
  .workspace-top { flex-wrap: wrap; gap: 16px; padding: 20px; }
  .workspace-brand { gap: 10px; }
  .workspace-brand-mark { width: 40px; height: 44px; border-radius: 7px; font-size: 34px; }
  .workspace-brand-name { font-size: 25px; }
  .workspace-top-actions { width: 100%; margin: 0; justify-content: space-between; gap: 10px; }
  .workspace-top-actions { flex-wrap: wrap; }
  .workspace-quick-links { width: 100%; justify-content: space-between; padding-bottom: 6px; }
  .workspace-top-actions .btn { min-height: 38px; padding: 9px 12px; font-size: 12px; }
  .workspace-sidebar { position: relative; top: auto; height: auto; padding: 0 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace-tool-menu > summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; pointer-events: auto; cursor: pointer; text-transform: none; }
  .workspace-tool-menu > summary svg { display: block; }
  .workspace-tools { padding-bottom: 12px; max-height: 168px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #b6c3d0 #f5f8fa; }
  .workspace-tool-link { min-height: 44px; font-size: 15px; }
  .workspace-sidebar-note { display: none; }
  .workspace-body { padding: 28px 20px 20px; }
  .workspace-footer { padding: 12px 20px 24px; }
  .workspace-theme :is(.section-head, .upload-hero-copy) h1 { font-size: 27px; }
  .workspace-theme :is(.section-head, .upload-hero-copy) > p { font-size: 15px; }
  .workspace-theme .upload-start-card { grid-template-columns: minmax(0, 1fr); }
  .workspace-theme .upload-main-dropzone { min-height: 350px; margin: 16px; padding: 28px 14px; }
  .workspace-theme .upload-title { font-size: 21px; }
  .workspace-theme .upload-proof-panel { border-left: 0; border-top: 1px solid var(--line); padding: 24px; }
  .workspace-theme .upload-proof-panel h2 { font-size: 21px; }
  .workspace-theme .login-gate { min-height: 0; padding: 0; }
  .workspace-theme :is(.login-card, .analysis-minimal-card) { padding: 24px; }
  .workspace-theme .analysis-minimal-card .checklist { grid-template-columns: minmax(0, 1fr); }
  .workspace-theme :is(.login-copy, .analysis-minimal-card) h1 { font-size: 24px; }
  .workspace-theme .locked-result.clean-result .result-checker-cta { width: 100%; justify-content: space-between; gap: 10px; }
  .workspace-theme .locked-result.clean-result .result-checker-cta .btn { min-width: 0; }
  .workspace-theme .locked-result.clean-result .clean-file-strip { padding: 14px 18px; font-size: 13px; }
  .workspace-theme .locked-result.clean-result .locked-side { padding: 18px; }
  .workspace-theme .locked-result.clean-result .locked-overlay-card { top: 35% !important; width: calc(100% - 28px) !important; gap: 12px !important; padding: 16px !important; }
  .workspace-theme .locked-result.clean-result .locked-overlay-card strong { font-size: 16px !important; }
  .workspace-theme .locked-result.clean-result .locked-overlay-card p { font-size: 12px !important; }
  .workspace-theme .locked-result.clean-result .paper-page:not(.paper-page-original) { padding: 24px !important; }
  .workspace-theme .locked-result.clean-result .result-insight-tab span { font-size: 10px !important; }
  .workspace-theme .locked-result.clean-result .result-insight-tab strong { font-size: 14px !important; }
  .workspace-theme .locked-result.clean-result .result-score-summary { grid-template-columns: minmax(0, 1fr) !important; }
}
.workspace-theme .analysis-failure-page { padding-top: 32px; }
.workspace-theme .analysis-failure-page h1 { font-size: 28px; line-height: 1.25; }
.workspace-theme .analysis-failure-page p { max-width: 65ch; line-height: 1.65; }
.workspace-theme .analysis-failure-page .actions { flex-wrap: wrap; margin-top: 24px; }
.workspace-theme .locked-result.clean-result .result-checker-cta { flex-wrap: wrap !important; }
.workspace-theme .locked-result.clean-result .result-checker-cta .btn { flex-shrink: 0; }
.workspace-theme .result-checker-cta .local-report-preview-link { padding: 10px 0; font-size: 14px; }
.workspace-theme .result-evidence-quote { margin: 14px 0; padding: 12px 16px; border-left: 3px solid var(--green-600); background: #eef8f6; color: var(--ink); overflow-wrap: anywhere; }
.workspace-theme .result-review-status { font-size: 14px; color: var(--muted); }
.workspace-theme .result-checked-criteria { padding: 18px 0; border-top: 1px solid var(--line); font-size: 14px; }
.workspace-theme .result-checked-criteria summary { cursor: pointer; font-weight: 600; }
.workspace-theme .result-checked-criteria ul { list-style: none; padding: 0; }
.workspace-theme .result-checked-criteria li { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.workspace-theme .result-checked-criteria p, .workspace-theme .result-empty-findings { color: var(--muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 760px) {
  .workspace-theme .locked-result.clean-result .result-checker-cta .local-report-preview-link { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-theme *, .workspace-theme *::before, .workspace-theme *::after {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
@media screen and (max-width: 760px), screen and (pointer: coarse) {
  .workspace-theme :is(button, .btn, select, .workspace-quick-links a) { min-height: 44px !important; }
  .workspace-theme :is(input, select, textarea):not(:where([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="hidden"])) { font-size: 16px !important; }
  .workspace-theme :is(.legal-document, .contact-page, .appointment-page, .booking-page) { min-width: 0; overflow-wrap: anywhere; }
  .workspace-theme .workspace-body :is(h1, h2, h3) { overflow-wrap: anywhere; }
  .workspace-theme .workspace-top-actions .btn { min-height: 44px; }
  .workspace-theme .workspace-quick-links a { display: inline-flex; align-items: center; }
  .workspace-theme .workspace-tools { scroll-padding-block: 6px; }
}
@media print {
  .workspace-top, .workspace-sidebar, .workspace-footer { display: none; }
  .workspace-frame, .workspace-main { display: block; }
  .workspace-body { padding: 0; }
  .workspace-theme, .workspace-main { background: white; }
  .workspace-theme .report-section { break-inside: auto; }
  .workspace-theme :is(.finding, .chapter-feedback-item, .expert-checklist-row) { break-inside: avoid; }
  .workspace-theme :is(h1, h2, h3) { break-after: avoid; }
  .workspace-theme .report .table-wrap { overflow: visible; }
}
