/* Shared workspace presentation, based on Brand Library. Preview documents keep their own styles. */
body.portal-page .tab-panel{--workspace-font:var(--cc-font-alt,Montserrat),sans-serif;--workspace-border:#dce2ec;--workspace-muted:#718094;--workspace-canvas:#f6f7f9;--workspace-accent:#e03a00;--skin-font:var(--workspace-font);font-family:var(--workspace-font)}
body.portal-page .tab-panel :is(.activity,.template-learning,.admin-settings-sidebar,.admin-content-header,.client-admin-panel,.overview-admin,.assistant-root,.asset-page-shell){font-family:var(--workspace-font)!important}
body.portal-page .tab-panel :is(h1,h2,h3,h4,h5,p,label,button,input,select,textarea,table,th,td,.overview-card-link,.admin-breadcrumb,.as-panel-title){font-family:var(--workspace-font)!important}
body.portal-page .tab-panel :is(pre,code,kbd,samp){font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
body.portal-page :is(#panel-admin-jobs,#panel-audit-trail,#panel-instance-debug,#panel-client-admin,#panel-home){background:var(--workspace-canvas)!important}
body.portal-page :is(#panel-admin-jobs,#panel-audit-trail) .activity{width:100%;max-width:none!important;margin:0!important;padding:0 16px 16px!important;box-sizing:border-box;font-size:13px;line-height:1.5}
body.portal-page .activity .activity-header{margin:0 -16px;padding:16px 24px;background:#fff;border-bottom:1px solid var(--workspace-border);gap:12px;flex-wrap:wrap;min-height:64px;box-sizing:border-box}
body.portal-page .activity .activity-header h2{font-size:16px;font-weight:600;line-height:1.4;margin:0}
body.portal-page .activity .activity-header p{font-size:13px;line-height:1.5;margin:8px 0 0;color:var(--workspace-muted)}
body.portal-page .activity .activity-header>div{min-width:220px}
body.portal-page .activity .activity-filters{background:white;border:1px solid var(--workspace-border);border-radius:6px;padding:16px;margin:16px 0;gap:12px}
body.portal-page .activity .activity-filters label{font-size:12px;color:var(--workspace-muted);min-width:130px}
body.portal-page .activity .activity-tabs{gap:20px;border-color:var(--workspace-border);background:#fff;padding:0 12px}
body.portal-page .activity .activity-tab{font-size:13px;line-height:1.5;padding:12px 0;color:var(--workspace-muted)}
body.portal-page .activity .activity-tab[aria-selected=true]{color:var(--workspace-accent);border-color:var(--workspace-accent);font-weight:600}
body.portal-page .activity :is(.activity-table-box,.activity-detail){background:#fff;border-color:var(--workspace-border);border-radius:6px;box-shadow:none}
body.portal-page .activity :is(.activity-pagination,.activity-detail){font-size:12px}
body.portal-page .activity .activity-detail{width:340px;max-width:100%;box-sizing:border-box}
body.portal-page .activity .activity-table-box table{min-width:780px}
body.portal-page .activity :is(th,td){padding:10px 12px;font-size:12px;line-height:1.5;border-color:var(--workspace-border)}
body.portal-page .activity th{background:#f6f7f9;color:#62738a;text-transform:none;letter-spacing:normal;font-weight:500}
body.portal-page .activity td small{font-size:11px;color:var(--workspace-muted)}
body.portal-page .activity td strong{font-weight:600}
body.portal-page .activity tr.is-selected{background:#fff3ed}
body.portal-page .activity .activity-status{font-size:11px;padding:4px 8px;border-radius:5px}
body.portal-page :is(#panel-instance-debug,#panel-client-admin) :is(.workspace-page__header,.admin-content-header){background:#fff;border-bottom:1px solid var(--workspace-border);padding:16px 24px;box-sizing:border-box}
body.portal-page #panel-client-admin[data-compact-admin] .admin-content-title,
body.portal-page #panel-home.tab-panel #overview-admin.overview-admin .overview-admin__title,
body.portal-page #panel-instance-debug .workspace-page__title{font-size:16px!important;font-weight:600;line-height:1.4;letter-spacing:normal;margin:0}
body.portal-page #panel-client-admin .admin-breadcrumb{font-size:12px;margin-bottom:6px;color:var(--workspace-muted)}
body.portal-page #panel-client-admin[data-admin-layout]>.workspace-page__body{padding-top:16px!important}
body.portal-page #panel-client-admin[data-admin-layout] .client-admin-panel{border-radius:6px;border-color:var(--workspace-border);box-shadow:none}
body.portal-page #panel-instance-debug .workspace-page__body{padding:16px!important;background:var(--workspace-canvas)}
body.portal-page #panel-instance-debug .client-admin-debug__table-wrap{background:white;border-color:var(--workspace-border);border-radius:6px}
body.portal-page #panel-instance-debug .client-admin-debug__table{min-width:1000px}
body.portal-page #panel-instance-debug .client-admin-debug__table :is(th,td){font-size:12px;line-height:1.5;padding:10px 12px;vertical-align:top}
body.portal-page #panel-instance-debug .client-admin-debug__table th{background:#f6f7f9;color:#62738a;font-weight:500;letter-spacing:normal;text-transform:none}
body.portal-page #panel-instance-debug .client-admin-debug__table :is(th,td):last-child{min-width:76px;width:76px;white-space:nowrap}
body.portal-page #panel-instance-debug .client-admin-debug__table button{white-space:nowrap;word-break:normal;min-width:48px}
body.portal-page .tab-panel :is(.btn,.client-admin-refresh-btn,.client-admin-debug__filter,.activity-filters input,.activity-filters select,.notifications-panel input:not([type=checkbox]),.notifications-panel select){font-size:12px;line-height:1.5;min-height:36px;border-radius:6px;box-sizing:border-box}
body.portal-page .tab-panel :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea){border-color:var(--workspace-border)}
body.portal-page .tab-panel :is(.btn-primary,.btn-accent){background:var(--workspace-accent);border-color:var(--workspace-accent);color:white}
body.portal-page .tab-panel :is(.btn-secondary,.client-admin-refresh-btn){background:#fff;border-color:var(--workspace-border);color:#26323d}
body.portal-page .tab-panel :is(button,input,select,textarea,a):focus-visible{outline:2px solid var(--workspace-accent);outline-offset:2px}
body.portal-page #panel-home.tab-panel #overview-admin.overview-admin{--skin-font:var(--workspace-font);background:var(--workspace-canvas);padding:16px;gap:16px}
body.portal-page #panel-home.tab-panel #overview-admin.overview-admin :is(h1,h2,h3,h4,p,span,strong,button,input,li){font-family:var(--workspace-font)!important}
body.portal-page #panel-home.tab-panel #overview-admin.overview-admin .overview-admin__header{background:#fff;border-bottom:1px solid var(--workspace-border);margin:-16px -16px 0;padding:16px 24px;width:calc(100% + 32px);min-height:64px}
body.portal-page #panel-home.tab-panel #overview-admin.overview-admin .overview-admin__subtitle{font-size:12px;margin:6px 0 0}
body.portal-page #panel-home.tab-panel #overview-admin.overview-admin :is(.admin-home-grid>*,.overview-library-card){border-radius:6px;border-color:var(--workspace-border);box-shadow:none}
body.portal-page .tab-panel :is(.overview-table-scroll,.client-admin-users-table-wrap){border-color:var(--workspace-border);border-radius:6px;background:white}
body.portal-page .tab-panel :is(.overview-table-scroll,.client-admin-users-table) th{font-size:12px;font-weight:500;letter-spacing:normal;text-transform:none;background:#f6f7f9;color:#62738a}
body.portal-page :is(#panel-objects,#panel-template-learning) :is(.asset-library__header,.tl-toolbar){background:white;border-bottom-color:var(--workspace-border)}
body.portal-page :is(#panel-objects,#panel-template-learning) :is(.object-catalog__card,.tl-card){border-color:var(--workspace-border);border-radius:6px;box-shadow:none}
body.portal-page #panel-assistant :is(.as-panel-title,h2,h3){font-size:16px;font-weight:600}
@media(max-width:900px){body.portal-page .activity .activity-work{flex-direction:column}body.portal-page .activity :is(.activity-table-box,.activity-detail){width:100%}body.portal-page .activity .activity-filters label{flex:1 1 160px}}
@media(max-width:600px){body.portal-page .activity .activity-header,body.portal-page :is(#panel-instance-debug,#panel-client-admin) :is(.workspace-page__header,.admin-content-header){padding:14px 16px}body.portal-page .activity .activity-header>div{flex-basis:100%;min-width:0}body.portal-page .activity .activity-filters{padding:12px;gap:10px}body.portal-page .activity .activity-filters label{min-width:0;flex:1 1 100%}body.portal-page #panel-home.tab-panel #overview-admin.overview-admin .overview-admin__header{padding:14px 16px}}
/* Keep shared headers and narrow layouts aligned with the library canvas. */
body.portal-page #panel-instance-debug .workspace-page__header.instance-debug-header{padding:16px 24px!important}
body.portal-page #panel-instance-debug .instance-debug-header__top{width:100%;min-width:0;gap:16px;flex-wrap:wrap}
body.portal-page #panel-instance-debug .instance-debug-header__top>div:first-child{flex:1 1 260px;min-width:0}
body.portal-page #panel-instance-debug .instance-debug-header__actions{flex-wrap:wrap;gap:12px}
body.portal-page #panel-client-admin[data-admin-layout][data-compact-admin]{background:var(--workspace-canvas)!important}
body.portal-page #panel-client-admin[data-compact-admin] .client-admin-panel table th{font-size:12px;font-weight:500;text-transform:none;letter-spacing:normal;background:#f6f7f9;color:#62738a}
body.portal-page .tab-panel .sr-only{position:fixed!important;left:0!important;top:0!important;clip-path:inset(50%);overflow:hidden;width:1px;height:1px}
body.portal-page .activity-detail h3{font-size:16px;font-weight:600}
@media(max-width:600px){body.portal-page #panel-instance-debug .workspace-page__header.instance-debug-header{padding:14px 16px!important}body.portal-page #panel-instance-debug .instance-debug-header__top{flex-direction:column;align-items:stretch}body.portal-page #panel-instance-debug .instance-debug-header__top>div:first-child{flex:auto}body.portal-page #panel-instance-debug .instance-debug-header__actions{justify-content:space-between}body.portal-page #panel-client-admin .admin-content-header{flex-wrap:wrap;gap:12px}}
