:root {
  --bg: #0b0e13;
  --ink: #e3eaf2;
  --muted: #9fadbb;
  --dim: #74818f;
  --line: #1f2733;
  --line-strong: #2b3a4d;
  --accent: #39c8ff;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
}

.shell-header {
  height: 104px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: #0b0e13;
}

.mast,
.view-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
}

.mast {
  height: 47px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark b {
  color: var(--ink);
  font-weight: 600;
}

.primary-nav {
  display: flex;
  gap: 18px;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.primary-nav a {
  color: var(--dim);
  letter-spacing: 0.12em;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
}

.view-bar {
  height: 56px;
}

h1 {
  flex: 0 0 auto;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.view-tabs {
  display: flex;
  align-self: stretch;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.view-tabs::-webkit-scrollbar {
  display: none;
}

.view-tabs button {
  position: relative;
  flex: 0 0 auto;
  padding: 2px 0 0;
  border: 0;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font: 10px/1 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.view-tabs button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.view-tabs button:hover {
  color: var(--muted);
}

.view-tabs button[aria-selected="true"] {
  color: var(--ink);
}

.view-tabs button[aria-selected="true"]::after {
  background: var(--accent);
}

.screen {
  width: 100%;
  height: calc(100% - 104px);
}

iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg);
}

.shell-header.solo {
  height: 48px;
}

.shell-header.solo .mast {
  height: 48px;
  border-bottom: none;
}

.screen.solo {
  height: calc(100% - 48px);
}

@media (max-width: 760px) {
  .shell-header {
    height: 130px;
    padding: 0 16px;
  }

  .mast {
    height: 54px;
  }

  .view-bar {
    display: block;
    height: 76px;
    padding-top: 12px;
  }

  h1 {
    margin-bottom: 11px;
  }

  .view-tabs {
    height: 38px;
    gap: 22px;
  }

  .screen {
    height: calc(100% - 130px);
  }

  .shell-header.solo {
    height: 55px;
  }

  .shell-header.solo .mast {
    height: 55px;
  }

  .screen.solo {
    height: calc(100% - 55px);
  }
}
