@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --ink: #121615;
  --muted: #65676e;
  --line: #e9eae8;
  --canvas: #fff;
  --paper: #fff;
  --forest: #377a66;
  --accent: #addd32;
  --display: "DM Sans", Inter, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --sidebar: clamp(202px, 16vw, 260px);
  --page-pad: clamp(25px, 3.15vw, 68px);
  color-scheme: light;
}
body {
  min-height: 100dvh;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
::selection { color: #13261b; background: #dcf39d; }
#shell { width: 100%; min-height: 100dvh; }
#shell:has(> .sidebar) {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  align-items: stretch;
}
.sidebar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-self: start;
  height: 100dvh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d7dad4 transparent;
  padding: clamp(16px, 2.4vh, 28px) clamp(12px, 1.1vw, 20px) 13px;
  background: #f7f8f6;
  border-right: 1px solid #e4e8e3;
}
.rail-masthead { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 45px; padding: 0 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #111713; }
.brand-mark, .mobile-byte {
  display: inline-flex; align-items: center; justify-content: center;
  width: 35px; height: 32px; border-radius: 7px; background: var(--accent); color: #152e23;
  font: 600 18px/1 var(--mono); letter-spacing: -.12em; padding-right: 3px;
}
.brand-name { font-size: 23px; font-weight: 690; letter-spacing: -.9px; }
.collapse-control, .rail-close, .icon-button {
  display: inline-grid; place-items: center; padding: 0; background: #fff; color: #606368;
}
.collapse-control, .rail-close { width: 28px; height: 32px; border-radius: 6px; background: transparent; }
.collapse-control:hover, .rail-close:hover, .icon-button:hover { color: #0b1e16; background: #f2f4f0; }
.rail-search {
  display: flex; align-items: center; gap: 8px; min-height: 38px; width: 100%;
  margin: 22px 0 25px; padding: 0 10px; border: 1px solid #e0e5df; border-radius: 7px; color: #59615b; background: #fff; text-align: left;
  font-size: 13px;
}
.rail-search:hover, .rail-search:focus-visible { background: #f1f3ee; }
.rail-search > span { line-height: 16px; }
.rail-search kbd { margin-left: auto; border-radius: 5px; padding: 3px 5px; background: #fff; color: #333a36; font: 550 11px/1.15 var(--display); white-space: nowrap; }
.nav-group-label { margin: 4px 9px 7px; color: #6b706d; font-size: 11px; font-weight: 520; text-transform: uppercase; letter-spacing: .035em; }
.nav-list { display: grid; gap: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 38px;
  padding: 6px 10px; border-radius: 8px; background: transparent; color: #62636b; text-align: left;
  font: 460 14px/1.3 var(--display);
}
.nav-item .icon { stroke-width: 1.35; }
.nav-item:hover { background: #f6f7f5; color: #19241d; }
.nav-item.active { background: #e1eadd; color: #163c2f; font-weight: 640; }
.nav-item.active .icon { stroke-width: 1.8; }
.nav-item.active[href="#overview"] .icon path { fill: #111b15; }
.nav-item.active[href="#overview"] .icon circle { fill: white; stroke: white; stroke-width: 1; }
.nav-count { display: inline-grid; place-items: center; min-width: 20px; min-height: 19px; margin-left: auto; border-radius: 12px; background: #f0f0f0; color: #373b38; font-size: 11px; font-weight: 570; }
.nav-spacer { flex: 1 0 26px; }
.rail-account { margin: 13px 7px 1px; padding-top: 10px; border-top: 1px solid #f0f0ee; }
.profile { display: flex; align-items: center; gap: 9px; text-align: left; padding: 0; min-height: 39px; width: 100%; background: transparent; }
.avatar { display: grid; place-items: center; flex: none; height: 30px; width: 30px; border-radius: 50%; border: 1px solid #dce6de; background: #edf4ee; color: #2c5d4d; font-size: 11px; font-weight: 650; }
.profile-text { min-width: 0; }
.profile-text strong, .profile-text small { display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.profile-text strong { color: #343835; font-size: 12px; font-weight: 610; }
.profile-text small { color: #70716f; font-size: 11px; }
.profile:hover .profile-text strong { text-decoration: underline; }
.main-shell { min-width: 0; }
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: clamp(88px, 11vh, 116px); margin-inline: var(--page-pad); padding-block: 19px;
  border-bottom: 1px solid #dee4dd;
}
.tool-left, .top-tools { display: flex; align-items: center; min-width: 0; gap: 9px; }
.top-tools { flex-shrink: 0; }
.page-heading h1 { margin: 0; color: #16221a; font: 580 clamp(26px,2.2vw,38px)/1.08 var(--display); letter-spacing: -.06em; }
.page-heading p { margin: 6px 0 0; color: #626c65; font-size: 14px; line-height: 1.4; }
.icon-button { flex: none; width: 38px; height: 38px; border: 1px solid #e8e9e5; border-radius: 50%; color: #424b45; }
.icon-button .icon { stroke-width: 1.4; }
.content { width: 100%; min-width: 0; padding: 0 var(--page-pad) 26px; }
.toolbar-run { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: auto; padding-inline: 14px; border: 1px solid #1b493a; border-radius: 7px; color: #fff; background: #1b493a; font-size: 13px; font-weight: 550; }
.toolbar-run:hover { background: #123a2e; color: white; }
.toolbar-run .icon { stroke-width: 1.6; }
.rail-close, .mobile-menu, .mobile-byte, .mobile-search, .scrim { display: none; }
.auth-brand { display: flex; align-items: center; gap: 10px; font: 670 25px/1 var(--display); }
.auth-card h1 { font: 610 33px/1.1 var(--display); letter-spacing: -.045em; }
@container byte-viewport (width > 760px) {
  .compact-nav body { --sidebar: 70px; }
  .compact-nav .sidebar { padding-inline: 9px; }
  .compact-nav .rail-masthead { flex-direction: column; gap: 1px; }
  .compact-nav .brand-name, .compact-nav .nav-title, .compact-nav .nav-count, .compact-nav .nav-group-label,
  .compact-nav .profile-text, .compact-nav .rail-search > span, .compact-nav .rail-search kbd { display: none; }
  .compact-nav .nav-item, .compact-nav .profile, .compact-nav .rail-search { justify-content: center; }
  .compact-nav .rail-search { margin: 14px 0; }
  .compact-nav .rail-account { margin-inline: 0; }
  .dashboard-focus .topbar { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); }
  .dashboard-focus .topbar .top-tools { display: none; }
}
@container byte-viewport (width > 760px) and (max-width: 1100px) {
  body { --sidebar: 182px; --page-pad: clamp(18px, 2.2vw, 25px); }
  .sidebar { padding-inline: 9px; }
  .topbar { min-height: 75px; }
}
@container byte-viewport (max-width: 760px) {
  body { --mobile-rail: 1; --sidebar: 0px; --page-pad: clamp(16px, 4vw, 25px); }
  body { background: white; display: block; padding: 0; }
  #shell:has(> .sidebar) { display: block; width: 100%; border: 0; box-shadow: none; border-radius: 0; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(278px,85vw); height: 100dvh; max-height: none;
    padding: 13px 14px max(12px,env(safe-area-inset-bottom)); border-radius: 0 17px 17px 0;
    transform: translateX(-105%); transition: transform .16s ease;
  }
  .sidebar.shown { transform: translateX(0); }
  .scrim.shown { display: block; position: fixed; z-index: 4; inset: 0; background: #17231f63; }
  .rail-close, .mobile-menu, .mobile-search { display: inline-grid; }
  .mobile-byte { display: inline-flex; width: 33px; height: 30px; font-size: 17px; }
  .collapse-control, .focus-toggle, .focus-restore { display: none; }
  .main-shell { border-left: 0; }
  .topbar { min-height: 67px; margin-inline: 0; padding: 12px var(--page-pad); gap: 6px; }
  .top-tools, .tool-left { gap: 6px; }
  .page-heading h1 { font-size: 19px; word-break: normal; }
  .page-heading p { display: none; }
  .icon-button { width: 34px; height: 34px; }
  .toolbar-run { padding: 0; }
  .toolbar-run span { display: none; }
  .mobile-menu { width: 28px; border: 0; }
  .content { padding-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }
.byte-work-queues, .byte-record-navigation {display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.byte-work-queues {margin:0 0 .85rem}
.byte-work-queues button {display:inline-flex;align-items:center;min-height:36px;padding:.35rem .85rem;border:1px solid #d7e3df;border-radius:2rem;background:#fff;color:#205648;font:inherit;font-size:.875rem;cursor:pointer}
.byte-work-queues button:hover {background:#edf6f1}
.byte-work-queues button:focus-visible {outline:2px solid currentColor;outline-offset:2px}
.byte-record-navigation {margin-bottom:1rem}
