:root {
  color-scheme: dark;
  --bg: #0c1017;
  --panel: #121923;
  --line: #232e3c;
  --muted: #8694a8;
  --text: #e8edf5;
  --accent: #a6edc1;
  --purple: #a69bf8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 5px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 246px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #101620;
  border-right: 1px solid var(--line);
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.4px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 2px;
}
.brand-icon,
.login-mark {
  background: #141312;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
}
.nav-label,
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.6px;
  color: var(--muted);
}
.nav-label {
  margin-top: 52px;
  margin-bottom: 17px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 12px;
  margin: 5px -4px;
  border-radius: 6px;
  color: #abb7c7;
}
.nav-item:hover {
  background: #1b2532;
  color: white;
}
.nav-item span {
  flex: 1;
}
.env-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.env-dot.staging {
  background: var(--purple);
}
.sidebar-bottom {
  margin-top: auto;
  color: #bcc7d6;
  font-size: 12px;
}
.sidebar-bottom p {
  margin: 8px 0 0;
}
.sidebar-bottom small {
  color: var(--muted);
}
.sidebar-rule {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #263247;
  font-size: 9px;
  margin-right: 9px;
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  padding: 8px 0;
}
.workspace {
  margin-left: 246px;
  width: calc(100% - 246px);
}
.signed-out .workspace {
  margin-left: 0;
  width: 100%;
}
.topbar {
  height: 75px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 46px;
  font-size: 12px;
  color: #bcc7d6;
}
.crumb {
  color: #506177;
  padding: 0 12px;
}
.private-label {
  color: var(--muted);
  font-size: 11px;
}
main {
  max-width: 1400px;
  padding: 44px 46px 60px;
  margin: auto;
  min-height: calc(100vh - 140px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
h1 {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 1.3;
  margin: 9px 0;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  font-weight: 600;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 9px 0;
}
p {
  color: var(--muted);
  margin: 6px 0;
  font-size: 13px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
.primary {
  background: var(--accent);
  color: #132c20;
  border-color: var(--accent);
}
.primary:hover {
  background: #c3f6d6;
}
.secondary {
  background: #18212d;
  color: #c6d0df;
}
.secondary:hover {
  background: #243143;
}
.danger {
  background: #8f2737;
  color: #fff;
  border-color: #bd4355;
}
.danger:hover {
  background: #a83244;
}
.service-controls {
  padding: 22px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.service-controls p,
.service-confirmation p {
  color: var(--muted);
  margin-top: 10px;
  max-width: 700px;
}
.service-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.service-confirmation form {
  margin-top: 26px;
}
.small {
  padding: 7px 13px;
  font-size: 11px;
}
.summary-strip {
  display: flex;
  gap: 30px;
  align-items: center;
  padding: 13px 0 23px;
  color: var(--muted);
  font-size: 11px;
}
.summary-strip span:first-child {
  color: #c2e5d0;
}
.summary-strip i {
  margin-right: 8px;
}
.environment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 24px 0;
}
.environment-symbol {
  font-size: 24px;
  line-height: 1;
  background: #21372f;
  color: var(--accent);
  border: 1px solid #305643;
  border-radius: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
}
.environment-symbol.staging {
  background: #28253d;
  color: var(--purple);
  border-color: #3b3456;
}
.badge {
  font-size: 10px;
  border: 1px solid #2e3d50;
  border-radius: 5px;
  display: inline-block;
  padding: 3px 8px;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.card-heading .badge {
  margin-left: auto;
}
.healthy {
  background: #163027;
  color: #9bdfb7;
  border-color: #2b4b3b;
}
.muted {
  color: #9baac0;
  background: #1a2533;
}
.version {
  padding: 29px 24px 22px;
}
.version .eyebrow {
  display: block;
  font-size: 9px;
}
.version strong {
  font-size: 37px;
  font-weight: 500;
  letter-spacing: -1px;
  display: inline-block;
  margin-top: 3px;
  margin-right: 16px;
}
code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  color: #9aadc2;
}
.card-details {
  display: flex;
  gap: 26px;
  margin: 0 24px 24px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.card-details span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.card-details b {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-top: 4px;
}
.card-link {
  padding: 13px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: #b8c6d8;
  font-size: 12px;
}
.card-link:hover {
  background: #1a2430;
}
.section-heading {
  margin: 35px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.section-heading p {
  font-size: 12px;
}
.compact {
  margin: 0;
  padding: 23px 24px 18px;
}
.empty {
  text-align: center;
  padding: 37px 20px 43px;
}
.empty > span {
  font-size: 24px;
  color: #8da9c7;
}
.empty p {
  font-size: 12px;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-top: 33px;
}
.info-card {
  padding-left: 38px;
  position: relative;
}
.info-card > span {
  position: absolute;
  left: 0;
  top: 9px;
  font-family: monospace;
  font-size: 11px;
  color: #60768e;
}
.info-card h3 {
  color: #b7c5d6;
  font-size: 12px;
}
.info-card p {
  font-size: 11px;
  max-width: 400px;
}
.info-card + div {
  border-left: 1px solid var(--line);
  padding-left: 55px;
}
.info-card + div > span {
  left: 20px;
}
.environment-detail {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(380px, 1.2fr);
  gap: 22px;
  margin-bottom: 28px;
}
.heading-dot {
  color: var(--accent);
}
.release-row {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
}
.release-icon {
  color: var(--muted);
  font-size: 18px;
}
.release-name {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.release-name strong {
  font-size: 13px;
  font-weight: 500;
}
.release-name code {
  font-size: 10px;
}
.release-schema {
  font-size: 10px;
  color: var(--muted);
}
.release-panel {
  max-height: 410px;
  overflow: auto;
}
.logs-panel h2 .badge {
  margin-left: 12px;
  font-size: 8px;
  vertical-align: middle;
}
.live-label {
  font-size: 10px;
  color: #8fbda3;
}
.log-toolbar {
  display: flex;
  gap: 14px;
  align-items: end;
  padding: 0 24px 20px;
}
.log-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
}
input,
select {
  border: 1px solid #2a394c;
  border-radius: 5px;
  padding: 8px 10px;
  color: #c4cfdf;
  background: #0e1620;
  font-size: 12px;
  min-height: 36px;
}
.search-label {
  flex: 1;
}
.log-view {
  background: #0a111a;
  max-height: 460px;
  min-height: 230px;
  overflow: auto;
  border-top: 1px solid var(--line);
  padding: 18px 22px;
}
.log-line {
  display: grid;
  grid-template-columns: 145px 50px 1fr;
  gap: 14px;
  align-items: baseline;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.log-line time {
  font:
    10px ui-monospace,
    monospace;
  color: #637b96;
}
.log-line code {
  color: #b7c7d7;
  line-height: 1.9;
  font-size: 11px;
}
.level {
  font:
    9px ui-monospace,
    monospace;
}
.info {
  color: #80c6b1;
}
.warn {
  color: #e9c383;
}
.error {
  color: #ee939a;
}
.empty-small {
  padding: 20px;
  text-align: center;
  font-size: 12px;
}
.notice {
  background: #2c291b;
  border: 1px solid #5c4f2e;
  color: #dec88d;
  padding: 12px 18px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-size: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  padding: 13px 22px;
  background: #141e2b;
}
td {
  padding: 17px 22px;
  border-top: 1px solid var(--line);
}
td a {
  color: var(--accent);
  text-transform: capitalize;
}
.table-wrap {
  overflow: auto;
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 20px 46px;
  color: #566b83;
  font-size: 10px;
}
.login {
  max-width: 620px;
  margin: 55px auto;
  padding: 46px;
  text-align: center;
}
.login-mark {
  margin: 35px auto 25px;
  width: 68px;
  height: 68px;
}
.login h1 {
  font-size: 34px;
}
.login p {
  max-width: 380px;
  margin: 15px auto 28px;
}
.login .button {
  padding: 12px 30px;
}
.login small {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 10px;
}
.operation {
  padding: 34px;
}
.operation h2 {
  font-size: 22px;
  margin: 15px 0;
}
.operation-meta {
  display: flex;
  gap: 25px;
  color: var(--muted);
  font-size: 11px;
  margin: 25px 0;
}
.operation .button {
  margin-top: 10px;
}
@media (min-width: 1500px) {
  main {
    padding-top: 60px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 208px;
    padding: 28px 18px;
  }
  .workspace {
    margin-left: 208px;
    width: calc(100% - 208px);
  }
  main {
    padding: 30px 26px;
  }
  .topbar,
  footer {
    padding-left: 26px;
    padding-right: 26px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .environment-detail {
    grid-template-columns: 1fr;
  }
  .card-details {
    gap: 20px;
  }
  .version strong {
    font-size: 32px;
  }
  .card-heading {
    gap: 8px;
  }
  .card-heading h2 {
    font-size: 15px;
  }
}
@media (max-width: 760px) {
  .app {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 16px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 15px;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
  }
  .brand small {
    font-size: 8px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    gap: 10px;
    margin-top: 12px;
  }
  .nav-item {
    font-size: 12px;
    padding: 6px 10px;
  }
  .workspace {
    margin: 0;
    width: 100%;
  }
  .topbar {
    height: 50px;
    padding: 0 20px;
  }
  .private-label {
    font-size: 9px;
  }
  main {
    padding: 26px 20px;
  }
  .page-heading {
    align-items: start;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading .button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .environment-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }
  .summary-strip {
    gap: 16px;
    font-size: 9px;
    flex-wrap: wrap;
  }
  .info-card + div {
    border-left: 0;
    padding-left: 38px;
  }
  .info-card + div > span {
    left: 0;
  }
  .log-toolbar {
    flex-wrap: wrap;
  }
  .log-toolbar .search-label {
    min-width: 160px;
  }
  .log-line {
    grid-template-columns: 70px 32px 1fr;
    gap: 9px;
  }
  .log-line time {
    font-size: 9px;
  }
  .live-label {
    display: none;
  }
  .compact {
    padding: 20px;
  }
  .release-row {
    padding: 14px 18px;
  }
  .section-heading p {
    font-size: 11px;
  }
  .release-schema {
    display: none;
  }
  .login {
    padding: 28px 20px;
    margin: 30px auto;
  }
  .login h1 {
    font-size: 28px;
  }
  footer {
    padding: 18px 20px;
    gap: 15px;
    font-size: 9px;
  }
  .operation-meta {
    flex-direction: column;
    gap: 6px;
  }
  .operation {
    padding: 24px;
  }
}
.topbar-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.theme-toggle {
  font-size: 10px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fa;
  --panel: #fff;
  --line: #d9e2ec;
  --muted: #5d6d80;
  --text: #1c2c3e;
  --accent: #18794e;
  --purple: #7254b8;
}
[data-theme="light"] .sidebar {
  background: #edf2f6;
}
[data-theme="light"] .nav-item {
  color: #526277;
}
[data-theme="light"] .nav-item:hover {
  color: #152f48;
  background: #dee8f0;
}
[data-theme="light"] .sidebar-bottom {
  color: #455a70;
}
[data-theme="light"] .avatar {
  background: #d7e4f0;
  color: #264867;
}
[data-theme="light"] .topbar {
  color: #40566e;
}
[data-theme="light"] .crumb {
  color: #788b9f;
}
[data-theme="light"] .primary {
  color: #fff;
}
[data-theme="light"] .primary:hover {
  background: #11623e;
}
[data-theme="light"] .secondary {
  background: #f4f7fa;
  color: #39536b;
}
[data-theme="light"] .secondary:hover {
  background: #e3edf4;
}
[data-theme="light"] .summary-strip span:first-child {
  color: #26764b;
}
[data-theme="light"] .environment-symbol {
  color: #197b50;
  background: #e9f6ed;
  border-color: #bbdfca;
}
[data-theme="light"] .environment-symbol.staging {
  background: #f2edfc;
  color: #7254b8;
  border-color: #dcd1f0;
}
[data-theme="light"] .healthy {
  background: #e9f6ed;
  color: #20764e;
  border-color: #c2dfcd;
}
[data-theme="light"] .muted {
  background: #f0f4f8;
  color: #60758b;
  border-color: #d2deea;
}
[data-theme="light"] code {
  color: #5b7187;
}
[data-theme="light"] .card-link {
  color: #46657f;
}
[data-theme="light"] .card-link:hover {
  background: #f0f5fa;
}
[data-theme="light"] .info-card h3 {
  color: #425e79;
}
[data-theme="light"] input,
[data-theme="light"] select {
  color: #314c67;
  background: #f9fbfd;
  border-color: #cbd9e7;
}
[data-theme="light"] .log-view {
  background: #f7f9fc;
}
[data-theme="light"] .log-line code {
  color: #354f68;
}
[data-theme="light"] .log-line time {
  color: #657f98;
}
[data-theme="light"] .info {
  color: #167055;
}
[data-theme="light"] .warn {
  color: #8c5c13;
}
[data-theme="light"] .error {
  color: #bb364a;
}
[data-theme="light"] .notice {
  background: #fff8df;
  color: #80601e;
  border-color: #ead8a4;
}
[data-theme="light"] th {
  background: #f0f5fa;
}
[data-theme="light"] footer {
  color: #6b8299;
}
[data-theme="light"] .live-label {
  color: #27794f;
}
@media (max-width: 760px) {
  .topbar-actions .private-label {
    display: none;
  }
  .topbar-actions {
    gap: 8px;
  }
  .theme-toggle {
    padding: 5px 8px;
  }
}
