:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #faf7fd;
  background: #130d26;
  font-size: 15px;
  line-height: 1.55;
  color-scheme: dark;
  --accent: #bca3ff;
  --primary: #6d28d9;
  --line: #352a49;
  --muted: #b8aecc;
  --ink: #faf7fd;
  --paper: #1e172e;
  --red: #fca5a5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.25;
}
button:hover,
.button:hover {
  background: #332644;
  border-color: #65507f;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}
.danger {
  color: var(--red);
  border-color: #673a4d;
}
.quiet {
  border-color: transparent;
  background: transparent;
  padding: 6px 0;
  color: var(--muted);
}
a {
  color: var(--accent);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid #a78bfa;
  outline-offset: 2px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 17px;
  line-height: 1.4;
}
small,
.muted {
  color: var(--muted);
}
.eyebrow,
.nav-caption {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.eyebrow {
  margin-bottom: 10px;
}
.brand-icon {
  display: inline-grid;
  place-items: center;
  background: var(--primary);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 24px;
  font-weight: 700;
  font-family: Georgia, serif;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}
.nav-caption {
  margin: 42px 12px 12px;
}
aside {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 245px;
  padding: 32px 22px;
  border-right: 1px solid var(--line);
  background: #171022;
  display: flex;
  flex-direction: column;
}
nav {
  display: flex;
  gap: 5px;
  flex-direction: column;
}
nav a {
  padding: 11px 14px;
  color: #b8aecc;
  border-radius: 7px;
  font-weight: 550;
}
nav a.active {
  background: #302142;
  color: #e2d5ff;
}
nav a span {
  margin-right: 12px;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 11px;
  color: var(--muted);
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #9fd4b3;
  border-radius: 50%;
  margin-right: 5px;
}
main {
  margin-left: 245px;
  padding: 36px 46px;
  max-width: 1780px;
}
#page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 30px;
}
#page-header h1 {
  margin-bottom: 10px;
}
main > footer {
  margin: 42px 0 10px;
  font-size: 11px;
  color: var(--muted);
}
.row,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.between {
  justify-content: space-between;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.card {
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #b8aecc08, transparent), var(--paper);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}
.card h3 {
  margin-bottom: 9px;
}
.card p:last-child {
  margin-bottom: 0;
}
.card .actions {
  margin-top: 20px;
}
.card:hover {
  border-color: #65507f;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.metric {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.metric strong {
  display: block;
  font-size: 31px;
  font-weight: 550;
  margin: 7px 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #3d5b51;
  background: #1d342f;
  color: #a7dfc5;
  border-radius: 6px;
  font-size: 12px;
  padding: 4px 9px;
  line-height: 1.4;
}
.badge.warning {
  background: #3d3023;
  border-color: #705432;
  color: #f5cd8c;
}
.badge.error {
  background: #3d2432;
  border-color: #713e55;
  color: #ffc1ca;
}
.release-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
}
.release-key {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 10px;
}
.meta {
  font-size: 12px;
  color: var(--muted);
}
.next-step {
  padding: 22px 24px;
  background: #281c3c;
  border: 1px solid #50366c;
  border-left: 4px solid var(--accent);
  border-radius: 9px;
  margin-bottom: 24px;
}
.next-step h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #c6acec;
  margin-bottom: 8px;
}
.next-step p {
  white-space: pre-wrap;
  margin-bottom: 0;
}
.tabs {
  display: flex;
  overflow-x: auto;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
  padding-bottom: 0;
}
.tabs a {
  white-space: nowrap;
  padding: 12px 15px;
  color: #b8aecc;
  font-size: 13px;
  border-bottom: 2px solid transparent;
}
.tabs a.active {
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 650;
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 22px;
}
.toolbar input {
  max-width: 360px;
  flex: 1;
}
.field {
  margin: 0 0 18px;
}
.field > span,
.field > label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: #b8aecc;
  margin-bottom: 7px;
}
.value {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 100%;
  margin: 0 0 12px;
}
.field ol {
  padding-left: 22px;
}
.field li {
  white-space: pre-wrap;
  margin-bottom: 8px;
}
.details {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 14px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 5px 0;
  overflow-wrap: anywhere;
}
.details > div {
  margin-top: 16px;
}
.empty {
  padding: 55px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #59416c;
  border-radius: 12px;
}
.empty h3 {
  color: #d0c1e3;
  font-size: 20px;
}
.stepper {
  display: flex;
  gap: 8px;
  margin: 12px 0 22px;
}
.stepper span {
  flex: 1;
  border-top: 3px solid var(--line);
  padding: 12px 0;
  font-size: 12px;
  color: var(--muted);
}
.stepper span.current {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 650;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #463451;
  background: #1e172e;
  color: var(--ink);
  border-radius: 7px;
  padding: 11px 12px;
}
textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.55;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  display: inline-block;
  accent-color: var(--accent);
}
label.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0;
}
.array-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.array-row textarea {
  min-height: 65px;
}
.array-row button {
  padding: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.span-full {
  grid-column: 1/-1;
}
.error {
  background: #3d2432;
  color: #ffc1ca;
  border: 1px solid #713e55;
  border-radius: 8px;
  padding: 15px;
  white-space: pre-wrap;
}
.success {
  color: var(--accent);
}
dialog {
  width: min(940px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 100px #05020b88;
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop {
  background: #08040fc9;
  backdrop-filter: blur(3px);
}
dialog form {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 42px);
}
dialog header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
dialog h2 {
  margin: 0;
}
dialog #modal-close {
  border: 0;
  font-size: 25px;
  padding: 0 5px;
}
#modal-body {
  padding: 26px 30px;
  overflow: auto;
  overscroll-behavior: contain;
}
dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 30px;
  border-top: 1px solid var(--line);
  background: #21182f;
}
#modal-error {
  margin: 0 30px 12px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 500px;
  padding: 16px 24px;
  background: #38234e;
  color: white;
  box-shadow: 0 8px 30px #0002;
  border-radius: 9px;
  z-index: 30;
}
.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
}
.login-card {
  padding: 12vh max(36px, 10vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.login-card .eyebrow {
  margin-top: 38px;
}
.login h1 {
  font-size: clamp(42px, 4vw, 66px);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.1;
}
.login p:not(.eyebrow) {
  max-width: 330px;
  color: var(--muted);
  margin: 20px 0 32px;
}
.login .button {
  padding: 15px 23px;
  min-width: 250px;
  justify-content: space-between;
}
.login small {
  margin-top: 20px;
}
.login-art {
  position: relative;
  overflow: hidden;
  background: #211431;
  padding: 15vh 9vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
  color: #c5a9e2;
  font-size: 14px;
}
.orbit {
  position: absolute;
  border: 1px solid #5c3982;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  top: -230px;
  right: -270px;
  box-shadow:
    0 0 0 70px #211431,
    0 0 0 71px #4e2e71,
    0 0 0 141px #211431,
    0 0 0 142px #3b2455;
}
.timeline .card {
  border-left: 3px solid #7a55a4;
}
.progress {
  width: 100%;
  height: 8px;
  background: #352643;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
}
.progress::-webkit-progress-bar {
  background: #352643;
}
.progress::-webkit-progress-value {
  background: var(--accent);
}
[hidden] {
  display: none !important;
}
/* Shared palette and soft surfaces from the MCP OAuth login. */
button,
.button,
nav a,
.tabs a,
.card {
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}
.primary:hover {
  background: #7522e5 !important;
  box-shadow: 0 4px 24px #6d28d933;
}
nav a:hover {
  background: #241a33;
  color: #f0e8fc;
}
nav a.active {
  box-shadow: inset 3px 0 #a78bfa;
}
dialog[open],
.quota-panel {
  animation: surface-enter 160ms ease-out;
}
@keyframes surface-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#account-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  min-height: 88px;
  gap: 20px;
  margin-left: 245px;
  padding: 16px 46px;
  border-bottom: 1px solid var(--line);
  background: #130d26f2;
  backdrop-filter: blur(18px);
}
.workspace-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.6px;
}
#quota-status {
  margin-left: auto;
}
.account-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
  min-width: 0;
}
#avatar {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: #302142;
  color: #e1d1ff;
  border: 1px solid #5b4078;
  font-size: 12px;
  font-weight: 600;
}
#identity {
  font-size: 12px;
  min-width: 0;
  max-width: 170px;
}
#identity strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#identity small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
#logout {
  min-width: 32px;
  min-height: 40px;
  font-size: 20px;
}
.quota-popover {
  position: relative;
}
#quota-toggle {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 12px;
  border: 1px solid #49355f;
  border-radius: 12px;
  background: #241a33;
  list-style: none;
}
#quota-toggle::-webkit-details-marker {
  display: none;
}
#quota-toggle:hover,
.quota-popover[open] #quota-toggle {
  background: #302142;
  border-color: #9770c1;
}
#quota-toggle:focus-visible,
summary:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 4px;
}
#quota-toggle[data-tone="warning"] {
  border-color: #89683d;
}
#quota-toggle[data-tone="danger"] {
  border-color: #b65e7c;
}
.quota-title {
  font-size: 12px;
  line-height: 1.3;
  color: #f0e8fc;
}
.quota-title small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.quota-mini {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.quota-ring {
  position: relative;
  display: inline-grid;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #c3a4ff;
}
.quota-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  fill: none;
  stroke-width: 3.5;
}
.ring-track {
  stroke: #4a385f;
}
.ring-value {
  stroke: currentColor;
  stroke-linecap: round;
  transition:
    stroke-dasharray 600ms cubic-bezier(0.2, 0.8, 0.2, 1),
    stroke 180ms ease;
}
.ring-number {
  font-size: 9px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: #faf7fd;
}
.quota-ring[data-tone="warning"] {
  color: #f5cd8c;
}
.quota-ring[data-tone="danger"] {
  color: #ffa3bc;
}
.quota-ring[data-tone="muted"] {
  color: #a39bb0;
}
.quota-ring.large {
  width: 96px;
  height: 96px;
}
.quota-ring.large .ring-number {
  font-size: 22px;
  transform: translateY(-4px);
}
.ring-caption {
  position: absolute;
  top: 62%;
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
}
.quota-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 500px;
  padding: 24px;
  background: #21182f;
  border: 1px solid #5c4079;
  border-radius: 16px;
  box-shadow:
    0 22px 70px #05020b99,
    0 0 35px #6d28d91a;
}
.quota-panel h3 {
  margin-bottom: 0;
}
.quota-close {
  border: 0;
  background: transparent;
  font-size: 24px;
  padding: 0 8px;
  min-height: 36px;
}
.quota-windows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.quota-window {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #1b1429;
}
.quota-window h3 {
  font-size: 14px;
  color: #d2c4e5;
  margin-bottom: 20px;
}
.quota-window-body {
  display: flex;
  align-items: center;
  gap: 22px;
}
.quota-window-body strong {
  display: block;
  font-size: 28px;
  font-weight: 550;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}
.quota-window-body small {
  font-size: 11px;
  display: block;
}
.quota-countdown {
  font-size: 12px;
  color: #e4d9f3;
  margin: 8px 0 4px;
  font-variant-numeric: tabular-nums;
}
.quota-state {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 16px 0 20px;
  color: #b8aecc;
}
.quota-state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.quota-state[data-tone="normal"] {
  color: #a7dfc5;
}
.quota-state[data-tone="warning"] {
  color: #f5cd8c;
}
.quota-state[data-tone="danger"] {
  color: #ffa3bc;
}
.quota-panel .quota-windows {
  grid-template-columns: 1fr;
  gap: 10px;
}
.quota-panel .quota-window {
  padding: 16px;
}
.quota-panel .quota-window h3 {
  margin-bottom: 10px;
}
.quota-panel .quota-ring.large {
  width: 66px;
  height: 66px;
}
.quota-panel .quota-ring.large .ring-number {
  font-size: 16px;
}
.quota-panel .quota-window-body strong {
  font-size: 22px;
}
.quota-stamp {
  margin: 20px 0 6px;
  font-size: 11px;
  color: var(--muted);
}
.quota-note {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 16px;
}
.quota-link {
  display: inline-block;
  font-size: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  width: 100%;
}
@media (max-width: 1200px) {
  .quota-windows {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1600px) {
  #account-bar {
    padding-inline: 64px;
  }
  main {
    padding: 45px 64px;
  }
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  #account-bar {
    margin-left: 205px;
    padding-inline: 25px;
  }
  .workspace-label {
    display: none;
  }
  aside {
    width: 205px;
    padding: 24px 14px;
  }
  main {
    margin-left: 205px;
    padding: 28px 25px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .metric-grid {
    gap: 8px;
  }
  .metric {
    padding: 16px;
  }
}
@media (max-width: 700px) {
  #account-bar {
    margin-left: 0;
    padding: 12px 16px;
    gap: 10px;
    min-height: 80px;
  }
  #quota-status {
    margin-left: 0;
  }
  .account-identity {
    margin-left: auto;
    padding-left: 10px;
    gap: 8px;
  }
  #avatar {
    display: none;
  }
  #identity {
    max-width: 105px;
    font-size: 11px;
  }
  #identity small {
    font-size: 10px;
  }
  #quota-toggle {
    gap: 10px;
    padding: 6px 8px;
  }
  .quota-title {
    display: none;
  }
  .quota-mini {
    gap: 4px;
    font-size: 10px;
  }
  .quota-ring {
    width: 32px;
    height: 32px;
  }
  .quota-panel {
    right: 12px;
    left: 12px;
    top: calc(100% - 3px);
    width: auto;
    padding: 20px;
    max-height: 70dvh;
    overflow: auto;
  }
  .quota-popover {
    position: static;
  }
  .quota-panel .quota-windows {
    grid-template-columns: 1fr;
  }
  .quota-ring.large {
    width: 72px;
    height: 72px;
  }
  .quota-ring.large .ring-number {
    font-size: 17px;
  }
  .quota-window-body {
    gap: 16px;
  }
  aside {
    position: static;
    width: 100%;
    padding: 18px 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 16px;
  }
  .brand small,
  .nav-caption,
  .sidebar-bottom {
    display: none;
  }
  nav {
    flex-direction: row;
    overflow-x: auto;
    margin-top: 17px;
    gap: 4px;
  }
  nav a {
    white-space: nowrap;
    padding: 11px;
    font-size: 12px;
  }
  nav a span {
    display: none;
  }
  main {
    margin: 0;
    padding: 24px 17px;
  }
  h1 {
    font-size: 25px;
  }
  #page-header {
    flex-direction: column;
    margin-bottom: 22px;
  }
  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .metric {
    padding: 12px;
    font-size: 11px;
  }
  .metric strong {
    font-size: 25px;
  }
  .card {
    padding: 19px;
  }
  .release-card {
    grid-template-columns: 1fr;
  }
  .release-card > .actions {
    margin-top: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .tabs {
    margin-left: -17px;
    margin-right: -17px;
    padding: 0 10px;
  }
  .tabs a {
    padding: 10px;
    font-size: 12px;
  }
  dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  dialog form {
    height: 100%;
    max-height: 100dvh;
  }
  dialog header {
    padding: 20px;
  }
  #modal-body {
    padding: 20px;
    flex: 1;
  }
  dialog footer {
    padding: 16px 20px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-card {
    padding: 12vh 32px;
  }
  .login-art {
    display: none;
  }
  .login h1 {
    font-size: 52px;
  }
  .next-step {
    padding: 18px;
  }
  #toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}
