/* Zhnivo colours, lighter */
:root {
  --bg: #f6faf8; --surface: #ffffff; --text: #14201b; --muted: #5b6762; --line: #dbe7e0; --bg-2: #eef5f1;
  --accent: #2f8a66; --on-accent: #ffffff; --accent-ink: #1f6b4f; --accent-soft: #e2f1e9; --link: #1f6b4f; --mine: #eef8f2; --err: #a03a2a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131b17; --surface: #19231e; --text: #e3ece7; --muted: #9aaaa2; --line: #2b3a32; --bg-2: #1d2a23;
    --accent: #5cbf95; --on-accent: #0f2219; --accent-ink: #a9e0c6; --accent-soft: #1f3329; --link: #7fd1ab; --mine: #1c2e25; --err: #e08a78;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.top { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--accent-soft), transparent); padding: 14px 0 18px; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.by { font-size: 13px; text-decoration: none; color: var(--accent-ink); }
.by:hover { text-decoration: underline; }
h1 { font-size: clamp(22px, 4vw, 32px); line-height: 1.2; margin: 14px 0 6px; font-weight: 700; }
.lead { margin: 0; color: var(--muted); max-width: 70ch; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); color: var(--text); padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 18px 0 0; border-bottom: 1px solid var(--line); }
.tabs button {
  border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; padding: 9px 14px; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tabs button:hover { color: var(--text); }
.panel { padding: 14px 0 28px; min-height: 40vh; }
.note { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.note.warn { color: var(--err); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 8px; }
.toolbar input[type=search], .toolbar select {
  font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); min-width: 0;
}
.toolbar input[type=search] { flex: 1 1 220px; max-width: 360px; }
.check { font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.count { margin: 4px 0 8px; font-weight: 600; font-size: 14px; }
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
thead th { position: sticky; top: 0; background: var(--accent-soft); font-weight: 600; white-space: nowrap; }
th button { all: unset; cursor: pointer; font-weight: 600; }
th button:hover { text-decoration: underline; }
th button:focus-visible, .tabs button:focus-visible, .seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.arrow { font-size: 10px; color: var(--accent-ink); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.nm { font-weight: 600; word-break: break-word; min-width: 180px; }
td.desc { min-width: 260px; }
tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
tr.mine { background: var(--mine); }
.tags { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px; }
.tags span, .pill { font-size: 11.5px; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); }
.empty { text-align: center; color: var(--muted); padding: 22px; }
.state { padding: 28px 0; color: var(--muted); }
.state.err { color: var(--err); }
.btn { font: inherit; padding: 5px 12px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); border-radius: 8px; cursor: pointer; margin-left: 8px; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; margin-right: 8px; vertical-align: -2px; animation: sp 0.8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.card h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; }
.card p { margin: 6px 0 0; }
.card .meta { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.foot { border-top: 1px solid var(--line); padding: 14px 0 26px; color: var(--muted); font-size: 13px; }
.foot p { margin: 6px 0; max-width: 90ch; }
@media (max-width: 600px) { body { font-size: 14px; } .tabs button { padding: 8px 10px; } }
.bar .right { display: flex; align-items: center; gap: 12px; }
.other { font-size: 13px; font-weight: 600; color: var(--accent-ink); text-decoration: none; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.other:hover { border-color: var(--accent); }
.vbtn { all: unset; cursor: pointer; font-size: 11.5px; font-weight: 500; color: var(--accent-ink); background: var(--accent-soft); border-radius: 99px; padding: 1px 8px; margin-left: 6px; white-space: nowrap; }
.vbtn:focus-visible { outline: 2px solid var(--accent); }
tr.var td { background: color-mix(in srgb, var(--accent-soft) 35%, transparent); font-size: 12.5px; }
tr.var ul { margin: 0; padding-left: 18px; }
.vnum { color: var(--muted); margin-left: 8px; font-variant-numeric: tabular-nums; }
.flag { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); margin-left: 6px; white-space: nowrap; }
