:root {
  --bg: #091114;
  --panel: rgba(15, 26, 30, 0.8);
  --panel-strong: rgba(12, 21, 24, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(157, 239, 218, 0.16);
  --border-strong: rgba(157, 239, 218, 0.26);
  --text: #f3fbf9;
  --muted: #9ec3bc;
  --accent: #79e3ca;
  --accent-strong: #29c797;
  --accent-soft: rgba(121, 227, 202, 0.12);
  --danger: #ff9b9b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  --mono: "JetBrains Mono", monospace;
  --sans: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(44, 146, 126, 0.28), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(68, 104, 203, 0.26), transparent 22%),
    radial-gradient(circle at 12% 88%, rgba(255, 174, 92, 0.12), transparent 22%),
    linear-gradient(140deg, #071013 0%, #0d1b1f 42%, #091114 100%);
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  pointer-events: none;
  filter: blur(56px);
  opacity: 0.4;
}

.ambient-a {
  width: 18rem;
  height: 18rem;
  top: 4rem;
  right: 10vw;
  background: rgba(121, 227, 202, 0.72);
}

.ambient-b {
  width: 24rem;
  height: 24rem;
  bottom: 0;
  left: -6rem;
  background: rgba(63, 124, 198, 0.54);
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hidden {
  display: none !important;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-card {
  width: min(480px, 100%);
  margin: 8vh auto 0;
  padding: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
  gap: 1rem;
  align-items: stretch;
}

.hero,
.shortcut-card {
  padding: 1.5rem;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -3rem -3rem auto;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(121, 227, 202, 0.2), transparent 70%);
}

.hero-copy {
  max-width: 46rem;
  margin-top: 0.8rem;
}

.shortcut-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(121, 227, 202, 0.08), transparent 40%),
    var(--panel-strong);
}

.hero-actions,
.action-row,
.mini-actions,
.shortcut-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 1.4rem;
}

.eyebrow,
.mini-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
}

.mini-label {
  letter-spacing: 0.14em;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 0.6rem;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 0.96;
}

h2 {
  font-size: 1.14rem;
}

.muted {
  color: var(--muted);
  line-height: 1.65;
}

.entry-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--mono);
  font-size: 0.88rem;
  text-decoration: none;
  word-break: break-all;
  transition: border-color 120ms ease, transform 120ms ease, background 120ms ease;
}

.entry-link:hover {
  transform: translateY(-1px);
  border-color: rgba(121, 227, 202, 0.46);
  background: rgba(121, 227, 202, 0.08);
}

.entry-link.strong {
  background: linear-gradient(135deg, rgba(121, 227, 202, 0.16), rgba(41, 199, 151, 0.08));
}

.quick-entry {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: 22px;
  background: var(--panel-soft);
  border: 1px solid rgba(121, 227, 202, 0.12);
}

.stack {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.controls-card,
.results-card {
  margin-top: 1rem;
  padding: 1.35rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.advanced-grid {
  margin-top: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label,
.check {
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
}

input {
  width: 100%;
  padding: 0.98rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(157, 239, 218, 0.14);
  background: rgba(7, 12, 14, 0.5);
  color: var(--text);
  font: inherit;
}

input:focus {
  outline: 2px solid rgba(121, 227, 202, 0.24);
  border-color: rgba(121, 227, 202, 0.44);
}

.check {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.check input {
  width: 1.15rem;
  height: 1.15rem;
}

.advanced {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(157, 239, 218, 0.1);
}

summary {
  cursor: pointer;
  color: var(--muted);
}

.action-row {
  margin-top: 1.2rem;
}

button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.88rem 1.25rem;
  font: inherit;
  font-weight: 700;
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease, border-color 120ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #062018;
}

.secondary {
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid rgba(121, 227, 202, 0.22);
}

.ghost,
.tiny {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tiny {
  padding: 0.5rem 0.8rem;
  font-size: 0.82rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.stat-card {
  padding: 1.1rem 1.2rem;
  border-radius: 24px;
  background: rgba(9, 18, 20, 0.58);
  border: 1px solid rgba(157, 239, 218, 0.1);
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.stat-card strong {
  font-size: 1.35rem;
}

.shortcut-badges span {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(121, 227, 202, 0.08);
  border: 1px solid rgba(121, 227, 202, 0.12);
  color: var(--muted);
  font-size: 0.82rem;
}

.table-wrap {
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(157, 239, 218, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  padding: 1rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(157, 239, 218, 0.08);
}

th {
  position: sticky;
  top: 0;
  background: rgba(8, 17, 20, 0.97);
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.mono {
  font-family: var(--mono);
  font-size: 0.84rem;
  word-break: break-all;
}

.token-cell {
  max-width: 240px;
}

.empty-row td {
  text-align: center;
  color: var(--muted);
}

.error {
  margin-top: 0.9rem;
  color: var(--danger);
}

@media (max-width: 980px) {
  .hero-grid,
  .grid,
  .advanced-grid,
  .stats,
  .section-head {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
    align-items: stretch;
  }

  .shell {
    width: min(100% - 1rem, 1180px);
  }

  .login-card,
  .hero,
  .shortcut-card,
  .controls-card,
  .results-card {
    border-radius: 24px;
  }
}
