/* ============================================================ NULLPOINT ==
   zero is the only number that matters
   ======================================================================== */

:root {
  --bg: #05060a;
  --bg-2: #080a11;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9edf5;
  --dim: #8b93a7;
  --dimmer: #5b6478;
  --acid: #c8ff2e;
  --acid-soft: rgba(200, 255, 46, 0.12);
  --ice: #4fe3ff;
  --danger: #ff4d6d;
  --accent: var(--acid);
  --accent-soft: var(--acid-soft);
  --accent-glow: rgba(200, 255, 46, 0.32);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 0.9, 0.24, 1);
}

body[data-tab="cracked"] {
  --accent: var(--ice);
  --accent-soft: rgba(79, 227, 255, 0.1);
  --accent-glow: rgba(79, 227, 255, 0.3);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #05060a; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #06070c; }
::-webkit-scrollbar-thumb {
  background: #1b2030;
  border-radius: 99px;
  border: 2px solid #06070c;
}
::-webkit-scrollbar-thumb:hover { background: #2a3246; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------------------------------------- background */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% -10%, #0b1018 0%, transparent 60%),
    linear-gradient(180deg, #05060a 0%, #06070d 50%, #04050a 100%);
}

.bg-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 78%);
  transform: perspective(600px) rotateX(0.001deg);
}

.bg-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.42;
  will-change: transform;
}

.a1 {
  width: 620px; height: 620px;
  top: -320px; left: 6%;
  background: radial-gradient(circle, rgba(200, 255, 46, 0.5), transparent 65%);
  animation: drift1 26s var(--ease) infinite alternate;
}

.a2 {
  width: 560px; height: 560px;
  top: -260px; right: 2%;
  background: radial-gradient(circle, rgba(79, 227, 255, 0.35), transparent 65%);
  animation: drift2 32s var(--ease) infinite alternate;
}

.a3 {
  width: 700px; height: 700px;
  bottom: -480px; left: 34%;
  background: radial-gradient(circle, rgba(122, 92, 255, 0.28), transparent 65%);
  animation: drift3 38s var(--ease) infinite alternate;
}

@keyframes drift1 { to { transform: translate3d(90px, 60px, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-110px, 40px, 0) scale(1.08); } }
@keyframes drift3 { to { transform: translate3d(60px, -70px, 0) scale(1.15); } }

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 80% at 50% 20%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

/* ----------------------------------------------------------------- topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 44px);
  background: rgba(5, 6, 10, 0.62);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  transition: transform 0.3s var(--ease);
}
.brand:hover { transform: translateY(-1px); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.brand-mark svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--acid);
  stroke-width: 2.6;
  filter: drop-shadow(0 0 6px rgba(200, 255, 46, 0.5));
  animation: markPulse 5s ease-in-out infinite;
}
@keyframes markPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.62; }
}

.brand-word {
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 13px;
}

.topbar-spacer { flex: 1; }

.status-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}
.pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 0 rgba(200, 255, 46, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 255, 46, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(200, 255, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 255, 46, 0); }
}

/* ----------------------------------------------------------------- button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-1px); background: var(--panel-2); border-color: rgba(255, 255, 255, 0.26); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--acid);
  border-color: var(--acid);
  color: #070a03;
  box-shadow: 0 0 0 1px rgba(200, 255, 46, 0.25), 0 10px 30px -12px rgba(200, 255, 46, 0.7);
}
.btn-primary:hover {
  background: #d6ff5e;
  border-color: #d6ff5e;
  box-shadow: 0 0 0 1px rgba(200, 255, 46, 0.35), 0 14px 40px -12px rgba(200, 255, 46, 0.85);
}

/* ------------------------------------------------------------------ shell */
.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 44px) 60px;
}

/* ------------------------------------------------------------------- hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(34px, 5vw, 54px); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  animation: rise 0.8s var(--ease) both;
}
.eyebrow-line {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--acid), transparent);
}

h1 {
  margin: 20px 0 18px;
  font-size: clamp(40px, 6.6vw, 78px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.045em;
  animation: rise 0.9s var(--ease) 0.05s both;
}
.grad {
  background: linear-gradient(100deg, var(--acid) 0%, #eaff9d 38%, var(--ice) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(200, 255, 46, 0.16));
}

.hero-sub {
  max-width: 52ch;
  margin: 0;
  color: var(--dim);
  font-size: clamp(14px, 1.5vw, 16.5px);
  animation: rise 1s var(--ease) 0.12s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.stats {
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 3vw, 34px);
  margin-top: clamp(30px, 4vw, 44px);
  padding: 16px 20px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  backdrop-filter: blur(8px);
  animation: rise 1s var(--ease) 0.2s both;
}
.stat { display: flex; flex-direction: column; gap: 3px; min-width: 74px; }
.stat-num {
  font-family: var(--mono);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.stat-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--dimmer);
}
.stat-sep { width: 1px; background: var(--line); }

/* ------------------------------------------------------------ setup note */
.setup-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 179, 92, 0.35);
  border-radius: 12px;
  background: rgba(255, 179, 92, 0.07);
  font-size: 13px;
}
.setup-note strong { color: #ffb35c; letter-spacing: 0.01em; }
.setup-note p { margin: 0; color: var(--dim); line-height: 1.55; }
.setup-note code {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.status-chip.offline .pulse { background: var(--danger); box-shadow: none; animation: none; }
.status-chip.offline { color: #ff8fa3; border-color: rgba(255, 77, 109, 0.3); }

/* ---------------------------------------------------------------- console */
.console {
  position: relative;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012) 40%),
    rgba(8, 10, 16, 0.55);
  backdrop-filter: blur(14px);
  box-shadow: 0 40px 120px -60px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: rise 1s var(--ease) 0.26s both;
}

.console-head { display: flex; justify-content: center; margin-bottom: 20px; }

/* ------------------------------------------------------------------- tabs */
.tabs {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  max-width: 100%;
  overflow: hidden;
}

.tab-pill {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: 0;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 26px var(--accent-glow), 0 4px 14px -4px rgba(0, 0, 0, 0.7);
  transition: left 0.45s var(--ease), width 0.45s var(--ease), background 0.35s, box-shadow 0.35s;
  z-index: 1;
}

.tab {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.3s;
}
.tab:hover { color: var(--text); }
.tab.active { color: #060803; }

.tabs.no-anim .tab,
.tabs.no-anim .tab-pill { transition: none !important; }

.tab-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px rgba(200, 255, 46, 0.8);
  transition: background 0.3s;
}
.tab-dot.cracked { background: var(--ice); box-shadow: 0 0 8px rgba(79, 227, 255, 0.8); }
.tab.active .tab-dot { background: #060803; box-shadow: none; }

.tab-count {
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  color: inherit;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  opacity: 0.85;
}
.tab.active .tab-count { background: rgba(0, 0, 0, 0.14); }

/* ---------------------------------------------------------------- toolbar */
.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 22px 0 18px;
}

.search {
  position: relative;
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
}
.search svg {
  position: absolute;
  left: 14px;
  width: 16px; height: 16px;
  fill: none;
  stroke: var(--dimmer);
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
  transition: stroke 0.2s;
}
.search:focus-within svg { stroke: var(--accent); }
.search input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.search input::placeholder { color: var(--dimmer); }
.search input:focus {
  outline: none;
  border-color: rgba(200, 255, 46, 0.4);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 0 3px rgba(200, 255, 46, 0.08);
}
.search input::-webkit-search-cancel-button { display: none; }

.toolbar-right { display: flex; align-items: center; gap: 14px; }

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.32);
  height: 42px;
}
.sort-wrap label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dimmer);
}
.sort-wrap select {
  padding: 6px 26px 6px 4px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238b93a7' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.sort-wrap select option { background: #0b0e16; color: var(--text); }

.result-count {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dimmer);
  white-space: nowrap;
}

/* ------------------------------------------------------------------- grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012) 55%),
    rgba(8, 10, 16, 0.5);
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s, box-shadow 0.28s;
  animation: cardIn 0.45s var(--ease) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid transparent;
  transition: border-color 0.3s, width 0.3s var(--ease), height 0.3s var(--ease);
  pointer-events: none;
}
.card::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.card::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.card:hover::before,
.card:hover::after { width: 20px; height: 20px; border-color: var(--accent); }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--dim);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.badge[data-kind="exec"] { color: #ffb35c; border-color: rgba(255, 179, 92, 0.28); background: rgba(255, 179, 92, 0.09); }
.badge[data-kind="lib"] { color: #c79bff; border-color: rgba(199, 155, 255, 0.28); background: rgba(199, 155, 255, 0.09); }
.badge[data-kind="archive"] { color: #5ee7ff; border-color: rgba(94, 231, 255, 0.28); background: rgba(94, 231, 255, 0.08); }
.badge[data-kind="script"] { color: #c8ff2e; border-color: rgba(200, 255, 46, 0.28); background: rgba(200, 255, 46, 0.08); }
.badge[data-kind="config"] { color: #9fb3cd; border-color: rgba(159, 179, 205, 0.24); background: rgba(159, 179, 205, 0.07); }
.badge[data-kind="java"] { color: #7fe3a1; border-color: rgba(127, 227, 161, 0.28); background: rgba(127, 227, 161, 0.09); }

.card-when {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--dimmer);
  text-transform: uppercase;
  white-space: nowrap;
}

.card-name {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
}

.card-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  letter-spacing: 0.05em;
}
.card-sub .sep { color: var(--dimmer); opacity: 0.6; }

.game-tag { color: #b9c3d6; }
.game-tag.muted { color: var(--dim); }

.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }

.act {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.act svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.act:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.07); }
.act.dl:hover { color: #060803; background: var(--accent); border-color: var(--accent); }

/* ------------------------------------------------------------------ empty */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 64px 20px 56px;
  text-align: center;
  animation: rise 0.5s var(--ease) both;
}
.empty-zero { margin-bottom: 8px; opacity: 0.6; }
.empty-zero svg {
  width: 84px; height: 112px;
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
  stroke-dasharray: 4 7;
  animation: spinZero 40s linear infinite;
}
@keyframes spinZero { to { transform: rotate(360deg); } }
.empty h3 { margin: 0; font-size: 16px; font-weight: 600; }
.empty p { margin: 0; font-size: 13px; color: var(--dim); max-width: 40ch; }

/* ------------------------------------------------------------------- foot */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dimmer);
}
.foot-mid { color: var(--dimmer); opacity: 0.75; }
.foot-right { text-align: right; }

/* ----------------------------------------------------------------- toasts */
.toasts {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 380px;
  padding: 12px 15px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 12, 18, 0.95);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.95);
  font-size: 12.5px;
  color: var(--text);
  animation: toastIn 0.35s var(--ease) both;
}
.toast.out { animation: toastOut 0.3s var(--ease) forwards; }
.toast .ket {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.toast.error .ket { background: var(--danger); box-shadow: 0 0 10px rgba(255, 77, 109, 0.6); }
.toast span { min-width: 0; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: none; }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(-12px); }
}

/* -------------------------------------------------------------- responsive */
@media (max-width: 860px) {
  .status-chip { display: none; }
  .stats { width: 100%; justify-content: space-between; }
  .stat { min-width: 0; }
  .foot { justify-content: center; text-align: center; }
  .foot-right { display: none; }
}

@media (max-width: 620px) {
  .topbar { padding: 11px 16px; }
  .brand-word { display: none; }
  .shell { padding: 0 16px 44px; }
  .hero { padding-top: 40px; }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 11px 8px; font-size: 9.5px; letter-spacing: 0.07em; gap: 6px; }
  .tab-count { display: none; }
  .toolbar { gap: 10px; }
  .toolbar-right { width: 100%; justify-content: space-between; }
  .toasts { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
}

@media (max-width: 420px) {
  .stats { gap: 12px; padding: 14px; }
  .stat-num { font-size: 16px; }
  .stat-label { font-size: 8px; }
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
