:root {
  color-scheme: dark;
  --bg: #0f1012;
  --surface: #141518;
  --surface-2: #1a1a1f;
  --line: #24252b;
  --text: #e8e8ee;
  --muted: #8a8b93;
  --faint: #6a6c76;
  --light: #d9d7d7;
  --danger: #d9534f;
  --warn: #c9a227;
  --ok: #4caf7a;
  --radius: 10px;
  --font: "Instrument Sans", Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
::selection { background: #fff; color: #000; }

/* ---------- buttons (madius.dev metrics) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 190px; padding: 13px 26px;
  border-radius: 10px; border: 1px solid transparent;
  font-weight: 500; font-size: .95rem; letter-spacing: -0.005em; line-height: normal;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn-light {
  background: var(--light); border-color: var(--light); color: #101116; font-weight: 600;
  box-shadow: 0 8px 26px -12px rgba(217,215,215,.55);
}
.btn-light:hover { background: #e6e4e4; border-color: #e6e4e4; }
.btn-dark { background: #1a1a1f; color: var(--text); border-color: var(--line); }
.btn-dark:hover { border-color: #34353c; background: #1e1e24; }
.btn-sm { min-width: 0; padding: 6px 11px; font-size: 12.5px; border-radius: 7px; }
.btn-sm:hover { transform: none; }
.btn-danger { background: #2a1416; color: #f1a5a2; border-color: #4a2124; }
.btn-danger:hover { background: #3a181b; }
.btn-warn { background: #2a2412; color: #e6cf7f; border-color: #4a3e1c; }
.btn-warn:hover { background: #352d15; }
.btn[disabled] { opacity: .45; pointer-events: none; }
/* same height as .input so buttons line up with form fields */
.btn-field { height: 38px; min-width: 84px; padding: 0 18px; font-size: 13.5px; border-radius: 8px; }
.btn-field:hover { transform: none; }

/* ---------- landing (madius.dev layout) ---------- */
.page { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.glow {
  position: absolute; left: 50%; top: calc(50% - 440px); width: 680px; height: 680px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(circle, rgba(226,224,224,.086) 0%, rgba(226,224,224,.03) 38%, rgba(0,0,0,0) 68%);
}
.hero {
  position: relative; z-index: 1; flex: 1 1 0%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 30px; padding: 64px 24px 24px; text-align: center;
}
.logo {
  display: block; height: 84px; width: auto; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(rgba(0,0,0,.55) 0 12px 32px); cursor: default;
}
.logo.pulse { animation: pulse .35s ease; }
.title { margin: 0; font-size: clamp(2.75rem, 11vw, 4.25rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.social { display: block; margin-top: -12px; color: var(--faint); transition: color .15s; }
.social:hover { color: var(--text); }
.social svg { width: 21px; height: 21px; display: block; }
.foot {
  position: relative; z-index: 1; display: flex; justify-content: center; gap: 14px;
  padding: 0 24px 34px; font-size: .82rem; color: var(--faint);
}
.foot a { text-decoration: none; transition: color .15s; }
.foot a:hover { color: var(--text); }
.rise { animation: rise .7s ease both; }
.rise-2 { animation-delay: .07s; }
.rise-3 { animation-delay: .14s; }
.rise-4 { animation-delay: .21s; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { transform: scale(.94); } }

@media (max-width: 460px) {
  .hero { gap: 24px; }
  .logo { height: 68px; }
  .actions { flex-direction: column; width: 100%; max-width: 300px; }
  .actions .btn { width: 100%; }
}

/* ---------- dialogs ---------- */
dialog {
  width: min(520px, calc(100vw - 32px)); padding: 0; border-radius: 14px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.dlg { padding: 22px; }
.dlg h2 { margin: 0 0 6px; font-size: 17px; }
.dlg p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.dlg-row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.code {
  display: block; width: 100%; padding: 14px; border-radius: 8px;
  background: #0b0c0e; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 13px; color: #d7d7d9; word-break: break-all; text-align: left;
  white-space: pre-wrap;
}
.gate { width: min(320px, calc(100vw - 32px)); }
.gate .dlg { display: grid; gap: 10px; }

/* ---------- forms ---------- */
.input {
  height: 38px; padding: 0 12px; border-radius: 8px; width: 100%;
  background: #0b0c0e; border: 1px solid var(--line); outline: none;
}
.input:focus { border-color: #4a4b50; }
.input::placeholder { color: var(--faint); }
label.field { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.err { color: #f1a5a2; font-size: 13px; min-height: 18px; }

/* ---------- get key ---------- */
.card {
  position: relative; width: min(440px, 100%);
  background: rgba(20,21,24,.85); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px; text-align: left; animation: rise .6s ease both;
}
.card h2 { margin: 0 0 4px; font-size: 18px; }
.card .sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.choice {
  border: 1px solid var(--line); background: #111215; border-radius: 10px; padding: 14px;
  cursor: pointer; text-align: left; transition: border-color .15s, background .15s;
}
.choice strong { display: block; font-size: 20px; letter-spacing: -.02em; }
.choice span { font-size: 12.5px; color: var(--muted); }
.choice[aria-pressed="true"] { border-color: #e4e4e6; background: #18191c; }
.card .btn { width: 100%; }
.back { display: inline-block; font-size: 13px; color: var(--faint); text-decoration: none; }
.back:hover { color: var(--text); }
.small-logo { height: 54px; filter: drop-shadow(0 0 16px rgba(255,255,255,.2)); position: relative; }

/* ---------- admin ---------- */
.admin { max-width: 1120px; margin: 0 auto; padding: 32px 16px 64px; }
.topbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { height: 34px; filter: drop-shadow(0 0 10px rgba(255,255,255,.2)); }
.brand h1 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.brand small { display: block; color: var(--faint); font-size: 12px; font-weight: 400; margin-top: 2px; }
.tiles { display: flex; gap: 8px; flex-wrap: wrap; }
.tile {
  min-width: 92px; padding: 10px 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
}
.tile b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.tile span { font-size: 11.5px; color: var(--muted); }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; margin-bottom: 16px;
}
.panel-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2 { margin: 0 auto 0 0; font-size: 15px; }
.hint { font-size: 12px; color: var(--faint); }

.chart { width: 100%; height: 160px; display: block; }
.chart .area { fill: rgba(255,255,255,.07); }
.chart .line { fill: none; stroke: #e4e4e6; stroke-width: 1.5; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart text { fill: var(--faint); font-size: 10px; font-family: var(--font); }

.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { padding: 9px 10px; border-bottom: 1px solid #1c1d21; white-space: nowrap; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.mono, .mono { font-family: var(--mono); font-size: 12.5px; }
td .acts { display: flex; gap: 6px; }
.empty { color: var(--faint); text-align: center; padding: 22px; }
.copyable { cursor: copy; }
.copyable:hover { color: #fff; }

.badge {
  display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  border: 1px solid var(--line); color: var(--muted);
}
.badge.active { color: #8fe0b0; border-color: #1f4a33; background: #11231a; }
.badge.unused { color: #cfcfd3; }
.badge.frozen { color: #e6cf7f; border-color: #4a3e1c; background: #221d0f; }
.badge.expired, .badge.used { color: #8a8b91; }
.badge.banned { color: #f1a5a2; border-color: #4a2124; background: #241113; }
.badge.free { color: #b9b9bd; }

.gen { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto; gap: 10px; align-items: end; margin-bottom: 14px; }
.gen .wide { grid-column: span 2; }
.out { margin: 0 0 14px; display: none; }
.out.show { display: block; }
.out textarea { width: 100%; min-height: 70px; resize: vertical; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .input { max-width: 280px; }
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #fff; color: #000; padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
  opacity: 0; transition: .2s ease; pointer-events: none; z-index: 10;
}
.toast.show { opacity: 1; transform: translateX(-50%); }
.ev-ok { color: var(--ok); }
.ev-bad { color: var(--danger); }

@media (max-width: 860px) {
  .gen { grid-template-columns: 1fr 1fr; }
  .gen .wide { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}

/* ---------- sensitive data (blurred until revealed) ---------- */
.input-sm { width: auto; height: 30px; padding: 0 8px; font-size: 12.5px; }
.secret-wrap { display: inline-flex; align-items: center; gap: 6px; }
.secret { filter: blur(5px); user-select: none; transition: filter .2s ease; }
.revealed .secret, .reveal-all .secret { filter: none; user-select: text; }
.eye {
  display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0;
  border: 1px solid transparent; border-radius: 6px; background: none; color: var(--faint); cursor: pointer;
}
.eye:hover { color: var(--text); background: var(--surface-2); }
.eye svg { width: 14px; height: 14px; display: block; }
.reveal-all .eye { display: none; }
#reveal-all[aria-pressed="true"] { border-color: #4a3e1c; color: #e6cf7f; }
#ban { flex-wrap: nowrap; }
#ban .input { flex: 1 1 0; min-width: 0; max-width: none; }
#ban .btn { flex: none; }

/* ---------- Discord profile chip ---------- */
.dc { display: inline-flex; align-items: center; gap: 8px; }
.dc img { width: 24px; height: 24px; border-radius: 50%; background: #2b2d31; flex: none; }
.dc b { font-weight: 600; color: var(--text); }
.dc small { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.dc small:hover { color: var(--text); }
.muted-cell { color: var(--faint); }
.lost { margin: 14px 0 0; color: var(--muted); font-size: 1rem; }

/* ---------- free key checkpoint progress ---------- */
.steps { display: flex; gap: 6px; margin: 0 0 18px; }
.steps span { flex: 1; height: 6px; border-radius: 999px; background: #24252b; }
.steps span.done { background: var(--light); box-shadow: 0 0 12px rgba(217,215,215,.35); }

/* ---------- scrollbars (themed) ---------- */
/* Chromium/Safari: pill thumb, no track. (Setting scrollbar-color here would disable these rules in Chrome 121+.) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #2a2b31; border-radius: 999px;
  border: 3px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #45464e; background-clip: padding-box; }
::-webkit-scrollbar-thumb:active { background: var(--light); background-clip: padding-box; }
::-webkit-scrollbar-button { display: none; }
/* Firefox */
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: #2a2b31 transparent; }
}

/* ---------- themed replacements for native browser UI ---------- */
.modal { width: min(400px, calc(100vw - 32px)); }
.modal .dlg { display: grid; gap: 4px; }
.modal h2 { font-size: 17px; letter-spacing: -.01em; }
.modal p { margin: 0 0 8px; }
.modal .dlg-row { margin-top: 10px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip {
  height: 28px; padding: 0 11px; border-radius: 999px; cursor: pointer;
  background: #1a1a1f; border: 1px solid var(--line); color: var(--muted); font-size: 12.5px;
  transition: color .15s, border-color .15s, background .15s;
}
.chip:hover { color: var(--text); border-color: #3a3b42; }
.chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.suffix-field { position: relative; }
.suffix-field .input { padding-right: 64px; }
.suffix-field span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 13px; pointer-events: none; }
dialog[open] { animation: pop .16s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }

.tip {
  position: fixed; z-index: 50; pointer-events: none; transform: translate(-50%, -100%);
  background: #f2f2f4; color: #0f1012; font-size: 12px; font-weight: 600;
  padding: 6px 9px; border-radius: 7px; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.45); opacity: 0; transition: opacity .12s ease;
}
.tip.show { opacity: 1; }

.sel { position: relative; }
.sel-btn {
  display: flex; align-items: center; text-align: left; cursor: pointer; padding-right: 32px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sel-btn::after {
  content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg);
  transition: transform .15s ease;
}
.sel-btn[aria-expanded="true"]::after { transform: translateY(3px) rotate(225deg); }
.sel-sm .sel-btn { height: 30px; font-size: 12.5px; padding-right: 28px; }
.sel-menu {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 100%;
  background: #17181c; border: 1px solid var(--line); border-radius: 10px; padding: 4px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55); animation: pop .12s ease;
}
.sel-sm .sel-menu { left: auto; right: 0; }
.sel-opt { padding: 8px 10px; border-radius: 7px; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.sel-opt:hover { background: #222329; color: var(--text); }
.sel-opt.on { color: var(--text); font-weight: 600; }
.sel-opt.on::before { content: "•"; margin-right: 6px; }

.exp { display: inline-flex; align-items: center; gap: 6px; }
.exp-ico { display: inline-grid; color: var(--faint); cursor: help; }
.exp-ico:hover { color: var(--text); }
.exp-ico svg { width: 14px; height: 14px; }

/* no native spinners / clear buttons / autofill tint */
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 40px #0b0c0e inset; caret-color: var(--text); }

/* ---------- landing title effects ---------- */
.title { position: relative; white-space: nowrap; }
.title .ink { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.title.typing { text-align: left; }
.caret {
  display: inline-block; width: .06em; height: .82em; margin-left: .05em; vertical-align: -.06em;
  background: var(--text); animation: blink .9s steps(1) infinite; transition: opacity .3s ease;
}
.caret.gone { opacity: 0; }
@keyframes blink { 50% { opacity: 0; } }
.baseline { display: inline-block; width: 0; height: 0; }
/* handwrite: real text hidden, SVG copy goes filled -> erased -> outline drawn -> filled */
.title.handwriting { color: transparent; }
.title .ink text {
  fill: var(--text); fill-opacity: 1; stroke: var(--text); stroke-width: 1.4;
  stroke-dasharray: 420; stroke-dashoffset: 0;
  animation: hw-erase 1s ease forwards;
}
.title.hw-draw .ink text { animation: hw-draw 2.4s ease forwards; }
@keyframes hw-erase { to { fill-opacity: 0; stroke-dashoffset: 420; } }
@keyframes hw-draw {
  0% { fill-opacity: 0; stroke-dashoffset: 420; }
  65% { fill-opacity: 0; stroke-dashoffset: 0; }
  100% { fill-opacity: 1; stroke-dashoffset: 0; }
}

/* ---------- get key: Discord sign-in ---------- */
.btn-discord svg { width: 18px; height: 18px; }
.who {
  display: flex; align-items: center; gap: 10px; margin: -6px -6px 18px; padding: 10px;
  background: #111215; border: 1px solid var(--line); border-radius: 12px;
}
.who img { width: 32px; height: 32px; border-radius: 50%; background: #2b2d31; flex: none; }
.who span { display: grid; line-height: 1.25; margin-right: auto; min-width: 0; }
.who b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { font-size: 12px; color: var(--faint); }
.link-btn { background: none; border: 0; padding: 4px 6px; color: var(--faint); font-size: 12.5px; cursor: pointer; border-radius: 6px; }
.link-btn:hover { color: var(--text); }
.link-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- directory (centralized search) ---------- */
.top-actions { display: grid; grid-template-columns: auto auto; gap: 6px; }
.lookup { position: relative; grid-column: 1 / -1; }
.lookup svg {
  position: absolute; left: 10px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%);
  fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; pointer-events: none;
}
.lookup .input { height: 30px; padding-left: 30px; font-size: 12.5px; }
.lookup-lg { flex: 1; }
.lookup-lg .input { height: 40px; font-size: 14px; }
.lookup-lg svg { width: 16px; height: 16px; left: 12px; }
.lookup-lg .input { padding-left: 36px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.dir { width: min(1000px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; display: none; }
.dir[open] { display: flex; flex-direction: column; }
.dir-head { display: flex; gap: 10px; align-items: center; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.dir-summary { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px 0; }
.dir-summary span {
  font-size: 12px; color: var(--muted); padding: 4px 10px; border-radius: 999px;
  background: #1a1a1f; border: 1px solid var(--line);
}
.dir-body { overflow-y: auto; padding: 6px 18px 20px; }
.dir-body h3 { margin: 18px 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.dir-empty { color: var(--faint); text-align: center; padding: 40px 0; }
.muted { color: var(--faint); font-size: 12.5px; }

.rbx { display: inline-flex; align-items: center; gap: 7px; }
.rbx img, .rbx-ph { width: 24px; height: 24px; border-radius: 50%; background: #2b2d31; flex: none; }
.rbx-ph { display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.rbx b { font-weight: 600; }
.rbx small { font-size: 11.5px; color: var(--faint); }
.dir .tbl-wrap table { font-size: 12.5px; }

/* ---------- directory: family tree ---------- */
.t-tree { position: relative; padding: 6px 4px 18px; margin-bottom: 18px; min-width: 860px; }
.t-tree + .t-tree { border-top: 1px dashed #24252b; padding-top: 22px; }
.t-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.t-lines .branch { fill: none; stroke: #3a3b42; stroke-width: 1.5; stroke-linecap: round; }
.t-lines .branch.empty { stroke: #26272c; stroke-dasharray: 3 5; }
.t-lines .branch.grow { animation: branch-grow .7s cubic-bezier(.5, 0, .2, 1) forwards; }
.t-lines .branch.empty.grow { opacity: 0; animation: fade-in .4s ease forwards; }
.t-lines .spark {
  fill: none; stroke: #f2f2f4; stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 6 94; stroke-dashoffset: 100; opacity: 0;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, .8));
  animation: spark 3.2s ease-in-out infinite;
}
@keyframes branch-grow { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes spark {
  0% { stroke-dashoffset: 100; opacity: 0; }
  10% { opacity: .9; }
  55% { stroke-dashoffset: 0; opacity: .9; }
  60%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

.node {
  position: relative; z-index: 1; background: #141518; border: 1px solid var(--line); border-radius: 12px;
  animation: node-pop .45s cubic-bezier(.3, 1.4, .5, 1) both;
}
@keyframes node-pop { from { opacity: 0; transform: translateY(6px) scale(.92); } }
.t-root {
  width: fit-content; max-width: 100%; margin: 0 auto 46px; padding: 12px 18px; text-align: center;
  border-color: #3a3b42; box-shadow: 0 0 0 4px rgba(255, 255, 255, .03), 0 0 36px rgba(255, 255, 255, .06);
}
.t-root-key { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.t-root-meta { margin-top: 6px; font-size: 12px; color: var(--faint); }
.t-cols { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 18px; }
.t-col { min-width: 0; }
.t-cat {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text);
}
.t-cat small { font-size: 11px; color: var(--faint); font-weight: 500; }
.t-col.empty .t-cat { color: var(--faint); border-style: dashed; }
.t-leaves { display: grid; gap: 10px; margin: 14px 0 0 30px; }
.t-leaf { padding: 8px 10px; font-size: 13px; min-width: 0; overflow: hidden; }
.t-leaf .mono { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.t-none { color: var(--faint); font-size: 12px; border-style: dashed; background: transparent; }
.t-loose { display: flex; flex-wrap: wrap; gap: 10px; }
.rbx-text { display: grid; line-height: 1.25; min-width: 0; }
.rbx-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .t-lines .spark { display: none; } }
.dir-body { overflow-x: auto; }
