:root {
  color-scheme: dark;
}
body {
  margin: 0;
  background: #191c1f;
  color: #e4e8e6;
  font-family: Inter, system-ui, sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: #b1d2bc;
}
.login-shell {
  max-width: 1040px;
  margin: 8vh auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  padding: 32px;
}
.login-intro {
  padding-top: 54px;
}
.login-intro h1 {
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -2px;
}
.login-intro p {
  max-width: 410px;
  color: #9da7a3;
  line-height: 1.8;
}
.auth-card {
  padding: 32px;
  border: 1px solid #353b3b;
  border-radius: 18px;
  background: #23282a;
}
.stack {
  display: grid;
  gap: 16px;
}
.stack label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #bdc6c1;
}
.stack input,
.stack select,
.stack textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  background: #191e20;
  color: #f3f5f4;
  border: 1px solid #41494a;
  border-radius: 8px;
}
.stack textarea {
  min-height: 110px;
}
.stack h2 {
  margin: 0;
}
.error {
  color: #ffb4a6;
  line-height: 1.6;
}
.muted {
  color: #9da7a3;
  font-size: 13px;
  line-height: 1.6;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.grow {
  flex: 1;
}
.empty {
  padding: 44px 24px;
  text-align: center;
  color: #a2ada6;
  line-height: 1.8;
}
.empty h3 {
  color: #e8eeeb;
}
.live-note {
  border-left: 3px solid #9cbea7;
  padding: 14px 18px;
  background: #242d28;
  border-radius: 6px;
  margin-bottom: 22px;
  font-size: 13px;
  line-height: 1.6;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat {
  padding: 24px;
  background: #252a2c;
  border: 1px solid #353b3b;
  border-radius: 12px;
}
.stat strong {
  display: block;
  font-size: 32px;
  margin-top: 12px;
}
.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}
.project {
  padding: 24px;
  background: #252a2c;
  border: 1px solid #353b3b;
  border-radius: 12px;
}
.project h3 {
  margin: 0 0 6px;
}
.project .row {
  margin-top: 20px;
}
.pill {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 20px;
  background: #344039;
  color: #bcdbbd;
  font-size: 11px;
}
.pill.warn {
  background: #443e2e;
  color: #e2cd91;
}
.sidebar .nav button {
  width: 100%;
  text-align: left;
}
.nav-icon {
  font-size: 19px;
  width: 24px;
}
.page-heading {
  margin-bottom: 28px;
}
.page-heading h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
  margin: 8px 0;
}
.page-heading p {
  color: #9da7a3;
  margin: 0;
}
.page-heading .eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #93a297;
}
.panel {
  overflow: hidden;
  margin-bottom: 20px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid #353b3b;
}
.data-table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #93a297;
}
.data-table small {
  display: block;
  color: #939f98;
  margin-top: 5px;
}
.table-scroll {
  overflow: auto;
}
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filters label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #a6b0aa;
}
.filters select {
  padding: 9px;
  background: #23282a;
  border: 1px solid #41494a;
  border-radius: 7px;
  color: inherit;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0009;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal-box {
  max-height: 90vh;
  overflow: auto;
  width: 560px;
  max-width: 100%;
  padding: 28px;
  background: #24292b;
  border: 1px solid #41494a;
  border-radius: 16px;
  box-shadow: 0 24px 80px #0008;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-head h2 {
  font-size: 20px;
  margin: 0;
}
.secret {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #171b1c;
  border: 1px solid #41494a;
  padding: 18px;
  border-radius: 8px;
  user-select: all;
  font: 12px/1.7 monospace;
}
.progress {
  width: 100%;
  height: 9px;
  accent-color: #adcdb7;
  margin: 16px 0;
}
.quota-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #aebbb3;
}
.refresh {
  font-size: 11px;
  color: #8d9d93;
  margin: 18px 0;
}
.notice-row {
  padding: 20px;
  border-bottom: 1px solid #353b3b;
}
.notice-row p {
  margin: 6px 0;
  color: #aebbb3;
}
.center-card {
  max-width: 500px;
  margin: 12vh auto;
  padding: 30px;
}
.content {
  min-width: 0;
}
.sidebar {
  overflow-y: auto;
}
.main {
  padding-top: 36px;
}
.full {
  width: 100%;
}
.small-code {
  font: 12px monospace;
  overflow-wrap: anywhere;
}
.button-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.nav button.active {
  background: #36483b;
}
.auth-card .text-link {
  margin-top: 10px;
}
.side-bottom {
  margin-top: auto;
}
.toast.show {
  opacity: 1;
}
#toast.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 760px) {
  .login-shell {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0;
    padding: 20px;
  }
  .login-intro {
    padding-top: 0;
  }
  .login-intro h1 {
    font-size: 32px;
  }
  .login-intro p {
    display: none;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 68px;
    padding: 12px 8px;
  }
  .sidebar .brand {
    font-size: 0;
  }
  .sidebar .brand .logo {
    font-size: 23px;
  }
  .sidebar .workspace,
  .sidebar .nav-title,
  .sidebar .nav-label,
  .sidebar .profile,
  .sidebar .demo-note {
    display: none;
  }
  .sidebar .nav button {
    padding: 12px;
    justify-content: center;
  }
  .shell .content {
    margin-left: 68px;
  }
  .main {
    padding: 22px 14px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .project-list {
    grid-template-columns: 1fr;
  }
  .center-card {
    margin: 30px 15px;
  }
  .modal-box {
    padding: 20px;
  }
}
@media (max-width: 850px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 68px;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 7px;
    overflow-y: auto;
    border-right: 1px solid #353b3b;
  }
  .sidebar .brand {
    font-size: 0;
    padding: 0 5px 22px;
  }
  .sidebar .brand .logo {
    display: flex;
    font-size: 23px;
  }
  .sidebar .workspace,
  .sidebar .nav-title,
  .sidebar .nav-label {
    display: none;
  }
  .sidebar .nav {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 100%;
    overflow: visible;
    gap: 5px;
  }
  .sidebar .nav button {
    padding: 12px;
    justify-content: center;
  }
  .sidebar .nav button .nav-icon {
    display: inline;
    font-size: 20px;
  }
  .sidebar .side-bottom {
    display: block;
    margin-top: auto;
    padding-top: 20px;
  }
  .sidebar .side-bottom .btn {
    font-size: 10px;
    padding: 8px 4px;
    min-width: 0;
    width: 100%;
  }
  .shell .content {
    margin-left: 68px;
  }
}
