/* Application shell: sidebar, content column and page header. */
/* Shell */
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
}
aside {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--bg-subtle);
  border-right: 1px solid var(--line);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
}
.signout {
  margin-top: auto;
  justify-content: flex-start;
  width: 100%;
  border-color: transparent;
  background: transparent;
  color: var(--ink-3);
}
.signout:hover {
  background: var(--bg-muted);
  color: var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  width: fit-content;
}
.brand:hover {
  text-decoration: none;
}
.mark {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: contain;
  flex: none;
}
.nav {
  margin-top: 18px;
  display: grid;
  gap: 1px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav a .ic {
  color: var(--ink-3);
}
/* Reference material sits apart from the live views */
.nav a:last-child {
  margin-top: 14px;
}
.nav a:hover {
  background: var(--bg-muted);
  text-decoration: none;
}
.nav a[aria-current="page"] {
  background: var(--bg-muted);
  color: var(--ink);
}
.nav a[aria-current="page"] .ic {
  color: var(--ink);
}
.ic {
  width: 16px;
  height: 16px;
  flex: none;
  vertical-align: -3px;
}
.body {
  min-width: 0;
}
.content {
  padding: 20px 32px 40px;
  max-width: 1480px;
  margin: 0 auto;
}
/* Page header */
header,
.panelhead,
.actions,
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
header {
  flex-wrap: wrap;
  min-height: 40px;
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
header .actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.updated {
  font-size: 12px;
  color: var(--ink-3);
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}
.muted,
.sub {
  color: var(--ink-3);
  font-size: 13px;
}
small.muted {
  font-size: 12px;
}
.sub {
  margin: 6px 0 0;
}
.danger {
  color: var(--bad);
}
@media (max-width: 1100px) {
  .shell {
      grid-template-columns: 176px minmax(0, 1fr);
    }
  .content {
      padding: 20px 24px 36px;
    }
}
@media (max-width: 800px) {
  .shell {
      display: block;
    }
  aside {
      position: relative;
      height: auto;
      padding: 10px 12px 0;
      border-right: 0;
      border-bottom: 1px solid var(--line);
    }
  .nav {
      margin: 6px -12px 0;
      padding: 0 12px 8px;
      display: flex;
      gap: 2px;
      overflow-x: auto;
      scrollbar-width: none;
    }
  .nav a {
      white-space: nowrap;
      height: 44px;
    }
  .nav a:last-child {
      margin-top: 0;
    }
  .signout {
      position: absolute;
      top: 6px;
      right: 8px;
      width: auto;
    }
  .content {
      padding: 16px 16px 32px;
    }
  header {
      align-items: flex-start;
      flex-direction: column;
    }
  header .actions {
      justify-content: flex-start;
    }
}
