:root {
  color-scheme: dark;
  --black: #050505;
  --black-soft: #090909;
  --panel: #0d0d0d;
  --panel-raised: #121212;
  --line: #272727;
  --line-soft: #1a1a1a;
  --white: #f4f4f1;
  --soft: #c9c9c4;
  --muted: #858580;
  --dim: #555551;
  --good: #8ef0b2;
  --warn: #f1d589;
  --bad: #ff9999;
  --radius: 16px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% -18%, rgba(255, 255, 255, 0.08), transparent 31rem),
    var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.hidden {
  display: none !important;
}

.mobile-only {
  display: none !important;
}

.eyebrow,
.section-kicker,
.nav-label {
  margin: 0;
  color: var(--dim);
  font: 650 10px/1.2 var(--mono);
  letter-spacing: 0.17em;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.wordmark-glyph {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #4a4a4a;
  border-radius: 11px;
  background: linear-gradient(145deg, #fafafa, #9d9d9d);
  box-shadow: inset 0 1px 1px #fff, 0 0 34px rgba(255, 255, 255, 0.08);
  color: #090909;
  font: 900 15px/1 var(--mono);
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: 100vh;
  min-height: 640px;
  flex-direction: column;
  border-right: 1px solid var(--line-soft);
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(22px);
}

.sidebar-head {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--line-soft);
}

.primary-nav {
  padding: 25px 14px 18px;
}

.nav-label {
  padding: 0 12px 10px;
}

.nav-item {
  display: grid;
  width: 100%;
  min-height: 44px;
  grid-template-columns: 30px 1fr;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #70706d;
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
}

.nav-item span {
  color: #4c4c49;
  font: 600 9px/1 var(--mono);
  text-align: center;
}

.nav-item strong {
  font-size: 13px;
  font-weight: 650;
}

.nav-item:hover {
  background: #0c0c0c;
  color: var(--soft);
}

.nav-item.active {
  border-color: #292929;
  background: linear-gradient(100deg, #171717, #0c0c0c);
  box-shadow: 0 10px 34px #000;
  color: var(--white);
}

.nav-item.active span {
  color: var(--white);
}

.service-explorer {
  min-height: 0;
  flex: 1;
  border-top: 1px solid var(--line-soft);
  padding: 20px 14px;
}

.explorer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.explorer-heading span {
  min-width: 22px;
  border: 1px solid #282828;
  border-radius: 999px;
  color: #777;
  font: 600 9px/20px var(--mono);
  text-align: center;
}

.service-tree {
  display: grid;
  gap: 5px;
  margin-top: 11px;
}

.tree-service {
  display: grid;
  width: 100%;
  grid-template-columns: 30px minmax(0, 1fr) 8px;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 9px 10px;
  background: transparent;
  color: #8a8a86;
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
}

.tree-service:hover,
.tree-service.active {
  border-color: #292929;
  background: #0e0e0e;
  color: var(--white);
}

.tree-service .tree-runtime {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid #303030;
  border-radius: 8px;
  background: #151515;
  color: #aaa;
  font: 700 8px/1 var(--mono);
}

.tree-service strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-service small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #52524f;
  font: 9px/1 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot,
.tree-service > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #686868;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.16);
}

.status-dot.running,
.tree-service > i.running {
  background: var(--good);
  box-shadow: 0 0 14px rgba(142, 240, 178, 0.42);
}

.status-dot.error,
.status-dot.crashed,
.tree-service > i.error,
.tree-service > i.crashed {
  background: var(--bad);
  box-shadow: 0 0 14px rgba(255, 153, 153, 0.34);
}

.tree-skeleton {
  height: 47px;
  border-radius: 10px;
  background: linear-gradient(90deg, #0a0a0a, #121212, #0a0a0a);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.tree-skeleton.short {
  width: 76%;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.sidebar-foot {
  padding: 14px;
  border-top: 1px solid var(--line-soft);
}

.deploy-button {
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dbdbd7;
  border-radius: 11px;
  background: linear-gradient(180deg, #f7f7f3, #cfcfca);
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  color: #080808;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: 180ms ease;
}

.deploy-button:hover,
.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.identity-card {
  display: grid;
  grid-template-columns: 8px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 8px 4px;
}

.identity-card i,
.live-pill i,
.secure-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 18px rgba(142, 240, 178, 0.52);
}

.identity-card small {
  display: block;
  color: #4f4f4c;
  font: 600 8px/1 var(--mono);
  letter-spacing: 0.12em;
}

.identity-card strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #8d8d88;
  font: 10px/1.2 var(--mono);
  text-overflow: ellipsis;
}

.workspace {
  min-width: 0;
  padding: 0 4vw 90px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(20px);
}

.topbar h1 {
  margin: 5px 0 0;
  font-size: 18px;
  letter-spacing: -0.025em;
}

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

.live-pill,
.secure-pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #292929;
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(15, 15, 15, 0.7);
  color: #a2a29e;
  font: 600 10px/1 var(--mono);
}

.button,
.icon-button,
.text-button {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.button {
  min-height: 38px;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 0 15px;
  font-size: 11px;
  font-weight: 750;
  transition: 170ms ease;
}

.button.primary {
  border-color: #e4e4df;
  background: linear-gradient(180deg, #fafaf7, #cecec9);
  color: #080808;
}

.button.ghost {
  background: #0d0d0d;
  color: #a4a49f;
}

.button.ghost:hover {
  border-color: #555;
  color: var(--white);
}

.button.danger {
  border-color: #4f2929;
  background: #170c0c;
  color: var(--bad);
}

.button:disabled {
  cursor: wait;
  opacity: 0.45;
  transform: none !important;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #303030;
  border-radius: 9px;
  background: #0e0e0e;
  color: #a1a19d;
  font-size: 18px;
}

.text-button {
  padding: 5px;
  background: transparent;
  color: #aaa;
  font-size: 11px;
}

.text-button:hover {
  color: var(--white);
}

.view {
  display: none;
  animation: view-in 220ms ease both;
}

.view.active {
  display: block;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.intro-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 8vw;
  align-items: end;
  padding: clamp(55px, 8vw, 105px) 0 62px;
}

.intro-row h2,
.page-heading h2,
.explorer-empty h2 {
  margin: 16px 0 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.intro-row h2 span {
  color: #777773;
}

.intro-row > p,
.page-heading > p:last-child {
  max-width: 530px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #080808;
  box-shadow: 0 28px 85px rgba(0, 0, 0, 0.42);
}

.stat-card {
  position: relative;
  min-height: 190px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 0, rgba(255, 255, 255, 0.05), transparent 45%),
    linear-gradient(145deg, #101010, #090909);
}

.stat-card:last-child {
  border-right: 0;
}

.stat-index {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #464643;
  font: 600 9px/1 var(--mono);
}

.stat-card small {
  display: block;
  color: #666662;
  font: 650 9px/1 var(--mono);
  letter-spacing: 0.11em;
}

.stat-card strong {
  display: block;
  margin-top: 35px;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.stat-card p {
  margin: 13px 0 0;
  color: #666662;
  font-size: 11px;
  line-height: 1.5;
}

.section-block {
  margin-top: 70px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 17px;
}

.section-header h3 {
  margin: 7px 0 0;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.service-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #090909;
}

.service-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.service-table th {
  height: 47px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: #565652;
  font: 650 8px/1 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.service-table td {
  height: 74px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-soft);
  color: #94948f;
  font-size: 11px;
}

.service-table tr:last-child td {
  border-bottom: 0;
}

.service-table tbody tr {
  cursor: pointer;
  transition: 150ms ease;
}

.service-table tbody tr:hover {
  background: #0e0e0e;
}

.service-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.runtime-glyph {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #343434;
  border-radius: 11px;
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  color: #d0d0cb;
  font: 800 9px/1 var(--mono);
}

.service-cell strong {
  display: block;
  color: var(--white);
  font-size: 12px;
}

.service-cell small {
  display: block;
  margin-top: 5px;
  color: #51514e;
  font: 9px/1 var(--mono);
}

.status-badge {
  padding: 6px 9px;
  color: #a3a39f;
  text-transform: uppercase;
}

.status-badge.running,
.status-badge.active,
.status-badge.deployed {
  border-color: #28523a;
  color: var(--good);
}

.status-badge.error,
.status-badge.crashed,
.status-badge.expired,
.status-badge.revoked {
  border-color: #542d2d;
  color: var(--bad);
}

.status-badge.stopped,
.status-badge.suspended {
  border-color: #524827;
  color: var(--warn);
}

.table-arrow {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  color: #777;
}

.empty-state,
.explorer-empty {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  padding: 50px;
  text-align: center;
}

.empty-state > span,
.explorer-empty > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #343434;
  color: #666;
  font: 600 10px/1 var(--mono);
}

.empty-state h3 {
  margin: 20px 0 4px;
}

.empty-state p,
.explorer-empty p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.7;
}

.empty-state .button {
  margin-top: 15px;
}

.explorer-empty {
  min-height: calc(100vh - 160px);
}

.explorer-empty h2 {
  margin-top: 25px;
  font-size: clamp(38px, 5vw, 64px);
}

.service-workspace {
  padding-top: 55px;
}

.service-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.service-title {
  display: flex;
  align-items: center;
  gap: 17px;
}

.service-title .runtime-glyph {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  font-size: 12px;
}

.title-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-line h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 42px);
  letter-spacing: -0.055em;
}

.service-title p {
  margin: 8px 0 0;
  color: #62625e;
  font: 10px/1.3 var(--mono);
}

.service-controls {
  display: flex;
  gap: 8px;
}

.service-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.fact {
  min-height: 98px;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: linear-gradient(145deg, #101010, #0a0a0a);
}

.fact:last-child {
  border-right: 0;
}

.fact small {
  color: #595956;
  font: 650 8px/1 var(--mono);
  letter-spacing: 0.12em;
}

.fact strong {
  display: block;
  margin-top: 13px;
  font-size: 14px;
  font-weight: 650;
}

.fact p {
  margin: 5px 0 0;
  color: #5e5e5a;
  font-size: 10px;
}

.tab-bar {
  display: flex;
  gap: 5px;
  margin-top: 42px;
  border-bottom: 1px solid var(--line);
}

.tab {
  position: relative;
  min-height: 46px;
  border: 0;
  padding: 0 15px;
  background: transparent;
  color: #696965;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.tab::after {
  position: absolute;
  right: 13px;
  bottom: -1px;
  left: 13px;
  height: 1px;
  background: transparent;
  content: "";
}

.tab:hover,
.tab.active {
  color: var(--white);
}

.tab.active::after {
  background: var(--white);
  box-shadow: 0 -2px 15px rgba(255, 255, 255, 0.45);
}

.service-tab-panel {
  display: none;
  padding-top: 26px;
  animation: view-in 180ms ease both;
}

.service-tab-panel.active {
  display: block;
}

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

.detail-card,
.deployment-panel {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.045), transparent 46%),
    linear-gradient(145deg, #101010, #090909);
}

.detail-card.span-two {
  min-height: 190px;
  grid-column: 1 / -1;
}

.detail-card h3,
.deployment-panel h3,
.files-intro h3 {
  margin: 10px 0 22px;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.detail-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px 25px;
  margin: 0;
  font-size: 11px;
}

.detail-card dt {
  color: #5c5c58;
}

.detail-card dd {
  margin: 0;
  overflow: hidden;
  color: #b5b5b0;
  font-family: var(--mono);
  text-align: right;
  text-overflow: ellipsis;
}

.meter-group {
  display: grid;
  gap: 18px;
}

.meter-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #777773;
  font: 10px/1 var(--mono);
}

.meter {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #202020;
}

.meter i {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #767676, #f4f4ef);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}

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

.security-steps span {
  padding: 22px 15px 0;
  border-right: 1px solid var(--line-soft);
  color: #858580;
  font-size: 11px;
  line-height: 1.5;
}

.security-steps span:first-child {
  padding-left: 0;
}

.security-steps span:last-child {
  border-right: 0;
}

.security-steps b {
  display: block;
  margin-bottom: 11px;
  color: #4f4f4c;
  font: 650 9px/1 var(--mono);
}

.console-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050505;
  box-shadow: 0 30px 80px #000;
}

.console-head,
.console-foot {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border-bottom: 1px solid var(--line);
  background: #0d0d0d;
  color: #666662;
  font: 9px/1 var(--mono);
}

.console-head > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.console-head i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 14px rgba(142, 240, 178, 0.45);
}

.console-output {
  min-height: 420px;
  max-height: 58vh;
  margin: 0;
  overflow: auto;
  padding: 22px;
  color: #a5a5a0;
  font: 11px/1.72 var(--mono);
  white-space: pre-wrap;
  word-break: break-word;
}

.console-foot {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.files-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 0.62fr);
  gap: 12px;
}

.files-intro,
.file-browser {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #101010, #080808);
}

.files-intro {
  padding: 27px;
}

.files-intro > p:not(.section-kicker) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.72;
}

.manifest-stats {
  display: grid;
  gap: 10px;
  margin-top: 35px;
}

.manifest-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  color: #6d6d69;
  font: 10px/1 var(--mono);
}

.manifest-stat strong {
  color: #bbb;
  font-weight: 600;
}

.file-browser {
  overflow: hidden;
}

.file-browser-head {
  display: flex;
  height: 49px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: #aaa;
  font: 10px/1 var(--mono);
}

.file-browser-head small {
  color: #52524f;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.file-tree {
  max-height: 470px;
  overflow: auto;
  padding: 14px;
  font: 10px/1.4 var(--mono);
}

.file-tree details {
  margin-left: 12px;
}

.file-tree summary {
  display: flex;
  min-height: 29px;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  padding: 0 7px;
  color: #a1a19d;
  cursor: pointer;
  list-style: none;
}

.file-tree summary::-webkit-details-marker {
  display: none;
}

.file-tree summary:hover,
.file-row:hover {
  background: #141414;
}

.tree-chevron {
  display: inline-block;
  width: 8px;
  color: #51514e;
}

details[open] > summary .tree-chevron {
  transform: rotate(90deg);
}

.file-row {
  display: grid;
  min-height: 29px;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-left: 26px;
  border-radius: 6px;
  padding: 0 7px;
  color: #898985;
}

.file-kind {
  color: #5e5e5a;
  font-size: 7px;
  text-transform: uppercase;
}

.file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  color: #4f4f4c;
}

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

.deployment-panel {
  min-height: 340px;
}

.deployment-panel > p:not(.section-kicker) {
  max-width: 650px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.deployment-panel code {
  color: #ddd;
  font-family: var(--mono);
}

.deployment-panel .button {
  margin-top: 28px;
}

.page-heading {
  max-width: 760px;
  padding: clamp(60px, 8vw, 110px) 0 55px;
}

.page-heading > p:last-child {
  margin-top: 25px;
}

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

.license-card,
.security-grid article {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.06), transparent 48%),
    linear-gradient(145deg, #111, #090909);
}

.license-card h3,
.security-grid h3 {
  margin: 30px 0 10px;
  font-size: 19px;
  letter-spacing: -0.035em;
}

.license-card p,
.security-grid p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.license-meta {
  position: absolute;
  right: 26px;
  bottom: 24px;
  left: 26px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  color: #62625e;
  font: 9px/1 var(--mono);
}

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

.security-grid article {
  min-height: 240px;
}

.security-grid article > span {
  color: #535350;
  font: 650 9px/1 var(--mono);
}

.security-note {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 50px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: #0b0b0b;
}

.security-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.deploy-dialog {
  width: min(760px, calc(100% - 30px));
  max-height: calc(100vh - 30px);
  overflow: auto;
  border: 1px solid #373737;
  border-radius: 19px;
  padding: 0;
  background: #0b0b0b;
  box-shadow: 0 45px 150px #000;
  color: var(--white);
}

.deploy-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

.deploy-dialog form {
  padding: 28px;
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.dialog-head h2 {
  margin: 7px 0 0;
  font-size: 29px;
  letter-spacing: -0.05em;
}

.dialog-lead {
  max-width: 630px;
  margin: 22px 0 25px;
  color: #888883;
  font-size: 12px;
  line-height: 1.65;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: #858580;
  font-size: 11px;
}

input,
select {
  width: 100%;
  height: 44px;
  border: 1px solid #303030;
  border-radius: 10px;
  padding: 0 12px;
  background: #070707;
  color: var(--white);
  outline: none;
}

input:focus,
select:focus {
  border-color: #777;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.upload-zone {
  min-height: 145px;
  place-items: center;
  align-content: center;
  gap: 6px;
  margin-top: 15px;
  border: 1px dashed #3c3c3c;
  border-radius: 13px;
  background: #080808;
  cursor: pointer;
  text-align: center;
  transition: 160ms ease;
}

.upload-zone:hover {
  border-color: #888;
  background: #0d0d0d;
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #373737;
  border-radius: 9px;
  color: #aaa;
  font-size: 18px;
}

.upload-zone strong {
  margin-top: 4px;
  color: var(--soft);
  font-size: 12px;
}

.upload-zone small {
  color: #595956;
  font: 9px/1.3 var(--mono);
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.dialog-actions p {
  margin: 0;
  color: #696965;
  font-size: 10px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: min(410px, calc(100% - 30px));
  border: 1px solid #3c3c3c;
  border-radius: 12px;
  padding: 14px 17px;
  background: rgba(18, 18, 18, 0.96);
  box-shadow: 0 25px 70px #000;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.5;
  animation: toast-in 180ms ease both;
}

.toast.error {
  border-color: #512d2d;
  color: var(--bad);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  align-content: center;
  background: #050505;
  transition: 300ms ease;
}

.loading-screen.done {
  visibility: hidden;
  opacity: 0;
}

.loading-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #555;
  border-radius: 14px;
  background: linear-gradient(145deg, #f5f5f2, #a5a5a1);
  box-shadow: 0 0 44px rgba(255, 255, 255, 0.13);
  color: #080808;
  font: 900 16px/1 var(--mono);
  animation: loading-pulse 1.3s ease-in-out infinite;
}

.loading-screen p {
  margin-top: 18px;
  color: #5d5d59;
  font: 9px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes loading-pulse {
  50% {
    transform: translateY(-3px);
    box-shadow: 0 0 65px rgba(255, 255, 255, 0.2);
  }
}

/* One-time access gate */
.gate-body {
  display: grid;
  min-height: 100vh;
  place-items: stretch;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(255, 255, 255, 0.025) 50%, transparent 50.1%),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.09), transparent 30rem),
    #050505;
}

.access-gate {
  display: grid;
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  grid-template-rows: 105px 1fr 85px;
}

.gate-topline,
.gate-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.gate-copy {
  display: grid;
  align-content: center;
  max-width: 900px;
  padding: 60px 0;
}

.gate-copy h1 {
  margin: 22px 0 28px;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.91;
  letter-spacing: -0.075em;
}

.gate-copy h1 span {
  color: #777773;
}

.gate-lead {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.gate-command {
  display: grid;
  width: min(470px, 100%);
  grid-template-columns: 55px 1fr;
  align-items: center;
  margin-top: 48px;
  border: 1px solid #353535;
  border-radius: 14px;
  padding: 15px;
  background: linear-gradient(145deg, #121212, #090909);
  box-shadow: 0 25px 70px #000;
}

.gate-command > span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid #3a3a3a;
  color: #777;
  font: 650 9px/1 var(--mono);
}

.gate-command small {
  display: block;
  color: #565652;
  font: 650 8px/1 var(--mono);
  letter-spacing: 0.11em;
}

.gate-command code {
  display: block;
  margin-top: 6px;
  color: var(--white);
  font: 650 15px/1 var(--mono);
}

.gate-footer {
  justify-content: flex-start;
  gap: 35px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: #555551;
  font: 9px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card:nth-child(2) {
    border-right: 0;
  }

  .stat-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 860px) {
  .mobile-only {
    display: grid !important;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    width: min(300px, calc(100% - 35px));
    transform: translateX(-105%);
    box-shadow: 25px 0 90px #000;
    transition: 220ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .workspace {
    padding: 0 20px 70px;
  }

  .topbar {
    gap: 14px;
  }

  .topbar > div:nth-child(2) {
    flex: 1;
  }

  .topbar-actions .live-pill,
  .topbar-actions .ghost {
    display: none;
  }

  .intro-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-facts {
    grid-template-columns: 1fr 1fr;
  }

  .fact:nth-child(2) {
    border-right: 0;
  }

  .fact:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .detail-grid,
  .files-layout {
    grid-template-columns: 1fr;
  }

  .security-steps {
    grid-template-columns: 1fr 1fr;
  }

  .security-steps span:nth-child(2) {
    border-right: 0;
  }

  .service-table th:nth-child(3),
  .service-table td:nth-child(3),
  .service-table th:nth-child(4),
  .service-table td:nth-child(4) {
    display: none;
  }
}

@media (max-width: 620px) {
  .workspace {
    padding-right: 14px;
    padding-left: 14px;
  }

  .topbar-actions .primary {
    display: none;
  }

  .intro-row h2,
  .page-heading h2 {
    font-size: 45px;
  }

  .stat-grid,
  .license-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 155px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-card:last-child {
    border-bottom: 0;
  }

  .service-table th:nth-child(5),
  .service-table td:nth-child(5) {
    display: none;
  }

  .service-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-controls {
    width: 100%;
  }

  .service-controls .button {
    flex: 1;
  }

  .title-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-facts {
    grid-template-columns: 1fr;
  }

  .fact {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact:last-child {
    border-bottom: 0;
  }

  .tab-bar {
    overflow-x: auto;
  }

  .tab {
    white-space: nowrap;
  }

  .security-steps {
    grid-template-columns: 1fr;
  }

  .security-steps span {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding-left: 0;
  }

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

  .dialog-actions,
  .security-note {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .dialog-actions {
    flex-direction: column;
  }

  .dialog-actions .button {
    width: 100%;
  }

  .gate-topline .secure-pill {
    display: none;
  }

  .access-gate {
    width: min(100% - 28px, 1180px);
  }

  .gate-copy h1 {
    font-size: 51px;
  }

  .gate-footer {
    gap: 15px;
    overflow: hidden;
    white-space: nowrap;
  }
}
