/* RAYON brand palette */
:root {
    --brand-orange: #f46b22;
    --brand-orange-hover: #dc5516;
    --brand-purple: #843e96;
    --brand-green: #59a83a;
    --brand-ink: #20213c;
    --brand-muted: #737b94;
    --brand-border: #e9eaf1;
    --brand-surface: #ffffff;
    --brand-background: #f8f9fc;
}

body {
    margin:0;
    background:#f4f7fb;
    color:#1d2b42;
    font-family:system-ui,-apple-system,'Segoe UI',sans-serif}

.cabinet-shell {
    display:flex;
    min-height:100dvh}
.cabinet-sidebar {
    width:252px;
    flex:0 0 252px;
    background:#14233e;
    color:#b8c7dd;
    display:flex;
    flex-direction:column;
    position:sticky;
    top:0;
    height:100dvh;
    padding:26px 15px;
    z-index:40}
.cabinet-brand {
    display:flex;
    align-items:center;
    gap:12px;
    color:#fff;
    text-decoration:none;
    font-size:18px;
    font-weight:750;
    padding:0 11px 38px}
.brand-mark {
    width:38px;
    height:38px;
    border-radius:11px;
    background:#3267df;
    display:grid;
    place-items:center}
.sidebar-caption {
    font-size:10px;
    font-weight:700;
    letter-spacing:1.3px;
    color:#7389a8;
    padding:0 13px 13px}
.cabinet-nav {
    display:grid;
    gap:6px}
.cabinet-link {
    width:100%;
    display:flex;
    align-items:center;
    gap:14px;
    padding:13px 14px;
    border:0;
    border-radius:11px;
    color:#b8c7dd;
    background:transparent;
    text-decoration:none;
    text-align:left;
    font-size:14px;
    font-weight:550;
    transition:background .2s,color .2s}
.cabinet-link:hover {
    background:#243a5d;
    color:#fff}
.cabinet-link.active {
    background:#304c78;
    color:#fff}
.nav-symbol {
    font-size:20px;
    width:23px;
    text-align:center;
    line-height:1}
.sidebar-bottom {
    margin-top:auto;
    border-top:1px solid #2d405d;
    padding-top:16px}
.sidebar-bottom form {
    margin:0}
.cabinet-workspace {
    flex:1;
    min-width:0}
.cabinet-topbar {
    height:68px;
    background:#fff;
    border-bottom:1px solid #e6ecf3;
    display:flex;
    align-items:center;
    gap:16px;
    padding:0 30px}
.topbar-title {
    font-weight:700}
.topbar-avatar {
    margin-left:auto;
    display:grid;
    place-items:center;
    width:34px;
    height:34px;
    border-radius:50%;
    background:#eaf1ff;
    color:#3267df}
.sidebar-toggle {
    display:none;
    background:transparent;
    border:0;
    font-size:24px;
    color:#223957}
.cabinet-main {
    padding:0;
    min-width:0}
.cabinet-overlay {
    display:none}
@media(max-width:850px) {
    .cabinet-sidebar {
        position:fixed;
        left:0;
        transform:translateX(-100%);
        transition:transform .25s}
    .cabinet-sidebar.is-open {
        transform:translateX(0)}
    .cabinet-overlay.is-open {
        display:block;
        position:fixed;
        inset:0;
        background:rgba(9,20,40,.5);
        z-index:39}
    .sidebar-toggle {
        display:block}
    .cabinet-topbar {
        padding:0 18px}
}


/* matches _Layout.cshtml */
body { background: var(--brand-background); color: var(--brand-ink); }
.cabinet-shell { background: var(--brand-background); }
.cabinet-sidebar {
    background: #fff;
    color: #596079;
    border-right: 1px solid var(--brand-border);
    box-shadow: 3px 0 20px rgba(40, 30, 70, .025);
}
.cabinet-brand { color: var(--brand-ink); padding-bottom: 30px; }
.cabinet-brand:hover { color: var(--brand-orange); }
.brand-mark {
    width: 72px; height: 72px;
    background: #fff7f1;
    border-radius: 50%;
    color: var(--brand-orange);
    overflow: hidden;
    flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sidebar-caption { color: #9395a5; }
.cabinet-link { color: #505a76; font-weight: 600; }
.cabinet-link:hover { background: #fff0e6; color: var(--brand-orange); }
.cabinet-link.active, .cabinet-link[aria-current="page"] {
    background: linear-gradient(120deg, #ff680f, #ff8943);
    color: #fff;
    box-shadow: 0 5px 14px rgba(244, 107, 34, .17);
}
.cabinet-link.active:hover { color: #fff; }
.cabinet-link:focus-visible, .sidebar-toggle:focus-visible {
    outline: 3px solid rgba(244, 107, 34, .45);
    outline-offset: 2px;
}
.sidebar-bottom { border-top-color: var(--brand-border); }
.logout-link:hover { color: #cb4239; background: #fff0ee; }
.cabinet-topbar { background: #fff; border-bottom-color: var(--brand-border); }
.topbar-title { color: var(--brand-ink); }
.topbar-avatar { background: #f0e8f8; color: var(--brand-purple); }
.sidebar-toggle { color: var(--brand-ink); }
.cabinet-main { background: var(--brand-background); }
@media (max-width: 850px) {
    .cabinet-sidebar { box-shadow: 10px 0 35px rgba(40, 30, 70, .12); }
    .cabinet-overlay.is-open { background: rgba(30, 23, 50, .5); }
}
@media (max-width: 420px) {
    .cabinet-topbar { padding: 0 14px; }
    .cabinet-brand { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .cabinet-link, .cabinet-sidebar { transition: none; }
}

.nav-symbol { width: 23px; height: 23px; flex: 0 0 23px; }
.cabinet-topbar { min-height: 68px; height: auto; padding-top: 14px; padding-bottom: 14px; }
.topbar-title, .sidebar-toggle { flex-shrink: 0; }
.topbar-user { margin-left: auto; min-width: 0; max-width: 55%; color: var(--brand-ink); font-size: 14px; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 480px) {
    .cabinet-topbar { gap: 12px; }
    .topbar-title { font-size: 13px; }
    .topbar-user { font-size: 12px; }
}