.shell-app{--shell-topbar-h:var(--size-toolbar);background:var(--color-bg);min-height:100dvh;color:var(--color-text-body);font-family:var(--font-sans);display:flex}.shell-sidebar{z-index:var(--z-sticky);width:var(--size-sidebar);height:100dvh;padding:0 var(--space-3) var(--space-4);border-right:1px solid var(--color-border);background:var(--color-surface-warm);transition:width var(--motion-normal) var(--motion-ease), padding var(--motion-normal) var(--motion-ease);flex-direction:column;flex:none;display:flex;position:sticky;top:0}.shell-brand-row{justify-content:space-between;align-items:center;gap:var(--space-1);height:var(--size-toolbar);margin-bottom:var(--space-2);flex:none;display:flex}.shell-brand{align-items:center;gap:var(--space-3);min-width:0;height:100%;padding:0 var(--space-2) 0 var(--space-3);color:var(--color-text);font-size:var(--font-size-xl);font-weight:var(--font-weight-bold);letter-spacing:var(--font-tracking-tight);flex:1;text-decoration:none;display:flex}.shell-brand-tile svg{width:17px;height:18px}.shell-brand-tile{border-radius:var(--radius-sm);background:var(--color-brand-tile);width:28px;height:28px;color:var(--color-brand-ink);flex:none;place-items:center;display:grid}.shell-brand-name{white-space:nowrap;flex:none}.shell-collapse-btn{border-radius:var(--radius-md);width:30px;height:30px;color:var(--color-text-muted);cursor:pointer;transition:background var(--motion-fast), color var(--motion-fast);background:0 0;border:0;flex:none;place-items:center;padding:0;display:inline-grid}.shell-collapse-btn:hover{background:var(--color-surface-hover);color:var(--color-text)}.shell-collapse-btn svg{width:16px;height:16px}.shell-controls{gap:var(--space-2);margin:var(--space-1) 0 var(--space-3);padding-bottom:var(--space-3);border-bottom:1px solid var(--color-border-subtle);flex-direction:column;flex:none;display:flex}.shell-space-wrap{position:relative}.shell-space-trigger{align-items:center;gap:var(--space-3);width:100%;min-height:50px;padding:var(--space-2) var(--space-3);border:1px solid var(--color-accent-line);border-radius:var(--radius-lg);background:var(--color-accent-tint);color:var(--color-text);text-align:left;box-shadow:var(--shadow-xs);cursor:pointer;transition:background var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast);font-family:inherit;display:flex}.shell-space-trigger:hover,.shell-space-trigger[aria-expanded=true]{border-color:var(--color-accent);background:var(--color-accent-soft);box-shadow:var(--shadow-sm)}.shell-space-trigger:focus-visible{border-radius:var(--radius-lg)}.shell-space-code{border-radius:var(--radius-sm);background:var(--color-accent-soft);width:22px;height:22px;color:var(--color-accent);font-size:var(--font-size-2xs);font-weight:var(--font-weight-bold);flex:none;place-items:center;display:inline-grid}.shell-space-trigger .shell-space-code{border-radius:var(--radius-md);background:var(--color-accent);width:28px;height:28px;color:var(--color-text-inverse);font-size:var(--font-size-xs);letter-spacing:.02em}.shell-space-text{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.shell-space-name,.shell-space-sub{text-overflow:ellipsis;white-space:nowrap;line-height:1.25;overflow:hidden}.shell-space-name{color:var(--color-text);font-size:var(--font-size-base);font-weight:var(--font-weight-bold)}.shell-space-sub{color:var(--color-text-muted);font-size:var(--font-size-2xs);font-weight:var(--font-weight-medium)}.shell-space-name,.shell-space-sub{text-overflow:ellipsis;min-width:0;overflow:hidden}.shell-space-chev{width:15px;height:15px;color:var(--color-accent);flex:none}.shell-space-menu .ui-badge{margin-left:auto}.shell-space-skeleton,.shell-space-skeleton:hover{border-color:var(--color-border-subtle);background:var(--color-surface);box-shadow:none;cursor:default}.shell-space-trigger .shell-space-code.ui-skeleton{background:linear-gradient(90deg, var(--color-bg-tint) 25%, var(--color-surface-hover) 50%, var(--color-bg-tint) 75%);background-size:200% 100%}.shell-space-skeleton .shell-space-text{gap:var(--space-1)}.shell-space-skeleton-sub{width:76%;height:10px}.shell-space-empty{background:var(--color-surface);box-shadow:none;border-style:dashed}.shell-space-empty .shell-space-code{background:var(--color-accent-soft);color:var(--color-accent);font-size:var(--font-size-md)}.shell-sync-banner{margin-bottom:var(--space-5);flex:none}.shell-import-btn{align-items:center;gap:var(--space-3);width:100%;height:36px;padding:0 var(--space-3);border:1px solid var(--color-accent-line);border-radius:var(--radius-md);background:var(--color-surface);color:var(--color-accent);font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);white-space:nowrap;box-shadow:var(--shadow-xs);cursor:pointer;transition:background var(--motion-fast), border-color var(--motion-fast);text-decoration:none;display:flex}.shell-import-btn:hover{border-color:var(--color-accent);background:var(--color-accent-tint)}.shell-nav{min-height:0;padding-bottom:var(--space-2);scrollbar-width:thin;flex-direction:column;flex:auto;gap:2px;display:flex;overflow-y:auto}.shell-nav-group{margin-top:var(--space-4);padding:0 var(--space-3) var(--space-1);color:var(--color-text-subtle);font-size:var(--font-size-2xs);font-weight:var(--font-weight-semibold);letter-spacing:var(--font-tracking-wide)}.shell-nav-link{align-items:center;gap:var(--space-3);min-height:38px;padding:0 var(--space-3);border-radius:var(--radius-md);color:var(--color-text);font-size:var(--font-size-base);font-weight:var(--font-weight-medium);white-space:nowrap;transition:background var(--motion-fast), color var(--motion-fast);text-decoration:none;display:flex;position:relative}.shell-nav-link:hover{background:var(--color-surface-hover)}.shell-nav-link.is-active{background:var(--color-accent-soft);color:var(--color-accent);font-weight:var(--font-weight-semibold)}.shell-nav-icon{width:22px;height:22px;color:var(--color-text-muted);flex:none;place-items:center;display:inline-grid}.shell-nav-link:hover .shell-nav-icon{color:var(--color-text)}.shell-nav-link.is-active .shell-nav-icon,.shell-import-btn .shell-nav-icon{color:var(--color-accent)}.shell-nav-icon svg{width:18px;height:18px}.shell-nav-badge{min-width:22px;height:20px;padding:0 var(--space-2);border-radius:var(--radius-pill);background:var(--color-bg-tint);color:var(--color-text-muted);font-size:var(--font-size-2xs);font-weight:var(--font-weight-semibold);font-variant-numeric:tabular-nums;flex:none;justify-content:center;align-items:center;margin-left:auto;line-height:1;display:inline-flex}.shell-nav-link.is-active .shell-nav-badge{background:var(--color-accent);color:var(--color-text-inverse)}.shell-nav-badge.is-many{background:var(--color-warning-soft);color:var(--color-warning-text)}.shell-nav-link.is-active .shell-nav-badge.is-many{background:var(--color-warning-text);color:var(--color-text-inverse)}.shell-system{gap:var(--space-3);padding-top:var(--space-3);flex-direction:column;flex:none;margin-top:auto;display:flex}.shell-allowance-ring{justify-content:center;display:none}.shell-system-links{padding-top:var(--space-2);border-top:1px solid var(--color-border-subtle);flex-direction:column;gap:2px;display:flex}.shell-system-btn{align-items:center;gap:var(--space-3);width:100%;min-height:36px;padding:0 var(--space-3);border-radius:var(--radius-md);color:var(--color-text-body);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);text-align:left;white-space:nowrap;cursor:pointer;background:0 0;border:0;text-decoration:none;display:flex}.shell-system-btn:hover{background:var(--color-surface-hover);color:var(--color-text)}.shell-system-btn.is-active{background:var(--color-accent-soft);color:var(--color-accent);font-weight:var(--font-weight-semibold)}.shell-system-btn.is-active .shell-nav-icon{color:var(--color-accent)}.shell-main{flex-direction:column;flex:1;min-width:0;display:flex}.shell-topbar{z-index:var(--z-header);justify-content:space-between;align-items:center;gap:var(--space-4);height:var(--shell-topbar-h);padding:0 max(var(--space-page-x), calc((100% - var(--size-container)) / 2));border-bottom:1px solid var(--color-border);background:var(--color-surface-glass);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;position:sticky;top:0}.shell-topbar-mobile-brand{flex:none;align-items:center;text-decoration:none;display:none}.shell-topbar-search{flex:1;max-width:480px}.shell-topbar-actions{align-items:center;gap:var(--space-3);flex:none;display:flex}.shell-avatar-btn{border-radius:var(--radius-pill);cursor:pointer;background:0 0;border:0;align-items:center;padding:0;display:inline-flex}.shell-menu-allowance{padding:var(--space-3);margin:var(--space-1) 0;border-radius:var(--radius-md);background:var(--color-surface-subtle);font-size:var(--font-size-xs);color:var(--color-text-body);display:none}.shell-menu-allowance strong{color:var(--color-text)}.shell-menu-allowance .is-low{color:var(--color-warning-text)}.shell-menu-allowance-link{align-items:center;gap:var(--space-1);margin-top:var(--space-2);color:var(--color-accent);font-family:inherit;font-size:inherit;font-weight:var(--font-weight-semibold);cursor:pointer;background:0 0;border:0;padding:0;text-decoration:none;display:inline-flex}.shell-menu-allowance-link:hover{color:var(--color-accent-hover)}.shell-content{width:100%;min-width:0;max-width:calc(var(--size-container) + var(--space-page-x) * 2);padding:var(--space-page-y) var(--space-page-x) var(--space-page-bottom);flex-direction:column;flex:1;margin-inline:auto;display:flex}.shell-app :is(.lib-header h1,.explore-head h1){font-family:var(--font-family-heading);font-size:var(--font-size-page-title);font-weight:var(--font-weight-bold);line-height:var(--font-line-tight);letter-spacing:var(--font-tracking-tight)}.shell-bottom-nav{z-index:var(--z-header);height:calc(var(--size-mobile-bar) + env(safe-area-inset-bottom));padding:calc(var(--space-1) - 1px) var(--space-1) calc(var(--space-1) + env(safe-area-inset-bottom));border-top:1px solid var(--color-border);background:var(--color-surface-glass);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;display:none;position:fixed;bottom:0;left:0;right:0}.shell-bottom-link{border-radius:var(--radius-md);min-height:48px;color:var(--color-text-muted);font-size:var(--font-size-2xs);font-weight:var(--font-weight-medium);flex-direction:column;justify-content:center;align-items:center;gap:2px;text-decoration:none;display:flex;position:relative}.shell-bottom-link.is-active{color:var(--color-accent);font-weight:var(--font-weight-bold)}.shell-bottom-link svg{width:19px;height:19px}.shell-bottom-badge{border-radius:var(--radius-pill);background:var(--color-accent);min-width:16px;height:16px;color:var(--color-text-inverse);font-size:10px;font-weight:var(--font-weight-bold);font-variant-numeric:tabular-nums;justify-content:center;align-items:center;padding:0 4px;line-height:1;display:inline-flex;position:absolute;top:2px;right:calc(50% - 20px)}.shell-bottom-badge.is-many{background:var(--color-warning-text)}@media (min-width:1025px){:is(:root[data-shell-sidebar=rail] .shell-app:not(.is-learning),:root:not([data-shell-learn-sidebar=full]) .shell-app.is-learning) .shell-sidebar{width:var(--size-rail);padding:0 var(--space-2) var(--space-4)}:is(:root[data-shell-sidebar=rail] .shell-app:not(.is-learning),:root:not([data-shell-learn-sidebar=full]) .shell-app.is-learning) .shell-brand-row{justify-content:center;gap:var(--space-2);height:auto;padding:var(--space-3) 0 var(--space-2);flex-direction:column}:is(:root[data-shell-sidebar=rail] .shell-app:not(.is-learning),:root:not([data-shell-learn-sidebar=full]) .shell-app.is-learning) .shell-brand{flex:none;justify-content:center;height:auto;padding:0}:is(:root[data-shell-sidebar=rail] .shell-app:not(.is-learning),:root:not([data-shell-learn-sidebar=full]) .shell-app.is-learning) .shell-brand-name,:is(:root[data-shell-sidebar=rail] .shell-app:not(.is-learning),:root:not([data-shell-learn-sidebar=full]) .shell-app.is-learning) .shell-nav-label,:is(:root[data-shell-sidebar=rail] .shell-app:not(.is-learning),:root:not([data-shell-learn-sidebar=full]) .shell-app.is-learning) .shell-system-label,:is(:root[data-shell-sidebar=rail] .shell-app:not(.is-learning),:root:not([data-shell-learn-sidebar=full]) .shell-app.is-learning) .shell-space-text,:is(:root[data-shell-sidebar=rail] .shell-app:not(.is-learning),:root:not([data-shell-learn-sidebar=full]) .shell-app.is-learning) .shell-space-chev,:is(:root[data-shell-sidebar=rail] .shell-app:not(.is-learning),:root:not([data-shell-learn-sidebar=full]) .shell-app.is-learning) .shell-import-label,:is(:root[data-shell-sidebar=rail] .shell-app:not(.is-learning),:root:not([data-shell-learn-sidebar=full]) .shell-app.is-learning) .system-allowance{display:none}:is(:root[data-shell-sidebar=rail] .shell-app:not(.is-learning),:root:not([data-shell-learn-sidebar=full]) .shell-app.is-learning) .shell-nav-group{width:22px;height:1px;margin:var(--space-3) auto var(--space-2);background:var(--color-border);color:#0000;padding:0;overflow:hidden}:is(:root[data-shell-sidebar=rail] .shell-app:not(.is-learning),:root:not([data-shell-learn-sidebar=full]) .shell-app.is-learning) .shell-space-trigger{border-radius:var(--radius-md);justify-content:center;width:44px;height:44px;min-height:44px;margin:0 auto;padding:0}:is(:root[data-shell-sidebar=rail] .shell-app:not(.is-learning),:root:not([data-shell-learn-sidebar=full]) .shell-app.is-learning) .shell-allowance-ring{display:flex}:is(:root[data-shell-sidebar=rail] .shell-app:not(.is-learning),:root:not([data-shell-learn-sidebar=full]) .shell-app.is-learning) .shell-import-btn,:is(:root[data-shell-sidebar=rail] .shell-app:not(.is-learning),:root:not([data-shell-learn-sidebar=full]) .shell-app.is-learning) .shell-nav-link,:is(:root[data-shell-sidebar=rail] .shell-app:not(.is-learning),:root:not([data-shell-learn-sidebar=full]) .shell-app.is-learning) .shell-system-btn{justify-content:center;width:44px;height:40px;min-height:40px;margin:0 auto;padding:0}:is(:root[data-shell-sidebar=rail] .shell-app:not(.is-learning),:root:not([data-shell-learn-sidebar=full]) .shell-app.is-learning) .shell-nav-badge{border:1.5px solid var(--color-surface-warm);min-width:17px;height:16px;padding:0 4px;font-size:9.5px;position:absolute;top:2px;right:1px}}.shell-scrim{display:none}@media (min-width:601px) and (max-width:1024px){.shell-app.is-expanded{padding-left:var(--size-rail)}.shell-app.is-expanded .shell-scrim{z-index:var(--z-drawer);background:var(--color-backdrop);display:block;position:fixed;inset:0}.shell-app.is-expanded .shell-sidebar{z-index:var(--z-drawer);box-shadow:var(--shadow-lg);position:fixed;top:0;left:0}.shell-app:not(.is-expanded) .shell-sidebar{width:var(--size-rail);padding:0 var(--space-2) var(--space-4)}.shell-app:not(.is-expanded) .shell-brand-row{justify-content:center;gap:var(--space-2);height:auto;padding:var(--space-3) 0 var(--space-2);flex-direction:column}.shell-app:not(.is-expanded) .shell-brand{flex:none;justify-content:center;height:auto;padding:0}.shell-app:not(.is-expanded) .shell-brand-name,.shell-app:not(.is-expanded) .shell-nav-label,.shell-app:not(.is-expanded) .shell-system-label,.shell-app:not(.is-expanded) .shell-space-text,.shell-app:not(.is-expanded) .shell-space-chev,.shell-app:not(.is-expanded) .shell-import-label,.shell-app:not(.is-expanded) .system-allowance{display:none}.shell-app:not(.is-expanded) .shell-nav-group{width:22px;height:1px;margin:var(--space-3) auto var(--space-2);background:var(--color-border);color:#0000;padding:0;overflow:hidden}.shell-app:not(.is-expanded) .shell-space-trigger{border-radius:var(--radius-md);justify-content:center;width:44px;height:44px;min-height:44px;margin:0 auto;padding:0}.shell-app:not(.is-expanded) .shell-allowance-ring{display:flex}.shell-app:not(.is-expanded) .shell-import-btn,.shell-app:not(.is-expanded) .shell-nav-link,.shell-app:not(.is-expanded) .shell-system-btn{justify-content:center;width:44px;height:40px;min-height:40px;margin:0 auto;padding:0}.shell-app:not(.is-expanded) .shell-nav-badge{border:1.5px solid var(--color-surface-warm);min-width:17px;height:16px;padding:0 4px;font-size:9.5px;position:absolute;top:2px;right:1px}}@media (max-width:600px){.shell-app{--shell-topbar-h:var(--size-mobile-bar)}.shell-sidebar{display:none}.shell-topbar{gap:var(--space-2);padding:0 var(--space-4)}.shell-topbar-mobile-brand{display:inline-flex}.shell-topbar-search{max-width:none}.shell-topbar-search .ui-kbd{display:none}.shell-topbar-actions{gap:var(--space-2)}.shell-menu-allowance{display:block}.shell-content{padding-bottom:calc(var(--size-mobile-bar) + env(safe-area-inset-bottom) + var(--space-7))}.shell-bottom-nav{display:grid}}@media (prefers-reduced-motion:reduce){.shell-sidebar{transition:none}}
