/* Fødevare-Compliance — pastel-tema fra Conductor mockup.html */

:root {
  --bg: #fbf8f3;
  --bg-card: #ffffff;
  --bg-soft: #f5f0e8;
  --bg-softer: #f9f5ee;
  --ink: #1a1a1f;
  --ink-soft: #6b6b75;
  --ink-faint: #a8a8b0;
  --line: #ebe5db;
  --line-soft: #f0ebe1;

  --mint: #c8eddb;
  --mint-soft: #ddf2e6;
  --mint-deep: #4ba585;
  --peach: #fcd9c2;
  --peach-soft: #fde6d4;
  --peach-deep: #d97757;
  --lavender: #ddd6f5;
  --lavender-soft: #e8e3f8;
  --lavender-deep: #7c6bc7;
  --butter: #fdebb0;
  --butter-soft: #fef3c8;
  --butter-deep: #c89a2e;
  --sky: #c9ddf2;
  --sky-soft: #dce8f5;
  --sky-deep: #4a7ab8;
  --rose: #f5cdd6;
  --rose-soft: #f8dce2;
  --rose-deep: #c45975;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -0.01em;
  min-height: 100vh;
}

.serif {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
}

a { color: var(--peach-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Layout ===== */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-title {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-sub {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint);
  color: #2d6a4f;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-deep);
  animation: breathe 2.5s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.user-chip {
  font-size: 12px;
  color: var(--ink-soft);
}
.user-chip a {
  color: var(--ink-soft);
  margin-left: 8px;
  border-bottom: 1px dotted var(--line);
}

/* ===== Stat tiles ===== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}

.stat .stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.stat .stat-value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat .stat-hint {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-faint);
}

.stat::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
}

.stat.scope::before { box-shadow: inset 0 0 0 1px var(--mint-soft); }
.stat.scope .stat-label { color: var(--mint-deep); }

.stat.findings::before { box-shadow: inset 0 0 0 1px var(--butter-soft); }
.stat.findings .stat-label { color: var(--butter-deep); }

.stat.suggestions::before { box-shadow: inset 0 0 0 1px var(--lavender-soft); }
.stat.suggestions .stat-label { color: var(--lavender-deep); }

.stat.critical::before { box-shadow: inset 0 0 0 1px var(--rose-soft); }
.stat.critical .stat-label { color: var(--rose-deep); }
.stat.critical .stat-value { color: var(--rose-deep); }

/* ===== Section ===== */

.section {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 24px;
  margin-bottom: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  font-weight: 500;
}

.section-meta {
  font-size: 11.5px;
  color: var(--ink-soft);
}

.activity-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 16px;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

.activity-empty .emoji {
  font-size: 36px;
  margin-bottom: 10px;
  opacity: 0.6;
}

.activity-list {
  list-style: none;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.activity-item:last-child { border-bottom: none; }

.activity-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.activity-dot.info { background: var(--sky-deep); }
.activity-dot.warning { background: var(--butter-deep); }
.activity-dot.critical { background: var(--rose-deep); }
.activity-dot.success { background: var(--mint-deep); }

.activity-text {
  flex: 1;
  font-size: 13.5px;
}

.activity-time {
  font-size: 11.5px;
  color: var(--ink-faint);
}

/* ===== Footer ===== */

.footer {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--ink-faint);
}

.footer .last-check {
  font-style: italic;
}

/* ===== Login ===== */

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.login-card h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.login-card .sub {
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 22px;
}

.login-card label {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 12px;
  margin-bottom: 6px;
}

.login-card input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  background: var(--bg-softer);
  color: var(--ink);
}
.login-card input:focus {
  outline: none;
  border-color: var(--peach-deep);
  background: white;
}

.login-card button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.login-card button:hover { background: var(--peach-deep); }

.login-error {
  margin-top: 14px;
  background: var(--rose-soft);
  color: var(--rose-deep);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 500;
}

/* ===== Filter row ===== */

.filter-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.filter-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.filter-row select,
.filter-row input[type=text] {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  background: var(--bg-softer);
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}
.filter-row select:focus,
.filter-row input[type=text]:focus {
  outline: none;
  border-color: var(--peach-deep);
  background: white;
}

.btn-filter {
  padding: 10px 18px;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  height: 38px;
}
.btn-filter:hover { background: var(--peach-deep); }

/* ===== Scope table ===== */

.scope-table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
}

.scope-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.scope-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.scope-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.scope-table tr:hover td {
  background: var(--bg-softer);
}

.mono { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 12.5px; }
.small { font-size: 11.5px; color: var(--ink-soft); }

.cat-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.cat-food { background: var(--mint); color: #2d6a4f; }
.cat-food_contact { background: var(--sky); color: var(--sky-deep); }

.status-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}
.status-active { background: var(--mint-soft); color: var(--mint-deep); }
.status-waiting_data { background: var(--butter-soft); color: var(--butter-deep); }
.status-paused { background: var(--bg-soft); color: var(--ink-faint); }

/* Stat tile som link */
.stat-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.stat-link:hover { text-decoration: none; }
.stat-link:hover .stat { box-shadow: 0 4px 14px rgba(0,0,0,0.05); transform: translateY(-1px); transition: all 0.15s; }

/* ===== Suggestion actions ===== */

.sug-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 6px;
}

.btn-action {
  background: white;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s;
}
.btn-action:hover {
  border-color: var(--peach-deep);
  background: var(--peach-soft);
}
.btn-approve { border-color: var(--mint-deep); color: var(--mint-deep); }
.btn-approve:hover { background: var(--mint-soft); border-color: var(--mint-deep); }
.btn-dismiss { color: var(--rose-deep); }
.btn-dismiss:hover { background: var(--rose-soft); border-color: var(--rose-deep); }

.sug-card.is-busy { opacity: 0.6; pointer-events: none; }
.sug-card.is-applied { background: var(--mint-soft); }
.sug-card.is-dismissed { opacity: 0.55; }
.sug-card.is-error summary { background: var(--rose-soft); }

.bulk-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.bulk-row p { flex: 1; min-width: 200px; margin: 0; }

.btn-trust {
  padding: 9px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
}
.btn-trust:hover { border-color: var(--peach-deep); }
.btn-trust.trusted {
  background: var(--mint);
  color: #2d6a4f;
  border-color: var(--mint-deep);
}

/* ===== Toasts ===== */

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s, transform 0.25s;
  max-width: 420px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: var(--mint-deep); }
.toast-error { background: var(--rose-deep); }
.toast-info { background: var(--ink); }

/* ===== Modal ===== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 31, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 24px;
}

.modal {
  background: white;
  border-radius: 22px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
}
.modal header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal header small { color: var(--ink-soft); font-weight: 500; }
.modal .modal-body { padding: 18px 22px; }
.modal footer { padding: 14px 22px; border-top: 1px solid var(--line); text-align: right; }
.agent-answer {
  background: var(--bg-softer);
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.6;
}

/* ===== Findings ===== */

.finding-count {
  background: var(--bg-soft);
  color: var(--ink);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.finding-skus {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.finding-sku {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  font-size: 12px;
  line-height: 1.2;
}
.finding-sku:hover {
  background: var(--peach-soft);
  border-color: var(--peach-deep);
  text-decoration: none;
}
.finding-sku .small { color: var(--ink-soft); }

.finding-more {
  font-style: italic;
  color: var(--ink-faint);
  background: transparent;
  border: 1px dashed var(--line);
  cursor: default;
  align-items: center;
  justify-content: center;
}
.finding-more:hover { background: transparent; }

/* ===== Tour page ===== */

.tour-page { max-width: 1200px; }

.tour-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 8px;
  margin-bottom: 28px;
  position: sticky;
  top: 12px;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.tour-nav a {
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.tour-nav a:hover {
  background: var(--peach-soft);
  color: var(--peach-deep);
  text-decoration: none;
}

.tour-section {
  margin-bottom: 56px;
  padding-top: 24px;
  scroll-margin-top: 80px;
}

.tour-head {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.tour-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--peach);
  color: var(--peach-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 28px;
  font-weight: 600;
}

.tour-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 6px;
}

.tour-sub {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 720px;
}

.tour-h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
  margin: 32px 0 14px;
}

.tour-stat-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.tour-stat.big {
  background: linear-gradient(135deg, var(--peach) 0%, var(--peach-soft) 100%);
  border-radius: 22px;
  padding: 24px;
}
.tour-stat.big .stat-label { color: var(--peach-deep); }
.tour-stat.big .stat-value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  margin-top: 8px;
}
.tour-stat.big .stat-hint { margin-top: 10px; color: var(--peach-deep); }

.tour-explain {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 26px;
  margin-bottom: 18px;
}
.tour-explain h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.tour-list { margin: 0 0 10px 22px; line-height: 1.7; font-size: 13.5px; }
.tour-list li { margin-bottom: 6px; }
.tour-list code { background: var(--bg-soft); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }

.tour-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}
.tour-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.tour-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--line-soft);
}

.tour-link {
  display: inline-block;
  margin-top: 16px;
  background: var(--ink);
  color: white;
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.tour-link:hover { background: var(--peach-deep); text-decoration: none; }

/* Vendor grid */
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 14px 0;
}
.vendor-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.vendor-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.vendor-count {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  margin: 6px 0 10px;
}
.vendor-detail { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.vendor-sample { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.sample-pill {
  display: inline-block;
  background: var(--bg-softer);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  margin: 3px 4px 0 0;
  font-size: 11.5px;
  font-family: 'SF Mono', Menlo, monospace;
  color: var(--ink);
  text-decoration: none;
}
.sample-pill:hover { background: var(--peach-soft); border-color: var(--peach-deep); text-decoration: none; }

/* Severity grid */
.severity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 12px;
}
.severity-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.sev-card-critical { background: var(--rose-soft); border-color: var(--rose); }
.sev-card-warning { background: var(--butter-soft); border-color: var(--butter); }
.sev-card-info { background: var(--sky-soft); border-color: var(--sky); }
.severity-card h4 { font-size: 15px; font-weight: 700; margin: 8px 0 6px; }
.severity-card p { font-size: 13px; line-height: 1.5; color: var(--ink); }

.sev-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: white;
}
.sev-card-critical .sev-badge { color: var(--rose-deep); }
.sev-card-warning .sev-badge { color: var(--butter-deep); }
.sev-card-info .sev-badge { color: var(--sky-deep); }

/* Badges in tables */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
}
.badge-crit { background: var(--rose-soft); color: var(--rose-deep); }
.badge-warn { background: var(--butter-soft); color: var(--butter-deep); }
.badge-info { background: var(--sky-soft); color: var(--sky-deep); }

/* Finding totals (3 large cards) */
.finding-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 14px 0 24px;
}
.finding-sev-critical { background: var(--rose-soft); }
.finding-sev-warning { background: var(--butter-soft); }
.finding-sev-info { background: var(--sky-soft); }

/* Score bars */
.score-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.score-bar-row {
  display: grid;
  grid-template-columns: 70px 1fr 80px;
  align-items: center;
  gap: 10px;
}
.score-bar-label { font-size: 12px; color: var(--ink-soft); font-weight: 600; text-align: right; }
.score-bar-track { background: var(--bg-soft); height: 22px; border-radius: 100px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 100px; transition: width 0.3s ease; }
.score-bar-0 { background: var(--rose-deep); }
.score-bar-10 { background: var(--rose); }
.score-bar-30 { background: var(--butter-deep); }
.score-bar-50 { background: var(--butter); }
.score-bar-70 { background: var(--mint); }
.score-bar-90 { background: var(--mint-deep); }
.score-bar-count { font-size: 12px; color: var(--ink); font-weight: 600; }

/* Security layers */
.security-layers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.layer {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  position: relative;
}
.layer-num {
  position: absolute;
  top: -12px;
  left: 16px;
  background: var(--ink);
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  font-weight: 600;
}
.layer h4 { font-size: 14px; font-weight: 700; margin: 12px 0 8px; }
.layer p { font-size: 13px; line-height: 1.5; margin-bottom: 6px; }

/* LLM grid */
.llm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.llm-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.llm-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.big-stat {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  margin: 4px 0 6px;
}
.mini-table { width: 100%; font-size: 12.5px; }
.mini-table td { padding: 4px 0; }
.mini-table td:first-child { color: var(--peach-deep); font-weight: 600; padding-right: 10px; }

/* Timeline */
.timeline {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 22px;
}
.timeline-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.timeline-row:last-child { border-bottom: none; }
.timeline-time {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--peach-deep);
}
.timeline-bar {
  background: var(--bg-softer);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
}
.timeline-bar strong { display: block; margin-bottom: 4px; }
.timeline-night { background: var(--lavender-soft); }
.timeline-divider .timeline-bar { background: transparent; padding: 4px 0; }
.timeline-divider .timeline-bar em { color: var(--ink-faint); }
.timeline-other { background: var(--bg-soft); }

/* Protected grid */
.protected-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.protected-card {
  background: var(--mint-soft);
  border: 1px solid var(--mint);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.5;
}
.protected-meta { background: var(--lavender-soft); border-color: var(--lavender); }

/* Endpoint grid */
.endpoint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 6px;
}
.endpoint-grid code {
  background: var(--bg-soft);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  display: block;
}

.tour-footer {
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .tour-stat-row { grid-template-columns: 1fr; }
  .severity-grid { grid-template-columns: 1fr; }
  .finding-totals { grid-template-columns: 1fr; }
  .llm-grid { grid-template-columns: 1fr; }
  .timeline-row { grid-template-columns: 80px 1fr; gap: 8px; }
  .tour-num { width: 44px; height: 44px; font-size: 22px; }
  .tour-title { font-size: 22px; }
}

/* ===== Shortcuts ===== */

.shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 720px) {
  .shortcuts { grid-template-columns: repeat(2, 1fr); }
}

.shortcut {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-softer);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}
.shortcut:hover {
  text-decoration: none;
  border-color: var(--peach-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.shortcut-emoji {
  font-size: 26px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 12px;
  flex-shrink: 0;
}

/* ===== Rules list ===== */

.rules-list { display: flex; flex-direction: column; gap: 6px; }

.rule {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-softer);
  overflow: hidden;
  transition: all 0.15s;
}
.rule[open] { background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }

.rule summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
}
.rule summary::-webkit-details-marker { display: none; }
.rule summary:hover { background: var(--bg-softer); }
.rule[open] summary { border-bottom: 1px solid var(--line-soft); }

.rule-id { color: var(--ink-soft); min-width: 0; flex-shrink: 0; }

.rule-text-snippet {
  color: var(--ink-soft);
  font-size: 13px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rule-body {
  padding: 14px 16px 18px;
  font-size: 13.5px;
  color: var(--ink);
}
.rule-text { line-height: 1.5; margin-bottom: 10px; }
.rule-cite { color: var(--ink-soft); margin-bottom: 10px; font-size: 12.5px; }
.rule-meta { margin-top: 10px; color: var(--ink-faint); }

.rule-dq summary {
  padding: 6px 0;
  font-size: 11.5px;
  color: var(--peach-deep);
  font-weight: 600;
  cursor: pointer;
}
.rule-dq pre {
  background: var(--bg-soft);
  padding: 10px 14px;
  border-radius: 10px;
  overflow-x: auto;
  white-space: pre;
  font-size: 11.5px;
}

.sev-critical { background: var(--rose-soft); color: var(--rose-deep); }
.sev-warning  { background: var(--butter-soft); color: var(--butter-deep); }
.sev-info     { background: var(--sky-soft); color: var(--sky-deep); }

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

@media (max-width: 720px) {
  .page { padding: 20px 16px 48px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 16px 18px; border-radius: 18px; }
  .stat .stat-value { font-size: 30px; }
  .brand-title { font-size: 22px; }
  .section { padding: 18px 18px; border-radius: 18px; }
  .footer { flex-direction: column; gap: 6px; align-items: flex-start; }
  .filter-row { grid-template-columns: 1fr 1fr; }
  .filter-row .btn-filter { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr 1fr; }
}
