.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar-w); padding: 22px 16px; background: rgba(8,18,46,.97); border-right: 1px solid rgba(36,55,114,.72); display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; height: 36px; font-size: 18px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { width: 30px; height: 30px; position: relative; flex: 0 0 auto; transform: rotate(-10deg); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; border: 3px solid var(--cyan); border-radius: 7px 12px 7px 12px; box-shadow: 0 0 12px rgba(0,229,229,.38); }
.brand-mark::before { width: 15px; height: 22px; left: 2px; top: 3px; border-right-color: var(--purple); }
.brand-mark::after { width: 12px; height: 17px; right: 1px; top: 6px; border-left-color: var(--magenta); }
.brand span { color: var(--cyan); }
.side-label { margin: 28px 10px 9px; color: #63729f; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.side-nav { display: grid; gap: 5px; }
.side-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--muted); font-weight: 600; transition: .2s ease; }
.side-link svg { width: 18px; }
.side-link:hover { color: white; background: rgba(113,39,255,.12); transform: translateX(2px); }
.side-link.active { color: white; background: linear-gradient(110deg, var(--purple), #8e35e8); box-shadow: 0 8px 24px rgba(113,39,255,.28); }
.sidebar-promo { margin-top: auto; padding: 17px; overflow: hidden; position: relative; border: 1px solid rgba(199,53,255,.32); border-radius: 16px; background: linear-gradient(145deg, rgba(113,39,255,.34), rgba(21,34,77,.8)); }
.sidebar-promo::after { content: "\265B"; position: absolute; right: -3px; bottom: -20px; color: rgba(0,229,229,.13); font-size: 86px; transform: rotate(16deg); }
.sidebar-promo strong { display: block; font-family: Poppins; font-size: 15px; }
.sidebar-promo p { position: relative; z-index: 1; margin: 4px 0 12px; color: #c8d0e7; font-size: 11px; }
.topbar { position: fixed; z-index: 30; top: 0; left: var(--sidebar-w); right: 0; height: var(--header-h); display: flex; align-items: center; gap: 18px; padding: 0 22px; background: rgba(5,11,29,.88); border-bottom: 1px solid rgba(36,55,114,.55); backdrop-filter: blur(16px); }
.header-search { position: relative; width: min(380px, 31vw); }
.header-search svg { position: absolute; left: 15px; top: 50%; width: 18px; color: var(--muted); transform: translateY(-50%); }
.header-search input { width: 100%; height: 42px; padding: 0 16px 0 43px; color: white; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.header-search input::placeholder { color: #7180aa; }
.top-links { margin-left: auto; display: flex; gap: 5px; align-items: center; }
.top-link { padding: 9px 10px; color: var(--muted); font-size: 12px; font-weight: 600; border-radius: 8px; }
.top-link:hover { color: white; background: var(--surface); }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; position: relative; color: var(--muted); border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; }
.icon-btn:hover { color: white; border-color: #4a61af; }
.icon-btn svg { width: 18px; }
.notify-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; background: var(--cyan); border: 2px solid var(--surface); border-radius: 50%; }
.user-chip { display: flex; align-items: center; gap: 9px; min-width: 150px; padding-left: 7px; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; background: linear-gradient(145deg, var(--purple), var(--cyan)); border-radius: 12px; font-weight: 800; }
.user-chip strong, .user-chip small { display: block; line-height: 1.25; }
.user-chip small { color: var(--cyan); font-size: 10px; }
.app-main { margin-left: var(--sidebar-w); padding-top: var(--header-h); }
.desktop-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--right-w); gap: 20px; padding: 20px 20px 50px; }
.desktop-grid.no-right { grid-template-columns: minmax(0, 1fr); }
.content-column { min-width: 0; }
.right-panel { display: grid; align-content: start; gap: 14px; }
.page-width { max-width: 1500px; margin: 0 auto; }
.footer { margin-top: 44px; padding: 30px 2px 12px; border-top: 1px solid var(--border); color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.bottom-nav, .mobile-header, .drawer, .drawer-backdrop { display: none; }
