.app-shell.rd-shell,.app-shell.rd-shell .main{background:var(--rd-bg)}.app-shell.rd-sb .sidebar{background:var(--rd-card)!important;border-right-color:var(--rd-line)!important}.app-shell.rd-sb .sidebar .mk-rail{background:var(--rd-card);border-right-color:var(--rd-line)}.app-shell.rd-sb .sidebar .mk-nav[aria-current=page],.app-shell.rd-sb .sidebar .mk-rail-btn[aria-current=page]{background:var(--rd-accent-bg);color:var(--rd-accent);font-weight:700}.app-shell.rd-sb .sidebar .mk-nav:hover,.app-shell.rd-sb .sidebar .mk-rail-btn:hover{background:var(--rd-press);color:var(--rd-ink)}.app-shell.rd-sb .sidebar .mk-nav[aria-current=page]:hover,.app-shell.rd-sb .sidebar .mk-rail-btn[aria-current=page]:hover{background:var(--rd-accent-bg);color:var(--rd-accent)}.app-shell.rd-sb .sidebar .mk-nav-sub[aria-current=page],.app-shell.rd-sb .sidebar .mk-nav-sub[aria-current=page]:hover{background:var(--rd-press);color:var(--rd-ink);font-weight:600}.app-shell.rd-sb .sidebar ::-webkit-scrollbar{width:6px}.app-shell.rd-sb .sidebar ::-webkit-scrollbar-thumb{background:var(--rd-line2);border-radius:3px}.app-shell.rd-sb .sidebar .mk-nav:not(.mk-nav-sub){box-sizing:border-box;min-height:36px;padding-top:0;padding-bottom:0}.app-shell.rd-sb .sidebar .mk-nav-group{font-size:var(--text-xs);color:var(--text-muted);letter-spacing:.04em;margin-top:14px;padding:0 10px 2px}.app-shell.rd-sb .sidebar .mk-recent-toggle{width:22px;height:22px;color:var(--text-muted);cursor:pointer;background:none;border:0;border-radius:6px;justify-content:center;align-items:center;margin-right:-4px;padding:0;display:inline-flex}.app-shell.rd-sb .sidebar .mk-recent-toggle:hover{background:var(--rd-press);color:var(--rd-ink)}.app-shell.rd-sb .sidebar .mk-rail-sep{background:var(--rd-line);width:20px;height:1px;margin:4px 0}.app-shell.rd-shell .rd-me-head,.app-shell.rd-shell .rd-tabbar{display:none}@media (max-width:1024px){.app-shell.rd-shell{--titlebar-height:52px;--rd-tab-h:calc(56px + env(safe-area-inset-bottom, 0px))}.app-shell.rd-shell>.titlebar.rd-topbar{background:var(--rd-card);border-bottom:1px solid var(--rd-line);padding:0 6px 0 8px}.app-shell.rd-shell .rd-topbar .tb-menu-btn{border-radius:var(--rd-r-btn);width:44px;height:44px;color:var(--rd-mute);margin-right:0}.app-shell.rd-shell .rd-topbar .tb-left{min-height:44px;margin-left:2px}.app-shell.rd-shell .rd-topbar-sp{flex:1}.app-shell.rd-shell .rd-topbar-btn{border-radius:var(--rd-r-btn);width:44px;height:44px;color:var(--rd-mute);justify-content:center;align-items:center;text-decoration:none;display:inline-flex}.app-shell.rd-shell .rd-topbar-btn:active{background:var(--rd-press)}.app-shell.rd-shell .rd-tabbar{z-index:42;box-sizing:border-box;padding:4px 8px env(safe-area-inset-bottom,0);height:var(--rd-tab-h);background:var(--rd-card);border-top:1px solid var(--rd-line);display:flex;position:fixed;bottom:0;left:0;right:0}.app-shell.rd-shell .rd-tab{border-radius:var(--rd-r-sm);min-width:0;min-height:48px;color:var(--rd-faint);flex-direction:column;flex:1;justify-content:center;align-items:center;font-size:12px;line-height:1.2;text-decoration:none;display:flex}.app-shell.rd-shell .rd-tab span{margin-top:2px}.app-shell.rd-shell .rd-tab[aria-current=page]{color:var(--rd-accent);font-weight:700}.app-shell.rd-shell .rd-tab:active{background:var(--rd-press)}.app-shell.rd-shell .main{padding-bottom:var(--rd-tab-h)}.app-shell.rd-shell .prd-actbar{bottom:var(--rd-tab-h);padding-bottom:0}.app-shell.rd-shell .chat-root{height:calc(100vh - var(--titlebar-height) - var(--rd-tab-h))}.app-shell.rd-shell .sidebar{z-index:46}}@media (max-width:767px){.app-shell.rd-shell{--titlebar-height:env(safe-area-inset-top,0px)}.app-shell.rd-shell>.titlebar.rd-topbar{display:none}.app-shell.rd-shell .rd-me-head{padding:16px 16px 4px;display:block}.app-shell.rd-shell .rd-me-logo{line-height:0;display:inline-block}.app-shell.rd-shell .rd-me-links{margin-top:14px;display:flex}.app-shell.rd-shell .rd-me-link{border:1px solid var(--rd-line);border-radius:var(--rd-r-btn);background:var(--rd-card);min-width:0;min-height:64px;color:var(--rd-ink);flex-direction:column;flex:1;justify-content:center;align-items:center;margin-right:8px;font-size:13px;text-decoration:none;display:flex}.app-shell.rd-shell .rd-me-link:last-child{margin-right:0}.app-shell.rd-shell .rd-me-link span{margin-top:4px}.app-shell.rd-shell .rd-me-link:active{background:var(--rd-press)}}.app-shell.v4-shell{--titlebar-height:0px;background:var(--bg-app);flex-direction:row;min-height:100vh;display:flex}.app-shell.v4-shell>.main{flex:auto;min-width:0}.v4-rail{box-sizing:border-box;background:var(--bg-surface);border-right:1px solid var(--border-subtle);z-index:30;flex-direction:column;flex:none;align-items:center;width:68px;height:100vh;padding:14px 0;display:flex;position:-webkit-sticky;position:sticky;top:0}.v4-rail-logo{border-bottom:2px solid var(--accent-500);margin-bottom:14px;padding-bottom:9px;display:block}.v4-rail-list{width:100%}.v4-rail-foot,.v4-rail-list{flex-direction:column;align-items:center;display:flex}.v4-rail-foot{margin-top:auto}.v4-rail-item{width:48px;height:46px;color:var(--text-muted);border-radius:10px;flex-direction:column;justify-content:center;align-items:center;margin-bottom:6px;font-size:11px;text-decoration:none;transition:background .15s,color .15s;display:flex}.v4-rail-item span{margin-top:3px;line-height:1.1}.v4-rail-item:hover{background:var(--bg-hover);color:var(--text-primary)}.v4-rail-item[aria-current=page]{background:var(--accent-100);color:var(--accent-500);font-weight:600}.v4-rail-item:focus-visible{outline:2px solid var(--accent-500);outline-offset:1px}.v4-tab:focus-visible{outline:2px solid var(--accent-500);outline-offset:1px}.v4-tabbar,.v4-topbar{display:none}@media (max-width:767px){.app-shell.v4-shell{padding-bottom:calc(56px + env(safe-area-inset-bottom, 0px));display:block}.app-shell.v4-shell.v4-nobar{padding-bottom:env(safe-area-inset-bottom,0)}.v4-rail{display:none}.v4-topbar{box-sizing:border-box;background:var(--bg-surface);border-bottom:1px solid var(--border-subtle);z-index:40;justify-content:space-between;height:48px;padding:0 16px;position:-webkit-sticky;position:sticky;top:0}.v4-topbar,.v4-topbar-brand,.v4-topbar-me{align-items:center;display:flex}.v4-topbar-me{width:44px;height:44px;color:var(--text-muted);justify-content:center;margin-right:-10px}.v4-tabbar{height:calc(56px + env(safe-area-inset-bottom, 0px));padding-bottom:env(safe-area-inset-bottom,0);box-sizing:border-box;background:var(--bg-surface);border-top:1px solid var(--border-subtle);z-index:50;grid-template-columns:repeat(4,1fr);display:grid;position:fixed;bottom:0;left:0;right:0}.v4-tabbar[data-tab-count="3"]{grid-template-columns:repeat(3,1fr)}.v4-tabbar[data-tab-count="2"]{grid-template-columns:repeat(2,1fr)}.v4-tab{color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;font-size:11px;text-decoration:none;display:flex}.v4-tab span{margin-top:3px;line-height:1.1}.v4-tab[aria-current=page]{color:var(--accent-500);font-weight:600}}