/* Shared POS and personal-notebook navigation shell. */
html body .cn-nav-shell[data-cn-side="true"] { position:fixed; top:0; bottom:0; left:0; right:auto; width:212px; max-width:none; margin:0; padding:133px 16px 0; display:flex; flex-direction:column; justify-content:flex-start; align-items:flex-start; gap:16px; transform:none; border-radius:0; background:var(--surface); box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none; pointer-events:auto; transition:width .32s cubic-bezier(.2,.8,.2,1),padding .32s cubic-bezier(.2,.8,.2,1); }
html body .cn-nav-shell[data-cn-side="true"] :is(a[data-label],button[data-tab],.side-link) { box-sizing:border-box; display:flex; flex:none; align-items:center; justify-content:flex-start; gap:12px; width:180px; height:48px; padding:0 22px; border:0; border-radius:999px; background:transparent; color:var(--ink); box-shadow:none; text-decoration:none; transform:none; transition:background-color .25s,color .25s; }
html body .cn-nav-shell[data-cn-side="true"] :is(a[data-label],button[data-tab],.side-link):hover { background:var(--accent-soft); }
html body .cn-nav-shell[data-cn-side="true"] :is(a[aria-current="page"],button[aria-selected="true"]) { background:var(--ink); color:var(--on-ink,var(--surface)); }
html body .cn-nav-shell[data-cn-side="true"][data-cn-mini="true"] { width:80px; }
html body .cn-nav-shell[data-cn-side="true"][data-cn-mini="true"] :is(a[data-label],button[data-tab],.side-link) { width:48px; padding:0; gap:0; justify-content:center; }
html body .cn-nav-shell[data-cn-side="true"] :is(.side-toggle,.user-side-toggle) { display:grid; place-items:center; position:absolute; top:40px; right:14px; width:32px; height:32px; padding:0; border:0; border-radius:50%; background:var(--field,var(--accent-soft)); cursor:pointer; }
html body .cn-nav-shell[data-cn-side="true"][data-cn-mini="true"] :is(.side-toggle,.user-side-toggle) { right:24px; top:36px; }
html body .cn-nav-shell[data-cn-side="false"] { display:flex; align-items:flex-end; justify-content:center; gap:5px; padding:8px; border-radius:999px; background:color-mix(in srgb,var(--bg) 78%,transparent); -webkit-backdrop-filter:blur(16px) saturate(1.4); backdrop-filter:blur(16px) saturate(1.4); box-shadow:0 10px 28px rgba(0,0,0,.14),inset 0 0 0 1px rgba(255,255,255,.35); }
html[data-theme="dark"] body .cn-nav-shell[data-cn-side="false"] { box-shadow:0 10px 28px rgba(0,0,0,.5),inset 0 0 0 1px rgba(255,255,255,.08); }
html body .cn-nav-shell[data-cn-side="false"] :is(a[data-label],button[data-tab]) { box-sizing:border-box; width:calc(var(--cn-dock-size,48px) * var(--s,1)); height:calc(var(--cn-dock-size,48px) * var(--s,1)); flex:none; padding:0; display:flex; align-items:center; justify-content:center; border:0; border-radius:50%; background:var(--surface); box-shadow:0 1px 2px rgba(0,0,0,.08); transform:none; transition:background-color .2s; }
html body .cn-nav-shell[data-cn-side="false"] :is(a[aria-current="page"],button[aria-selected="true"]) { background:var(--ink); color:var(--on-ink,var(--surface)); }
html body .cn-nav-shell[data-cn-side="false"] a[data-label] svg { width:calc(16px * var(--s,1)); height:calc(16px * var(--s,1)); }
@media (prefers-reduced-motion:reduce) { html body .cn-nav-shell { transition:none; } }

html body .cn-nav-shell[data-cn-side="false"]:has(> :nth-child(6 of button[data-tab])) { --cn-dock-size:clamp(44px, calc((100vw - 57px) / 6), 48px); }

/* Keep the fold control inside the sidebar and fit six user destinations. */
html body .cn-nav-shell[data-cn-side="true"]{box-sizing:border-box;z-index:1101}
html body .cn-nav-shell[data-cn-side="false"]:has(a[data-label="store"]){--cn-dock-size:clamp(38px,calc((100vw - 57px) / 6),48px)}
