/* Staging sidebar v2: writing first, community second, account controls anchored. */
body.glow-dashboard .app-container{--sidebar-w:264px}
body.glow-dashboard .app-container .sidebar.sidebar-v2{background:var(--ui-sidebar)!important;border-color:var(--ui-edge);font-family:'Instrument Sans',sans-serif}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-header{height:84px;min-height:84px;overflow:hidden}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-logo-btn{left:18px;top:22px;gap:12px;align-items:center}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-brand-copy{display:flex;flex-direction:column;gap:3px;white-space:nowrap;opacity:1}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-logo-btn .logo{font:650 18px/22px 'Archivo',sans-serif;letter-spacing:-.035em}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-brand-note{color:var(--ui-muted);font-size:10px;line-height:14px;letter-spacing:0}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-header-controls{top:27px;right:14px}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-collapse-chevron{width:28px;height:28px;background:none;border-color:var(--ui-edge);border-radius:9px}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-compose-wrap{padding:0 12px 18px;flex:none}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-compose{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:10px;border:1px solid transparent;border-radius:14px;background:var(--ui-primary);color:var(--ui-on-primary);cursor:pointer;text-align:left;white-space:nowrap;overflow:hidden;box-shadow:0 3px 8px rgb(15 70 39 / .07)}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-compose>svg{width:22px;height:22px;flex:0 0 22px;padding:2px}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-compose .sidebar-label{font-size:13px;font-weight:650}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-compose-detail{margin-left:auto;font-size:16px;opacity:.7}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-nav{gap:16px;padding:0 12px 14px;scroll-padding-block:12px}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-group{display:flex;flex-direction:column;gap:3px}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-group-label{font-size:10px;font-weight:600;letter-spacing:.055em;line-height:20px;color:var(--ui-muted);padding-left:11px;margin-bottom:3px;white-space:nowrap;opacity:.8}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-nav-item{width:100%;min-height:38px;padding:7px 10px;gap:12px;border-radius:12px;position:relative;isolation:isolate;font-size:13px;font-weight:450;line-height:22px;color:var(--ui-muted);overflow:hidden}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-nav-item>svg{width:22px;height:22px;flex:0 0 22px;padding:2px;stroke-width:1.7}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-nav-item .sidebar-label{line-height:22px;font-size:13px}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-nav-item.active{background:var(--ui-selected);border-color:var(--ui-selected-edge);color:var(--ui-accent);box-shadow:none;font-weight:600}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-nav-item.active::after{content:'';width:5px;height:5px;background:currentColor;border-radius:50%;position:absolute;right:12px;top:calc(50% - 2.5px);opacity:.75}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-utilities{display:flex;flex-direction:column;gap:2px;padding-top:12px;border-top:1px solid var(--ui-edge-soft)}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-utilities .sidebar-label{font-size:12px}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-plan-area{padding-top:2px}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-plan-link{min-height:58px;border:1px solid var(--ui-edge);background:var(--ui-raised);color:var(--ui-ink);border-radius:16px;padding:10px}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-plan-copy{display:flex;flex-direction:column;gap:2px;min-width:0;white-space:nowrap}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-plan-copy .sidebar-label{font-weight:600;font-size:12px;line-height:18px}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-plan-copy small{font-size:10px;line-height:14px;color:var(--ui-muted)}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-plan-arrow{margin-left:auto;font-size:16px;color:var(--ui-accent)}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-footer{display:flex;flex-direction:column;gap:4px;padding:10px 12px;min-height:0;background:var(--ui-sidebar)!important;border-color:var(--ui-edge);overflow:hidden}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-streak{display:flex;align-items:center;gap:5px;width:100%;min-height:28px;padding:4px 10px;background:none;border:0;border-radius:9px;color:var(--ui-muted);font:500 11px/20px 'Instrument Sans',sans-serif;white-space:nowrap;overflow:hidden;text-align:left;cursor:pointer}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-streak>svg{width:16px;height:16px;flex:0 0 16px;color:var(--ui-warning)}
body.glow-dashboard .app-container .sidebar-v2 #streak-count{font-variant-numeric:tabular-nums;color:var(--ui-ink)}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-streak-arrow{margin-left:auto;opacity:.6}
body.glow-dashboard .app-container .sidebar-v2 .user-info{min-height:50px;padding:8px 5px;border:1px solid var(--ui-edge);border-radius:14px;background:var(--ui-surface);cursor:pointer}
body.glow-dashboard .app-container .sidebar-v2 .user-details{left:50px;width:180px}
body.glow-dashboard .app-container .sidebar-v2 .user-avatar{outline:1px solid var(--ui-edge);outline-offset:2px}
body.glow-dashboard .app-container .sidebar-v2 .user-name-row{font-size:12px;font-weight:550;line-height:18px;gap:6px;min-width:0}
body.glow-dashboard .app-container .sidebar-v2 .user-level{font-size:10px;line-height:15px;color:var(--ui-muted)}
body.glow-dashboard .app-container .sidebar-v2 .plan-badge{font-family:'Instrument Sans',sans-serif;font-size:9px;letter-spacing:.02em}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-footer .sidebar-nav-item:is(#theme-toggle-btn,#logout-btn){min-height:34px;padding:5px 10px;margin:0!important;font-size:12px;border-radius:10px;color:var(--ui-muted)!important}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-footer .sidebar-label{font-size:12px;line-height:22px}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-nav-item .nav-badge{font:500 10px/16px 'DM Mono',monospace;min-width:18px;min-height:18px;background:var(--ui-selected);color:var(--ui-accent);border:1px solid var(--ui-edge);border-radius:6px;box-shadow:none}
body.glow-dashboard .app-container .sidebar-v2 :is(.sidebar-compose,.sidebar-streak,.user-info):focus-visible{outline:2px solid var(--ui-accent);outline-offset:-3px}
body.glow-dashboard .app-container.sidebar-collapsed .sidebar-v2 :is(.sidebar-brand-copy,.sidebar-group-label,.sidebar-plan-copy,.sidebar-plan-arrow,.sidebar-compose-detail,.sidebar-streak-label,.sidebar-streak-arrow){opacity:0;pointer-events:none}
body.glow-dashboard .app-container.sidebar-collapsed .sidebar-v2 .sidebar-nav-item.active::after{opacity:0}
body.glow-dashboard .app-container.sidebar-collapsed .sidebar-v2 .sidebar-plan-link{background:transparent;border-color:transparent}
body.glow-dashboard .app-container.sidebar-collapsed .sidebar-v2 .user-info{background:transparent;border-color:transparent}
body.glow-dashboard .app-container.sidebar-collapsed .sidebar-v2 .sidebar-group-label{padding-left:11px}
body.glow-dashboard .app-container.sidebar-collapsed .sidebar-v2 .sidebar-streak{padding:4px 5px;gap:4px}
@media(hover:hover){body.glow-dashboard .app-container .sidebar-v2 .sidebar-compose:hover{background:var(--ui-primary-hover)}body.glow-dashboard .app-container .sidebar-v2 .sidebar-plan-link:hover{border-color:var(--ui-selected-edge);background:var(--ui-selected)}body.glow-dashboard .app-container .sidebar-v2 :is(.sidebar-streak,.user-info):hover{background:var(--ui-hover)}}
@media(prefers-reduced-motion:no-preference){body.glow-dashboard .app-container.shell-motion-ready .sidebar-v2 :is(.sidebar-brand-copy,.sidebar-group-label,.sidebar-plan-copy,.sidebar-plan-arrow,.sidebar-compose-detail,.sidebar-streak-label,.sidebar-streak-arrow){transition:opacity 140ms ease-out}body.glow-dashboard .app-container .sidebar-v2 :is(.sidebar-compose,.sidebar-streak,.user-info){transition:background-color 120ms ease-out,border-color 120ms ease-out}body.glow-dashboard .app-container .sidebar-v2 .sidebar-compose:active{transform:scale(.96)}}
@media(prefers-reduced-motion:reduce){body.glow-dashboard .app-container .sidebar-v2 *{transition:none!important;animation:none!important}}
@media(prefers-reduced-motion:no-preference){body.glow-dashboard .app-container .sidebar-v2 .sidebar-compose{transition:background-color 120ms ease-out,transform 150ms ease-out}}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-streak{position:relative}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-streak>svg{width:22px;height:22px;flex:0 0 22px;padding:3px}
body.glow-dashboard .app-container.sidebar-collapsed .sidebar-v2 .sidebar-streak{padding:4px 10px}
body.glow-dashboard .app-container.sidebar-collapsed .sidebar-v2 #streak-count{position:absolute;top:0;right:0;background:var(--ui-surface);border:1px solid var(--ui-edge);padding:0 2px;border-radius:5px;font:500 9px/12px 'DM Mono',monospace}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-nav-item:is([data-view="stories"],[data-view="friends"],[data-view="duels"],.sidebar-plan-link).active::after{display:none}
body.glow-dashboard .app-container .sidebar-v2 .sidebar-nav-item .notif-badge{font:500 10px/16px 'DM Mono',monospace;min-width:18px;min-height:18px;margin-left:auto;background:var(--ui-selected);color:var(--ui-accent);border:1px solid var(--ui-edge);border-radius:6px;box-shadow:none}
