/* ══════════════════════════════════════════════
   TOKENS
══════════════════════════════════════════════ */
:root {
  --eu-blue:        #003399;
  --eu-blue-dark:   #00205B;
  --eu-blue-mid:    #1A4BA0;
  --eu-blue-light:  #EBF0FA;
  --eu-blue-pale:   #F4F6FC;

  --risk-high:              #C0392B;
  --risk-high-bg:           #FDEDEC;
  --risk-high-border:       #E74C3C;
  --risk-limited:           #D68910;
  --risk-limited-bg:        #FEF9E7;
  --risk-limited-border:    #F39C12;
  --risk-minimal:           #1E8449;
  --risk-minimal-bg:        #EAFAF1;
  --risk-minimal-border:    #27AE60;
  --risk-unacceptable:      #6C3483;
  --risk-unacceptable-bg:   #F5EEF8;
  --risk-unacceptable-border:#8E44AD;
  --risk-unsure:            #7F8C8D;
  --risk-unsure-bg:         #F2F3F4;

  --grey-50:  #F8F9FA;
  --grey-100: #F1F3F5;
  --grey-200: #E9ECEF;
  --grey-400: #ADB5BD;
  --grey-600: #6C757D;
  --grey-800: #343A40;
  --white:    #FFFFFF;

  --radius:    8px;
  --radius-lg: 12px;
  --shadow:    0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);

  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'Consolas', 'Monaco', monospace;
}

/* ══════════════════════════════════════════════
   RESET
══════════════════════════════════════════════ */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0 }
html { font-size:16px; scroll-behavior:smooth }
body { font-family:var(--font); background:var(--grey-100); color:var(--grey-800); min-height:100vh }
a { color:var(--eu-blue) }

/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */
header {
  background: var(--eu-blue-dark);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-eu {
  background: var(--eu-blue);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.logo-wordmark {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: -0.2px;
}
.logo-wordmark strong { font-weight: 800 }
.header-reg {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  text-align: right;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════
   SITE NAV (below header)
══════════════════════════════════════════════ */
.site-nav {
  background: var(--white);
  border-bottom: 2px solid var(--eu-blue-light);
  padding: 0 24px;
  max-width: 100%;
}
.site-nav-links {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 0;
}
.site-nav-links a {
  display: inline-block;
  padding: 12px 20px 12px 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--grey-600);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
  letter-spacing: 0.1px;
}
.site-nav-links a:hover {
  color: var(--eu-blue);
  border-bottom-color: var(--eu-blue-light);
}
.site-nav-links a.active {
  color: var(--eu-blue);
  border-bottom-color: var(--eu-blue);
  font-weight: 700;
}

/* ══════════════════════════════════════════════
   SITE TAGLINE
══════════════════════════════════════════════ */
.site-tagline {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--eu-blue);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

/* ══════════════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════════════ */
.progress-bar {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  box-shadow: var(--shadow);
}
.progress-step {
  display: flex; align-items: center; gap: 8px;
  padding: 0 20px;
  opacity: 0.35;
  transition: opacity 0.2s;
  cursor: default;
}
.progress-step.active { opacity: 1 }
.progress-step.done   { opacity: 0.65 }
.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--grey-200);
  color: var(--grey-600);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.progress-step.active .step-num {
  background: var(--eu-blue);
  color: var(--white);
  box-shadow: 0 0 0 3px var(--eu-blue-light);
}
.progress-step.done .step-num {
  background: var(--risk-minimal);
  color: var(--white);
}
.step-label { font-size: 0.83rem; font-weight: 600; color: var(--grey-800) }
.progress-divider { width: 48px; height: 1px; background: var(--grey-200) }

/* ══════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════ */
.step { display: none; padding: 36px 24px 100px }
.step.active { display: block }
.container { max-width: 960px; margin: 0 auto }

/* ══════════════════════════════════════════════
   STEP HEADER
══════════════════════════════════════════════ */
.step-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--grey-200);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.step-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--eu-blue-dark);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.step-desc {
  font-size: 0.9rem;
  color: var(--grey-600);
  line-height: 1.65;
  max-width: 620px;
}
.step-badge {
  background: var(--eu-blue-light);
  border: 1px solid var(--eu-blue);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--eu-blue);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-section {
  padding: 22px 26px;
  border-bottom: 1px solid var(--grey-200);
}
.card-section:last-child { border-bottom: none }

/* ══════════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════════ */
.field-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--grey-800);
  margin-bottom: 6px;
}
.field-hint {
  font-size: 0.78rem;
  color: var(--grey-600);
  margin-bottom: 10px;
  line-height: 1.5;
}
.input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--grey-800);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus {
  border-color: var(--eu-blue);
  box-shadow: 0 0 0 3px rgba(0,51,153,0.1);
}
.input-row { display: flex; gap: 8px }
.input-row .input { flex: 1 }

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn {
  height: 42px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--eu-blue); color: var(--white) }
.btn-primary:hover { background: var(--eu-blue-dark) }
.btn-primary:disabled { background: var(--grey-200); color: var(--grey-400); cursor: not-allowed }
.btn-secondary { background: var(--eu-blue-light); color: var(--eu-blue); border: 1.5px solid var(--eu-blue) }
.btn-secondary:hover { background: #dce6f5 }
.btn-ghost { background: transparent; color: var(--grey-600); border: 1.5px solid var(--grey-200) }
.btn-ghost:hover { background: var(--grey-100) }

/* ══════════════════════════════════════════════
   AUTOCOMPLETE
══════════════════════════════════════════════ */
.suggestions {
  border: 1.5px solid var(--eu-blue);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--white);
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,51,153,0.1);
  position: relative;
  z-index: 10;
}
.suggestion-item {
  padding: 11px 14px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.1s;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--grey-100);
}
.suggestion-item:last-child { border-bottom: none }
.suggestion-item:hover { background: var(--eu-blue-light) }
.suggestion-badge {
  font-size: 0.68rem;
  background: var(--eu-blue);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}

/* ══════════════════════════════════════════════
   SOFTWARE TAGS
══════════════════════════════════════════════ */
.sw-list { padding: 22px 26px }
.sw-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px }
.sw-tag {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}
.sw-tag.recognised { background: var(--risk-minimal-bg); border: 1.5px solid var(--risk-minimal-border); color: var(--risk-minimal) }
.sw-tag.unrecognised { background: var(--grey-100); border: 1.5px solid var(--grey-400); color: var(--grey-600) }
.sw-tag-remove { background: none; border: none; cursor: pointer; font-size: 0.9rem; color: inherit; opacity: 0.5; padding: 0; line-height: 1 }
.sw-tag-remove:hover { opacity: 1 }

/* ══════════════════════════════════════════════
   STEP ACTIONS
══════════════════════════════════════════════ */
.step-actions {
  display: flex; justify-content: flex-end; gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--grey-200);
}

/* ══════════════════════════════════════════════
   UK CONTEXT CARD
══════════════════════════════════════════════ */
.uk-context-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-left: 4px solid var(--eu-blue);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.uk-context-icon { font-size: 2rem; flex-shrink: 0; margin-top: 2px }
.uk-context-title { font-size: 0.9rem; font-weight: 700; color: var(--grey-800); margin-bottom: 6px }
.uk-context-text p:last-child { font-size: 0.85rem; color: var(--grey-600); line-height: 1.65 }

/* ══════════════════════════════════════════════
   SCOPE OPTIONS
══════════════════════════════════════════════ */
.scope-options { display: flex; flex-direction: column; gap: 8px }
.scope-option {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--white);
}
.scope-option:hover { border-color: var(--eu-blue); background: var(--eu-blue-pale) }
.scope-option input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--eu-blue); flex-shrink: 0; cursor: pointer }
.scope-option-title { font-size: 0.88rem; font-weight: 500; color: var(--grey-800) }

/* ══════════════════════════════════════════════
   SCOPE RESULT
══════════════════════════════════════════════ */
.scope-result {
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-top: 16px;
  display: flex; gap: 16px; align-items: flex-start;
}
.scope-result.applies { background: var(--risk-high-bg); border: 1.5px solid var(--risk-high-border) }
.scope-result.likely  { background: var(--risk-limited-bg); border: 1.5px solid var(--risk-limited-border) }
.scope-result.unlikely{ background: var(--risk-minimal-bg); border: 1.5px solid var(--risk-minimal-border) }
.scope-result-icon { font-size: 1.5rem; flex-shrink: 0 }
.scope-result-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 5px }
.scope-result.applies .scope-result-title { color: var(--risk-high) }
.scope-result.likely  .scope-result-title { color: var(--risk-limited) }
.scope-result.unlikely.scope-result-title { color: var(--risk-minimal) }
.scope-result-body { font-size: 0.83rem; color: var(--grey-700); line-height: 1.6 }

/* ══════════════════════════════════════════════
   INFO CALLOUT
══════════════════════════════════════════════ */
.info-callout {
  background: var(--eu-blue-light);
  border: 1px solid var(--eu-blue);
  border-radius: var(--radius);
  padding: 13px 18px;
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.85rem;
  color: var(--eu-blue-dark);
  line-height: 1.6;
  margin-bottom: 4px;
}
.info-callout-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px }

/* ══════════════════════════════════════════════
   SECTION HEADERS (STEP 2)
══════════════════════════════════════════════ */
.section-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--eu-blue-dark);
  margin: 32px 0 6px;
  display: flex; align-items: center; gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}
.recognised-icon  { background: var(--risk-minimal-bg); color: var(--risk-minimal); border: 1.5px solid var(--risk-minimal-border) }
.unrecognised-icon{ background: var(--grey-100); color: var(--grey-600); border: 1.5px solid var(--grey-400) }
.section-count {
  font-size: 0.72rem; font-weight: 700;
  background: var(--eu-blue); color: var(--white);
  padding: 2px 9px; border-radius: 10px;
  text-transform: none; letter-spacing: 0;
}
.section-desc { font-size: 0.85rem; color: var(--grey-600); margin-bottom: 16px; line-height: 1.6 }

/* ══════════════════════════════════════════════
   SOFTWARE PANELS (RECOGNISED)
══════════════════════════════════════════════ */
.sw-panel {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}
.sw-panel-header {
  padding: 16px 22px;
  background: var(--eu-blue-dark);
  color: var(--white);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.sw-panel-name { font-size: 1rem; font-weight: 800; margin-bottom: 3px }
.sw-panel-meta { font-size: 0.72rem; opacity: 0.55 }
.sw-panel-risk-summary { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 2px }

.risk-pill {
  font-size: 0.68rem; font-weight: 700;
  padding: 3px 8px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.risk-pill.High        { background: var(--risk-high-bg);        color: var(--risk-high);        border: 1px solid var(--risk-high-border) }
.risk-pill.Limited     { background: var(--risk-limited-bg);     color: var(--risk-limited);     border: 1px solid var(--risk-limited-border) }
.risk-pill.Minimal     { background: var(--risk-minimal-bg);     color: var(--risk-minimal);     border: 1px solid var(--risk-minimal-border) }
.risk-pill.Unacceptable{ background: var(--risk-unacceptable-bg);color: var(--risk-unacceptable);border: 1px solid var(--risk-unacceptable-border) }

.sw-panel-intro {
  padding: 11px 22px;
  background: var(--eu-blue-pale);
  border-bottom: 1px solid var(--grey-200);
  font-size: 0.8rem;
  color: var(--eu-blue-dark);
  line-height: 1.55;
}

.feature-row {
  padding: 14px 22px;
  border-bottom: 1px solid var(--grey-100);
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: start;
  transition: background 0.1s;
}
.feature-row:hover { background: var(--grey-50) }
.feature-row:last-of-type { border-bottom: none }
.feature-checkbox { width: 17px; height: 17px; cursor: pointer; accent-color: var(--eu-blue); margin-top: 3px; flex-shrink: 0 }
.feature-name { font-size: 0.88rem; font-weight: 600; color: var(--grey-800); margin-bottom: 3px }
.feature-desc { font-size: 0.78rem; color: var(--grey-600); line-height: 1.5 }
.feature-tier-info { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; min-width: 90px }
.info-btn {
  background: none; border: 1px solid var(--eu-blue); cursor: pointer;
  font-size: 0.7rem; color: var(--eu-blue);
  padding: 2px 7px; border-radius: 4px;
  display: flex; align-items: center; gap: 3px;
  transition: background 0.1s; font-family: var(--font); font-weight: 600;
}
.info-btn:hover { background: var(--eu-blue-light) }

.sw-panel-confirm {
  background: var(--grey-50);
  border-top: 1px solid var(--grey-200);
  padding: 16px 22px;
}
.confirm-declaration {
  font-size: 0.78rem; color: var(--grey-600);
  margin-bottom: 12px; line-height: 1.55;
  font-style: italic;
  padding-left: 12px;
  border-left: 3px solid var(--eu-blue);
}
.confirm-fields { display: flex; gap: 8px; flex-wrap: wrap }
.confirm-fields .input { height: 36px; font-size: 0.85rem }
.confirm-btn {
  height: 36px; padding: 0 16px; border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 700; font-family: var(--font);
  cursor: pointer; border: none;
  background: var(--eu-blue); color: var(--white);
  white-space: nowrap; transition: background 0.15s;
}
.confirm-btn:hover { background: var(--eu-blue-dark) }
.confirm-btn.confirmed { background: var(--risk-minimal); cursor: default }

/* ══════════════════════════════════════════════
   UNRECOGNISED QUESTIONNAIRE
══════════════════════════════════════════════ */
.unrec-panel {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}
.unrec-panel-header {
  padding: 14px 22px;
  background: var(--eu-blue-mid);
  color: var(--white);
  display: flex; align-items: center; justify-content: space-between;
}
.unrec-panel-name { font-size: 0.95rem; font-weight: 800 }
.unrec-panel-status { font-size: 0.72rem; opacity: 0.6 }

.question-block {
  padding: 16px 22px;
  border-bottom: 1px solid var(--grey-100);
}
.question-block:last-of-type { border-bottom: none }
.question-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px }
.question-num {
  font-size: 0.68rem; font-weight: 800;
  background: var(--eu-blue); color: var(--white);
  padding: 3px 8px; border-radius: 4px;
  white-space: nowrap; margin-top: 2px; letter-spacing: 0.3px;
}
.question-num.block-A { background: var(--risk-unacceptable) }
.question-num.block-B { background: var(--risk-high) }
.question-num.block-C { background: var(--risk-limited) }

.question-text { font-size: 0.875rem; font-weight: 500; color: var(--grey-800); line-height: 1.55; flex: 1 }
.question-info-btn {
  background: none; border: 1px solid var(--eu-blue); color: var(--eu-blue);
  border-radius: 4px; padding: 2px 7px; font-size: 0.7rem; cursor: pointer;
  white-space: nowrap; margin-top: 1px; transition: background 0.1s;
  font-family: var(--font); font-weight: 700;
}
.question-info-btn:hover { background: var(--eu-blue-light) }

.answer-options { display: flex; gap: 8px; flex-wrap: wrap }
.answer-btn {
  height: 34px; padding: 0 18px; border-radius: var(--radius);
  font-size: 0.82rem; font-weight: 700; font-family: var(--font);
  cursor: pointer; border: 1.5px solid var(--grey-200);
  background: var(--white); color: var(--grey-600);
  transition: all 0.15s;
}
.answer-btn:hover { border-color: var(--eu-blue); color: var(--eu-blue); background: var(--eu-blue-light) }
.answer-btn.selected-yes     { background: var(--risk-high-bg);   border-color: var(--risk-high-border);    color: var(--risk-high) }
.answer-btn.selected-no      { background: var(--risk-minimal-bg);border-color: var(--risk-minimal-border); color: var(--risk-minimal) }
.answer-btn.selected-notsure { background: var(--risk-unsure-bg); border-color: var(--grey-400);           color: var(--risk-unsure) }

.question-result { margin-top: 10px; font-size: 0.78rem; padding: 7px 11px; border-radius: 5px; display: none; font-weight: 600 }
.question-result.show { display: block }
.question-result.High        { background: var(--risk-high-bg);        color: var(--risk-high) }
.question-result.Limited     { background: var(--risk-limited-bg);     color: var(--risk-limited) }
.question-result.Unacceptable{ background: var(--risk-unacceptable-bg);color: var(--risk-unacceptable) }
.question-result.not-sure    { background: var(--risk-unsure-bg);      color: var(--risk-unsure) }

.unrec-result-bar {
  padding: 13px 22px;
  border-top: 1px solid var(--grey-200);
  background: var(--eu-blue-pale);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.unrec-result-label { font-size: 0.82rem; font-weight: 700; color: var(--eu-blue-dark) }
.unrec-result-tier { font-weight: 800; font-size: 0.9rem }
.unrec-result-tier.pending  { color: var(--grey-400); font-weight: 500; font-size: 0.82rem }
.unrec-result-tier.High        { color: var(--risk-high) }
.unrec-result-tier.Limited     { color: var(--risk-limited) }
.unrec-result-tier.Minimal     { color: var(--risk-minimal) }
.unrec-result-tier.Unacceptable{ color: var(--risk-unacceptable) }

/* ══════════════════════════════════════════════
   ACT REFERENCE MODAL
══════════════════════════════════════════════ */
.tooltip-overlay {
  position: fixed; inset: 0;
  background: rgba(0,32,91,0.5);
  backdrop-filter: blur(2px);
  z-index: 200;
}
.tooltip {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: min(580px, 92vw);
  z-index: 201;
  overflow: hidden;
}
.tooltip-header {
  background: var(--eu-blue-dark);
  color: var(--white);
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.tooltip-header-left { display: flex; align-items: center; gap: 10px }
.tooltip-eu-badge {
  background: var(--eu-blue);
  color: var(--white);
  font-size: 0.65rem; font-weight: 800;
  padding: 2px 8px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.4px;
  border: 1px solid rgba(255,255,255,0.25);
}
.tooltip-label { font-size: 0.82rem; font-weight: 700; opacity: 0.9 }
.tooltip-close { background: none; border: none; color: var(--white); cursor: pointer; font-size: 1.1rem; opacity: 0.6; padding: 0; line-height: 1 }
.tooltip-close:hover { opacity: 1 }
.tooltip-body { padding: 20px; font-size: 0.875rem; color: var(--grey-800); line-height: 1.7; max-height: 52vh; overflow-y: auto }
.act-quote {
  font-family: var(--mono); font-size: 0.8rem;
  background: var(--eu-blue-pale);
  border-left: 4px solid var(--eu-blue);
  padding: 12px 16px; border-radius: 0 6px 6px 0;
  color: var(--eu-blue-dark); margin: 12px 0; line-height: 1.65;
}
.act-ref { font-size: 0.75rem; color: var(--grey-600); margin-top: 8px; padding: 8px 12px; background: var(--grey-50); border-radius: 4px; border: 1px solid var(--grey-200) }
.tooltip-footer { padding: 12px 20px; border-top: 1px solid var(--grey-200); background: var(--grey-50) }
.tooltip-footer a { font-size: 0.82rem; font-weight: 700; color: var(--eu-blue) }

/* ══════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════ */
.hidden { display: none !important }

/* ══════════════════════════════════════════════
   ICO CALLOUT
══════════════════════════════════════════════ */
.ico-callout {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-left: 4px solid #2B6CB0;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-top: 16px;
  box-shadow: var(--shadow);
}
.ico-callout-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ico-badge {
  background: #2B6CB0;
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.ico-callout-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--grey-800);
}
.ico-callout-body {
  font-size: 0.85rem;
  color: var(--grey-600);
  line-height: 1.65;
  margin-bottom: 16px;
}
.ico-resources {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.ico-resource-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.ico-resource-link:hover {
  background: var(--eu-blue-light);
  border-color: var(--eu-blue);
}
.ico-resource-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--eu-blue);
}
.ico-resource-desc {
  font-size: 0.78rem;
  color: var(--grey-600);
  line-height: 1.4;
}
.ico-callout-footer {
  font-size: 0.75rem;
  color: var(--grey-400);
  border-top: 1px solid var(--grey-200);
  padding-top: 12px;
  line-height: 1.5;
}
.ico-callout-footer a {
  color: var(--grey-400);
}

.ico-coming-soon {
  background: var(--eu-blue-pale);
  border: 1px solid var(--eu-blue);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--eu-blue-dark);
  line-height: 1.6;
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ico-coming-soon-label {
  background: var(--eu-blue);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
  margin-top: 2px;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

/* ══════════════════════════════════════════════
   HEADER NAV
══════════════════════════════════════════════ */
.header-nav {
  display: flex;
  gap: 4px;
}
.header-nav a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  transition: all 0.15s;
}
.header-nav a:hover { color: var(--white); background: rgba(255,255,255,0.1) }
.header-nav a.active { color: var(--white); background: rgba(255,255,255,0.15) }

.logo-link {
  color: var(--white);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: -0.2px;
}
.logo-link strong { font-weight: 800 }
.logo-link:hover { opacity: 0.85 }
.logo-tagline {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.3px;
  margin-top: 3px;
  font-weight: 500;
}

/* ══════════════════════════════════════════════
   HERO IMAGE
══════════════════════════════════════════════ */
.hero-image {
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.scope-option-none {
  border-top: 1px solid var(--grey-200);
  margin-top: 4px;
  padding-top: 4px;
  color: var(--grey-600);
}
.scope-option-none .scope-option-title {
  color: var(--grey-600);
  font-style: italic;
}

/* ── SW PANEL HEADER RIGHT ─────────────────── */
.sw-panel-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* ── REMOVE BUTTON ─────────────────────────── */
.sw-remove-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.sw-remove-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ── ACT REF BUTTON (smaller/quieter) ─────── */
.act-ref-btn {
  font-size: 0.72rem;
  padding: 3px 8px;
  opacity: 0.75;
}
.act-ref-btn:hover {
  opacity: 1;
}

/* ── GLOBAL CONFIRM BLOCK ──────────────────── */
.global-confirm-block {
  margin-top: 32px;
  padding: 24px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  background: var(--grey-50);
}
.global-confirm-declaration {
  font-size: 0.9rem;
  color: var(--grey-700);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ── PANEL COLLAPSE ────────────────────────── */
.sw-panel-body {
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.sw-panel-body.collapsed {
  display: none;
}
.sw-collapse-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  transition: color 0.15s;
}
.sw-collapse-btn:hover {
  color: #fff;
}
.sw-panel-header-left {
  flex: 1;
}

/* ── PANEL DONE STATE ──────────────────────── */
.panel-status {
  display: flex;
  align-items: center;
  gap: 6px;
}
.panel-done-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #6ee7a0;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ── NONE OF THE ABOVE ROW ─────────────────── */
.none-row {
  border-top: 1px solid var(--grey-200);
  margin-top: 8px;
  padding-top: 12px;
}
.none-label {
  font-style: italic;
  color: var(--grey-600);
}

/* ── QUESTION ERROR STATE ──────────────────── */
.question-error {
  font-size: 0.78rem;
  color: #dc2626;
  margin-top: 6px;
  font-weight: 500;
}
.question-error.hidden { display: none; }
.question-unanswered {
  border-left: 3px solid #dc2626;
  padding-left: 12px;
  background: #fff5f5;
  border-radius: 4px;
}

/* ── INPUT ERROR ───────────────────────────── */
.input-error {
  border-color: #dc2626 !important;
  background: #fff5f5 !important;
}

/* ── CONFIRM CHECKBOX ROW ──────────────────── */
.confirm-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--grey-700);
  line-height: 1.5;
}
.confirm-checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--primary);
}
.checkbox-error {
  color: #dc2626;
  outline: 2px solid #dc2626;
  border-radius: 4px;
  padding: 4px;
}

/* ── FIELD ERROR MESSAGES ──────────────────── */
.field-error {
  font-size: 0.78rem;
  color: #dc2626;
  margin-top: 5px;
  font-weight: 500;
}
.field-error.hidden { display: none; }

/* ── COLLAPSE BUTTON WITH TEXT ─────────────── */
.sw-collapse-btn {
  font-size: 0.75rem !important;
  padding: 4px 10px !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: var(--radius-sm) !important;
  white-space: nowrap;
}

/* ── CATEGORY BLOCKS ───────────────────────── */
.cat-block {
  margin-bottom: 8px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grey-50);
  border-bottom: 1px solid var(--grey-200);
  gap: 12px;
}
.cat-legend {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}
.block-A { background: #dc2626; }
.block-B { background: #d97706; }
.block-C { background: #2563eb; }
.cat-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--grey-900);
}
.cat-desc {
  font-size: 0.75rem;
  color: var(--grey-500);
}
.cat-bulk-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.bulk-btn {
  font-size: 0.75rem;
  padding: 4px 10px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  color: var(--grey-700);
  transition: background 0.15s;
}
.bulk-btn:hover {
  background: var(--grey-100);
}

/* ── COPY FROM PREVIOUS ────────────────────── */
.copy-prev-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--primary);
  background: #f0f4ff;
  border: none;
  border-bottom: 1px solid var(--grey-200);
  cursor: pointer;
  transition: background 0.15s;
}
.copy-prev-btn:hover {
  background: #e0e8ff;
}

/* ── CATEGORY BADGE NEUTRAL ────────────────── */
.cat-badge {
  background: var(--navy, #1e2d5a) !important;
}

/* ── UNREC PANEL BODY PADDING ──────────────── */
.unrec-panel .sw-panel-body {
  padding: 16px;
}
.unrec-panel .copy-prev-btn {
  margin: -16px -16px 16px -16px;
  width: calc(100% + 32px);
}

/* ══════════════════════════════════════════════
   REPORT STYLES
══════════════════════════════════════════════ */
.report {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 40px;
}

/* Report header */
.report-header {
  background: var(--navy, #1a2a5e);
  color: #fff;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.report-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.report-subtitle {
  font-size: 1rem;
  opacity: 0.85;
}
.report-meta {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-bottom: 4px;
  text-align: right;
}

/* Summary block */
.report-summary {
  background: var(--grey-50);
  border-bottom: 1px solid var(--grey-200);
  padding: 24px 32px;
}
.report-summary-inner {}
.report-summary-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.report-summary-label {
  font-size: 0.78rem;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.rpt-top-pill {
  font-size: 0.95rem;
  padding: 6px 14px;
}
.report-summary-counts {
  text-align: right;
  font-size: 0.88rem;
  color: var(--grey-600);
  line-height: 1.8;
}
.report-summary-counts strong {
  font-size: 1.1rem;
  color: var(--grey-900);
}
.report-summary-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* SW sections */
.rpt-sw-section {
  border-bottom: 2px solid var(--grey-100);
  padding: 0 32px;
}
.rpt-sw-section:last-child { border-bottom: none; }
.rpt-sw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 12px;
  border-bottom: 1px solid var(--grey-200);
  margin-bottom: 0;
}
.rpt-sw-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--grey-900);
}

/* Feature rows */
.rpt-feature {
  padding: 16px 0;
  border-bottom: 1px solid var(--grey-100);
}
.rpt-feature:last-child { border-bottom: none; }
.rpt-feature-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.rpt-feature-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--grey-900);
}
.rpt-feature-desc {
  font-size: 0.82rem;
  color: var(--grey-500);
  margin-bottom: 10px;
}
.rpt-act-quote {
  font-size: 0.8rem;
  color: var(--grey-600);
  font-style: italic;
  border-left: 3px solid var(--grey-300);
  padding-left: 12px;
  margin: 8px 0;
  line-height: 1.5;
}
.rpt-act-ref {
  font-size: 0.75rem;
  color: var(--grey-500);
  margin-bottom: 8px;
}
.rpt-act-ref a {
  color: var(--primary);
  text-decoration: none;
}
.rpt-action-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey-500);
  margin-bottom: 4px;
}
.rpt-action {
  font-size: 0.85rem;
  color: var(--grey-800);
  line-height: 1.5;
}
.rpt-feature-none .rpt-feature-name { color: var(--grey-500); font-weight: 400; }
.rpt-action-minimal { color: var(--grey-400); font-size: 0.82rem; }
.rpt-notsure { background: #fffbeb; border-radius: 4px; padding: 12px; }

/* Disclaimer */
.report-disclaimer {
  background: var(--grey-50);
  border-top: 2px solid var(--grey-200);
  padding: 28px 32px;
  font-size: 0.78rem;
  color: var(--grey-600);
  line-height: 1.6;
}
.report-disclaimer p { margin-bottom: 8px; }
.report-disclaimer-title {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey-700);
  margin-bottom: 12px;
}

/* Inline step actions */
.step-actions-inline {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

/* ══════════════════════════════════════════════
   PRINT STYLESHEET
══════════════════════════════════════════════ */
@media print {
  .no-print,
  nav,
  header,
  .step-actions,
  .step-actions-inline,
  #step1, #step2,
  .blog-section,
  footer { display: none !important; }

  #step3 { display: block !important; }
  body { background: #fff; }
  .container { max-width: 100%; padding: 0; }
  .report { box-shadow: none; border-radius: 0; }

  .report-header { background: #1a2a5e !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .risk-pill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .rpt-sw-section { page-break-inside: avoid; }
  .rpt-feature { page-break-inside: avoid; }

  .rpt-act-ref a { color: #000; }
  .rpt-act-ref a::after { content: " (" attr(href) ")"; font-size: 0.65rem; }
}

/* ── REPORT SECTION LABELS ─────────────────── */
.rpt-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-400);
  margin: 14px 0 5px;
}
.rpt-section-label a {
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}
.rpt-ref-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.82rem;
}
.rpt-ref-link:hover { text-decoration: underline; }

/* ── OBLIGATIONS LIST ──────────────────────── */
.rpt-obligations-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.84rem;
  color: var(--grey-800);
  line-height: 1.6;
}
.rpt-obligations-list li {
  margin-bottom: 8px;
  padding-left: 4px;
}
.rpt-art-inline {
  font-size: 0.75rem;
  color: var(--grey-400);
  font-style: italic;
}

/* ── ACTION TEXT ───────────────────────────── */
.rpt-action-text {
  font-size: 0.84rem;
  color: var(--grey-800);
  line-height: 1.5;
  margin: 0;
}
.rpt-action-minimal {
  font-size: 0.82rem;
  color: var(--grey-400);
  margin-bottom: 4px;
}

@media print {
  .rpt-obligations-list { font-size: 0.78rem; }
  .rpt-section-label { color: #666; }
}

/* ── RESUME NOTICE ─────────────────────────── */
.resume-notice {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a6b3a;
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.resume-notice button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 0.85rem;
}

/* ── SAVE BAR ──────────────────────────────── */
.save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.save-exit-btn {
  font-size: 0.8rem;
  padding: 6px 14px;
}

