/* Shared layout rhythm. Product colours and immersive viewer controls stay local. */
.ad-shell{--ui-gap:16px;--ui-panel:20px;--ui-nav:240px;--ui-ease:cubic-bezier(.2,.75,.3,1)}
.ad-shell,.ad-shell *{box-sizing:border-box}
.ad-shell .ad-sidebar{width:var(--ui-nav);padding:20px 14px;gap:0}
.ad-shell .ad-workspace{padding-inline-start:var(--ui-nav);min-width:0}
.ad-shell .ad-main,.ad-shell.ad-builder-shell .ad-main{width:100%;max-width:1480px;margin-inline:auto;padding:24px clamp(20px,2.3vw,36px) 0}
.ad-shell .ad-topbar{height:64px;padding-inline:clamp(20px,2.3vw,36px);gap:16px}
.ad-shell .ad-page-heading{margin-bottom:22px;align-items:start;gap:20px}
.ad-shell .ad-page-heading h1{font-size:28px;line-height:1.25;margin:4px 0 8px;letter-spacing:-.025em}
.ad-shell .ad-page-heading p{max-width:68ch;margin:0;font-size:14px;line-height:1.65}
.ad-shell .ad-page-heading>.ad-button{margin-top:4px;flex-shrink:0}
.ad-shell .ad-eyebrow{font-size:12px;line-height:1.5}
.ad-shell .ad-page-content{display:grid;gap:20px;min-width:0}
.ad-shell .ad-page-content>section,.ad-shell .ad-page-content>div{min-width:0}
.ad-shell .ad-sidebar .ad-logo{margin-bottom:16px;padding:10px 12px}
.ad-shell .ad-workspace-label{margin-bottom:16px}
.ad-shell .ad-nav-group+.ad-nav-group{margin-top:14px}
.ad-shell .ad-nav-caption{font-size:12px;min-height:32px}
.ad-shell .ad-nav-item{min-height:40px;padding:9px 12px;font-size:14px;line-height:1.4;gap:10px}
.ad-shell .ad-sidebar-bottom{padding-top:16px}
.ad-shell :is(.ad-section-heading,.ad-library-toolbar,.ad-section-toolbar){gap:16px;margin-bottom:0}
.ad-shell .ad-section-heading h2{font-size:20px;line-height:1.35}
.ad-shell .ad-section-heading p{font-size:14px;line-height:1.6;margin-top:4px}
.ad-shell .ad-shortcut-section{margin-bottom:0;display:grid;gap:14px}
.ad-shell .ad-work-shortcuts{gap:12px}
.ad-shell .ad-work-shortcuts>a{display:grid;grid-template-columns:34px minmax(0,1fr) 18px;gap:4px 12px;padding:16px;align-items:center;align-content:start;min-height:106px}
.ad-shell .ad-work-shortcuts>a>span:first-child{grid-column:1;grid-row:1/3;align-self:start}
.ad-shell .ad-work-shortcuts strong{grid-column:2;font-size:16px;line-height:1.35}
.ad-shell .ad-work-shortcuts p{grid-column:2;font-size:13px;line-height:1.55;margin:0}
.ad-shell .ad-work-shortcuts>a>svg{grid-column:3;grid-row:1/3;align-self:center}
.ad-shell :is(.ad-stats,.ad-overview-grid,.ad-security-grid,.ad-course-grid,.ad-role-cards){gap:16px}
.ad-shell .ad-welcome{min-height:180px;padding:24px;margin-block:0}
.ad-shell .ad-welcome h2{font-size:26px;line-height:1.3;margin-block:8px 10px}
.ad-shell .ad-welcome p{font-size:14px;line-height:1.7;max-width:62ch}
.ad-shell .ad-stat{padding:18px}
.ad-shell .ad-stat>strong{font-size:30px;line-height:1.2;margin-block:10px 6px}
.ad-shell .ad-card-heading{padding:18px 20px 14px;gap:12px}
.ad-shell .ad-card-heading h2{font-size:18px;line-height:1.4}
.ad-shell :is(.ad-person-row,.ad-event){padding:14px 20px}
.ad-shell .ad-table{font-size:14px}
.ad-shell .ad-table th{font-size:13px;padding:12px 16px;white-space:nowrap}
.ad-shell .ad-table td{padding:13px 16px;line-height:1.5}
.ad-shell .ad-table-scroll{min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;contain:inline-size}
.ad-shell .ad-table-footer{padding:12px 16px;gap:12px}
.ad-shell .ad-filter-bar{padding:14px 16px;gap:12px;flex-wrap:wrap}
.ad-shell .ad-search-input{min-width:0}
.ad-shell .ad-form-fields{gap:16px}
.ad-shell .ad-form-fields label{font-size:14px;line-height:1.5}
.ad-shell .ad-form-fields :is(input,select,textarea){font-size:15px;min-height:42px}
.ad-shell .ad-course-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,285px),1fr));align-items:stretch}
.ad-shell .ad-course-card{display:flex;flex-direction:column;min-width:0;overflow:visible;position:relative}
.ad-shell .ad-course-card:has(.ad-course-more[open]){z-index:6}
.ad-shell .ad-course-image{height:auto;aspect-ratio:16/9;border-start-start-radius:inherit;border-start-end-radius:inherit}
.ad-shell .ad-course-body{padding:18px;display:flex;flex-direction:column;gap:12px;flex:1}
.ad-shell .ad-course-body h2{font-size:20px;line-height:1.4;margin:0}
.ad-shell .ad-course-body>p{font-size:14px;line-height:1.7;margin:0}
.ad-shell .ad-course-actions{margin-top:auto;padding-top:4px;gap:8px;flex-wrap:wrap}
.ad-shell .ad-course-more>div>button{display:block;width:100%;border:0;background:transparent;color:inherit;font:inherit;text-align:start;padding:10px 12px;cursor:pointer;border-radius:8px}
.ad-shell .ad-course-more>div>button:hover{background:var(--ad-bg,#f2f5f3)}
.ad-shell .ad-course-more>div>button:focus-visible{outline:2px solid currentColor;outline-offset:-3px}
.ad-shell .ad-button-danger{background:#fff1ef;color:#9f281e;border:1px solid #e8b8b1}
.ad-course-delete-dialog{width:min(520px,calc(100vw - 32px));padding:24px;border:1px solid #d6dedb;border-radius:18px;background:#fff;color:#173c35;box-shadow:0 24px 80px #0a1d3540;max-height:calc(100dvh - 32px);overflow:auto}
.ad-course-delete-dialog::backdrop{background:#0d192b88}
.ad-course-delete-dialog form,.ad-course-delete-dialog label{display:grid;gap:14px}
.ad-course-delete-dialog h2,.ad-course-delete-dialog p{margin:0;line-height:1.7}
.ad-course-delete-dialog input{width:100%;box-sizing:border-box;border:1px solid #9fb5ac;border-radius:10px;padding:12px;font:inherit}
.ad-course-delete-dialog footer{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.ad-shell .ad-course-meta{gap:12px;font-size:12px}
.ad-shell .ad-library-filters{margin:0;gap:8px}
.ad-shell .ad-library-count,.ad-shell .ad-library-note{margin:0!important;line-height:1.6;font-size:13px}
.ad-shell .ad-library-views{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--ad-line);padding-bottom:12px}
.ad-shell .ad-library-view{display:flex;align-items:center;gap:10px;border:1px solid var(--ad-line);border-radius:9px;padding:10px 16px;color:var(--ad-ink);font-size:15px;line-height:1.4;min-height:44px;text-decoration:none}
.ad-shell .ad-library-view[aria-current=page]{background:var(--ad-ink);border-color:var(--ad-ink);color:#fff}
.ad-shell .ad-library-view>span{font-size:12px;opacity:.8}
.ad-shell .ad-library-section-description{margin:0;color:var(--ad-muted);font-size:14px;line-height:1.7}
.ad-shell .ad-footer{margin-top:28px;padding-block:18px;gap:16px;font-size:13px}
.ad-shell :is(.ad-button,.ad-icon-button,.ad-nav-item,.ad-library-view){transition:background-color 140ms ease,border-color 140ms ease,color 140ms ease,box-shadow 140ms ease,transform 120ms ease}
.ad-shell :is(.ad-button,.ad-library-view):active{transform:translateY(1px)}
.ad-shell :is(button,a,input,select,textarea){scroll-margin-block:88px}
.ad-shell button:disabled{cursor:not-allowed}

/* Builder: one working area, compact progress and a direct mobile station picker. */
.ad-shell.ad-builder-shell .ad-page-heading{margin-bottom:16px}
.ad-shell .cb-page.cb-page-dark{gap:16px;min-width:0}
.ad-shell .cb-page.cb-page-dark .ad-card{padding:20px}
.ad-shell .cb-page.cb-page-dark .bw-library{padding:14px 18px}
.ad-shell .cb-page.cb-page-dark .bw-library-heading{gap:16px;align-items:center}
.ad-shell .cb-page.cb-page-dark .bw-library-heading h3{font-size:16px}
.ad-shell .cb-page.cb-page-dark .bw-workspace-heading{min-height:0;gap:16px;align-items:center}
.ad-shell .cb-page.cb-page-dark .bw-workspace-heading h2{font-size:23px;line-height:1.35;margin-block:4px 0!important;max-width:50ch}
.ad-shell .cb-page.cb-page-dark .bw-save-state{font-size:13px}
.ad-shell .cb-page.cb-page-dark .bw-stepper{padding:6px;overflow:visible;min-width:0}
.ad-shell .cb-page.cb-page-dark .bw-stepper ol{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;min-width:0}
.ad-shell .cb-page.cb-page-dark .bw-stepper li{min-width:0}
.ad-shell .cb-page.cb-page-dark .bw-stepper button{padding:10px;gap:8px;min-height:62px;min-width:0;width:100%}
.ad-shell .cb-page.cb-page-dark .bw-stepper strong{font-size:13px;line-height:1.4;white-space:normal;display:block}
.ad-shell .cb-page.cb-page-dark .bw-stepper small{font-size:11px;line-height:1.5;white-space:normal}
.ad-shell .cb-page.cb-page-dark .bw-step-number{flex-shrink:0;width:27px;height:27px}
.ad-shell .cb-page.cb-page-dark .bw-stage-heading{gap:16px;padding:0;align-items:center;min-height:0}
.ad-shell .cb-page.cb-page-dark .bw-stage-heading h2{font-size:23px;line-height:1.3;margin:4px 0!important}
.ad-shell .cb-page.cb-page-dark .bw-stage-heading p{font-size:14px;line-height:1.65;margin:0}
.ad-shell .cb-page.cb-page-dark .bw-resources{flex-direction:row;gap:16px;flex-shrink:0;flex-wrap:wrap}
.ad-shell .cb-page.cb-page-dark .bw-resources span{font-size:12px;gap:4px;flex-direction:row;align-items:baseline}
.ad-shell .cb-page.cb-page-dark .bw-resources b{font-size:14px}
.ad-shell .cb-page.cb-page-dark .cb-editor{grid-template-columns:220px minmax(0,1fr);gap:16px;align-items:start}
.ad-shell .cb-page.cb-page-dark .cb-stations{padding:14px;gap:10px;position:sticky;top:80px;max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain}
.ad-shell .cb-page.cb-page-dark .cb-stations h3{font-size:16px;margin:0 0 4px}
.ad-shell .cb-page.cb-page-dark .cb-station>button{padding:10px;gap:8px;font-size:13px}
.ad-shell .cb-page.cb-page-dark .cb-station small{font-size:11px;line-height:1.5}
.ad-shell .cb-page.cb-page-dark .cb-scene{gap:16px}
.ad-shell .cb-page.cb-page-dark .cb-scene-heading h3{font-size:21px;line-height:1.4}
.ad-shell .cb-page.cb-page-dark :is(.cb-scene-heading span,.cb-scene-heading>strong,.cb-preview-help){font-size:13px}
.ad-shell .cb-page.cb-page-dark :is(.cb-point-tools button,.cb-point-list button,.cb-image-tools summary,.cb-scene-details summary){font-size:13px;line-height:1.5}
.ad-shell .cb-page.cb-page-dark :is(.cb-point-form label,.cb-point-form legend,.cb-checkbox){font-size:14px;line-height:1.6}
.ad-shell .cb-page.cb-page-dark .cb-point-form{gap:16px}
.ad-shell .cb-page.cb-page-dark :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:15px;line-height:1.5}
.ad-shell .cb-page.cb-page-dark .bw-editor-tip{font-size:14px;padding:12px 16px;line-height:1.6}
.ad-shell .cb-page.cb-page-dark .bw-review-checks strong{font-size:16px}
.ad-shell .cb-page.cb-page-dark .bw-review-checks small{font-size:13px;line-height:1.6}
.ad-shell .cb-station-picker{display:none}

/* Account and public pages share readable measure without touching the 360 canvas. */
.login-shell{width:calc(100% - 32px);max-width:520px;margin:40px auto;padding:28px}
.login-shell h1{font-size:28px;line-height:1.3;margin-block:20px 12px!important}
.login-shell>p{font-size:15px;line-height:1.7;margin-block:12px}
.login-shell .micro{font-size:13px;line-height:1.65}
.mk-site .pm-page-intro{padding-block:clamp(32px,5vw,64px)}
.mk-site .pm-page-intro .pm-lead{max-width:65ch;line-height:1.75}
.mk-site :is(.pm-actions,.pm-contact-form){gap:16px}

@media(max-width:1100px){
 .ad-shell{--ui-nav:212px}
 .ad-shell .ad-main,.ad-shell.ad-builder-shell .ad-main{padding-inline:22px}
 .ad-shell .cb-page.cb-page-dark .bw-stepper button{flex-direction:column;align-items:center;text-align:center;gap:6px}
 .ad-shell .cb-page.cb-page-dark .bw-stepper small{display:none}
 .ad-shell .cb-page.cb-page-dark .cb-editor{grid-template-columns:1fr}
 .ad-shell .cb-page.cb-page-dark .cb-stations{position:static;max-height:none;overflow:visible;display:none}
 .ad-shell .cb-page.cb-page-dark .cb-stations.is-expanded{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .ad-shell .cb-page.cb-page-dark .cb-stations>h3{grid-column:1/-1}
 .ad-shell .cb-station-picker{display:flex;align-items:end;gap:12px}
 .ad-shell .cb-station-picker label{display:grid;gap:6px;font-size:14px;flex:1;min-width:0}
 .ad-shell .cb-station-picker select{width:100%;min-width:0}
 .ad-shell .cb-station-picker>.ad-button{min-height:43px;white-space:nowrap}
 .ad-shell .cb-page.cb-page-dark .bw-stage-heading{align-items:start;flex-wrap:wrap}
 .ad-shell .cb-page.cb-page-dark .bw-resources{gap:14px}
}
@media(max-width:760px){
 .ad-shell .ad-workspace{padding-inline-start:0}
 .ad-shell .ad-sidebar{width:min(288px,calc(100vw - 48px));transform:translateX(100%)}
 .ad-shell .ad-sidebar.is-open{transform:translateX(0)}
 .ad-shell .ad-main,.ad-shell.ad-builder-shell .ad-main{padding:20px 16px 0}
 .ad-shell .ad-topbar{padding-inline:16px;height:60px;gap:10px}
 .ad-shell .ad-page-heading h1{font-size:25px}
 .ad-shell .ad-page-heading p{font-size:14px;max-width:none}
 .ad-shell .ad-page-heading{gap:12px;margin-bottom:20px}
 .ad-shell .ad-page-content{gap:16px}
 .ad-shell .ad-work-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .ad-shell .ad-work-shortcuts>a{grid-template-columns:28px minmax(0,1fr);padding:14px;min-height:120px;gap:8px}
 .ad-shell .ad-work-shortcuts>a>svg{display:none}
 .ad-shell .ad-work-shortcuts strong{font-size:15px}
 .ad-shell .ad-work-shortcuts p{font-size:13px}
 .ad-shell .ad-library-toolbar{flex-wrap:wrap;gap:12px}
 .ad-shell .ad-library-toolbar label{flex-basis:100%;max-width:none}
 .ad-shell .ad-library-view{padding:10px 14px;font-size:14px}
 .ad-shell .ad-library-filters button{font-size:13px;min-height:38px}
 .ad-shell .ad-course-grid{grid-template-columns:1fr}
 .ad-shell .ad-course-body{padding:16px}
 .ad-shell .ad-welcome{padding:20px;min-height:0}
 .ad-shell .ad-welcome h2{font-size:23px}
 .ad-shell .cb-page.cb-page-dark .ad-card{padding:16px}
 .ad-shell .cb-page.cb-page-dark .bw-library{padding:12px 14px}
 .ad-shell .cb-page.cb-page-dark .bw-library-heading{flex-wrap:wrap;gap:10px}
 .ad-shell .cb-page.cb-page-dark .bw-workspace-heading{align-items:start;flex-wrap:wrap;gap:12px}
 .ad-shell .cb-page.cb-page-dark .bw-workspace-heading h2{font-size:21px}
 .ad-shell .cb-page.cb-page-dark .bw-workspace-heading .cb-actions{width:100%;justify-content:space-between}
 .ad-shell .cb-page.cb-page-dark .bw-stepper button{padding:8px 2px;min-height:76px;justify-content:start}
 .ad-shell .cb-page.cb-page-dark .bw-stepper strong{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
 .ad-shell .cb-page.cb-page-dark .bw-step-number{width:24px;height:24px;font-size:12px}
 .ad-shell .cb-page.cb-page-dark .bw-stage-heading h2{font-size:21px}
 .ad-shell .cb-page.cb-page-dark :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px}
 .ad-shell .cb-page.cb-page-dark .bw-resources{gap:12px}
 .ad-shell .cb-page.cb-page-dark .bw-resources span{font-size:12px}
 .ad-shell .cb-page.cb-page-dark .cb-stations.is-expanded{grid-template-columns:1fr}
 .ad-shell .cb-station-picker{align-items:stretch;flex-direction:column;gap:8px}
 .ad-shell .cb-station-picker>.ad-button{align-self:start}
 .ad-shell .cb-page.cb-page-dark .cb-preview-help{align-items:start;gap:10px;flex-wrap:wrap}
 .ad-shell .cb-page.cb-page-dark .cb-point-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .ad-shell .cb-page.cb-page-dark .cb-point-tools button{min-height:44px;padding:9px}
 .ad-shell .cb-page.cb-page-dark .bw-publish-foot{gap:16px}
 .login-shell{margin-block:24px;padding:22px}
}
@media(max-width:380px){.ad-shell .ad-work-shortcuts{grid-template-columns:1fr}.ad-shell .ad-work-shortcuts>a{min-height:90px}.ad-shell .ad-page-heading>.ad-button{padding-inline:8px}}
@media(prefers-reduced-motion:no-preference){
 .ad-shell .ad-page-content{animation:academy-content-in 180ms var(--ui-ease) both}
 .ad-shell .bw-stage-heading,.ad-shell :is(.bw-brief,.bw-plan,.bw-images,.bw-review,.cb-point-form){animation:academy-panel-in 180ms var(--ui-ease) both}
 .ad-shell .ad-sidebar{transition:transform 180ms var(--ui-ease),visibility 180ms}
 .ad-shell :is(.ad-course-more[open]>div,.ax-dialog[open]){animation:academy-panel-in 150ms var(--ui-ease) both}
}
@keyframes academy-panel-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes academy-content-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.ad-shell *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
