:root {
  --navy: #101b31;
  --blue: #0f56c5;
  --button-blue: #1479f6;
  --sidebar: #f2f5fb;
  --active: #dbe6f8;
  --line: #2e6cf1;
  --soft-line: #dde1e7;
  --text: #172238;
  --muted: #6f7785;
  --red: #e73145;
  --green: #24a747;
  --amber: #f4d49a;
  --card: #ffffff;
  --shadow: 0 2px 9px rgb(25 35 54 / 14%);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

button,
a {
  font: inherit;
}

.browser-bar {
  display: grid;
  grid-template-columns: 70px 70px 1fr auto;
  align-items: center;
  min-height: 122px;
  padding: 0 32px;
  color: white;
  background: #1b1f25;
}

.browser-title {
  display: grid;
  gap: 6px;
}

.browser-title span {
  font-size: 2.9rem;
  font-weight: 400;
  line-height: 1;
}

.browser-title small {
  color: rgb(255 255 255 / 88%);
  font-size: 1.9rem;
  line-height: 1;
}

.browser-icon {
  position: relative;
  width: 44px;
  height: 44px;
}

.close-icon::before,
.close-icon::after {
  position: absolute;
  top: 20px;
  left: 2px;
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: white;
  content: "";
}

.close-icon::before {
  transform: rotate(45deg);
}

.close-icon::after {
  transform: rotate(-45deg);
}

.chevron-icon {
  border-right: 6px solid white;
  border-bottom: 6px solid white;
  transform: rotate(45deg) translateY(-10px);
}

.browser-actions {
  display: flex;
  gap: 54px;
  align-items: center;
}

.share-icon {
  position: relative;
  width: 58px;
  height: 54px;
}

.share-icon::before,
.share-icon::after {
  position: absolute;
  left: 12px;
  width: 40px;
  height: 5px;
  border-radius: 999px;
  background: white;
  content: "";
}

.share-icon::before {
  top: 14px;
  transform: rotate(-30deg);
}

.share-icon::after {
  top: 34px;
  transform: rotate(30deg);
}

.share-icon {
  background:
    radial-gradient(circle at 6px 28px, white 0 7px, transparent 8px),
    radial-gradient(circle at 50px 8px, white 0 7px, transparent 8px),
    radial-gradient(circle at 50px 47px, white 0 7px, transparent 8px);
}

.menu-icon {
  width: 10px;
  height: 54px;
  background:
    radial-gradient(circle, white 0 5px, transparent 6px) center 7px / 10px 10px no-repeat,
    radial-gradient(circle, white 0 5px, transparent 6px) center 27px / 10px 10px no-repeat,
    radial-gradient(circle, white 0 5px, transparent 6px) center 47px / 10px 10px no-repeat;
}

.app-frame {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  min-height: calc(100vh - 122px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px 18px 24px;
  background: var(--sidebar);
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 42px;
}

.badge {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
}

.collapse-button {
  border: 0;
  color: #15356f;
  background: transparent;
  font-weight: 800;
}

.nav {
  display: grid;
  gap: 12px;
}

.nav-item {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 6px;
  color: #071d43;
  font-size: 1.14rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-item.active {
  color: #0046a9;
  background: var(--active);
}

.nav-label {
  padding-right: 0;
}

.nav-caret {
  margin-left: auto;
  color: #092b62;
}

.nav-children {
  display: grid;
  gap: 10px;
  margin-left: 20px;
  padding-left: 0;
  border-left: 1px solid #e4e9f3;
}

.nav-icon {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.home-icon {
  border: 2px solid #0c275a;
  border-top: 0;
  border-radius: 2px;
}

.home-icon::before {
  position: absolute;
  top: -8px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-top: 2px solid #0c275a;
  border-left: 2px solid #0c275a;
  transform: rotate(45deg);
  content: "";
}

.folder-icon {
  border: 2px solid #0c275a;
  border-radius: 2px;
}

.folder-icon::before {
  position: absolute;
  top: -5px;
  left: -2px;
  width: 10px;
  height: 6px;
  border: 2px solid #0c275a;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  content: "";
}

.power-icon {
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 999px;
}

.power-icon::before {
  position: absolute;
  top: -5px;
  left: 7px;
  width: 2px;
  height: 12px;
  background: currentColor;
  content: "";
}

.calendar-icon {
  border: 2px solid #0c275a;
  border-radius: 2px;
}

.calendar-icon::before {
  position: absolute;
  top: 4px;
  left: 0;
  width: 14px;
  height: 2px;
  background: #0c275a;
  content: "";
}

.training-icon {
  border: 2px solid #0c275a;
  transform: rotate(45deg);
}

.identity-panel {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #dce5f2;
  color: #071d43;
  font-size: 0.86rem;
}

.identity-panel p {
  margin: 0;
  overflow-wrap: anywhere;
}

.signin {
  min-height: 44px;
}

.signin iframe {
  max-width: 100%;
}

.link-button {
  justify-self: start;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
}

.link-button:disabled {
  color: #8a93a3;
  cursor: not-allowed;
}

.dashboard {
  min-height: calc(100vh - 122px);
  padding: 0 34px 80px;
  background:
    linear-gradient(90deg, #ffffff 0, #e7f1ff 50%, #ffffff 100%) top / 100% 176px no-repeat,
    #ffffff;
}

.hero {
  display: grid;
  justify-items: center;
  padding: 20px 0 18px;
  text-align: center;
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
  color: #0753c6;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.42em;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border: 10px solid #0753c6;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 8px white,
    0 0 0 1px #0753c6;
}

.hero h1,
.section-heading h2,
.vm-card h3 {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.hero h1 {
  color: var(--navy);
  font-size: 2.05rem;
  line-height: 1.25;
}

.hero p {
  margin: 22px 0 0;
  color: #777f8e;
  font-size: 1.08rem;
}

.delivery-section {
  max-width: 955px;
  margin: 0 auto;
  border-top: 2px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 28px 0 14px;
}

.section-heading h2 {
  color: #0753c6;
  font-size: 2.12rem;
  line-height: 1.1;
  text-align: center;
}

.extended-heading {
  display: block;
  padding-top: 30px;
}

.refresh-all {
  min-width: 172px;
  min-height: 62px;
  border: 0;
  border-radius: 7px;
  color: white;
  background: #3365e6;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
}

.refresh-all::before {
  margin-right: 8px;
  content: "<>";
}

.refresh-all:disabled {
  background: #aab2bf;
  cursor: not-allowed;
}

.card-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 44px;
}

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

.standard-grid .vm-card:first-child:nth-last-child(odd) {
  grid-column: 1 / -1;
  width: min(450px, 100%);
  justify-self: center;
}

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

.vm-card {
  min-height: 158px;
  padding: 16px 18px 13px;
  border: 1px solid #dde0e5;
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.extended-card {
  background: var(--amber);
}

.card-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.vm-card h3 {
  color: var(--navy);
  font-size: 1.48rem;
  line-height: 1.28;
  word-break: break-word;
}

.card-title-row a {
  color: #0359ff;
  font-size: 1rem;
}

.card-title-row a[aria-disabled="true"] {
  pointer-events: none;
}

.status-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  color: #273043;
  font-size: 1.08rem;
}

.status-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #d84b57;
}

.status-dot.running {
  background: #20aa51;
}

.status-dot.pending {
  background: #f0a51a;
}

.status-dot.stopped,
.status-dot.unknown,
.status-dot.error {
  background: #d84b57;
}

.card-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.card-controls button {
  min-width: 78px;
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

.card-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.card-controls .start {
  background: #2dab4c;
}

.card-controls .stop {
  background: #df3045;
}

.card-controls .restart {
  min-width: 94px;
  background: #087df5;
}

.card-controls .refresh {
  min-width: 96px;
  background: #68727c;
}

.details-toggle {
  margin-top: 16px;
  padding: 0;
  border: 0;
  color: #0058c7;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
}

.details {
  max-height: 260px;
  margin: 10px 0 0;
  padding: 10px;
  overflow: auto;
  border-top: 1px dashed #99a6b9;
  color: #182335;
  background: rgb(255 255 255 / 50%);
  font: 0.82rem/1.4 "Courier New", Courier, monospace;
  white-space: pre-wrap;
}

.details[hidden] {
  display: block;
  max-height: 0;
  margin-top: 10px;
  padding: 0;
  overflow: hidden;
}

@media (max-width: 980px) {
  .browser-bar {
    grid-template-columns: 46px 46px 1fr auto;
    min-height: 92px;
    padding: 0 18px;
  }

  .browser-title span {
    font-size: 1.8rem;
  }

  .browser-title small {
    font-size: 1.12rem;
  }

  .browser-actions {
    gap: 22px;
  }

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

  .sidebar {
    min-height: auto;
  }

  .dashboard {
    min-height: auto;
    padding: 0 18px 48px;
  }

  .standard-grid,
  .extended-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .browser-bar {
    grid-template-columns: 36px 32px 1fr;
  }

  .browser-actions {
    display: none;
  }

  .browser-title span {
    font-size: 1.35rem;
  }

  .browser-title small {
    font-size: 0.9rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-heading h2 {
    font-size: 1.55rem;
  }

  .hero h1 {
    font-size: 1.45rem;
  }

  .brand {
    font-size: 1.1rem;
  }
}
