
/* ============================================================
   VALTERA EXPOSURE ENGINE DEMO — COMPONENT STYLE MAP
   Each major block is labeled to make future human edits simple.
   ============================================================ */

:root {
  --page-bg: #f4f6f8;
  --card-bg: #ffffff;

  /* LOCKED RESULTS PANEL:
     darker than page background, lighter than the original black */
  --results-bg: #dde2e7;

  --text: #1b1f23;
  --muted: #5f6b76;
  --border: #c9d0d6;
  --line: #d7dce1;
  --deep-charcoal: #27313a;

  /* Evaluator score colors: low -> high */
  --score-0: #2e7d32;
  --score-1: #43a047;
  --score-2: #9cbf3b;
  --score-3: #e0b13d;
  --score-4: #e67e22;
  --score-5: #c62828;
}


/* ============================================================
   REPORT RISK COLOR SYSTEM
   Uses the same green -> yellow -> orange -> red language as
   the locked exposure spectrum.
   ============================================================ */
.risk-low { --risk-color: #2E7D32; }
.risk-lowmod { --risk-color: #7CB342; }
.risk-moderate { --risk-color: #D6A800; }
.risk-elevated { --risk-color: #E67E22; }
.risk-high { --risk-color: #C62828; }

.report-pillar.risk-colored,
.pillar-score-card.risk-colored {
  border: 2px solid var(--risk-color);
}

.report-score-card.risk-colored,
.report-band-card.risk-colored {
  border: 2px solid var(--risk-color);
}


.driver-number.risk-colored {
  background: var(--risk-color);
  color: #FFFFFF;
}

.interpretation-box.risk-colored {
  border-left-color: var(--risk-color);
}

.detail-anchor.risk-colored {
  display: inline-block;
  background: var(--risk-color);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 4px 8px;
  margin-top: 5px;
  font-weight: 800;
  line-height: 1.2;
}

.detail-anchor.risk-lowmod,
.detail-anchor.risk-moderate {
  color: #1B1F23;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--page-bg);
  color: var(--text);
}

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

button {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #b9c1c9;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

button:hover { filter: brightness(.985); }

.button-primary {
  background: var(--deep-charcoal);
  color: #fff;
  border-color: var(--deep-charcoal);
}

.button-large { padding: 13px 18px; }

.hidden { display: none !important; }

.app-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

/* ============================================================
   COMPONENT A: ASSESSMENT HEADER / METADATA
   ============================================================ */
.assessment-header {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
  margin-bottom: 18px;
}

h1 { margin: 0 0 6px; font-size: 28px; }
h2 { margin-top: 0; }

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


/* ============================================================
   COMPONENT A1: SMALL VALTERA BRAND LOCKUP
   Keep the logo intentionally restrained so it supports rather
   than dominates the Exposure Engine title.
   ============================================================ */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.brand-logo {
  width: 140px;
  max-width: 22vw;
  height: auto;
  display: block;
}

.brand-lockup h1 {
  margin-bottom: 4px;
}

.brand-lockup .subtitle {
  margin-bottom: 0;
}

.confirmation-logo {
  width: 130px;
  height: auto;
  display: block;
  margin: 0 auto 18px;
}

.report-logo {
  width: 110px;
  height: auto;
  display: block;
  margin-bottom: 10px;
}


.metadata-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 12px;
  align-items: start;
}

.field label,
.criterion-card label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

textarea {
  min-height: 78px;
  resize: vertical;
  line-height: 1.4;
}

.conditional-field { display: none; margin-top: 8px; }

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.method-note {
  font-size: 12px;
  color: #667085;
  margin-top: 10px;
}

/* ============================================================
   COMPONENT B: LIVE RESULTS PANEL
   ============================================================ */
.results-panel {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--results-bg);
  color: var(--text);
  border: 1px solid #cbd2d8;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 5px 18px rgba(17,24,39,.12);
}

.results-top-row {
  display: block;
}

.metric-label {
  font-size: 12px;
  color: #59636d;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.overall-score-value {
  font-size: 32px;
  font-weight: 800;
  margin-top: 3px;
}

.assessment-completeness {
  margin-top: 5px;
  font-size: 12px;
  color: #59636d;
}

.overall-score-block .risk-band-value {
  font-size: 18px;
  margin-top: 4px;
}

.pillar-score-row {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}

.pillar-score-card {
  padding: 10px 12px;
  border: 2px solid #bec6cd;
  border-radius: 10px;
  background: rgba(255,255,255,.34);
}

.pillar-score-value {
  font-size: 21px;
  font-weight: 700;
  margin-top: 4px;
  white-space: nowrap;
}

.risk-band-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #c3cad1;
}

.risk-band-value {
  font-size: 24px;
  font-weight: 800;
}

/* ============================================================
   COMPONENT C: EXPOSURE SPECTRUM BAR
   LOCKED VISUAL. Do not alter the gradient unless explicitly
   requested. Only the marker position changes dynamically.
   ============================================================ */
.spectrum-container {
  margin-top: 14px;
  background: rgba(255,255,255,.38);
  border-radius: 12px;
  padding: 12px 12px 10px;
}

.spectrum-title {
  font-size: 12px;
  color: #59636d;
  margin-bottom: 9px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.exposure-spectrum,
.report-spectrum {
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #2e7d32 0%,
    #43a047 20%,
    #c5c94a 40%,
    #e0b13d 55%,
    #e67e22 72%,
    #c62828 100%
  );
  overflow: visible;
}

.score-marker,
.report-score-marker {
  position: absolute;
  top: -8px;
  width: 3px;
  height: 34px;
  background: #1b1f23;
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 0 0 2px rgba(255,255,255,.8);
  display: none;
}

.score-marker::after,
.report-score-marker::after {
  content: attr(data-score);
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1b1f23;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

.spectrum-band-labels {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 4px;
  margin-top: 8px;
  font-size: 11px;
  color: #525c66;
  text-align: center;
}

.spectrum-endpoints {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 10px;
  color: #6b747d;
}

.results-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.4;
}

/* ============================================================
   COMPONENT D: VALIDATION MESSAGE
   ============================================================ */
.validation-message {
  display: none;
  background: #fff4e8;
  border: 1px solid #e7b57c;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  line-height: 1.45;
}

.validation-message.visible { display: block; }

/* ============================================================
   COMPONENT E: 20 ASSESSMENT QUESTION CARDS
   ============================================================ */
.pillar-heading {
  margin: 26px 0 10px;
  font-size: 20px;
}

.criterion-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 9px;
  box-shadow: 0 1px 5px rgba(0,0,0,.06);
}

.criterion-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.compact-criterion-header { margin-bottom: 10px; }

.criterion-title-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.criterion-name {
  font-weight: 700;
  line-height: 1.35;
}

.criterion-max {
  color: #667085;
  font-size: 12px;
  white-space: nowrap;
  padding-top: 2px;
}

.guidance-button {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #aeb7bf;
  color: #4d5862;
  background: #f7f8f9;
  font-size: 13px;
  font-weight: 900;
}

.criterion-response-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.score-selector {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}

.compact-score-selector { margin-bottom: 0; }

.score-button {
  min-width: 43px;
  height: 39px;
  padding: 0;
  border: 1px solid #c7ced6;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.score-button.active {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(17,24,39,.14);
}

.score-button.active.score-0 { background: var(--score-0); }
.score-button.active.score-1 { background: var(--score-1); }
.score-button.active.score-2 { background: var(--score-2); color: #18220d; }
.score-button.active.score-3 { background: var(--score-3); color: #2e260c; }
.score-button.active.score-4 { background: var(--score-4); }
.score-button.active.score-5 { background: var(--score-5); }

.score-anchor {
  font-size: 12px;
  color: #667085;
  margin-left: 4px;
  white-space: nowrap;
}

.criterion-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex: 0 0 auto;
}

.criterion-action-button {
  min-height: 36px;
  padding: 7px 10px;
  border-color: #c6cdd3;
  background: #f8f9fa;
  color: #49545e;
  font-size: 12px;
}

.criterion-action-button.has-evidence {
  border-color: #717c86;
  background: #eef1f3;
  color: #20262b;
}

.camera-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 40px;
}

.camera-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-count {
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #27313a;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

/* ============================================================
   COMPONENT F: REVIEW & SUBMIT PANEL
   ============================================================ */
.submit-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  margin: 28px 0 40px;
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
}

.submit-panel h2 { margin: 0 0 5px; font-size: 20px; }
.submit-panel p { margin: 0; color: var(--muted); line-height: 1.45; }

/* ============================================================
   VIEW 2: SUBMISSION CONFIRMATION
   ============================================================ */
.confirmation-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.confirmation-card {
  width: min(680px,100%);
  background: #fff;
  border-radius: 18px;
  padding: 38px;
  box-shadow: 0 10px 36px rgba(17,24,39,.12);
  text-align: center;
}

.confirmation-kicker {
  display: inline-block;
  background: #e6eaed;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 14px;
}

.confirmation-card p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
  margin: 12px auto 22px;
}

.confirmation-score {
  font-size: 44px;
  font-weight: 900;
}

.confirmation-band {
  font-size: 18px;
  font-weight: 800;
  margin-top: 4px;
}


/* Assessment Complete confirmation:
   score and band use the overall facility risk color. */
.confirmation-score.risk-colored,
.confirmation-band.risk-colored {
  color: var(--risk-color);
}

.confirmation-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.demo-disclaimer {
  margin-top: 24px;
  color: #7a838d;
  font-size: 12px;
  line-height: 1.4;
}

/* ============================================================
   VIEW 3: REPORT WORKSPACE / READ-ONLY OUTPUT
   ============================================================ */
.report-workspace {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.report-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.report-toolbar span {
  margin-left: 10px;
  color: var(--muted);
  font-size: 13px;
}

.report-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.report-page {
  background: #fff;
  min-height: 1180px;
  border-radius: 8px;
  padding: 46px 52px;
  box-shadow: 0 4px 24px rgba(17,24,39,.10);
  margin-bottom: 14px;
}

.report-brand {
  font-weight: 900;
  letter-spacing: .16em;
  font-size: 13px;
  color: #38424b;
}

.report-title {
  font-size: 30px;
  margin: 12px 0 6px;
}

.report-subtitle {
  color: var(--muted);
  line-height: 1.45;
}

.report-meta {
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #5d6670;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin: 18px 0 26px;
}

.report-section-title {
  margin: 30px 0 12px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .045em;
}

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

.condition-card {
  border: 1px solid #d6dbe0;
  border-radius: 10px;
  padding: 15px;
  background: #fafbfc;
}

.condition-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
}

.condition-card p {
  margin: 0;
  color: #56616b;
  font-size: 13px;
  line-height: 1.45;
}

.report-score-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  margin-top: 18px;
}

.report-score-card,
.report-band-card {
  background: #eef1f3;
  border-radius: 10px;
  padding: 18px;
}

.report-score-number {
  font-size: 42px;
  font-weight: 900;
}


/* Page 1 executive report:
   score/risk-band outlines carry risk color, text remains black. */
.report-score-card .report-score-number,
.report-band-card .report-band-name {
  color: var(--text);
}

.report-band-name {
  font-size: 26px;
  font-weight: 900;
  margin-top: 9px;
}

.report-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin-top: 12px;
}

.report-pillar {
  border: 1px solid #d6dbe0;
  border-radius: 9px;
  padding: 12px;
}

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

.report-spectrum-wrap {
  margin: 28px 0 22px;
}

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

.driver-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  border-top: 1px solid #e0e4e8;
  padding-top: 12px;
}

.driver-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #e8ecef;
  border-radius: 8px;
  font-weight: 900;
}

.driver-title {
  font-weight: 800;
  margin-bottom: 4px;
}

.driver-note {
  color: #5a6570;
  font-size: 13px;
  line-height: 1.45;
}

.interpretation-box {
  background: #f0f2f4;
  border-left: 4px solid #68737d;
  border-radius: 8px;
  padding: 18px 20px;
  line-height: 1.55;
}

.report-disclaimer {
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid #e1e5e8;
  color: #7a838d;
  font-size: 11px;
}

/* ============================================================
   REPORT PAGE 2: ASSESSMENT DETAIL
   ============================================================ */
.detail-pillar {
  margin-top: 26px;
}

.detail-pillar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid #d9dee2;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.assessment-detail-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #e4e7ea;
}

.detail-name { font-weight: 800; }
.detail-question {
  color: #66717c;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 5px;
}

.detail-score {
  font-weight: 800;
}

.detail-anchor {
  color: #65707b;
  font-size: 12px;
  margin-top: 4px;
}

.detail-points {
  font-weight: 800;
}

/* ============================================================
   REPORT PAGE 3: ENGINEER NOTES
   ============================================================ */
.notes-pillar {
  margin-top: 26px;
}

.note-record {
  padding: 13px 0;
  border-bottom: 1px solid #e4e7ea;
}

.note-record-title {
  font-weight: 800;
  margin-bottom: 6px;
}

.note-record-text {
  color: #4f5a64;
  line-height: 1.5;
  white-space: pre-wrap;
}

.report-page-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 36px;
}


/* ============================================================
   COMPONENT L: GUIDANCE / NOTES MODAL
   Keeps optional information off the field screen.
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(27,31,35,.48);
}

.modal-card {
  width: min(620px,100%);
  max-height: 84vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 18px 50px rgba(17,24,39,.24);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid #e1e5e8;
  padding-bottom: 11px;
  margin-bottom: 14px;
}

.modal-header h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
}

.modal-close {
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 23px;
  line-height: 1;
  border-radius: 50%;
}

.guidance-kicker,
.photo-interpretation-label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #5b6670;
}

.guidance-text {
  margin: 6px 0 14px;
  font-size: 16px;
  line-height: 1.5;
}

.guidance-profile-note {
  background: #f1f3f5;
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: #58636d;
}

.guidance-anchor-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
  margin-top: 14px;
}

.guidance-anchor-grid div {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 7px;
  align-items: center;
  border: 1px solid #dde2e6;
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
}

.guidance-anchor-grid span { color: #5d6872; }

.modal-helper {
  color: #5d6872;
  font-size: 13px;
  margin-top: 0;
}

.modal-notes-textarea {
  min-height: 190px;
}

/* ============================================================
   REPORT PAGE 3: PHOTO EVIDENCE + VALTERA INTERPRETATION
   ============================================================ */
.photo-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  margin-top: 14px;
}

.photo-evidence-card {
  margin: 0;
  border: 1px solid #d8dde1;
  border-radius: 10px;
  overflow: hidden;
  background: #fafbfc;
}

.photo-evidence-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  background: #e8ecef;
}

.photo-evidence-card figcaption {
  padding: 12px 13px 14px;
}


.photo-interpretation-label {
  color: #27313a;
  margin-bottom: 5px;
}

.photo-interpretation-text {
  color: #4f5a64;
  font-size: 13px;
  line-height: 1.5;
}

.muted-evidence-text { color: #7a838d; font-style: italic; }

.empty-evidence-state {
  margin-top: 28px;
  padding: 20px;
  border: 1px dashed #c9d0d6;
  border-radius: 10px;
  color: #68737d;
}


/* ============================================================
   RESPONSIVE / TABLET BEHAVIOR
   ============================================================ */
@media (max-width: 1020px) {
  .metadata-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .condition-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .metadata-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .results-top-row { grid-template-columns: 1fr; gap: 12px; }
  .results-panel { position: relative; }
  .report-score-grid { grid-template-columns: 1fr; }
  .assessment-detail-row { grid-template-columns: 1fr 120px; }
}

@media (max-width: 680px) {
  .criterion-response-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .criterion-actions { width: 100%; }
  .criterion-action-button:first-child { flex: 1; }
  .photo-evidence-grid { grid-template-columns: 1fr; }
  .guidance-anchor-grid { grid-template-columns: 1fr; }

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

  .brand-logo {
    width: 112px;
    max-width: 34vw;
  }
  .app-shell, .report-workspace { padding: 12px; }
  .metadata-grid { grid-template-columns: 1fr; }
  .pillar-score-row, .report-pillar-grid { grid-template-columns: 1fr; }
  .submit-panel { flex-direction: column; align-items: stretch; }
  .results-footer { flex-direction: column; }
  .risk-band-row { flex-direction: column; align-items: flex-start; gap: 3px; }
  .report-page { padding: 28px 22px; min-height: 0; }
  .report-toolbar { flex-direction: column; align-items: stretch; }
  .assessment-detail-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ============================================================
   PRINT BEHAVIOR
   Production may later create a true PDF. For now, browser print
   will show all three report pages and hide application controls.
   ============================================================ */
@media print {
  body { background: #fff; }
  .report-toolbar, .report-page-navigation { display: none !important; }
  #assessmentView, #confirmationView { display: none !important; }
  #reportView { display: block !important; }
  .report-page {
    display: block !important;
    box-shadow: none;
    border-radius: 0;
    min-height: auto;
    page-break-after: always;
    padding: 30px;
  }
}

/* ============================================================
   LOCKED PILLAR ROW
   Lives directly beneath the locked exposure spectrum.
   Each completed pillar receives its own risk-color outline.
   ============================================================ */
.locked-pillar-row {
  margin-top: 12px;
}

/* ============================================================
   PROMINENT GUIDANCE / EVIDENCE CONTROLS
   ============================================================ */
.guidance-button {
  border: 1px solid #123b6d;
  background: #123b6d;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(18,59,109,.20);
}

.guidance-button:hover {
  background: #0d315b;
  border-color: #0d315b;
}

/* Notes and camera belong to the same control family, but are
   intentionally distinct so their different functions are clear. */
.notes-button {
  border: 1px solid #315f91;
  background: #eef4fb;
  color: #173f6e;
}

.notes-button:hover {
  background: #e3eef9;
}

.notes-button.has-evidence {
  background: #dbe9f7;
  border-color: #173f6e;
  color: #123b6d;
}

.camera-button {
  border: 1px solid #123b6d;
  background: #123b6d;
  color: #ffffff;
}

.camera-button:hover {
  background: #0d315b;
}

.camera-button.has-evidence {
  background: #173f6e;
  border-color: #173f6e;
}

.camera-button .photo-count {
  background: #ffffff;
  color: #123b6d;
  box-shadow: 0 0 0 1px rgba(18,59,109,.18);
}

/* ============================================================
   SIMULATED TABLET CAMERA
   ============================================================ */
.camera-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10,18,29,.82);
}

.camera-shell {
  width: min(780px, 96vw);
  background: #111820;
  color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
}

.camera-topbar {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 18px;
  background: #102f58;
}

.camera-topbar strong {
  font-size: 16px;
}

.camera-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-size: 26px;
}

.camera-viewport,
.camera-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #090d12;
  overflow: hidden;
}

.camera-viewport img,
.camera-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.camera-focus-frame {
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 8px;
  pointer-events: none;
}

.camera-controls {
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 12px 20px;
  background: #0e141c;
}

.camera-cancel-button {
  justify-self: start;
  background: transparent;
  color: #ffffff;
  border-color: #59636d;
}

.camera-shutter {
  justify-self: center;
  width: 66px;
  height: 66px;
  padding: 0;
  border-radius: 50%;
  border: 5px solid #ffffff;
  background: #f5f7f9;
  box-shadow: inset 0 0 0 3px #0e141c;
}

.camera-control-spacer {
  width: 1px;
  height: 1px;
}

.camera-preview-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  background: #0e141c;
}

.camera-preview-actions button:not(.button-primary) {
  background: transparent;
  color: #ffffff;
  border-color: #66717c;
}


/* ============================================================
   DEMO SCENARIO BUTTONS
   Risk-coded to preview the scenario before it is loaded.
   County Jail = Elevated / orange.
   Warehouse = Low-Moderate / green.
   ============================================================ */
.demo-button {
  font-weight: 800;
  border-width: 1px;
}

.demo-button-elevated {
  background: #E67E22;
  border-color: #D66F17;
  color: #FFFFFF;
}

.demo-button-elevated:hover {
  background: #D9741F;
}

.demo-button-lowmod {
  background: #7CB342;
  border-color: #6CA035;
  color: #FFFFFF;
}

.demo-button-lowmod:hover {
  background: #72A63C;
}

/* ============================================================
   PILLAR ROW / SSO FIELD
   ============================================================ */
.locked-pillar-row {
  margin-top: 12px;
}

#evaluator[readonly] {
  background: #f2f4f6;
  color: var(--text);
  cursor: default;
}




/* ============================================================
   ASSESSMENT SUMMARY STICKY BEHAVIOR
   Keep Overall Score + Risk Band + Active Pillar pinned on
   desktop and tablet. Only very small phone layouts release it.
   ============================================================ */
@media (min-width: 561px) {
  .results-panel {
    position: sticky;
    top: 0;
  }
}

@media (max-width: 560px) {
  .results-panel {
    position: relative;
  }
}


/* ============================================================
   ASSESSMENT PILLAR VISUAL LANGUAGE
   Risk = border + pillar title color once complete.
   Active section = subtle light-navy background.
   Numeric score remains black.
   ============================================================ */
.pillar-score-card.risk-colored {
  border: 2px solid var(--risk-color);
}

.pillar-score-card.risk-colored .metric-label {
  color: var(--risk-color);
  font-weight: 800;
}

.pillar-score-card .pillar-score-value {
  color: var(--text);
}

.pillar-score-card.active-work-section {
  position: relative;
}

.pillar-score-card.active-work-section::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(18, 59, 109, 0.16);
  box-shadow: 0 0 0 1px rgba(18, 59, 109, 0.08);
}

.pillar-score-card.active-work-section::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #123B6D;
  z-index: 1;
}


/* ============================================================
   REPORT NAVIGATION
   When Page 1 only shows Next Page, keep that button on the right.
   ============================================================ */
.report-navigation.page-one-only-next {
  justify-content: flex-end;
}
