* {
  box-sizing: border-box;
}

:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: #f5f7fa;
  background: #151515;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.025),
      transparent 34%
    ),
    #151515;
}

button {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;

  padding: 24px 16px;

  background: #101010;
  border-right: 1px solid #242424;
}

.brand {
  display: flex;
  align-items: center;

  gap: 12px;

  padding: 0 8px 32px;
}

.brand-mark {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  border-radius: 10px;

  background: #f1f1f1;
  color: #111111;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.brand-name {
  color: #f4f4f4;

  font-size: 14px;
  font-weight: 700;
}

.brand-subtitle {
  margin-top: 3px;

  color: #6e6e6e;

  font-size: 11px;
}

.nav {
  display: flex;
  flex-direction: column;

  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;

  gap: 11px;

  width: 100%;

  padding: 10px 11px;

  border: 0;
  border-radius: 8px;

  background: transparent;
  color: #777777;

  text-align: left;

  cursor: pointer;

  transition:
    background 120ms ease,
    color 120ms ease;
}

.nav-item:hover {
  background: #181818;
  color: #d9d9d9;
}

.nav-item.active {
  background: #1d1d1d;
  color: #ffffff;
}

.nav-icon {
  width: 18px;

  color: #666666;

  text-align: center;
  font-size: 14px;
}

.nav-item.active .nav-icon {
  color: #bcbcbc;
}

.sidebar-bottom {
  margin-top: auto;

  padding-top: 20px;
}

.environment {
  display: flex;
  align-items: center;

  gap: 10px;

  padding: 10px;
}

.environment-name {
  color: #b8b8b8;

  font-size: 12px;
  font-weight: 600;
}

.environment-detail {
  margin-top: 2px;

  color: #5f5f5f;

  font-size: 10px;
}

.main {
  min-width: 0;
}

.topbar {
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 36px;

  border-bottom: 1px solid #242424;

  background: rgba(21, 21, 21, 0.88);

  backdrop-filter: blur(16px);
}

.product-switcher {
  display: flex;

  gap: 3px;

  padding: 3px;

  border: 1px solid #292929;
  border-radius: 8px;

  background: #111111;
}

.product-tab {
  padding: 7px 13px;

  border: 0;
  border-radius: 6px;

  background: transparent;
  color: #6e6e6e;

  font-size: 12px;

  cursor: pointer;
}

.product-tab:hover {
  color: #c8c8c8;
}

.product-tab.active {
  background: #222222;
  color: #ffffff;
}

.user {
  display: flex;
  align-items: center;

  gap: 10px;
}

.user-avatar {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  border: 1px solid #2c2c2c;
  border-radius: 50%;

  background: #1b1b1b;

  color: #d8d8d8;

  font-size: 12px;
  font-weight: 700;
}

.user-name {
  color: #dedede;

  font-size: 12px;
  font-weight: 600;
}

.user-role {
  margin-top: 2px;

  color: #686868;

  font-size: 10px;
}

.content {
  width: min(
    1320px,
    calc(100% - 72px)
  );

  margin: 0 auto;

  padding: 48px 0 72px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 24px;

  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 8px;

  color: #646464;

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

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

h1 {
  margin-bottom: 7px;

  color: #f4f4f4;

  font-size: 30px;
  font-weight: 650;

  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0;

  color: #e8e8e8;

  font-size: 17px;
  font-weight: 600;

  letter-spacing: -0.02em;
}

.page-description {
  margin-bottom: 0;

  color: #747474;

  font-size: 12px;
}

.last-updated,
.section-meta {
  color: #676767;

  font-size: 11px;
}

.health-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 32px;

  margin-bottom: 34px;
  padding: 24px 26px;

  border: 1px solid #262626;
  border-radius: 12px;

  background: #181818;
}

.health-primary {
  display: flex;
  align-items: center;

  gap: 13px;
}

.health-title {
  color: #efefef;

  font-size: 17px;
  font-weight: 600;
}

.health-description {
  margin-top: 4px;

  color: #666666;

  font-size: 11px;
}

.health-metrics {
  display: flex;
  align-items: center;

  gap: 44px;
}

.metric {
  display: flex;
  flex-direction: column;

  min-width: 72px;
}

.metric-value {
  color: #ececec;

  font-size: 21px;
  font-weight: 600;

  letter-spacing: -0.03em;
}

.metric-label {
  margin-top: 4px;

  color: #626262;

  font-size: 10px;
}

.status-dot {
  display: inline-block;

  width: 7px;
  height: 7px;

  flex-shrink: 0;

  border-radius: 50%;

  background: #737373;
}

.status-dot-large {
  width: 9px;
  height: 9px;
}

.status-dot.healthy,
.status-dot.running {
  background: #39c98b;

  box-shadow:
    0 0 9px
    rgba(57, 201, 139, 0.32);
}

.status-dot.stopped {
  background: #737373;
  box-shadow: none;
}

.status-dot.warning {
  background: #e7a63a;

  box-shadow:
    0 0 9px
    rgba(231, 166, 58, 0.25);
}

.status-dot.error {
  background: #e65c5c;

  box-shadow:
    0 0 9px
    rgba(230, 92, 92, 0.25);
}

.services-section {
  padding-top: 4px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  margin-bottom: 13px;
}

.service-list {
  overflow: hidden;

  border-top: 1px solid #252525;
}

.service-group {
  border-bottom: 1px solid #252525;
}

.service-main {
  display: grid;

  grid-template-columns:
    minmax(240px, 1.5fr)
    minmax(140px, 0.8fr)
    110px
    36px;

  align-items: center;

  min-height: 64px;

  padding: 0 10px;

  transition: background 120ms ease;
}

.service-main:hover {
  background: #191919;
}

.service-identity {
  display: flex;
  align-items: center;

  gap: 11px;

  min-width: 0;
}

.service-copy {
  min-width: 0;
}

.service-title {
  overflow: hidden;

  color: #dfdfdf;

  font-size: 13px;
  font-weight: 600;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-subtitle {
  overflow: hidden;

  margin-top: 4px;

  color: #656565;

  font-size: 10px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-count {
  color: #666666;

  font-size: 10px;
}

.service-status {
  display: flex;
  align-items: center;

  gap: 7px;

  font-size: 11px;
}

.service-status.healthy,
.service-status.running {
  color: #58d49e;
}

.service-status.stopped {
  color: #888888;
}

.service-status.warning {
  color: #e7a63a;
}

.service-status.error {
  color: #e96d6d;
}

.expand-button {
  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;

  border: 0;
  border-radius: 6px;

  background: transparent;
  color: #777777;

  font-size: 17px;
  line-height: 1;

  cursor: pointer;
}

.expand-button:hover {
  background: #232323;
  color: #dddddd;
}

.expand-button.hidden {
  visibility: hidden;
}

.service-children {
  display: none;

  padding:
    0 10px
    10px 40px;
}

.service-group.open
.service-children {
  display: block;
}

.child-row {
  display: grid;

  grid-template-columns:
    minmax(220px, 1.5fr)
    minmax(180px, 1fr)
    110px
    120px;

  align-items: center;

  min-height: 42px;

  padding: 0 8px;

  border-radius: 6px;
}

.child-row:hover {
  background: #181818;
}

.child-name {
  display: flex;
  align-items: center;

  gap: 9px;

  color: #a9a9a9;

  font-size: 11px;
}

.child-image,
.child-uptime {
  overflow: hidden;

  color: #5f5f5f;

  font-size: 9px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.child-state {
  font-size: 10px;
}

.child-state.healthy,
.child-state.running {
  color: #55c995;
}

.child-state.stopped {
  color: #888888;
}

.child-state.warning {
  color: #df9e35;
}

.child-state.error {
  color: #df6868;
}

@media (max-width: 1000px) {

  .health-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .health-metrics {
    width: 100%;
    justify-content: space-between;
  }

  .service-main {
    grid-template-columns:
      minmax(200px, 1fr)
      100px
      36px;
  }

  .service-count {
    display: none;
  }

  .child-row {
    grid-template-columns:
      1fr
      100px;
  }

  .child-image,
  .child-uptime {
    display: none;
  }
}

@media (max-width: 760px) {

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    padding: 0 18px;
  }

  .content {
    width: calc(100% - 32px);
    padding-top: 30px;
  }

  .user-role {
    display: none;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .health-metrics {
    gap: 18px;
  }
}

.service-status-block,
.child-status-block {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* Service and child row layout */

.service-main {
  grid-template-columns:
    minmax(240px, 1.5fr)
    minmax(120px, 0.6fr)
    minmax(230px, 0.9fr)
    42px;
}

.child-row {
  grid-template-columns:
    minmax(220px, 1.4fr)
    minmax(180px, 1fr)
    minmax(230px, 0.9fr)
    120px;
}

.service-status-block,
.child-status-block {
  min-width: 0;
  flex-wrap: nowrap;
}


.expand-button {
  position: relative;
  z-index: 2;
}

/* Views */

.view {
  display: none;
}

.view.active {
  display: block;
}


/* Containers view */

.container-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 32px;

  margin-bottom: 34px;
  padding: 24px 26px;

  border: 1px solid #262626;
  border-radius: 12px;

  background: #181818;
}

.container-summary-title {
  color: #ededed;

  font-size: 17px;
  font-weight: 600;
}

.container-summary-description {
  margin-top: 5px;

  color: #696969;

  font-size: 11px;
}

.container-summary-metrics {
  display: flex;
  align-items: center;

  gap: 44px;
}


.containers-list {
  overflow: hidden;

  border-top: 1px solid #252525;
}


.container-table-header,
.container-row {
  display: grid;

  grid-template-columns:
    minmax(210px, 1.4fr)
    minmax(160px, 1fr)
    minmax(110px, 0.7fr)
    minmax(100px, 0.7fr)
    32px;

  align-items: center;

  column-gap: 18px;

  padding-left: 10px;
  padding-right: 10px;
}


.container-table-header {
  min-height: 38px;

  border-bottom: 1px solid #252525;

  color: #5f5f5f;

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}


.container-row {
  min-height: 58px;

  border-bottom: 1px solid #222222;

  transition:
    background 120ms ease;
}

.container-row:hover {
  background: #191919;
}


.container-name {
  display: flex;
  align-items: center;

  gap: 10px;

  min-width: 0;
}

.container-name-copy {
  min-width: 0;
}

.container-name-primary {
  overflow: hidden;

  color: #dcdcdc;

  font-size: 12px;
  font-weight: 600;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.container-name-secondary {
  overflow: hidden;

  margin-top: 3px;

  color: #5f5f5f;

  font-size: 9px;

  text-overflow: ellipsis;
  white-space: nowrap;
}


.container-service {
  overflow: hidden;

  color: #888888;

  font-size: 10px;

  text-overflow: ellipsis;
  white-space: nowrap;
}


.container-runtime-status {
  display: flex;
  align-items: center;

  gap: 7px;

  font-size: 10px;
}

.container-runtime-status.healthy,
.container-runtime-status.running {
  color: #55c995;
}

.container-runtime-status.stopped {
  color: #888888;
}

.container-runtime-status.warning {
  color: #df9e35;
}

.container-runtime-status.error {
  color: #df6868;
}

.container-runtime-status.unknown {
  color: #777777;
}


.container-uptime {
  color: #686868;

  font-size: 10px;
}




.container-details-button {
  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;

  border: 0;
  border-radius: 6px;

  background: transparent;
  color: #777777;

  font-size: 16px;
  line-height: 1;

  cursor: pointer;
}

.container-details-button:hover {
  background: #232323;
  color: #dddddd;
}


/* Container details */

.container-details {
  display: none;

  padding:
    0 48px
    18px 48px;

  border-bottom: 1px solid #222222;
}

.container-entry.open
.container-details {
  display: block;
}


.container-details-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 18px;

  padding: 18px;

  border: 1px solid #242424;
  border-radius: 9px;

  background: #131313;
}


.container-detail {
  min-width: 0;
}

.container-detail-label {
  margin-bottom: 5px;

  color: #555555;

  font-size: 8px;
  font-weight: 700;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.container-detail-value {
  overflow-wrap: anywhere;

  color: #9a9a9a;

  font-size: 10px;
  line-height: 1.5;
}


@media (max-width: 1100px) {

  .container-table-header,
  .container-row {
    grid-template-columns:
      minmax(190px, 1.3fr)
      minmax(130px, 0.8fr)
      100px
      90px
      32px;
  }


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


@media (max-width: 800px) {

  .container-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .container-summary-metrics {
    width: 100%;

    justify-content:
      space-between;
  }

  .container-table-header,
  .container-row {
    grid-template-columns:
      minmax(170px, 1fr)
      100px
      32px;
  }

  .container-table-service,
  .container-service,
  .container-table-uptime,
  .container-uptime {
    display: none;
  }

  .container-details {
    padding:
      0 10px
      16px;
  }

  .container-details-grid {
    grid-template-columns: 1fr;
  }
}

/* Storage view */

.storage-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 32px;

  margin-bottom: 24px;
  padding: 24px 26px;

  border: 1px solid #262626;
  border-radius: 12px;

  background: #181818;
}

.storage-summary-primary {
  display: flex;
  align-items: center;

  gap: 13px;
}

.storage-summary-title {
  color: #ededed;

  font-size: 17px;
  font-weight: 600;
}

.storage-summary-description {
  margin-top: 4px;

  color: #666666;

  font-size: 11px;
}

.storage-summary-metrics {
  display: flex;
  align-items: center;

  gap: 44px;
}


.storage-capacity {
  margin-bottom: 26px;
  padding: 20px 22px;

  border: 1px solid #262626;
  border-radius: 12px;

  background: #161616;
}

.storage-capacity-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 16px;
}

.storage-progress {
  overflow: hidden;

  width: 100%;
  height: 8px;

  border-radius: 999px;

  background: #242424;
}

.storage-progress-bar {
  width: 0%;
  height: 100%;

  border-radius: 999px;

  background: #39c98b;

  transition:
    width 220ms ease,
    background 220ms ease;
}

.storage-progress-bar.warning {
  background: #e7a63a;
}

.storage-progress-bar.error {
  background: #e65c5c;
}


.storage-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 16px;
}

.storage-panel {
  overflow: hidden;

  border: 1px solid #262626;
  border-radius: 12px;

  background: #171717;
}

.storage-panel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;

  padding: 20px 22px;

  border-bottom: 1px solid #242424;
}

.storage-device-list,
.storage-stat-list {
  padding: 6px 0;
}

.storage-device-row,
.storage-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  min-height: 46px;

  padding: 0 22px;

  border-bottom: 1px solid #202020;
}

.storage-device-row:last-child,
.storage-stat-row:last-child {
  border-bottom: 0;
}

.storage-device-name {
  display: flex;
  align-items: center;

  gap: 10px;

  color: #bdbdbd;

  font-size: 11px;
  font-weight: 600;
}

.storage-device-status,
.storage-value-status {
  font-size: 10px;
  font-weight: 600;
}

.storage-device-status.healthy,
.storage-value-status.healthy {
  color: #55c995;
}

.storage-device-status.warning,
.storage-value-status.warning {
  color: #df9e35;
}

.storage-device-status.error,
.storage-value-status.error {
  color: #df6868;
}

.storage-device-status.unknown,
.storage-value-status.unknown {
  color: #777777;
}

.storage-stat-row {
  color: #707070;

  font-size: 10px;
}

.storage-stat-row span:last-child {
  color: #a8a8a8;

  text-align: right;
}


.storage-status-badge {
  display: inline-flex;
  align-items: center;

  padding: 4px 8px;

  border: 1px solid #2c2c2c;
  border-radius: 999px;

  background: #1b1b1b;
  color: #777777;

  font-size: 9px;
  font-weight: 700;
}

.storage-status-badge.healthy {
  border-color:
    rgba(57, 201, 139, 0.22);

  background:
    rgba(57, 201, 139, 0.08);

  color: #55c995;
}

.storage-status-badge.warning {
  border-color:
    rgba(231, 166, 58, 0.22);

  background:
    rgba(231, 166, 58, 0.08);

  color: #e7a63a;
}

.storage-status-badge.error {
  border-color:
    rgba(230, 92, 92, 0.22);

  background:
    rgba(230, 92, 92, 0.08);

  color: #e96d6d;
}

.storage-status-badge.unknown {
  color: #777777;
}


@media (max-width: 1000px) {

  .storage-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .storage-summary-metrics {
    width: 100%;

    justify-content:
      space-between;
  }

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


@media (max-width: 760px) {

  .storage-summary-metrics {
    gap: 18px;
  }

  .storage-capacity-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .storage-device-row,
  .storage-stat-row {
    padding-left: 16px;
    padding-right: 16px;
  }
}



/* Dynamic Storage disk tables */

.storage-panel-wide {
  grid-column: 1 / -1;
}

.storage-disk-table {
  overflow-x: auto;
}

.storage-disk-row {
  display: grid;

  grid-template-columns:
    minmax(180px, 1.15fr)
    minmax(160px, 1fr)
    minmax(90px, 0.55fr)
    minmax(100px, 0.65fr)
    minmax(110px, 0.65fr)
    minmax(90px, 0.5fr);

  align-items: center;

  gap: 18px;

  min-width: 850px;
  min-height: 58px;

  padding: 0 22px;

  border-bottom:
    1px solid #202020;
}

.storage-disk-row:last-child {
  border-bottom: 0;
}

.storage-disk-row:not(
  .storage-disk-header
):hover {
  background: #191919;
}

.storage-disk-header {
  min-height: 38px;

  color: #5f5f5f;

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.storage-disk-device {
  display: flex;
  align-items: center;

  gap: 10px;

  min-width: 0;
}

.storage-disk-device-copy {
  min-width: 0;
}

.storage-disk-path {
  overflow: hidden;

  color: #d8d8d8;

  font-size: 11px;
  font-weight: 600;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-disk-serial {
  overflow: hidden;

  margin-top: 3px;

  color: #5d5d5d;

  font-size: 9px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-disk-model,
.storage-disk-size,
.storage-disk-filesystem,
.storage-disk-state {
  overflow: hidden;

  color: #888888;

  font-size: 10px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-disk-smart {
  font-size: 10px;
  font-weight: 600;
}

.storage-disk-smart.healthy,
.storage-disk-smart.running {
  color: #55c995;
}

.storage-disk-smart.warning {
  color: #df9e35;
}

.storage-disk-smart.error {
  color: #df6868;
}

.storage-disk-smart.unknown {
  color: #777777;
}

.storage-disk-empty {
  padding: 28px 22px;

  color: #666666;

  font-size: 11px;
}


@media (max-width: 1000px) {

  .storage-disk-row {
    grid-template-columns:
      minmax(170px, 1.1fr)
      minmax(130px, 0.9fr)
      90px
      100px
      90px;

    min-width: 700px;
  }

  .storage-disk-state {
    display: none;
  }
}


@media (max-width: 760px) {

  .storage-disk-row {
    padding-left: 16px;
    padding-right: 16px;
  }
}



/* Backup capacity */

.backup-capacity {
  padding: 18px 22px 20px;

  border-top: 1px solid #242424;
}

.backup-capacity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 7px;

  color: #777777;

  font-size: 10px;
  font-weight: 600;
}

.backup-capacity-header
#backupCapacityPercent {
  color: #b8b8b8;
}

.backup-capacity-text {
  margin-bottom: 12px;

  color: #696969;

  font-size: 9px;
}



/* System view */

.system-summary {
  margin-bottom: 22px;
}

.system-summary-primary {
  display: flex;
  align-items: center;

  gap: 14px;

  padding: 20px 22px;

  border: 1px solid #242424;
  border-radius: 12px;

  background: #151515;
}

.system-summary-title {
  color: #f1f1f1;

  font-size: 16px;
  font-weight: 600;
}

.system-summary-description {
  margin-top: 4px;

  color: #707070;

  font-size: 11px;
}

.system-metrics-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 14px;
}

.system-metric-card {
  min-width: 0;

  padding: 22px;

  border: 1px solid #242424;
  border-radius: 12px;

  background: #151515;
}

.system-metric-label {
  margin-bottom: 16px;

  color: #737373;

  font-size: 10px;
  font-weight: 600;

  letter-spacing: 0.08em;
}

.system-metric-value {
  color: #f2f2f2;

  font-size: 30px;
  font-weight: 600;

  line-height: 1;
}

.system-metric-unit {
  margin-top: 10px;

  color: #696969;

  font-size: 10px;
}


@media (max-width: 1000px) {
  .system-metrics-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 600px) {
  .system-metrics-grid {
    grid-template-columns: 1fr;
  }

  .system-metric-card {
    padding: 18px;
  }
}



/* Monitor login */

.auth-hidden {
  display: none;
}

.login-view {
  display: none;
  align-items: center;
  justify-content: center;

  min-height: 100vh;
  padding: 24px;

  background: #0d0d0d;
}

.login-card {
  width: 100%;
  max-width: 420px;

  padding: 34px;

  border: 1px solid #252525;
  border-radius: 16px;

  background: #151515;

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.35);
}

.login-brand {
  display: flex;
  align-items: center;

  gap: 12px;

  margin-bottom: 38px;
}

.login-brand-name {
  color: #f1f1f1;

  font-size: 15px;
  font-weight: 600;
}

.login-brand-subtitle {
  margin-top: 2px;

  color: #707070;

  font-size: 10px;
}

.login-heading {
  margin-bottom: 28px;
}

.login-heading h1 {
  margin: 5px 0 8px;

  color: #f3f3f3;

  font-size: 28px;
  font-weight: 600;
}

.login-heading p:last-child {
  margin: 0;

  color: #777777;

  font-size: 12px;
  line-height: 1.6;
}

.login-form {
  display: flex;
  flex-direction: column;

  gap: 18px;
}

.login-field {
  display: flex;
  flex-direction: column;

  gap: 8px;
}

.login-field span {
  color: #9a9a9a;

  font-size: 11px;
  font-weight: 500;
}

.login-field input {
  width: 100%;
  box-sizing: border-box;

  padding: 12px 13px;

  border: 1px solid #303030;
  border-radius: 8px;

  outline: none;

  background: #101010;
  color: #f1f1f1;

  font: inherit;
  font-size: 13px;

  transition:
    border-color 120ms ease,
    background 120ms ease;
}

.login-field input:hover {
  border-color: #3a3a3a;
}

.login-field input:focus {
  border-color: #5b5b5b;
  background: #121212;
}

.login-error {
  min-height: 16px;

  color: #e77777;

  font-size: 11px;
  line-height: 1.4;
}

.login-error:empty {
  min-height: 0;
}

.login-button {
  width: 100%;

  padding: 12px 16px;

  border: 1px solid #353535;
  border-radius: 8px;

  cursor: pointer;

  background: #eeeeee;
  color: #111111;

  font: inherit;
  font-size: 12px;
  font-weight: 600;

  transition:
    opacity 120ms ease,
    background 120ms ease;
}

.login-button:hover {
  background: #ffffff;
}

.login-button:disabled {
  cursor: wait;
  opacity: 0.6;
}


@media (max-width: 520px) {
  .login-view {
    padding: 16px;
  }

  .login-card {
    padding: 26px 22px;
  }
}



/* Sidebar authenticated user */

.sidebar-user {
  display: grid;

  grid-template-columns:
    34px minmax(0, 1fr) 20px;

  align-items: center;

  width: 100%;

  gap: 10px;

  margin-top: 14px;
  padding: 14px 10px 4px;

  border: 0;
  border-top: 1px solid #252525;

  background: transparent;
  color: inherit;

  text-align: left;

  cursor: pointer;

  opacity: 0.78;

  transition:
    opacity 120ms ease;
}

.sidebar-user:hover {
  opacity: 1;
}

.sidebar-user-avatar {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;

  border: 1px solid #333333;
  border-radius: 50%;

  background: #1b1b1b;

  color: #d8d8d8;

  font-size: 11px;
  font-weight: 600;
}

.sidebar-user-copy {
  min-width: 0;
}

.user-name {
  overflow: hidden;

  color: #d8d8d8;

  font-size: 11px;
  font-weight: 500;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-role {
  margin-top: 3px;

  color: #666666;

  font-size: 9px;
}

.sidebar-user-signout {
  color: #606060;

  font-size: 14px;

  text-align: center;

  transition:
    color 120ms ease,
    transform 120ms ease;
}

.sidebar-user:hover
.sidebar-user-signout {
  color: #b0b0b0;

  transform: translateX(2px);
}

.sidebar-user:disabled {
  cursor: wait;
  opacity: 0.4;
}

/* Overview status cards */

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

  margin-bottom: 34px;
}

.overview-status-card {
  display: flex;
  flex-direction: column;

  min-width: 0;
  padding: 18px;

  border: 1px solid #262626;
  border-radius: 12px;

  background: #181818;
  color: inherit;

  text-decoration: none;

  transition:
    background 120ms ease,
    border-color 120ms ease;
}

.overview-status-card:hover {
  border-color: #343434;
  background: #1c1c1c;
}

.overview-status-card .eyebrow {
  margin-bottom: 10px;
}

.overview-status-card strong {
  margin-bottom: 8px;

  color: #efefef;

  font-size: 17px;
  font-weight: 600;
}

.overview-status-card > span:not(.eyebrow) {
  margin-top: 3px;

  overflow: hidden;

  color: #666666;

  font-size: 11px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .overview-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .overview-status-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile application shell */

@media (max-width: 760px) {

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .app-shell {
    display: block;
    min-height: 100dvh;

    padding-bottom:
      calc(
        70px
        + env(safe-area-inset-bottom)
      );
  }

  .main {
    width: 100%;
    min-width: 0;
  }

  .sidebar {
    position: fixed;
    z-index: 1000;

    right: 0;
    bottom: 0;
    left: 0;

    display: grid;
    grid-template-columns:
      minmax(0, 1fr)
      50px;

    width: 100%;
    min-height: 64px;

    padding:
      6px
      max(
        6px,
        env(safe-area-inset-right)
      )
      calc(
        6px
        + env(safe-area-inset-bottom)
      )
      max(
        6px,
        env(safe-area-inset-left)
      );

    border-top: 1px solid #2a2a2a;
    border-right: 0;

    background:
      rgba(16, 16, 16, 0.96);

    box-shadow:
      0 -10px 30px
      rgba(0, 0, 0, 0.32);

    backdrop-filter: blur(18px);
  }

  .sidebar .brand {
    display: none;
  }

  .sidebar .nav {
    display: grid;
    grid-template-columns:
      repeat(
        5,
        minmax(0, 1fr)
      );

    gap: 2px;
  }

  .sidebar .nav-item {
    position: relative;

    flex-direction: column;
    justify-content: center;

    gap: 3px;

    min-width: 0;
    min-height: 50px;

    padding: 6px 2px;

    text-align: center;
    font-size: 9px;
  }

  .sidebar .nav-icon {
    width: auto;

    font-size: 15px;
    line-height: 1;
  }

  .sidebar .nav-count {
    position: absolute;

    top: 3px;
    right: 5px;

    min-width: 15px;
    height: 15px;

    padding: 0 4px;

    font-size: 8px;
    line-height: 15px;
  }

  .sidebar-bottom {
    display: block;

    margin: 0;
    padding: 0 0 0 2px;

    border-left: 1px solid #292929;
  }

  .sidebar-bottom .environment {
    display: none;
  }

  .sidebar .sidebar-user {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 50px;

    margin: 0;
    padding: 4px;

    border: 0;
  }

  .sidebar .sidebar-user-copy,
  .sidebar .sidebar-user-signout {
    display: none;
  }

  .sidebar .sidebar-user-avatar {
    width: 32px;
    height: 32px;

    font-size: 10px;
  }

  .topbar {
    position: sticky;
    z-index: 900;

    top: 0;

    height: 60px;

    padding:
      0
      max(
        14px,
        env(safe-area-inset-right)
      )
      0
      max(
        14px,
        env(safe-area-inset-left)
      );
  }

  .product-switcher {
    min-width: 0;
  }

  .product-tab {
    min-height: 38px;

    padding: 7px 11px;
  }

  .topbar .user {
    min-width: 0;
  }

  .topbar .user-copy {
    display: none;
  }

  .content {
    width: 100%;
    max-width: none;

    padding:
      24px
      max(
        14px,
        env(safe-area-inset-right)
      )
      28px
      max(
        14px,
        env(safe-area-inset-left)
      );
  }

  .page-heading {
    gap: 14px;

    margin-bottom: 24px;
  }

  .page-heading h1 {
    font-size:
      clamp(
        25px,
        8vw,
        34px
      );
  }

  .last-updated {
    align-self: flex-start;
  }
}


/* Mobile portrait service and container rows */

@media (max-width: 600px) {

  .service-main {
    grid-template-columns:
      minmax(0, 1fr)
      40px;

    grid-template-areas:
      "identity expand"
      "status expand";

    column-gap: 8px;
    row-gap: 6px;

    min-height: 72px;

    padding: 10px 4px;
  }

  .service-identity {
    grid-area: identity;

    min-width: 0;
  }

  .service-status-block {
    grid-area: status;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    min-width: 0;

    gap: 5px 8px;

    padding-left: 23px;
  }

  .service-status {
    min-width: 0;

    font-size: 10px;
  }

  .expand-button {
    grid-area: expand;

    align-self: center;
    justify-self: end;

    width: 40px;
    height: 40px;

    font-size: 20px;

    touch-action: manipulation;
  }

  .service-children {
    padding:
      0 4px
      10px 23px;
  }

  .child-row {
    grid-template-columns:
      minmax(0, 1fr)
      auto;

    column-gap: 10px;

    padding: 0 4px;
  }

  .child-name {
    min-width: 0;
  }

  .child-name > span:last-child {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
  }


  .container-table-header {
    display: none;
  }

  .container-row {
    grid-template-columns:
      minmax(0, 1fr)
      40px;

    grid-template-areas:
      "name details"
      "status details";

    column-gap: 8px;
    row-gap: 6px;

    min-height: 74px;

    padding:
      11px
      4px;
  }

  .container-name {
    grid-area: name;

    min-width: 0;
  }

  .container-runtime-status {
    grid-area: status;

    justify-self: start;

    padding-left: 22px;
  }

  .container-details-button {
    grid-area: details;

    align-self: center;
    justify-self: end;

    width: 40px;
    height: 40px;

    font-size: 20px;

    touch-action: manipulation;
  }

  .container-details {
    padding:
      0 4px
      14px;
  }

  .container-details-grid {
    gap: 14px;

    padding: 15px;
  }
}
