@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");
.selectable {
  white-space: normal !important;
  overflow-wrap: anywhere;
  background: #080b10;
  border: 1px solid #252c36;
  padding: 11px;
  border-radius: 6px;
  margin: 6px 0 15px;
  user-select: all;
}
dialog label {
  color: #8994a3;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
dialog pre {
  background: #080b10;
  border: 1px solid #252c36;
  padding: 14px;
  overflow: auto;
  color: #dbe3ea;
}
.warning {
  color: #e9c56b;
}
.actions button.danger {
  border-color: #6d2b35;
  color: #ff9aa8;
  background: #291419;
}
.actions button.danger:hover {
  background: #3a1820;
}
:root {
  --bg: #080b10;
  --panel: #10151d;
  --line: #252c36;
  --text: #f2f5f7;
  --muted: #8994a3;
  --lime: #c8ff47;
  --violet: #8b73ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px "DM Sans",
    sans-serif;
  min-height: 100vh;
}
.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.11;
  pointer-events: none;
}
.ambient.one {
  background: var(--lime);
  width: 420px;
  height: 420px;
  right: -180px;
  top: -180px;
}
.ambient.two {
  background: var(--violet);
  width: 400px;
  height: 400px;
  left: -260px;
  bottom: -200px;
}
header {
  height: 78px;
  display: flex;
  align-items: center;
  padding: 0 max(28px, 5vw);
  border-bottom: 1px solid #171c23;
  position: relative;
  z-index: 2;
}
.brand {
  color: #fff;
  text-decoration: none;
  font: 700 18px "Space Grotesk";
  letter-spacing: 1px;
}
.brand span {
  color: var(--lime);
}
.brand small {
  font-size: 9px;
  color: var(--muted);
  margin-left: 8px;
}
nav {
  margin: auto;
  display: flex;
  gap: 8px;
}
button,
.button {
  font: inherit;
  color: inherit;
}
nav button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 8px;
}
nav button.active,
nav button:hover {
  color: #fff;
  background: #151a22;
}
nav i {
  font-style: normal;
  background: var(--lime);
  color: #111;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
}
.hero {
  padding: 11vh max(28px, 8vw) 70px;
  max-width: 1350px;
  margin: auto;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: var(--lime);
  margin-bottom: 22px;
}
.hero h1,
.welcome h1 {
  font: 600 clamp(44px, 7vw, 92px) / 0.98 "Space Grotesk";
  letter-spacing: -4px;
  margin: 0;
}
.hero h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px #6f7b8a;
}
.hero > p {
  color: var(--muted);
  max-width: 570px;
  font-size: 17px;
  line-height: 1.7;
  margin: 32px 0;
}
.primary {
  border: 0;
  background: var(--lime);
  color: #0b0e12;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  gap: 28px;
  align-items: center;
}
.primary:hover {
  filter: brightness(1.08);
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 10vh;
  border: 1px solid var(--line);
}
.features article {
  background: #0c1016;
  padding: 26px;
}
.features b {
  color: var(--lime);
  font: 600 11px "Space Grotesk";
}
.features h3 {
  font: 600 18px "Space Grotesk";
  margin: 28px 0 8px;
}
.features p {
  color: var(--muted);
  margin: 0;
}
#dashboard {
  padding: 55px max(28px, 5vw);
}
.welcome {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 42px;
}
.welcome h1 {
  font-size: 44px;
  letter-spacing: -2px;
}
.welcome p {
  color: var(--muted);
  margin: 12px 0 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 18px;
}
.card {
  background: linear-gradient(145deg, #121821, #0d1117);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  position: relative;
}
.thumb {
  height: 150px;
  background: linear-gradient(135deg, #1c2430, #15131f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a5666;
  font: 700 42px "Space Grotesk";
  background-size: cover;
  background-position: center;
}
.card-body {
  padding: 20px;
}
.card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  background: #202731;
  color: #b2bdc9;
  padding: 5px 8px;
  border-radius: 5px;
}
.pill.free,
.pill.published,
.pill.succeeded {
  color: var(--lime);
  background: #1c2a17;
}
.pill.monthly {
  color: #b9abff;
  background: #211d38;
}
.card h3 {
  font: 600 19px "Space Grotesk";
  margin: 17px 0 7px;
}
.card p {
  height: 42px;
  color: var(--muted);
  line-height: 1.5;
  overflow: hidden;
}
.actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.actions button,
button.secondary {
  flex: 1;
  border: 1px solid #303846;
  background: #171d26;
  border-radius: 7px;
  padding: 10px;
  cursor: pointer;
}
.actions button.accent {
  background: var(--lime);
  color: #111;
  border-color: var(--lime);
  font-weight: 700;
}
button.secondary {
  margin-bottom: 18px;
}
.empty {
  padding: 70px;
  text-align: center;
  border: 1px dashed var(--line);
  color: var(--muted);
  border-radius: 12px;
}
.form {
  max-width: 700px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}
.form label {
  display: block;
  color: #c5ccd5;
  margin-bottom: 18px;
  font-weight: 600;
}
.form input,
.form textarea,
.form select {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: #0a0e13;
  border: 1px solid #303845;
  color: #fff;
  padding: 12px;
  border-radius: 7px;
}
.form textarea {
  min-height: 130px;
  resize: vertical;
}
.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.repo {
  font-family: monospace;
  color: var(--lime);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#profile {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}
#profile img {
  width: 31px;
  height: 31px;
  border-radius: 50%;
}
#profile a {
  color: #8994a3;
}
dialog {
  background: #10151d;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(620px, 90vw);
  padding: 28px;
}
dialog::backdrop {
  background: #000b;
}
.close {
  position: absolute;
  right: 13px;
  top: 10px;
  background: none;
  border: 0;
  color: #8994a3;
  font-size: 24px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat {
  background: #0a0e13;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 9px;
}
.stat b {
  font: 600 28px "Space Grotesk";
  display: block;
}
.stat span {
  color: var(--muted);
}
.analytics-section {
  margin-top: 24px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #e8edf2;
  color: #111;
  padding: 12px 18px;
  border-radius: 7px;
  transform: translateY(100px);
  transition: 0.25s;
}
#toast.show {
  transform: none;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 5vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
#sdnVersion {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.04em;
}
@media (max-width: 700px) {
  header {
    padding: 0 18px;
  }
  nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #10151d;
    padding: 8px;
    z-index: 5;
    justify-content: center;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .welcome {
    align-items: start;
    gap: 25px;
    flex-direction: column;
  }
  .hero h1 {
    letter-spacing: -2px;
  }
  .role-scripter,
  .role-admin {
    display: none;
  }
  .site-footer {
    flex-direction: column;
    padding-bottom: 80px;
  }
}
