/* bot-settings.voidtools.cc — shares the design tokens of voidtools.software */

:root {
  color-scheme: dark;
  --background: #090a0f;
  --surface: #10121a;
  --surface-light: #151824;
  --text: #f1f1f5;
  --muted: #979cae;
  --dim: #686d7c;
  --border: rgba(255, 255, 255, 0.11);
  --accent: #ab8cff;
  --accent-bright: #d2c5ff;
  --green: #87e7bd;
  --amber: #e7c987;
  --red: #ef9a9d;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --topbar-h: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 18px);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Manrope, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    radial-gradient(
      circle at 50% -12%,
      rgba(128, 91, 236, 0.17),
      transparent 31%
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size:
    auto,
    48px 48px,
    48px 48px;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
}

p {
  margin: 0 0 14px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-200%);
  color: #090a0f;
  background: #fff;
  border-radius: 6px;
  font-size: 14px;
}
.skip-link:focus {
  transform: translateY(0);
}

/* ---------------------------------------------------------------- topbar -- */

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  background: rgba(9, 10, 15, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 40px), 1440px);
  height: 100%;
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(210, 197, 255, 0.4);
  border-radius: 8px;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(171, 140, 255, 0.75),
    rgba(93, 77, 224, 0.25)
  );
  box-shadow: 0 0 18px rgba(132, 91, 232, 0.35);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-sub {
  color: var(--accent-bright);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.search {
  width: clamp(180px, 30vw, 340px);
  padding: 9px 13px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-family: inherit;
  font-size: 13.5px;
}
.search::placeholder {
  color: var(--dim);
}
.search:focus {
  border-color: rgba(210, 197, 255, 0.5);
  outline: none;
  box-shadow: 0 0 0 3px rgba(171, 140, 255, 0.13);
}

.ghost-btn,
.solid-btn {
  flex: none;
  padding: 8px 15px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}
.ghost-btn {
  color: var(--muted);
  border: 1px solid var(--border);
}
.ghost-btn:hover {
  color: var(--text);
  border-color: rgba(210, 197, 255, 0.45);
}
.solid-btn {
  color: #14101f;
  background: linear-gradient(140deg, var(--accent-bright), var(--accent));
  box-shadow: 0 8px 24px rgba(132, 91, 232, 0.28);
}
.solid-btn:hover {
  transform: translateY(-1px);
}

/* ----------------------------------------------------------------- shell -- */

.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 48px;
  width: min(calc(100% - 40px), 1440px);
  margin-inline: auto;
  padding: 40px 0 90px;
}

.sidenav {
  position: sticky;
  top: calc(var(--topbar-h) + 28px);
  align-self: start;
  max-height: calc(100vh - var(--topbar-h) - 56px);
  overflow-y: auto;
  padding-right: 6px;
}
.sidenav ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sidenav a {
  display: block;
  padding: 5px 12px;
  color: var(--dim);
  border-left: 2px solid transparent;
  font-size: 13px;
  font-weight: 600;
  transition:
    color 0.18s ease,
    border-color 0.18s ease;
}
.sidenav li.sub a {
  padding-left: 26px;
  font-size: 12.5px;
  font-weight: 500;
}
.sidenav a:hover {
  color: var(--text);
}
.sidenav a.active {
  color: var(--accent-bright);
  border-left-color: var(--accent);
}

main {
  min-width: 0;
}

/* ------------------------------------------------------------------ hero -- */

.section-label {
  margin: 0 0 12px;
  color: var(--accent-bright);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  padding-bottom: 18px;
}
.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.055em;
}
.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 18px;
}
.stat {
  display: flex;
  flex-direction: column;
  min-width: 116px;
  padding: 13px 17px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: linear-gradient(
    150deg,
    rgba(21, 24, 36, 0.9),
    rgba(12, 13, 20, 0.85)
  );
}
.stat strong {
  color: var(--accent-bright);
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.stat span {
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.fact span {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.fact strong,
.fact code {
  font-size: 14px;
  font-weight: 700;
}
.fact code {
  color: var(--accent-bright);
}

.gate {
  max-width: 900px;
  margin: 0;
  padding: 16px 20px;
  color: var(--muted);
  border: 1px solid rgba(210, 197, 255, 0.22);
  border-left: 3px solid var(--accent);
  border-radius: 0 13px 13px 0;
  background: rgba(171, 140, 255, 0.055);
  font-size: 14px;
}
.gate strong {
  color: var(--text);
}

/* ---------------------------------------------------------------- blocks -- */

.block {
  margin-top: 64px;
  scroll-margin-top: calc(var(--topbar-h) + 18px);
}
.block > h2 {
  margin: 0 0 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.block-lede {
  max-width: 850px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14.5px;
}
.block-lede a {
  color: var(--accent-bright);
  border-bottom: 1px solid rgba(210, 197, 255, 0.35);
}

.cmd-group {
  margin-top: 38px;
  scroll-margin-top: calc(var(--topbar-h) + 18px);
}
.group-head h3,
.panel-head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.count {
  padding: 2px 8px;
  color: var(--accent-bright);
  border: 1px solid rgba(210, 197, 255, 0.25);
  border-radius: 20px;
  background: rgba(171, 140, 255, 0.08);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}
.group-head p {
  max-width: 820px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.cmd-list {
  display: grid;
  gap: 14px;
}

/* -------------------------------------------------------------- commands -- */

.cmd {
  overflow: hidden;
  padding: 18px 20px 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: linear-gradient(
    155deg,
    rgba(21, 24, 36, 0.72),
    rgba(12, 13, 20, 0.72)
  );
  scroll-margin-top: calc(var(--topbar-h) + 18px);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.cmd:hover {
  border-color: rgba(210, 197, 255, 0.28);
}
.cmd:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(171, 140, 255, 0.15);
}

.cmd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cmd-head h4 {
  margin: 0;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.slash {
  color: var(--accent);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge {
  padding: 3px 9px;
  color: var(--dim);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-admin {
  color: var(--amber);
  border-color: rgba(231, 201, 135, 0.3);
  background: rgba(231, 201, 135, 0.08);
}
.badge-secret {
  color: var(--red);
  border-color: rgba(239, 154, 157, 0.3);
  background: rgba(239, 154, 157, 0.08);
}

.cmd-desc {
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.usage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
}
.usage code {
  overflow-x: auto;
  color: var(--accent-bright);
  font-size: 13px;
  white-space: nowrap;
}
.copy {
  flex: none;
  padding: 3px 9px;
  color: var(--dim);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  transition:
    color 0.18s ease,
    border-color 0.18s ease;
}
.copy:hover {
  color: var(--text);
  border-color: rgba(210, 197, 255, 0.45);
}
.copy.done {
  color: var(--green);
  border-color: rgba(135, 231, 189, 0.4);
}

.no-options {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
  font-style: italic;
}

/* ---------------------------------------------------------------- tables -- */

.table-wrap {
  overflow-x: auto;
  margin: 14px 0 0;
  border: 1px solid var(--border);
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
caption {
  padding: 11px 15px;
  color: var(--accent-bright);
  border-bottom: 1px solid var(--border);
  background: rgba(171, 140, 255, 0.05);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}
thead th {
  padding: 9px 15px;
  color: var(--dim);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.022);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
tbody td {
  padding: 10px 15px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  vertical-align: top;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:hover td {
  background: rgba(255, 255, 255, 0.016);
}
tbody td strong {
  color: var(--text);
  font-weight: 700;
}
tbody code {
  color: var(--accent-bright);
}
.opt-table td:first-child code {
  white-space: nowrap;
}

.type {
  padding: 1px 7px;
  color: var(--dim);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}
.req {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 11px;
}
.opt {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
}
.constraint {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
}
.method {
  padding: 2px 8px;
  color: var(--green);
  border: 1px solid rgba(135, 231, 189, 0.28);
  border-radius: 5px;
  background: rgba(135, 231, 189, 0.07);
  font-family: var(--mono);
  font-size: 11px;
}
.mark {
  font-family: var(--mono);
  font-size: 12px;
  text-align: center;
}
.mark.yes {
  color: var(--green);
}
.mark.no {
  color: var(--dim);
}
.mark.partly {
  color: var(--amber);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.choices li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 11.5px;
}
.choice-name {
  color: var(--text);
  font-weight: 600;
}
.choices code {
  color: var(--dim);
  font-size: 10.5px;
}

.subs {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.sub {
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-left: 2px solid rgba(171, 140, 255, 0.45);
  border-radius: 0 12px 12px 0;
  background: rgba(0, 0, 0, 0.22);
}
.sub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.sub-head code {
  color: var(--accent-bright);
  font-size: 13px;
  white-space: nowrap;
}
.sub-head span {
  color: var(--muted);
  font-size: 13px;
}
.sub .table-wrap {
  margin-top: 11px;
}

/* ---------------------------------------------------------------- panels -- */

.panel {
  margin-top: 20px;
  padding: 22px 24px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(
    155deg,
    rgba(21, 24, 36, 0.6),
    rgba(12, 13, 20, 0.66)
  );
  scroll-margin-top: calc(var(--topbar-h) + 18px);
}
.panel p {
  max-width: 900px;
  color: var(--muted);
  font-size: 14.5px;
}
.panel p code,
.notes code {
  color: var(--accent-bright);
}
.panel strong {
  color: var(--text);
}
.tagline {
  margin: 0 0 16px !important;
  color: var(--accent-bright) !important;
  font-family: var(--mono);
  font-size: 12.5px;
}

.notes {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.notes li {
  position: relative;
  max-width: 900px;
  margin-bottom: 9px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13.5px;
}
.notes li::before {
  position: absolute;
  top: 0;
  left: 2px;
  color: var(--accent);
  content: "›";
  font-weight: 800;
}

.cfg .key {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}
.cfg .val {
  max-width: 340px;
}
.empty {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11.5px;
  font-style: italic;
}
.id {
  font-size: 12px;
}
.hint {
  color: var(--dim);
  font-size: 11px;
}
.ext {
  color: var(--accent-bright);
  overflow-wrap: anywhere;
  border-bottom: 1px solid rgba(210, 197, 255, 0.3);
}

details.list-value summary {
  color: var(--accent-bright);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
}
details.list-value[open] summary {
  margin-bottom: 9px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 2px 9px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.chip strong {
  color: var(--accent-bright);
}

/* ----------------------------------------------------------------- steps -- */

.steps {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  margin-bottom: 14px;
  padding: 16px 20px 16px 58px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  counter-increment: step;
}
.steps li::before {
  position: absolute;
  top: 16px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--accent-bright);
  border: 1px solid rgba(210, 197, 255, 0.28);
  border-radius: 9px;
  background: rgba(171, 140, 255, 0.09);
  content: counter(step);
  font-family: var(--mono);
  font-size: 12px;
}
.steps strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}
.steps code {
  color: var(--accent-bright);
}

.limits {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.limits h3 {
  margin: 0 0 14px;
  font-size: 16px;
}
.limits .chip {
  gap: 7px;
}
.limits .hint {
  display: block;
  margin: 14px 0 0;
}

/* ------------------------------------------------------------- search UI -- */

.no-results {
  margin-top: 34px;
  padding: 22px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 14px;
  text-align: center;
}
[hidden] {
  display: none !important;
}

.foot {
  margin-top: 70px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-size: 13px;
}
.foot a {
  color: var(--accent-bright);
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1080px) {
  .shell {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .sidenav {
    position: static;
    max-height: none;
    margin-bottom: 30px;
    padding-bottom: 14px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
  }
  .sidenav ol {
    display: flex;
    gap: 4px;
  }
  .sidenav a {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    white-space: nowrap;
  }
  .sidenav li.sub a {
    padding-left: 12px;
  }
  .sidenav a.active {
    border-color: var(--accent);
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    padding: 10px 0;
  }
  .topbar-inner {
    flex-wrap: wrap;
  }
  .search {
    order: 3;
    width: 100%;
  }
  html {
    scroll-padding-top: 20px;
  }
  .block,
  .cmd-group,
  .panel,
  .cmd {
    scroll-margin-top: 20px;
  }
  .cmd,
  .panel {
    padding: 16px;
  }
  .cfg .val {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
