/* Shared portal design. Scoped to portal shells; editors and OMS retain their own UI. */
body.app-shell.premium-shell{--ps-bg:var(--page-bg,#f3f6fb);--ps-card:var(--theme-card-solid,#fff);--ps-input:var(--theme-input-solid,#f8fafd);--ps-text:var(--text-main,#172b46);--ps-muted:var(--text-muted,#718198);--ps-accent:var(--theme-primary-text,#376bd6);--ps-line:color-mix(in srgb,var(--ps-text) 11%,transparent);--ps-soft:color-mix(in srgb,var(--ps-accent) 8%,var(--ps-card));font-family:'Segoe UI','Malgun Gothic',sans-serif!important;font-size:14px;background:var(--ps-bg)!important;color:var(--ps-text)!important;letter-spacing:-.015em}
body.app-shell.premium-shell::before,body.app-shell.premium-shell::after{display:none!important}
body.app-shell.premium-shell .sidebar{background:var(--ps-card)!important;border-right:1px solid var(--ps-line)!important;box-shadow:none!important;gap:0}
body.app-shell.premium-shell .sidebar::after{display:none!important}
body.app-shell.premium-shell .sidebar .logo-area{padding:24px 22px!important;border-bottom:1px solid var(--ps-line)!important;background:transparent!important;min-height:87px}
body.app-shell.premium-shell .logo-copy strong{letter-spacing:.04em!important;color:var(--ps-text)!important}
body.app-shell.premium-shell .sidebar-meta{background:var(--ps-soft)!important;border:1px solid var(--ps-line)!important;border-radius:12px!important;margin:16px 16px 6px!important;padding:13px 15px!important;box-shadow:none!important}
body.app-shell.premium-shell .sidebar-meta .meta-chip{background:var(--ps-input)!important;border-color:var(--ps-line)!important;color:var(--ps-accent)!important;padding:6px 9px!important;font-size:10px!important}
body.app-shell.premium-shell .menu-list{padding:12px!important;scrollbar-width:thin;scrollbar-color:var(--ps-line) transparent}
body.app-shell.premium-shell .menu-list li{margin-bottom:4px!important}
body.app-shell.premium-shell .menu-item{padding:12px 14px!important;min-height:43px;gap:11px!important;font-size:12px!important;font-weight:600!important;border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;color:var(--ps-muted)!important;box-shadow:none!important;transform:none!important;transition:background .12s,color .12s!important}
body.app-shell.premium-shell .menu-item i{font-size:14px!important;color:var(--ps-muted)!important;text-shadow:none!important;opacity:.9}
body.app-shell.premium-shell .menu-item.active,body.app-shell.premium-shell .menu-item:hover{background:var(--ps-soft)!important;color:var(--ps-accent)!important;border-color:color-mix(in srgb,var(--ps-accent) 16%,transparent)!important}
body.app-shell.premium-shell .menu-item.active{font-weight:800!important}
body.app-shell.premium-shell .menu-item.active i{color:var(--ps-accent)!important}
body.app-shell.premium-shell .top-header{background:var(--ps-card)!important;border-bottom:1px solid var(--ps-line)!important;padding:18px 28px!important;min-height:90px!important;box-shadow:none!important;gap:18px!important}
body.app-shell.premium-shell .header-eyebrow,body.app-shell.premium-shell .shell-page-kicker{font-size:9px!important;letter-spacing:.15em!important;color:var(--ps-muted)!important;font-weight:800!important;text-transform:uppercase}
body.app-shell.premium-shell .header-title,body.app-shell.premium-shell .shell-page-title{font-size:21px!important;letter-spacing:-.05em!important;font-weight:800!important;color:var(--ps-text)!important}
body.app-shell.premium-shell .header-sub,body.app-shell.premium-shell .shell-page-sub{font-size:11px!important;color:var(--ps-muted)!important;line-height:1.6}
body.app-shell.premium-shell .icon-badge{background:var(--ps-soft)!important;border:1px solid var(--ps-line)!important;border-radius:10px!important;box-shadow:none!important}
body.app-shell.premium-shell .header-chip,body.app-shell.premium-shell .shell-user-chip{background:var(--ps-input)!important;border:1px solid var(--ps-line)!important;color:var(--ps-muted)!important;font-size:10px!important;padding:8px 10px!important;border-radius:9px!important;box-shadow:none!important}
body.app-shell.premium-shell .header-actions,body.app-shell.premium-shell .shell-header-right{flex-wrap:wrap;gap:8px!important}
body.app-shell.premium-shell .content-area{padding:clamp(16px,2vw,30px)!important;background:var(--ps-bg)!important;scrollbar-width:thin;scrollbar-color:var(--ps-line) transparent}
body.app-shell.premium-shell .page-shell{max-width:1600px!important;margin:0 auto!important;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important;min-width:0}
body.app-shell.premium-shell :is(.card,.card-cyber,.sys-card,.jv-box,.hud-pro-panel,.hud-pro-card,.ffmpeg-card,.ffmpeg-status-box){background:var(--ps-card)!important;border:1px solid var(--ps-line)!important;border-radius:16px!important;box-shadow:0 5px 20px #00000004!important;color:var(--ps-text)!important;backdrop-filter:none!important}
body.app-shell.premium-shell :is(.card,.card-cyber,.sys-card){padding:24px!important}
body.app-shell.premium-shell :is(.card-title,.sys-title,.hud-pro-panel-title,.job-topline h2){color:var(--ps-text)!important;letter-spacing:-.035em!important;font-size:17px!important}
body.app-shell.premium-shell :is(.cyber-table,.log-table,.jb-table,.jv-table,.jo-table,.job-table){border-collapse:collapse!important;width:100%}
body.app-shell.premium-shell :is(.cyber-table,.log-table,.jb-table,.jv-table,.jo-table,.job-table) th{padding:13px 16px!important;background:var(--ps-input)!important;color:var(--ps-muted)!important;border-bottom:1px solid var(--ps-line)!important;font-size:11px!important;text-transform:none!important}
body.app-shell.premium-shell :is(.cyber-table,.log-table,.jb-table,.jv-table,.jo-table,.job-table) td{padding:14px 16px!important;border-bottom:1px solid var(--ps-line)!important;color:var(--ps-text)!important;font-size:12px!important;line-height:1.65}
body.app-shell.premium-shell :is(.cyber-table,.log-table,.jb-table,.jv-table,.jo-table,.job-table) tbody tr:hover{background:var(--ps-soft)!important}
body.app-shell.premium-shell :is(.jb-info,.jv-info,.jo-muted,.job-muted){color:var(--ps-muted)!important}
body.app-shell.premium-shell :is(.jb-error,.jo-critical){color:var(--theme-danger-text,#be123c)!important}
body.app-shell.premium-shell :is(.jb-warning,.jo-warning){color:var(--theme-warning-text,#a16207)!important}
body.app-shell.premium-shell .quota-box{background:var(--ps-input)!important;border:1px solid var(--ps-line)!important;border-radius:12px!important;margin:12px 16px 17px!important;padding:15px!important;box-shadow:none!important}
body.app-shell.premium-shell .quota-title,body.app-shell.premium-shell .quota-text{color:var(--ps-muted)!important;font-size:11px!important}
body.app-shell.premium-shell :is(.btn,.btn-sys,.job-btn,.btn-cyber){border-radius:9px!important;box-shadow:none!important;letter-spacing:0!important}
body.app-shell.premium-shell .page-files :is(.toolbar,.path-bar),body.app-shell.premium-shell.page-files :is(.toolbar,.path-bar){background:var(--ps-card)!important;border-color:var(--ps-line)!important;border-radius:13px!important;box-shadow:none!important}
body.app-shell.premium-shell .item-card{border-radius:14px!important;box-shadow:none!important;border-color:var(--ps-line)!important}
body.app-shell.premium-shell :is(input,select,textarea):focus-visible,body.app-shell.premium-shell :is(a,button):focus-visible{outline:2px solid var(--ps-accent)!important;outline-offset:3px!important}
body.app-shell.premium-shell .um{--um-ink:var(--ps-text);--um-muted:var(--ps-muted);--um-line:var(--ps-line)}
body.app-shell.premium-shell .um :is(.um-panel,.um-stats article,.um-dialog){background:var(--ps-card)!important;color:var(--ps-text)!important;border-color:var(--ps-line)!important}
body.app-shell.premium-shell .um :is(.um-detail,.um-dialog-head,.um-table th){background:var(--ps-input)!important;border-color:var(--ps-line)!important}
body.app-shell.premium-shell .um .um-table td{border-color:var(--ps-line)!important}
body.app-shell.premium-shell .um :is(.um-section,.um-footer,.um-toolbar){border-color:var(--ps-line)!important}
body.app-shell.premium-shell .um .um-table tbody tr:hover{background:var(--ps-soft)!important}
body.app-shell.premium-shell .um .um-hero :is(h2,p,span),body.app-shell.premium-shell .um .um-btn.um-primary{color:#fff!important}
.ps-tools{display:flex;gap:6px;align-items:center}.ps-tool{display:inline-flex;gap:8px;align-items:center;justify-content:center;min-height:34px;padding:8px 10px;background:var(--ps-input)!important;border:1px solid var(--ps-line)!important;border-radius:9px;color:var(--ps-text)!important;font-size:11px!important;cursor:pointer;white-space:nowrap;box-shadow:none!important}.ps-tool[aria-pressed=true]{color:var(--ps-accent)!important;background:var(--ps-soft)!important}.ps-tool kbd{border:1px solid var(--ps-line);padding:1px 4px;border-radius:4px;font-size:9px;color:var(--ps-muted);font-family:inherit}.ps-menu-heading{font-size:9px;letter-spacing:.13em;font-weight:800;color:var(--ps-muted)!important;padding:7px 14px 9px;text-transform:uppercase}.ps-favorites{border-bottom:1px solid var(--ps-line);padding-bottom:9px;margin-bottom:10px}.ps-favorites:empty{display:none}.ps-favorite-link{font-size:11px!important;min-height:37px!important}.ps-offline{font-size:10px;color:var(--theme-warning-text,#a16207)!important}.ps-toast{position:fixed!important;left:50%;bottom:30px;transform:translateX(-50%);z-index:2147483600!important;background:var(--ps-card)!important;color:var(--ps-text)!important;border:1px solid var(--ps-line);border-radius:12px;padding:12px 18px;box-shadow:0 8px 36px #0002;font-size:12px;max-width:calc(100vw - 32px)}.ps-toast:empty{display:none}.ps-top{position:fixed!important;bottom:22px;right:24px;z-index:1001!important;border:1px solid var(--ps-line);border-radius:12px;width:38px;height:38px;background:var(--ps-card)!important;color:var(--ps-text)!important;box-shadow:0 4px 18px #0001;cursor:pointer}.ps-skip{position:fixed;top:-100px;left:20px;z-index:2147483647;padding:12px 16px;border-radius:9px;background:var(--ps-card);color:var(--ps-text)}.ps-skip:focus{top:12px}
.ps-command{position:fixed!important;inset:0;margin:auto;width:min(600px,calc(100vw - 28px));max-height:min(640px,calc(100dvh - 40px));padding:0;border:1px solid var(--ps-line);border-radius:20px;background:var(--ps-card)!important;color:var(--ps-text)!important;box-shadow:0 24px 100px #0004}.ps-command::backdrop{background:#10203980}.ps-command-head{padding:21px 23px;border-bottom:1px solid var(--ps-line);display:flex;justify-content:space-between;align-items:center}.ps-command-head strong{font-size:15px;color:var(--ps-text)!important}.ps-command-close{border:0;background:transparent!important;color:var(--ps-muted)!important;font-size:23px!important;cursor:pointer}.ps-command-search{padding:16px 20px;border-bottom:1px solid var(--ps-line)}.ps-command-search input{width:100%;padding:12px 14px;border-radius:10px;border:1px solid var(--ps-line)!important;background:var(--ps-input)!important;color:var(--ps-text)!important;font-size:13px;outline:none}.ps-results{list-style:none;margin:0;padding:10px 12px;max-height:350px;overflow:auto}.ps-result{display:flex;gap:6px;align-items:center;border-radius:10px;margin-bottom:3px}.ps-result.selected{background:var(--ps-soft)}.ps-result-main{display:flex;flex:1;gap:12px;align-items:center;text-align:left;border:0;background:transparent!important;color:var(--ps-text)!important;padding:12px;font-size:12px!important;cursor:pointer;min-width:0}.ps-result-main i{width:20px;text-align:center;color:var(--ps-accent)!important}.ps-result-star{border:0;background:transparent!important;color:var(--ps-muted)!important;cursor:pointer;padding:11px}.ps-result-star[aria-pressed=true]{color:var(--ps-accent)!important}.ps-command-foot{padding:12px 21px;border-top:1px solid var(--ps-line);font-size:10px;color:var(--ps-muted)!important;display:flex;justify-content:space-between}.ps-empty{padding:35px 15px;text-align:center;font-size:12px;color:var(--ps-muted)!important}.ps-section-label{font-size:10px;padding:9px 12px;color:var(--ps-muted)!important}.premium-shell [hidden]{display:none!important}
body.premium-shell[data-density=compact] :is(.card,.card-cyber,.sys-card){padding:17px!important}body.premium-shell[data-density=compact] .menu-item{padding:9px 13px!important;min-height:37px}body.premium-shell[data-density=compact] :is(.jb-table,.log-table,.jv-table,.jo-table,.job-table,.um-table) td{padding-top:9px!important;padding-bottom:9px!important}body.premium-shell[data-density=compact] .content-area{padding:18px!important}
body.premium-auth{background:#f0f4fa!important;color:#182c48!important;overflow:auto!important;padding:40px 22px!important;font-family:'Segoe UI','Malgun Gothic',sans-serif!important}body.premium-auth::before,body.premium-auth::after{display:none!important}body.premium-auth .auth-shell-wrap{gap:0!important;max-width:1120px!important;align-items:stretch!important;border-radius:26px!important;overflow:hidden;box-shadow:0 22px 85px #1b335b1a!important;background:white!important;border:1px solid #e1e8f3}body.premium-auth .auth-side-panel{background:linear-gradient(145deg,#122a49,#224b77)!important;color:white!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:45px!important;flex:1}body.premium-auth .auth-side-panel h2{color:#fff!important;font-size:31px!important;line-height:1.4;letter-spacing:-.05em}body.premium-auth .auth-side-panel p{color:#b9cde5!important;font-size:13px!important;line-height:1.9}body.premium-auth .auth-feature{background:#ffffff09!important;border:1px solid #ffffff1b!important;border-radius:12px!important;box-shadow:none!important}body.premium-auth .auth-feature strong{color:#f5f9ff!important}body.premium-auth .auth-feature span,body.premium-auth .auth-brand-footnote{color:#b9cde5!important}body.premium-auth .auth-mini-stat{background:transparent!important;border:1px solid #ffffff26!important;box-shadow:none!important;border-radius:11px!important}body.premium-auth .auth-mini-stat strong{color:#fff!important}body.premium-auth .auth-mini-stat span{color:#b9cde5!important}body.premium-auth .auth-container{background:#fff!important;border:0!important;border-radius:0!important;padding:43px!important;box-shadow:none!important;max-width:440px!important;backdrop-filter:none!important}body.premium-auth .auth-container::before{display:none!important}body.premium-auth .brand h1{font-size:22px!important;letter-spacing:.06em!important;color:#193558!important}body.premium-auth .headline-chip{font-size:10px!important;background:#f0f5fe!important;color:#4c6e9b!important;border-color:#e0e8f6!important}body.premium-auth .auth-container input{border-radius:10px!important;background:#f8fafd!important;border:1px solid #dce5f0!important;color:#193558!important;min-height:47px;box-shadow:none!important}body.premium-auth .auth-container h2{font-size:18px!important;color:#203c60!important}body.premium-auth .btn-submit{background:#2e65d0!important;color:white!important;border:0!important;border-radius:10px!important;box-shadow:none!important}body.premium-auth .auth-links{font-size:12px!important}.ps-password{position:relative;display:flex;align-items:center}.ps-password>input{width:100%;padding-right:59px!important}.ps-password>button{position:absolute;right:9px;border:0;background:transparent;color:#47688e;font-size:11px;font-weight:700;cursor:pointer;padding:8px}.ps-caps{font-size:11px;color:#9b6816;margin:6px 0}.premium-auth [hidden]{display:none!important}
@media(min-width:861px){body.app-shell.premium-shell .sidebar{width:258px!important;flex:0 0 258px!important;min-width:258px!important}body.app-shell.premium-shell .main-content{min-width:0}}
@media(max-width:1150px){.ps-tool kbd{display:none}body.app-shell.premium-shell .top-header{padding:16px 20px!important}.ps-search-label{display:none}body.app-shell.premium-shell .header-sub,body.app-shell.premium-shell .shell-page-sub{display:none!important}}
@media(max-width:860px){body.app-shell.premium-shell .top-header{flex-wrap:wrap!important;padding:13px 16px!important;min-height:75px!important;gap:10px!important}body.app-shell.premium-shell .sidebar{box-shadow:12px 0 50px #0002!important}body.app-shell.premium-shell .header-title,body.app-shell.premium-shell .shell-page-title{font-size:18px!important}body.app-shell.premium-shell .shell-header-right{margin-left:auto}.ps-tool{padding:8px!important}.ps-density-label{display:none}body.app-shell.premium-shell :is(.header-chip,.shell-user-chip){display:none!important}.ps-top{right:15px;bottom:18px}.ps-command{max-height:calc(100dvh - 24px)}.ps-results{max-height:50dvh}body.premium-auth .auth-shell-wrap{max-width:480px!important}body.premium-auth .auth-side-panel{display:none!important}body.premium-auth .auth-container{max-width:none!important;width:100%!important;padding:30px!important}}
@media(prefers-reduced-motion:reduce){body.premium-shell *,body.premium-auth *{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
