/* ════════════════════════════════════════════════════════════════
   App navigation (js/appNav.js): six section headings, fifteen pages, an
   always-expanded sidebar, the in-development / Campaign Builder panel.
   Uses the app's own tokens: --green is the app accent (the public site's
   Volt stays on the public site). Dark mode via body.dark-mode, like the
   rest of the app. Prefix: onv-.
   ════════════════════════════════════════════════════════════════ */
.onv, .onv-panel {
  --onv-text: rgba(24, 24, 26, .66);
  --onv-strong: #18181A;
  --onv-muted: rgba(24, 24, 26, .42);
  --onv-faint: rgba(24, 24, 26, .28);
  --onv-line: rgba(24, 24, 26, .12);
  --onv-hover: rgba(24, 24, 26, .05);
  --onv-surface: rgba(255, 255, 255, .55);
  --onv-acc: var(--green-text, #3F6212);
  --onv-acc-bg: color-mix(in srgb, var(--green, #B7FF2A) 22%, transparent);
  --onv-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --onv-font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --onv-ease: cubic-bezier(.22, .61, .36, 1);
}
body.dark-mode .onv, body.dark-mode .onv-panel {
  --onv-text: rgba(255, 255, 255, .6);
  --onv-strong: rgba(255, 255, 255, .94);
  --onv-muted: rgba(255, 255, 255, .4);
  --onv-faint: rgba(255, 255, 255, .22);
  --onv-line: rgba(255, 255, 255, .08);
  --onv-hover: rgba(255, 255, 255, .045);
  --onv-surface: rgba(255, 255, 255, .025);
  --onv-acc: var(--green, #B7FF2A);
  --onv-acc-bg: color-mix(in srgb, var(--green, #B7FF2A) 11%, transparent);
}
/* Each section keeps one identity tint, used only for its number, the open
   page's icon and its route line; the accent for "you are here" stays the
   app's own. */
.onv [data-sec="cc"] { --sx: var(--onv-acc); }
.onv [data-sec="rs"] { --sx: #0E7490; }
.onv [data-sec="cr"] { --sx: #BE185D; }
.onv [data-sec="la"] { --sx: #B45309; }
.onv [data-sec="ca"] { --sx: #1D4ED8; }
.onv [data-sec="au"] { --sx: #6D28D9; }
body.dark-mode .onv [data-sec="rs"] { --sx: #7DD8F2; }
body.dark-mode .onv [data-sec="cr"] { --sx: #F59AC6; }
body.dark-mode .onv [data-sec="la"] { --sx: #FFB45E; }
body.dark-mode .onv [data-sec="ca"] { --sx: #96B6FF; }
body.dark-mode .onv [data-sec="au"] { --sx: #B9A2FF; }

/* ── Sidebar shell ─────────────────────────────────────────────── */
/* The app's sidebar was a 76px icon rail (styles.css "Sidebar Redesign —
   icon-only navigation rail", !important). With this navigation mounted
   (.onv-mounted) it is a labelled sidebar, always expanded. Selectors carry html/body so they outrank the rail's
   body.dark-mode .orv-sb rules. The <=1024px drawer breakpoint is untouched. */
html body .orv-sb.onv-mounted { width: 264px !important; min-width: 264px !important; max-width: 264px !important; align-items: stretch !important; }
html body .orv-sb.onv-mounted .orv-sb-logo { justify-content: flex-start !important; padding: 18px 18px 14px !important; gap: 10px; }
/* The larger logo keeps the row at 72px: 10 + 52 + 10 (id: outranks styles.css #orvSidebar .orv-sb-logo, 14px 12px 12px). */
html body #orvSidebar.orv-sb.onv-mounted .orv-sb-logo { padding: 10px 12px 9px !important; }
html body .orv-sb.onv-mounted .orv-sb-logo { align-items: center !important; min-height: 72px; box-sizing: border-box; }
/* 52px (was 40px): the asset has its own margin, so the visible mark was small; the row keeps its 72px height. */
html body #orvSidebar.orv-sb.onv-mounted .orv-sb-logo-img { width: 52px !important; height: 52px !important; aspect-ratio: 1 / 1; object-fit: contain; } /* id: outranks styles.css #orvSidebar .orv-sb-logo-img (40px) */
/* Logo only at the top of the sidebar (no wordmark). */
html body .orv-sb.onv-mounted .orv-sb-logo-name { display: none !important; }
/* The phone/tablet drawer (≤1024px) shows the same logo a little larger too: 42px (was 32px). */
html body #orvMobDrawer .orv-mob-drawer-logo { width: 42px !important; height: 42px !important; object-fit: contain; }
html body .orv-sb.onv-mounted .orv-sb-nav { display: block !important; padding: 10px 12px 16px !important; overflow-y: auto !important; overflow-x: hidden !important; }
html body .orv-sb.onv-mounted .orv-sb-bottom { display: block !important; padding: 8px 12px 12px !important; border-top: 1px solid var(--onv-foot-line, rgba(24, 24, 26, .12)) !important; }
body.dark-mode .orv-sb.onv-mounted .orv-sb-bottom { --onv-foot-line: rgba(255, 255, 255, .08); }
.onv { font-family: var(--onv-font); position: relative; width: 100%; }
.onv-item:focus-visible, .onv-panel button:focus-visible { outline: 2px solid var(--onv-acc); outline-offset: 2px; }

.onv-sec { position: relative; padding: 10px 0 4px; }
.onv-sec + .onv-sec { border-top: 1px solid var(--onv-line); margin-top: 4px; }
.onv-sec:first-of-type { padding-top: 4px; }
/* Headings: plain text, never interactive. */
.onv-sec__h {
  display: flex; align-items: baseline; gap: 8px; margin: 0 0 4px; padding: 0 8px 0 10px;
  font: 600 10.5px/1.2 var(--onv-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--onv-muted);
  cursor: default; user-select: none; pointer-events: none;
}
.onv-sec__n { color: var(--onv-faint); font-variant-numeric: tabular-nums; transition: color .25s var(--onv-ease); }
.onv-sec.is-active .onv-sec__h { color: var(--onv-strong); }
.onv-sec.is-active .onv-sec__n { color: var(--sx); }

.onv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; position: relative; }
/* The route: a thin line through the icons of a section; in the open
   section it fills down to the open page. */
.onv-route { position: absolute; left: 24px; top: 36px; bottom: 18px; width: 1px; background: var(--onv-line); pointer-events: none; }
.onv-sec:first-of-type .onv-route { top: 30px; }
.onv-route i { position: absolute; left: 0; top: 0; width: 1px; height: calc(var(--fill, 0) * 100%); background: var(--sx); transition: height .45s var(--onv-ease); }
.onv-sec:has(.onv-list > li:only-child) .onv-route { display: none; }

.onv-item {
  all: unset; box-sizing: border-box; position: relative; z-index: 1;
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 3px 10px;
  border-radius: 9px; cursor: pointer; color: var(--onv-text); font: 500 13.5px/1.25 var(--onv-font);
  transition: background .15s var(--onv-ease), color .15s var(--onv-ease);
}
.onv-item:hover { background: var(--onv-hover); color: var(--onv-strong); }
.onv-item.is-on { background: var(--onv-acc-bg); color: var(--onv-strong); font-weight: 600; }
.onv-item.is-on::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--onv-acc); }
.onv-ic {
  flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px;
  background: var(--onv-surface); box-shadow: inset 0 0 0 1px var(--onv-line); color: var(--onv-muted);
  transition: color .2s var(--onv-ease), box-shadow .2s var(--onv-ease), background .2s var(--onv-ease);
}
body.dark-mode .onv-ic { background: #0B0B0C; }
.onv-ic svg { width: 18px; height: 18px; overflow: visible; }
.onv-item:hover .onv-ic { color: var(--onv-strong); }
.onv-item.is-on .onv-ic { color: var(--sx); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sx) 45%, transparent); }
.onv-lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onv-dev {
  flex: none; padding: 2px 6px; border-radius: 5px; border: 1px dashed var(--onv-faint);
  font: 500 10px/1.2 var(--onv-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--onv-muted);
}
.onv-item.is-dev:not(.is-on) .onv-lbl { color: var(--onv-muted); }

/* ── Icon motion: one short movement on hover/focus and when a page opens ── */
.onv-ic svg * { transform-box: fill-box; transform-origin: center; }
.onv-item:hover .onv-ic .i-a, .onv-item:focus-visible .onv-ic .i-a, .onv-item.is-just .onv-ic .i-a { animation: onv-pop .5s var(--onv-ease) both; }
.onv-item:hover .onv-ic .i-b, .onv-item:focus-visible .onv-ic .i-b, .onv-item.is-just .onv-ic .i-b { animation: onv-pop .5s var(--onv-ease) .07s both; }
.onv-item:hover .onv-ic .i-c, .onv-item:focus-visible .onv-ic .i-c, .onv-item.is-just .onv-ic .i-c { animation: onv-pop .5s var(--onv-ease) .14s both; }
.onv-item:hover .onv-ic .i-d, .onv-item:focus-visible .onv-ic .i-d, .onv-item.is-just .onv-ic .i-d { animation: onv-pop .5s var(--onv-ease) .21s both; }
.onv-item:hover .onv-ic .i-draw, .onv-item:focus-visible .onv-ic .i-draw, .onv-item.is-just .onv-ic .i-draw { stroke-dasharray: 1; animation: onv-draw .7s var(--onv-ease) both; }
.onv-item:hover .onv-ic .i-sweep, .onv-item:focus-visible .onv-ic .i-sweep, .onv-item.is-just .onv-ic .i-sweep { stroke-dasharray: 1; animation: onv-draw .8s var(--onv-ease) both; }
.onv-item:hover .onv-ic .i-tick, .onv-item:focus-visible .onv-ic .i-tick, .onv-item.is-just .onv-ic .i-tick { stroke-dasharray: 1; animation: onv-draw .35s var(--onv-ease) .55s both; }
.onv-item:hover .onv-ic .i-lens, .onv-item:focus-visible .onv-ic .i-lens, .onv-item.is-just .onv-ic .i-lens { animation: onv-scan .7s var(--onv-ease) both; }
.onv-item:hover .onv-ic .i-ray, .onv-item:focus-visible .onv-ic .i-ray, .onv-item.is-just .onv-ic .i-ray { animation: onv-ray .6s var(--onv-ease) both; }
.onv-item:hover .onv-ic .i-spark, .onv-item:focus-visible .onv-ic .i-spark, .onv-item.is-just .onv-ic .i-spark { animation: onv-twinkle .6s var(--onv-ease) both; }
.onv-item:hover .onv-ic .i-spark.i-b, .onv-item.is-just .onv-ic .i-spark.i-b { animation-delay: .1s; }
.onv-item:hover .onv-ic .i-spark.i-c, .onv-item.is-just .onv-ic .i-spark.i-c { animation-delay: .2s; }
.onv-item:hover .onv-ic .i-lift, .onv-item:focus-visible .onv-ic .i-lift, .onv-item.is-just .onv-ic .i-lift { animation: onv-lift .7s var(--onv-ease) both; }
.onv-item:hover .onv-ic .i-flame, .onv-item:focus-visible .onv-ic .i-flame, .onv-item.is-just .onv-ic .i-flame { transform-origin: top center; animation: onv-flame .7s var(--onv-ease) both; }
.onv-item:hover .onv-ic .i-ring, .onv-item:focus-visible .onv-ic .i-ring, .onv-item.is-just .onv-ic .i-ring { animation: onv-ripple .6s var(--onv-ease) both; }
.onv-item:hover .onv-ic .i-drop, .onv-item:focus-visible .onv-ic .i-drop, .onv-item.is-just .onv-ic .i-drop { animation: onv-drop .55s var(--onv-ease) both; }
.onv-item:hover .onv-ic .i-hand, .onv-item:focus-visible .onv-ic .i-hand, .onv-item.is-just .onv-ic .i-hand { transform-origin: bottom center; animation: onv-turn .8s var(--onv-ease) both; }
.onv-item:hover .onv-ic .i-glint, .onv-item.is-just .onv-ic .i-glint { animation: onv-ray .5s var(--onv-ease) .2s both; }
@keyframes onv-pop { 0% { transform: scale(1); } 45% { transform: scale(.72); } 100% { transform: scale(1); } }
@keyframes onv-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes onv-scan { 0% { transform: translate(0, 0); } 40% { transform: translate(-1.4px, -1.4px); } 70% { transform: translate(.8px, .6px); } 100% { transform: translate(0, 0); } }
@keyframes onv-ray { 0% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: scale(1); } }
@keyframes onv-twinkle { 0% { transform: scale(1) rotate(0); } 50% { transform: scale(.4) rotate(45deg); } 100% { transform: scale(1) rotate(90deg); } }
@keyframes onv-lift { 0% { transform: translateY(0); } 45% { transform: translateY(-2.5px); } 100% { transform: translateY(0); } }
@keyframes onv-flame { 0% { transform: scaleY(1); } 40% { transform: scaleY(1.7); opacity: 1; } 100% { transform: scaleY(1); } }
@keyframes onv-ripple { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(.82); opacity: .55; } 100% { transform: scale(1); opacity: 1; } }
@keyframes onv-drop { 0% { transform: translateY(-5px); opacity: 0; } 70% { transform: translateY(.8px); opacity: 1; } 100% { transform: translateY(0); } }
.onv-item:hover .onv-ic .i-gear, .onv-item:focus-visible .onv-ic .i-gear { transform-origin: center; animation: onv-turn .9s var(--onv-ease) both; }
@keyframes onv-turn { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ── Footer: Ad Platforms + account row (js/appNav.js footHtml) ───── */
.onv-foot { display: grid; gap: 4px; }
.onv-foot .onv-item.is-on::before { left: -12px; }
.onv-acct { display: flex; align-items: center; gap: 4px; min-width: 0; width: 100%; }
.onv-acct__main {
  all: unset; box-sizing: border-box; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px;
  border-radius: 9px; cursor: pointer; transition: background .15s var(--onv-ease);
}
.onv-acct__main:hover { background: var(--onv-hover); }
.onv-acct__main:focus-visible { outline: 2px solid var(--onv-acc); outline-offset: 2px; }
.onv-acct__av {
  flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: var(--onv-acc-bg); color: var(--onv-strong); font: 600 12px/1 var(--onv-font);
}
.onv-acct__t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.onv-acct__t b { font: 500 13px/1.3 var(--onv-font); color: var(--onv-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onv-acct__t span { font: 500 11px/1.3 var(--onv-mono); color: var(--onv-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .orv-sb.onv-mounted .onv-acct__gear, .onv-acct__gear { flex: none; width: 40px !important; height: 40px !important; min-height: 40px; padding: 0 !important; justify-content: center; border-radius: 9px; }
.onv-acct__gear .onv-ic { background: transparent; box-shadow: none; }

/* ── Mobile drawer: the same list, always expanded ──────────────── */
.orv-mob-drawer .onv-item { min-height: 44px; }
html body .orv-mob-drawer .orv-mob-drawer-bottom.onv-foot-host { padding: 8px 12px 12px; }
.orv-mob-drawer .onv-acct__gear { width: 44px !important; height: 44px !important; }
.orv-mob-drawer .onv-route { left: 24px; top: 40px; bottom: 22px; }

/* ── Panel: in development, Campaign Builder chooser ────────────── */
/* Same page frame as the Research-style pages (.rx-wrap): top offset and side gutter. */
.onv-panel { font-family: var(--onv-font); color: var(--onv-text); padding: var(--orv-page-top, 28px) 40px 96px; box-sizing: border-box; }
.onv-btn {
  all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px;
  border-radius: 9px; border: 1px solid var(--onv-line); color: var(--onv-strong); font: 500 14px/1 var(--onv-font); cursor: pointer;
  transition: border-color .15s var(--onv-ease), background .15s var(--onv-ease);
}
.onv-btn:hover { border-color: var(--onv-faint); background: var(--onv-hover); }
.onv-btn--primary { background: var(--green, #B7FF2A); border-color: transparent; color: #0B0C0A; font-weight: 600; }
.onv-btn--primary:hover { background: var(--green, #B7FF2A); filter: brightness(1.05); }

.onv-dev-page { max-width: 560px; margin: 6vh auto 0; text-align: center; }
.onv-dev-page__mark { width: 64px; height: 64px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 16px; border: 1px dashed var(--onv-faint); color: var(--onv-muted); }
.onv-dev-page__mark svg { width: 30px; height: 30px; }
.onv-dev-page__badge { display: inline-block; margin: 0 0 12px; padding: 4px 10px; border-radius: 6px; border: 1px dashed var(--onv-faint); font: 500 11px/1.2 var(--onv-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--onv-muted); }
.onv-dev-page h1 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; color: var(--onv-strong); }
.onv-dev-page__body { margin: 0 auto 24px; max-width: 46ch; font-size: 15px; line-height: 1.55; }
.onv-dev-page__alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.onv-cb { max-width: 1440px; margin: 0; } /* left-aligned like every other page; same width */
.onv-cb__head h1 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 32px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; color: var(--onv-strong); }
.onv-cb__head p { margin: 0 0 24px; max-width: 60ch; font-size: 14.5px; line-height: 1.55; }
.onv-cb__resume { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; width: 100%; margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; cursor: pointer; background: var(--onv-acc-bg); }
.onv-cb__resume span { font: 500 11px/1.2 var(--onv-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--onv-muted); }
.onv-cb__resume b { font-size: 15px; color: var(--onv-strong); }
.onv-cb__list { list-style: none; margin: 0; padding: 4px 20px; border: 1px solid var(--onv-line); border-radius: 12px; background: var(--onv-surface); } /* the list is one card */
.onv-cb__list li:last-child { border-bottom: 0; }
.onv-cb__list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 2px; border-bottom: 1px solid var(--onv-line); }
.onv-cb__c { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.onv-cb__c b { color: var(--onv-strong); font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onv-cb__c span { font-size: 12.5px; color: var(--onv-muted); }
.onv-cb__list li .onv-cb__c { flex: 1; }
.onv-cb__note { font-size: 12px; color: var(--onv-muted); max-width: 22ch; text-align: right; }
.onv-cb__aud { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--onv-line); background: var(--onv-acc-bg); font-size: 14px; color: var(--onv-strong); }
.onv-cb__empty { padding: 32px 0; text-align: center; }
.onv-cb__empty p { margin: 0 0 16px; }


/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .onv-panel { padding: 32px 16px 56px; }
  .onv-cb__list li { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .onv *, html body .orv-sb.onv-mounted { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .onv-item.is-on { outline: 2px solid Highlight; }
}
.onv-cb__head h1 { font-size: 28px; font-weight: 700; line-height: 1.2; }

/* Settings → General → "Show workflow steps" off (body.orv-wf-off,
   js/settings.js): the section numbers and the route line beside the pages
   go. The rules for this lived only on the old sidebar (.orv-ni). */
body.orv-wf-off .onv-sec__n, body.orv-wf-off .onv-route { display: none !important; }

/* ── A page's related page (js/pageRegistry.js data-orv-go) ─────────
   Competitor Analysis, My Content and Campaign Builder left the sidebar;
   each is one click from the page it belongs to, in that page's header. */
.orv-related {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 10px 7px 12px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03);
  color: rgba(255, 255, 255, .86); text-decoration: none; font-size: 13px; line-height: 1.2;
  transition: border-color .15s, background .15s, color .15s;
  /* Its own width in any header (grid and flex headers would stretch it). */
  width: max-content; max-width: 100%; justify-self: start; align-self: flex-start; box-sizing: border-box;
}
.orv-related__l { color: rgba(255, 255, 255, .5); }
.orv-related b { font-weight: 600; color: #fff; }
.orv-related svg { width: 14px; height: 14px; color: var(--green, #B7FF2A); transition: transform .15s; }
.orv-related:hover { border-color: color-mix(in srgb, var(--green, #B7FF2A) 55%, transparent); background: color-mix(in srgb, var(--green, #B7FF2A) 7%, transparent); }
.orv-related:hover svg { transform: translateX(2px); }
.orv-related:focus-visible { outline: 2px solid var(--green, #B7FF2A); outline-offset: 2px; }
body:not(.dark-mode) .orv-related { border-color: rgba(0, 0, 0, .12); background: rgba(0, 0, 0, .02); color: #18181A; }
body:not(.dark-mode) .orv-related__l { color: rgba(0, 0, 0, .5); }
body:not(.dark-mode) .orv-related b { color: #18181A; }
@media (prefers-reduced-motion: reduce) { .orv-related, .orv-related svg { transition: none; } }
@media (max-width: 480px) { .orv-related__l { display: none; } }

/* ── Desktop sidebar fits without scrolling ──────────────────────────
   15 pages in six sections. The vertical rhythm tightens in steps as the
   window gets shorter, so the whole navigation stays visible at common
   laptop sizes. Desktop sidebar only: the phone drawer keeps 44px rows. */
@media (min-width: 769px) and (max-height: 1070px) {
  html body .orv-sb.onv-mounted .orv-sb-nav { padding-top: 6px !important; padding-bottom: 8px !important; }
  .orv-sb .onv-sec { padding: 7px 0 2px; }
  .orv-sb .onv-sec + .onv-sec { margin-top: 2px; }
  .orv-sb .onv-sec__h { margin-bottom: 3px; }
  .orv-sb .onv-item { min-height: 31px; padding: 2px 10px; }
  .orv-sb .onv-ic { width: 26px; height: 26px; }
  .orv-sb .onv-route { top: 31px; }
}
/* (Up to 840px, not 820px: the 31px rows above needed 830px even with no
   gap, so 821–836px tall windows used to scroll.) */
@media (min-width: 769px) and (max-height: 950px) {
  .orv-sb .onv-sec { padding: 5px 0 1px; }
  .orv-sb .onv-sec__h { margin-bottom: 2px; font-size: 10px; }
  .orv-sb .onv-list { gap: 0; }
  .orv-sb .onv-item { min-height: 28px; padding: 1px 10px; font-size: 13px; }
  .orv-sb .onv-ic { width: 24px; height: 24px; border-radius: 7px; }
  .orv-sb .onv-ic svg { width: 16px; height: 16px; }
  .orv-sb .onv-item.is-on::before { top: 6px; bottom: 6px; }
  .orv-sb .onv-route { top: 27px; bottom: 14px; }
}
@media (min-width: 769px) and (max-height: 850px) {
  .orv-sb .onv-sec { padding: 3px 0 0; }
  .orv-sb .onv-sec + .onv-sec { margin-top: 1px; }
  .orv-sb .onv-sec__h { margin-bottom: 1px; }
  .orv-sb .onv-item { min-height: 25px; padding: 0 10px; font-size: 12.5px; }
  .orv-sb .onv-ic { width: 22px; height: 22px; }
  .orv-sb .onv-ic svg { width: 15px; height: 15px; }
  .orv-sb .onv-route { top: 23px; bottom: 12px; }
}
@media (min-width: 769px) and (max-height: 790px) {
  html body .orv-sb.onv-mounted .orv-sb-nav { padding-top: 2px !important; padding-bottom: 4px !important; }
  .orv-sb .onv-sec { padding: 2px 0 0; }
  .orv-sb .onv-sec + .onv-sec { margin-top: 0; }
  .orv-sb .onv-item { min-height: 24px; }
  .orv-sb .onv-route { top: 21px; bottom: 10px; }
}
/* Short windows (a 1366×768 or 1280×720 laptop with the browser's own bars):
   a slimmer logo row and footer give the pages the room. */
@media (min-width: 769px) and (max-height: 870px) {
  html body .orv-sb.onv-mounted .orv-sb-logo { min-height: 52px; padding: 10px 18px 8px !important; }
  html body #orvSidebar.orv-sb.onv-mounted .orv-sb-logo { padding: 5px 12px !important; }
  html body #orvSidebar.orv-sb.onv-mounted .orv-sb-logo-img { width: 42px !important; height: 42px !important; }
  html body .orv-sb.onv-mounted .orv-sb-bottom { padding: 4px 12px 8px !important; }
}
/* Breathing room between the pages of a section (the list's gap; nine gaps
   in the six sections). It grows with the window's height inside each tier
   above and is capped small: clamp(0, (window height − the height the
   sidebar needs with no gap − 8px safety) / 9, cap). Whatever the window
   height, the list therefore still fits: the sidebar never needs to scroll. */
@media (min-width: 769px) {
  .orv-sb .onv-list { gap: clamp(1px, calc((100vh - 1036px) / 9), 4px); }
}
@media (min-width: 769px) and (max-height: 1070px) {
  .orv-sb .onv-list { gap: clamp(0px, calc((100vh - 948px) / 9), 3px); }
}
@media (min-width: 769px) and (max-height: 950px) {
  .orv-sb .onv-list { gap: clamp(0px, calc((100vh - 872px) / 9), 2px); }
}
@media (min-width: 769px) and (max-height: 870px) {
  .orv-sb .onv-list { gap: clamp(0px, calc((100vh - 859px) / 9), 2px); }
}
@media (min-width: 769px) and (max-height: 850px) {
  .orv-sb .onv-list { gap: clamp(0px, calc((100vh - 782px) / 9), 2px); }
}
@media (min-width: 769px) and (max-height: 790px) {
  .orv-sb .onv-list { gap: clamp(0px, calc((100vh - 755px) / 9), 2px); }
}

/* ════════════════════════════════════════════════════════════════
   Workspace redesign (2026-11): one green family for the whole sidebar.
   Every group carries a continuous vertical line through its icons —
   fresh green at the top, OrivenAI green in the middle, deep green at
   the bottom. Quiet in other groups, full strength in the open one.
   ════════════════════════════════════════════════════════════════ */
:root {
  --og-fresh: #C9F27A;   /* highlights */
  --og-mid: #7CCB45;     /* primary green, lines' middle */
  --og-rich: #2E9E5B;    /* secondary accents */
  --og-deep: #145A3A;    /* premium surfaces, lines' end */
  --og-muted: #5F7A66;   /* subdued details */
}
.onv [data-sec] { --sx: var(--onv-acc); --onv-g1: #8FC43F; --onv-g2: #4E9A2E; --onv-g3: #1E5E3B; }
body.dark-mode .onv [data-sec] { --onv-g1: #D6FF8C; --onv-g2: #86D04E; --onv-g3: #1F7A4D; }
.onv-sec__h { padding-left: 10px; }
.onv .onv-route { left: 23px; width: 2.5px; border-radius: 3px; background: linear-gradient(180deg, var(--onv-g1), var(--onv-g2) 52%, var(--onv-g3)); opacity: .32; transition: opacity .3s var(--onv-ease); }
.onv .onv-sec.is-active .onv-route { opacity: .95; }
.onv .onv-route i { display: none; }
.onv-item.is-on .onv-ic { color: var(--onv-acc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--onv-g2) 55%, transparent); }
.onv-sec.is-active .onv-sec__h { color: var(--onv-strong); }
