:root{--sidebar-width:248px;--nav-dark:#981b25;--nav-accent:#ffffff}
body.app-shell{min-width:0;margin:0;padding-left:var(--sidebar-width);background:#f6f5f5;transition:padding-left .18s ease;container-type:inline-size}
.app-shell [hidden]{display:none!important}.app-sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);z-index:50;background:var(--nav-dark);color:#ffffff;display:flex;flex-direction:column;border-right:1px solid #831720;transition:transform .18s ease;overflow-y:auto;overscroll-behavior:contain}.company-brand{margin:20px 16px 17px;padding:13px 10px 11px;background:white;border-radius:8px;display:grid;place-items:center;gap:8px}.company-brand img,.login-brand img{display:block;width:100%;height:65px;object-fit:contain}.company-brand small,.login-brand small{color:#7a3940;font-size:10px;font-weight:700;letter-spacing:.13em}.app-nav{padding:0 12px;flex:1}.nav-label{padding:15px 11px 8px;color:#f3cbd0;font-size:10px;letter-spacing:.12em;font-weight:700}.nav-item,.sidebar-bottom .session-actions button{width:100%;display:flex;align-items:center;gap:11px;text-align:left;background:transparent;color:#fff5f5;border:1px solid transparent;border-radius:7px;padding:12px 10px;margin:2px 0;font-family:inherit;font-size:13px;font-weight:500;line-height:1.35;text-decoration:none;cursor:pointer}.nav-symbol{width:22px;text-align:center;font-size:19px;color:#f2c5ca;flex:none}.nav-item:hover,.sidebar-bottom .session-actions button:hover{background:#82141e;color:white}.nav-item[aria-current=page]{background:#751019;border-color:#bc535c;color:#fff;box-shadow:inset 3px 0 var(--nav-accent)}.nav-item[aria-current=page] .nav-symbol{color:var(--nav-accent)}.sidebar-bottom{border-top:1px solid #bc535c;padding:0 12px 14px;margin-top:12px}.account-caption{padding:4px 11px 10px;color:#fff;overflow-wrap:anywhere;font-size:12px}.sidebar-bottom .session-actions{display:block;margin:0}.sidebar-bottom .session-actions button{font-weight:500;padding:10px 11px}.sidebar-version{padding:10px 11px 0;color:#f1c8cc;font-size:11px}.app-shell .app-topbar{position:sticky;top:0;z-index:40;background:white;color:#292526;border-bottom:1px solid #e5dddd;min-height:68px;height:auto;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:14px;padding:12px 20px;box-shadow:0 2px 6px #39212608}.page-title{flex:1;min-width:0}.page-title small{display:block;font-size:10px;color:#73676a;letter-spacing:.12em;font-weight:700}.page-title strong{display:block;font-size:19px;font-weight:650;margin-top:3px}.header-version{color:#73676a;font-size:11px;white-space:nowrap}#menuToggle{display:grid;place-items:center;width:40px;height:40px;flex:none;background:#f9eeee;border:1px solid #e4c6c9;color:#a71926;border-radius:7px}#menuToggle:hover{background:#f8dfe2}#menuToggle:focus-visible,.nav-item:focus-visible,.sidebar-bottom button:focus-visible{outline:2px solid #b51f2b;outline-offset:2px}.app-shell.nav-collapsed{padding-left:0}.nav-collapsed .app-sidebar{transform:translateX(-100%);visibility:hidden}.nav-backdrop{display:none}.app-shell .workspace{grid-template-columns:minmax(215px,22%) minmax(0,1fr) minmax(250px,25%);min-height:calc(100vh - 138px)}.app-shell .workspace>*{min-width:0}.login-brand{display:grid;gap:12px;justify-items:center;margin-bottom:24px}.login-brand img{height:80px;max-width:290px}
@container (max-width:1150px){.app-shell .workspace{grid-template-columns:minmax(215px,26%) minmax(0,1fr)}.app-shell .commercial{grid-column:1/-1}}
@container (max-width:700px){.app-shell .workspace{grid-template-columns:minmax(0,1fr);padding:8px}.app-shell .commercial{grid-column:auto}.app-shell .modulelist{max-height:300px}.app-shell .sequencebar{flex-wrap:wrap}.app-shell .viewerhead{flex-wrap:wrap}.app-shell .viewport{min-height:310px}}
@media(max-width:800px){body.app-shell{padding-left:0}.app-shell .app-sidebar{z-index:70;box-shadow:0 8px 32px #0005}.app-shell .nav-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:60;background:#28141980;border:0;border-radius:0}.app-shell .app-topbar{padding:10px 12px}.page-title strong{font-size:17px}}
@media(prefers-reduced-motion:reduce){body.app-shell,.app-sidebar{transition:none}}
.nav-symbol{display:grid;place-items:center}.app-shell .editorhead,.app-shell .viewerhead,.app-shell .sequencebar,.app-shell .sequenceactions{flex-wrap:wrap}.app-shell .workspace .stat strong{font-size:clamp(18px,2vw,27px)}
@container (max-width:800px){.app-shell:has(#mod) main{grid-template-columns:minmax(0,1fr)}.app-shell .users-panel{padding:14px}}

/* White corporate header and red navigation. */
.app-shell .app-topbar{border-top:3px solid var(--corporate-red);min-height:68px}
.app-sidebar .nav-item:focus-visible,.app-sidebar button:focus-visible{outline-color:#fff}
.session-card{border-top:4px solid var(--corporate-red)}
