.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--nav); color: #c9d2e2; z-index: 20; display: flex; flex-direction: column; overflow: hidden; }
.sidebar::before { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; background: rgba(200,117,61,.13); filter: blur(4px); left: -110px; top: -130px; pointer-events: none; }
.brand { height: 82px; display: flex; align-items: center; gap: 12px; padding: 0 23px; color: #fff; position: relative; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-family: var(--display); font-size: 18px; color: var(--ink); }
.brand-name { font-family: var(--display); font-size: 20px; letter-spacing: .12em; }
.brand-sub { font-size: 10px; color: #8190aa; letter-spacing: .12em; margin-top: -2px; }
.side-nav { padding: 0 12px; flex: 1; overflow: auto; }
.nav-label { padding: 7px 11px; color: #61718e; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 0 12px; margin: 3px 0; border-radius: 8px; color: #9ba9bf; position: relative; transition: .16s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-link.active { color: #fff; background: var(--nav-2); box-shadow: inset 3px 0 var(--copper); }
.nav-link.active .icon { color: #f2ad7d; }
.nav-link .icon { width: 18px; height: 18px; }
.nav-link span:last-child { flex: 1; }
.nav-badge { background: #c65944; color: #fff; min-width: 20px; height: 20px; border-radius: 10px; font-size: 10px; display: grid; place-items: center; }

.main-shell { margin-left: var(--sidebar); min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 15; height: var(--topbar); display: flex; align-items: center; gap: 14px; padding: 0 28px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.mobile-toggle { display: none; background: transparent; color: var(--ink); padding: 7px; }
.breadcrumb { color: var(--subtle); font-size: 12px; display: flex; align-items: center; gap: 7px; min-width: 0; }
.breadcrumb strong { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-spacer { flex: 1; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; position: relative; }
.icon-button:hover { background: var(--paper); color: var(--ink); }
.icon-button .icon { width: 19px; height: 19px; }
.user-menu { position: relative; }
.user-button { display: flex; align-items: center; gap: 9px; padding: 4px 7px 4px 4px; border-radius: 10px; background: transparent; cursor: pointer; color: var(--ink); }
.user-button:hover { background: var(--paper); }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #e7ecf7; color: #2e4778; font-family: var(--display); font-weight: 700; }
.avatar.lg { width: 58px; height: 58px; border-radius: 15px; font-size: 23px; }
.user-meta { text-align: left; line-height: 1.25; }
.user-meta strong { display: block; font-size: 12px; }
.user-meta small { color: var(--subtle); font-size: 10px; }
.dropdown { position: absolute; right: 0; top: 45px; width: 240px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); padding: 8px; display: none; z-index: 40; }
.dropdown.open { display: block; }
.dropdown-label { padding: 7px 10px 5px; color: var(--subtle); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.dropdown-item { width: 100%; min-height: 38px; border-radius: 7px; display: flex; align-items: center; gap: 9px; padding: 6px 10px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font-size: 12px; }
.dropdown-item:hover { background: var(--paper); }
.dropdown-item.active { background: var(--blue-soft); color: var(--blue); }
.dropdown-item > .icon { width: 16px; height: 16px; }
.dropdown-item.role-option > span:nth-child(2) { flex: 1; }
.dropdown-item.role-option strong, .dropdown-item.role-option small { display: block; }
.dropdown-item.role-option small { color: var(--muted); font-size: 10px; }
.dropdown-sep { height: 1px; background: var(--line); margin: 6px 0; }
.page { padding: 26px 30px 52px; max-width: 1600px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.page-head-main { flex: 1; min-width: 0; }
.eyebrow { color: var(--copper); font-size: 10px; font-family: var(--mono); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 5px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 4px; font-family: var(--display); font-size: 28px; line-height: 1.25; letter-spacing: .02em; }
.page-subtitle { margin: 0; color: var(--muted); font-size: 13px; }
.page-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
