:root {
  --bg: #0c0d0a;
  --bg2: #131512;
  --line: #1f221d;
  --ink: #d4e7c5;
  --ink-mute: #6b7d62;
  --accent: #9bf06a;
  --shame: #ff6058;
  --warn: #ffb75e;
  --good: #9bf06a;
  --pill-bg: #17181b;
  --pill-line: #26282c;
  --pill-ink: #ececec;
  --pill-mute: #8a8d92;
}
[data-theme="light"] {
  --bg: #f4f3ee;
  --bg2: #eae8df;
  --line: #c8c5b6;
  --ink: #1c1d18;
  --ink-mute: #66695a;
  --accent: #2a6f1a;
  --shame: #b32619;
  --warn: #8a6a14;
  --good: #2a6f1a;
  --pill-bg: #ffffff;
  --pill-line: #e5e3dc;
  --pill-ink: #15161a;
  --pill-mute: #6c6f73;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  line-height: 1.5;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-disclaimer {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--bg2);
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.65;
}
.site-disclaimer summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
}
.site-disclaimer a {
  color: var(--accent);
}
.scan {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.012) 0,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}
[data-theme="light"] .scan {
  display: none;
}

.term {
  max-width: 1600px;
  margin: 0 auto;
  padding: 18px 32px 60px;
  position: relative;
  z-index: 2;
}
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  gap: 12px;
  flex-wrap: wrap;
}
.bar .left {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  flex: 1;
}
.bar .right-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.iconbtn.theme-inline {
  width: 32px;
  height: 32px;
  font-size: 14px;
  margin-left: auto;
}
@media (max-width: 760px) {
  .bar .right-actions {
    width: 100%;
    order: 3;
  }
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: blink 1.4s infinite;
  flex: none;
}
@keyframes blink {
  50% {
    opacity: 0.35;
  }
}
.path {
  color: var(--ink-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.path b {
  color: var(--ink);
}

.pill {
  border: 1px solid var(--pill-line);
  background: var(--pill-bg);
  color: var(--pill-mute);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Geist", system-ui, sans-serif;
}
.pill .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
  animation: blink 1.4s infinite;
}
.pill b {
  color: var(--pill-ink);
  font-weight: 600;
}

.iconbtn {
  border: 1px solid var(--pill-line);
  background: var(--pill-bg);
  color: var(--pill-ink);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
  font-family: "Geist", system-ui, sans-serif;
}
.iconbtn:hover {
  background: var(--bg2);
}

.launch-btn {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-family: "JetBrains Mono", monospace;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 12px;
}
.launch-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.ascii-container {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.fix-cta {
  margin-left: auto;
  background: var(--accent);
  color: var(--bg);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.fix-cta:hover {
  filter: brightness(1.1);
}

.ascii {
  color: var(--accent);
  white-space: pre;
  font-size: 11px;
  line-height: 1.1;
  margin: 18px 0 8px;
  user-select: none;
}

.blood-text {
  font-family: 'Nosifer', cursive;
  font-size: clamp(20px, 4.5vw, 44px);
  font-weight: 400;
  color: #bc4749ff;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-3deg) skewX(-2deg);
  transform-origin: left center;
  user-select: none;
  min-width: 0;
  margin-bottom: 12px;
  text-shadow:
    2px 3px 0 #5c1f21,
    3px 5px 0 #3d1820,
    4px 8px 0 rgba(92, 31, 33, 0.7),
    -1px 12px 10px rgba(188, 71, 73, 0.3),
    1px 20px 12px rgba(0, 0, 0, 0.4),
    2px 30px 16px rgba(0, 0, 0, 0.2);
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .ascii-container {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    overflow: visible;
  }
  .fix-cta {
    margin-left: 0;
  }
  .blood-text {
    font-size: 34px;
    margin: 18px 0 24px;
    transform: rotate(-4deg) skewX(-2deg);
  }
}

.session {
  margin: 10px 0 14px;
  color: var(--ink-mute);
  font-size: 12.5px;
  line-height: 1.65;
}
.session .ln {
  display: block;
}
.session .pmt {
  color: var(--accent);
}
.session .ok {
  color: var(--good);
}
.session .hl {
  color: var(--shame);
}
.session .wn {
  color: var(--warn);
}
.cursor::after {
  content: "▍";
  color: var(--accent);
  margin-left: 2px;
  animation: blink 1s infinite;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 18px;
}
.cell {
  border: 1px solid var(--line);
  padding: 12px;
  background: var(--bg2);
}
.cell[data-v] {
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, border-color 0.15s;
}
.cell[data-v]:hover:not(.on) {
  background: color-mix(in srgb, var(--bg2), var(--ink) 4%);
}
.cell.on {
  background: color-mix(in srgb, var(--bg2), var(--ink) 8%);
  border-color: color-mix(in srgb, var(--line), var(--accent) 50%);
}
.cell.s.on {
  border-color: color-mix(in srgb, var(--line), var(--shame) 50%);
}
.cell.w.on {
  border-color: color-mix(in srgb, var(--line), var(--warn) 50%);
}
.cell .k {
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cell .v {
  font-size: 26px;
  margin-top: 6px;
  font-weight: 500;
}
.cell.s .v {
  color: var(--shame);
}
.cell.w .v {
  color: var(--warn);
}
.cell.g .v {
  color: var(--accent);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  padding: 10px 0;
  margin-bottom: 8px;
}
.filter-toggle {
  display: none;
}
.controls .filters {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}
.controls .input {
  flex: 1 1 240px;
  min-width: 0;
}
.input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--bg2);
}
.input::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background-color: var(--accent);
  flex-shrink: 0;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.input input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  outline: none;
  padding: 4px 0;
  caret-color: var(--accent);
}
.seg {
  display: flex;
  border: 1px solid var(--line);
}
.seg button {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  padding: 6px 10px;
  cursor: pointer;
}
.seg button:last-child {
  border-right: 0;
}
.seg button.on {
  background: var(--accent);
  color: var(--bg);
}
.select {
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  padding: 6px 10px;
  cursor: pointer;
}

.results {
  display: block;
}

.hdr,
.row {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) minmax(160px, 1.4fr) 80px minmax(140px, 1.2fr) 110px 100px;
  gap: 10px;
  padding: 6px 8px;
  align-items: center;
  font-size: 12px;
  line-height: 1.3;
  min-height: 28px;
}
.hdr {
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
#list {
  display: flow-root;
  position: relative;
  z-index: 0;
}
.row {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.row:hover {
  background: var(--bg2);
}
.row .nm {
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .dm {
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .tld {
  color: var(--ink-mute);
}
.row .ind {
  color: var(--ink-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .ind.is-empty::before {
  content: "—";
  color: var(--line);
}
.row .st {
  font-size: 10px;
  padding: 0 6px;
  display: inline-block;
  border: 1px solid currentColor;
  line-height: 1.5;
}
.row .st.no {
  color: var(--shame);
}
.row .st.pn {
  color: var(--warn);
}
.row .ts {
  color: var(--ink-mute);
  font-size: 11px;
}

.pager {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) minmax(160px, 1.4fr) 80px minmax(140px, 1.2fr) 110px 100px;
  gap: 10px;
  align-items: center;
  padding: 12px 8px 4px;
  color: var(--ink-mute);
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--line);
  clear: both;
}
.pager #resultCount {
  grid-column: 1 / 3;
}
.pager .nav {
  grid-column: 5 / 7;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.toolbtn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  padding: 4px 10px;
  cursor: pointer;
}
.toolbtn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 10px;
}

.list-empty,
.loading {
  padding: 60px 0;
  text-align: center;
  color: var(--ink-mute);
}
.loading::after {
  content: " ▍";
  color: var(--accent);
  animation: blink 1s infinite;
}

@media (max-width: 760px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .controls .filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg2);
    border: 1px solid var(--line);
    color: var(--ink);
    font: inherit;
    padding: 6px 12px;
    cursor: pointer;
    flex: 0 0 auto;
  }
  .filter-toggle .dotbadge {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    display: none;
  }
  .filter-toggle.active .dotbadge {
    display: inline-block;
  }
  .controls .filters {
    display: none;
    flex-direction: column;
    flex-basis: 100%;
    width: 100%;
    gap: 8px;
    padding-top: 4px;
  }
  .controls.open .filters {
    display: flex;
  }
  .controls .filters .seg,
  .controls .filters .select {
    width: 100%;
  }
  .controls .filters .seg button {
    flex: 1;
  }
  .hdr,
  .row {
    grid-template-columns: 1fr 80px 90px;
    gap: 8px;
  }
  .hdr .col-dm,
  .row .dm,
  .hdr .col-ind,
  .row .ind,
  .hdr .col-ts,
  .row .ts {
    display: none;
  }
  .pager {
    grid-template-columns: 1fr 80px 90px;
  }
  .pager #resultCount {
    grid-column: 1;
  }
  .pager .nav {
    grid-column: 2 / 4;
  }
  .ascii {
    font-size: 9px;
  }
}

@media (min-width: 761px) {
  body {
    font-size: 14px;
    line-height: 1.55;
  }
  .site-disclaimer {
    font-size: 13px;
  }
  .pill {
    font-size: 12px;
  }
  .launch-btn {
    font-size: 13px;
  }
  .ascii {
    font-size: 12px;
  }
  .session {
    font-size: 13px;
  }
  .cell .k {
    font-size: 12px;
  }
  .cell .v {
    font-size: 28px;
  }
  .hdr,
  .row {
    font-size: 13px;
  }
  .hdr {
    font-size: 12px;
  }
  .row .st {
    font-size: 11px;
  }
  .row .ts {
    font-size: 12px;
  }
}
