/* SeeRisk — Government/enterprise sober blue/gray for site safety */

:root[data-theme="light"] {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --surface-3: #eef0f4;
  --border: #e4e7ec;
  --border-strong: #d1d5db;
  --text: #11161e;
  --text-2: #3f4855;
  --text-3: #6b7280;
  --text-4: #9ca3af;

  --brand: #1e3a5f;          /* deep institutional blue */
  --brand-2: #2a4d7d;
  --brand-soft: #e8eef6;
  --brand-soft-2: #d6e1ef;

  --warn: #b91c1c;           /* muted red */
  --warn-soft: #fef2f2;
  --warn-border: #fecaca;
  --warn-text: #991b1b;

  --ok: #166534;             /* muted green */
  --ok-soft: #f0fdf4;
  --ok-border: #bbf7d0;
  --ok-text: #14532d;

  --q: #92400e;              /* muted amber */
  --q-soft: #fffbeb;
  --q-border: #fde68a;
  --q-text: #78350f;

  --mand: #b91c1c;
  --shadow-sm: 0 1px 2px rgba(17,22,30,.06);
  --shadow-md: 0 4px 14px rgba(17,22,30,.08);
  --shadow-lg: 0 10px 30px rgba(17,22,30,.12);
}

:root[data-theme="dark"] {
  --bg: #0a0d12;
  --surface: #11161e;
  --surface-2: #161c26;
  --surface-3: #1c2330;
  --border: #232b39;
  --border-strong: #2e3a4d;
  --text: #ecedef;
  --text-2: #c5cad3;
  --text-3: #8b94a3;
  --text-4: #5c6677;

  --brand: #6f9bd8;
  --brand-2: #8db1e3;
  --brand-soft: #182437;
  --brand-soft-2: #1f2f48;

  --warn: #f87171;
  --warn-soft: #2a1414;
  --warn-border: #5a1f1f;
  --warn-text: #fca5a5;

  --ok: #4ade80;
  --ok-soft: #0f1f17;
  --ok-border: #1e4429;
  --ok-text: #86efac;

  --q: #fbbf24;
  --q-soft: #221809;
  --q-border: #4a3408;
  --q-text: #fcd34d;

  --mand: #f87171;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow-md: 0 4px 14px rgba(0,0,0,.5);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

.app-root {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   SCREEN BASE
   ============================================================ */
.screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  height: 48px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 5;
}
.topbar.floating {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border: 0;
  z-index: 10;
  padding: 8px 8px 0;
}
.topbar-side {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text);
  margin: 0 4px;
}
.topbar-side.right { justify-self: end; }
.topbar-title {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  letter-spacing: .02em;
}
.topbar-side.glass {
  background: rgba(17, 22, 30, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  margin: 0;
}
.glass-title {
  background: rgba(17, 22, 30, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 10px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin: 0 8px;
}

/* ============================================================
   UPLOAD SCREEN
   ============================================================ */
.upload-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px 8px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
}
.brand-sub {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 2px;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  letter-spacing: .02em;
}

.meta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
}
.meta-k {
  color: var(--text-3);
  font-size: 12px;
}
.meta-v {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.section-label {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: 2px;
  padding-left: 2px;
  font-family: ui-monospace, "SF Mono", monospace;
}

.photo-dropzone {
  position: relative;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-dropzone.has-photo { border-style: solid; padding: 0; }

.dropzone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
}
.dropzone-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  margin-top: 8px;
}
.dropzone-sub {
  font-size: 11.5px;
  color: var(--text-4);
}

.photo-replace {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(17, 22, 30, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
}

.upload-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  height: 46px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background .15s, border-color .15s;
}
.btn-secondary:active { background: var(--surface-3); }
.btn-secondary.flex1 { flex: 1; }

.scope-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.scope-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.scope-label {
  font-size: 13px;
  font-weight: 600;
}
.scope-edit {
  font-size: 12px;
  color: var(--brand);
}
.scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 12px;
  padding: 4px 9px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 6px;
  font-weight: 500;
}
.tag-more { background: var(--surface-3); color: var(--text-3); }

.scope-foot {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}
.scope-foot strong { color: var(--text); font-weight: 600; font-family: ui-monospace, monospace; font-size: 12.5px; }
.mandatory-text { color: var(--mand); }

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  background: var(--brand);
  color: #fff;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .15s, transform .1s;
  box-shadow: 0 4px 14px rgba(30, 58, 95, .25);
}
.btn-primary:active { transform: scale(0.98); background: var(--brand-2); }
.btn-primary.disabled { opacity: 0.5; pointer-events: none; box-shadow: none; }
.btn-primary.flex1 { flex: 1; }

.legal {
  font-size: 11px;
  color: var(--text-4);
  text-align: center;
  line-height: 1.6;
  padding: 0 12px;
  margin-top: 4px;
}

/* ============================================================
   SITE PHOTO
   ============================================================ */
.site-photo {
  width: 100%;
  height: 100%;
  position: relative;
  background: #475569;
  overflow: hidden;
}
.site-photo svg { display: block; }

/* PINS */
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  font-family: ui-monospace, "SF Mono", monospace;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  cursor: pointer;
  z-index: 3;
}
.pin-num { position: relative; z-index: 2; }
.pin-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: pulse 2s infinite;
}
.pin-high { background: var(--warn); color: var(--warn); }
.pin-high .pin-num { color: #fff; }
.pin-medium { background: #c2410c; color: #c2410c; }
.pin-medium .pin-num { color: #fff; }
.pin.active { transform: translate(-50%, -50%) scale(1.2); box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.pin.active .pin-pulse { opacity: 1; }

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ============================================================
   PROCESSING SCREEN
   ============================================================ */
.processing-screen { background: #000; }
.proc-photo {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.proc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,13,18,.3), rgba(10,13,18,.85));
  pointer-events: none;
}
.proc-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(110, 155, 216, 0.3), rgba(110, 155, 216, 0.6), rgba(110, 155, 216, 0.3), transparent);
  animation: scan 2.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes scan {
  0% { top: -80px; }
  100% { top: 100%; }
}

.proc-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 22px 32px;
  color: #fff;
  z-index: 3;
}
.proc-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.proc-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: .01em;
}
.proc-stages {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
}
.proc-stage {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,.4);
  transition: color .3s;
}
.proc-stage.active { color: rgba(255,255,255,.95); }
.proc-stage.done { color: rgba(255,255,255,.6); }
.proc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.proc-stage.active .proc-dot {
  box-shadow: 0 0 0 4px rgba(110, 155, 216, .3);
}
.proc-stage.done .proc-dot {
  background: #4ade80;
}
.proc-foot {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  font-family: ui-monospace, "SF Mono", monospace;
  letter-spacing: .04em;
}

/* ============================================================
   REPORT SCREEN
   ============================================================ */
.report-screen { background: var(--bg); }

.report-photo-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  flex-shrink: 0;
  background: #1e293b;
}
.photo-grad-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
  pointer-events: none;
}
.photo-meta-overlay {
  position: absolute;
  bottom: 10px;
  left: 14px;
  right: 14px;
  color: #fff;
  z-index: 4;
}
.pmo-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: rgba(255,255,255,.85);
  font-family: ui-monospace, "SF Mono", monospace;
  margin-bottom: 4px;
}
.pmo-dot { color: rgba(255,255,255,.5); }
.pmo-scene {
  font-size: 13px;
  color: #fff;
  line-height: 1.4;
  font-weight: 500;
}

/* SUMMARY */
.report-summary {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
}
.sum-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.sum-num {
  font-size: 19px;
  font-weight: 700;
  font-family: ui-monospace, "SF Mono", monospace;
  letter-spacing: -.02em;
}
.sum-warn { color: var(--warn); }
.sum-ok { color: var(--ok); }
.sum-q { color: var(--q); }
.sum-lbl {
  font-size: 12px;
  color: var(--text-3);
  margin-left: -2px;
  margin-right: 4px;
}
.sum-sep {
  width: 1px;
  height: 14px;
  background: var(--border-strong);
  margin: 0 4px;
}
.sum-mand {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--warn);
  background: var(--warn-soft);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--warn-border);
}

/* TABS */
.report-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
  transition: background .15s;
}
.tab.active {
  background: var(--brand);
  color: #fff;
}
.tab-n {
  font-family: ui-monospace, monospace;
  font-size: 11.5px;
  opacity: 0.8;
}

/* SCROLLABLE BODY */
.report-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 100px;
  display: block;
  position: relative;
}
.report-scroll > .section { margin-bottom: 14px; }
.report-scroll > .section:last-of-type { margin-bottom: 0; }

/* SECTION */
.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  min-height: fit-content;
}
.section-warn { border-color: var(--warn-border); }
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  border-radius: 13px 13px 0 0;
}
.section-warn .section-head { background: var(--warn-soft); border-bottom-color: var(--warn-border); }
.section-ok .section-head { background: var(--ok-soft); border-bottom-color: var(--ok-border); }
.section-q .section-head { background: var(--q-soft); border-bottom-color: var(--q-border); }

.section-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-icon-warn { background: var(--warn); color: #fff; }
.section-icon-ok { background: var(--ok); color: #fff; }
.section-icon-q { background: var(--q); color: #fff; }

.section-head-text { flex: 1; }
.section-title { font-size: 14.5px; font-weight: 600; }
.section-warn .section-title { color: var(--warn-text); }
.section-ok .section-title { color: var(--ok-text); }
.section-q .section-title { color: var(--q-text); }
.section-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.section-count {
  font-size: 16px;
  font-weight: 700;
  font-family: ui-monospace, "SF Mono", monospace;
  min-width: 24px;
  text-align: right;
}
.count-warn { color: var(--warn); }
.count-ok { color: var(--ok); }
.count-q { color: var(--q); }

.section-body {
  display: flex;
  flex-direction: column;
}

/* ITEM */
.item {
  border-bottom: 1px solid var(--border);
}
.item:last-child { border-bottom: 0; }
.item.active { background: var(--brand-soft); }

.item-head {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
  transition: background .15s;
}
.item-head.static { cursor: default; }

.item-pin {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: ui-monospace, "SF Mono", monospace;
  color: #fff;
  margin-top: 1px;
}
.item-pin.sev-high { background: var(--warn); }
.item-pin.sev-medium { background: #c2410c; }
.item-pin.ok { background: var(--ok); }
.item-pin.q { background: var(--q); color: #fff; }

.item-head-text { flex: 1; min-width: 0; }
.item-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}
.item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-3);
}
.item-meta-dot { color: var(--text-4); }

.sev-tag {
  font-size: 10.5px;
  padding: 1.5px 6px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: .04em;
}
.sev-tag.sev-high { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-border); }
.sev-tag.sev-medium { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
:root[data-theme="dark"] .sev-tag.sev-medium { background: #2a1a09; color: #fb923c; border-color: #5a2f10; }

/* ITEM BODY */
.item-body {
  padding: 0 14px 14px 50px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: slideDown .25s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.obs-label {
  font-size: 10.5px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-family: ui-monospace, "SF Mono", monospace;
  margin-top: 4px;
}
.obs-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}

/* CLAUSE CARD */
.clause-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
.clause-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text);
}
.clause-head-l {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
}
.clause-code {
  font-family: ui-monospace, "SF Mono", monospace;
  font-weight: 600;
  color: var(--brand);
  font-size: 12px;
}
.clause-mand {
  font-size: 9.5px;
  background: var(--warn);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: .06em;
}
.clause-name {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 4px;
  line-height: 1.4;
}
.clause-name-vague {
  color: var(--text-3);
  font-style: italic;
}
.clause-text {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.clause-text.open { max-height: 200px; }
.clause-text-inner {
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--surface);
  border-left: 2px solid var(--brand);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-2);
  border-radius: 0 4px 4px 0;
  font-style: italic;
}

/* ITEM ACTIONS */
.item-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.btn-mini {
  font-size: 12px;
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-2);
  font-weight: 500;
}
.btn-mini.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* OK & Q ITEMS */
.ok-detail, .q-reason {
  padding: 0 14px 12px 50px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
}
.q-reason {
  display: flex;
  gap: 8px;
  padding-bottom: 6px;
  align-items: baseline;
}
.q-reason:last-child { padding-bottom: 12px; }
.q-clauses, .ok-clauses {
  padding: 0 14px 12px 50px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.q-clauses .obs-label, .ok-clauses .obs-label { margin-top: 0; margin-bottom: 2px; }

/* ADMIN VIEW */
.admin-view-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  font-size: 12.5px;
  color: #9a3412;
}
.admin-view-banner strong { color: #7c2d12; font-weight: 600; }
.admin-view-tag {
  background: #ea580c;
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 2px 7px;
  border-radius: 4px;
}
.admin-view-dot { color: #c2410c; opacity: .6; }

.admin-fb-section {
  margin: 12px 12px 4px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.admin-fb-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.admin-fb-empty {
  font-size: 12.5px;
  color: var(--text-3);
  padding: 4px 0;
}
.admin-fb-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-fb-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 12.5px;
  line-height: 1.55;
}
.admin-fb-label {
  flex-shrink: 0;
  width: 60px;
  font-size: 10.5px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: ui-monospace, "SF Mono", monospace;
}
.admin-fb-rating { font-size: 14px; }
.admin-fb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.admin-fb-tag {
  font-size: 11.5px;
  padding: 2px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
}
.admin-fb-comment {
  color: var(--text);
  white-space: pre-wrap;
}
.admin-fb-time {
  color: var(--text-3);
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 11.5px;
}
.q-label {
  font-size: 10.5px;
  color: var(--q);
  background: var(--q-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  flex-shrink: 0;
  font-family: ui-monospace, "SF Mono", monospace;
  letter-spacing: .04em;
  border: 1px solid var(--q-border);
}

/* REPORT FOOTER */
.report-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 4px;
}
.foot-engine {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-3);
  font-family: ui-monospace, "SF Mono", monospace;
}
.foot-disclaim {
  font-size: 10.5px;
  color: var(--text-4);
  line-height: 1.6;
}

/* CTA — sticky */
.report-cta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px 14px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  z-index: 20;
}
.report-cta .btn-primary, .report-cta .btn-secondary { height: 46px; font-size: 14px; }

/* SCROLLBAR */
.upload-body::-webkit-scrollbar,
.report-scroll::-webkit-scrollbar,
.report-tabs::-webkit-scrollbar { width: 4px; height: 4px; }
.upload-body::-webkit-scrollbar-thumb,
.report-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
