:root {
  color-scheme: dark;
  --bg: #17191c;
  --panel: #1d2024;
  --line: #33373d;
  --muted: #a4a9b2;
  --text: #f0f1f3;
  --accent: #c5b2f0;
  --green: #b7d5c2;
  --yellow: #e7dcac;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
.button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 6px;
  font-weight: 550;
  line-height: 1.3;
}
button:hover,
.button:hover {
  background: #ffffff09;
  border-color: #69707c;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #20202a;
}
.primary:hover {
  background: #d4c5f5;
  color: #20202a;
}
.danger {
  color: #f3acac;
  border-color: #724949;
}
.link {
  border: 0;
  padding: 0;
  color: var(--accent);
  font-weight: 500;
}
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
.mark {
  width: 23px;
  height: 23px;
  position: relative;
  display: inline-block;
}
.mark:before,
.mark:after {
  content: "";
  position: absolute;
  background: #78a9ff;
  width: 13px;
  height: 13px;
  border-radius: 1px;
}
.mark:before {
  left: 0;
  bottom: 0;
}
.mark:after {
  right: 0;
  top: 0;
}
.muted,
small {
  color: var(--muted);
}
p {
  line-height: 1.7;
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 1.15;
}
h2 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 15px;
  font-weight: 550;
}
.eyebrow {
  font:
    11px ui-monospace,
    monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 18px;
}
.auth-header {
  height: 98px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.auth-header .muted {
  display: flex;
  gap: 10px;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 158px);
  max-width: 1440px;
  margin: auto;
}
.auth-story {
  padding: 80px 12% 35px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.auth-story h1 {
  font-size: 48px;
  max-width: 450px;
  line-height: 1.12;
}
.auth-story p {
  max-width: 360px;
  font-size: 16px;
}
.auth-art {
  margin: 20px -30px 10px;
  min-height: 180px;
  flex: 1;
  max-height: 300px;
  background: radial-gradient(ellipse at center, #c5b2f00b, transparent 65%);
  display: flex;
  align-items: center;
}
.auth-art img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  mix-blend-mode: lighten;
  opacity: 1;
}
.story-foot {
  display: flex;
  gap: 24px;
  font:
    11px ui-monospace,
    monospace;
  color: var(--muted);
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 7px;
}
.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 36px;
}
.auth-form {
  width: 100%;
  max-width: 380px;
}
.auth-form h1 {
  font-size: 32px;
}
.auth-form .primary {
  width: 100%;
  margin-top: 8px;
}
.auth-form .fine {
  font-size: 12px;
  margin-top: 26px;
}
.auth-footer {
  height: 60px;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}
input,
select {
  width: 100%;
  padding: 13px 14px;
  background: #141619;
  border: 1px solid #41454c;
  border-radius: 6px;
  color: var(--text);
  margin-bottom: 20px;
  min-height: 46px;
}
input::placeholder {
  color: #717782;
}
.code-input {
  font:
    24px ui-monospace,
    monospace;
  letter-spacing: 8px;
}
.error {
  color: #f3b4b4;
  background: #f3939310;
  border: 1px solid #663d3d;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.notice {
  border: 1px solid #5a5341;
  background: #e7dcac07;
  border-radius: 6px;
  padding: 16px 20px;
  color: var(--yellow);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.notice p {
  margin: 4px 0 0;
  color: inherit;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 235px;
  border-right: 1px solid var(--line);
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.sidebar .brand {
  padding-left: 10px;
  margin-bottom: 48px;
}
.nav-label {
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 1.8px;
  color: #7f8590;
  padding: 0 12px;
  margin: 0 0 14px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 13px;
}
.nav-item.active {
  color: #e2d6fa;
  background: #c5b2f012;
}
.nav-icon {
  width: 19px;
  font-size: 17px;
  text-align: center;
  font-weight: 400;
}
.side-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: grid;
  gap: 12px;
}
.user-email {
  font-size: 12px;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.side-bottom button {
  justify-content: start;
  padding: 8px 0;
  border: 0;
  font-size: 12px;
}
.workspace {
  margin-left: 235px;
}
.topbar {
  height: 82px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  font-size: 12px;
  color: var(--muted);
}
.topbar strong {
  font-weight: 400;
  color: #ddd;
}
.avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #c5b2f01b;
  border: 1px solid #c5b2f036;
  border-radius: 50%;
  color: var(--accent);
}
.content {
  max-width: 1280px;
  margin: auto;
  padding: 48px 44px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.page-head h1 {
  font-size: 32px;
  margin-bottom: 10px;
}
.page-head p {
  margin: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 32px;
  overflow: hidden;
}
.stat {
  padding: 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border: 0;
}
.stat .value {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 14px 0 8px;
}
.stat .caption {
  font-size: 12px;
  color: var(--muted);
}
.panel {
  background: #1a1d21;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
}
.panel-head {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  margin: 0;
  font-size: 16px;
}
.panel-body {
  padding: 24px;
}
.empty {
  padding: 54px 24px;
  text-align: center;
}
.empty-symbol {
  margin: 0 auto 18px;
  font:
    32px ui-monospace,
    monospace;
  color: var(--accent);
}
.empty h2 {
  font-size: 18px;
}
.empty p {
  max-width: 390px;
  margin: 0 auto 22px;
}
.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.grid-two > .panel {
  height: 100%;
}
.step {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}
.step:last-child {
  margin-bottom: 0;
}
.step-num {
  width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font:
    11px ui-monospace,
    monospace;
  color: var(--accent);
}
.step p {
  margin: 6px 0 0;
  font-size: 12px;
}
.step strong {
  font-size: 13px;
  font-weight: 500;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #131518;
  border: 1px solid #2c3035;
  border-radius: 6px;
  padding: 16px;
  font:
    12px/1.8 ui-monospace,
    monospace;
  color: #c5d6cd;
  margin: 16px 0;
}
code {
  font-family: ui-monospace, monospace;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  color: var(--muted);
}
th,
td {
  padding: 17px 24px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
td small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
}
.badge {
  display: inline-block;
  padding: 5px 9px;
  font:
    10px ui-monospace,
    monospace;
  border-radius: 4px;
  color: var(--green);
  background: #b7d5c210;
}
.badge.pending,
.badge.suspended,
.badge.launching {
  color: var(--yellow);
  background: #e7dcac10;
}
.badge.terminated,
.badge.failed {
  color: var(--muted);
  background: #ffffff07;
}
.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.row-actions button {
  padding: 7px 11px;
  font-size: 12px;
}
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.details dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.form-narrow {
  max-width: 480px;
}
.section-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 15px;
}
.pager button {
  padding: 8px 12px;
}
.loading {
  padding: 80px;
  color: var(--muted);
}
dialog {
  color: var(--text);
  background: var(--panel);
  border: 1px solid #4a4d54;
  border-radius: 10px;
  width: min(460px, calc(100% - 32px));
  padding: 30px;
}
dialog::backdrop {
  background: #0009;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 24px;
}
dialog .section-actions {
  justify-content: flex-end;
}
.skip {
  position: fixed;
  top: -100px;
  left: 10px;
  z-index: 100;
  background: var(--accent);
  color: #17191c;
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: min(420px, calc(100% - 48px));
  border-radius: 7px;
  padding: 0;
  z-index: 20;
  background: #2d3530;
  color: #d3e7d9;
  font-size: 13px;
}
#toast:not(:empty) {
  padding: 16px 22px;
  border: 1px solid #53635a;
}
#one-time-token {
  word-break: break-all;
}
.mobile-brand {
  display: none;
}
.topbar a {
  font-size: 12px;
}
.auth-options {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.settings-row:last-child {
  margin-bottom: 0;
}
.settings-row p {
  margin: 5px 0 0;
  font-size: 12px;
}
.small-note {
  font-size: 12px;
  color: var(--muted);
}
.balance-negative {
  color: var(--green);
}
@media (max-width: 1000px) {
  .sidebar {
    width: 195px;
    padding: 28px 14px;
  }
  .workspace {
    margin-left: 195px;
  }
  .content {
    padding: 32px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .auth-story {
    padding: 65px 9% 30px;
  }
  .auth-story h1 {
    font-size: 39px;
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .auth-story {
    display: none;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    min-height: calc(100dvh - 150px);
  }
  .auth-header {
    height: 80px;
    padding: 0 24px;
  }
  .auth-header .muted {
    font-size: 12px;
  }
  .auth-form-wrap {
    padding: 55px 24px;
  }
  .auth-footer {
    padding: 0 24px;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    margin: 0 0 22px;
    padding: 0;
  }
  .sidebar nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
  }
  .nav-item {
    padding: 10px;
    font-size: 12px;
    white-space: nowrap;
  }
  .nav-icon,
  .nav-label,
  .side-bottom {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 55px;
    padding: 0 20px;
  }
  .content {
    padding: 30px 20px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .page-head h1 {
    font-size: 29px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 18px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .stat .value {
    font-size: 27px;
    margin: 8px 0;
  }
  .grid-two {
    gap: 0;
  }
  .details {
    grid-template-columns: 1fr;
  }
  .panel-body {
    padding: 20px;
  }
  .panel-head {
    padding: 20px;
  }
  .settings-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .auth-form h1 {
    font-size: 30px;
  }
  .story-foot {
    gap: 12px;
  }
  th,
  td {
    padding: 14px 18px;
  }
  .auth-footer span:last-child {
    display: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .auth-form,
  .content {
    animation: enter 0.25s ease-out;
  }
  @keyframes enter {
    from {
      opacity: 0;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
@media (max-width: 700px) {
  .sidebar nav {
    scrollbar-width: none;
  }
  .nav-item {
    font-size: 11px;
    padding: 10px 8px;
  }
}

::selection{background:#b9a2e8;color:#17131f;text-shadow:none}
