:root {
  --bg: #000000;
  --panel: #0C0E14;
  --panel2: #070809;
  --ink: #FFFFFF;
  --muted: #93A0B8;
  --line: #191D2B;
  --star: #2B4EFF;
  --star-2: #5B7CFF;
  --green: #59C978;
  --amber: #F08A5B;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 80% -12%, rgba(43, 78, 255, 0.22), transparent 60%),
    radial-gradient(900px 500px at 3% 0%, rgba(43, 78, 255, 0.10), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
}

button {
  font-family: inherit;
  cursor: pointer
}

::selection {
  background: rgba(43, 78, 255, .4)
}

.bs-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column
}

.bs-loading {
  max-width: 760px;
  margin: 60px auto;
  padding: 0 24px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace
}

/* header */
.bs-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(10px)
}

.bs-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: var(--ink);
  padding: 0
}

.bs-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.02em
}

.bs-star {
  color: var(--star)
}

.bs-brand-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 10px;
  margin-left: 2px;
  text-transform: uppercase;
  letter-spacing: .12em
}

.bs-nav {
  display: flex;
  gap: 8px
}

.bs-navbtn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 14px;
  border-radius: 8px;
  transition: .15s
}

.bs-navbtn:hover {
  color: var(--ink)
}

/* main */
.bs-main {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 44px 24px 60px;
  flex: 1
}

/* hero */
.bs-hero {
  margin-bottom: 34px
}

.bs-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--star);
  margin: 0 0 14px
}

.bs-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
}

.bs-lede {
  color: var(--muted);
  font-size: 16px;
  max-width: 52ch;
  margin: 0;
  line-height: 1.5
}

/* filters */
.bs-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line)
}

.bs-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.bs-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 20px;
  transition: .15s
}

.bs-chip:hover {
  color: var(--ink);
  border-color: #33405f
}

.bs-chip.on {
  color: var(--ink);
  border-color: rgba(43, 78, 255, .6);
  background: rgba(43, 78, 255, .12)
}

.bs-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%
}

.bs-select {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 8px;
  outline: none
}

.bs-select:focus {
  border-color: rgba(43, 78, 255, .6)
}

/* timeline */
.bs-monthlabel {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 26px 0 14px 40px
}

.bs-entry {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px;
  position: relative
}

.bs-entry::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0;
  bottom: -4px;
  width: 1px;
  background: var(--line)
}

.bs-monthgroup .bs-entry:last-child::before {
  bottom: auto;
  height: 30px
}

.bs-node {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  z-index: 1
}

.bs-node-star {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 4px var(--bg), 0 0 14px var(--c)
}

.bs-entry-body {
  padding: 0 0 26px 8px
}

.bs-entry-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px
}

.bs-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--c);
  border: 1px solid var(--c);
  padding: 3px 9px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--c) 12%, transparent)
}

.bs-proj {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500
}

.bs-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted)
}

.bs-entry-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -.01em;
  margin: 0 0 6px;
  line-height: 1.25
}

.bs-entry-text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 60ch
}

/* empty */
.bs-empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--muted)
}

.bs-empty h3 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  font-size: 20px;
  margin: 18px 0 6px
}

.bs-empty p {
  margin: 0;
  font-size: 14px
}

/* gate */
.bs-gate {
  display: flex;
  align-items: center;
  justify-content: center
}

.bs-gatecard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
  text-align: center
}

.bs-gatecard h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  margin: 16px 0 6px
}

.bs-gatesub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 22px
}

.bs-fineprint {
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0 0;
  line-height: 1.5
}

/* admin */
.bs-adminhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line)
}

.bs-tabs {
  display: flex;
  gap: 2px
}

.bs-tab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 14px;
  transition: .15s
}

.bs-tab:hover {
  color: var(--ink)
}

.bs-tab.on {
  color: var(--star);
  border-bottom-color: var(--star)
}

.bs-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px
}

.bs-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px
}

.bs-field>span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted)
}

.bs-row3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px
}

.bs-input,
.bs-textarea {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 13px;
  width: 100%;
  outline: none;
  transition: .15s
}

.bs-input:focus,
.bs-textarea:focus {
  border-color: rgba(43, 78, 255, .6);
  background: #0a0b10
}

.bs-textarea {
  resize: vertical;
  line-height: 1.5
}

.bs-input::placeholder,
.bs-textarea::placeholder {
  color: #4f5a72
}

.bs-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
  flex-wrap: wrap
}

.bs-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  padding: 11px 18px;
  border-radius: 9px;
  transition: .15s
}

.bs-btn:hover {
  background: rgba(255, 255, 255, .1)
}

.bs-btn.primary {
  background: var(--star);
  color: #fff;
  border-color: var(--star)
}

.bs-btn.primary:hover {
  filter: brightness(1.08)
}

.bs-btn.ghost {
  background: transparent
}

.bs-btn.full {
  width: 100%;
  margin-top: 4px;
  justify-content: center
}

.bs-btn:disabled {
  opacity: .5;
  cursor: default
}

.bs-err {
  color: var(--amber);
  font-size: 13px;
  margin: 4px 0 12px;
  font-family: 'JetBrains Mono', monospace
}

.bs-ok {
  color: var(--green);
  font-size: 13px;
  margin: 4px 0 12px;
  font-family: 'JetBrains Mono', monospace
}

/* manage */
.bs-managelist {
  display: flex;
  flex-direction: column
}

.bs-manage-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line)
}

.bs-manage-row:last-child {
  border-bottom: none
}

.bs-manage-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0
}

.bs-manage-info {
  flex: 1;
  min-width: 0
}

.bs-manage-title {
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.bs-manage-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px
}

.bs-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 5px;
  margin-left: 8px;
  vertical-align: middle
}

.bs-badge.live {
  color: var(--green);
  border: 1px solid var(--green);
  background: rgba(89, 201, 120, .1)
}

.bs-badge.draft {
  color: var(--muted);
  border: 1px solid var(--line)
}

.bs-manage-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0
}

.bs-linkbtn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  padding: 4px
}

.bs-linkbtn:hover {
  color: var(--ink)
}

.bs-linkbtn.pub:hover {
  color: var(--green)
}

.bs-linkbtn.danger:hover {
  color: var(--amber)
}

.bs-manage-edit {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px
}

.bs-managed-empty {
  text-align: center;
  color: var(--muted)
}

/* footer */
.bs-foot {
  border-top: 1px solid var(--line);
  padding: 22px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap
}

.bs-dot {
  opacity: .5
}

@media (max-width:640px) {
  .bs-h1 {
    font-size: 30px
  }

  .bs-row3 {
    grid-template-columns: 1fr
  }

  .bs-brand-sub {
    display: none
  }

  .bs-filters {
    flex-direction: column;
    align-items: stretch
  }
}