/**
 * CyberCorrect™ — shared regulatory readiness tool UI (GDPR Review-style shell).
 * Scope all tool content in: <div class="reg-review-tool-scope container">…</div>
 * Requires: tailwind.css, app.css, cybercorrect-theme.css, regulatory-review-shell.css
 */

.reg-review-tool-scope {
  --surface: var(--card);
  --surface2: color-mix(in srgb, var(--card) 90%, var(--border));
  --border2: color-mix(in srgb, var(--border) 72%, transparent);
  --accent: var(--primary);
  --accent2: var(--primary);
  --accent3: var(--warning);
  --accent4: var(--warning);
  --red: var(--error);
  --text: var(--foreground);
  --muted: var(--muted-foreground);
  --muted2: var(--muted-foreground);
}

.reg-review-tool-scope,
.reg-review-tool-scope * {
  box-sizing: border-box;
}

.reg-review-tool-scope.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  position: relative;
  z-index: 1;
}

@keyframes rr-fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rr-pulse {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.reg-review-tool-scope header { text-align: center; margin-bottom: 52px; }
.reg-review-tool-scope .brand-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 20px; opacity: 0; animation: rr-fadeUp 0.6s ease forwards;
}
.reg-review-tool-scope .brand-sep { width: 1px; height: 14px; background: var(--border); }
.reg-review-tool-scope .brand-law,
.reg-review-tool-scope .brand-bill {
  font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: 0.18em;
  color: var(--accent3); text-transform: uppercase;
}
.reg-review-tool-scope .eu-stars { font-size: 10px; letter-spacing: 0.15em; color: var(--accent3); }
.reg-review-tool-scope h1 {
  font-size: clamp(1.65rem, 4.5vw, 2.75rem); font-weight: 800; line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 14px; opacity: 0;
  animation: rr-fadeUp 0.6s ease 0.1s forwards;
}
.reg-review-tool-scope h1 .hl { color: var(--accent2); }
.reg-review-tool-scope h1 .hl2 { color: var(--accent3); }
.reg-review-tool-scope h1 em {
  font-style: normal;
  color: var(--accent2);
}
.reg-review-tool-scope .subtitle {
  font-size: 0.97rem; color: var(--muted2); max-width: 600px; margin: 0 auto; line-height: 1.65;
  opacity: 0; animation: rr-fadeUp 0.6s ease 0.2s forwards;
}
.reg-review-tool-scope .law-strip {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px;
  flex-wrap: wrap; opacity: 0; animation: rr-fadeUp 0.6s ease 0.3s forwards;
}
.reg-review-tool-scope .law-pill {
  font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 0.12em;
  padding: 4px 10px; border-radius: 20px; border: 1px solid;
}
.reg-review-tool-scope .pill-blue {
  border-color: rgba(77, 122, 255, 0.4); color: var(--accent2); background: rgba(77, 122, 255, 0.07);
}
.reg-review-tool-scope .pill-gold,
.reg-review-tool-scope .pill-amber {
  border-color: rgba(255, 204, 0, 0.35); color: var(--accent3); background: rgba(255, 204, 0, 0.06);
}
.reg-review-tool-scope .pill-red {
  border-color: rgba(239, 68, 68, 0.35); color: var(--red); background: rgba(239, 68, 68, 0.07);
}
.reg-review-tool-scope .pill-green {
  border-color: rgba(0, 214, 143, 0.3); color: #00d68f; background: rgba(0, 214, 143, 0.06);
}
.reg-review-tool-scope .pill-teal {
  border-color: rgba(0, 207, 180, 0.35); color: var(--accent3); background: rgba(0, 207, 180, 0.06);
}
.reg-review-tool-scope .bill-status {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(240, 180, 41, 0.08); border: 1px solid rgba(240, 180, 41, 0.25);
  border-radius: 20px; padding: 4px 12px; margin-bottom: 18px;
  font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 0.12em;
  color: var(--accent4); text-transform: uppercase;
  opacity: 0; animation: rr-fadeUp 0.6s ease 0.05s forwards;
}
.reg-review-tool-scope .bill-status .status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent4);
  animation: rr-pulse 1.8s ease infinite;
}
.reg-review-tool-scope .privacy-note {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 10px;
  font-family: ui-monospace, monospace; font-size: 10px; color: var(--muted); letter-spacing: 0.08em;
}
.reg-review-tool-scope .check-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-family: ui-monospace, monospace; font-size: 9.5px; color: var(--muted);
  text-decoration: none; border: 1px solid var(--border); padding: 5px 14px; border-radius: 20px;
  transition: all 0.2s;
}
.reg-review-tool-scope .check-link:hover { border-color: var(--accent2); color: var(--accent2); }

.reg-review-tool-scope .context-bar {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 24px; margin-bottom: 28px; opacity: 0; animation: rr-fadeUp 0.6s ease 0.35s forwards;
}
.reg-review-tool-scope .ctx-label {
  font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 0.25em;
  color: var(--accent2); text-transform: uppercase; margin-bottom: 12px;
}
.reg-review-tool-scope .ctx-label--spaced { margin-top: 14px; }
.reg-review-tool-scope .ctx-row { display: flex; gap: 8px; flex-wrap: wrap; }
.reg-review-tool-scope .ctx-chip {
  font-family: ui-monospace, monospace; font-size: 10px; padding: 6px 13px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--surface2); color: var(--muted); cursor: pointer;
  transition: all 0.2s; letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 5px;
}
.reg-review-tool-scope .ctx-chip:hover { border-color: var(--accent2); color: var(--accent2); }
.reg-review-tool-scope .ctx-chip.active {
  border-color: var(--accent2); background: rgba(0, 62, 207, 0.15); color: var(--accent2);
}
.reg-review-tool-scope button.ctx-chip {
  font: inherit; color: inherit; appearance: none; -webkit-appearance: none;
}
.reg-review-tool-scope .ctx-chip svg { width: 12px; height: 12px; flex-shrink: 0; opacity: 0.75; }
.reg-review-tool-scope .ctx-divider { width: 100%; height: 1px; background: var(--border); margin: 14px 0; }
.reg-review-tool-scope .ctx-note {
  font-family: ui-monospace, monospace; font-size: 8.5px; color: var(--muted);
  letter-spacing: 0.04em; margin-top: 12px; line-height: 1.55;
}
.reg-review-tool-scope .ctx-note strong { color: var(--accent2); }

/* FERPA / HIPAA-style context: labelled dropdowns inside context-bar */
.reg-review-tool-scope .context-bar .ctx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.reg-review-tool-scope .context-bar .ctx-field label {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.reg-review-tool-scope .context-bar .ctx-field select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text);
  font-family: ui-monospace, monospace;
  font-size: 12px;
  padding: 10px 12px;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238fa3bc' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.reg-review-tool-scope .context-bar .ctx-field select:focus {
  outline: none;
  border-color: var(--accent2);
}
@media (max-width: 560px) {
  .reg-review-tool-scope .context-bar .ctx-grid { grid-template-columns: 1fr; }
}

.reg-review-tool-scope .scope-alert {
  background: rgba(0, 62, 207, 0.07); border: 1px solid rgba(0, 62, 207, 0.22); border-radius: 10px;
  padding: 14px 18px; margin-bottom: 28px; display: flex; gap: 12px; align-items: flex-start;
  opacity: 0; animation: rr-fadeUp 0.6s ease 0.4s forwards;
}
.reg-review-tool-scope .scope-alert svg {
  width: 16px; height: 16px; color: var(--accent2); flex-shrink: 0; margin-top: 1px;
}
.reg-review-tool-scope .scope-alert-text { font-size: 0.8rem; color: var(--muted2); line-height: 1.65; }
.reg-review-tool-scope .scope-alert-text strong { color: var(--accent2); }

.reg-review-tool-scope .progress-wrap {
  margin-bottom: 32px; opacity: 0; animation: rr-fadeUp 0.6s ease 0.45s forwards;
}
.reg-review-tool-scope .progress-meta {
  display: flex; justify-content: space-between; font-family: ui-monospace, monospace;
  font-size: 11px; color: var(--muted); margin-bottom: 8px;
}
.reg-review-tool-scope .progress-bar-bg {
  height: 3px; background: var(--border); border-radius: 2px; overflow: hidden;
}
.reg-review-tool-scope .progress-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  border-radius: 2px; transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); width: 0%;
}
/* Legacy class names (some tools still use track/fill) */
.reg-review-tool-scope .progress-track {
  height: 3px; background: var(--border); border-radius: 2px; overflow: hidden;
}
.reg-review-tool-scope .progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  border-radius: 2px; transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); width: 0%;
}

/* Optional stat row under subtitle (FERPA / HIPAA tools) */
.reg-review-tool-scope .tool-stats-row {
  display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 18px;
  opacity: 0; animation: rr-fadeUp 0.6s ease 0.25s forwards;
}
.reg-review-tool-scope .tool-stat { text-align: center; min-width: 72px; }
.reg-review-tool-scope .tool-stat-val {
  font-family: ui-monospace, monospace; font-size: 22px; font-weight: 700; color: var(--accent2);
}
.reg-review-tool-scope .tool-stat-lbl {
  font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px;
}

.reg-review-tool-scope #questions-wrap.questions-section { padding: 24px 0 8px; }

.reg-review-tool-scope .section-divider {
  font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: 0.3em; color: var(--accent2);
  text-transform: uppercase; margin: 32px 0 14px; display: flex; align-items: center; gap: 12px;
}
.reg-review-tool-scope .section-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.reg-review-tool-scope .q-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 26px 30px; margin-bottom: 10px; opacity: 0; animation: rr-fadeUp 0.45s ease forwards;
  transition: border-color 0.25s;
}
.reg-review-tool-scope .q-card:hover { border-color: #2a3f6a; }
.reg-review-tool-scope .q-num {
  font-family: ui-monospace, monospace; font-size: 10px; color: var(--accent2); letter-spacing: 0.2em;
  margin-bottom: 5px;
}
.reg-review-tool-scope .q-text {
  font-size: 1rem; font-weight: 700; line-height: 1.45; margin-bottom: 10px;
}
.reg-review-tool-scope .q-meta-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.reg-review-tool-scope .q-domain-tag {
  font-family: ui-monospace, monospace; font-size: 9px; color: var(--muted); letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 5px;
}
.reg-review-tool-scope .q-icon-wrap {
  width: 20px; height: 20px; border-radius: 5px; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 62, 207, 0.1); border: 1px solid rgba(0, 62, 207, 0.2);
}
.reg-review-tool-scope .q-icon-wrap svg { width: 11px; height: 11px; color: var(--accent2); }
.reg-review-tool-scope .elevated-badge {
  font-family: ui-monospace, monospace; font-size: 8px; padding: 2px 8px; border-radius: 8px;
  background: rgba(255, 204, 0, 0.1); border: 1px solid rgba(255, 204, 0, 0.3); color: var(--accent3);
  letter-spacing: 0.06em; display: none;
}

.reg-review-tool-scope .q-options { display: flex; gap: 9px; flex-wrap: wrap; }
.reg-review-tool-scope .q-btn {
  flex: 1; min-width: 120px; padding: 11px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface2); color: var(--text); font-family: ui-monospace, monospace; font-size: 11px;
  letter-spacing: 0.06em; cursor: pointer; transition: all 0.2s; font-weight: 700; text-align: left;
  line-height: 1.4;
}
.reg-review-tool-scope .q-btn:hover {
  border-color: var(--accent2); background: rgba(0, 62, 207, 0.08); transform: translateY(-1px);
}
.reg-review-tool-scope .q-btn .opt-title { display: block; font-size: 11px; margin-bottom: 2px; }
.reg-review-tool-scope .q-btn .opt-sub {
  display: block; font-size: 9px; color: var(--muted); font-weight: 400; letter-spacing: 0.02em; line-height: 1.4;
}
.reg-review-tool-scope .q-btn.sel-a,
.reg-review-tool-scope .q-btn.selected-a {
  border-color: #00d68f; background: rgba(0, 214, 143, 0.1); color: #00d68f;
}
.reg-review-tool-scope .q-btn.sel-a .opt-sub,
.reg-review-tool-scope .q-btn.selected-a .opt-sub { color: rgba(0, 214, 143, 0.7); }
.reg-review-tool-scope .q-btn.sel-b,
.reg-review-tool-scope .q-btn.selected-b {
  border-color: var(--accent4); background: rgba(245, 158, 11, 0.1); color: var(--accent4);
}
.reg-review-tool-scope .q-btn.sel-b .opt-sub,
.reg-review-tool-scope .q-btn.selected-b .opt-sub { color: rgba(245, 158, 11, 0.7); }
.reg-review-tool-scope .q-btn.sel-c,
.reg-review-tool-scope .q-btn.selected-c {
  border-color: var(--red); background: rgba(239, 68, 68, 0.1); color: var(--red);
}
.reg-review-tool-scope .q-btn.sel-c .opt-sub,
.reg-review-tool-scope .q-btn.selected-c .opt-sub { color: rgba(239, 100, 100, 0.7); }
.reg-review-tool-scope .q-btn.selected-d {
  border-color: var(--red); background: rgba(239, 68, 68, 0.14); color: var(--red);
}
.reg-review-tool-scope .q-btn.selected-d .opt-sub { color: rgba(239, 100, 100, 0.7); }

/* MODPA / school tools: yes · partial · no (same visual language as sel-a/b/c) */
.reg-review-tool-scope .q-btn.selected-yes {
  border-color: #00d68f; background: rgba(0, 214, 143, 0.1); color: #00d68f;
}
.reg-review-tool-scope .q-btn.selected-partial {
  border-color: var(--accent4); background: rgba(245, 158, 11, 0.1); color: var(--accent4);
}
.reg-review-tool-scope .q-btn.selected-no {
  border-color: var(--red); background: rgba(239, 68, 68, 0.1); color: var(--red);
}

.reg-review-tool-scope .action-bar { display: flex; justify-content: center; margin-top: 32px; }
.reg-review-tool-scope .btn-primary {
  padding: 14px 40px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  border: none; border-radius: 8px; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.95rem;
  font-weight: 700; cursor: pointer; letter-spacing: 0.02em; transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0, 62, 207, 0.25);
}
.reg-review-tool-scope .btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0, 62, 207, 0.4);
}
.reg-review-tool-scope .btn-primary:disabled {
  opacity: 0.45; cursor: not-allowed; transform: none;
  box-shadow: 0 2px 8px rgba(0, 62, 207, 0.12);
}
/* Legacy class names (CSRB, FERPA, HIPAA) — same as action-bar / btn-primary */
.reg-review-tool-scope .generate-wrap {
  display: flex; flex-direction: column; align-items: center; margin-top: 32px; gap: 10px;
}
.reg-review-tool-scope .generate-btn {
  padding: 14px 40px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  border: none; border-radius: 8px; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.95rem;
  font-weight: 700; cursor: pointer; letter-spacing: 0.02em; transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0, 62, 207, 0.25);
}
.reg-review-tool-scope .generate-btn:hover:not(:disabled) {
  transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0, 62, 207, 0.4);
}
.reg-review-tool-scope .generate-btn:disabled {
  opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none;
}
.reg-review-tool-scope .generate-note {
  font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); text-align: center;
}
.reg-review-tool-scope .incomplete-warning {
  display: none; text-align: center; font-family: ui-monospace, monospace; font-size: 11px; color: var(--red);
  margin-top: 12px; animation: rr-pulse 1s ease infinite alternate;
}

.reg-review-tool-scope .results-section,
.reg-review-tool-scope #results-section { display: none; }
.reg-review-tool-scope .score-hero {
  text-align: center; padding: 44px 32px 36px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; margin-bottom: 24px; position: relative; overflow: hidden;
}
.reg-review-tool-scope .score-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--score-color, #003ecf), transparent 70%); opacity: 0.07;
}
.reg-review-tool-scope .score-label {
  font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: 0.3em; color: var(--muted);
  text-transform: uppercase; margin-bottom: 16px;
}
.reg-review-tool-scope .gauge-wrap { display: flex; justify-content: center; margin: 20px 0; }
.reg-review-tool-scope .score-tier {
  display: inline-block; font-size: 1rem; font-weight: 700; padding: 6px 20px; border-radius: 40px;
  border: 2px solid currentColor; letter-spacing: 0.06em; margin-bottom: 16px;
}
.reg-review-tool-scope .score-summary {
  font-size: 0.93rem; color: var(--muted2); max-width: 560px; margin: 0 auto 20px; line-height: 1.7;
}
.reg-review-tool-scope .score-guidance {
  background: color-mix(in srgb, var(--card) 92%, var(--border));
  border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px; text-align: left; max-width: 580px;
  margin: 0 auto;
}
.reg-review-tool-scope .guidance-title {
  font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 0.25em; color: var(--accent4);
  text-transform: uppercase; margin-bottom: 11px;
}
.reg-review-tool-scope .guidance-item {
  display: flex; gap: 10px; margin-bottom: 8px; font-size: 0.82rem; color: var(--muted2); line-height: 1.55;
}
.reg-review-tool-scope .guidance-item:last-child { margin-bottom: 0; }
.reg-review-tool-scope .guidance-bullet { color: #00d68f; flex-shrink: 0; font-weight: 700; margin-top: 1px; }

.reg-review-tool-scope .sector-overlay { border-radius: 12px; padding: 18px 22px; margin-bottom: 22px; border: 1px solid; }

.reg-review-tool-scope .penalty-block {
  background: rgba(239, 68, 68, 0.05); border: 1px solid rgba(239, 68, 68, 0.2); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 22px;
}
.reg-review-tool-scope .penalty-title {
  font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
}
.reg-review-tool-scope .penalty-row {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; font-size: 0.8rem; color: var(--muted2);
  line-height: 1.55;
}
.reg-review-tool-scope .penalty-row:last-child { margin-bottom: 0; }
.reg-review-tool-scope .penalty-bullet { color: var(--red); flex-shrink: 0; font-weight: 700; }

.reg-review-tool-scope .section-title {
  font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: 0.3em; color: var(--accent2);
  text-transform: uppercase; margin-bottom: 14px; margin-top: 6px;
}
.reg-review-tool-scope #questions-wrap .section-header {
  display: flex; align-items: center; gap: 12px;
  margin-top: 0;
  margin-bottom: 16px;
  padding-top: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
/* Space only after the previous section’s last question card */
.reg-review-tool-scope #questions-wrap .q-card + .section-header {
  margin-top: 2.75rem;
  padding-top: 0.75rem;
}
.reg-review-tool-scope #questions-wrap .section-num {
  font-family: ui-monospace, monospace; font-size: 10px; color: var(--accent2); text-transform: uppercase;
  letter-spacing: 0.1em;
}
.reg-review-tool-scope #questions-wrap .section-title {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: normal;
  text-transform: none; margin: 0; padding: 0; border: none;
}
.reg-review-tool-scope #questions-wrap .section-bar {
  flex: 1; height: 1px; background: var(--border);
}

.reg-review-tool-scope .datamap-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px;
  margin-bottom: 22px;
}
.reg-review-tool-scope .datamap-title {
  font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 0.25em; color: var(--accent2);
  text-transform: uppercase; margin-bottom: 14px;
}
.reg-review-tool-scope .datamap-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 9px;
}
.reg-review-tool-scope .datamap-row:last-child { margin-bottom: 0; }
.reg-review-tool-scope .dm-domain { font-size: 0.8rem; font-weight: 600; width: 230px; flex-shrink: 0; }
.reg-review-tool-scope .dm-bar-wrap {
  flex: 1; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden;
}
.reg-review-tool-scope .dm-bar { height: 100%; border-radius: 3px; transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1); }
.reg-review-tool-scope .dm-pct {
  font-family: ui-monospace, monospace; font-size: 10px; color: var(--muted); width: 36px; text-align: right;
  flex-shrink: 0;
}
.reg-review-tool-scope .provision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.reg-review-tool-scope .prov-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px;
}
.reg-review-tool-scope .prov-section {
  font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: 0.15em; color: var(--accent2);
  text-transform: uppercase; margin-bottom: 4px;
}
.reg-review-tool-scope .prov-title { font-size: 0.78rem; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.reg-review-tool-scope .prov-score { font-family: ui-monospace, monospace; font-size: 1.1rem; font-weight: 700; }
.reg-review-tool-scope .prov-bar { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.reg-review-tool-scope .prov-bar-fill { height: 100%; border-radius: 2px; }

.reg-review-tool-scope .roadmap-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 22px;
  overflow: hidden;
}
.reg-review-tool-scope .roadmap-phase { border-bottom: 1px solid var(--border); }
.reg-review-tool-scope .roadmap-phase:last-child { border-bottom: none; }
.reg-review-tool-scope .phase-header {
  display: flex; align-items: center; gap: 12px; padding: 16px 22px; background: var(--surface2);
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.reg-review-tool-scope .phase-badge {
  font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 0.1em; padding: 3px 9px;
  border-radius: 20px; text-transform: uppercase; font-weight: 700; flex-shrink: 0;
}
.reg-review-tool-scope .badge-critical {
  background: rgba(239, 68, 68, 0.14); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.28);
}
.reg-review-tool-scope .badge-high {
  background: rgba(245, 158, 11, 0.14); color: var(--accent4); border: 1px solid rgba(245, 158, 11, 0.28);
}
.reg-review-tool-scope .badge-medium {
  background: rgba(0, 214, 143, 0.09); color: #00d68f; border: 1px solid rgba(0, 214, 143, 0.22);
}
.reg-review-tool-scope .phase-title { font-size: 0.92rem; font-weight: 700; }
.reg-review-tool-scope .phase-timeline {
  font-family: ui-monospace, monospace; font-size: 10px; color: var(--muted); margin-left: auto;
}
.reg-review-tool-scope .roadmap-item {
  display: flex; gap: 14px; padding: 16px 22px; border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  align-items: flex-start;
}
.reg-review-tool-scope .roadmap-item:last-child { border-bottom: none; }
.reg-review-tool-scope .r-icon {
  width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 62, 207, 0.09); border: 1px solid rgba(0, 62, 207, 0.18); flex-shrink: 0; margin-top: 1px;
}
.reg-review-tool-scope .r-icon svg { width: 14px; height: 14px; color: var(--accent2); }
.reg-review-tool-scope .item-body { flex: 1; }
.reg-review-tool-scope .item-title { font-size: 0.86rem; font-weight: 700; margin-bottom: 3px; }
.reg-review-tool-scope .item-status {
  font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 0.07em; color: var(--muted);
  margin-bottom: 7px;
}
.reg-review-tool-scope .item-action { font-size: 0.8rem; color: var(--muted2); line-height: 1.55; }
.reg-review-tool-scope .item-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.reg-review-tool-scope .ref-chip {
  font-family: ui-monospace, monospace; font-size: 9px; padding: 2px 7px; border-radius: 8px;
  background: rgba(0, 62, 207, 0.07); border: 1px solid rgba(0, 62, 207, 0.18); color: var(--accent2);
}

.reg-review-tool-scope .report-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  margin-bottom: 22px;
}
.reg-review-tool-scope .report-row { border-bottom: 1px solid var(--border); padding: 14px 22px; }
.reg-review-tool-scope .report-row:last-child { border-bottom: none; }
.reg-review-tool-scope .implication-item {
  display: flex; gap: 10px; font-size: 0.82rem; color: var(--muted2); line-height: 1.6;
}
.reg-review-tool-scope .implication-bullet { color: var(--accent4); flex-shrink: 0; font-weight: 700; margin-top: 2px; }

.reg-review-tool-scope .module-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.reg-review-tool-scope .module-chip {
  font-family: ui-monospace, monospace; font-size: 9px; padding: 4px 11px; border-radius: 20px;
  background: rgba(0, 62, 207, 0.09); border: 1px solid rgba(0, 62, 207, 0.22); color: var(--accent2);
  letter-spacing: 0.04em;
}

.reg-review-tool-scope .cta-block {
  background: linear-gradient(135deg, rgba(0, 62, 207, 0.08), rgba(255, 204, 0, 0.04));
  border: 1px solid rgba(0, 62, 207, 0.2); border-radius: 12px; padding: 30px; text-align: center;
  margin-bottom: 22px;
}
.reg-review-tool-scope .cta-block h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.reg-review-tool-scope .cta-block p {
  font-size: 0.86rem; color: var(--muted2); margin-bottom: 20px; line-height: 1.65; max-width: 500px;
  margin-left: auto; margin-right: auto;
}
.reg-review-tool-scope .btn-export {
  padding: 11px 26px; background: var(--accent); color: #fff; border: none; border-radius: 8px;
  font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.88rem; font-weight: 700; cursor: pointer;
  margin: 4px; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px;
}
.reg-review-tool-scope .btn-export:hover {
  transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 62, 207, 0.35);
}
.reg-review-tool-scope .btn-export.secondary {
  background: transparent; border: 1px solid var(--border); color: var(--muted2);
}
.reg-review-tool-scope .btn-export.secondary:hover {
  border-color: var(--accent2); color: var(--accent2); box-shadow: none;
}
.reg-review-tool-scope .restart-btn {
  font-family: ui-monospace, monospace; font-size: 10px; color: var(--muted); background: none; border: none;
  cursor: pointer; letter-spacing: 0.1em; text-decoration: underline; display: block; margin: 14px auto 0;
  transition: color 0.2s;
}
.reg-review-tool-scope .restart-btn:hover { color: var(--text); }

@media (max-width: 600px) {
  .reg-review-tool-scope .q-card { padding: 16px 18px; }
  .reg-review-tool-scope .q-options { flex-direction: column; }
  .reg-review-tool-scope .provision-grid { grid-template-columns: 1fr 1fr; }
  .reg-review-tool-scope .dm-domain { width: 160px; font-size: 0.75rem; }
}
