.app-shell { min-height: 100vh; display: flex; }
.sider { width: var(--sider-width); background: var(--navy-900); color: #b0b9c6; flex: none; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 40; }
.brand { height: 66px; padding: 15px 18px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgb(255 255 255 / 6%); }
.brand-mark { width: 34px; height: 34px; border-radius: var(--radius-lg); background: var(--blue-600); color: white; display: grid; place-items: center; font-size: 16px; font-weight: 700; }
.brand-name { color: #e2e8f0; font-size: 13px; font-weight: 600; line-height: 1.35; }
.brand-version { color: #7c8799; font-size: 11px; margin-top: 1px; }
.user-block { padding: 11px 18px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgb(255 255 255 / 6%); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-700); color: white; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.user-name { color: #e2e8f0; font-size: 13px; font-weight: 500; }
.user-role { display: inline-flex; margin-top: 2px; color: #a0aec0; font-size: 11px; padding: 1px 7px; background: rgb(255 255 255 / 9%); border-radius: 10px; }
.nav { flex: 1; padding: 7px 0 18px; overflow-y: auto; }
.nav-group { padding: 8px 18px 4px; color: #5a6a80; font-size: 11px; letter-spacing: .5px; }
.nav-item { width: calc(100% - 16px); min-height: 36px; margin: 1px 8px; padding: 8px 12px; border: 0; border-radius: var(--radius); background: transparent; color: #b0b9c6; display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.nav-item:hover { background: rgb(255 255 255 / 5%); color: #e2e8f0; }
.nav-item.active { background: var(--blue-600); color: white; }
.nav-icon { width: 18px; color: currentColor; font-size: 14px; text-align: center; }
.nav-label { flex: 1; font-size: 13px; }
.nav-badge { min-width: 19px; height: 18px; padding: 0 5px; border-radius: 9px; background: #dc2626; color: white; font-size: 10px; display: grid; place-items: center; }
.workspace { min-width: 0; width: calc(100% - var(--sider-width)); margin-left: var(--sider-width); }
.header { height: var(--header-height); padding: 0 24px; background: white; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30; }
.header-left { min-width: 0; display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 32px; height: 32px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: white; cursor: pointer; }
.header-title { font-size: 15px; font-weight: 600; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-switch { height: 30px; padding: 0 10px; border: 1px solid var(--gray-300); border-radius: var(--radius); color: var(--gray-700); background: white; font-size: 12px; }
.company-context { min-height: 28px; padding: 5px 10px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--gray-50); color: var(--gray-600); font-size: 12px; white-space: nowrap; }
.acting-context { min-height: 30px; padding: 3px 4px 3px 9px; border: 1px solid var(--blue-200); border-radius: var(--radius); background: var(--blue-50); color: var(--blue-800); display: flex; align-items: center; gap: 6px; font-size: 11px; white-space: nowrap; }
.acting-context select { height: 24px; border: 0; background: white; color: var(--gray-700); font-size: 11px; }
.review-context { min-height: 30px; padding: 3px 4px 3px 9px; border: 1px solid #f3c86a; border-radius: var(--radius); background: #fffbeb; color: #854d0e; display: flex; align-items: center; gap: 7px; font-size: 11px; white-space: nowrap; }
.review-context select { width: auto; max-width: 148px; height: 24px; border: 0; background: white; color: var(--gray-700); font-size: 11px; outline: none; }
.review-context a { padding: 3px 6px; color: var(--blue-700); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-link { border: 0; background: transparent; color: var(--gray-500); cursor: pointer; font-size: 13px; padding: 6px; }
.page-content { width: 100%; min-height: calc(100vh - var(--header-height)); padding: 20px 24px 40px; }
.content-inner { width: min(100%, var(--content-max)); margin: 0 auto; }
.mobile-shade { display: none; position: fixed; inset: 0; background: rgb(15 23 42 / 45%); z-index: 35; }
