/* Unified console (#console/...): fixed header over full-height back-office frames. */
body.console-active{overflow:hidden}
body.console-active>*:not(#console-view):not(.toast):not(dialog):not(script){display:none!important}
#console-view{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;background:#f4f6f8}
#console-view[hidden]{display:none}
.cs-top{flex:none;height:55px;display:flex;align-items:center;gap:19px;padding:0 18px 0 24px;border-bottom:1px solid #e0e2ec;background:linear-gradient(180deg,#f8f9fd,#f4f5fa);color:#10131f}
/* Same geometry as the 工作台 top bar (.pc-topbar), so switching panels never moves the tabs. */
.cs-brand img{display:block}
.cs-divider{width:1px;height:24px;background:#b5b9c8}
.cs-tabs{display:flex;gap:2px;margin-left:14px;padding:3px;border:1px solid #dfe2ed;border-radius:9px;background:#f6f7fb}
.cs-tabs a{padding:6px 14px;border-radius:6px;color:#4b5365;font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap}
.cs-tabs a[aria-selected=true]{background:#fff;color:#7a26d9;box-shadow:0 1px 2px rgba(20,24,40,.12)}
#console-view.technical .cs-tabs a[aria-selected=true]{background:#1b3425;color:#bbff7a}
.cs-tabs a[hidden]{display:none}
.cs-live{margin-left:auto;min-width:0;overflow:hidden;color:#46614e;font-size:var(--ui-small,13px);text-overflow:ellipsis;white-space:nowrap}
.cs-link{padding:6px 10px;border:1px solid #d9dce7;border-radius:8px;background:#fff9;color:#2c3040;font-size:var(--ui-small,13px);font-weight:600;text-decoration:none;white-space:nowrap}
.cs-panes{position:relative;flex:1;min-height:0}
.cs-panes iframe{display:block;width:100%;height:100%;border:0;background:#f4f6f8}
.cs-panes iframe[hidden]{display:none}
.cs-message{padding:32px;font-size:14px}.cs-message a{margin-left:6px;color:#7a26d9;font-weight:700}
@media(max-width:700px){.cs-top{gap:8px;padding:0 10px}.cs-brand img{width:84px}.cs-divider,.cs-live{display:none}.cs-tabs a{padding:6px 8px}.cs-link:last-child{display:none}}

.cs-message{position:absolute;z-index:1;inset:0;background:#f4f6f8}
#console-view.technical .cs-message{background:#172b20;color:#e2f5e4}
@media(max-width:560px){
 .cs-top{height:auto;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;padding:6px 8px}
 #console-view .cs-brand img{width:84px}
 .cs-tabs{grid-area:2 / 1 / auto / -1;margin:0;justify-content:center;padding:2px}
 .cs-tabs a,.cs-link{padding:6px 4px;font-size:var(--ui-small,13px)}
 .cs-link:last-child{display:block}
}
