/* Keep the founder console in view while opening one of its Manage tools. */
body.console-context-page {
  display: block;
  padding-left: 228px;
}

.console-context-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  box-sizing: border-box;
  width: 228px;
  display: flex;
  flex-direction: column;
  padding: 20px 16px 18px;
  border-right: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
}

.console-context-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 8px 27px;
  color: inherit;
  text-decoration: none;
  font-family: Fraunces, Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
}

.console-context-brand img { width: 26px; height: 26px; }
.console-context-label {
  padding: 0 12px 8px;
  font: 500 .64rem "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--fg-3);
}

.console-context-nav { display: grid; gap: 3px; margin-bottom: 22px; }
.console-context-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  box-sizing: border-box;
  padding: 8px 11px;
  border-radius: 10px;
  color: var(--fg-2);
  text-decoration: none;
  font-size: .83rem;
  font-weight: 600;
  line-height: 1.25;
}

.console-context-link svg { width: 17px; height: 17px; flex: none; color: var(--fg-3); }
.console-context-link:hover { background: var(--surface-2); color: var(--fg); }
.console-context-link[aria-current="page"] { background: var(--brand-wash); color: var(--brand); }
.console-context-link[aria-current="page"] svg { color: currentColor; }
.console-context-foot {
  margin-top: auto;
  padding: 15px 12px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--fg-3);
  font-size: .73rem;
  line-height: 1.45;
}
.console-context-foot b { display: block; color: var(--fg-2); font-size: .78rem; }

@media (max-width: 880px) {
  body.console-context-page { padding-left: 0; }
  .console-context-rail {
    position: sticky;
    inset: 0 auto auto;
    width: 100%;
    height: auto;
    display: flex;
    gap: 4px;
    padding: 8px 14px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: var(--veil);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    scrollbar-width: none;
  }
  .console-context-rail::-webkit-scrollbar { display: none; }
  .console-context-brand,.console-context-label,.console-context-foot { display: none; }
  .console-context-nav { display: flex; flex: none; width: max-content; margin: 0; }
  .console-context-link { white-space: nowrap; }
}
