/* Shared module chrome. Authored pages, document canvases and form controls keep their own layout. */
body[data-sysimple-shell="true"] {
 margin:0;
 --studio-header-h:52px;
 --studio-control-h:34px;
 --studio-radius:var(--brand-radius,3px);
 --sys-surface-radius:var(--brand-radius,3px);
 --sys-surface-shadow:var(--brand-panel-shadow,none);
}
body[data-sysimple-shell="true"][data-theme] header.sys-studio-header.topbar[data-studio-shell] {
 min-height:52px!important;
 height:auto!important;
 padding:8px 14px!important;
 gap:8px!important;
 border-radius:0!important;
 flex-shrink:0;
}
@media(min-width:761px) {
 body[data-sysimple-shell="true"][data-theme] header.sys-studio-header.topbar[data-studio-shell] {
  display:flex!important;flex-direction:row!important;align-items:center!important;
 }
 body[data-sysimple-shell="true"] .sys-studio-header:has(.sys-studio-auth-menu) {flex-wrap:nowrap!important}
 body[data-sysimple-shell="true"] .sys-studio-header>.sys-studio-brand {flex:0 0 auto!important;min-width:42px!important}
 body[data-sysimple-shell="true"] .sys-studio-header>.sys-studio-organization {flex:1 1 180px!important;min-width:120px!important;max-width:300px;padding-left:10px}
 body[data-sysimple-shell="true"] .sys-studio-header .sys-org-text {min-width:0;max-width:100%}
 body[data-sysimple-shell="true"] .sys-studio-header .sys-org-name {line-height:16px}
 body[data-sysimple-shell="true"] .sys-studio-header :is(.sys-org-code,#sysOrganizationCode) {min-height:16px!important;line-height:16px!important;height:auto!important}
 body[data-sysimple-shell="true"] .sys-studio-header>.sys-studio-common-tools {flex:0 0 auto!important;flex-wrap:nowrap!important}
 body[data-sysimple-shell="true"] .sys-studio-header>.sys-studio-right {flex:0 0 auto!important}
}
@media(min-width:761px) and (max-width:1400px) {
 body[data-sysimple-shell="true"][data-theme] header.sys-studio-header.topbar[data-studio-shell] {flex-wrap:wrap!important}
 body[data-sysimple-shell="true"] .sys-studio-header>.sys-studio-common-tools {flex:1 1 auto!important;min-width:0;flex-wrap:wrap!important}
 body[data-sysimple-shell="true"] .sys-studio-header>.sys-studio-right {max-width:100%;margin-left:auto;flex-wrap:wrap}
}
body[data-sysimple-shell="true"] .sys-studio-header .sys-studio-menu-panel :is(button,a,select) {
 height:auto!important;min-height:34px!important;white-space:normal!important;line-height:1.35!important;padding:7px 10px!important;
}
body[data-sysimple-shell="true"] .sys-studio-header :is(.sys-studio-menu-button,.sys-studio-theme-select) {border-radius:var(--studio-radius)!important}
body[data-sysimple-shell="true"] .sys-studio-header .sys-studio-menu-button {min-height:34px!important;height:34px!important}
@media(min-width:761px) {
 body[data-sysimple-shell="true"] .sys-studio-header :is(.sys-studio-theme-select,.sys-studio-link,.sys-studio-menu-button,[data-studio-tool]) {box-sizing:border-box;min-height:34px!important;height:34px!important;line-height:1!important;margin:0!important}
}
body[data-sysimple-shell="true"] [data-module-title] {
 font-size:var(--brand-titleSize,18px)!important;line-height:1.25!important;font-weight:600!important;
 margin:0!important;padding:0!important;overflow-wrap:anywhere;
}
body[data-sysimple-shell="true"] [data-module-title]>[data-module-title-icon] {
 width:24px!important;height:24px!important;margin-inline-end:8px!important;
}
body[data-sysimple-shell="true"] [data-module-heading] {
 box-sizing:border-box;min-height:0!important;height:auto!important;
 padding:8px 12px!important;gap:6px 12px!important;align-items:center!important;
 border-top-width:1px!important;border-left-width:1px!important;
}
body[data-sysimple-shell="true"] [data-module-heading] p {
 font-size:12px!important;line-height:1.45!important;margin:4px 0 0!important;
}
body[data-sysimple-shell="true"] [data-module-heading] :is(.journey-eyebrow,.usage-eyebrow,.audit-eyebrow,small) {
 font-size:11px;line-height:1.4;
}
body[data-sysimple-shell="true"] [data-module-heading]>:is(div,section) {min-width:0}
body[data-sysimple-shell="true"] [data-module-heading] .sys-display-mode {margin:0;align-self:center}
body[data-sysimple-shell="true"] [data-module-heading] :is(.journey-actions,.nd-actions,.pp-actions,.mail-actions,.pa-actions,.cat-actions) {gap:8px;flex-wrap:wrap}
@media(min-width:1001px) {
 body[data-sysimple-shell="true"] [data-module-heading]>div:first-child:has(>.journey-eyebrow,>.usage-eyebrow,>.cat-eyebrow) {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:12px}
 body[data-sysimple-shell="true"] [data-module-heading]>div:first-child>:is(.journey-eyebrow,.usage-eyebrow,.cat-eyebrow) {grid-column:2;grid-row:1;margin:0!important}
 body[data-sysimple-shell="true"] [data-module-heading]>div:first-child>[data-module-title] {grid-column:1;grid-row:1}
 body[data-sysimple-shell="true"] [data-module-heading]>div:first-child>p {grid-column:1/-1;grid-row:2}
}
body[data-sysimple-shell="true"] [data-module-panel] {
 border-radius:var(--brand-radius,3px)!important;box-shadow:var(--brand-panel-shadow,none)!important;
}
body[data-sysimple-shell="true"] [data-module-panel]:not(.active,.is-active,.selected,.is-selected,.danger,.warning,.success,.error,.is-error,[aria-selected="true"],[aria-current],[role="alert"],[data-state]) {
 border-color:var(--brand-contentBorder,var(--adm-border))!important;
}
/* Commands retain a visible frame even when the neutral action palette is transparent.
   Keep semantic action colors, authored controls and shared-header navigation unchanged. */
body[data-sysimple-shell="true"] [data-module-command]:not(.sys-studio-header *):not([data-brand-control],[data-brand-control] *) {
 --brand-actionControlBorder:var(--adm-border,#d9e0e8);
}
/* Standard commands only; navigation tiles, calendar tools, authored controls and switches are excluded by the owner. */
body[data-sysimple-shell="true"] [data-module-command]:not([hidden]) {
 box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:6px;
 min-height:var(--brand-buttonHeight,34px)!important;height:auto!important;
 border-radius:var(--brand-radius,3px)!important;padding:6px 10px!important;
 font:600 var(--brand-fontSize,13px)/1.4 var(--brand-font,var(--adm-font,"Segoe UI",sans-serif))!important;
 white-space:normal;text-align:center;box-shadow:none!important;
}
body[data-sysimple-shell="true"] [data-module-command]:focus-visible {outline:2px solid var(--adm-primary,#3c8dbc)!important;outline-offset:2px!important}
body[data-sysimple-shell="true"] [data-module-command]:disabled {opacity:.5;cursor:not-allowed}
body[data-sysimple-shell="true"] :is([data-module-command],[data-module-panel],[data-module-heading])[hidden] {display:none!important}
body[data-sysimple-shell="true"] :is(.brand-command,.sys-studio-module-actions) {gap:8px;padding:8px 12px}
body[data-sysimple-shell="true"] .sys-studio-module-actions {max-width:100%;overflow:visible}
@media(min-width:761px) and (max-width:1100px) {
 body[data-sysimple-shell="true"] .sys-studio-header .sys-studio-auth-menu>.sys-studio-menu-button span {display:none!important}
 body[data-sysimple-shell="true"] .sys-studio-header .sys-studio-theme-select {min-width:110px!important;max-width:125px!important}
}
@media(max-width:760px) {
 body[data-sysimple-shell="true"] {--studio-header-h:62px}
 body[data-sysimple-shell="true"][data-theme] header.sys-studio-header.topbar[data-studio-shell][data-mobile-navigation] {min-height:62px!important;padding:8px 12px!important}
 body[data-sysimple-shell="true"] .sys-studio-header.sys-mobile-menu-open .sys-studio-menu-panel :is(button,a,select) {min-height:44px!important}
 body[data-sysimple-shell="true"] [data-module-heading] {flex-wrap:wrap!important;align-items:flex-start!important;padding:10px!important}
 body[data-sysimple-shell="true"] [data-module-heading]>:is(.journey-actions,.nd-actions,.pp-actions,.mail-actions,.pa-actions,.cat-actions) {width:100%}
}

/* Owner preference: command icons stay in their existing toolbar/cell. */
/* Module identity follows Groups and Activities; section toolbars remain separate. */
body[data-sysimple-shell="true"] [data-module-banner] {
 display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;
 justify-content:space-between;align-items:center!important;gap:8px 14px!important;
 padding:10px 12px!important;margin:0 0 10px!important;min-width:0;
 border:1px solid var(--brand-contentBorder,var(--adm-border))!important;
 background:var(--adm-surface)!important;color:var(--adm-text);box-shadow:none!important;
 border-radius:var(--brand-radius,3px);
}
body[data-sysimple-shell="true"] [data-module-banner]>:first-child {min-width:0;flex:1 1 240px}
html body[data-sysimple-shell="true"] [data-module-banner] h1[data-module-title] {font-size:18px!important}
body[data-sysimple-shell="true"] [data-module-banner] p {display:block!important;color:var(--adm-muted);font-size:12px!important;line-height:1.45;margin:4px 0 0!important}
body[data-sysimple-shell="true"] [data-module-banner-actions] {
 display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;
 flex:0 1 auto;min-width:0;margin-left:auto;
}
body[data-sysimple-shell="true"] [data-module-banner-actions] :is(button,a,select) {max-width:100%}
body[data-sysimple-shell="true"] .acc-module-heading {grid-column:1/-1;margin-bottom:0!important}
body[data-sysimple-shell="true"] .acc-shell:has(>.acc-module-heading) {grid-template-rows:auto minmax(0,1fr);height:calc(100vh - var(--studio-header-h))}
body[data-sysimple-shell="true"] .sm-top .sm-title {flex-shrink:1;order:0}
body[data-sysimple-shell="true"] .sm-top .sm-tools {order:1}
body[data-sysimple-shell="true"]>[data-module-banner-fallback] {margin:14px 14px 0!important;flex-shrink:0}
body[data-sysimple-shell="true"] [data-module-banner]>.sys-studio-module-actions {padding:0;border:0;background:transparent;box-shadow:none}
body[data-sysimple-shell="true"] [data-module-banner]>.acc-list-toolbar {margin:0;padding:0;border:0;background:transparent}
body[data-sysimple-shell="true"] .doc-module-toolbar[data-module-banner]>.topbar-center {flex:0 1 auto!important;width:auto!important;min-width:0!important;padding:0!important}
body#docClientEditor.doc-builder-page .app .doc-module-toolbar[data-module-banner] {padding:10px 12px!important;margin:14px 18px 10px!important;width:auto!important;min-height:0!important;align-self:stretch}
body[data-sysimple-shell="true"] .query-studio-topbar[data-module-banner]>.topbar__inner {flex:0 1 auto!important;width:auto!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
@media(max-width:760px) {
 body[data-sysimple-shell="true"] [data-module-banner-actions] {justify-content:flex-start;margin-left:0;flex-basis:100%;width:100%}
 body[data-sysimple-shell="true"] .acc-shell:has(>.acc-module-heading) {height:auto;grid-template-rows:none}
}
body[data-sysimple-shell="true"] [data-module-command][data-icon-command]:not([hidden]){
 font-size:0!important;gap:0!important;min-width:var(--brand-buttonHeight,34px);padding:6px 8px!important;
}
body[data-sysimple-shell="true"] [data-icon-command]>:is(i,svg,img){font-size:15px!important;flex:0 0 auto;width:16px;height:16px}
body[data-sysimple-shell="true"] [data-icon-command]>span{font-size:0!important}
@media(max-width:760px){
 body[data-sysimple-shell="true"] [data-module-command][data-icon-command]:not([hidden]){--brand-buttonHeight:44px;min-width:44px;min-height:44px!important}
}
