html {
  color-scheme: dark;
  background: #0a0a0a;
}

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface2: #1c1c1c;
  --border: #2a2a2a;
  --text: #f5f5f5;
  --muted: #8a8a8a;
  --accent: #009393;
  --accent-hover: #00b3b3;
  --accent-soft: rgba(0, 147, 147, 0.12);
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

header:not(.report-card-head) { margin-bottom: 2.5rem; }
.logo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.logo span {
  background: linear-gradient(135deg, var(--accent), #00cfcf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}
.brand-lockup:hover { opacity: 0.92; }
.brand-icon {
  display: block;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
}
.breadcrumb-brand {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}
.breadcrumb-sep {
  color: var(--muted);
  margin: 0 0.35rem;
}
.tagline { color: var(--muted); margin-top: 0.25rem; }

h2 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--text); }
h3 { font-size: 0.95rem; margin: 1rem 0 0.5rem; }

.upload-card, .panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.hint { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; }

.dropzone {
  display: block;
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 2.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 1rem;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone svg { color: var(--muted); margin-bottom: 0.75rem; }
.dropzone-label { font-weight: 600; }
.dropzone-sub { color: var(--muted); font-size: 0.85rem; }
.file-name { color: var(--accent); font-size: 0.9rem; margin-top: 0.5rem; font-weight: 500; }

.capture-options {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: left;
}
.capture-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.device-status { margin: 0.5rem 0 0 1.5rem; font-size: 0.82rem; }
.device-status.status-ok { color: var(--green); }
.device-status.status-warn { color: var(--yellow); }
.capture-advanced { margin-top: 0.75rem; font-size: 0.88rem; }
.capture-advanced summary { cursor: pointer; color: var(--accent); margin-bottom: 0.5rem; }
.capture-hint { font-size: 0.8rem; margin: 0.5rem 0; }
.capture-field { display: block; margin: 0.75rem 0; font-size: 0.85rem; }
.capture-field input { margin-left: 0.5rem; width: 4rem; }
.geo-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.geo-chip {
  font-size: 0.78rem;
  padding: 0.25rem 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
.geo-chip-primary { border-color: var(--accent); }

/* Geo picker — token bar + inline add pill */
.geo-picker { margin-top: 0; }
.geo-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.geo-picker-title { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.geo-picker-count {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}
.geo-picker-hint { margin: 0.45rem 0 0; font-size: 0.78rem; }
.geo-tag-row,
.geo-token-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}
.geo-selected-tags {
  display: contents;
}
.geo-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.45rem 0.28rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  font-size: 0.78rem;
  line-height: 1.2;
}
.geo-tag-flag { font-size: 0.95rem; line-height: 1; }
.geo-tag-label { font-weight: 500; }
.geo-tag-code {
  font-size: 0.68rem;
  opacity: 0.75;
  font-family: var(--mono, ui-monospace, monospace);
}
.geo-tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.1rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}
.geo-tag-remove:hover { background: rgba(255,255,255,0.16); }
.geo-add-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.75rem 0.28rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--border);
  background: transparent;
  min-width: 6.5rem;
  flex: 0 1 auto;
  max-width: 14rem;
  transition: border-color 0.15s, background 0.15s;
}
.geo-add-pill:focus-within {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-soft);
}
.geo-add-pill.hidden { display: none; }
.geo-search-icon {
  flex-shrink: 0;
  color: var(--muted);
  pointer-events: none;
}
.geo-add-pill:focus-within .geo-search-icon { color: var(--accent); }
.geo-search-input {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  outline: none;
  padding: 0.3rem 0.15rem;
  min-width: 5.5rem;
  flex: 1;
  width: 100%;
}
.geo-search-input::placeholder { color: var(--muted); }
.geo-search-input::-webkit-search-cancel-button { cursor: pointer; }
.geo-suggest-panel {
  margin-top: 0.35rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}
.geo-suggest-panel.hidden { display: none; }
.geo-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 9.5rem;
  overflow-y: auto;
  padding: 0.1rem;
}
.geo-pill-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, opacity 0.15s;
}
.geo-pill-option:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.geo-pill-option.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  opacity: 0.55;
  cursor: default;
}
.geo-pill-option.is-hidden { display: none; }
.geo-pill-option:disabled:not(.is-selected) {
  opacity: 0.35;
  cursor: not-allowed;
}
.geo-pill-flag { font-size: 1rem; line-height: 1; }
.geo-pill-text { font-weight: 500; }
.geo-pill-code {
  font-size: 0.65rem;
  opacity: 0.65;
  font-family: var(--mono, ui-monospace, monospace);
}
.geo-limit-msg { font-size: 0.85rem; margin-top: 0.35rem; }

.geo-capture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.geo-capture-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}
.geo-capture-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.geo-capture-header h3 { margin: 0; font-size: 1rem; }
.geo-screenshot {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #000;
}
.geo-screenshot-link { display: block; margin-bottom: 0.75rem; }
.geo-screenshot-missing { font-size: 0.85rem; margin: 0.5rem 0; }
.geo-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.geo-tab {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
}
.geo-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.geo-report-panel {
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 0.75rem;
  background: var(--surface);
}
.geo-report-panel.active { display: block; }
.geo-persona-block { margin: 0.75rem 0; padding: 0.75rem; background: var(--bg); border-radius: var(--radius); }
.geo-probe-block { margin: 0.75rem 0; }
.geo-probe-card {
  margin: 0.85rem 0;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  border-left: 3px solid var(--accent);
}
.geo-probe-card--warn {
  border-left-color: var(--yellow);
  background: rgba(234, 179, 8, 0.05);
}
.geo-probe-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}
.geo-probe-head h4 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
}
.geo-egress-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  font-size: 0.85rem;
  margin-bottom: 0.55rem;
}
.geo-egress-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.geo-probe-note { font-size: 0.85rem; margin: 0.35rem 0 0.55rem; }
.geo-probe-url { font-size: 0.78rem; word-break: break-all; margin-bottom: 0.5rem; }
.geo-probe-attempts,
.geo-probe-raw,
.html-preview-block,
.net-call-section {
  margin-top: 0.65rem;
  font-size: 0.85rem;
}
.geo-probe-attempts summary,
.geo-probe-raw summary,
.html-preview-block summary,
.net-call-section summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
}
.geo-probe-attempt {
  padding: 0.45rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}
.response-summary {
  padding: 0.55rem 0.65rem;
  margin: 0.5rem 0;
  background: rgba(0, 147, 147, 0.06);
  border-radius: 8px;
  font-size: 0.85rem;
}
.response-summary p { margin: 0.2rem 0; }
.html-preview-frame {
  display: block;
  width: 100%;
  min-height: 220px;
  max-height: 420px;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.probe-preview {
  font-size: 0.75rem;
  max-height: 16rem;
  overflow: auto;
  padding: 0.65rem;
  margin-top: 0.45rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  white-space: pre-wrap;
  word-break: break-word;
}
.traffic-log { margin-top: 0.85rem; font-size: 0.85rem; }
.traffic-log > summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.traffic-log-table-wrap { overflow-x: auto; margin-top: 0.5rem; max-height: 320px; overflow-y: auto; }
.net-call-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.65rem;
}
.net-call {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
}
.net-call--warn { border-color: rgba(234, 179, 8, 0.35); }
.net-call-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.8rem;
}
.net-call-summary::-webkit-details-marker { display: none; }
.net-call-method {
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--accent);
  min-width: 2.5rem;
}
.net-call-status {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 2rem;
}
.net-call-status.is-ok { color: var(--green); }
.net-call-status.is-error { color: var(--yellow); }
.net-call-host { font-size: 0.78rem; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }
.net-call-path { font-size: 0.75rem; flex: 1; min-width: 4rem; overflow: hidden; text-overflow: ellipsis; }
.net-call-type { font-size: 0.72rem; margin-left: auto; }
.net-call-body {
  padding: 0.65rem 0.85rem 0.85rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}
.net-call-url-line {
  font-size: 0.76rem;
  word-break: break-all;
  margin-bottom: 0.45rem;
}
.net-call-meta { font-size: 0.75rem; margin-bottom: 0.45rem; }
.traffic-preview { font-size: 0.75rem; max-width: 220px; word-break: break-all; }
.device-persona { margin: 0.5rem 0 0.75rem; padding: 0.5rem 0.75rem; background: rgba(0,0,0,0.2); border-radius: 6px; font-size: 0.82rem; }
.persona-ua { font-size: 0.72rem; word-break: break-all; line-height: 1.4; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; width: 100%; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-secondary {
  display: block;
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; margin-top: 0.25rem; }

.file-input-hidden {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.dropzone-sub { color: var(--muted); font-size: 0.8rem; margin-top: 0.35rem; }
.dropzone-sub strong { color: var(--text); font-weight: 600; }

.progress-panel { padding: 1.5rem 0; text-align: left; }
.progress-panel-wide { max-width: 100%; }
.progress-bar-wrap {
  background: var(--surface2);
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #00cfcf);
  border-radius: 8px;
  transition: width 0.4s ease;
}
.progress-panel {
  margin-top: 1rem;
}
.progress-page {
  text-align: center;
  padding-top: 3rem;
}
.progress-page .brand-lockup.logo {
  justify-content: center;
}
.progress-page .brand-lockup.logo span {
  font-size: 2rem;
}
.progress-page .progress-panel-wide {
  max-width: 720px;
  margin: 2rem auto;
}

.page-progress {
  min-height: 100vh;
  overflow: hidden;
}

.page-progress .container {
  position: fixed;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(calc(100vw - 2.5rem), 30rem);
  z-index: 160;
  padding: 0;
  margin: 0;
}

.page-progress .progress-header {
  margin-bottom: 1.25rem;
  opacity: 0.55;
}

.page-progress .progress-panel-scan {
  background: var(--surface);
  border: 1px solid rgba(0, 147, 147, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  box-shadow:
    0 0 0 1px rgba(0, 147, 147, 0.22),
    0 0 48px rgba(0, 147, 147, 0.12),
    0 32px 64px rgba(0, 0, 0, 0.55);
  text-align: center;
  margin: 0;
}

.page-progress .progress-stage {
  font-size: 1.05rem;
  font-weight: 600;
}

.page-progress .progress-message {
  display: none;
}
.live-preview {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}
.live-preview-identity { margin-bottom: 0.75rem; }
.live-preview-identity-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.live-preview-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.72rem;
  object-fit: cover;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
}
.live-preview-icon--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #c4b5fd;
}
.live-preview-identity-copy { min-width: 0; flex: 1; }
.live-preview-title { font-weight: 700; font-size: 1.05rem; }
.live-preview-meta { font-size: 0.85rem; margin-top: 0.2rem; }
.live-preview-developer { font-size: 0.8rem; margin-top: 0.15rem; }
.live-preview-stats {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.live-preview-section { margin-top: 0.85rem; }
.live-preview-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.live-preview-caption { font-size: 0.85rem; margin: 0 0 0.5rem; }
.live-preview-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.live-preview-device { align-items: flex-start; }
.live-preview-figure {
  margin: 0;
  flex: 1 1 140px;
  max-width: 220px;
}
.live-preview-figure figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
  text-align: center;
}
.live-preview-shot {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #000;
}
.live-preview-device-shot { max-height: 360px; }
.live-preview-verdict p { font-size: 0.9rem; margin: 0.25rem 0; }

.progress-stage { font-weight: 600; font-size: 1rem; margin-bottom: 0.25rem; }
.progress-message { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }
.progress-message[hidden] { display: none; }
.progress-steps {
  list-style: none;
  text-align: left;
  max-width: 280px;
  margin: 0 auto;
  font-size: 0.85rem;
}
.progress-steps li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  color: var(--muted);
  position: relative;
}
.progress-steps li::before {
  content: '○';
  position: absolute;
  left: 0;
  color: var(--border);
}
.progress-steps li.active { color: var(--accent); font-weight: 600; }
.progress-steps li.active::before { content: '●'; color: var(--accent); }
.progress-steps li.done { color: var(--green); }
.progress-steps li.done::before { content: '✓'; color: var(--green); }

.alert { padding: 0.75rem 1rem; border-radius: 8px; margin-top: 1rem; font-size: 0.9rem; }
.alert-error { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }

.loading { text-align: center; padding: 2rem; color: var(--muted); }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

.source-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.source-tab {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.source-tab.active {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.bundle-field { display: block; margin-bottom: 0.75rem; }
.bundle-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.bundle-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
}
.bundle-input:focus {
  outline: none;
  border-color: var(--accent);
}
.bundle-hint { font-size: 0.82rem; margin-top: 0; }
.package-preview { font-size: 0.85rem; margin-top: 0.75rem; color: var(--green); }

.reports-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.report-card-wrap {
  position: relative;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.report-card-wrap:hover { border-color: var(--accent); }
.report-card-wrap--high {
  border-color: rgba(239, 68, 68, 0.42);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.07) 0%, var(--surface2) 48px);
}
.report-card-wrap--medium {
  border-color: rgba(234, 179, 8, 0.38);
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.06) 0%, var(--surface2) 48px);
}
.report-card-wrap--low {
  border-color: rgba(34, 197, 94, 0.22);
}
.report-card-wrap--high:hover { border-color: rgba(239, 68, 68, 0.65); }
.report-card-wrap--medium:hover { border-color: rgba(234, 179, 8, 0.55); }
.report-card-wrap--low:hover { border-color: rgba(34, 197, 94, 0.45); }
.report-card {
  display: block;
  padding: 1rem 2.25rem 0.85rem 1.15rem;
  text-decoration: none;
  color: var(--text);
}
.btn-delete {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-delete-icon {
  width: 14px;
  height: 14px;
}
.btn-delete:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.45);
  color: var(--red);
}
.btn-delete:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.btn-delete-inline {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: transparent;
  color: #fca5a5;
  border-radius: 6px;
  padding: 0.2rem 0.65rem;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.btn-delete-inline:hover { background: rgba(239, 68, 68, 0.15); }
.report-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.55rem;
  padding-right: 1.5rem;
}
.report-package {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
  word-break: break-all;
}
.report-version { flex-shrink: 0; }
.report-threat {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.report-card-wrap--high .report-threat.badge-high,
.report-card-wrap--high .report-threat.badge-medium,
.report-card-wrap--high .report-threat.badge-low {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}
.report-card-wrap--medium .report-threat.badge-high,
.report-card-wrap--medium .report-threat.badge-medium,
.report-card-wrap--medium .report-threat.badge-low {
  background: rgba(234, 179, 8, 0.16);
  color: #fde68a;
}
.report-card-wrap--low .report-threat.badge-high,
.report-card-wrap--low .report-threat.badge-medium,
.report-card-wrap--low .report-threat.badge-low {
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}
.report-verdict {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 0.55rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.report-stats { display: flex; gap: 1rem; font-size: 0.85rem; color: var(--muted); }
.report-date { font-size: 0.75rem; color: var(--muted); margin-top: 0.45rem; }
.report-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}
.report-dl-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.06);
}
.report-dl-link:hover { border-color: var(--accent); background: rgba(99, 102, 241, 0.12); }

.report-related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.55rem 1.15rem 0.65rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 147, 147, 0.04);
}
.report-related-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-right: 0.15rem;
}
.report-related-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  max-width: 100%;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 147, 147, 0.25);
  background: rgba(0, 147, 147, 0.08);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.report-related-main {
  line-height: 1.25;
}
.report-related-why {
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
  max-width: 18rem;
}
.report-related-link:hover { border-color: var(--accent); background: rgba(0, 147, 147, 0.14); }
.report-related-link--detail { cursor: zoom-in; }
.report-related-proof {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fde68a;
  margin-left: 0.25rem;
}

.related-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.related-detail-modal[hidden] {
  display: none;
}

.related-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.related-detail-dialog {
  position: relative;
  width: min(100%, 42rem);
  max-height: min(90dvh, 720px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.related-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.related-detail-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.related-detail-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}

.related-detail-close {
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
}

.related-detail-body {
  padding: 1rem 1.15rem;
  overflow-y: auto;
  flex: 1;
}

.related-detail-score {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.related-detail-score-ring {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  border: 2px solid rgba(0, 147, 147, 0.45);
  background: rgba(0, 147, 147, 0.12);
  color: #99f6e4;
}

.related-detail-score-ring--high {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

.related-detail-verdict {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.related-detail-proof {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.related-detail-signals {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.related-detail-signal {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.related-detail-signal-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.related-detail-signal-points {
  color: #99f6e4;
  font-size: 0.78rem;
}

.related-detail-signal-detail {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.45;
}

.related-detail-signal-where {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

.related-detail-signal-items {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.72rem;
}

.related-detail-signal-items code {
  word-break: break-all;
}

.related-detail-reasons,
.related-detail-signals-wrap {
  margin-top: 1rem;
}

.related-detail-reasons ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.related-detail-pair {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
}

.related-detail-loading-lead {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

.related-detail-context {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.related-detail-context ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
}

.related-detail-disclaimer {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

.related-detail-evidence {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.related-detail-evidence-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.related-detail-evidence-head {
  margin: 0;
  padding: 0.5rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.related-detail-evidence-note {
  margin: 0;
  padding: 0.35rem 0.65rem 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

.related-detail-code-list {
  list-style: none;
  margin: 0;
  padding: 0.45rem 0.55rem 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.related-detail-code-list li {
  margin: 0;
}

.related-detail-code-list code,
.related-detail-kv-value {
  display: inline-block;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  font-size: 0.74rem;
  line-height: 1.35;
  background: rgba(0, 147, 147, 0.1);
  border: 1px solid rgba(0, 147, 147, 0.22);
  color: #b2f5ea;
  word-break: break-all;
}

.related-detail-kv {
  margin: 0;
  padding: 0.45rem 0.65rem 0.55rem;
}

.related-detail-kv-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.5rem;
  padding: 0.28rem 0;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.related-detail-kv-row:last-child {
  border-bottom: none;
}

.related-detail-kv-label {
  color: var(--muted);
}

.related-detail-tech-list {
  list-style: none;
  margin: 0;
  padding: 0.45rem 0.65rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.related-detail-tech-row {
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.related-detail-tech-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.related-detail-tech-id {
  font-size: 0.72rem;
  color: var(--muted);
}

.related-detail-tech-detail {
  margin: 0.25rem 0 0;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.4;
}

.related-detail-text {
  margin: 0;
  padding: 0.55rem 0.65rem;
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.45;
}

.related-detail-foot .btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.related-detail-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem 1rem;
  border-top: 1px solid var(--border);
}

.settings-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.65rem;
  font-size: 0.92rem;
}

.section-lead {
  font-size: 0.86rem;
  margin: -0.35rem 0 1rem;
  max-width: 52ch;
}
.operator-clusters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}
.operator-cluster-card {
  border: 1px solid rgba(234, 179, 8, 0.28);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: rgba(234, 179, 8, 0.04);
}
.operator-cluster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.operator-cluster-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fde68a;
}
.operator-cluster-host {
  font-size: 0.72rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 10rem;
}
.operator-cluster-keys {
  font-size: 0.74rem;
  margin: 0 0 0.5rem;
}
.operator-cluster-members {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
}
.operator-cluster-members li { margin-bottom: 0.25rem; }
.operator-cluster-members a { color: var(--accent); text-decoration: none; }
.operator-cluster-members a:hover { text-decoration: underline; }

.runtime-ui-panel { border-color: rgba(0, 147, 147, 0.32); }

/* ── Killer features: disguise proof, remote config, invisible channels, JS miner ── */
.disguise-proof-panel {
  border-color: rgba(139, 92, 246, 0.35);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(0, 147, 147, 0.04));
}
.disguise-proof-panel--confirmed,
.disguise-proof-panel--likely {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.07), rgba(139, 92, 246, 0.04));
}
.disguise-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 900px) {
  .disguise-proof-grid { grid-template-columns: 1fr; }
}
.disguise-proof-col {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  background: rgba(0, 0, 0, 0.15);
}
.disguise-proof-col h3 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #888);
}
.disguise-proof-status {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}
.disguise-proof-col--disguised .disguise-proof-status,
.disguise-proof-col--mismatch .disguise-proof-status,
.disguise-proof-col--confirmed .disguise-proof-status { color: #f87171; }
.disguise-proof-headline { font-weight: 600; margin: 0 0 0.35rem; font-size: 0.9rem; }
.disguise-proof-shots {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}
.disguise-proof-shot {
  max-width: 120px;
  max-height: 160px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
}
.remote-config-panel { border-color: rgba(59, 130, 246, 0.35); }
.invisible-channel-panel { border-color: rgba(245, 158, 11, 0.35); }
.invisible-channel-panel--alert {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(245, 158, 11, 0.04);
}
.js-bundle-panel { border-color: rgba(16, 185, 129, 0.32); }

.runtime-ui-panel--alert {
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.04);
}
.runtime-ui-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.runtime-ui-head h2 { margin: 0; font-size: 1rem; }
.runtime-ui-scores {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.runtime-ui-shot {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #111;
}
.runtime-ui-cap p { font-size: 0.74rem; margin: 0.35rem 0 0; }

.artifact-list { list-style: none; margin: 0; padding: 0; }
.artifact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}
.artifact-item:first-child { border-top: none; padding-top: 0; }
.artifact-info { display: flex; flex-direction: column; gap: 0.15rem; }
.artifact-info .muted { font-size: 0.82rem; }
.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  width: auto;
}
.nav-download {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.nav-download:hover { text-decoration: underline; }
.cli-section h3 { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Report page */
.page-report {
  --report-toolbar-sticky-offset: 7.25rem;
  --report-nav-w: 13.5rem;
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--report-nav-w);
  gap: 1.75rem;
  align-items: start;
}

.report-main {
  min-width: 0;
}

.report-nav {
  position: sticky;
  top: var(--report-toolbar-sticky-offset, 7.25rem);
  align-self: start;
  max-height: calc(100dvh - var(--report-toolbar-sticky-offset, 7.25rem) - 1.25rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-left: 0.35rem;
  border-left: 1px solid var(--border);
}

.report-nav-label {
  margin: 0 0 0.65rem;
  padding-left: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.report-toc {
  position: static;
  z-index: auto;
  margin: 0;
  padding: 0 0 0.5rem;
  border: none;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.report-toc-inner {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.85rem;
  align-items: stretch;
}

.report-toc-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.report-toc-chapter {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 0.45rem;
}

.report-toc-links {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.report-toc-link {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.22rem 0.45rem;
  border-left: 2px solid transparent;
  line-height: 1.35;
  border-radius: 0 6px 6px 0;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.report-toc-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.report-toc-link.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
}

.report-toc-group.is-empty {
  display: none;
}

@media (max-width: 960px) {
  .report-layout {
    grid-template-columns: 1fr;
  }

  .report-nav {
    position: static;
    max-height: none;
    order: -1;
    padding: 0 0 1rem;
    margin-bottom: 0.5rem;
    border-left: none;
    border-bottom: 1px solid var(--border);
  }

  .report-toc-inner {
    max-height: 12rem;
    overflow-y: auto;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(16, 16, 16, 0.92);
  }
}

.report-chapter-head {
  margin: 2.5rem 0 1.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.report-chapter-head:first-of-type {
  margin-top: 0.5rem;
  border-top: none;
  padding-top: 0;
}

.report-chapter-title {
  margin: 0.15rem 0 0;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.report-toolbar {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.page-report .report-toolbar {
  position: sticky;
  top: 0;
  z-index: 120;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding: 0.75rem 1.5rem 1rem;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.page-report .brief-toc {
  top: var(--report-toolbar-sticky-offset);
}

.report-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.report-toolbar-start,
.report-toolbar-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.report-toolbar-end {
  flex-shrink: 0;
}

.report-toolbar-brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
}

.report-toolbar-brand:hover {
  opacity: 0.92;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-icon:hover {
  background: var(--surface);
  border-color: var(--muted);
}

.btn-icon:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-back {
  color: var(--muted);
}

.btn-back:hover {
  color: var(--text);
  border-color: rgba(0, 147, 147, 0.35);
  background: var(--accent-soft);
}

.btn-icon-danger {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
}

.btn-icon-danger:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
  color: var(--red);
}

.report-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: flex-start;
}

.toolbar-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.toolbar-group-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.toolbar-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.toolbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.toolbar-pill:hover {
  background: var(--surface);
  border-color: rgba(0, 147, 147, 0.35);
  color: var(--accent-hover);
}

.toolbar-pill-accent {
  border-color: rgba(0, 147, 147, 0.35);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.toolbar-pill-accent:hover {
  background: rgba(0, 147, 147, 0.2);
  border-color: var(--accent);
}

.toolbar-pill-download .toolbar-pill-meta {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.toolbar-pill-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.breadcrumb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.breadcrumb a:not(.breadcrumb-brand) { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .breadcrumb-brand { color: var(--text); text-decoration: none; }
.breadcrumb .breadcrumb-brand:hover { opacity: 0.92; text-decoration: none; }
.nav-links { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.report-toolbar .auth-bar {
  margin: 0;
  justify-content: flex-end;
}

.report-toolbar .auth-name {
  max-width: 10rem;
}

@media (max-width: 640px) {
  .report-toolbar-row {
    flex-wrap: wrap;
  }

  .report-toolbar-end {
    width: 100%;
    justify-content: space-between;
  }

  .report-toolbar .auth-name {
    display: none;
  }
}

.report-header { margin-bottom: 1.5rem; }
.report-header h1 { font-size: 1.5rem; }

.report-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.report-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.report-footer-icon {
  flex-shrink: 0;
}

.report-footer-name {
  font-weight: 600;
  color: var(--accent-bright, var(--accent));
}

.report-footer-url {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

.report-footer-url:hover {
  text-decoration: underline;
}

.report-footer-meta {
  margin: 0;
  font-size: 0.78rem;
}

.page-report--pdf-full .report-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.page-report--pdf-full .report-footer-url {
  color: var(--accent-bright, #00cfcf);
  text-decoration: none;
}
.subtitle { color: var(--muted); font-size: 0.9rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}
.stat-card-link {
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.stat-card-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}
.stat-card-link:active { transform: translateY(0); }
.stat-card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.section-flash {
  animation: section-flash 1.2s ease;
}
@keyframes section-flash {
  0%, 100% { box-shadow: none; }
  30% { box-shadow: 0 0 0 2px var(--accent), 0 0 24px rgba(99, 102, 241, 0.25); }
}
.stat-value { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.8rem; color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 500; font-size: 0.8rem; }

.badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--surface2);
  color: var(--muted);
}
.badge-high { background: #166534; color: #bbf7d0; }
.badge-medium { background: #854d0e; color: #fef08a; }
.badge-low { background: #374151; color: #d1d5db; }
.badge-analytics { background: #1e3a5f; color: #93c5fd; }
.badge-ads { background: #7c2d12; color: #fdba74; }
.badge-push { background: #312e81; color: #c4b5fd; }
.badge-auth { background: #064e3b; color: #6ee7b7; }
.badge-gaming { background: #4a044e; color: #f0abfc; }
.badge-network { background: #1e3a5f; color: #93c5fd; }

.mono { font-family: 'SF Mono', Monaco, monospace; font-size: 0.8rem; word-break: break-all; color: #a5b4fc; }
.muted { color: var(--muted); }
.ok { color: var(--green); }
.warn { color: var(--yellow); }

.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 2rem; }
.kv { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 0.35rem 0; border-bottom: 1px solid var(--border); }
.kv-key { color: var(--muted); }

.host-block { margin-bottom: 1rem; }
.url-list { list-style: none; }
.url-list li { padding: 0.3rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.perm-list { list-style: none; columns: 2; gap: 1rem; }
.perm-list li { font-size: 0.85rem; padding: 0.2rem 0; color: var(--muted); }

.risk-list { list-style: none; }
.risk-list li { padding: 0.4rem 0; font-size: 0.9rem; }
.impersonation-alert {
  border: 2px solid rgba(239, 68, 68, 0.55);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(251, 191, 36, 0.08));
  margin-bottom: 1.5rem;
}
.impersonation-alert-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.impersonation-alert-header h2 { margin: 0; color: #fca5a5; }
.impersonation-message {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fecaca;
  margin: 0 0 1rem;
}
.impersonation-explanation {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.homoglyph-compare {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  flex-wrap: wrap;
}
.homoglyph-box {
  flex: 1;
  min-width: 200px;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.homoglyph-deceptive {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
}
.homoglyph-latin {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.25);
}
.homoglyph-box-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.homoglyph-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.homoglyph-char {
  background: rgba(239, 68, 68, 0.35);
  border-bottom: 2px wavy #ef4444;
  padding: 0 0.1em;
  border-radius: 3px;
}
.homoglyph-arrow {
  align-self: center;
  font-size: 1.5rem;
  color: var(--muted);
}
.homoglyph-code {
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.highlight-impersonation {
  color: #fca5a5;
  font-weight: 600;
  list-style: none;
  margin-left: -1.2rem;
  padding: 0.5rem 0.75rem;
  background: rgba(239, 68, 68, 0.12);
  border-left: 3px solid #ef4444;
  border-radius: 0 6px 6px 0;
}
.flow-detail-row td { background: rgba(99, 102, 241, 0.06); border-top: none; padding-top: 0; }
.flow-code-logic { padding: 0.75rem 0 0.5rem 1rem; border-left: 3px solid var(--accent); }
.flow-steps { margin: 0.5rem 0 0; padding-left: 1.25rem; font-size: 0.88rem; }
.flow-steps li { margin-bottom: 0.5rem; }
.flow-locations { font-size: 0.78rem; margin-top: 0.25rem; }

.report-section--featured {
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: linear-gradient(165deg, rgba(99, 102, 241, 0.08) 0%, rgba(15, 23, 42, 0.4) 55%);
  border-radius: 14px;
  padding: 1.25rem 1.35rem 1.5rem;
}

.gray-flow-pattern {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.gray-flow-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.25rem 0;
}

.gray-flow-step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
}

.gray-flow-step-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gray-flow-step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.45);
}

.gray-flow-step--bootstrap .gray-flow-step-num { background: rgba(56, 189, 248, 0.15); border-color: rgba(56, 189, 248, 0.45); color: #bae6fd; }

.bootstrap-highlight {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.08);
}
.bootstrap-highlight--webview-asset {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(59, 130, 246, 0.1);
}
.bootstrap-highlight-title {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: #fde68a;
}
.bootstrap-highlight--webview-asset .bootstrap-highlight-title {
  color: #93c5fd;
}

.chain-picture-track { margin: 1.25rem 0; }
.chain-picture-step {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  background: rgba(0,0,0,0.15);
}
.chain-picture-step--confirmed { border-color: rgba(52, 211, 153, 0.35); }
.chain-picture-step--hypothesized { border-color: rgba(251, 191, 36, 0.35); }
.chain-picture-step--blocked { border-color: rgba(248, 113, 113, 0.4); }
.chain-picture-step--pending { border-color: rgba(96, 165, 250, 0.35); }
.chain-picture-marker { display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start; }
.chain-picture-num {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent, #38bdf8);
}
.chain-picture-body h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.chain-comes-next { margin-top: 0.65rem; font-size: 0.9rem; color: #bae6fd; }
.chain-picture-arrow {
  text-align: center;
  color: var(--muted, #94a3b8);
  font-size: 1.25rem;
  margin: 0.25rem 0;
}
.chain-narrative { margin: 0.75rem 0 1rem; font-size: 0.88rem; line-height: 1.5; }
.gray-flow-step--parse .gray-flow-step-num { background: rgba(251, 191, 36, 0.15); border-color: rgba(251, 191, 36, 0.45); color: #fde68a; }
.gray-flow-step--build_url .gray-flow-step-num { background: rgba(244, 114, 182, 0.15); border-color: rgba(244, 114, 182, 0.45); color: #fbcfe8; }
.gray-flow-step--webview .gray-flow-step-num { background: rgba(52, 211, 153, 0.15); border-color: rgba(52, 211, 153, 0.45); color: #a7f3d0; }
.gray-flow-step--gate .gray-flow-step-num { background: rgba(248, 113, 113, 0.15); border-color: rgba(248, 113, 113, 0.45); color: #fecaca; }

.gray-flow-backward {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.06);
}

.gray-flow-backward-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 650;
  color: #fde68a;
}

.gray-flow-track--backward {
  margin-top: 0.85rem;
}

.gray-flow-step--backward .gray-flow-step-title {
  font-size: 0.92rem;
}

.gray-flow-backward-actions {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gray-flow-backward-actions h4 {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.gray-flow-beacon {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.06);
}

.gray-flow-beacon h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.gray-flow-step-body {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gray-flow-step-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.gray-flow-step-detail {
  margin: 0;
  color: var(--muted, #b0b8c4);
  font-size: 0.92rem;
  line-height: 1.5;
}

.gray-flow-code {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.82rem;
  overflow-x: auto;
}

.gray-flow-tags code,
.gray-flow-meta code {
  font-size: 0.82rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.12);
}

.gray-flow-meta { margin: 0.45rem 0 0; font-size: 0.85rem; }
.gray-flow-substeps { margin: 0.55rem 0 0; padding-left: 1.2rem; font-size: 0.86rem; }
.gray-flow-substeps li { margin-bottom: 0.35rem; }
.gray-flow-evidence { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.85rem; color: var(--muted); }
.gray-flow-verified { margin: 0.55rem 0 0; font-size: 0.82rem; font-weight: 600; }
.gray-flow-verified--ok { color: var(--green, #34d399); }
.gray-flow-verified--warn { color: var(--yellow, #fbbf24); }

.gray-flow-connector {
  width: 2px;
  height: 1rem;
  margin-left: 1.15rem;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.5), rgba(99, 102, 241, 0.1));
  border-radius: 2px;
}

.gray-flow-recipe,
.gray-flow-geo {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gray-flow-recipe h3,
.gray-flow-geo h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.kv--wide { grid-column: 1 / -1; }

.stat-card--accent {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.08);
}

.stat-card--accent .stat-value { color: #c7d2fe; }

.highlight-impersonation::before {
  content: "! ";
  color: #f87171;
  font-weight: 700;
}
.risk-warn { color: var(--yellow); }
.risk-ok { color: var(--green); }
.risk-danger { color: var(--red); }

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .kv-grid { grid-template-columns: 1fr; }
  .perm-list { columns: 1; }
}

.recommendation {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #a5b4fc;
}
.panel-highlight { border-color: var(--accent); }

/* Report page — content + right nav */
.page-report .container {
  max-width: 1180px;
}

.report-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem 1.45rem 1.45rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.report-section--plain {
  border-color: var(--border);
}

.report-section > h2,
.report-section-title {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.report-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.report-section-head .report-section-title {
  margin: 0;
  padding: 0;
  border: none;
}

.report-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.report-section-meta {
  font-size: 0.75rem;
  white-space: nowrap;
  margin: 0;
}

.report-lead {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #c8c8c8;
  margin: 0 0 1.1rem;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.025);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.report-subnote {
  font-size: 0.82rem;
  margin: -0.35rem 0 0.75rem;
}

.report-subtitle,
.report-section h3 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.35rem 0 0.65rem;
}

.report-table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin: 0;
}

.report-table th {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.report-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: top;
  line-height: 1.45;
}

.report-table tbody tr:last-child td {
  border-bottom: none;
}

.report-table tbody tr:hover {
  background: rgba(0, 147, 147, 0.04);
}

.report-inline-code,
.report-section code {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.78em;
  padding: 0.12em 0.35em;
  background: rgba(165, 180, 252, 0.1);
  border-radius: 4px;
  color: #c4b5fd;
}

.report-code-block {
  font-size: 0.78rem;
  line-height: 1.5;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.report-callout {
  margin: 0.75rem 0;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--accent);
  background: rgba(0, 147, 147, 0.06);
  color: #d4d4d4;
  border-radius: 0 8px 8px 0;
}

.finding-list {
  list-style: none;
  margin: 0.5rem 0 1rem;
  padding: 0;
}

.finding-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #d6d6d6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.finding-list li:last-child {
  border-bottom: none;
}

.finding-list:not(.finding-list--ordered) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.finding-list--ordered {
  counter-reset: finding;
  padding-left: 0;
}

.finding-list--ordered li {
  counter-increment: finding;
  padding-left: 1.75rem;
}

.finding-list--ordered li::before {
  content: counter(finding);
  position: absolute;
  left: 0;
  top: 0.48rem;
  width: 1.2rem;
  height: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
}

.report-section .risk-list li {
  padding: 0.45rem 0 0.45rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.report-section .kv-grid {
  margin-bottom: 0.75rem;
}

.mo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.mo-card {
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.02);
}

.mo-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.mo-card h4 {
  margin: 0.75rem 0 0.5rem;
  font-size: 0.9rem;
  color: var(--muted, #9aa0a6);
}

.mo-card--architecture {
  border-color: rgba(96, 165, 250, 0.25);
}

.mo-card--vertical {
  border-color: rgba(251, 191, 36, 0.2);
}

.mo-summary {
  margin-top: 0.5rem;
}

.device-picker-section {
  margin: 1rem 0 1.25rem;
}

.device-picker-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--muted, #9aa0a6);
}

.device-picker-select {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font-size: 0.9rem;
}

.device-picker-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
}

.re-steps {
  list-style: decimal;
  padding-left: 1.25rem;
}

.re-download-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}

.report-section .kv {
  padding: 0.5rem 0;
}

.device-picker-hint {
  margin-top: 0.35rem;
  font-size: 0.78rem;
}

.device-readiness {
  margin: 0.75rem 0 0.25rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.device-readiness.is-ready {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.06);
}

.device-readiness.is-warn {
  border-color: rgba(234, 179, 8, 0.35);
  background: rgba(234, 179, 8, 0.06);
}

.device-readiness.is-off {
  border-color: rgba(255, 255, 255, 0.08);
}

.device-readiness-title {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
}

.device-readiness-msg {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.live-capture-alert {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  border-color: rgba(234, 179, 8, 0.35);
  background: rgba(234, 179, 8, 0.06);
}

.live-capture-alert p {
  margin: 0 0 0.5rem;
}

.live-capture-alert p:last-child {
  margin-bottom: 0;
}

/* Analyst Briefing */
.ai-briefing-section {
  border-color: rgba(0, 147, 147, 0.35);
  background: linear-gradient(180deg, rgba(0, 147, 147, 0.05) 0%, var(--surface) 120px);
  overflow: visible;
}

.ai-briefing-shell {
  margin-top: 0.25rem;
  max-width: 100%;
  overflow: visible;
}

.ai-briefing-layout {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  max-width: 100%;
}

.ai-briefing-main {
  min-width: 0;
  max-width: 100%;
}

.brief-toc {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0;
}

.brief-toc-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.brief-toc-link {
  display: block;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.brief-toc-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.brief-toc-link.is-active {
  color: var(--accent-hover);
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.brief-hero {
  margin-bottom: 1rem;
  max-width: 100%;
}

.brief-hero-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.brief-section {
  margin-bottom: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  max-width: 100%;
}

.brief-section-head {
  margin: 0;
  padding: 0.48rem 1rem;
  background: rgba(0, 147, 147, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brief-section-head h2,
.brief-section-heading {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0;
  padding: 0;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.brief-section-body {
  padding: 0 1rem 0.75rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #d4d4d4;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

/* Flush first block under section title — no inherited top margins */
.brief-section-body > :first-child {
  margin-top: 0;
}

.brief-section-body .finding-list {
  margin-top: 0;
  margin-bottom: 0;
}

.brief-section-body .finding-list li {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.brief-section-body .finding-list:not(.finding-list--ordered) li::before {
  top: 0.58rem;
}

.brief-section-body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0.65rem 0;
  width: 100%;
  max-width: 100%;
}

.brief-section-body .report-inline-code {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.brief-section-body .report-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 0.5rem 0;
}

.brief-section-body p {
  margin: 0 0 0.55rem;
}

.brief-section-body h3,
.brief-section-body .report-subtitle {
  margin: 0.75rem 0 0.4rem;
}

.brief-section-body ul:not(.finding-list),
.brief-section-body ol:not(.finding-list) {
  margin: 0 0 0.55rem;
  padding-left: 1.25rem;
}

.brief-section-body p:last-child {
  margin-bottom: 0;
}

.brief-section-body strong {
  color: var(--text);
  font-weight: 600;
}

.ai-briefing-body {
  font-size: 0.9rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

@media (max-width: 760px) {
  .ai-briefing-layout {
    grid-template-columns: 1fr;
  }

  .brief-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  .brief-toc-label {
    width: 100%;
  }

  .brief-toc-link {
    font-size: 0.72rem;
    border-left: none;
    border: 1px solid var(--border);
  }

  .brief-toc-link.is-active {
    border-color: var(--accent);
  }
}

.screenshot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}
.screenshot-grid img {
  max-height: 180px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.locale-cover-hint {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.85rem;
}

.locale-cover-story {
  margin: 0.5rem 0 1rem;
}

.locale-cover-table tbody tr.locale-cover-row {
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.locale-cover-table tbody tr.locale-cover-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.locale-cover-table tbody tr.locale-cover-row.is-active {
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.locale-cover-label {
  font-weight: 600;
}

.locale-cover-detail {
  margin-top: 1rem;
  padding: 1.1rem 1.15rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  animation: locale-cover-in 0.28s ease;
}

@keyframes locale-cover-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.locale-cover-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.locale-cover-detail-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.locale-cover-detail-link {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.locale-cover-detail-link:hover {
  text-decoration: underline;
}

.locale-cover-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.55rem 1rem;
  margin-bottom: 0.85rem;
}

.locale-cover-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.84rem;
}

.locale-cover-meta-key {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.locale-cover-summary {
  margin: 0 0 0.75rem;
  color: var(--text);
  line-height: 1.5;
}

.locale-cover-description-wrap {
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
}

.locale-cover-description {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-wrap;
}

.locale-cover-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.locale-cover-shots img {
  max-height: 200px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #111;
}

.locale-cover-empty {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}

.locale-cover-errors {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.config-delivery-panel { border-color: rgba(234, 179, 8, 0.35); }
.store-disguise-alert {
  border: 1px solid rgba(234, 179, 8, 0.38);
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.25rem;
  background: rgba(234, 179, 8, 0.05);
}
.store-disguise-alert--high {
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.06);
}
.store-disguise-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.store-disguise-head h2 {
  font-size: 1rem;
  margin: 0;
}
.store-disguise-compare {
  margin: 0.75rem 0;
}

/* Play Store rejection risk */
.store-rejection-panel {
  border-color: rgba(234, 179, 8, 0.32);
}
.store-rejection-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 0.85rem;
}
.store-rejection-head h2 {
  margin: 0 0 0.35rem;
}
.store-rejection-overall {
  flex-shrink: 0;
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 7rem;
}
.store-rejection-overall--critical {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.1);
}
.store-rejection-overall--high {
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.08);
}
.store-rejection-overall--medium {
  border-color: rgba(234, 179, 8, 0.4);
  background: rgba(234, 179, 8, 0.07);
}
.store-rejection-overall--low,
.store-rejection-overall--minimal {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.06);
}
.store-rejection-pct {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.store-rejection-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 0.25rem;
}
.store-rejection-summary {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #c8c8c8;
  margin: 0 0 1rem;
}
.store-rejection-signals {
  margin: 0.4rem 0 0;
  padding-left: 1rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted);
}
.store-rejection-signals li {
  margin-bottom: 0.2rem;
}
.store-rejection-prob-cell {
  min-width: 9rem;
  white-space: nowrap;
}
.prob-bar-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.35rem;
}
.prob-bar {
  height: 100%;
  border-radius: 999px;
  min-width: 2px;
}
.prob-bar--critical { background: linear-gradient(90deg, #dc2626, #ef4444); }
.prob-bar--high { background: linear-gradient(90deg, #ea580c, #f97316); }
.prob-bar--medium { background: linear-gradient(90deg, #ca8a04, #eab308); }
.prob-bar--low { background: linear-gradient(90deg, #16a34a, #22c55e); }
.prob-bar--minimal { background: rgba(148, 163, 184, 0.55); }
.prob-bar-value {
  font-size: 0.82rem;
  font-weight: 700;
}
.prob-bar-value--critical { color: #fca5a5; }
.prob-bar-value--high { color: #fdba74; }
.prob-bar-value--medium { color: #fde68a; }
.prob-bar-value--low { color: #bbf7d0; }
.prob-bar-value--minimal { color: var(--muted); }
.store-rejection-row--critical td:first-child + td strong { color: #fecaca; }
.store-rejection-row--high td:first-child + td strong { color: #fed7aa; }

.config-channel-block { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.config-channel-block h3 { margin-bottom: 0.5rem; }
/* Case file summary — readable executive block */
.summary-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.summary-panel--hero {
  border-color: rgba(0, 147, 147, 0.35);
}

.summary-panel--hero.summary-panel--high,
.summary-panel.summary-panel--high {
  border-color: rgba(239, 68, 68, 0.4);
}

.summary-panel--hero.summary-panel--medium,
.summary-panel.summary-panel--medium {
  border-color: rgba(234, 179, 8, 0.38);
}

.summary-hero {
  padding: 1.35rem 1.5rem 1.25rem;
  background: linear-gradient(180deg, rgba(0, 147, 147, 0.07) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.threat-gauge {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1rem;
}

.threat-gauge-ring {
  --threat-pct: 0;
  flex-shrink: 0;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: conic-gradient(
    var(--threat-ring-color, #22c55e) calc(var(--threat-pct) * 1%),
    rgba(255, 255, 255, 0.08) 0
  );
  position: relative;
}

.threat-gauge-ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--surface);
}

.threat-gauge-value,
.threat-gauge-of {
  position: relative;
  z-index: 1;
  line-height: 1;
}

.threat-gauge-value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.threat-gauge-of {
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.threat-gauge--high { --threat-ring-color: #ef4444; }
.threat-gauge--medium { --threat-ring-color: #eab308; }
.threat-gauge--low { --threat-ring-color: #22c55e; }

.threat-gauge-meta {
  min-width: 0;
  flex: 1;
}

.threat-gauge-lead {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #d4d4d4;
  margin: 0.45rem 0 0;
}

.threat-gauge .summary-risk {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.threat-gauge--high .summary-risk {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

.threat-gauge--medium .summary-risk {
  background: rgba(234, 179, 8, 0.16);
  color: #fde68a;
}

.threat-gauge--low .summary-risk {
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.threat-drivers {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.threat-drivers li {
  font-size: 0.76rem;
  line-height: 1.35;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c4c4c4;
}

.summary-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.summary-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary-risk {
  flex-shrink: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.summary-verdict {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.summary-lead {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #c4c4c4;
  max-width: 62ch;
  margin-bottom: 1rem;
}

.summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-meta div {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.summary-meta dt {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-meta dd {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.summary-grid--single {
  grid-template-columns: 1fr;
}

.summary-block {
  padding: 1.15rem 1.5rem 1.25rem;
  border-right: 1px solid var(--border);
}

.summary-grid--single .summary-block,
.summary-grid .summary-block:last-child {
  border-right: none;
}

.summary-block--actions {
  background: rgba(255, 255, 255, 0.015);
}

.summary-block-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.summary-evidence {
  list-style: none;
  margin: 0;
  padding: 0;
}

.summary-evidence li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.15rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #d4d4d4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.summary-evidence li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-evidence li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.summary-evidence li.is-critical {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
  margin: 0 -0.5rem;
  padding-left: 1.65rem;
  padding-right: 0.5rem;
  border-radius: 6px;
  border-bottom-color: transparent;
}

.summary-evidence li.is-critical::before {
  background: var(--red);
  top: 0.85rem;
}

.summary-actions {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: summary-step;
}

.summary-actions li {
  counter-increment: summary-step;
  position: relative;
  padding: 0.5rem 0 0.5rem 1.85rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #d4d4d4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.summary-actions li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-actions li::before {
  content: counter(summary-step);
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
}

@media (max-width: 720px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .summary-block {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .summary-grid .summary-block:last-child {
    border-bottom: none;
  }
}

/* ── Home page (Tether-inspired) ── */
.page-home {
  --recent-float-w: clamp(280px, 26vw, 340px);
  --home-header-h: 4.25rem;
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 147, 147, 0.15), transparent);
  min-height: 100vh;
  min-height: 100dvh;
}

.page-home:not(.page-landing) {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.page-home .home-landing-stage {
  width: 100%;
}

.page-home .page-shell {
  max-width: none;
  margin: 0;
  padding: 0;
  height: 100%;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-home .site-header {
  flex-shrink: 0;
  height: var(--home-header-h);
  box-sizing: border-box;
  margin-bottom: 0;
  padding: 0 clamp(1.25rem, 3vw, 2rem);
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.page-home .site-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  justify-content: flex-start;
}

.page-home .home-stage {
  flex: 1;
  display: block;
  min-height: 0;
  max-height: calc(100dvh - var(--home-header-h));
  overflow: hidden;
}

.page-home.horus-signed-in:has(.home-recent-float) .hero-main {
  padding-right: calc(var(--recent-float-w) + 1.75rem);
}

.page-home .home-recent-float {
  position: fixed;
  top: calc(var(--home-header-h) + 0.85rem);
  right: clamp(0.75rem, 2vw, 1.25rem);
  bottom: 0.85rem;
  width: var(--recent-float-w);
  z-index: 90;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  background: color-mix(in srgb, var(--surface) 88%, #0a0a0a);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.page-home .hero-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  padding: clamp(0.75rem, 2vh, 2rem) clamp(1.25rem, 3vw, 2.5rem);
  min-width: 0;
  min-height: min(18rem, 42vh);
  max-height: 100%;
  overflow: hidden;
}

.page-home .home-center {
  width: min(100%, 440px);
  max-height: 100%;
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.page-home .home-recent {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.page-home .home-recent-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.home-recent-count {
  flex-shrink: 0;
  min-width: 1.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.page-home .home-recent-head .section-title {
  margin: 0;
  padding: 0;
  position: static;
  background: none;
}

.page-home .home-recent-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.85rem 1rem 1.25rem;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.page-home .operator-clusters-section--sidebar {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.page-home .operator-clusters-section--sidebar .section-title {
  margin-bottom: 0.65rem;
}

.page-home .operator-clusters-grid--sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.page-home .operator-clusters-section--inline {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.page-home .operator-clusters-grid--inline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.page-home .operator-clusters-section--inline .operator-cluster-card,
.page-home .operator-clusters-grid--sidebar .operator-cluster-card {
  padding: 0.75rem;
  font-size: 0.85rem;
}

.page-home .home-recent .reports-grid--sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
}

.page-home .home-recent .report-card-wrap {
  flex: 0 0 auto;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-left-style: solid;
  background: var(--surface2);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  --rc-pad-x: 0.75rem;
  --rc-pad-y: 0.55rem;
  --rc-pad-right: 0.75rem;
}

.page-home .home-recent .report-card-wrap:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.page-home .home-recent .report-card-wrap--high {
  border-color: var(--border);
  border-left-color: rgba(239, 68, 68, 0.75);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, var(--surface2) 38%);
}

.page-home .home-recent .report-card-wrap--medium {
  border-color: var(--border);
  border-left-color: rgba(234, 179, 8, 0.7);
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.04) 0%, var(--surface2) 38%);
}

.page-home .home-recent .report-card-wrap--low {
  border-color: var(--border);
  border-left-color: rgba(34, 197, 94, 0.5);
}

.page-home .home-recent .report-card-wrap--high:hover {
  border-color: rgba(239, 68, 68, 0.28);
  border-left-color: rgba(239, 68, 68, 0.85);
}

.page-home .home-recent .report-card-wrap--medium:hover {
  border-color: rgba(234, 179, 8, 0.25);
  border-left-color: rgba(234, 179, 8, 0.85);
}

.page-home .home-recent .report-card-wrap--low:hover {
  border-color: rgba(34, 197, 94, 0.22);
  border-left-color: rgba(34, 197, 94, 0.65);
}

.page-home .home-recent .report-card {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  height: auto;
  padding: var(--rc-pad-y) var(--rc-pad-right) var(--rc-pad-y) var(--rc-pad-x);
}

.page-home .home-recent .report-card > * + * {
  margin-top: 0;
}

.page-home .home-recent .report-card-head {
  margin: 0;
  padding: 0;
  padding-right: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.page-home .home-recent .report-card-head-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.page-home .home-recent .report-card-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page-home .home-recent .report-card-icon--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #c4b5fd;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.22), rgba(255, 255, 255, 0.04));
}

.page-home .home-recent .report-card-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .home-recent .report-card-subline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  min-width: 0;
  padding-left: calc(2rem + 0.4rem);
  font-size: 0.6rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.48);
}

.page-home .home-recent .report-card-subline-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .home-recent .report-card-subline .report-card-bundle,
.page-home .home-recent .report-card-subline .report-card-developer-name {
  display: inline;
  white-space: nowrap;
}

.page-home .home-recent .report-card-subline .report-card-bundle {
  color: var(--muted);
}

.page-home .home-recent .report-card-subline .report-card-bundle + .report-card-developer-name::before {
  content: " · ";
  opacity: 0.45;
}

.page-home .home-recent .report-card-subline .report-store-inline {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 600;
  color: #93c5fd;
  text-decoration: none;
  white-space: nowrap;
}

.page-home .home-recent .report-card-subline .report-store-inline:hover {
  text-decoration: underline;
}

.page-home .home-recent .report-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.page-home .home-recent .report-threat-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  margin-right: 0.1rem;
}

.page-home .home-recent .report-threat-pill .report-threat-score {
  display: inline;
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.page-home .home-recent .report-threat-pill .report-threat-score:not(:last-child)::after {
  content: "·";
  margin: 0 0.15rem;
  font-weight: 500;
  opacity: 0.55;
}

.page-home .home-recent .report-threat-pill .report-threat-label {
  font-size: inherit;
  padding: 0;
  text-transform: inherit;
  letter-spacing: inherit;
  background: none;
}

.page-home .home-recent .report-threat-pill.badge-high {
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.14);
}

.page-home .home-recent .report-threat-pill.badge-medium {
  color: #fde68a;
  border: 1px solid rgba(234, 179, 8, 0.32);
  background: rgba(234, 179, 8, 0.12);
}

.page-home .home-recent .report-threat-pill.badge-low {
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.1);
}

.page-home .home-recent .report-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
}

.page-home .home-recent .report-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.36rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  line-height: 1.2;
}

.page-home .home-recent .report-chip--bundle {
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.1);
}

.page-home .home-recent .report-chip--version {
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
}

.page-home .home-recent .report-chip--genre {
  color: #d9f99d;
  border-color: rgba(163, 230, 53, 0.28);
  background: rgba(163, 230, 53, 0.08);
}

.page-home .home-recent .report-chip--installs {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
}

.page-home .home-recent .report-chip--code {
  font-weight: 500;
  font-size: 0.62rem;
}

.page-home .home-recent .report-verdict {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-home .home-recent .report-card-foot {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.28rem;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-home .home-recent .report-card-stats {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
}

.page-home .home-recent .report-stat {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.2rem 0.2rem;
  font-size: 0.56rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.14);
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.page-home .home-recent .report-stat:first-child {
  border-radius: 6px 0 0 6px;
}

.page-home .home-recent .report-stat:last-child {
  border-right: none;
  border-radius: 0 6px 6px 0;
}

.page-home .home-recent .report-stat strong {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.page-home .home-recent .report-card-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  flex-shrink: 0;
}

.page-home .home-recent .report-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  flex-shrink: 0;
}

.page-home .home-recent .report-downloads-inline {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.page-home .home-recent .report-dl-link {
  font-size: 0.64rem;
  padding: 0.14rem 0.42rem;
  border-radius: 5px;
  border: 1px solid rgba(0, 147, 147, 0.25);
  background: rgba(0, 147, 147, 0.08);
}

.page-home .home-recent .report-date-time {
  opacity: 0.85;
}

.page-home .home-recent .report-date-time::before {
  content: "·";
  margin-right: 0.35rem;
  opacity: 0.5;
}

.page-home .home-recent .report-related {
  padding: 0.55rem var(--rc-pad-x) var(--rc-pad-y);
}

@media (hover: none) {
  .page-home .home-recent .btn-delete {
    opacity: 0.5;
  }
}

.page-home .home-recent .btn-delete {
  top: 0.4rem;
  right: 0.4rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 7px;
  opacity: 0;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.55);
}

.page-home .home-recent .report-card-wrap:hover .btn-delete,
.page-home .home-recent .btn-delete:focus-visible {
  opacity: 1;
}

.page-home .home-recent .btn-delete:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.page-home .home-recent .report-card-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding-right: 1.75rem;
}

.page-home .home-recent .report-package {
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: normal;
}

.page-home .hero-copy {
  text-align: center;
  margin-bottom: clamp(0.85rem, 2vh, 1.75rem);
}

.page-home .hero-lead {
  max-width: 28rem;
  margin: 0 auto;
}

.field-ops-banner {
  max-width: 36rem;
  margin: 0 auto 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  font-size: 0.88rem;
}

.field-ops-banner--ready {
  border-color: rgba(76, 175, 125, 0.35);
  background: rgba(76, 175, 125, 0.08);
}

.field-ops-banner--warn {
  border-color: rgba(255, 180, 80, 0.45);
  background: rgba(255, 180, 80, 0.08);
}

.field-ops-banner-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.field-ops-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb450;
  flex-shrink: 0;
}

.field-ops-banner--ready .field-ops-banner-dot {
  background: #4caf7d;
}

.field-ops-banner-msg {
  margin: 0;
  line-height: 1.45;
}

.field-ops-banner-meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}

body.is-analyzing .field-ops-banner {
  display: none;
}

@media (max-height: 760px) {
  .page-home .hero-title {
    font-size: 1.45rem;
    margin-bottom: 0.35rem;
  }

  .page-home .hero-lead {
    font-size: 0.92rem;
  }

  .page-home .hero-copy {
    margin-bottom: 0.75rem;
  }

  .page-home .hero-card {
    padding: 1rem;
  }

  .page-home .dropzone {
    padding: 1.25rem 1rem;
  }
}

.page-home .brand-lockup.site-brand .brand-icon {
  width: 28px;
  height: 28px;
}

.page-home .hero-body {
  width: 100%;
  display: flex;
  justify-content: center;
}

.page-home .hero-title {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.65rem;
}

.page-home .hero-lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 920px) {
  .page-home {
    height: auto;
    max-height: none;
    overflow: auto;
  }

  .page-home .page-shell {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .page-home .home-stage {
    max-height: none;
    overflow: visible;
  }

  .page-home.horus-signed-in:has(.home-recent-float) .hero-main {
    padding-right: clamp(1.25rem, 3vw, 2.5rem);
    padding-bottom: calc(min(46vh, 22rem) + 1.25rem);
  }

  .page-home .hero-main {
    padding: 1.5rem 1.25rem 1rem;
    max-height: none;
    overflow: visible;
  }

  .page-home .home-center {
    max-height: none;
    overflow: visible;
  }

  .page-home .home-recent-float {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    top: auto;
    bottom: 0.75rem;
    width: auto;
    max-height: min(46vh, 22rem);
    border-radius: 16px;
  }

  .page-home .home-recent-list {
    max-height: min(38vh, 18rem);
  }
}

.page-home .hero-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.page-home .hero-card.is-analyzing {
  border-color: rgba(0, 147, 147, 0.35);
  box-shadow:
    0 0 0 1px rgba(0, 147, 147, 0.22),
    0 0 48px rgba(0, 147, 147, 0.12),
    0 32px 64px rgba(0, 0, 0, 0.55);
  padding-bottom: 0.65rem;
  position: relative;
  z-index: 160;
  width: min(100%, 30rem);
  margin: 0 auto;
  animation: scanner-card-rise 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-analyzing .hero-card.is-analyzing {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(calc(100vw - 2.5rem), 30rem);
  min-height: min(31rem, calc(100vh - 11rem));
  max-height: calc(100vh - 10rem);
  overflow-y: auto;
  overflow-x: hidden;
  animation: scanner-card-focus 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes scanner-card-focus {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 24px)) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes scanner-card-rise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.page-home .source-tabs {
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.page-home .source-tab {
  flex: 1;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
}

.page-home .source-tab.active {
  background: var(--surface2);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.page-home .dropzone {
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 2.25rem 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.page-home .dropzone-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.page-home .dropzone-label {
  font-size: 1rem;
  font-weight: 600;
}

.page-home .dropzone-sub {
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

.page-home .multi-geo-section {
  margin: 1rem 0 0.5rem;
  font-size: 0.85rem;
}

.page-home .options-fold {
  margin: 1rem 0 0.5rem;
  font-size: 0.85rem;
}

.page-home .options-fold summary {
  cursor: pointer;
  color: var(--muted);
  padding: 0.35rem 0;
  list-style: none;
}

.page-home .options-fold summary::-webkit-details-marker { display: none; }

.page-home .options-fold summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.15s;
}

.page-home .options-fold[open] summary::before {
  transform: rotate(90deg);
}

.page-home .capture-options {
  margin-top: 0.75rem;
  padding: 0;
  background: transparent;
  border: none;
}

.page-home .btn-primary {
  border-radius: var(--radius-pill);
  margin-top: 1rem;
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.page-home .btn-primary:disabled {
  opacity: 0.35;
}

.page-home .analysis-view {
  text-align: center;
  padding: 1.25rem 1rem 0.35rem;
  min-height: 26rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.page-home .analysis-progress-track {
  position: relative;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 1rem;
}

.page-home .analysis-ring-wrap {
  margin: 0 auto 1rem;
  width: fit-content;
}

.page-home .analysis-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.page-home .analysis-ring-orbit {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(0, 147, 147, 0.08) 40deg,
    var(--accent) 120deg,
    rgba(0, 147, 147, 0.08) 200deg,
    transparent 360deg
  );
  animation: analysis-orbit-spin 2.8s linear infinite;
  opacity: 0.55;
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}

.page-home .analysis-ring-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 147, 147, 0.18) 0%, transparent 70%);
  animation: analysis-glow-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

.page-home .analysis-view.is-stalled .analysis-ring-orbit {
  animation-duration: 1.4s;
  opacity: 0.85;
}

.page-home .analysis-view.is-stalled .analysis-ring-glow {
  animation-duration: 1.2s;
}

.page-home .analysis-view.is-complete .analysis-ring-orbit,
.page-home .analysis-view.is-failed .analysis-ring-orbit,
.page-home .analysis-view.is-failed .analysis-ring-glow {
  animation: none;
}

.page-home .analysis-view.is-failed .analysis-progress-shimmer {
  animation: none;
  opacity: 0;
}

.page-home .analysis-view.is-failed .analysis-stage {
  color: var(--danger, #e55353);
}

.page-home .analysis-view.is-failed .analysis-activity-dots span {
  animation: none;
  opacity: 0.35;
}

.page-home .error-toast {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 30;
  pointer-events: none;
}

.page-home .error-toast.is-visible {
  pointer-events: auto;
  animation: error-toast-in 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-home .error-toast-bubble {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  max-height: min(11rem, 38vh);
  padding: 0.85rem 0.75rem 0.85rem 1rem;
  background: rgba(22, 10, 12, 0.94);
  border: 1px solid rgba(239, 68, 68, 0.42);
  border-radius: 14px;
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(239, 68, 68, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fecaca;
  font-size: 0.82rem;
  line-height: 1.45;
}

.page-home .error-toast-msg {
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  word-break: break-word;
  text-align: left;
}

.page-home .error-toast-icon {
  flex-shrink: 0;
  color: #f87171;
  margin-top: 0.05rem;
  display: flex;
}

.page-home .error-toast-dismiss {
  flex-shrink: 0;
  align-self: flex-start;
  width: 1.65rem;
  height: 1.65rem;
  margin: -0.15rem -0.1rem 0 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #fca5a5;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.15s, background 0.15s;
}

.page-home .error-toast-dismiss:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.14);
}

@keyframes error-toast-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.page-home .analysis-view.is-complete .analysis-ring-orbit,
.page-home .analysis-view.is-complete .analysis-ring-glow,
.page-home .analysis-view.is-complete .analysis-logo {
  animation-play-state: paused;
}

.page-home .analysis-ring-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.page-home .analysis-ring-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 6;
}

.page-home .analysis-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.55s ease;
  filter: drop-shadow(0 0 6px rgba(0, 147, 147, 0.35));
}

.page-home .analysis-logo {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  object-fit: cover;
  animation: analysis-logo-breathe 2.2s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.page-home .analysis-percent {
  display: block;
  margin-top: 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-home .analysis-stage {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  min-height: 2.85em;
  line-height: 1.425;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 0.35rem;
}

.page-home .analysis-detail {
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
  min-height: 1.35rem;
  line-height: 1.35;
}

.page-home .analysis-detail.is-empty {
  visibility: hidden;
}

.page-home .analysis-detail[hidden] { display: block; visibility: hidden; }

.page-home .analysis-activity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.85rem;
  min-height: 1.25rem;
}

.page-home .analysis-activity-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.page-home .analysis-activity-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: analysis-dot-bounce 1.2s ease-in-out infinite;
}

.page-home .analysis-activity-dots span:nth-child(2) { animation-delay: 0.15s; }
.page-home .analysis-activity-dots span:nth-child(3) { animation-delay: 0.3s; }

.page-home .analysis-activity-text.hint-changed {
  animation: analysis-hint-in 0.35s ease;
}

.page-home .analysis-progress-fill {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width 0.55s ease;
}

.page-home .analysis-progress-shimmer {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

.page-home .analysis-view.is-stalled .analysis-progress-shimmer {
  opacity: 1;
  animation: analysis-bar-shimmer 1.4s ease-in-out infinite;
}

.page-home .analysis-view.is-running:not(.is-stalled) .analysis-progress-shimmer {
  opacity: 0.45;
  animation: analysis-bar-shimmer 2.4s ease-in-out infinite;
}

.page-home .analysis-steps-crawl {
  max-width: 20rem;
  margin: 0.15rem auto 0.65rem;
}

.page-home .analysis-steps-viewport {
  position: relative;
  height: 7.25rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 12%,
    #000 28%,
    #000 72%,
    rgba(0, 0, 0, 0.35) 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 12%,
    #000 28%,
    #000 72%,
    rgba(0, 0, 0, 0.35) 88%,
    transparent 100%
  );
}

.page-home .analysis-steps-track {
  will-change: transform;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-home .analysis-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.page-home .analysis-steps li {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.35;
  padding: 0.12rem 0.35rem;
  border: none;
  background: transparent;
  text-align: center;
  white-space: nowrap;
  transition:
    color 0.45s ease,
    opacity 0.45s ease,
    transform 0.45s ease,
    text-shadow 0.45s ease,
    filter 0.45s ease;
}

.page-home .analysis-steps li::before { content: none; }

.page-home .analysis-steps li.pending {
  color: rgba(161, 161, 170, 0.38);
  opacity: 0.55;
  transform: scale(0.94);
  filter: blur(0.2px);
}

.page-home .analysis-steps li.active {
  color: var(--accent);
  font-weight: 700;
  opacity: 1;
  transform: scale(1.06);
  text-shadow:
    0 0 18px rgba(0, 147, 147, 0.45),
    0 0 36px rgba(0, 147, 147, 0.18);
  animation: analysis-step-pulse 1.8s ease-in-out infinite;
}

.page-home .analysis-steps li.done {
  color: rgba(134, 239, 172, 0.72);
  opacity: 0.62;
  transform: scale(0.97);
}

.page-home .analysis-steps li.done::after {
  content: none;
}

.page-home .analysis-steps li.skipped {
  color: rgba(113, 113, 122, 0.35);
  text-decoration: line-through;
  opacity: 0.28;
  transform: scale(0.9);
}

.page-home .analysis-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 2.75rem;
  margin: 1.15rem 0 0;
  padding: 0;
}

.page-home .btn-stop-analysis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 10.5rem;
  margin: 0;
  padding: 0.62rem 1.35rem;
  font-size: 0.86rem;
  line-height: 1.2;
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.page-home .btn-stop-analysis:hover:not(:disabled) {
  border-color: #ef4444;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.08);
}

.page-home .btn-stop-analysis:disabled {
  opacity: 0.55;
  cursor: wait;
}

.page-home .analysis-lock-note {
  font-size: 0.78rem;
  margin-top: 0.5rem;
  animation: analysis-lock-fade 2.5s ease-in-out infinite;
}

@keyframes analysis-orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes analysis-glow-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes analysis-logo-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.92; }
  50% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
}

@keyframes analysis-stage-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes analysis-hint-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes analysis-dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@keyframes analysis-bar-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@keyframes analysis-step-pulse {
  0%, 100% {
    text-shadow:
      0 0 14px rgba(0, 147, 147, 0.35),
      0 0 28px rgba(0, 147, 147, 0.12);
  }
  50% {
    text-shadow:
      0 0 22px rgba(0, 147, 147, 0.55),
      0 0 44px rgba(0, 147, 147, 0.24);
  }
}

@keyframes analysis-lock-fade {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@media (max-width: 520px) {
  .scan-cinema-track {
    bottom: clamp(1.25rem, 6vh, 3rem);
    width: min(94vw, 22rem);
    height: 2.8rem;
    min-height: 2.8rem;
  }

  body.is-analyzing .hero-card.is-analyzing {
    width: min(calc(100vw - 1.5rem), 30rem);
    min-height: min(28rem, calc(100vh - 9rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .analysis-ring-orbit,
  .page-home .analysis-ring-glow,
  .page-home .analysis-logo,
  .page-home .analysis-activity-dots span,
  .page-home .analysis-progress-shimmer,
  .page-home .analysis-steps-track {
    transition: none !important;
  }

  .page-home .analysis-steps li {
    transition: none !important;
  }

  .page-home .analysis-steps-track,
  .page-home .analysis-steps li.active,
  .page-home .analysis-lock-note,
  .page-home .analysis-stage.stage-changed,
  .page-home .analysis-activity-text.hint-changed,
  .scan-cinema-line.is-visible,
  .scan-cinema-line.is-exiting,
  body.is-analyzing .hero-card.is-analyzing {
    animation: none !important;
  }

  .scan-cinema-line.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.page-home .analysis-stage.stage-changed {
  animation: analysis-stage-in 0.4s ease;
}

.page-home .live-preview-slot {
  min-height: 0;
  margin-top: 0.35rem;
  transition: min-height 0.25s ease;
}

.page-home .analysis-view.is-running .live-preview-slot,
.page-home .analysis-view.is-stalled .live-preview-slot {
  min-height: 5.75rem;
}

.page-home .live-preview-slot.has-content {
  min-height: 8.5rem;
}

.page-home .analysis-view.is-running .live-preview-slot.has-content,
.page-home .analysis-view.is-stalled .live-preview-slot.has-content {
  min-height: 9rem;
}

.page-home .live-preview-slot .live-preview {
  max-height: 11rem;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.page-home .live-preview {
  text-align: left;
  border-radius: 14px;
  margin-top: 0;
}

.page-home .section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

body.is-analyzing {
  overflow: hidden;
}

.scan-cinema {
  position: fixed;
  inset: 0;
  z-index: 158;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.scan-cinema.is-active {
  opacity: 1;
}

.scan-cinema-bars::before,
.scan-cinema-bars::after {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  height: min(11vh, 5rem);
  background: #000;
  opacity: 0;
  transition: opacity 0.65s ease;
  z-index: 142;
  pointer-events: none;
}

.scan-cinema.is-active .scan-cinema-bars::before {
  top: 0;
  opacity: 0.62;
}

.scan-cinema.is-active .scan-cinema-bars::after {
  bottom: 0;
  opacity: 0.62;
}

.scan-cinema-track {
  position: fixed;
  left: 50%;
  bottom: clamp(1.75rem, 7vh, 4.5rem);
  top: auto;
  transform: translateX(-50%);
  width: min(92vw, 38rem);
  height: 3.2rem;
  min-height: 3.2rem;
  padding-top: 0;
  text-align: center;
  overflow: hidden;
}

.scan-cinema-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin: 0;
  padding: 0 0.75rem;
  font-size: clamp(0.92rem, 2.6vw, 1.12rem);
  line-height: 1.5;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  color: rgba(245, 245, 245, 0.94);
  text-shadow:
    0 0 28px rgba(0, 147, 147, 0.22),
    0 2px 18px rgba(0, 0, 0, 0.92),
    0 1px 3px rgba(0, 0, 0, 1);
  opacity: 0;
  transform: translateY(calc(-50% + 18px));
  filter: blur(6px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scan-cinema-line.is-visible {
  animation: cinema-sub-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.scan-cinema-line.is-exiting {
  animation: cinema-sub-out 0.52s ease forwards;
}

@keyframes cinema-sub-in {
  from {
    opacity: 0;
    transform: translateY(calc(-50% + 18px));
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
    filter: blur(0);
  }
}

@keyframes cinema-sub-out {
  from {
    opacity: 1;
    transform: translateY(-50%);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(calc(-50% - 12px));
    filter: blur(4px);
  }
}

.analysis-scrim {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(4, 8, 12, 0.55);
  backdrop-filter: blur(0px) saturate(1);
  -webkit-backdrop-filter: blur(0px) saturate(1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, backdrop-filter 0.55s ease, -webkit-backdrop-filter 0.55s ease;
}

.analysis-scrim.is-visible {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  animation: analysis-scrim-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes analysis-scrim-in {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(20px) saturate(1.12);
    -webkit-backdrop-filter: blur(20px) saturate(1.12);
  }
}

body.is-analyzing .page-shell {
  position: relative;
  z-index: 150;
}

body.is-analyzing .home-recent-float {
  display: none;
}

body.is-analyzing .hero-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

body.is-analyzing .hero-body {
  width: 100%;
}

body.is-analyzing .hero-copy {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, max-height 0.35s ease;
}

body.is-analyzing .site-header {
  position: relative;
  z-index: 160;
  opacity: 0.45;
  filter: blur(2px);
  pointer-events: none;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

body.is-analyzing .reports-section,
body.is-analyzing .operator-clusters-section {
  opacity: 0;
  pointer-events: none;
  user-select: none;
  transform: translateY(12px);
  filter: blur(6px);
}

/* PDF export — full-page layout (class added by Playwright only) */
.page-report--pdf-full {
  background: #0a0a0a !important;
}

.page-report--pdf-full .container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 10mm 12mm 14mm !important;
}

.page-report--pdf-full .ai-briefing-layout {
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.35rem;
}

.page-report--pdf-full .brief-toc {
  position: static;
}

.page-report--pdf-full .report-toc {
  display: none;
}

.page-report--pdf-full .report-nav {
  display: none;
}

.page-report--pdf-full .report-layout {
  grid-template-columns: 1fr;
}

.page-report--pdf-full .report-toolbar {
  position: static;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.page-report--pdf-full .ai-briefing-main,
.page-report--pdf-full .brief-section,
.page-report--pdf-full .brief-hero {
  max-width: none !important;
}

/* ── Firebase Google auth ── */
.auth-bar {
  display: flex;
  justify-content: center;
  margin-top: 0.85rem;
}

.auth-user {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.page-home .auth-bar {
  margin-top: 0;
  justify-content: flex-end;
  flex-shrink: 0;
}

.auth-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.auth-name {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-scan-credits,
.auth-balance {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-hover);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 147, 147, 0.35);
  background: rgba(0, 147, 147, 0.08);
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-btn-google {
  padding: 0.55rem 1rem;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
}

.auth-btn-google:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: #c6c9cc;
}

.auth-btn-ghost {
  padding: 0.45rem 0.85rem;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.auth-btn-ghost:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--muted);
}

.auth-btn-lg {
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
}

.auth-google-icon {
  flex-shrink: 0;
}

/* Auth fallback before auth.js runs (prevents blank home when signed out) */
body.horus-auth-required:not(.horus-signed-in) [data-auth-content] {
  display: none !important;
}

body.horus-auth-required:not(.horus-signed-in) [data-auth-gate] {
  display: block !important;
}

body.horus-signed-in [data-auth-gate] {
  display: none !important;
}

body.horus-auth-ready #auth-gate-loading {
  display: none;
}

body.horus-auth-required:not(.horus-signed-in).page-home,
body.horus-auth-required:not(.horus-signed-in).page-home .page-shell {
  display: block;
  height: auto;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
}

body.horus-auth-required:not(.horus-signed-in) .home-stage,
body.horus-auth-required:not(.horus-signed-in) .site-header {
  display: none !important;
}

body.horus-auth-required:not(.horus-signed-in) .home-landing-stage {
  display: block;
  flex: none;
  flex-shrink: 0;
  min-height: 100vh;
  overflow: visible;
}

.landing-setup-warn {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--yellow) 35%, var(--border));
  background: color-mix(in srgb, var(--yellow) 8%, var(--surface));
}

.auth-gate-loading,
.landing-loading {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ── Marketing landing (signed out) ── */
.page-home.page-landing,
body.horus-auth-required:not(.horus-signed-in).page-home {
  height: auto;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(0, 147, 147, 0.2), transparent),
    radial-gradient(ellipse 40% 30% at 100% 20%, rgba(0, 207, 207, 0.08), transparent);
}

.page-home.page-landing .page-shell {
  display: block;
  height: auto;
  max-height: none;
  overflow: visible;
}

.page-home.page-landing .home-landing-stage {
  display: block;
  flex: none;
  flex-shrink: 0;
  max-height: none;
  overflow: visible;
}

.page-home.page-landing .home-stage {
  display: none;
}

.page-home.page-landing .site-header {
  display: none;
}

.page-home.page-landing .hero-main {
  align-items: stretch;
  justify-content: flex-start;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.landing {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) 4rem;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 0;
  margin-bottom: 0.5rem;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.landing-nav-brand {
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.landing-nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.landing-nav-link:hover {
  color: var(--text);
}

.landing-nav-cta {
  flex-shrink: 0;
  padding: 0.5rem 1rem !important;
  font-size: 0.88rem !important;
}

.landing-hero {
  position: relative;
  padding: clamp(2.5rem, 8vh, 5rem) 0 clamp(3rem, 6vh, 4rem);
  overflow: hidden;
}

.landing-hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse 70% 55% at 30% 20%, rgba(0, 147, 147, 0.35), transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(0, 207, 207, 0.12), transparent 60%);
  pointer-events: none;
}

.landing-hero-inner {
  position: relative;
  max-width: 40rem;
}

.landing-loading {
  margin-bottom: 0.5rem;
}

.landing-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 0.65rem;
}

.landing-title {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.landing-lead {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.landing-lead strong {
  color: var(--text);
  font-weight: 600;
}

.landing-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.landing-hero-note {
  font-size: 0.85rem;
}

.landing-feature,
.landing-techniques,
.landing-value,
.landing-pricing {
  margin-top: clamp(3rem, 8vh, 5rem);
  padding-top: clamp(2.5rem, 6vh, 3.5rem);
  border-top: 1px solid var(--border);
}

.landing-section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.landing-section-lead {
  color: var(--muted);
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.landing-feature-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.landing-feature-card {
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 85%, var(--accent) 15%);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.landing-feature-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-hover);
  margin-bottom: 0.65rem;
}

.landing-feature-card h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.landing-feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.landing-pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.35rem;
  list-style: none;
  padding: 1rem 1.15rem;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  font-weight: 600;
}

.landing-pipeline li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.landing-pipeline li:not(:last-child)::after {
  content: "→";
  color: var(--muted);
  font-weight: 400;
  margin-left: 0.15rem;
}

.landing-technique-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.landing-technique-chip {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s ease;
}

.landing-technique-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.landing-technique-name {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.landing-technique-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.landing-techniques-foot {
  font-size: 0.88rem;
}

.landing-value-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.landing-value-card {
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.2rem;
}

.landing-value-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.landing-value-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.landing-value-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.landing-value-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
}

.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.landing-plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.landing-plan--featured {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}

.landing-plan-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-hover);
  background: var(--accent-soft);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
}

.landing-plan-label {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.landing-plan-price {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0;
}

.landing-plan-per {
  font-size: 0.85rem;
  margin: 0;
}

.landing-plan-tagline {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
  margin: 0.5rem 0 0.75rem;
}

.landing-plan-cta {
  align-self: flex-start;
  margin-top: auto;
}

.landing-pricing-note {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.landing-footer {
  margin-top: clamp(3rem, 8vh, 5rem);
  padding: 2.5rem 1.5rem 1rem;
  border-top: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.landing-footer-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.landing-footer-lead {
  max-width: 28rem;
  margin-bottom: 0.5rem;
}

.landing-noscript {
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .landing-nav-links {
    display: none;
  }
  .landing-pipeline {
    flex-direction: column;
    align-items: flex-start;
  }
  .landing-pipeline li:not(:last-child)::after {
    display: none;
  }
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.progress-header .auth-bar {
  margin-top: 0;
  justify-content: flex-end;
}

/* ── Profile dropdown ── */
.auth-profile-menu {
  position: relative;
}

.auth-profile-cluster {
  align-items: center;
  background: color-mix(in srgb, var(--surface2) 88%, #000);
  border: 1px solid color-mix(in srgb, var(--border) 90%, var(--accent) 10%);
  border-radius: var(--radius-pill);
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 6%, transparent) inset,
    0 4px 16px rgba(0, 0, 0, 0.22);
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0;
  height: 38px;
  padding: 0 0.2rem 0 0.15rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-profile-cluster:hover,
.auth-profile-cluster:has(.auth-profile-trigger[aria-expanded="true"]) {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 8%, transparent) inset,
    0 6px 20px rgba(0, 0, 0, 0.28),
    0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}

.auth-profile-balance {
  align-items: center;
  appearance: none;
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  gap: 0.4rem;
  font: inherit;
  line-height: 1;
  margin: 0;
  padding: 0 0.55rem 0 0.45rem;
  transition: background 0.15s ease;
}

.auth-profile-balance:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.auth-balance-icon {
  align-items: center;
  color: var(--accent);
  display: flex;
  flex-shrink: 0;
  opacity: 0.9;
}

.auth-balance-text {
  align-items: baseline;
  display: inline-flex;
  gap: 0.3rem;
  white-space: nowrap;
}

.auth-profile-balance-value {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.auth-profile-balance-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
}

.auth-profile-sep {
  align-self: center;
  background: color-mix(in srgb, var(--border) 70%, transparent);
  flex-shrink: 0;
  height: 18px;
  margin: 0 0.1rem;
  width: 1px;
}

.auth-profile-trigger {
  align-items: center;
  appearance: none;
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  gap: 0.4rem;
  max-width: min(12rem, 38vw);
  padding: 0.2rem 0.55rem 0.2rem 0.25rem;
  transition: background 0.15s ease;
}

.auth-profile-trigger:hover,
.auth-profile-trigger[aria-expanded="true"] {
  background: color-mix(in srgb, #fff 5%, transparent);
}

.auth-profile-cluster .auth-avatar {
  border: 1px solid color-mix(in srgb, var(--border) 80%, var(--accent) 20%);
  flex-shrink: 0;
  height: 26px;
  width: 26px;
}

.auth-profile-cluster .auth-name {
  color: var(--text);
  flex: 1;
  font-size: 0.82rem;
  font-weight: 500;
  max-width: 9.5rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-profile-cluster .auth-chevron {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-shrink: 0;
  line-height: 0;
  margin-left: 0.05rem;
  opacity: 0.75;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.auth-profile-trigger[aria-expanded="true"] .auth-chevron {
  opacity: 1;
  transform: rotate(180deg);
}

.auth-profile-cluster .auth-chevron svg {
  display: block;
}

@media (max-width: 520px) {
  .auth-profile-cluster .auth-name {
    display: none;
  }
  .auth-profile-trigger {
    max-width: none;
    padding-right: 0.45rem;
  }
}

.auth-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 13rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 10px);
  background: var(--surface, #111);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 200;
}

.auth-dropdown-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem 0.55rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
}

.auth-dropdown-email {
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-all;
}

.auth-dropdown-item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.55rem;
  border: none;
  border-radius: calc(var(--radius-md, 10px) - 2px);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.auth-dropdown-item:hover {
  background: rgba(0, 147, 147, 0.1);
}

.auth-dropdown-item-danger {
  color: #f87171;
}

/* ── App shell (settings, pricing, treasury) ── */
.page-app {
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 147, 147, 0.12), transparent);
  min-height: 100dvh;
  color: var(--text);
}

.page-app .app-shell {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2rem) 3rem;
}

.page-settings .app-shell--wide {
  max-width: min(72rem, calc(100vw - 2.5rem));
}

.page-app .app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-app .app-topbar-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-app .app-topbar .auth-bar {
  margin-top: 0;
}

.page-app .app-main {
  margin-top: 0;
}

/* ── Super admin settings page ── */
.settings-page {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.settings-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 14px);
  padding: 1.75rem;
  background: var(--surface-elevated, rgba(255, 255, 255, 0.02));
  min-width: 0;
  overflow-x: clip;
}

.settings-panel-head {
  margin-bottom: 1.5rem;
}

.settings-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin: 0 0 0.35rem;
}

.settings-panel-head h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.settings-lead {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.settings-label {
  font-weight: 600;
  font-size: 0.92rem;
}

.settings-input,
.settings-textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 10px);
  background: var(--surface, #0d0d0d);
  color: inherit;
  font: inherit;
}

.settings-select {
  cursor: pointer;
  appearance: none;
  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='%23888' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.settings-textarea {
  resize: vertical;
  min-height: 10rem;
  line-height: 1.45;
}

.settings-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.settings-toggle-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 10px);
}
.settings-toggle-label {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

.settings-switch {
  position: relative;
  display: inline-block;
  width: 2.75rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.settings-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.settings-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background 0.2s ease;
}

.settings-switch-slider::before {
  content: "";
  position: absolute;
  height: 1.15rem;
  width: 1.15rem;
  left: 0.2rem;
  bottom: 0.175rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.settings-switch input:checked + .settings-switch-slider {
  background: var(--accent-hover, #009393);
}

.settings-switch input:checked + .settings-switch-slider::before {
  transform: translateX(1.2rem);
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.settings-status {
  font-size: 0.85rem;
}

.settings-meta {
  margin: 0;
  font-size: 0.8rem;
}

.settings-tool-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.settings-agent-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 10px);
  background: var(--surface, #0d0d0d);
}

.settings-agent-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.settings-textarea-sm {
  min-height: 3.5rem;
}

.settings-agent-card .settings-label {
  margin-top: 0.35rem;
  font-size: 0.82rem;
}

.settings-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 10px);
  background: var(--surface, #0d0d0d);
}

.settings-tool-copy {
  flex: 1;
  min-width: 0;
}

.settings-tool-name {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
  cursor: pointer;
}

.settings-tool-title {
  font-size: 0.82rem;
  margin: 0 0 0.25rem;
}

.agent-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.agent-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 14px);
  padding: 1.1rem 1.15rem;
  background: var(--surface-elevated, rgba(255, 255, 255, 0.02));
}

.agent-card--high {
  border-color: rgba(239, 68, 68, 0.35);
}

.agent-card--medium {
  border-color: rgba(234, 179, 8, 0.35);
}

.agent-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.agent-card-meta {
  min-width: 0;
}

.agent-icon {
  --agent-icon-size: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--agent-icon-size);
  height: var(--agent-icon-size);
  border-radius: 14px;
  background: rgba(0, 147, 147, 0.1);
  border: 1px solid rgba(0, 147, 147, 0.22);
  color: #5eead4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.agent-icon svg {
  width: calc(var(--agent-icon-size) * 0.52);
  height: calc(var(--agent-icon-size) * 0.52);
}

.agent-icon--cipher {
  background: rgba(94, 234, 212, 0.1);
  border-color: rgba(94, 234, 212, 0.28);
  color: #5eead4;
}

.agent-icon--threshold {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.28);
  color: #fcd34d;
}

.agent-icon--echo {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.28);
  color: #c4b5fd;
}

.agent-icon--meridian {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.28);
  color: #93c5fd;
}

.agent-icon--mirage {
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.28);
  color: #fdba74;
}

.agent-icon--beacon {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.28);
  color: #6ee7b7;
}

.agent-icon--pulse {
  background: rgba(244, 114, 182, 0.1);
  border-color: rgba(244, 114, 182, 0.28);
  color: #f9a8d4;
}

.agent-icon--vitrine {
  background: rgba(251, 113, 133, 0.1);
  border-color: rgba(251, 113, 133, 0.28);
  color: #fda4af;
}

.settings-agent-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.settings-agent-identity .settings-tool-name {
  display: block;
}

.agent-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin: 0 0 0.2rem;
}

.agent-name {
  margin: 0 0 0.15rem;
  font-size: 1.15rem;
}

.agent-specialty {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.agent-summary {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.agent-body {
  font-size: 0.88rem;
  line-height: 1.5;
}

.agent-body pre.report-code-block {
  margin: 0;
  white-space: pre-wrap;
}

.agent-section-lead {
  margin: 0 0 0.25rem;
}

.investigation-agents-section .badge-info {
  text-transform: capitalize;
}

.settings-tool-row .settings-hint {
  margin: 0;
}

.settings-prompt-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.settings-prompt-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 10px);
  background: var(--surface, #0d0d0d);
  overflow: hidden;
}

.settings-prompt-summary {
  padding: 0.65rem 0.85rem;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.settings-prompt-summary::-webkit-details-marker {
  display: none;
}

.settings-prompt-summary::before {
  content: "▸ ";
  color: var(--muted);
}

.settings-prompt-block[open] > .settings-prompt-summary::before {
  content: "▾ ";
}

.settings-prompt-preview {
  margin: 0;
  padding: 0.75rem 0.85rem 0.85rem;
  border-top: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
  max-height: 20rem;
  overflow: auto;
}

/* Version timeline & scan diff */
.version-history-panel {
  border-left: 3px solid var(--accent);
}
.version-history-panel--version_upgrade {
  border-left-color: var(--danger, #e5534b);
}
.version-history-panel--rescan {
  border-left-color: var(--warn, #d4a017);
}
.version-history-panel--first_scan {
  border-left-color: var(--muted);
}
.version-history-headline {
  font-size: 1.05rem;
  line-height: 1.5;
}
.version-diff-bullets {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--text);
}
.version-diff-bullets li {
  margin-bottom: 0.35rem;
}
.version-history-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .version-history-grid {
    grid-template-columns: 1fr;
  }
}
.version-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.version-diff-compare-link {
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}
.version-timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.version-timeline-list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.version-timeline-item {
  position: relative;
  padding: 0 0 1rem 1.35rem;
}
.version-timeline-item--current .version-timeline-body {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
}
.version-timeline-dot {
  position: absolute;
  left: 2px;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--surface, var(--bg));
}
.version-timeline-item--current .version-timeline-dot {
  background: var(--accent);
}
.version-timeline-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.version-timeline-link {
  font-size: 0.78rem;
  color: var(--accent);
}
.version-timeline-meta {
  font-size: 0.9rem;
  margin-top: 0.15rem;
}
.version-timeline-date {
  display: block;
  font-size: 0.78rem;
  margin-top: 0.15rem;
}
.version-timeline-score {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: var(--surface-2, rgba(255,255,255,0.06));
}
.version-diff-panel {
  background: var(--surface-2, rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.version-threat-delta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.85rem;
  background: var(--surface, rgba(0,0,0,0.2));
}
.version-threat-delta--up {
  border-left: 3px solid var(--danger, #e5534b);
}
.version-threat-delta--down {
  border-left: 3px solid var(--ok, #3fb950);
}
.version-threat-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.version-threat-values em {
  font-style: normal;
  font-weight: 600;
}
.version-threat-delta--up .version-threat-values em { color: var(--danger, #e5534b); }
.version-threat-delta--down .version-threat-values em { color: var(--ok, #3fb950); }
.version-fingerprint-warn {
  color: var(--warn, #d4a017);
  font-size: 0.88rem;
  margin: 0 0 0.75rem;
}
.version-diff-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}
.version-diff-group h4 {
  font-size: 0.78rem;
  margin: 0 0 0.4rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.version-diff-added ul,
.version-diff-removed ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
}
.version-diff-added li,
.version-diff-removed li {
  padding: 0.15rem 0;
  word-break: break-all;
}
.version-diff-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-bottom: 0.25rem;
}
.version-diff-added .version-diff-tag {
  background: color-mix(in srgb, var(--danger, #e5534b) 20%, transparent);
  color: var(--danger, #e5534b);
}
.version-diff-removed .version-diff-tag {
  background: color-mix(in srgb, var(--ok, #3fb950) 18%, transparent);
  color: var(--ok, #3fb950);
}
.version-diff-quiet,
.version-library-path {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}
.page-home .report-chip--evolution {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}

/* Pricing & treasury */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  background: var(--surface);
}
.pricing-card--featured {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}
.pricing-card-price {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0 0;
}
.pricing-checkout {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.pricing-checkout-dl {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
}
.pricing-checkout-dl div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem;
}
.pricing-checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
/* ── Treasury dashboard (admin) ── */
.page-treasury .app-shell--wide,
.settings-treasury-tab .treasury-dashboard {
  max-width: 1200px;
}
.treasury-page-main {
  padding-top: 0.5rem;
}
.treasury-page-head {
  margin-bottom: 1.5rem;
}
.treasury-subhead {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.65rem;
}
.treasury-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.treasury-metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
}
.treasury-metric-card--warn {
  border-color: color-mix(in srgb, var(--yellow) 40%, var(--border));
}
.treasury-metric-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.treasury-metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.treasury-metric-meta,
.treasury-metric-link {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}
.treasury-metric-link {
  color: var(--accent-hover);
  text-decoration: none;
}
.treasury-metric-link:hover {
  text-decoration: underline;
}
.treasury-by-status {
  margin-bottom: 1.25rem;
}
.treasury-status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.treasury-status-chip {
  appearance: none;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font: inherit;
  gap: 0.1rem;
  padding: 0.4rem 0.75rem;
  transition: border-color 0.15s, background 0.15s;
}
.treasury-status-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.treasury-status-chip-name {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: lowercase;
}
.treasury-status-chip-meta {
  color: var(--muted);
  font-size: 0.68rem;
}
.treasury-status-chip--swept .treasury-status-chip-name {
  color: var(--green);
}
.treasury-deposits-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.treasury-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}
.treasury-toolbar-end {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 0.65rem;
}
.treasury-live {
  font-size: 0.72rem;
  white-space: nowrap;
}
.treasury-live::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--green);
  vertical-align: middle;
  animation: treasury-live-pulse 2s ease-in-out infinite;
}
@keyframes treasury-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.treasury-toolbar-start {
  align-items: center;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  min-width: 0;
}
.treasury-tabs {
  display: flex;
  gap: 0.25rem;
}
.treasury-tab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: default;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
}
.treasury-tab--active {
  border-bottom-color: var(--accent);
  color: var(--text);
}
.treasury-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.treasury-filter-pill {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.treasury-filter-pill:hover {
  color: var(--text);
}
.treasury-filter-pill--active {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--accent-hover);
}
.treasury-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.treasury-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.treasury-table th,
.treasury-table td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.82rem;
  vertical-align: middle;
}
.treasury-table th {
  background: var(--surface2);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.treasury-row {
  cursor: pointer;
  transition: background 0.12s;
}
.treasury-row:hover {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.treasury-cell-address {
  white-space: nowrap;
}
.treasury-copy-btn {
  appearance: none;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  margin-left: 0.25rem;
  padding: 0 0.15rem;
  vertical-align: middle;
}
.treasury-copy-btn:hover {
  color: var(--accent-hover);
}
.treasury-cell-workspace {
  max-width: 12rem;
}
.treasury-cell-sub {
  display: block;
  font-size: 0.68rem;
  margin-top: 0.1rem;
}
.treasury-badge {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: lowercase;
  background: color-mix(in srgb, var(--muted) 25%, transparent);
}
.treasury-badge--pending { background: color-mix(in srgb, #eab308 30%, transparent); }
.treasury-badge--confirmed { background: color-mix(in srgb, #3b82f6 30%, transparent); }
.treasury-badge--swept { background: color-mix(in srgb, var(--ok) 30%, transparent); }
.treasury-badge--sweeping { background: color-mix(in srgb, #6366f1 30%, transparent); }
.treasury-badge--warn { background: color-mix(in srgb, var(--red) 28%, transparent); }
.treasury-badge--cancelled,
.treasury-badge--expired { background: color-mix(in srgb, var(--muted) 25%, transparent); }
.treasury-detail {
  position: fixed;
  inset: 0;
  z-index: 400;
}
.treasury-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.treasury-detail-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 400px);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.treasury-detail-head {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.15rem;
}
.treasury-detail-title {
  font-size: 1rem;
  margin: 0;
}
.treasury-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.15rem 1.5rem;
}
.treasury-detail-dl {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.treasury-detail-dl div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem;
}
.treasury-detail-dl dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
}
.treasury-detail-dl dd {
  font-size: 0.88rem;
  margin: 0;
  word-break: break-word;
}
.treasury-detail-mono {
  font-size: 0.75rem;
}
.treasury-detail-note {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface2));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
}
.treasury-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
body.treasury-detail-open {
  overflow: hidden;
}
.app-shell--wide {
  max-width: 1200px;
}
.treasury-status-cell {
  max-width: 14rem;
}
.treasury-sweep-err {
  font-size: 0.72rem;
  line-height: 1.35;
  margin-top: 0.25rem;
  word-break: break-word;
}
.treasury-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.treasury-pagination {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.treasury-nav a {
  color: var(--accent);
}

/* Settings tabs */
.settings-tabs {
  display: flex;
  gap: 0.25rem;
  margin: 0 0 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.settings-tab {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: -1px;
  padding: 0.6rem 1rem;
}
.settings-tab:hover {
  color: var(--text);
}
.settings-tab.active {
  border-bottom-color: var(--accent);
  color: var(--text);
}
.settings-tab-title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
.settings-callout {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.settings-callout ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

/* Admin users tab */
.settings-users-tab {
  min-width: 0;
}
.settings-users-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}
.settings-users-head .settings-lead {
  max-width: none;
}
.admin-users-count {
  font-size: 0.85rem;
  white-space: nowrap;
  padding-top: 0.35rem;
}
.admin-users-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.admin-users-search-wrap {
  flex: 1 1 16rem;
  min-width: 0;
}
.admin-users-search {
  width: 100%;
  max-width: none;
}
.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}
.admin-users-loading,
.admin-users-empty {
  margin: 0;
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.admin-user-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 92%, #0a0a0a);
  padding: 1rem 1.15rem;
  min-width: 0;
}
.admin-user-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.admin-user-card-identity {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 12rem;
}
.admin-user-card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}
.admin-user-email {
  font-weight: 600;
  font-size: 1rem;
  word-break: break-word;
}
.admin-user-name {
  font-size: 0.88rem;
}
.admin-user-uid {
  font-size: 0.75rem;
}
.admin-user-badge {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent-hover);
}
.admin-user-balance {
  flex-shrink: 0;
  text-align: right;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface2));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
}
.admin-user-balance-value {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent-hover);
}
.admin-user-balance-label {
  font-size: 0.72rem;
}
.admin-user-card-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.65rem 1rem;
}
.admin-user-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.admin-user-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-user-stat-value {
  font-size: 0.88rem;
  word-break: break-word;
}
.admin-user-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.admin-users-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
  padding-top: 0.5rem;
}

/* Admin user preview + grant modals */
body.admin-user-modal-open,
body.admin-grant-modal-open {
  overflow: hidden;
}
.admin-user-modal,
.admin-grant-modal {
  position: fixed;
  inset: 0;
  z-index: 13000;
}
.admin-user-modal[hidden],
.admin-grant-modal[hidden] {
  display: none !important;
}
.admin-user-modal-backdrop,
.admin-grant-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.admin-grant-modal {
  z-index: 13100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.admin-grant-modal-backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}
.admin-user-modal-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 420px);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.admin-user-modal-head,
.admin-grant-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
}
.admin-user-modal-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-user-modal-title,
.admin-grant-modal-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  word-break: break-word;
}
.admin-grant-modal-sub {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}
.admin-user-modal-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.admin-user-modal-close:hover {
  background: color-mix(in srgb, var(--border) 60%, transparent);
  color: inherit;
}
.admin-user-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.15rem 1.25rem;
}
.admin-user-modal-balance {
  text-align: center;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface2));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
}
.admin-user-modal-balance-value {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent-hover);
}
.admin-user-modal-balance-label {
  font-size: 0.78rem;
}
.admin-user-modal-dl {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
}
.admin-user-modal-dl div {
  display: grid;
  grid-template-columns: 6.75rem 1fr;
  gap: 0.5rem;
}
.admin-user-modal-dl dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-user-modal-dl dd {
  margin: 0;
  font-size: 0.88rem;
  word-break: break-word;
}
.admin-user-modal-mono {
  font-size: 0.75rem;
}
.admin-user-modal-foot {
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--border);
}
.admin-user-modal-foot .btn {
  width: 100%;
}
.admin-grant-modal-dialog {
  position: relative;
  width: min(100%, 420px);
  max-height: min(88vh, 560px);
  overflow: auto;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  background: linear-gradient(165deg, #161616 0%, #0e0e0e 55%, #121218 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}
.admin-grant-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.15rem 1.15rem;
}
.admin-grant-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.admin-grant-feedback {
  margin: 0;
  font-size: 0.82rem;
}
.admin-grant-feedback--ok {
  color: var(--accent-hover);
}
.admin-grant-feedback--error {
  color: var(--danger, #e55);
}
.admin-grant-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 0.25rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Profile balance segment (header, one line with avatar) */
.auth-profile-balance.auth-credits-trigger {
  width: auto;
}

/* Scan wallet modal */
body.wallet-modal-open {
  overflow: hidden;
}
.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.wallet-modal[hidden] {
  display: none !important;
}
.wallet-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}
.wallet-modal-dialog {
  position: relative;
  width: min(920px, calc(100vw - 2rem));
  max-height: min(88vh, 680px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  background: linear-gradient(165deg, #161616 0%, #0e0e0e 55%, #121218 100%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent),
    0 24px 80px rgba(0, 0, 0, 0.65),
    0 0 60px color-mix(in srgb, var(--accent) 8%, transparent);
}

.wallet-modal-dialog:has(.wallet-view--overview:not([hidden])) {
  width: min(900px, calc(100vw - 1.5rem));
  min-height: min(520px, 88vh);
}

.wallet-modal-dialog:has([data-wallet-view="bundles"]:not([hidden])),
.wallet-modal-dialog:has([data-wallet-view="checkout"]:not([hidden])) {
  width: min(480px, calc(100vw - 2rem));
  min-height: 0;
}
.wallet-modal-glow {
  pointer-events: none;
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%);
  opacity: 0.35;
}
.wallet-view {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 1.35rem 1.35rem 1.5rem;
}
.wallet-view--overview,
.wallet-view--checkout {
  padding: 0;
}
.wallet-view--checkout {
  overflow: hidden;
}
.wallet-view--active,
.wallet-view:not([hidden]) {
  display: flex;
}
.wallet-header {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}
.wallet-header--bar,
.wallet-header--overview {
  flex-shrink: 0;
  margin-bottom: 0;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.wallet-header--overview {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}
.wallet-header-center--left {
  text-align: left;
}
.wallet-title--overview {
  font-size: 1.2rem;
}
.wallet-overview-stage {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, 380px);
  min-height: 280px;
  overflow: hidden;
}
.wallet-overview-main {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  padding: 1.5rem 1.75rem;
}
.wallet-balance-panel {
  max-width: 320px;
  width: 100%;
}
.wallet-balance-kicker {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}
.wallet-balance-row {
  align-items: baseline;
  display: flex;
  gap: 0.4rem;
  line-height: 1;
  margin-bottom: 0.65rem;
}
.wallet-balance-panel .wallet-balance-value {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(160deg, #f4f4f4 20%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--text);
  font-size: 3.75rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 0;
}
.wallet-balance-unit {
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 600;
}
.wallet-balance-hint {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
  max-width: 18rem;
}
.wallet-overview-bar {
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  padding: 0.85rem 1.25rem 1rem;
}
.wallet-cta--bar {
  border-radius: 12px;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 28%, transparent);
  padding: 0.8rem 1rem;
  width: 100%;
}
.wallet-cta--bar:hover {
  transform: translateY(-1px);
}
.wallet-cta--bar .wallet-cta-label {
  font-size: 0.95rem;
}
.wallet-cta--bar .wallet-cta-hint {
  font-size: 0.72rem;
}
.wallet-tx-sidebar {
  align-self: stretch;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.wallet-tx-sidebar-head {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-shrink: 0;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 1rem 1.15rem 0.85rem;
}
.wallet-tx-sidebar-head .section-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}
.wallet-tx-count {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  flex-shrink: 0;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  min-width: 1.35rem;
  padding: 0.15rem 0.45rem;
  text-align: center;
}
.wallet-modal-dialog:has(.wallet-view--overview:not([hidden])) .wallet-modal-glow {
  opacity: 0.2;
  right: 10%;
  top: -30%;
  width: 55%;
}
.wallet-tx-sidebar-list {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.85rem 1rem 1.25rem;
  scrollbar-gutter: stable;
}
.wallet-tx-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.wallet-tx-card-wrap {
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
  list-style: none;
  transition: border-color 0.15s, background 0.15s;
}
.wallet-tx-card-wrap--medium {
  border-left-color: var(--yellow);
}
.wallet-tx-card-wrap--low {
  border-left-color: var(--green);
}
.wallet-tx-card-wrap--high {
  border-left-color: var(--red);
}
.wallet-tx-card-wrap--clickable {
  cursor: pointer;
}
.wallet-tx-card-wrap--clickable:hover {
  background: color-mix(in srgb, var(--accent) 6%, var(--surface2));
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.wallet-tx-card-wrap--empty {
  background: transparent;
  border: 1px dashed var(--border);
  border-left-width: 1px;
  cursor: default;
}
.wallet-tx-card-wrap--empty:hover {
  background: transparent;
}
.wallet-tx-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
}
.wallet-tx-card-top {
  align-items: flex-start;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}
.wallet-tx-card-primary {
  min-width: 0;
}
.wallet-tx-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.15rem;
}
.wallet-tx-card-price {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0;
}
.wallet-tx-card-top .wallet-tx-status {
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.wallet-tx-card-foot {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  justify-content: space-between;
}
.wallet-tx-date {
  color: var(--muted);
  font-size: 0.72rem;
}
.wallet-tx-chevron {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}
.wallet-tx-detail {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.25rem 1.5rem;
  overscroll-behavior: contain;
}
.wallet-tx-detail-loading {
  padding: 2rem 0;
  text-align: center;
}
.wallet-tx-detail-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface2);
  padding: 1.15rem 1.2rem 1.25rem;
}
.wallet-tx-detail-dl {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}
.wallet-tx-detail-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.65rem 1rem;
  align-items: start;
}
.wallet-tx-detail-row dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}
.wallet-tx-detail-row dd {
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
  word-break: break-word;
}
.wallet-tx-detail-mono {
  font-size: 0.78rem;
  line-height: 1.5;
}
.wallet-tx-detail-link {
  color: var(--accent-hover);
  text-decoration: none;
}
.wallet-tx-detail-link:hover {
  text-decoration: underline;
}
.wallet-tx-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.wallet-tx-detail-status {
  font-size: 0.82rem;
  margin: 0.75rem 0 0;
  min-height: 1.2em;
}
@media (max-width: 520px) {
  .wallet-tx-detail-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
.wallet-tx-empty {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
  padding: 1.5rem 0.75rem;
  text-align: center;
}
@media (max-width: 700px) {
  .wallet-modal-dialog:has(.wallet-view--overview:not([hidden])) {
    width: min(100%, calc(100vw - 1rem));
    min-height: 0;
  }
  .wallet-overview-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(200px, 1fr);
  }
  .wallet-overview-main {
    padding: 1.25rem 1.25rem 0.75rem;
  }
  .wallet-balance-panel {
    max-width: none;
    text-align: center;
  }
  .wallet-balance-panel .wallet-balance-hint {
    margin-left: auto;
    margin-right: auto;
  }
  .wallet-balance-row {
    justify-content: center;
  }
  .wallet-tx-sidebar {
    border-left: none;
    border-top: 1px solid var(--border);
    box-shadow: none;
    min-height: 200px;
  }
}
.wallet-header--checkout {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 40px 1fr 40px;
  padding: 1rem 1.15rem 0.85rem;
}
.wallet-header--checkout .wallet-back,
.wallet-header--checkout .wallet-close {
  justify-self: center;
}
.wallet-header-center {
  min-width: 0;
  text-align: center;
}
.wallet-header-center .wallet-eyebrow {
  margin-bottom: 0.15rem;
}
.wallet-title--checkout {
  font-size: 1.15rem;
  line-height: 1.25;
}
.wallet-checkout-subtitle {
  font-size: 0.8rem;
  margin: 0.35rem 0 0;
}
.wallet-checkout-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 1.35rem 1.35rem;
}
.wallet-expiry-card {
  align-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 14%, var(--surface2)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
  text-align: center;
}
.wallet-expiry-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wallet-countdown-value {
  color: var(--text);
  font-size: 2.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.wallet-countdown-value--warn {
  color: var(--yellow);
}
.wallet-countdown-value--urgent {
  color: var(--red);
}
.wallet-countdown-until {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}
.wallet-eyebrow {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.2rem;
  text-transform: uppercase;
}
.wallet-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.wallet-close {
  appearance: none;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.35rem;
  height: 36px;
  line-height: 1;
  width: 36px;
}
.wallet-close:hover {
  color: var(--text);
  border-color: var(--muted);
}
.wallet-back {
  appearance: none;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  height: 36px;
  justify-content: center;
  width: 36px;
}
.wallet-balance-card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 18%, var(--surface2)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
}
.wallet-balance-icon {
  align-items: center;
  color: var(--accent);
  display: inline-flex;
  justify-content: center;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}
.wallet-balance-label {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0;
}
.wallet-balance-value {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0.15rem 0;
  background: linear-gradient(135deg, #fff, var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wallet-balance-sub {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0;
}
.wallet-tx-status {
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.12rem 0.45rem;
}
.wallet-tx-status--pending {
  background: color-mix(in srgb, var(--yellow) 25%, transparent);
  color: var(--yellow);
}
.wallet-tx-status--ok {
  background: color-mix(in srgb, var(--green) 25%, transparent);
  color: var(--green);
}
.wallet-tx-status--muted {
  background: color-mix(in srgb, var(--muted) 20%, transparent);
  color: var(--muted);
}
.wallet-tx-status--warn {
  background: color-mix(in srgb, var(--red) 20%, transparent);
  color: var(--red);
}
.wallet-footer {
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}
.wallet-cta {
  appearance: none;
  background: linear-gradient(135deg, var(--accent), #007a7a);
  border: none;
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.9rem 1.25rem;
  width: 100%;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 24px color-mix(in srgb, var(--accent) 40%, transparent);
}
.wallet-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--accent) 50%, transparent);
}
.wallet-cta-label {
  font-size: 1rem;
  font-weight: 700;
}
.wallet-cta-hint {
  font-size: 0.75rem;
  opacity: 0.85;
}
.wallet-cta--inline {
  max-width: 320px;
}
.wallet-bundles-banner {
  background: color-mix(in srgb, var(--yellow) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--yellow) 35%, var(--border));
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  position: relative;
  z-index: 1;
}
.wallet-bundles-banner code {
  color: var(--text);
  font-size: 0.78rem;
}
.wallet-bundles {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}
.wallet-bundle {
  align-items: center;
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 0.75rem 1rem;
  padding: 1rem 1.15rem;
  position: relative;
  text-align: left;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  width: 100%;
}
.wallet-bundle:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}
.wallet-bundle--featured {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 16%, var(--surface)) 0%,
    var(--surface) 55%
  );
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent),
    0 12px 36px color-mix(in srgb, var(--accent) 12%, transparent);
}
.wallet-bundle--preview {
  cursor: default;
}
.wallet-bundle--preview:hover {
  transform: none;
  box-shadow: none;
}
.wallet-bundle--preview.wallet-bundle--featured:hover {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent),
    0 12px 36px color-mix(in srgb, var(--accent) 12%, transparent);
}
.wallet-bundle-ribbon {
  position: absolute;
  top: 0;
  right: 1rem;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--accent), #007070);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.55rem;
  text-transform: uppercase;
}
.wallet-bundle-left {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  justify-content: center;
}
.wallet-bundle-credits {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  background: linear-gradient(180deg, #fff 30%, var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wallet-bundle-credits-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wallet-bundle-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.wallet-bundle-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.wallet-bundle-tagline {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}
.wallet-bundle-right {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex-shrink: 0;
}
.wallet-bundle-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-hover);
  letter-spacing: -0.02em;
  line-height: 1;
}
.wallet-bundle-per {
  font-size: 0.72rem;
  color: var(--muted);
}
.wallet-bundle-cta {
  margin-top: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent-hover);
  font-size: 0.72rem;
  font-weight: 700;
}
.wallet-bundle--featured .wallet-bundle-cta {
  background: linear-gradient(135deg, var(--accent), #007070);
  border-color: transparent;
  color: #fff;
}
.wallet-bundle--preview .wallet-bundle-cta {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--muted);
}
.wallet-bundles-foot {
  font-size: 0.75rem;
  margin: 0.85rem 0 0;
  text-align: center;
  position: relative;
  z-index: 1;
}
.wallet-bundles-status {
  font-size: 0.8rem;
  color: var(--yellow);
  margin: 0.5rem 0 0;
  min-height: 1.2em;
  text-align: center;
  position: relative;
  z-index: 1;
}
.wallet-checkout-summary {
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.wallet-checkout-pack {
  align-items: baseline;
  display: flex;
  gap: 0.5rem;
  font-weight: 600;
}
.wallet-checkout-pack-credits {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.wallet-checkout-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
  background: var(--surface);
  position: relative;
  z-index: 1;
}
.wallet-checkout-hint {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}
.wallet-checkout-dl {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
}
.wallet-checkout-dl div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.wallet-checkout-dl dt {
  color: var(--muted);
}
.wallet-checkout-received {
  color: var(--yellow);
  font-weight: 700;
}
.wallet-checkout-received--complete {
  color: var(--green);
}
.wallet-checkout-row--address dd {
  align-items: flex-start;
}
.wallet-address-cell {
  align-items: flex-start;
  display: flex;
  gap: 0.5rem;
  min-width: 0;
}
.wallet-address {
  flex: 1;
  font-size: 0.8rem;
  line-height: 1.45;
  min-width: 0;
  word-break: break-all;
}
.wallet-address-copy {
  align-items: center;
  appearance: none;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  gap: 0.3rem;
  padding: 0.35rem 0.5rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.wallet-address-copy:hover {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface2));
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  color: var(--accent-hover);
}
.wallet-address-copy--done {
  border-color: color-mix(in srgb, var(--green) 45%, var(--border));
  color: var(--green);
}
.wallet-address-copy svg {
  display: block;
  flex-shrink: 0;
}
.wallet-checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.wallet-status {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
  min-height: 1.2em;
}
.pricing-wallet-cta {
  margin-top: 1.5rem;
}
.pricing-wallet-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}
.billing-balance-line {
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}
.billing-checkout-hint {
  font-size: 0.82rem;
  margin: 0 0 0.5rem;
}
.btn-sm {
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
}
