/* RatChecker: dark desktop theme, values taken from the "ModGuard App Mockup" design. */
@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: block; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: block; }

:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --bg-sunken: #0e0e10;
  --panel: #121214;
  --panel-raised: #18181b;
  --card: #111113;
  --line: #1c1c1f;
  --line-2: #202023;
  --line-3: #232326;
  --line-4: #2a2a2e;
  --text: #f2f2f3;
  --text-2: #d6d6da;
  --text-3: #b4b4ba;
  --muted: #8b8b92;
  --faint: #6f6f76;
  --nav: #a0a0a8;
  --active: #1a1a1d;
  --seg-on: #1f1f23;
  --seg-off: #85858c;
  --red: #ff8a8a;
  --red-soft: rgba(255, 107, 107, .12);
  --red-tint: rgba(255, 107, 107, .08);
  --red-edge: rgba(255, 107, 107, .28);
  --red-text: #ffb0b0;
  --amber: #f2b84b;
  --amber-soft: rgba(242, 184, 75, .12);
  --amber-edge: rgba(242, 184, 75, .3);
  --green: #5fd49a;
  --green-soft: rgba(95, 212, 154, .12);
  --blue: #8fb4ff;
  --blue-soft: rgba(143, 180, 255, .12);
  --code-kw: #9aa4ff;
  --code-str: #8fd6a8;
  --code-com: #6b6b72;
  --code-num: #f2b84b;
  --gutter: #4d4d54;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 13px; -webkit-font-smoothing: antialiased; overflow: hidden; user-select: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
button:disabled { cursor: default; opacity: .45; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.sel { user-select: text; }
svg { flex: none; }

/* ---------- shell ---------- */
.window { height: 100vh; display: flex; flex-direction: column; border: 1px solid var(--line-3); }
.titlebar { height: 40px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 16px; border-bottom: 1px solid var(--line); }
.titlebar .brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; pointer-events: none; }
.winctl { display: flex; align-items: center; gap: 2px; color: var(--muted); }
.winctl button { width: 34px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.winctl button:hover { background: var(--active); color: var(--text); }
.winctl button.close:hover { background: #c4314b; color: #fff; }
.body { flex: 1; min-height: 0; display: flex; }

.sidebar { width: 224px; flex: none; border-right: 1px solid var(--line); padding: 20px 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.sidebar .label { font-size: 11px; letter-spacing: .08em; color: var(--faint); padding: 0 10px 8px; }
.nav { height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border-radius: 8px; color: var(--nav); font-size: 13.5px; text-align: left; width: 100%; }
.nav:hover { background: #141416; color: var(--text-2); }
.nav.on { background: var(--active); color: #fff; font-weight: 500; }
.badge { margin-left: auto; font-size: 11.5px; color: var(--red); background: var(--red-soft); border-radius: 999px; padding: 1px 7px; }
.status { margin-top: auto; border: 1px solid var(--line-3); border-radius: 10px; padding: 12px; background: var(--card); }
.status .t { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.status .d { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.dot.amber { background: var(--amber); }
.dot.red { background: var(--red); }
.dot.gray { background: var(--faint); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.page { flex: 1; min-height: 0; padding: 28px 32px; display: flex; flex-direction: column; gap: 20px; }
.page.scroll { overflow-y: auto; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.h1 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.row { display: flex; align-items: center; gap: 8px; }
.grow { flex: 1; min-width: 0; }

.btn { height: 34px; padding: 0 14px; border: 1px solid var(--line-4); border-radius: 8px; font-size: 13px; color: var(--text-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover:not(:disabled) { background: #151517; border-color: #36363b; }
.btn.primary { border: 0; padding: 0 16px; font-weight: 600; background: var(--text); color: var(--bg); }
.btn.primary:hover:not(:disabled) { background: #ffffff; }
.btn.small { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn.danger { border-color: rgba(255, 107, 107, .35); color: var(--red-text); }
.btn.danger:hover:not(:disabled) { background: var(--red-tint); border-color: rgba(255, 107, 107, .5); }
.btn.icon { width: 34px; padding: 0; justify-content: center; color: var(--text-3); }
.link { color: var(--muted); font-size: 12.5px; }
.link:hover { color: var(--text-2); text-decoration: underline; }

/* ---------- banners ---------- */
.banner { display: flex; align-items: center; gap: 14px; border-radius: 12px; padding: 14px 16px; }
.banner.red { background: var(--red-tint); border: 1px solid var(--red-edge); }
.banner.amber { background: rgba(242, 184, 75, .07); border: 1px solid var(--amber-edge); }
.banner.blue { background: rgba(143, 180, 255, .07); border: 1px solid rgba(143, 180, 255, .3); }
.banner .t { font-size: 13.5px; font-weight: 500; }
.banner .d { font-size: 12.5px; margin-top: 2px; }
.banner.red .d { color: #b8a0a0; }
.banner.amber .d { color: #bfae8a; }
.banner.blue .d { color: #a3b0c8; }
.banner .x { color: var(--muted); width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.banner .x:hover { background: rgba(255, 255, 255, .06); color: var(--text); }

/* ---------- drop zone ---------- */
.drop { height: 84px; flex: none; border: 1px dashed #2e2e33; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 14px; background: var(--bg-sunken); transition: border-color .12s, background .12s; }
.drop.over { border-color: var(--blue); background: rgba(143, 180, 255, .06); }
.drop .t { font-size: 13.5px; font-weight: 500; }
.drop .d { font-size: 12.5px; color: var(--faint); margin-top: 2px; }

/* ---------- tables ---------- */
.table { flex: 1; min-height: 0; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.thead, .tr { display: grid; align-items: center; padding: 0 18px; gap: 12px; }
.thead { height: 38px; flex: none; font-size: 11px; letter-spacing: .08em; color: var(--faint); border-bottom: 1px solid var(--line); }
.tbody { flex: 1; min-height: 0; overflow-y: auto; }
.tr { min-height: 58px; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
.tr:last-child { border-bottom: 0; }
button.tr:hover, .tr.hover:hover { background: #151517; }
.tr.sel { background: var(--panel-raised); }
.cols-scan { grid-template-columns: minmax(0, 1fr) 140px 150px 110px 110px; }
.cols-quar { grid-template-columns: minmax(0, 1fr) 150px 140px 260px; }
.cols-nested { grid-template-columns: minmax(0, 1fr) 160px 90px 90px 140px; }
.cell-name { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-sub { font-size: 12px; color: var(--faint); margin-top: 2px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell { font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell.muted { color: var(--muted); }
.cell.strong { color: var(--text-2); }
.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); padding: 40px; text-align: center; }
.empty .t { color: var(--text-2); font-size: 14px; font-weight: 500; }

/* ---------- pills & chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.Clean { color: var(--green); background: var(--green-soft); }
.pill.Suspicious { color: var(--amber); background: var(--amber-soft); }
.pill.Quarantined { color: var(--red); background: var(--red-soft); }
.pill.Scanning { color: var(--blue); background: var(--blue-soft); }
.pill.Scanning::before { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.sev { font-size: 11px; font-weight: 600; letter-spacing: .04em; border-radius: 5px; padding: 2px 6px; flex: none; }
.sev.CRITICAL, .sev.HIGH { color: var(--red); background: var(--red-soft); }
.sev.MEDIUM { color: var(--amber); background: var(--amber-soft); }
.sev.LOW { color: var(--blue); background: var(--blue-soft); }
.sev.INFO { color: var(--muted); background: rgba(255, 255, 255, .06); }
.chip { font-family: var(--mono); font-size: 11px; color: var(--text-3); background: #1a1a1d; border: 1px solid var(--line-3); border-radius: 5px; padding: 1px 6px; }

/* ---------- segmented & switch ---------- */
.seg { display: inline-flex; background: var(--bg-sunken); border: 1px solid #1f1f23; border-radius: 8px; padding: 3px; gap: 2px; flex: none; }
.seg button { height: 26px; padding: 0 12px; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--seg-off); }
.seg button:hover { color: var(--text-2); }
.seg button.on { color: #fff; background: var(--seg-on); font-weight: 600; }
.seg.lg button { height: 28px; padding: 0 14px; font-size: 12.5px; }
.switch { width: 40px; height: 24px; border-radius: 12px; background: #2a2a2e; position: relative; flex: none; transition: background .12s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #8b8b92; transition: left .12s, background .12s; }
.switch[aria-checked="true"] { background: var(--text); }
.switch[aria-checked="true"]::after { left: 19px; background: var(--bg); }

/* ---------- settings ---------- */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.section-label { font-size: 11px; letter-spacing: .08em; color: var(--faint); margin-bottom: 10px; }
.card { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; }
.setting { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; }
.setting .t { font-size: 13.5px; font-weight: 500; }
.setting .d { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.setting .path { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.input { height: 32px; background: var(--bg-sunken); border: 1px solid var(--line-4); border-radius: 8px; padding: 0 10px; font-size: 12.5px; color: var(--text); min-width: 0; }
.input:focus { outline: none; border-color: #4a4a52; }
.note { font-size: 12px; color: var(--muted); line-height: 1.5; padding: 12px 16px; border-top: 1px solid var(--line); }

/* ---------- report ---------- */
.rep-head { display: flex; align-items: center; gap: 16px; }
.rep-head .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score { text-align: right; padding-right: 6px; }
.score .l { font-size: 11px; letter-spacing: .08em; color: var(--faint); }
.score .v { font-size: 22px; font-weight: 600; margin-top: 2px; }
.score .v small { font-size: 13px; font-weight: 400; color: var(--faint); }
.tabs { display: flex; align-items: flex-end; gap: 4px; border-bottom: 1px solid var(--line); flex: none; }
.tab { height: 36px; padding: 0 14px; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--text-2); }
.tab.on { color: #fff; font-weight: 500; border-bottom-color: var(--text); }
.tab .n { color: var(--faint); font-weight: 400; margin-left: 2px; }
.tab.on .n { color: var(--muted); }
.split { flex: 1; min-height: 0; display: flex; gap: 20px; }
.flist { width: 410px; flex: none; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; overflow-y: auto; }
.fitem { display: block; width: 100%; text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.fitem:last-child { border-bottom: 0; }
.fitem:hover { background: #151517; }
.fitem.sel { background: var(--panel-raised); }
.fitem .h { display: flex; align-items: center; gap: 8px; }
.fitem .h .t { font-size: 13.5px; font-weight: 500; }
.fitem .w { font-size: 12px; color: var(--muted); margin-top: 6px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.box { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 18px; }
.box .label { font-size: 11px; letter-spacing: .08em; color: var(--faint); margin-bottom: 12px; }
.dec { display: flex; align-items: center; gap: 12px; }
.dec .k { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.dec .v { font-family: var(--mono); font-size: 12.5px; background: var(--bg-sunken); border: 1px solid #1f1f23; border-radius: 8px; padding: 10px 12px; color: #c9c9ce; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dec .v.bad { background: var(--red-tint); border-color: var(--red-edge); color: var(--red-text); }
.dec .arrow { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); padding-top: 20px; flex: none; font-size: 11px; }
.ev { font-family: var(--mono); font-size: 12px; color: var(--text-3); line-height: 1.6; word-break: break-all; }
.desc { font-size: 13px; color: var(--text-3); line-height: 1.55; }
.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 16px; font-size: 13px; }
.kv .k { color: var(--muted); }
.kv .v { color: var(--text-2); word-break: break-word; }
.kv .v.mono { font-size: 12px; }
.ai-card { border-radius: 12px; padding: 14px 16px; background: rgba(143, 180, 255, .06); border: 1px solid rgba(143, 180, 255, .25); }
.ai-card .t { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; }
.ai-card .d { font-size: 13px; color: #c5cede; margin-top: 6px; line-height: 1.55; }
.ai-card ul { margin: 8px 0 0; padding-left: 18px; color: #a3b0c8; font-size: 12.5px; line-height: 1.6; }

/* ---------- code ---------- */
.code { flex: 1; min-height: 0; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; height: 48px; border-bottom: 1px solid var(--line); flex: none; }
.code-head .p { font-family: var(--mono); color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-head .e { color: var(--faint); font-size: 13px; white-space: nowrap; }
.code-body { flex: 1; min-height: 0; overflow: auto; padding: 14px 0; font-family: var(--mono); font-size: 12.5px; line-height: 21px; color: #c9c9ce; user-select: text; }
.ln { display: flex; white-space: pre; min-width: max-content; padding-right: 16px; }
.ln .n { width: 52px; text-align: right; padding-right: 16px; color: var(--gutter); flex: none; user-select: none; }
.ln.flag { background: rgba(255, 107, 107, .1); }
.ln.flag .n { color: var(--red); }
.ln.note .n { color: var(--code-str); }
.tk-kw { color: var(--code-kw); }
.tk-str { color: var(--code-str); }
.tk-com { color: var(--code-com); }
.tk-num { color: var(--code-num); }
.tk-hit { color: var(--red-text); }
.classes { width: 320px; flex: none; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; }
.classes .filter { padding: 10px; border-bottom: 1px solid var(--line); }
.classes .filter .input { width: 100%; }
.classes .list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px; }
.classes .grp { font-size: 11px; letter-spacing: .06em; color: var(--faint); padding: 10px 8px 4px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cls { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 6px 8px; border-radius: 6px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.cls:hover { background: #18181b; }
.cls.on { background: var(--active); color: #fff; }
.cls .pk { color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cls .fl { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; }
.spinner { width: 16px; height: 16px; border: 2px solid #2e2e33; border-top-color: var(--text-2); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast { min-width: 280px; max-width: 420px; background: #18181b; border: 1px solid var(--line-4); border-radius: 10px; padding: 12px 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .5); font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.toast .d { color: var(--muted); font-size: 12.5px; margin-top: 2px; line-height: 1.4; user-select: text; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #26262a; border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: #34343a; }
::-webkit-scrollbar-corner { background: transparent; }

/* ---------- PC check ---------- */
.badge.amber { color: var(--amber); background: var(--amber-soft); }
.hero { display: flex; align-items: center; gap: 16px; border-radius: 12px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line-2); flex: none; }
.hero > svg { flex: none; width: 22px; height: 22px; color: var(--text-3); }
.hero .t { font-size: 15px; font-weight: 600; }
.hero .d { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; max-width: 720px; }
.hero.clean { background: rgba(95, 212, 154, .05); border-color: rgba(95, 212, 154, .25); }
.hero.warning { background: rgba(242, 184, 75, .06); border-color: var(--amber-edge); }
.hero.infected { background: var(--red-tint); border-color: var(--red-edge); }
.steps { margin: 0; padding-left: 20px; color: var(--text-3); font-size: 13px; line-height: 1.7; }
.steps b { color: var(--text); font-weight: 600; }
.sysf { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.sysf:last-child { border-bottom: 0; }
.sysf .h { display: flex; align-items: center; gap: 10px; }
.sysf .h .t { font-size: 13.5px; font-weight: 500; }
.sysf .w { font-family: var(--mono); font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sysf .ev { background: var(--bg-sunken); border: 1px solid #1f1f23; border-radius: 8px; padding: 8px 10px; white-space: pre-wrap; max-height: 120px; overflow: auto; }
.chks { display: grid; grid-template-columns: 1fr 1fr; }
.chk { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.chk:nth-child(odd) { border-right: 1px solid var(--line); }
.cols-inst { grid-template-columns: minmax(0, 1fr) 150px 90px 170px; }
select.input { -webkit-appearance: none; appearance: none; color-scheme: dark; background-color: var(--bg-sunken); color: var(--text); padding-right: 28px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8b92' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; }
select.input option { background: var(--panel-raised); color: var(--text); }
.bar { height: 6px; border-radius: 3px; background: var(--line-3); margin-top: 8px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--blue); border-radius: 3px; transition: width .3s; }
#ai-section.flash .card { box-shadow: 0 0 0 2px var(--blue); transition: box-shadow .3s; }
#ai-section .card { transition: box-shadow .6s; }
.fine { display: flex; align-items: flex-start; gap: 6px; font-size: 11.5px; line-height: 1.45; color: var(--faint); margin-top: 6px; }
.fine svg { flex: none; margin-top: 2px; }
.ai-card .fine { color: #7d889c; margin-top: 10px; }
.chat { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat .msg { max-width: 85%; font-size: 13px; line-height: 1.5; padding: 8px 12px; border-radius: 10px; white-space: pre-wrap; }
.chat .msg.me { align-self: flex-end; background: var(--panel-raised); color: var(--text-2); border: 1px solid var(--line-3); }
.chat .msg.ai { align-self: flex-start; background: rgba(143, 180, 255, .08); color: #c5cede; }
.chat .ask { display: flex; gap: 8px; }
.chat .ask .input { flex: 1; }

/* ---------- decision prompt ---------- */
.overlay { position: fixed; inset: 0; background: rgba(5, 5, 6, .72); display: flex; align-items: center; justify-content: center; z-index: 40; backdrop-filter: blur(2px); }
.modal { width: min(600px, calc(100vw - 48px)); max-height: calc(100vh - 80px); overflow: auto; background: var(--panel); border: 1px solid var(--line-4); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 64px rgba(0, 0, 0, .6); }
.modal.red { border-color: var(--red-edge); }
.modal.amber { border-color: var(--amber-edge); }
.modal .t { font-size: 16px; font-weight: 600; }
.modal .d { font-size: 13px; color: var(--text-3); line-height: 1.5; }
.modal .ditems { display: flex; flex-direction: column; gap: 8px; }
.modal .ditem { background: var(--bg-sunken); border: 1px solid var(--line-3); border-radius: 10px; padding: 10px 12px; }
.modal .ditem ul { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--text-3); line-height: 1.55; }
.modal .buttons { flex-wrap: wrap; justify-content: flex-end; margin-top: 4px; }
.btn.primary-danger { background: #c4314b; border-color: #c4314b; color: #fff; font-weight: 600; }
.btn.primary-danger:hover:not(:disabled) { background: #d23a55; }
.btn.ghost { border-color: transparent; color: var(--muted); }
.btn.ghost:hover:not(:disabled) { color: var(--text-2); background: #151517; }

/* ---------- Modrinth origin ---------- */
.o-ok { color: var(--green); font-family: var(--sans); }
.o-warn { color: var(--amber); font-family: var(--sans); }
.origin { font-size: 12px; border-radius: 6px; padding: 3px 8px; background: rgba(255, 255, 255, .05); color: var(--muted); border: 1px solid var(--line-3); }
.origin.ok { color: var(--green); background: var(--green-soft); border-color: transparent; cursor: pointer; }
.origin.ok:hover { text-decoration: underline; }
.origin.warn { color: var(--amber); background: var(--amber-soft); border-color: transparent; }
.inline-link { color: var(--blue); font-size: inherit; padding: 0; }
.inline-link:hover { text-decoration: underline; }

/* ---------- decompiler file tree ---------- */
.list.tree { padding: 6px 4px; }
.tn { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; height: 24px; border-radius: 5px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.tn:hover { background: #18181b; color: var(--text-2); }
.tn.on { background: var(--active); color: #fff; }
.tn.root { font-weight: 600; color: var(--text-2); }
.tn .tw { width: 10px; flex: none; color: var(--faint); font-size: 10px; text-align: center; }
.tn .ti { flex: none; }
.tn .tl { overflow: hidden; text-overflow: ellipsis; }
.tn.file .tl { font-family: var(--mono); font-size: 12px; }
.tn .fl { margin-left: auto; margin-right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; }
.o-unk { color: var(--faint); font-family: var(--sans); }
.modal .dlinks { gap: 16px; margin-top: 8px; }
.modal .dlinks .inline-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; }
.modal .dlinks .inline-link svg { width: 13px; height: 13px; }
.modal .dai { display: flex; gap: 8px; margin-top: 8px; font-size: 12.5px; color: #c5cede; background: rgba(143, 180, 255, .07); border-radius: 8px; padding: 8px 10px; line-height: 1.5; }
.modal .dai.err { color: var(--amber); background: var(--amber-soft); }
.modal .dai svg { flex: none; margin-top: 2px; }
.dpill { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 10px; background: #1d1a12; border: 1px solid var(--amber-edge); color: var(--text-2); border-radius: 999px; padding: 8px 10px 8px 14px; font-size: 13px; box-shadow: 0 12px 32px rgba(0, 0, 0, .5); }
.dpill b { background: var(--amber); color: #1b1405; border-radius: 999px; padding: 3px 12px; font-size: 12.5px; }
