:root {
  --ink: #232427;
  --ink-deep: #191a1c;
  --paper: #f3f4f0;
  --paper-strong: #ffffff;
  --paper-muted: #d9ddd8;
  --line: #c9cec8;
  --line-dark: #414347;
  --text: #232427;
  --muted: #68706c;
  --mint: #5ce3a5;
  --mint-dark: #227c59;
  --orange: #ff6427;
  --blue: #3f61b5;
  --shadow: 0 14px 34px rgba(35, 36, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--text);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

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

button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

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

h1,
h2,
strong {
  text-wrap: balance;
}

h1,
h2,
h3,
p {
  margin-bottom: 0;
}

.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;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--mint);
  color: var(--ink-deep);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-frame {
  min-height: 100vh;
}

.app-sidebar {
  position: fixed;
  z-index: 10;
  inset: 0 auto 0 0;
  display: flex;
  width: 252px;
  flex-direction: column;
  padding: 30px 22px 22px;
  background: var(--ink);
  color: var(--paper);
}

.sidebar-heading {
  display: grid;
  gap: 26px;
  padding: 0 8px 28px;
  border-bottom: 1px solid var(--line-dark);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 2px solid var(--mint);
  border-radius: 50%;
}

.brand-mark span {
  display: block;
  width: 10px;
  height: 10px;
  border: 2px solid var(--orange);
  background: var(--blue);
}

.brand-name span {
  color: var(--mint);
}

.environment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid var(--line-dark);
  color: var(--paper-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.status-dot-mint {
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(92, 227, 165, 0.12);
}

.status-dot-checking {
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(63, 97, 181, 0.12);
}

.status-dot-online {
  background: var(--mint-dark);
  box-shadow: 0 0 0 5px rgba(34, 124, 89, 0.12);
}

.status-dot-offline {
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 100, 39, 0.12);
}

.primary-nav {
  display: grid;
  gap: 5px;
  padding: 28px 0;
}

.nav-label,
.panel-kicker,
.eyebrow,
.metric-label,
.heading-stamp span,
.base-stamp span,
.health-meta span,
.last-check,
.panel-code,
.nav-index,
.footer-separator {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-label {
  margin: 0 8px 9px;
  color: #8b918d;
}

.nav-item {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 0 9px;
  border-left: 2px solid transparent;
  color: #aeb4af;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-item:hover,
.nav-item.is-active {
  border-left-color: var(--mint);
  background: #2d2f32;
  color: var(--paper);
}

.nav-index {
  width: 22px;
  color: #7f8581;
}

.nav-item.is-active .nav-index {
  color: var(--mint);
}

.sidebar-footer {
  display: grid;
  gap: 20px;
  margin-top: auto;
  padding: 20px 8px 0;
  border-top: 1px solid var(--line-dark);
}

.base-stamp {
  display: grid;
  gap: 3px;
}

.base-stamp span {
  color: #8b918d;
}

.base-stamp strong {
  color: var(--paper);
  font-size: 13px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  background: transparent;
  color: var(--mint);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.sidebar-link:hover {
  color: var(--paper);
}

.app-main {
  min-height: 100vh;
  margin-left: 252px;
}

.app-topbar {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 244, 240, 0.96);
}

.topbar-context {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.topbar-context strong {
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.context-separator {
  color: var(--orange);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.last-check {
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: none;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 17px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.button-primary {
  background: var(--mint);
  color: var(--ink-deep);
}

.button-primary:hover {
  background: #83ebbb;
}

.button-outline {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.button-outline:hover {
  border-color: var(--text);
  background: var(--paper-strong);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px;
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.content-area {
  max-width: 1440px;
  margin: 0 auto;
  padding: 54px 48px 70px;
}

.page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: end;
  margin-bottom: 38px;
}

.eyebrow {
  margin-bottom: 15px;
  color: var(--blue);
}

.page-heading h1 {
  max-width: 760px;
  font-size: 48px;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.page-description {
  max-width: 640px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
}

.heading-stamp {
  display: grid;
  min-width: 185px;
  gap: 5px;
  padding: 16px;
  border-left: 3px solid var(--orange);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.heading-stamp span:first-child {
  color: var(--muted);
}

.heading-stamp strong {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.heading-stamp span:last-child {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.health-strip {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(310px, 1.1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
  padding: 22px 24px;
  border: 1px solid var(--line-dark);
  background: var(--ink);
  color: var(--paper);
}

.health-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.health-main .panel-kicker,
.health-meta span {
  color: #a8ada9;
}

.health-main h2 {
  margin-top: 3px;
  color: var(--paper);
  font-size: 17px;
  line-height: 1.2;
}

.health-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.health-meta div {
  display: grid;
  gap: 4px;
}

.health-meta strong {
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.metric-card {
  min-height: 174px;
  padding: 21px 20px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-strong);
}

.metric-card-accent {
  border-top: 3px solid var(--orange);
  padding-top: 18px;
}

.metric-index {
  display: block;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.metric-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.metric-value {
  display: block;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.metric-value-small {
  color: var(--orange);
  font-size: 24px;
}

.metric-card p {
  max-width: 210px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 22px;
  margin-top: 22px;
}

.empty-panel,
.checks-panel {
  min-height: 308px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.empty-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.empty-panel::after {
  position: absolute;
  right: 28px;
  bottom: 26px;
  width: 78px;
  height: 78px;
  border: 1px solid var(--line);
  content: "";
  transform: rotate(45deg);
  opacity: 0.7;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
  margin-top: 7px;
  font-size: 22px;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.panel-kicker {
  color: var(--blue);
}

.panel-code {
  color: var(--muted);
  white-space: nowrap;
}

.empty-panel > p {
  position: relative;
  z-index: 1;
  max-width: 610px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

.empty-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.quiet-note {
  color: var(--muted);
  font-size: 11px;
}

.checks-panel {
  background: var(--ink);
  color: var(--paper);
}

.checks-panel .panel-heading {
  border-color: var(--line-dark);
}

.checks-panel .panel-kicker,
.checks-panel .panel-code {
  color: #a8ada9;
}

.checks-panel .panel-heading h2 {
  color: var(--paper);
}

.check-list {
  display: grid;
  gap: 0;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 49px;
  border-bottom: 1px solid var(--line-dark);
  color: #d4d8d4;
  font-size: 12px;
}

.check-list li:last-child {
  border-bottom: 0;
}

.check-state {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.check-state.is-checking {
  color: var(--blue);
}

.check-state.is-mint {
  color: var(--mint);
}

.check-state.is-blue {
  color: #8ba2ee;
}

.check-state.is-orange {
  color: #ff9670;
}

.roadmap-section {
  margin-top: 58px;
}

.section-heading-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.75fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 18px;
}

.section-heading-inline h2 {
  margin-top: 7px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading-inline > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.roadmap-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.roadmap-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 15px;
  min-height: 148px;
  padding: 20px 20px 16px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.roadmap-list li + li {
  padding-left: 20px;
}

.roadmap-list li:last-child {
  border-right: 0;
}

.roadmap-list li > span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.roadmap-list strong {
  display: block;
  font-size: 15px;
}

.roadmap-list p {
  max-width: 240px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.roadmap-list b {
  align-self: start;
  color: var(--orange);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 48px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.app-footer a {
  color: var(--blue);
}

.app-footer a:hover {
  color: var(--orange);
}

.roadmap-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 26px;
  border: 1px solid var(--line-dark);
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(25, 26, 28, 0.3);
}

.roadmap-dialog::backdrop {
  background: rgba(25, 26, 28, 0.68);
}

.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.dialog-heading h2 {
  margin-top: 7px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.dialog-close {
  width: 42px;
  height: 42px;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
}

.dialog-close:hover {
  color: var(--orange);
}

.roadmap-dialog > p {
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
}

.dialog-list {
  display: grid;
  gap: 0;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.dialog-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
}

.dialog-list span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.dialog-list strong {
  font-size: 13px;
}

.dialog-action {
  width: 100%;
}

@media (max-width: 1180px) {
  .app-sidebar {
    width: 224px;
  }

  .app-main {
    margin-left: 224px;
  }

  .app-topbar,
  .app-footer {
    padding-right: 30px;
    padding-left: 30px;
  }

  .content-area {
    padding-right: 30px;
    padding-left: 30px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .app-sidebar {
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  body.nav-open .app-sidebar {
    transform: translateX(0);
    box-shadow: 12px 0 35px rgba(25, 26, 28, 0.25);
  }

  .app-main {
    margin-left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .app-topbar {
    justify-content: flex-start;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .last-check {
    display: none;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .section-heading-inline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .app-topbar {
    min-height: 64px;
    padding: 0 18px;
  }

  .topbar-context {
    display: none;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .content-area {
    padding: 34px 18px 48px;
  }

  .page-heading {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 28px;
  }

  .page-heading h1 {
    font-size: 36px;
  }

  .page-description {
    font-size: 14px;
  }

  .heading-stamp {
    width: 100%;
  }

  .health-strip {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 19px;
  }

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

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .empty-panel,
  .checks-panel {
    min-height: auto;
    padding: 20px;
  }

  .panel-heading h2 {
    font-size: 19px;
  }

  .empty-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .empty-panel::after {
    right: 18px;
    bottom: 20px;
  }

  .roadmap-section {
    margin-top: 42px;
  }

  .section-heading-inline h2 {
    font-size: 26px;
  }

  .roadmap-list {
    grid-template-columns: 1fr;
  }

  .roadmap-list li,
  .roadmap-list li + li {
    grid-template-columns: auto 1fr auto;
    padding: 18px 0;
    border-right: 0;
  }

  .app-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.module-directory {
  margin-top: 64px;
}

.module-list {
  margin-top: 24px;
  border-top: 1px solid #d9dcd5;
}

.module-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 18px;
  min-height: 82px;
  padding: 16px 8px;
  border-bottom: 1px solid #d9dcd5;
  color: #232427;
  text-decoration: none;
  scroll-margin-top: 96px;
  transition: background-color 160ms ease, padding-left 160ms ease;
}

.module-row:hover {
  padding-left: 16px;
  background: #e9ebe5;
}

.module-row:focus-visible {
  outline: 3px solid #ff6427;
  outline-offset: -3px;
}

.module-index {
  color: #3f61b5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.module-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.module-copy strong {
  font-size: 15px;
  line-height: 1.35;
}

.module-copy small {
  color: #6d716d;
  font-size: 13px;
  line-height: 1.45;
}

.module-row b {
  padding: 5px 8px;
  border: 1px solid #ffc8b8;
  color: #d84d1d;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.module-arrow {
  color: #ff6427;
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 600px) {
  .module-directory {
    margin-top: 46px;
  }

  .module-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 15px 0;
  }

  .module-row:hover {
    padding-left: 8px;
  }

  .module-arrow {
    display: none;
  }

  .module-copy small {
    font-size: 12px;
  }
}
