/* wolfkit.dev: dark and minimal, the same look as the Trove Clubs panel. */
:root {
  --bg: #0b0d11; --surface: #111419; --card: #161a21; --raised: #1d222b;
  --hover: rgba(255,255,255,.045); --border: rgba(255,255,255,.075); --border-2: rgba(255,255,255,.13);
  --text: #e7eaef; --text-2: #c7ccd5; --dim: #8a929f; --faint: #5b6370;
  --accent: #b18cff; --accent-ink: #1a0d33; --accent-soft: rgba(177,140,255,.13);
  --danger: #ff8f7a; --success: #7ee2a8; --warn: #f3c76b;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { color-scheme: dark; }
body { font-family: 'Geist', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh;
  font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: rgba(177,140,255,.4); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(11,13,17,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar-in { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 56px; display: flex; align-items: center; gap: 1.2rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: 15px; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; border-radius: 8px; display: block; }
.topnav { display: flex; gap: .2rem; margin-left: auto; }
.topnav a { text-decoration: none; color: var(--dim); font-size: 13.5px; padding: .4rem .7rem; border-radius: 8px; }
.topnav a:hover { color: var(--text); background: var(--hover); }
.topnav a.on { color: var(--accent); background: var(--accent-soft); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 28px 20px 56px; }
.footer { border-top: 1px solid var(--border); color: var(--faint); font-size: 12.5px; }
.footer .wrap { padding-top: 18px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* Forms and buttons */
input[type=search], input[type=text] { width: 100%; height: 38px; padding: 0 .8rem; background: rgba(255,255,255,.035); border: 1px solid var(--border);
  border-radius: 9px; color: var(--text); font-size: 14px; font-family: inherit; }
input::placeholder { color: var(--faint); }
input:focus { outline: none; border-color: rgba(177,140,255,.55); background: rgba(255,255,255,.05); }
input[type=search]::-webkit-search-cancel-button { filter: invert(.6); cursor: pointer; }
.search { position: relative; }
.search::before { content: ''; position: absolute; left: .75rem; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); pointer-events: none; opacity: .7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%238a929f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat center; }
.search input { padding-left: 2.2rem; }
.btn { display: inline-flex; align-items: center; gap: .4rem; height: 32px; padding: 0 .8rem; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; font-weight: 500; cursor: pointer; background: transparent; color: var(--dim); font-family: inherit; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--hover); border-color: var(--border-2); color: var(--text); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-link { background: none; border: 0; padding: 0; color: var(--dim); font-size: 12.5px; cursor: pointer; font-family: inherit; }
.btn-link:hover { color: var(--accent); }

/* Cards, badges */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 .55rem; border-radius: 6px; font-size: 12px; font-weight: 500; background: rgba(255,255,255,.06); color: var(--dim); white-space: nowrap; }
.badge-a { background: var(--accent-soft); color: var(--accent); }
.badge-g { background: rgba(126,226,168,.1); color: var(--success); }
.count { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.count .accent { color: var(--accent); }
.count .lt { color: var(--text-2); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--dim); font-size: 13.5px; }
.hint { font-size: 13px; color: var(--dim); }

/* Tables */
.tbl-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: auto; }
.tbl-wrap.fit { max-height: calc(100vh - var(--fit, 300px)); }
table { width: 100%; border-collapse: collapse; }
th { padding: 0 14px; height: 38px; text-align: left; font-size: 12px; color: var(--text-2); border-bottom: 1px solid var(--border); background: var(--surface);
  font-weight: 500; position: sticky; top: 0; z-index: 1; white-space: nowrap; }
td { padding: 0 14px; height: 42px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--hover); }
td.mono { font-family: var(--mono); font-size: 12.5px; }
.pager { display: flex; gap: .5rem; justify-content: center; align-items: center; margin-top: .6rem; }
.toolbar { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .9rem; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 10px; flex-wrap: wrap; }
.seg button { height: 28px; border: 0; background: none; color: var(--dim); padding: 0 .7rem; border-radius: 7px; font: inherit; font-size: 12.5px; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--raised); color: var(--accent); box-shadow: inset 0 0 0 1px var(--border-2); }
.seg-select { display: none; }
select { width: 100%; height: 38px; padding: 0 .8rem; background: rgba(255,255,255,.035); border: 1px solid var(--border); border-radius: 9px; color: var(--text); font: inherit; }
select option { background: var(--card); }

@media (max-width: 760px) {
  .topbar-in { padding: 0 14px; gap: .6rem; }
  .topnav a { padding: .35rem .5rem; font-size: 13px; }
  .wrap { padding: 20px 14px 40px; }
  td, th { padding: 0 10px; }
  .tbl-wrap.fit { max-height: 70vh; }
}
