:root {
  color-scheme: dark;
  --bg: #242424;
  --sidebar: #1c1e1d;
  --surface: #292b2a;
  --surface-raised: #303330;
  --text: #f1f3f1;
  --muted: #a8b0aa;
  --border: #3b413d;
  --accent: #00fb9a;
  --accent-text: #00fb9a;
  --accent-soft: rgba(0, 251, 154, .08);
  --shadow: 0 8px 30px rgba(0, 0, 0, .07)
}

:root[data-theme=light] {
  color-scheme: light;
  --bg: #f3f5f3;
  --sidebar: #fff;
  --surface: #fff;
  --surface-raised: #eaf0ec;
  --text: #202b25;
  --muted: #56665d;
  --border: #d5ded8;
  --accent-text: #007749;
  --accent-soft: #e7f7ee;
  --shadow: 0 8px 30px rgba(32, 55, 39, .04)
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text)
}

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

button {
  font: inherit;
  cursor: pointer
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent
}

button {
  color: inherit
}

button:disabled {
  cursor: default
}

h1,
h2,
h3,
p {
  margin-top: 0
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -.035em
}

h1 {
  font-size: 34px;
  font-weight: 650;
  margin-bottom: 10px
}

h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px
}

h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px
}

p {
  margin-bottom: 16px
}

a,
button {
  transition: background .15s, color .15s, border-color .15s
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 4px
}

button[hidden],
[hidden] {
  display: none !important
}

.icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round
}

.accent-text {
  color: var(--accent-text)
}

.text-muted {
  color: var(--muted)
}

.small {
  font-size: 12px
}

.mono,
.tiny-label {
  font-family: "Cascadia Code", Consolas, monospace
}

.eyebrow,
.tiny-label {
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 600
}

.eyebrow {
  margin-bottom: 12px
}

.tiny-label {
  color: var(--muted)
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  padding: 12px;
  background: var(--accent);
  color: #10251b;
  z-index: 100
}

.skip-link:focus {
  top: 12px
}

.app-shell {
  display: flex;
  min-height: 100vh
}

.sidebar {
  width: 248px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 34px 20px 20px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 30
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1px;
  line-height: 1.1;
  padding: 0 12px
}

.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2.5px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 500
}

.brand-mark {
  height: 40px;
  width: 40px;
  border: 1px solid var(--accent-text);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center
}

.brand-mark span {
  font-size: 25px
}

.workspace-label {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 30px 4px 20px;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 10px;
  display: flex;
  gap: 8px;
  align-items: center
}

.workspace-label .status-dot {
  color: var(--accent-text)
}

.nav-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
  margin: 22px 12px 10px
}

.nav-item {
  min-height: 43px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted)
}

.nav-item .icon {
  width: 17px;
  height: 17px
}

.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-color: var(--border)
}

a.nav-item:hover {
  background: var(--surface-raised);
  color: var(--text)
}

.nav-item small {
  margin-left: auto;
  font-size: 8px;
  letter-spacing: .02em;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 4px
}

.unavailable {
  color: var(--muted)
}

.sidebar-footer {
  margin-top: auto;
  padding: 48px 12px 0
}

.sidebar-footer p {
  font-size: 10px;
  color: var(--muted);
  margin: 6px 0 0
}

.sidebar-footer .tiny-label {
  font-size: 8px
}

.workspace {
  margin-left: 248px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column
}

.topbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  border-bottom: 1px solid var(--border);
  gap: 16px
}

.header-left,
.header-actions {
  display: flex;
  gap: 18px;
  align-items: center
}

.breadcrumb {
  font-size: 12px;
  color: var(--muted)
}

.breadcrumb span {
  margin: 0 12px;
  color: var(--border)
}

.header-divider {
  width: 1px;
  height: 28px;
  background: var(--border)
}

.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  line-height: 1.5;
  max-width: 250px
}

.profile>span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.profile img {
  border-radius: 50%;
  background: var(--surface-raised)
}

.profile small {
  display: block;
  color: var(--muted);
  font-size: 10px
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted)
}

.icon-button:hover {
  background: var(--surface-raised);
  color: var(--text)
}

.mobile-menu {
  display: none
}

.moon {
  display: none
}

[data-theme=light] .sun {
  display: none
}

[data-theme=light] .moon {
  display: inline
}

.main-content {
  padding: 38px;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  flex: 1
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px
}

.page-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px
}

.status {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  line-height: 1.4;
  padding: 6px 9px;
  border-radius: 5px;
  white-space: nowrap;
  border: 1px solid var(--border)
}

.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  flex-shrink: 0
}

.status.good {
  background: var(--accent-soft);
  color: var(--accent-text)
}

.status.muted {
  color: var(--muted);
  background: var(--surface)
}

.status.warning {
  color: #edbd72;
  background: rgba(235, 176, 82, .07)
}

[data-theme=light] .status.warning {
  color: #85520c
}

.welcome-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(110deg, var(--surface), var(--sidebar));
  border-radius: 12px;
  min-height: 250px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px
}

.welcome-panel>div:first-child {
  position: relative;
  z-index: 1;
  max-width: 75%
}

.welcome-panel .tiny-label {
  color: var(--accent-text);
  font-size: 9px
}

.welcome-panel h2 {
  font-size: 26px;
  line-height: 1.3;
  margin: 15px 0 12px;
  overflow-wrap: anywhere
}

.welcome-panel p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 23px
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 10px 15px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 650
}

.button.primary {
  color: #10281b;
  background: var(--accent)
}

.button.primary:hover {
  background: #5bffbe
}

.button.secondary {
  color: var(--text);
  background: var(--surface-raised);
  border-color: var(--border)
}

.button.secondary:hover {
  border-color: var(--accent-text)
}

.button .icon {
  width: 16px;
  height: 16px
}

.welcome-art {
  height: 170px;
  min-width: 190px;
  display: grid;
  place-items: center;
  position: relative;
  margin-right: 30px
}

.orbit {
  position: absolute;
  border: 1px solid var(--border);
  transform: rotate(30deg);
  border-radius: 24px
}

.orbit-one {
  width: 170px;
  height: 170px
}

.orbit-two {
  width: 125px;
  height: 125px;
  transform: rotate(60deg);
  border-color: var(--accent-text);
  opacity: .25
}

.core-symbol {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--accent-text)
}

.core-symbol .icon {
  width: 44px;
  height: 44px
}

.art-label {
  position: absolute;
  bottom: -24px;
  font-family: Consolas, monospace;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--muted)
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0 17px
}

.section-heading h2 {
  font-size: 16px;
  margin: 0
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow)
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px
}

.feature-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-bottom: 17px
}

.card-heading h2 {
  margin: 0;
  font-size: 16px
}

.card-heading .eyebrow {
  margin: 0;
  font-size: 8px;
  color: var(--muted)
}

.feature-icon,
.resource-icon {
  width: 35px;
  height: 35px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-text);
  flex-shrink: 0
}

.feature-icon .icon {
  width: 18px;
  height: 18px
}

.feature-card h3 {
  font-size: 16px
}

.feature-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 22px
}

.feature-card>.small {
  font-size: 10px
}

.lower-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  margin-top: 22px
}

.library,
.access-card {
  padding: 25px
}

.library>.card-heading {
  margin-bottom: 8px
}

.library>.card-heading>.icon {
  color: var(--muted);
  width: 17px
}

.resource-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 19px 0;
  border-top: 1px solid var(--border)
}

.resource-link:last-child {
  padding-bottom: 0
}

.resource-link>span:nth-child(2) {
  flex: 1
}

.resource-link strong {
  font-size: 12px;
  font-weight: 600
}

.resource-link small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px
}

.resource-link>.icon {
  color: var(--muted);
  width: 16px
}

.resource-link:hover strong {
  color: var(--accent-text)
}

.resource-icon {
  background: var(--surface-raised);
  color: var(--text)
}

.resource-icon .icon {
  width: 17px
}

.access-card h2 {
  font-size: 18px;
  margin-top: 17px
}

.access-card p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted)
}

.access-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--accent-text)
}

.access-note .icon {
  width: 15px
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-text);
  font-size: 11px;
  margin-top: 17px
}

.text-link:hover {
  text-decoration: underline
}

.text-link .icon {
  width: 15px
}

.page-footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  margin: 0 38px;
  padding: 20px 0;
  border-top: 1px solid var(--border)
}

.notice {
  font-size: 13px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-text);
  border-radius: 6px;
  background: var(--accent-soft);
  padding: 17px 20px;
  margin-bottom: 24px
}

.prose {
  max-width: 900px;
  padding: 32px;
  font-size: 15px;
  line-height: 1.85;
  overflow-wrap: anywhere
}

.prose h2 {
  margin-top: 30px;
  font-size: 22px
}

.prose h2:first-child {
  margin-top: 0
}

.prose a {
  color: var(--accent-text);
  text-decoration: underline
}

.prose code {
  background: var(--surface-raised);
  padding: 3px 5px;
  border-radius: 3px
}

.prose pre {
  overflow: auto;
  background: var(--surface-raised);
  padding: 16px;
  border-radius: 6px
}

.prose blockquote {
  margin-left: 0;
  padding-left: 18px;
  border-left: 2px solid var(--accent-text);
  color: var(--muted)
}

.table-card {
  margin: 24px 0;
  overflow: hidden
}

.table-card>.card-heading {
  padding: 24px;
  margin: 0
}

.table-scroll {
  overflow: auto
}

.prose table {
  display: block;
  overflow: auto
}

table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
  font-size: 13px
}

th {
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase
}

th,
td {
  padding: 15px 24px;
  border-bottom: 1px solid var(--border)
}

tbody tr:last-child td {
  border-bottom: 0
}

tbody tr:hover {
  background: var(--accent-soft)
}

.diagnostics-summary {
  padding: 25px
}

.diagnostics-summary dl {
  display: flex;
  gap: 45px;
  flex-wrap: wrap;
  margin-bottom: 0
}

.diagnostics-summary dt {
  color: var(--muted);
  font-size: 12px
}

.diagnostics-summary dd {
  margin: 6px 0 0;
  font-family: Consolas, monospace
}

.empty-state {
  padding: 40px;
  margin-bottom: 24px
}

.empty-state h2 {
  margin-top: 20px
}

.empty-state p {
  color: var(--muted);
  max-width: 660px
}

.public-header {
  padding: 32px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.public-brand {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -1.5px;
  display: flex;
  align-items: baseline
}

.public-brand .tiny-label {
  margin-left: 18px;
  font-size: 9px;
  letter-spacing: 1.5px
}

.auth-container {
  min-height: calc(100vh - 190px);
  max-width: 1160px;
  padding: 60px 30px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 100px;
  align-items: center
}

.auth-intro h1 {
  font-size: clamp(40px, 4.5vw, 62px);
  line-height: 1.08;
  letter-spacing: -.055em
}

.auth-intro>p:last-of-type {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  margin-top: 24px
}

.auth-decoration {
  margin-top: 45px;
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1.5px
}

.auth-decoration .icon {
  color: var(--accent-text);
  width: 32px;
  height: 32px
}

.login-card {
  padding: 38px
}

.login-card>.feature-icon {
  width: 45px;
  height: 45px;
  margin-bottom: 30px
}

.login-card h2 {
  font-size: 30px
}

.login-card h1 {
  font-size: 28px
}

.login-card>p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 28px
}

.login-card .eyebrow {
  color: var(--muted)
}

.full-width {
  width: 100%;
  min-height: 46px
}

.login-note {
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding-top: 22px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted)
}

.login-note .icon {
  width: 17px;
  margin-top: 3px
}

.login-note p {
  font-size: 11px;
  margin: 0;
  line-height: 1.8
}

.public-footer {
  text-align: center;
  padding: 25px;
  color: var(--muted);
  font-size: 11px
}

.error-container {
  max-width: 600px;
  padding: 60px 24px;
  margin: auto
}

.signout-form {
  margin-top: 16px
}

@media(min-width:1600px) {
  .main-content {
    padding-top: 48px
  }

  .welcome-panel {
    min-height: 275px
  }

  .feature-card {
    min-height: 228px
  }

  .lower-grid {
    margin-top: 26px
  }
}

@media(max-width:1150px) {
  .sidebar {
    width: 220px;
    padding-left: 12px;
    padding-right: 12px
  }

  .workspace {
    margin-left: 220px
  }

  .main-content {
    padding: 28px
  }

  .topbar {
    padding: 0 28px
  }

  .feature-grid {
    gap: 12px
  }

  .feature-card {
    padding: 19px
  }

  .welcome-art {
    margin-right: 0;
    min-width: 135px
  }

  .welcome-panel {
    padding: 25px
  }

  .welcome-panel h2 {
    font-size: 23px
  }

  .orbit-one {
    width: 140px;
    height: 140px
  }

  .orbit-two {
    width: 110px;
    height: 110px
  }

  .auth-container {
    gap: 55px
  }

  .page-heading {
    align-items: flex-start
  }

  .page-heading>.status {
    margin-top: 4px
  }
}

@media(max-width:900px) {
  .sidebar {
    transform: translateX(-100%);
    visibility: hidden;
    width: 248px;
    transition: transform .2s, visibility .2s
  }

  .menu-open .sidebar {
    transform: translateX(0);
    visibility: visible
  }

  .menu-open {
    overflow: hidden
  }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(0, 0, 0, .55);
    border: 0;
    width: 100%;
    height: 100%
  }

  .workspace {
    margin-left: 0
  }

  .mobile-menu {
    display: inline-flex
  }

  .topbar {
    height: 70px
  }

  .auth-container {
    gap: 35px
  }

  .auth-intro h1 {
    font-size: 43px
  }

  .login-card {
    padding: 28px
  }

  .header-left {
    gap: 8px
  }
}

@media(max-width:650px) {
  .main-content {
    padding: 24px 18px
  }

  .topbar {
    padding: 0 16px
  }

  .breadcrumb {
    font-size: 11px
  }

  .breadcrumb span {
    margin: 0 6px
  }

  .header-actions {
    gap: 8px
  }

  .header-divider,
  .profile>span {
    display: none
  }

  .profile img {
    width: 30px;
    height: 30px
  }

  .profile {
    gap: 0
  }

  .icon-button {
    width: 32px;
    height: 32px
  }

  .page-heading {
    display: block;
    margin-bottom: 24px
  }

  .page-heading>.status {
    margin-top: 15px
  }

  .page-heading h1 {
    font-size: 28px
  }

  .welcome-panel {
    padding: 24px;
    min-height: 0
  }

  .welcome-panel>div:first-child {
    max-width: 100%
  }

  .welcome-panel h2 {
    font-size: 24px
  }

  .welcome-art {
    display: none
  }

  .welcome-panel p br {
    display: none
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .feature-card {
    padding: 22px
  }

  .feature-card p {
    margin-bottom: 16px
  }

  .feature-card .card-heading {
    margin-bottom: 13px
  }

  .lower-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px
  }

  .section-heading .small {
    font-size: 10px
  }

  .page-footer {
    margin: 0 18px;
    font-size: 8px
  }

  .library,
  .access-card {
    padding: 22px
  }

  .auth-container {
    grid-template-columns: 1fr;
    padding: 30px 24px;
    gap: 30px;
    max-width: 480px
  }

  .auth-intro h1 {
    font-size: 38px
  }

  .auth-intro h1 br {
    display: none
  }

  .auth-decoration {
    display: none
  }

  .auth-intro>p:last-of-type {
    margin-bottom: 0
  }

  .public-header {
    padding: 22px 24px
  }

  .public-brand .tiny-label {
    font-size: 8px
  }

  .login-card {
    padding: 26px
  }

  .login-card>.feature-icon {
    margin-bottom: 22px
  }

  .prose {
    padding: 24px 20px;
    font-size: 14px
  }

  .prose h2 {
    font-size: 20px
  }

  th,
  td {
    padding: 13px 17px
  }

  .table-card>.card-heading {
    display: block;
    padding: 20px
  }

  .table-card>.card-heading h2 {
    margin-bottom: 8px
  }

  .error-container {
    padding-top: 30px
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important
  }
}
