:root {
  color-scheme: light;
  --bg-top: #dbeafe;
  --bg-mid: #eef2ff;
  --bg-bottom: #f8fafc;
  --text: #111827;
  --muted: #475569;
  --card-bg: rgba(255, 255, 255, 0.72);
  --card-border: rgba(255, 255, 255, 0.72);
  --panel-shadow: 0 22px 55px rgba(15, 23, 42, 0.13);
  --panel-shadow-soft: 0 10px 30px rgba(30, 41, 59, 0.1);
  --focus: #1d4ed8;
  --input-border: #b8c6de;
  --link: #1741b6;
  --primary-a: #2563eb;
  --primary-b: #4f46e5;
}

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

body {
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(40rem 40rem at 9% -8%, rgba(34, 211, 238, 0.25), transparent 65%),
    radial-gradient(42rem 42rem at 93% 10%, rgba(79, 70, 229, 0.24), transparent 58%),
    linear-gradient(165deg, var(--bg-top) 0%, var(--bg-mid) 42%, var(--bg-bottom) 100%);
  color: var(--text);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}

h1,
h2,
h3,
h4 {
  margin-top: 0.6rem;
}

.page-head {
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #1e3a8a;
}

.hero-panel h1 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.lead {
  margin-bottom: 0.5rem;
  color: #27364a;
  line-height: 1.6;
  max-width: 72ch;
}

.subtle {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 12px;
}

.prevention-block {
  margin: 14px 0 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: linear-gradient(165deg, rgba(255, 251, 235, 0.92), rgba(255, 244, 214, 0.88));
}

.prevention-block h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #7c2d12;
}

.prevention-block ul {
  margin: 0;
  padding-left: 18px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #0f2f6d;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(233, 241, 255, 0.9));
  border: 1px solid rgba(196, 214, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 14px rgba(22, 78, 200, 0.11);
}

.card {
  background: linear-gradient(170deg, var(--card-bg), rgba(250, 253, 255, 0.75));
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.88), transparent);
}

.quickstart-grid .integration-item,
.integration-grid .integration-item,
.profile-item {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.84), rgba(240, 246, 255, 0.74));
  border: 1px solid rgba(206, 223, 255, 0.88);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--panel-shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.quickstart-grid .integration-item:hover,
.integration-grid .integration-item:hover,
.profile-item:hover {
  transform: translateY(-2px);
  border-color: rgba(141, 177, 255, 0.96);
  box-shadow: 0 16px 30px rgba(42, 81, 161, 0.2);
}

label {
  display: block;
  font-weight: 650;
  margin: 8px 0 6px;
}

textarea,
input,
select {
  width: 100%;
  padding: 10px;
  border-radius: 11px;
  border: 1px solid var(--input-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 251, 255, 0.94));
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea:focus-visible,
input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.22);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.triage-selector {
  border: 1px solid rgba(196, 214, 255, 0.9);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: linear-gradient(170deg, rgba(238, 246, 255, 0.86), rgba(246, 250, 255, 0.88));
}

.triage-selector legend {
  font-weight: 700;
  padding: 0 6px;
  color: #183b85;
}

.triage-selector label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
  font-weight: 550;
}

.triage-selector input[type="radio"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

button {
  margin-top: 14px;
  background: linear-gradient(135deg, var(--primary-a) 0%, var(--primary-b) 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 11px;
  padding: 11px 17px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 27px rgba(37, 99, 235, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

form button[type="submit"] {
  min-width: 240px;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.download-row a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
  padding: 2px 0;
}

.download-row a:hover {
  text-decoration: underline;
}

code {
  background: #e8efff;
  padding: 2px 5px;
  border-radius: 5px;
}

.profile-grid,
.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}

.quickstart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 12px 0 8px;
}

.profile-item h3,
.integration-item h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.profile-item p,
.integration-item p {
  margin: 6px 0;
  line-height: 1.45;
}

.profile-form,
.prompt-result {
  border-top: 1px solid rgba(200, 215, 245, 0.9);
  padding-top: 12px;
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.toggle-row label {
  margin: 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.security-note {
  background: linear-gradient(170deg, rgba(255, 242, 242, 0.96), rgba(255, 247, 247, 0.93));
  border: 1px solid #ffcaca;
  border-radius: 11px;
  padding: 10px;
}

.report h3 {
  margin-top: 18px;
}

.report h4 {
  margin-top: 14px;
  margin-bottom: 8px;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: linear-gradient(180deg, #0f172a 0%, #182543 100%);
  color: #e5edff;
  border-radius: 13px;
  padding: 14px;
  border: 1px solid #273453;
  line-height: 1.5;
}

/* ============================================================
   Lane navigation
   ============================================================ */

.lane-nav {
  display: flex;
  gap: 10px;
  padding: 14px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.lane-tab {
  margin-top: 0;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.88), rgba(240, 246, 255, 0.8));
  color: var(--muted);
  border: 1px solid rgba(196, 214, 255, 0.9);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: var(--panel-shadow-soft);
  flex: 1;
  min-width: 160px;
  text-align: left;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lane-tab:hover:not(.active) {
  border-color: var(--primary-a);
  color: var(--primary-a);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.15);
}

.lane-tab.active {
  background: linear-gradient(135deg, var(--primary-a) 0%, var(--primary-b) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.lane-tab-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.lane-tab-desc {
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.75;
  line-height: 1.3;
}

.lane-tab.active .lane-tab-desc {
  opacity: 0.88;
}

/* ============================================================
   Lane badges
   ============================================================ */

.lane-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.lane-badge--urgent {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.lane-badge--analyst {
  background: rgba(37, 99, 235, 0.1);
  color: #1741b6;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.lane-badge--builder {
  background: rgba(79, 70, 229, 0.1);
  color: #3730a3;
  border: 1px solid rgba(79, 70, 229, 0.25);
}

/* ============================================================
   Lane header cards
   ============================================================ */

.lane-header-card {
  border-left: 4px solid transparent;
}

.lane-header-urgent {
  border-left-color: #ef4444;
  background: linear-gradient(170deg, rgba(255, 249, 249, 0.85), rgba(255, 253, 253, 0.78));
}

.lane-header-analyst {
  border-left-color: var(--primary-a);
}

.lane-header-builder {
  border-left-color: #4f46e5;
}

/* ============================================================
   Scenario cards
   ============================================================ */

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 14px 0 4px;
}

.scenario-card {
  border-radius: 14px;
  padding: 14px 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  outline: none;
}

.scenario-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.28);
}

.scenario-card:hover,
.scenario-card.selected {
  transform: translateY(-2px);
}

.scenario-card--critical {
  background: linear-gradient(155deg, rgba(254, 242, 242, 0.96), rgba(255, 247, 247, 0.9));
  border-color: rgba(239, 68, 68, 0.22);
}

.scenario-card--critical:hover {
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.14);
}

.scenario-card--critical.selected {
  border-color: #ef4444;
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.22);
}

.scenario-card--high {
  background: linear-gradient(155deg, rgba(255, 247, 237, 0.96), rgba(255, 251, 245, 0.9));
  border-color: rgba(234, 88, 12, 0.22);
}

.scenario-card--high:hover {
  border-color: rgba(234, 88, 12, 0.55);
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.14);
}

.scenario-card--high.selected {
  border-color: #ea580c;
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.2);
}

.scenario-card--medium {
  background: linear-gradient(155deg, rgba(254, 252, 232, 0.96), rgba(255, 253, 243, 0.9));
  border-color: rgba(202, 138, 4, 0.22);
}

.scenario-card--medium:hover {
  border-color: rgba(202, 138, 4, 0.55);
}

.scenario-card--medium.selected {
  border-color: #ca8a04;
}

.scenario-card h3 {
  margin-top: 6px;
  margin-bottom: 4px;
  font-size: 0.97rem;
}

.scenario-guidance {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 0.84rem;
}

.scenario-actions {
  margin: 0;
  padding-left: 18px;
  font-size: 0.84rem;
  line-height: 1.55;
}

.scenario-actions li {
  margin-bottom: 4px;
}

/* ============================================================
   Scenario severity badge (on cards)
   ============================================================ */

.scenario-severity {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}

.severity-critical .scenario-severity,
.scenario-card--critical .scenario-severity {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.severity-high .scenario-severity,
.scenario-card--high .scenario-severity {
  background: rgba(234, 88, 12, 0.12);
  color: #c2410c;
}

.severity-medium .scenario-severity,
.scenario-card--medium .scenario-severity {
  background: rgba(202, 138, 4, 0.12);
  color: #854d0e;
}

/* ============================================================
   Triage severity dots (in radio lists)
   ============================================================ */

.triage-severity-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 2px;
  vertical-align: middle;
  flex-shrink: 0;
}

.triage-dot-critical { background: #ef4444; }
.triage-dot-high     { background: #ea580c; }
.triage-dot-medium   { background: #ca8a04; }

/* ============================================================
   Risk level display (in reports)
   ============================================================ */

.report-risk-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.risk-level-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.0rem;
  letter-spacing: 0.1em;
}

.risk-score-display {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.risk-base-score {
  font-size: 0.84rem;
  color: var(--muted);
}

.risk-critical {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.risk-high {
  background: rgba(234, 88, 12, 0.12);
  color: #c2410c;
  border: 1px solid rgba(234, 88, 12, 0.35);
}

.risk-medium {
  background: rgba(202, 138, 4, 0.12);
  color: #854d0e;
  border: 1px solid rgba(202, 138, 4, 0.35);
}

.risk-low {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

/* ============================================================
   Emergency report lane
   ============================================================ */

.report-emergency {
  border-left: 4px solid #ef4444;
}

.action-list {
  margin: 8px 0 14px;
  padding-left: 20px;
  line-height: 1.6;
}

.action-list li {
  margin-bottom: 6px;
}

.report-footer {
  border-top: 1px solid rgba(200, 215, 245, 0.7);
  padding-top: 12px;
  margin-top: 16px;
}

/* ============================================================
   Link button (inline)
   ============================================================ */

.link-button {
  background: none;
  border: none;
  color: var(--link);
  font-weight: 700;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  margin: 0;
  text-decoration: underline;
  box-shadow: none;
}

.link-button:hover {
  color: var(--primary-b);
  transform: none;
  box-shadow: none;
}

/* ============================================================
   Pill link variant
   ============================================================ */

.pill-link {
  text-decoration: none;
  color: #0f2f6d;
  cursor: pointer;
}

.pill-link:hover {
  text-decoration: underline;
}

.pill-urgent {
  background: linear-gradient(180deg, rgba(255, 241, 241, 0.95), rgba(255, 232, 232, 0.92));
  border-color: rgba(239, 68, 68, 0.4);
  color: #b91c1c;
}

/* ============================================================
   Case study page
   ============================================================ */

.case-section {
  line-height: 1.65;
}

.case-section p {
  margin-bottom: 0.85em;
}

.case-message-block {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(238, 246, 255, 0.92), rgba(246, 250, 255, 0.88));
  border: 1px solid rgba(196, 214, 255, 0.9);
}

.case-message-label {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.case-message {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-style: italic;
  color: #1e3a8a;
  border-left: 3px solid #2563eb;
  padding-left: 14px;
  line-height: 1.6;
}

.case-breakdown {
  margin: 14px 0;
}

.case-breakdown dt {
  font-weight: 800;
  font-size: 0.96rem;
  color: var(--text);
  margin-top: 16px;
  margin-bottom: 4px;
  font-family: "Courier New", Courier, monospace;
  background: #e8efff;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
}

.case-breakdown dd {
  margin-left: 0;
  color: #27364a;
  line-height: 1.6;
  margin-bottom: 8px;
}

.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.taxonomy-item {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.84), rgba(240, 246, 255, 0.74));
  border: 1px solid rgba(206, 223, 255, 0.88);
  border-radius: 12px;
  padding: 14px;
}

.taxonomy-item h4 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #1e3a8a;
}

.taxonomy-item p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.55;
}

.profile-flag-block {
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0;
  border: 1px solid rgba(196, 214, 255, 0.8);
}

.gatekeeper-block {
  background: linear-gradient(165deg, rgba(240, 244, 255, 0.92), rgba(246, 249, 255, 0.88));
  border-color: rgba(37, 99, 235, 0.25);
}

.streetprof-block {
  background: linear-gradient(165deg, rgba(240, 253, 244, 0.92), rgba(247, 254, 250, 0.88));
  border-color: rgba(22, 163, 74, 0.25);
}

.profile-flag-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 10px;
}

.numbered-list {
  padding-left: 22px;
  line-height: 1.65;
}

.numbered-list li {
  margin-bottom: 10px;
}

.case-live {
  border-left: 4px solid #2563eb;
}

.case-run-block {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(165deg, rgba(238, 246, 255, 0.92), rgba(246, 250, 255, 0.88));
  border-radius: 12px;
  border: 1px solid rgba(196, 214, 255, 0.9);
}

.case-run-form {
  margin-top: 12px;
}

.btn-run-case {
  background: linear-gradient(135deg, var(--primary-a), var(--primary-b));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 22px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-run-case:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.32);
}

.case-cta {
  text-align: center;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn-cta {
  display: inline-block;
  text-decoration: none;
  border-radius: 11px;
  padding: 12px 24px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-cta--primary {
  background: linear-gradient(135deg, var(--primary-a), var(--primary-b));
  color: #fff;
  border: none;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.btn-cta--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.32);
}

.btn-cta--secondary {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.92), rgba(240, 246, 255, 0.88));
  color: var(--primary-a);
  border: 1px solid rgba(196, 214, 255, 0.95);
  box-shadow: var(--panel-shadow-soft);
}

.btn-cta--secondary:hover {
  transform: translateY(-1px);
  border-color: var(--primary-a);
}

.case-footer {
  text-align: center;
  padding: 8px 0 16px;
}

/* ============================================================
   Simple entry form
   ============================================================ */

.simple-form-card {
  border: 2px solid rgba(37, 99, 235, 0.28);
  background: linear-gradient(160deg, rgba(255,255,255,0.96), rgba(238,246,255,0.92));
}

.simple-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 10px;
}

.simple-textarea {
  width: 100%;
  min-height: 130px;
  font-size: 1rem;
  border: 1.5px solid rgba(59,130,246,0.45);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255,255,255,0.98);
  resize: vertical;
}

.btn-check-for-me {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 16px auto 0;
  padding: 15px 24px;
  font-size: 1.12rem;
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 100%);
  color: #fff;
  border: none;
  box-shadow: 0 14px 30px rgba(37,99,235,0.3), inset 0 1px 0 rgba(255,255,255,0.22);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  letter-spacing: 0.01em;
}

.btn-check-for-me:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(37,99,235,0.38), inset 0 1px 0 rgba(255,255,255,0.24);
}

/* ============================================================
   Verdict banner
   ============================================================ */

.verdict-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 18px;
  margin-bottom: 18px;
  border: 2px solid transparent;
  box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}

.verdict-scam {
  background: linear-gradient(160deg, #fff1f2, #ffe4e6);
  border-color: #fca5a5;
}

.verdict-suspicious {
  background: linear-gradient(160deg, #fffbeb, #fef3c7);
  border-color: #fcd34d;
}

.verdict-safe {
  background: linear-gradient(160deg, #f0fdf4, #dcfce7);
  border-color: #86efac;
}

.verdict-icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.verdict-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.verdict-label {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.verdict-scam .verdict-label   { color: #b91c1c; }
.verdict-suspicious .verdict-label { color: #92400e; }
.verdict-safe .verdict-label   { color: #15803d; }

.verdict-score {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.verdict-why {
  margin: 6px 0 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.verdict-scam   .verdict-why { color: #7f1d1d; }
.verdict-suspicious .verdict-why { color: #78350f; }
.verdict-safe   .verdict-why { color: #14532d; }

/* ============================================================
   Plain-English report sections
   ============================================================ */

.report-simple h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 22px;
  margin-bottom: 8px;
  color: #1e293b;
  border-bottom: 1.5px solid rgba(203,213,225,0.6);
  padding-bottom: 5px;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plain-list li {
  background: rgba(248,250,255,0.92);
  border: 1px solid rgba(203,213,225,0.6);
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.5;
}

.reality-line {
  display: block;
  margin-top: 4px;
  color: #475569;
  font-size: 0.93rem;
}

.flag-list li {
  border-left: 3px solid #ef4444;
}

.flag-title {
  font-weight: 700;
  display: block;
}

.flag-detail {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 3px;
}

.short-term-details {
  margin-top: 8px;
}

.short-term-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--link);
  margin-bottom: 8px;
}

/* ============================================================
   Advanced toggle bar
   ============================================================ */

.advanced-toggle-bar {
  margin-bottom: 6px;
}

.advanced-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(170deg, rgba(243,246,255,0.9), rgba(233,242,255,0.88));
  border: 1px solid rgba(196,214,255,0.85);
  border-radius: 13px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e3a8a;
  cursor: pointer;
  margin-top: 0;
  box-shadow: var(--panel-shadow-soft);
  transition: background 0.15s;
}

.advanced-toggle-btn:hover {
  background: linear-gradient(170deg, rgba(234,242,255,0.98), rgba(224,236,255,0.95));
  transform: none;
  box-shadow: var(--panel-shadow-soft);
}

.advanced-toggle-hint {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: auto;
}

/* ============================================================
   Floating chat widget
   ============================================================ */

.chat-widget {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-fab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 100%);
  color: #fff;
  border: none;
  box-shadow: 0 12px 28px rgba(37,99,235,0.38);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s;
  margin-top: 0;
}

.chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(37,99,235,0.44);
}

.chat-fab-label {
  letter-spacing: 0.01em;
}

.chat-panel {
  width: 340px;
  max-height: 480px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg, rgba(255,255,255,0.97), rgba(245,250,255,0.96));
  border: 1px solid rgba(196,214,255,0.9);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15,23,42,0.2);
  margin-bottom: 12px;
  overflow: hidden;
}

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #1d4ed8, #4f46e5);
  color: #fff;
}

.chat-panel-title {
  font-weight: 700;
  font-size: 0.92rem;
}

.chat-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  margin: 0;
  box-shadow: none;
  min-width: unset;
}

.chat-close-btn:hover {
  color: #fff;
  transform: none;
  box-shadow: none;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 88%;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-msg p {
  margin: 0;
}

.chat-msg p + p {
  margin-top: 6px;
}

.chat-msg--user {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg--assistant {
  background: rgba(241,245,255,0.95);
  border: 1px solid rgba(203,213,225,0.7);
  color: #1e293b;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-typing {
  opacity: 0.6;
  font-style: italic;
}

.chat-no-key {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 6px !important;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(203,213,225,0.6);
}

.chat-input {
  flex: 1;
  font-size: 0.9rem;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: rgba(255,255,255,0.98);
  width: auto;
}

.chat-send-btn {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: none;
  margin-top: 0;
  min-width: unset;
}

.chat-send-btn:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 720px) {
  .container {
    padding: 20px 12px 44px;
  }

  .card {
    border-radius: 15px;
    padding: 16px;
  }

  .lane-nav {
    flex-direction: column;
  }

  .lane-tab {
    min-width: unset;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .taxonomy-grid {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    width: calc(100vw - 52px);
  }

  .verdict-banner {
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

