:root {
  --bg: #0d1016;
  --panel: #141922;
  --panel-2: #1a202b;
  --line: #262e3b;
  --text: #e6e9ef;
  --muted: #8b95a7;
  --faint: #5d6778;
  --accent: #f2b33d;       /* amber: the "signal" colour */
  --accent-ink: #1b1405;
  --link: #7cc4ff;
  --high: #ff6b6b;
  --high-bg: rgba(255, 107, 107, .12);
  --med: #f2b33d;
  --med-bg: rgba(242, 179, 61, .12);
  --low: #7cc4ff;
  --low-bg: rgba(124, 196, 255, .10);
  --ok: #4fd1a5;
  --radius: 10px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
button, input, select, textarea { font: inherit; color: inherit; }
code, pre, .mono { font-family: var(--mono); font-size: 13px; }
[hidden] { display: none !important; }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; }
.logo { width: 26px; height: 26px; flex: none; display: block; }
.brand.big { font-size: 18px; margin-bottom: 40px; }
.brand.big .logo { width: 34px; height: 34px; }

/* ---------- buttons ---------- */
.btn { border: 1px solid var(--line); background: var(--panel-2); padding: 9px 16px; border-radius: 8px;
  cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s; }
.btn:hover { border-color: #3a4558; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.small { padding: 5px 11px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.linkish { background: none; border: 0; color: var(--link); cursor: pointer; padding: 0; font-size: 13px; }

/* ---------- landing ---------- */
.landing { min-height: 100%; display: flex; align-items: center; padding: 48px 20px;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(242,179,61,.08), transparent 60%), var(--bg); }
.landing-inner { max-width: 760px; margin: 0 auto; }
.landing h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; margin: 0 0 18px; letter-spacing: -.5px; }
.lede { color: var(--muted); font-size: 17px; max-width: 640px; }
.landing-actions { display: flex; gap: 12px; margin: 28px 0 36px; flex-wrap: wrap; }
.invite-note { margin: -20px 0 32px; color: var(--muted); font-size: 14px; }
.landing-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; }
.landing-points li { color: var(--muted); }
.landing-points b { color: var(--text); font-weight: 600; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 228px 1fr; min-height: 100%; }
.sidebar { border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 26px;
  position: sticky; top: 0; height: 100vh; background: #0f131a; }
.sidebar .brand { padding: 0 8px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-weight: 500; }
.sidebar nav a:hover { color: var(--text); background: var(--panel); }
.sidebar nav a.on { color: var(--text); background: var(--panel-2); box-shadow: inset 2px 0 0 var(--accent); }
.ico { width: 18px; text-align: center; opacity: .8; }
.count { margin-left: auto; font-size: 12px; background: var(--high-bg); color: var(--high); border-radius: 20px; padding: 0 8px; }
.count:empty { display: none; }
.me { margin-top: auto; padding: 0 8px; display: grid; gap: 8px; }
.me-email { color: var(--faint); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

main { padding: 26px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.view { display: none; max-width: 1180px; }
.view.on { display: block; }
.view-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.view-head h2 { margin: 0; font-size: 22px; letter-spacing: -.2px; }

/* ---------- panels / stats ---------- */
.grid { display: grid; gap: 14px; }
.stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 14px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.stat .v { font-size: 26px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .s { color: var(--faint); font-size: 12px; }
.stat.alert .v { color: var(--high); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.panel h3 { margin: 0 0 12px; font-size: 14px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .two { grid-template-columns: 1fr; } }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; height: 100%; justify-content: flex-end; }
.bar .col { width: 100%; max-width: 46px; background: #2b3546; border-radius: 4px 4px 0 0; position: relative; min-height: 2px; }
.bar .col i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--high); border-radius: 0 0 0 0; opacity: .85; }
.bar .lbl { font-size: 11px; color: var(--faint); white-space: nowrap; }
.kv { width: 100%; border-collapse: collapse; }
.kv td { padding: 5px 0; border-bottom: 1px solid var(--line); }
.kv td:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.kv tr:last-child td { border-bottom: 0; }
.meter { height: 4px; background: var(--panel-2); border-radius: 2px; margin-top: 4px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th { text-align: left; font-weight: 600; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--line);
  white-space: nowrap; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; background: var(--panel-2); position: sticky; top: 0; }
table.data td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.nowrap { white-space: nowrap; }
table.data td.mono { overflow-wrap: anywhere; min-width: 130px; }
table.data td.detail { min-width: 260px; }
.clip { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sev { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; letter-spacing: .4px; }
.sev.HIGH { color: var(--high); background: var(--high-bg); }
.sev.MEDIUM { color: var(--med); background: var(--med-bg); }
.sev.LOW { color: var(--low); background: var(--low-bg); }
.pill.nowrap { white-space: nowrap; }
.pill { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 20px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.status-ready { color: var(--ok); } .status-failed, .status-blocked { color: var(--high); }
.status-processing, .status-waiting { color: var(--accent); }
.fail { color: var(--high); } .succ { color: var(--ok); }
.section-title { margin: 26px 0 10px; font-size: 15px; font-weight: 600; display: flex; align-items: baseline; gap: 10px; }
.section-title small { color: var(--faint); font-weight: 400; }

/* ---------- empty ---------- */
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--muted); }
.empty b { color: var(--text); display: block; font-size: 17px; margin-bottom: 6px; }

/* ---------- uploads ---------- */
.drop { display: block; border: 1.5px dashed #3a4558; border-radius: 14px; padding: 34px 20px; text-align: center; cursor: pointer;
  background: var(--panel); transition: border-color .15s, background .15s; margin-bottom: 16px; }
.drop:hover, .drop.over { border-color: var(--accent); background: #18191a; }
.drop-title { font-size: 17px; font-weight: 600; }
.drop-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.up-row { display: grid; grid-template-columns: 1fr 120px; gap: 12px; align-items: center; font-size: 13px; margin-bottom: 8px; }
.progress { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.formats { margin-top: 22px; color: var(--muted); }
.intel-form { display: grid; gap: 10px; margin-bottom: 14px; }
.intel-form-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.intel-form input:not([type=file]), .intel-form select, .intel-form textarea { background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; }
.intel-form input:not([type=file]) { flex: 1; min-width: 200px; }
.intel-form textarea { font-family: var(--mono); font-size: 13px; resize: vertical; width: 100%; }
.intel-form :focus { outline: none; border-color: var(--accent); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.stat.intel .v { color: var(--med); }
.formats summary { cursor: pointer; color: var(--text); font-weight: 500; }
.format-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 14px; font-size: 13.5px; }
.format-grid h4 { margin: 0 0 4px; color: var(--text); font-size: 14px; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: 18px; margin-bottom: 14px; }
.msg-q { align-self: flex-end; background: var(--panel-2); border: 1px solid var(--line); padding: 10px 14px; border-radius: 14px 14px 4px 14px;
  max-width: 80%; white-space: pre-wrap; }
.msg-a { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; max-width: 100%; min-width: 0; }
.msg-a .who { font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 6px; }
.md { overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; } .md > :last-child { margin-bottom: 0; }
.md table { border-collapse: collapse; margin: 10px 0; font-size: 13.5px; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line); padding: 5px 10px; text-align: left; }
.md th { background: var(--panel-2); }
.md pre { background: #0b0e13; border: 1px solid var(--line); border-radius: 8px; padding: 12px; overflow-x: auto; }
.md code { background: #0b0e13; padding: 1px 5px; border-radius: 4px; }
.md pre code { background: none; padding: 0; }
.md h1, .md h2, .md h3 { font-size: 16px; margin: 18px 0 8px; }
.working { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.dots::after { content: ""; animation: dots 1.4s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.steps { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.steps summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.step { margin-top: 10px; font-size: 13px; }
.step .p { color: var(--text); }
.step .meta { color: var(--faint); }
.step pre { margin: 6px 0; background: #0b0e13; border: 1px solid var(--line); border-radius: 8px; padding: 10px; overflow-x: auto; white-space: pre-wrap; }
.step .err { color: var(--high); }
.live-steps { margin-top: 8px; font-size: 13px; color: var(--faint); }
.live-steps div::before { content: "› "; color: var(--accent); }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 20px; padding: 6px 12px; cursor: pointer; font-size: 13px; text-align: left; }
.chip:hover { color: var(--text); border-color: #3a4558; }
.ask-box { display: flex; gap: 10px; position: sticky; bottom: 12px; background: var(--bg); padding-top: 6px; }
.ask-box textarea { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; resize: vertical; min-height: 52px; }
.ask-box textarea:focus, .filters input:focus, .filters select:focus { outline: none; border-color: var(--accent); }
.hint { color: var(--faint); font-size: 12.5px; margin-top: 8px; }

/* ---------- findings / explore ---------- */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { background: transparent; border: 0; padding: 6px 12px; cursor: pointer; color: var(--muted); font-size: 13px; }
.seg button.on { background: var(--panel-2); color: var(--text); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filters input[type=search] { flex: 1; min-width: 220px; }
.filters input, .filters select { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.check { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; color: var(--muted); font-size: 13px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 10; max-width: calc(100% - 32px); }
.toast.error { border-color: var(--high); }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 5; height: auto; flex-direction: row; align-items: center; padding: 10px 16px; gap: 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand .app-name, .me-email { display: none; }
  .sidebar nav { flex-direction: row; }
  .sidebar nav a { white-space: nowrap; padding: 6px 10px; }
  .sidebar nav a .ico { display: none; }
  .sidebar nav a.on { box-shadow: inset 0 -2px 0 var(--accent); }
  .me { margin: 0 0 0 auto; padding: 0; }
  main { padding: 18px 16px 50px; }
  .msg-q { max-width: 92%; }
  .up-row { grid-template-columns: 1fr 70px; }
}

/* ---------- request access form ---------- */
.request-form { margin: 0 0 32px; display: grid; gap: 14px; max-width: 640px; }
.request-form h2 { margin: 0; font-size: 20px; }
.request-form p { margin: 0; }
.request-form label { display: grid; gap: 6px; font-size: 14px; color: var(--text); }
.request-form input:not([type=radio]):not([type=checkbox]), .request-form textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; width: 100%; }
.request-form :focus { outline: none; border-color: var(--accent); }
.request-form textarea { resize: vertical; }
.rf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.rf-plans { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.rf-plans legend { font-size: 14px; margin-bottom: 6px; }
.rf-plan { display: flex !important; grid-template-columns: none; gap: 10px; align-items: flex-start; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.rf-plan:has(input:checked) { border-color: var(--accent); }
.rf-plan input { margin-top: 3px; accent-color: var(--accent); }
.rf-consent { display: flex !important; gap: 8px; align-items: center; }
.rf-consent input { accent-color: var(--accent); }
.rf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rf-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { background: transparent; border: 0; padding: 6px 12px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--panel-2); color: var(--text); }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .3px; padding: 2px 8px; border-radius: 20px;
  color: var(--accent); background: rgba(242,179,61,.14); white-space: nowrap; }

/* ---------- sign in ---------- */
.auth { min-height: 100%; display: grid; grid-template-columns: minmax(380px, 1fr) minmax(420px, 560px); }
.auth-side { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 40px 48px;
  border-right: 1px solid var(--line);
  background: radial-gradient(900px 500px at 0% 0%, rgba(242,179,61,.10), transparent 60%), #0f131a; }
.auth-side .brand.big { margin-bottom: 0; }
.auth-pitch { margin-top: auto; position: relative; z-index: 1; }
.auth-kicker { margin: 0 0 12px; font: 500 12px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: 1.6px; }
.auth-pitch h2 { margin: 0; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -.6px; font-weight: 700; }
.auth-pitch h2 span { color: var(--muted); font-weight: 500; }
.auth-ticker { position: relative; margin: 32px -48px 28px; height: 220px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.auth-ticker-inner { padding: 0 48px; font: 12.5px/1.95 var(--mono); color: var(--faint); white-space: nowrap; animation: tick 40s linear infinite; }
.auth-ticker-inner div { overflow: hidden; text-overflow: ellipsis; }
.auth-ticker-inner .t { color: #3f4a5c; margin-right: 10px; }
.auth-ticker-inner .hit { color: var(--text); }
.auth-ticker-inner .hit .tag { color: var(--accent-ink); background: var(--accent); border-radius: 3px; padding: 0 5px; margin-right: 8px; font-weight: 500; }
.auth-ticker-inner .hit.high .tag { background: var(--high); color: #2a0b0b; }
@keyframes tick { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .auth-ticker-inner { animation: none; } }
.auth-side-foot { margin: 0; color: var(--faint); font-size: 13px; }

.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(20px, 5vw, 64px); gap: 18px; }
.auth-card { width: 100%; max-width: 400px; margin: 0 auto; display: grid; gap: 0; }
.auth-back { justify-self: start; background: none; border: 0; padding: 0; margin-bottom: 36px; color: var(--muted); cursor: pointer; font-size: 14px; }
.auth-back:hover { color: var(--text); }
.auth-brand-mobile { display: none; margin-bottom: 28px; }
.auth-step { display: grid; gap: 16px; }
.auth-step h1 { margin: 0; font-size: 28px; letter-spacing: -.4px; line-height: 1.2; }
.auth-sub { margin: -8px 0 6px; color: var(--muted); }
.auth-step label { display: grid; gap: 7px; font-size: 14px; font-weight: 500; }
.auth-step input { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px;
  font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.auth-step input:hover { border-color: #3a4558; }
.auth-step input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,179,61,.18); }
.auth-step input[aria-invalid="true"] { border-color: var(--high); }
.auth-step input.otp { font: 500 22px var(--mono); letter-spacing: 8px; padding: 10px 14px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted);
  font-size: 13px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.pw-toggle:hover { color: var(--text); background: var(--panel-2); }
.auth-row { display: flex; justify-content: flex-end; margin-top: -6px; }
.auth-submit { width: 100%; padding: 12px 16px; font-size: 15px; margin-top: 4px; position: relative; }
.auth-submit.busy { color: transparent !important; pointer-events: none; }
.auth-submit.busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(27,20,5,.35); border-top-color: var(--accent-ink); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-alt { margin: 4px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.auth-alt .linkish, .auth-row .linkish { font-size: 14px; }
.auth-msg { margin: 18px 0 0; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--high); background: var(--high-bg);
  border: 1px solid rgba(255,107,107,.25); }
.auth-msg.ok { color: var(--ok); background: rgba(79,209,165,.10); border-color: rgba(79,209,165,.25); }
.pw-rules { list-style: none; margin: -4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 13px; color: var(--faint); }
.pw-rules li::before { content: "○"; display: inline-block; width: 18px; }
.pw-rules li.met { color: var(--ok); }
.pw-rules li.met::before { content: "✓"; }
.auth-secret { display: flex; gap: 10px; align-items: center; background: var(--panel); border: 1px dashed #3a4558; border-radius: 8px; padding: 12px 14px; }
.auth-secret code { flex: 1; font-size: 15px; letter-spacing: 1px; word-break: break-all; color: var(--text); }
.auth-foot { max-width: 400px; margin: 0 auto; width: 100%; color: var(--faint); font-size: 12.5px; text-align: center; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-brand-mobile { display: flex; }
  .auth-back { margin-bottom: 20px; }
  .auth-main { justify-content: flex-start; padding-top: 32px; }
}

/* ---------- account unavailable ---------- */
.blocked { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.blocked-card { max-width: 440px; display: grid; gap: 12px; padding: 28px; }
.blocked-card h1 { margin: 0; font-size: 22px; }
.blocked-card p { margin: 0 0 8px; color: var(--muted); }
.me-company { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* log forwarding */
.fwd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.fwd-stats .panel b { display: block; font-size: 20px; margin-top: 4px; }
.fwd-step { margin-bottom: 14px; }
.fwd-step h4 { margin: 0 0 6px; font-size: 14px; }
.fwd-step p { margin: 4px 0 8px; color: var(--muted); font-size: 13px; }
.fwd-step pre { margin: 6px 0; background: #0b0e13; border: 1px solid var(--line); border-radius: 8px; padding: 10px;
  overflow-x: auto; font-size: 12px; max-height: 320px; }
.fwd-step .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fwd-step input { background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 8px;
  padding: 8px 10px; font: inherit; min-width: 0; flex: 1 1 280px; }
.copy-wrap { position: relative; }
.copy-wrap .btn { position: absolute; top: 6px; right: 6px; }

/* possible tampering */
.tamper-badge { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600;
  background: rgba(239, 68, 68, .14); color: var(--high); border: 1px solid rgba(239, 68, 68, .4); cursor: pointer; }
.tamper-badge.reviewed { background: transparent; color: var(--muted); border-color: var(--line); }
.tamper-badge.confirmed { background: rgba(239, 68, 68, .25); }
.tamper-banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  border: 1px solid rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .08); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.tamper-banner b { color: var(--high); }
.guide { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.guide summary { cursor: pointer; color: var(--accent, var(--muted)); }
.guide ol { margin: 6px 0 0 18px; padding: 0; }
.guide li { margin: 3px 0; }
.dialog { max-width: 640px; width: calc(100% - 32px); background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; }
.dialog::backdrop { background: rgba(0, 0, 0, .6); }
.dialog h3 { margin: 0 0 10px; }
.dialog textarea { width: 100%; box-sizing: border-box; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 8px 10px; font: inherit; margin-top: 10px; }
.tamper-decision { border: 1px solid var(--line); border-radius: 8px; margin: 14px 0 0; padding: 8px 12px; display: grid; gap: 6px; }
.tamper-decision legend { color: var(--muted); font-size: 13px; padding: 0 4px; }
.dialog-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 12px; }
.dialog-actions .hint { margin-right: auto; }
.tamper-list { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.tamper-list li { margin: 4px 0; }
.tamper-history { font-size: 12px; color: var(--muted); margin-top: 10px; }
