/* ========================================================================== 3. App shell — sidebar, toolbar, content ========================================================================== */ .cb-app { display: flex; min-height: 100vh; } /* ---- Carbon glass sidebar ------------------------------------------- A floating frosted panel over a soft ambient backdrop. Monochrome line icons sit in small glass chips; the active page gets a solid Carbon indigo chip, a soft glow and an edge indicator. No gradients on controls. ---------------------------------------------------------------------- */ :root { --cb-side-w: 264px; --cb-side-w-mini: 76px; --cb-gutter: 12px; --cb-amb-1: rgba(79, 91, 234, .16); --cb-amb-2: rgba(139, 92, 246, .13); --cb-amb-3: rgba(45, 212, 191, .13); --cb-glass: rgba(255, 255, 255, .56); --cb-glass-solid: #f6f7fb; --cb-glass-edge: rgba(255, 255, 255, .8); --cb-glass-line: rgba(15, 23, 42, .07); --cb-glass-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 50px -12px rgba(30, 41, 90, .22), 0 2px 8px rgba(30, 41, 90, .06); --cb-chip: rgba(255, 255, 255, .7); --cb-chip-edge: rgba(15, 23, 42, .07); --cb-nav-fg: #27304a; --cb-nav-fg-2: rgba(39, 48, 74, .62); --cb-nav-hover: rgba(79, 91, 234, .06); --cb-nav-active-fg: var(--cb-accent-strong); --cb-seg-track: rgba(15, 23, 42, .06); --cb-seg-thumb: #ffffff; } :root[data-darkmode="true"] { --cb-amb-1: rgba(37, 99, 235, .26); --cb-amb-2: rgba(124, 58, 237, .22); --cb-amb-3: rgba(20, 184, 166, .12); --cb-glass: rgba(26, 28, 36, .58); --cb-glass-solid: #16171d; --cb-glass-edge: rgba(255, 255, 255, .08); --cb-glass-line: rgba(255, 255, 255, .07); --cb-glass-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 50px -10px rgba(0, 0, 0, .6); --cb-chip: rgba(255, 255, 255, .06); --cb-chip-edge: rgba(255, 255, 255, .07); --cb-nav-fg: #e7e9f3; --cb-nav-fg-2: rgba(231, 233, 243, .58); --cb-nav-hover: rgba(255, 255, 255, .06); --cb-nav-active-fg: var(--cb-accent-strong); --cb-seg-track: rgba(255, 255, 255, .07); --cb-seg-thumb: rgba(255, 255, 255, .16); } /* ambient backdrop — gives the glass something to refract */ .cb-app::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(620px 520px at -4% -6%, var(--cb-amb-1), transparent 70%), radial-gradient(560px 520px at -2% 104%, var(--cb-amb-2), transparent 70%), radial-gradient(700px 560px at 104% 18%, var(--cb-amb-3), transparent 70%); } .cb-sidebar { position: fixed; z-index: 300; top: var(--cb-gutter); bottom: var(--cb-gutter); left: var(--cb-gutter); width: var(--cb-side-w); display: flex; flex-direction: column; padding: 14px 10px 10px; border-radius: 22px; border: 1px solid var(--cb-glass-edge); background: var(--cb-glass-solid); box-shadow: var(--cb-glass-shadow); color: var(--cb-nav-fg); transition: width .3s var(--cb-ease), transform .3s var(--cb-ease), padding .3s var(--cb-ease); } @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .cb-sidebar { background: var(--cb-glass); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%); } } /* top sheen */ .cb-sidebar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 120px); opacity: .7; } :root[data-darkmode="true"] .cb-sidebar::before { background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 120px); opacity: 1; } .cb-sidebar > * { position: relative; } /* brand */ .cb-brand { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 2px 6px 12px; color: var(--cb-nav-fg); text-decoration: none; } .cb-brand-logo { width: 38px; height: 38px; flex: none; border-radius: 12px; box-shadow: 0 6px 16px -6px rgba(79, 91, 234, .6); } /* uploaded logo: any aspect ratio, no brand-coloured glow */ .cb-brand-logo[data-custom] { object-fit: contain; border-radius: 10px; box-shadow: none; } .cb-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; } .cb-brand-text strong { font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cb-brand-text small { color: var(--cb-nav-fg-2); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* collapse handle on the panel edge */ .cb-collapse { position: absolute !important; z-index: 2; top: 24px; right: -13px; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 1px solid var(--cb-glass-edge); border-radius: 50%; background: var(--cb-glass-solid); color: var(--cb-nav-fg-2); box-shadow: 0 4px 12px rgba(30, 41, 90, .16); cursor: pointer; opacity: 0; transition: opacity .2s var(--cb-ease), color .2s, transform .3s var(--cb-ease); } .cb-collapse svg { width: 14px; height: 14px; } .cb-sidebar:hover .cb-collapse, .cb-collapse:focus-visible { opacity: 1; } .cb-collapse:hover { color: var(--cb-nav-active-fg); } /* mode switch */ .cb-mode { padding: 0 4px 6px; } .cb-mode .cb-seg { width: 100%; } /* nav list */ .cb-nav { flex: 1; overflow-y: auto; overflow-x: hidden; margin: 0 -10px; padding: 2px 10px 12px; scrollbar-width: none; } .cb-nav::-webkit-scrollbar { display: none; } .cb-nav-sect { padding: 16px 12px 6px; color: var(--cb-nav-fg-2); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; } .cb-nav-sect:first-child { padding-top: 8px; } .cb-nav-link, .cb-nav-head { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; height: 42px; margin: 2px 0; padding: 0 10px 0 6px; border: 0; border-radius: 13px; background: transparent; color: var(--cb-nav-fg); font: inherit; font-size: 13.5px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .18s var(--cb-ease), color .18s var(--cb-ease); } .cb-nav-link:hover, .cb-nav-head:hover { background: var(--cb-nav-hover); } /* plain line icon — no chip, no fill; state is shown by colour only */ .cb-nav-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 30px; color: var(--cb-nav-fg-2); transition: color .18s var(--cb-ease); } .cb-nav-ico svg { width: 18px; height: 18px; stroke-width: 1.8; } .cb-nav-link:hover .cb-nav-ico, .cb-nav-head:hover .cb-nav-ico { color: var(--cb-nav-fg); } .cb-nav-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* active page: colour only — no background, no edge indicator */ .cb-nav-link.active { color: var(--cb-nav-active-fg); font-weight: 600; } .cb-nav-link.active .cb-nav-ico, .cb-nav-group.active > .cb-nav-head .cb-nav-ico { color: var(--cb-accent); } .cb-nav-group.active > .cb-nav-head { color: var(--cb-nav-fg); font-weight: 600; } .cb-chev { flex: none; width: 14px; height: 14px; color: var(--cb-nav-fg-2); opacity: .7; transition: transform .25s var(--cb-ease); } .cb-chev svg { width: 14px; height: 14px; display: block; } .cb-nav-group.open > .cb-nav-head .cb-chev { transform: rotate(90deg); } /* sub pages */ .cb-nav-items { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s var(--cb-ease); } .cb-nav-group.open > .cb-nav-items { grid-template-rows: 1fr; } .cb-nav-items > .cb-nav-sub { position: relative; overflow: hidden; min-height: 0; padding-left: 24px; } /* guide line under the category icon */ .cb-nav-items > .cb-nav-sub::before { content: ""; position: absolute; left: 17.5px; top: 0; bottom: 14px; width: 1px; background: var(--cb-glass-line); } .cb-nav-item { position: relative; display: flex; align-items: center; gap: 10px; height: 34px; margin: 1px 0; padding: 0 10px; border-radius: 10px; color: var(--cb-nav-fg-2); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .18s var(--cb-ease), color .18s var(--cb-ease); } .cb-nav-item:hover { background: var(--cb-nav-hover); color: var(--cb-nav-fg); } .cb-nav-item.active { color: var(--cb-nav-active-fg); font-weight: 600; } .cb-nav-item.active .cb-sub-ico { color: var(--cb-accent); } /* sub pages keep a short highlight on the guide line */ .cb-nav-sub > .cb-nav-item.active::before { content: ""; position: absolute; left: -7.5px; top: 50%; width: 3px; height: 16px; margin-top: -8px; border-radius: 2px; background: var(--cb-accent); } .cb-sub-ico { display: inline-flex; flex: none; width: 16px; height: 16px; opacity: .85; } .cb-sub-ico svg { width: 16px; height: 16px; stroke-width: 1.8; } .cb-nav-item.active .cb-sub-ico { opacity: 1; } /* hint card in simple mode */ .cb-nav-hint { display: flex; gap: 10px; margin: 18px 2px 0; padding: 12px; border-radius: 14px; border: 1px solid var(--cb-chip-edge); background: var(--cb-chip); color: var(--cb-nav-fg-2); font-size: 12px; line-height: 1.5; } .cb-nav-hint a { font-weight: 600; color: var(--cb-nav-active-fg); } .cb-nav-hint-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; color: var(--cb-accent); } .cb-nav-hint-ico svg { width: 18px; height: 18px; } /* footer */ .cb-sidebar-foot { display: flex; align-items: center; gap: 8px; padding: 10px 4px 2px; border-top: 1px solid var(--cb-glass-line); } .cb-sidebar-foot .cb-seg { flex: 1; } /* language switch in the sidebar footer (bottom-left) */ .cb-lang { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; transition: opacity .2s; } .cb-lang-ico { display: inline-flex; flex: none; width: 18px; height: 18px; color: var(--cb-nav-fg-2); } .cb-lang-ico svg { width: 18px; height: 18px; } .cb-lang .cb-seg-btn { font-size: 12px; font-weight: 600; } .cb-lang.busy { opacity: .55; pointer-events: none; } .cb-lang.err .cb-seg, .cb-lang.err .cb-lb, .cb-lang.err .cb-mini { box-shadow: 0 0 0 1.5px var(--cb-red); } .cb-lang-mini { font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; } .cb-lang .cb-lb { flex: 1; min-width: 0; } .cb-logout { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 9px; color: var(--cb-red); font-size: 12.5px; font-weight: 600; white-space: nowrap; text-decoration: none; } .cb-logout:hover { background: var(--cb-red-t); } .cb-logout svg { width: 16px; height: 16px; } /* icon-only buttons used on the rail */ .cb-mini { display: none; align-items: center; justify-content: center; width: 40px; height: 36px; margin: 0 auto; padding: 0; border: 0; border-radius: 11px; background: transparent; color: var(--cb-nav-fg-2); cursor: pointer; } .cb-mini:hover { background: var(--cb-nav-hover); color: var(--cb-nav-fg); } .cb-mini svg { width: 17px; height: 17px; } /* flyout next to the rail */ .cb-fly { position: fixed; z-index: 1000; min-width: 200px; max-width: 280px; padding: 6px; border-radius: 16px; border: 1px solid var(--cb-glass-edge); background: var(--cb-glass-solid); box-shadow: var(--cb-glass-shadow); color: var(--cb-nav-fg); opacity: 0; visibility: hidden; transform: translateX(-6px); transition: opacity .16s var(--cb-ease), transform .16s var(--cb-ease), visibility .16s; } @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .cb-fly { background: var(--cb-glass); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%); } } /* visible at once when opening, so keyboard focus can move into it */ .cb-fly.show { opacity: 1; visibility: visible; transform: none; transition-property: opacity, transform; } .cb-fly-title { padding: 6px 10px 6px; color: var(--cb-nav-fg-2); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; } .cb-fly.cb-fly-tip { min-width: 0; padding: 4px; border-radius: 10px; } .cb-fly.cb-fly-tip .cb-fly-title { padding: 4px 8px; color: var(--cb-nav-fg); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; } .cb-fly .cb-nav-item.active::before { display: none; } /* ---- collapsed rail (desktop only) ---- */ @media (min-width: 1024px) { html.cb-collapsed .cb-sidebar { width: var(--cb-side-w-mini); padding-left: 8px; padding-right: 8px; } html.cb-collapsed .cb-collapse { opacity: 1; transform: rotate(180deg); } html.cb-collapsed .cb-brand { justify-content: center; padding-left: 0; padding-right: 0; } html.cb-collapsed .cb-brand-text, html.cb-collapsed .cb-sidebar .cb-nav-label, html.cb-collapsed .cb-chev, html.cb-collapsed .cb-nav-items, html.cb-collapsed .cb-nav-hint, html.cb-collapsed .cb-mode .cb-seg, html.cb-collapsed .cb-sidebar-foot .cb-seg, html.cb-collapsed .cb-lang .cb-lb, html.cb-collapsed .cb-lang-ico, html.cb-collapsed .cb-logout span { display: none; } html.cb-collapsed .cb-mini { display: inline-flex; } html.cb-collapsed .cb-mode { padding: 0 0 4px; display: flex; } html.cb-collapsed .cb-nav { margin: 0 -8px; padding: 2px 8px 12px; } html.cb-collapsed .cb-nav-sect { height: 1px; margin: 12px 14px; padding: 0; background: var(--cb-glass-line); font-size: 0; } html.cb-collapsed .cb-nav-sect:first-child { margin-top: 6px; } html.cb-collapsed .cb-nav-link, html.cb-collapsed .cb-nav-head { justify-content: center; padding: 0; } html.cb-collapsed .cb-nav-ico { width: 36px; height: 36px; } html.cb-collapsed .cb-nav-ico svg { width: 20px; height: 20px; } html.cb-collapsed .cb-sidebar-foot { flex-direction: column; gap: 6px; padding: 10px 0 2px; } html.cb-collapsed .cb-lang { flex: none; justify-content: center; } html.cb-collapsed .cb-logout { width: 40px; height: 36px; padding: 0; } html.cb-collapsed .cb-main { margin-left: calc(var(--cb-side-w-mini) + var(--cb-gutter) * 2); } } .cb-main { transition: margin-left .3s var(--cb-ease); } /* ---- segmented control ---- */ .cb-seg { --n: 2; --i: 0; position: relative; display: inline-flex; padding: 2px; border-radius: 11px; background: var(--cb-seg-track); isolation: isolate; } .cb-seg::before { content: ""; position: absolute; z-index: -1; top: 2px; bottom: 2px; left: 2px; width: calc((100% - 4px) / var(--n)); border-radius: 9px; background: var(--cb-seg-thumb); box-shadow: 0 1px 3px rgba(15, 23, 42, .12), 0 0 0 .5px rgba(15, 23, 42, .04); transform: translateX(calc(var(--i) * 100%)); transition: transform .25s var(--cb-ease); } .cb-seg > .cb-seg-btn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; height: 28px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--cb-text); font: inherit; font-size: 12.5px; font-weight: 500; white-space: nowrap; cursor: pointer; } .cb-seg > .cb-seg-btn[aria-checked="false"] { color: var(--cb-text-2); } .cb-seg > .cb-seg-btn svg { width: 15px; height: 15px; } /* ---- main ---- */ .cb-main { flex: 1; min-width: 0; margin-left: calc(var(--cb-side-w) + var(--cb-gutter) * 2); display: flex; flex-direction: column; min-height: 100vh; } .cb-toolbar { position: sticky; z-index: 200; top: 0; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 28px 8px 16px; background: var(--cb-bg); border-bottom: .5px solid transparent; transition: border-color .2s var(--cb-ease); } @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .cb-toolbar { background: var(--cb-toolbar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); } } .cb-scrolled .cb-toolbar { border-bottom-color: var(--cb-border); } .cb-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cb-title .cb-crumb { color: var(--cb-text-2); font-weight: 500; } .cb-title .cb-crumb-sep { width: 12px; height: 12px; color: var(--cb-text-3); flex: none; } .cb-burger { display: none; position: relative; width: 34px; height: 34px; margin-left: -6px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; } .cb-burger:hover { background: var(--cb-hover); } .cb-burger span, .cb-burger span::before, .cb-burger span::after { position: absolute; left: 9px; width: 16px; height: 1.75px; border-radius: 2px; background: var(--cb-text); } .cb-burger span { top: 16px; } .cb-burger span::before, .cb-burger span::after { content: ""; left: 0; } .cb-burger span::before { top: -5px; } .cb-burger span::after { top: 5px; } /* theme switch in the toolbar (top-right) */ .cb-appearance { flex: none; } .cb-appearance:empty { display: none; } .cb-appearance .cb-seg-btn { height: 26px; min-width: 32px; padding: 0 8px; } .cb-appearance .cb-seg-btn svg { width: 15px; height: 15px; } .cb-github { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 8px; color: var(--cb-text-2); transition: color .2s var(--cb-ease), background .2s var(--cb-ease); } .cb-github svg { width: 19px; height: 19px; } .cb-github:hover { color: var(--cb-accent); background: var(--cb-hover); } .cb-github:focus-visible { outline: 2px solid var(--cb-accent); outline-offset: 2px; } .cb-indicators, #indicators { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; } [data-indicator] { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--cb-fill); color: var(--cb-text-2); font-size: 12px; font-weight: 600; white-space: nowrap; } [data-indicator][data-clickable] { cursor: pointer; } [data-indicator][data-clickable]:hover { filter: brightness(.96); } [data-indicator][data-style="active"] { background: var(--cb-orange-t); color: var(--cb-orange); } [data-indicator][data-style="active"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; } [data-indicator="poll-status"][data-style="active"] { background: var(--cb-green-t); color: var(--cb-green); } .cb-content { flex: 1; width: 100%; max-width: var(--cb-content-max); margin: 0 auto; padding: 12px 28px 28px; } .cb-footer { width: 100%; max-width: var(--cb-content-max); margin: 0 auto; padding: 8px 28px 28px; color: var(--cb-text-3); font-size: 12px; } .cb-footer a { color: var(--cb-text-2); } .cb-scrim { display: none; }