/* White Light AC Portal & Admin */
:root {
  --bg: #06080c;
  --panel: #0d1118;
  --panel-2: #121823;
  --line: rgba(190, 210, 235, 0.09);
  --line-2: rgba(190, 210, 235, 0.17);
  --text: #f1f4f8;
  --silver: #c4cedb;
  --muted: #7d899b;
  --ice: #9adbff;
  --ice-2: #5cb6f2;
  --ice-glow: rgba(154, 219, 255, 0.3);
  --critical: #ff4d6d;
  --high: #ff8f4d;
  --medium: #f2c94c;
  --low: #7cc4ff;
  --ok: #6fe3c1;
  --font: 'Segoe UI Variable Text', 'Segoe UI', Inter, -apple-system, system-ui, sans-serif;
  --display: 'Segoe UI Variable Display', 'Segoe UI', Inter, -apple-system, system-ui, sans-serif;
  --mono: 'Cascadia Code', 'JetBrains Mono', ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: var(--ice); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { width: 18px; height: 18px; flex: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

.backdrop { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.backdrop::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(190, 210, 235, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(190, 210, 235, 0.035) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 20%, transparent 75%);
}
.backdrop::after {
  content: ''; position: absolute; left: 50%; top: -420px; width: 1000px; height: 900px; transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 0%, transparent 160deg, rgba(220, 240, 255, 0.06) 175deg, rgba(255, 255, 255, 0.10) 180deg, rgba(220, 240, 255, 0.06) 185deg, transparent 200deg);
  filter: blur(10px);
}

/* Brand mark */
.mark { width: 36px; height: 36px; border-radius: 11px; border: 1.5px solid rgba(235, 242, 250, 0.85); display: grid; place-items: center; background: linear-gradient(160deg, #141a24, #090c12); flex: none; }
.mark svg { width: 19px; height: 19px; color: #dde4ee; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand b { display: block; font-size: 14px; letter-spacing: 0.08em; }
.brand small { display: block; font-size: 10px; letter-spacing: 0.2em; color: var(--muted); }

/* Buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 11px; border: 1px solid transparent; padding: 10px 16px; font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; transition: box-shadow .2s, background .2s, transform .1s; text-decoration: none !important; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { color: #05070b; background: linear-gradient(180deg, #fff, #cfd9e5); box-shadow: 0 8px 28px rgba(154, 219, 255, 0.16); }
.btn-primary:hover { box-shadow: 0 10px 36px rgba(154, 219, 255, 0.3); }
.btn-ghost { color: var(--silver); background: rgba(255, 255, 255, 0.03); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.btn-danger { color: var(--critical); background: rgba(255, 77, 109, 0.06); border-color: rgba(255, 77, 109, 0.35); }
.btn-danger:hover { background: rgba(255, 77, 109, 0.14); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 13px; }
.btn-block { width: 100%; }
.input, .select, textarea.input {
  width: 100%; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-2); color: var(--text); border-radius: 11px; padding: 10px 12px;
  font: inherit; font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus { border-color: rgba(154, 219, 255, 0.6); box-shadow: 0 0 0 3px rgba(154, 219, 255, 0.1); }
.select option { background: #0d1118; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--silver); }
.field small { color: var(--muted); font-size: 12px; }
.check { display: flex; gap: 10px; align-items: center; color: var(--silver); cursor: pointer; font-size: 13.5px; margin-bottom: 12px; }
.check input { width: 16px; height: 16px; accent-color: #9adbff; }
.error { color: var(--critical); font-size: 13px; margin: 0 0 12px; }

/* Auth pages */
.auth { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: min(430px, 100%); padding: 32px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(20, 25, 35, 0.9), rgba(11, 14, 20, 0.9)); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55); backdrop-filter: blur(16px); }
.auth-card h1 { font-family: var(--display); font-size: 24px; margin: 24px 0 6px; }
.auth-card > p { color: var(--muted); margin: 0 0 22px; font-size: 13.5px; }
.auth-foot { margin-top: 18px; text-align: center; color: var(--muted); font-size: 13px; }

/* App shell */
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line); background: rgba(8, 10, 15, 0.8); backdrop-filter: blur(12px); padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; }
.side .brand { padding: 0 6px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: var(--silver); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.nav a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.nav a.active { background: linear-gradient(90deg, rgba(154, 219, 255, 0.12), rgba(154, 219, 255, 0.02)); color: var(--text); box-shadow: inset 2px 0 0 var(--ice); }
.nav a svg { width: 17px; height: 17px; opacity: .85; }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.me { display: flex; gap: 10px; align-items: center; padding: 0 6px; min-width: 0; }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(160deg, #1d2633, #10151d); border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 700; color: var(--ice); flex: none; }
.me-text { min-width: 0; }
.me-text b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-text small { color: var(--muted); font-size: 11.5px; }
.credit { display: inline-flex; align-items: center; gap: 9px; padding: 8px 6px 2px; color: var(--muted); font-size: 11.5px; letter-spacing: 0.02em; opacity: .85; }
.credit:hover { text-decoration: none; opacity: 1; color: var(--silver); }
.credit b { color: var(--silver); font-weight: 650; }
.credit img.raven-logo { width: 20px; height: 20px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.auth-card .credit { display: flex; justify-content: center; margin-top: 18px; }
.auth-card > .btn-block { margin-top: 10px; }
[hidden] { display: none !important; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.main { min-width: 0; padding: 28px 36px 60px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--display); font-size: 26px; margin: 0; letter-spacing: -0.01em; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.page-actions .input { width: 320px; max-width: 100%; }
.page-actions .select { width: auto; }

/* Cards & stats */
.card { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03); }
.card + .card { margin-top: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.stat { border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); padding: 16px 18px 15px 20px; position: relative; overflow: hidden; }
.stat::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--c, var(--line-2)); opacity: .9; }
.stat::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent); }
.stat b { display: block; font-family: var(--display); font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; color: var(--c, var(--text)); }
.stat span { display: block; margin-top: 4px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.stat.ice { --c: var(--ice); }
.stat.bad { --c: var(--critical); }
.stat.warn { --c: var(--medium); }
.stat.ok { --c: var(--ok); }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
.t th { text-align: left; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 9px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.t td { padding: 12px 12px; border-bottom: 1px solid var(--line); color: var(--silver); vertical-align: middle; }
.t tbody tr:last-child td { border-bottom: 0; }
.t tr.click { cursor: pointer; transition: background .12s; }
.t tr.click:hover td { background: rgba(154, 219, 255, 0.035); color: var(--text); }
.t tr.click:hover td:first-child { box-shadow: inset 2px 0 0 var(--ice); }
.t td.strong { color: var(--text); font-weight: 600; }
.empty { padding: 36px; text-align: center; color: var(--muted); }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: 7px; white-space: nowrap; color: var(--c, var(--silver)); background: color-mix(in srgb, var(--c, #8a96a8) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c, #8a96a8) 35%, transparent); }
.pill-clean, .pill-active, .pill-ok { --c: var(--ok); }
.pill-suspicious, .pill-pending, .pill-warn { --c: var(--medium); }
.pill-detected, .pill-revoked, .pill-bad, .pill-disabled { --c: var(--critical); }
.pill-used, .pill-expired, .pill-muted { --c: #8a96a8; }
.pill-admin, .pill-ice { --c: var(--ice); }
.pill-master { --c: #e9d38a; }
/* Administrator permission checkboxes (Admin → Accounts). */
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; padding: 12px 12px 2px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.18); }
.perm-grid .check { font-size: 13px; margin-bottom: 10px; }
.field > span .btn-sm { padding: 3px 9px; font-size: 11.5px; margin-left: 6px; }
/* Risk tier badge with letter grade */
.risk { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--c); white-space: nowrap; }
.risk b { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 5px; border-radius: 7px; font-size: 12.5px; background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.risk-none { --c: var(--ok); }
.risk-low { --c: #8fe3a8; }
.risk-medium { --c: var(--medium); }
.risk-high { --c: var(--high); }
.risk-critical { --c: var(--critical); }
/* Health meter */
.health { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--c); white-space: nowrap; }
.health i { display: block; width: 54px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.health u { display: block; height: 100%; background: var(--c); border-radius: 99px; }
.health-excellent { --c: var(--ok); }
.health-good { --c: var(--ice); }
.health-fair { --c: var(--medium); }
.health-poor { --c: var(--critical); }
.pin-code { font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: 0.12em; color: var(--text); }
.copy { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; vertical-align: middle; }
.copy:hover { color: var(--ice); background: rgba(154, 219, 255, 0.08); }
.copy svg { width: 15px; height: 15px; }

/* Banner */
.banner { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(242, 201, 76, 0.35); background: rgba(242, 201, 76, 0.06); margin-bottom: 18px; color: var(--silver); }
.banner svg { color: var(--medium); width: 22px; height: 22px; }
.banner b { color: var(--text); }
.banner .btn { margin-left: auto; }

/* Chart */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column-reverse; gap: 2px; min-width: 0; position: relative; height: 100%; }
.bar i { display: block; border-radius: 3px; min-height: 0; }
.bar .c { background: var(--ok); opacity: .75; }
.bar .s { background: var(--medium); }
.bar .d { background: var(--critical); }
.bar-label { font-size: 10px; color: var(--muted); text-align: center; margin-top: 6px; }
.bar-axis { display: flex; gap: 6px; }
.bar-axis span { flex: 1; text-align: center; font-size: 10px; color: var(--muted); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Modal */
.modal-bg { position: fixed; inset: 0; z-index: 40; background: rgba(3, 5, 8, 0.7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.modal { width: min(460px, 100%); border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #151a24, #0b0e14); padding: 26px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7); }
.modal h3 { margin: 0 0 6px; font-size: 19px; }
.modal > p { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.keys { font-family: var(--mono); font-size: 13px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; max-height: 260px; overflow: auto; white-space: pre; user-select: all; }

/* Toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 11px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: #121823; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); font-size: 13px; max-width: 380px; }
.toast.err { border-color: rgba(255, 77, 109, 0.45); }
.toast.ok { border-color: rgba(111, 227, 193, 0.45); }

/* Scan view */
.scan-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.related { display: flex; flex-wrap: wrap; gap: 8px; }
.related a { font-size: 12.5px; border: 1px solid var(--line-2); border-radius: 9px; padding: 6px 10px; color: var(--silver); display: inline-flex; gap: 8px; align-items: center; }
.related a:hover { color: var(--text); text-decoration: none; border-color: rgba(255, 255, 255, 0.3); }
textarea.code { font-family: var(--mono); font-size: 12.5px; min-height: 480px; resize: vertical; line-height: 1.5; }

/* Landing */
.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 20px 40px; max-width: 1240px; margin: 0 auto; }
.top-nav { display: flex; gap: 8px; align-items: center; }
.top-nav a.link { color: var(--silver); padding: 8px 12px; font-weight: 600; }
.top-nav a.link:hover { color: var(--text); text-decoration: none; }
.land { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 40px 80px; }
.land-hero { text-align: center; padding: 70px 0 60px; display: flex; flex-direction: column; align-items: center; }
.land-tile { width: 108px; height: 108px; border-radius: 30px; border: 1.5px solid rgba(235, 242, 250, 0.85); display: grid; place-items: center; background: linear-gradient(160deg, #141a24, #090c12); box-shadow: 0 0 60px rgba(154, 219, 255, 0.12), 0 20px 50px rgba(0, 0, 0, 0.5); }
.land-tile svg { width: 46px; height: 46px; color: #dde4ee; }
.land-hero h1 { font-family: var(--display); font-size: clamp(40px, 7vw, 68px); margin: 30px 0 0; letter-spacing: 0.01em; line-height: 1; background: linear-gradient(180deg, #fff 30%, #c2ccd8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.land-cat { margin-top: 16px; font-size: 17px; letter-spacing: 0.06em; color: #b7c3d4; }
.land-div { width: min(560px, 80%); height: 1px; margin: 26px 0 22px; background: linear-gradient(90deg, transparent, rgba(190, 210, 235, 0.35), transparent); }
.land-tag { font-family: var(--display); font-size: clamp(24px, 3.5vw, 32px); font-weight: 700; }
.land-pillars { margin-top: 14px; color: #95a2b4; font-size: 15px; }
.land-cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.feature { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.feature .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(154, 219, 255, 0.25); background: rgba(154, 219, 255, 0.06); color: var(--ice); margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 13.5px; }
.section-title { text-align: center; margin: 80px 0 26px; }
.section-title h2 { font-family: var(--display); font-size: 30px; margin: 0; }
.section-title p { color: var(--muted); margin: 8px 0 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--panel); position: relative; }
.step em { font-style: normal; font-family: var(--mono); color: var(--ice); font-size: 12px; letter-spacing: 0.1em; }
.step h3 { margin: 8px 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 13.5px; }
.foot { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 26px 40px; text-align: center; color: var(--muted); font-size: 12.5px; }

.compare-list { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.compare-item { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,0.18); }
.compare-item b { font-size: 13.5px; }
.compare-item .pill { align-self: flex-start; }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; gap: 12px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav-label { display: none; }
  .side-foot { margin: 0; border: 0; padding: 0; flex-direction: row; }
  .main { padding: 20px 16px 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .features, .steps { grid-template-columns: 1fr; }
  .top, .land { padding-left: 16px; padding-right: 16px; }
}

/* Player lookup & flags */
.lookup-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.lookup-form .lookup-kind { width: auto; min-width: 160px; }
.lookup-form .input { flex: 1; min-width: 240px; }
.lookup-hint { font-size: 13px; }
.small { font-size: 12px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kv > div { display: flex; flex-direction: column; gap: 3px; }
.kv span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.history-line { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; color: var(--silver); }
.history-line b { font-size: 18px; color: var(--text); }
.history-line b.bad { color: var(--critical); }
.history-line b.warn { color: var(--medium); }
.fail-list { display: grid; gap: 5px; font-size: 12.5px; color: var(--silver); }
.fail-list .pill { font-size: 10px; padding: 2px 6px; }
td .pill + .pill, td div + .pill { margin-top: 4px; }

/* Raven brand mark (common.js icon('eye') → /raven.svg) */
.mark img.raven-logo { width: 25px; height: 25px; }
.land-tile img.raven-logo { width: 80px; height: 80px; }
.nav a img.raven-logo { width: 18px; height: 18px; }
img.raven-logo { display: block; flex: none; }

/* Flag disputes */
.dispute-card { width: min(560px, 100%); }
.dispute-card textarea.input { resize: vertical; min-height: 120px; }
.dispute-card .field em { font-style: normal; font-weight: 400; font-size: 11.5px; }
.dispute-item { margin-top: 10px; }
.dispute-item p { margin: 0 0 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.nav .count { margin-left: auto; font-size: 11px; font-weight: 700; color: #05070b; background: var(--medium); border-radius: 999px; padding: 1px 7px; }
.dispute-row { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--panel); margin-bottom: 10px; }
.dispute-row .card-head { margin-bottom: 8px; }
.dispute-row blockquote { margin: 10px 0; padding: 10px 14px; border-left: 2px solid var(--ice); background: rgba(154, 219, 255, 0.04); color: var(--text); white-space: pre-wrap; border-radius: 0 10px 10px 0; }
.dispute-row .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }

/* Case review, mutes, identity links, live PIN progress */
.pill-case-open { --c: #8a96a8; }
.pill-case-reviewing { --c: var(--ice); }
.pill-case-cleared, .pill-case-false_positive { --c: var(--ok); }
.pill-case-confirmed, .pill-case-banned { --c: var(--critical); }
.pill-case-appealed { --c: var(--medium); }
.pill-override { --c: var(--high); text-transform: none; letter-spacing: 0; }
.cell-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.case-card .case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.case-card .case-grid .field { margin-bottom: 0; }
.case-card textarea.input { resize: vertical; min-height: 44px; }
.notes { display: flex; flex-direction: column; gap: 8px; }
.note { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: rgba(0, 0, 0, 0.18); }
.note-head { display: flex; gap: 10px; align-items: center; font-size: 12.5px; margin-bottom: 4px; }
.note-head .copy { margin-left: auto; font-size: 12px; }
.note-body { white-space: pre-wrap; color: var(--silver); font-size: 13px; }
.link-lines { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--silver); }
.link-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.link-line b { color: var(--text); }
.link-line b.warn, .link-tree b.warn { color: var(--medium); }
a.ident { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line-2); border-radius: 9px; padding: 3px 8px 3px 4px; color: var(--silver); font-size: 12.5px; }
a.ident:hover { text-decoration: none; color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.ident-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.ident-value { font-size: 15px; color: var(--text); word-break: break-all; }
.link-tree, .link-tree ul { list-style: none; margin: 0; padding: 0; }
.link-tree > li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.link-tree > li:last-child { border-bottom: 0; }
.link-tree ul { flex-basis: 100%; padding-left: 26px; margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.link-tree ul li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; position: relative; }
.link-tree ul li::before { content: '└'; position: absolute; left: -18px; color: var(--muted); }
.live { display: flex; gap: 6px; align-items: center; margin-top: 5px; color: var(--silver); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice-glow); animation: live-pulse 1.2s ease-in-out infinite; flex: none; }
.live-dot.ok { background: var(--ok); animation: none; }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (max-width: 960px) { .case-card .case-grid { grid-template-columns: 1fr; } }

/* Security (2FA), API keys, activity */
.qr-wrap { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.qr { width: 196px; height: 196px; display: block; border-radius: 12px; background: #fff; padding: 6px; flex: none; }
.qr-steps { flex: 1; min-width: 240px; }
.secret { font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; word-break: break-all; color: var(--text); display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.scopes { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.scopes .check { margin-bottom: 6px; }
.scopes .check small { color: var(--muted); font-weight: 400; }
.keys.token { font-size: 15px; letter-spacing: 0.04em; word-break: break-all; white-space: pre-wrap; }
.keys.codes { columns: 2; column-gap: 24px; white-space: normal; line-height: 1.9; }
.sec-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
@media (max-width: 960px) { .scopes { grid-template-columns: 1fr; } .keys.codes { columns: 1; } }
