/* DCMS 3.4.1 — one responsive interface layer, intentionally after legacy module CSS.
   Selectors are portal-scoped. Workflow hooks, permission gates and [hidden] are preserved. */
body.dcms-aligned{
 --ui-orange:#ff6900;--ui-action:#b84900;--ui-ink:#15171b;--ui-bg:#f3f4f6;--ui-panel:#fff;
 --ui-line:#e3e6ea;--ui-muted:#59636f;--ui-soft:#fff1e7;--ui-radius:12px;
 --doc-top:72px;--doc-side:238px;--doc-orange:var(--ui-orange);--doc-bg:var(--ui-bg);
 --doc-text:var(--ui-ink);--doc-muted:var(--ui-muted);--doc-line:var(--ui-line);
 margin:0!important;background:var(--ui-bg)!important;color:var(--ui-ink)!important;
 font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-size:14px;line-height:1.5;
}
body.dcms-aligned *,body.dcms-aligned *::before,body.dcms-aligned *::after{box-sizing:border-box}
body.dcms-aligned [hidden]{display:none!important}
body.dcms-aligned :is(button,input,select,textarea){font-family:inherit}
body.dcms-aligned :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #477fb7!important;outline-offset:3px!important}
body.dcms-aligned :is(button,[role=button]):disabled{opacity:.55;cursor:not-allowed!important;transform:none!important}
body.dcms-aligned :is(h1,h2,h3,h4,p){overflow-wrap:anywhere}
body.dcms-aligned :is(h1,h2,h3,h4){color:inherit;line-height:1.25;letter-spacing:-.02em}
body.dcms-aligned :is(.dcms-btn,.dd-btn,.dv3-btn,.ops-btn,.dos-btn,.dh-btn,.dh-ai-btn,.dns-btn,.prod-btn,.dt-btn,.dcms-team-btn,.dcms-install-panel button,.dcms-install-banner a,.dcms-sync-action){
 display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
 min-height:42px!important;height:auto!important;max-width:100%;padding:10px 14px!important;
 border:1px solid var(--ui-line)!important;border-radius:10px!important;font-size:13px!important;line-height:1.3!important;
 font-weight:700!important;white-space:normal!important;text-align:center;text-decoration:none!important;
 box-shadow:none!important;letter-spacing:0!important;vertical-align:middle;cursor:pointer;
}
body.dcms-aligned :is(.dcms-btn-primary,.dd-btn.primary,.dv3-btn.primary,.ops-btn.primary,.dos-btn.primary,.dh-btn.primary,.dh-ai-btn.primary,.dns-btn.primary,.prod-btn.primary){background:var(--ui-action)!important;border-color:var(--ui-action)!important;color:#fff!important}
body.dcms-aligned :is(.dcms-btn-light,.dcms-btn-outline,.dd-btn.secondary,.dv3-btn.secondary,.ops-btn.secondary,.dos-btn.secondary,.dcms-sync-action){background:#fff!important;color:var(--ui-ink)!important;border-color:#ccd2d9!important}
body.dcms-aligned :is(.danger,.dcms-btn-danger).dcms-btn,body.dcms-aligned :is(.dd-btn,.dv3-btn,.ops-btn,.dos-btn).danger{background:#fff1f2!important;border-color:#efc6cc!important;color:#9b2f3d!important}
body.dcms-aligned :is(.dcms-btn-row,.dd-inline-actions,.dd-form-action-bar,.dv3-row-actions,.dv3-head-actions,.dv3-filter-actions,.dv3-wizard-actions,.dv3-editor-actions,.ops-inline-actions,.ops-page-actions,.ops-hero-actions,.dos-top-actions,.dos-payroll-period-actions,.dh-hero-actions,.dh-ai-hero-actions,.doc-pagebar-actions){display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important}
body.dcms-aligned :is(.dcms-btn-row,.dv3-row-actions,.ops-inline-actions)>*{flex-shrink:1;min-width:0}
body.dcms-aligned :is(.dcms-form,.dd-form,.dv3-form,.ops-form,.dos-app,.prod-form,.dns-form,.dcms-team-form,.dd-filter-form,.dv3-filter,.dcms-install-panel) :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea){
 width:100%;min-width:0!important;max-width:100%!important;min-height:42px!important;border:1px solid #cdd3db!important;
 background:#fff!important;color:var(--ui-ink)!important;border-radius:9px!important;padding:10px 11px!important;font-size:14px!important;line-height:1.45!important;box-shadow:none!important;
}
body.dcms-aligned :is(input,select,textarea):disabled,body.dcms-aligned input[readonly]{background:#f4f5f7!important;color:#606a75!important}
body.dcms-aligned :is(input[type=checkbox],input[type=radio]){width:20px!important;min-width:20px!important;height:20px!important;min-height:20px!important;flex:0 0 20px;accent-color:var(--ui-action)}
body.dcms-aligned textarea{resize:vertical;min-height:84px!important}
body.dcms-aligned :is(.dcms-form,.dd-form,.dv3-form,.ops-form,.dcms-team-form,.dcms-install-panel) label{font-size:13px!important;font-weight:650;line-height:1.45;min-width:0;color:#424b57}
body.dcms-aligned :is(.dcms-form-grid,.dd-form-grid,.dv3-form-grid,.ops-form-grid,.dos-grid-form,.prod-form-grid,.dcms-team-form-grid){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 16px!important}
body.dcms-aligned :is(.dcms-form-grid,.dd-form-grid,.dv3-form-grid,.ops-form-grid,.dos-grid-form,.prod-form-grid,.dcms-team-form-grid)>*{min-width:0!important;max-width:100%}
body.dcms-aligned :is(.span-2,.span2,.full-width,.dd-span-2,.dv3-span-2,.ops-span-2){grid-column:1/-1}
body.dcms-aligned :is(.dcms-card,.dd-card,.dv3-panel,.ops-card,.dos-card,.dcms-dealer-card,.dcms-team-card,.dcms-job-card,.dcms-list-card,.dh-ai-card,.dh-ai-actions-panel,.dcms-install-panel){border:1px solid var(--ui-line)!important;border-radius:var(--ui-radius)!important;background:#fff!important;box-shadow:0 2px 8px #15171b04!important;min-width:0;overflow-wrap:anywhere}
body.dcms-aligned :is(.dcms-card-body,.dd-card,.ops-card,.dv3-panel,.dh-ai-card,.dcms-install-panel){padding:18px!important}
body.dcms-aligned :is(.dcms-card-head,.dd-panel-head,.ops-panel-head,.dv3-panel-head,.dh-section-head,.dh-ai-panel-head,.dcms-section-header,.dv3-page-head,.ops-page-head){display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px!important}
body.dcms-aligned :is(.dd-hero,.dh-ai-hero,.ops-hero,.dcms-hero-card){border:1px solid var(--ui-line)!important;border-radius:12px!important;background:#fff!important;color:var(--ui-ink)!important;padding:20px!important;box-shadow:none!important;margin-bottom:16px!important;min-height:0!important}
body.dcms-aligned :is(.dd-hero,.dh-ai-hero,.ops-hero,.dcms-hero-card) :is(h1,h2,h3,p,small){color:inherit!important}
body.dcms-aligned :is(.dcms-stat-grid,.dd-stat-grid,.dh-stats,.dcms-metrics-kpi-grid){display:grid!important;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;gap:12px!important;margin:16px 0!important}
body.dcms-aligned :is(.dcms-stat-card,.dd-stat-card,.dh-stat){border:1px solid var(--ui-line)!important;border-radius:12px!important;padding:16px!important;background:#fff!important;color:var(--ui-ink)!important;box-shadow:none!important;min-width:0;min-height:120px!important;text-align:left!important;display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;}
body.dcms-aligned :is(.dcms-stat-card,.dd-stat-card,.dh-stat):nth-child(4n+1){background:#fff3e9!important;border-color:#f1dbc9!important}
body.dcms-aligned :is(.dcms-stat-card,.dd-stat-card,.dh-stat):nth-child(4n+2){background:#edf4fc!important;border-color:#d9e6f3!important}
body.dcms-aligned :is(.dcms-stat-card,.dd-stat-card,.dh-stat):nth-child(4n+3){background:#f3f0fb!important;border-color:#e3dcef!important}
body.dcms-aligned :is(.dcms-stat-card,.dd-stat-card,.dh-stat):nth-child(4n){background:#edf7f1!important;border-color:#d4e7db!important}
body.dcms-aligned :is(.dcms-stat-card,.dd-stat-card,.dh-stat) :is(span,small){color:#535e6b!important;font-size:12px!important;line-height:1.4}
body.dcms-aligned :is(.dcms-stat-card,.dd-stat-card,.dh-stat) strong{color:var(--ui-ink)!important;font-size:28px!important;line-height:1.1}
body.dcms-aligned :is(.dcms-table-wrap,.dd-table-wrap,.dv3-table-wrap,.ops-table-wrap,.dos-table-wrap,.dcms-team-table-wrap,.dcms-install-scroll,.dcms-scroll-region){max-width:100%!important;overflow:auto!important;overscroll-behavior-inline:contain;border-radius:10px;scrollbar-width:auto;scrollbar-color:#9099a5 #e9ecf0}
body.dcms-aligned :is(.dcms-table,.dd-table,.dv3-table,.ops-table,.dos-table,.dcms-team-table,.dcms-install-scroll table){width:100%;border-collapse:collapse}
body.dcms-aligned :is(.dcms-table,.dd-table,.dv3-table,.ops-table,.dos-table,.dcms-team-table,.dcms-install-scroll table) th{background:#f7f8fa!important;color:#535e6a!important;font-size:11px!important;letter-spacing:.04em;padding:12px!important;text-align:left}
body.dcms-aligned :is(.dcms-table,.dd-table,.dv3-table,.ops-table,.dos-table,.dcms-team-table,.dcms-install-scroll table) td{font-size:13px!important;padding:12px!important;border-bottom:1px solid #edf0f3!important;vertical-align:top}
body.dcms-aligned .dcms-scroll-region{position:relative}
body.dcms-aligned .dcms-scroll-hint{font-size:12px;color:var(--ui-muted);margin:8px 0}
body.dcms-aligned :is(.ops-board,.ops-board-scroll,.dv3-scroll){max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
/* Office chrome: same dark rail, orange selection and white toolbar as DOT CRM. */
body.dcms-aligned.dcms-office-shell-page{--doc-top:72px;padding-top:var(--dcms-stack-height,calc(var(--doc-top) + var(--dot-network-height,0px) + env(safe-area-inset-top,0px)))!important;padding-bottom:0!important}
body.dcms-aligned .doc-topbar{height:72px!important;grid-template-columns:214px minmax(140px,1fr) minmax(160px,320px) auto!important;gap:16px!important;padding:0 20px!important;background:#fff!important;z-index:90020}
body.dcms-aligned .doc-brand{width:100%!important;height:72px!important;padding:0!important}
body.dcms-aligned .doc-brand img.doc-brand-logo{width:184px!important;max-width:100%!important;max-height:43px!important;object-fit:contain!important}
body.dcms-aligned .doc-page-context{display:flex!important;flex-direction:column;min-width:0}
body.dcms-aligned .doc-page-context strong{font-size:16px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.dcms-aligned .doc-page-context small{font-size:11px!important;color:var(--ui-muted)!important}
body.dcms-aligned .doc-search-launch{width:100%!important;min-width:0!important;min-height:42px!important;max-height:44px!important;border-radius:10px!important;font-size:13px!important}
body.dcms-aligned .doc-actions{gap:8px!important;min-width:0}
body.dcms-aligned .doc-icon-btn{width:44px!important;height:44px!important;border-radius:10px!important;flex:0 0 44px}
body.dcms-aligned .doc-user-btn{min-height:44px!important;min-width:44px!important;padding:3px!important}
body.dcms-aligned .doc-user-btn em{max-width:130px}
body.dcms-aligned .doc-sidebar{width:238px!important;top:72px!important;background:#15171b!important;color:#b6bdc7!important;border-color:#2d3036!important;padding:18px 10px!important}
body.dcms-aligned .doc-nav-section>span{font-size:10px!important;color:#959eaa!important;letter-spacing:.12em}
body.dcms-aligned .doc-nav-section a{height:auto!important;min-height:42px!important;padding:10px 12px!important;border-radius:8px!important;color:#bcc3cd!important;font-size:13px!important;line-height:1.4}
body.dcms-aligned .doc-nav-section a.active{background:#292c31!important;color:#fff!important;box-shadow:inset 3px 0 #ff6900!important}
body.dcms-aligned .doc-nav-section a:hover{background:#24272d!important;color:#fff!important}
body.dcms-aligned .doc-sidebar-foot{border-color:#30343b!important;color:#a6aeb9!important}
body.dcms-aligned .doc-sidebar-foot strong{color:#c1c7d0!important}
body.dcms-aligned .doc-pagebar{margin:0!important;padding:16px 20px!important;min-height:0!important;background:transparent!important;border:0!important;gap:12px;flex-wrap:wrap}
body.dcms-aligned :is(.dh-main,.dh-ai-main,.dcms-dealer-main,.ops-main,.dns-main,.dt-main,.prod-main,.dos-app,.dv3-main,.dcms-team-main,.dcms-dealer-metrics){max-width:1680px!important;width:calc(100% - 40px)!important;margin:16px auto!important;padding:0!important;min-width:0!important;}
body.dcms-aligned .doc-drawer{max-width:min(440px,100vw)!important;height:100dvh!important;max-height:100dvh;overflow-y:auto;padding-bottom:env(safe-area-inset-bottom)}
body.dcms-aligned .doc-user-menu{max-width:calc(100vw - 24px)!important}
body.dcms-aligned .doc-search-panel{max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 40px)!important;overflow:auto}
/* Technician desktop gets a real application frame instead of a stretched phone column. */
body.dcms-aligned:has(#dot-dcms-app){padding:0!important}
body.dcms-aligned #dot-dcms-app{width:100%!important;max-width:none!important;margin:0!important;padding:72px 0 0!important;background:var(--ui-bg)!important;min-height:100dvh}
body.dcms-aligned #dot-dcms-app .dcms-tech-topbar{position:fixed;inset:0 0 auto 0;z-index:1000;height:72px;background:#fff;border-bottom:1px solid var(--ui-line);display:flex;align-items:center;gap:24px;padding:0 22px}
body.dcms-aligned .dcms-tech-brand{display:flex;align-items:center;width:192px;min-height:44px;flex:0 1 192px}
body.dcms-aligned .dcms-tech-brand img{width:184px;max-width:100%;max-height:42px;object-fit:contain}
body.dcms-aligned .dcms-tech-context{display:flex;flex-direction:column;font-size:16px;min-width:0}
body.dcms-aligned .dcms-tech-context small{font-size:11px;color:var(--ui-muted)}
body.dcms-aligned .dcms-tech-signout{margin-left:auto;min-height:44px;display:flex;align-items:center;color:#4d5662;font-size:13px;text-decoration:none}
body.dcms-aligned #dot-dcms-app .dcms-main{max-width:1500px!important;width:calc(100% - 40px)!important;margin:20px auto!important;padding:0 0 30px!important}
body.dcms-aligned #dot-dcms-app .dcms-section{max-width:none!important}
body.dcms-aligned #dot-dcms-app .dcms-section:not(.active){display:none!important}
body.dcms-aligned #dot-dcms-app .dcms-section.active{display:block!important}
body.dcms-aligned #dot-dcms-app .dcms-dashboard-head{padding:20px!important;margin:0 0 16px!important;border-radius:12px!important;border:1px solid var(--ui-line)!important;background:#fff!important;color:var(--ui-ink)!important;box-shadow:none!important}
body.dcms-aligned #dot-dcms-app .dcms-dashboard-head h1{font-size:24px!important;color:var(--ui-ink)!important;margin:3px 0!important}
body.dcms-aligned #dot-dcms-app .dcms-dashboard-head :is(small,.dcms-welcome){color:var(--ui-muted)!important;font-size:12px!important}
body.dcms-aligned #dot-dcms-app .dcms-avatar{background:var(--ui-soft)!important;color:#aa4300!important;border-radius:12px!important;box-shadow:none!important;width:48px!important;height:48px!important;font-size:16px!important}
body.dcms-aligned #dot-dcms-app .dcms-menu-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important;align-items:start}
body.dcms-aligned #dot-dcms-app .dcms-accordion{margin:0!important;border:1px solid var(--ui-line)!important;border-radius:12px!important;overflow:hidden;box-shadow:none!important;background:#fff!important}
body.dcms-aligned #dot-dcms-app .dcms-menu-main{min-height:52px!important;padding:14px 16px!important;background:#fff!important;color:var(--ui-ink)!important;font-size:14px!important;font-weight:700!important;border:0!important;border-radius:10px!important;margin:0!important;text-align:left!important;box-shadow:none!important;width:100%}
body.dcms-aligned #dot-dcms-app .dcms-submenu button{min-height:44px!important;font-size:13px!important;padding:10px 16px!important;text-align:left!important;white-space:normal!important}
body.dcms-aligned #dot-dcms-app .dcms-back{width:44px!important;height:44px!important;flex:0 0 44px;border-radius:10px!important;border:1px solid var(--ui-line)!important;background:#fff!important;color:var(--ui-ink)!important;display:grid;place-items:center;font-size:25px!important}
body.dcms-aligned #dot-dcms-app .dcms-section-header{justify-content:flex-start!important}
body.dcms-aligned #dot-dcms-app .dcms-section-header h2{font-size:22px!important;margin:0!important}
body.dcms-aligned #dot-dcms-app .dcms-job-card{margin-bottom:16px!important}
body.dcms-aligned #dot-dcms-app .dcms-card-bar{padding:10px 18px!important;background:#fff3e9!important;color:#924000!important;font-size:13px!important;border-bottom:1px solid #f1dbc9!important;border-radius:12px 12px 0 0!important}
body.dcms-aligned #dot-dcms-app .dcms-card-body h3{font-size:20px!important;margin:0 0 8px!important}
body.dcms-aligned #dot-dcms-app .dcms-muted{font-size:13px!important;color:var(--ui-muted)!important}
body.dcms-aligned #dot-dcms-app .dcms-field-status{background:#f7f8fa!important;border:1px solid var(--ui-line)!important;border-radius:10px!important;padding:12px!important}
body.dcms-aligned #dot-dcms-app .dcms-status-chip{min-height:44px!important;padding:10px 16px!important;font-size:13px!important;border-radius:10px!important;background:#fff!important;border:1px solid #ccd3db!important;color:#343e4b!important}
body.dcms-aligned #dot-dcms-app .dcms-status-chip.active{background:#fff1e7!important;color:#984000!important;border-color:#dfaa84!important}
body.dcms-aligned #dot-dcms-app .dcms-manager-portal-back{position:static!important;display:flex!important;justify-content:center;align-items:center;min-height:42px!important;margin:14px 20px 0 auto!important;padding:9px 14px!important;width:max-content;max-width:calc(100% - 40px);font-size:13px!important;border:1px solid #ccd3db!important;border-radius:10px!important;background:#fff!important;color:#313b47!important;text-decoration:none}
body.dcms-aligned #dot-dcms-app .dcms-bottom-nav{background:#fff!important;border-color:var(--ui-line)!important;box-shadow:none!important;gap:4px;padding:8px;}
body.dcms-aligned #dot-dcms-app .dcms-bottom-nav button{min-width:0!important;min-height:48px!important;font-size:12px!important;padding:8px!important;line-height:1.3!important;white-space:normal!important;background:transparent!important;color:#5c6672!important;border-radius:8px!important;display:flex!important;align-items:center;justify-content:center;gap:8px}
body.dcms-aligned #dot-dcms-app .dcms-bottom-nav button.active{background:#fff1e7!important;color:#924000!important}
body.dcms-aligned .dcms-nav-icon{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
/* Dialogs: only the body scrolls. Close and final action stay within the viewport. */
body.dcms-aligned .dcms-modal{position:fixed!important;inset:0!important;padding:24px!important;z-index:100200!important;background:#10141dad!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
body.dcms-aligned .dcms-modal:not(.open){display:none!important}
body.dcms-aligned .dcms-modal.open{display:flex!important}
body.dcms-aligned .dcms-modal .dcms-modal-card{position:relative!important;width:min(900px,100%)!important;max-width:100%!important;max-height:calc(100dvh - 48px)!important;border:1px solid var(--ui-line)!important;border-radius:16px!important;padding:0!important;background:#fff!important;overflow:auto!important;box-shadow:0 20px 70px #0003!important}
body.dcms-aligned .dcms-modal .dcms-modal-card>h3{position:sticky;top:0;z-index:4;padding:20px 70px 18px 22px!important;margin:0!important;min-height:68px;background:#fff;border-bottom:1px solid var(--ui-line);font-size:20px!important}
body.dcms-aligned .dcms-modal .dcms-modal-close{position:sticky!important;float:right;top:12px!important;right:auto!important;margin:12px 12px -56px 0!important;width:44px!important;height:44px!important;z-index:6!important;border:1px solid #ccd3db!important;border-radius:10px!important;background:#fff!important;color:#222!important;font-size:25px!important;line-height:1!important}
body.dcms-aligned .dcms-modal .dcms-form{padding:18px 22px 22px!important;margin:0!important}
body.dcms-aligned .dcms-modal .dcms-form>button[type=submit]{position:sticky;bottom:0;z-index:3;min-height:46px!important;box-shadow:0 -6px 12px #fff!important;width:100%;margin-top:18px!important}
body.dcms-aligned .dcms-modal :is(input,select,textarea,button){scroll-margin-block:88px}
body.dcms-aligned .dcms-modal :is(.dcms-form-message,.dcms-install-panel){overflow-wrap:anywhere}
body.dcms-aligned #dcms-install-service-checklist{margin:0 0 16px!important}
body.dcms-aligned .dcms-install-check{display:flex!important;align-items:flex-start!important;gap:10px;padding:10px!important;min-height:44px!important;border-radius:8px!important;background:#f7f8fa;margin:6px 0!important}
body.dcms-aligned .dcms-install-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
body.dcms-aligned .dcms-install-grid label{display:flex;flex-direction:column;gap:6px}
body.dcms-aligned .dcms-install-panel fieldset{min-width:0;border:1px solid var(--ui-line);border-radius:10px;padding:12px}
body.dcms-aligned .dcms-sync-strip{max-width:1680px;width:calc(100% - 40px);margin:14px auto;display:flex;align-items:center;gap:14px;padding:12px 14px;border:1px solid var(--ui-line);border-radius:12px;background:#fff;box-shadow:0 2px 8px #15171b03}
body.dcms-aligned .dcms-sync-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:13px}
body.dcms-aligned .dcms-sync-copy strong{font-size:13px}
body.dcms-aligned .dcms-sync-copy small{font-size:12px;color:var(--ui-muted);overflow-wrap:anywhere}
body.dcms-aligned .dcms-sync-dot{width:9px;height:9px;border-radius:50%;background:#737d89;flex:0 0 9px}
body.dcms-aligned .dcms-sync-strip[data-state=idle] .dcms-sync-dot{background:#287851}
body.dcms-aligned .dcms-sync-strip:is([data-state=needs_attention],[data-state=setup_required],[data-state=worker_stale],[data-state=unavailable]){background:#fff9ed;border-color:#edddb9}
body.dcms-aligned .dcms-sync-strip:is([data-state=needs_attention],[data-state=worker_stale],[data-state=unavailable]) .dcms-sync-dot{background:#9b6817}
body.dcms-aligned .dcms-sync-buttons{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
body.dcms-aligned .dcms-install-banner{max-width:1680px;width:calc(100% - 40px);margin:14px auto!important;padding:14px!important;border:1px solid #e8d9c6!important;border-radius:12px!important;background:#fff8ef!important;color:#69492a!important;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
body.dcms-aligned :is(.dcms-install-error,.dcms-form-message.error){padding:12px!important;border:1px solid #efc6cc!important;border-radius:9px;background:#fff1f2!important;color:#9b2f3d!important;font-size:14px!important}
body.dcms-aligned .dcms-install-error:empty,body.dcms-aligned .dcms-form-message:empty{display:none!important}
@media(min-width:1000px){
 body.dcms-aligned.dcms-office-shell-page{padding-left:238px!important}
 body.dcms-aligned #dot-dcms-app{padding-left:238px!important}
 body.dcms-aligned #dot-dcms-app .dcms-bottom-nav{position:fixed!important;left:0!important;top:72px!important;bottom:0!important;right:auto!important;width:238px!important;height:auto!important;max-width:none!important;transform:none!important;border-right:1px solid #2c3037!important;border-radius:0!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:stretch!important;padding:18px 10px!important;background:#15171b!important;z-index:990!important}
 body.dcms-aligned #dot-dcms-app .dcms-bottom-nav button{flex:0 0 auto!important;justify-content:flex-start!important;padding:12px!important;color:#bcc3cd!important}
 body.dcms-aligned #dot-dcms-app .dcms-bottom-nav button.active{background:#292c31!important;color:#fff!important;box-shadow:inset 3px 0 #ff6900}
 body.dcms-aligned #dot-dcms-app .dcms-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.dcms-aligned #dot-dcms-app .dcms-form:not(#dcms-complete-job-form){max-width:1040px}
}
@media(min-width:1400px){body.dcms-aligned #dot-dcms-app .dcms-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:1199px) and (min-width:1000px){body.dcms-aligned .doc-user-btn em{display:none!important}body.dcms-aligned .doc-topbar{gap:12px!important;grid-template-columns:206px minmax(125px,1fr) minmax(130px,240px) auto!important}}
@media(max-width:999px){
 body.dcms-aligned.dcms-office-shell-page{--doc-top:68px;padding-left:0!important;padding-top:var(--dcms-stack-height,calc(var(--doc-top) + var(--dot-network-height,0px) + env(safe-area-inset-top,0px)))!important;padding-bottom:calc(84px + env(safe-area-inset-bottom))!important}
 body.dcms-aligned .doc-sidebar{display:none!important}
 body.dcms-aligned .doc-topbar{height:68px!important;padding:0 14px!important;grid-template-columns:minmax(100px,1fr) 44px auto!important;gap:8px!important}
 body.dcms-aligned .doc-brand{height:68px!important;max-width:184px!important}
 body.dcms-aligned .doc-page-context{display:none!important}
 body.dcms-aligned .doc-search-launch{padding:0!important;justify-content:center!important;width:44px!important;height:44px!important;}
 body.dcms-aligned .doc-search-launch :is(span,kbd){display:none!important}
 body.dcms-aligned .doc-user-btn em{display:none!important}
 body.dcms-aligned :is(.doc-mobile-nav,.doc-bottom-nav){position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:90015!important;display:flex!important;min-height:68px!important;height:auto!important;padding:6px 8px calc(6px + env(safe-area-inset-bottom))!important;background:#fff!important;gap:4px!important;border-top:1px solid var(--ui-line)!important}
 body.dcms-aligned :is(.doc-mobile-nav,.doc-bottom-nav)>*{min-width:0!important;min-height:52px!important;flex:1!important;font-size:11px!important;padding:6px 4px!important;white-space:normal!important;text-align:center!important;line-height:1.25!important}
 body.dcms-aligned #dot-dcms-app{padding-top:68px!important;padding-bottom:calc(82px + env(safe-area-inset-bottom))!important}
 body.dcms-aligned #dot-dcms-app .dcms-tech-topbar{height:68px;padding:0 14px;gap:12px}
 body.dcms-aligned #dot-dcms-app .dcms-bottom-nav{position:fixed!important;bottom:0!important;left:0!important;right:0!important;width:100%!important;max-width:none!important;transform:none!important;border-radius:0!important;height:auto!important;min-height:68px!important;display:flex!important;z-index:1000!important;padding:6px 6px calc(6px + env(safe-area-inset-bottom))!important}
 body.dcms-aligned #dot-dcms-app .dcms-bottom-nav button{flex:1!important;flex-direction:column!important;gap:4px!important;font-size:11px!important;min-height:52px!important;padding:6px 3px!important}
 body.dcms-aligned #dot-dcms-app .dcms-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.dcms-aligned :is(.dcms-team-grid,.ops-dashboard-grid,.ops-command-grid,.dh-ai-lower-grid){grid-template-columns:minmax(0,1fr)!important}
 body.dcms-aligned .dcms-sync-strip{align-items:flex-start}
}
@media(max-width:639px){
 body.dcms-aligned :is(.dh-main,.dh-ai-main,.dcms-dealer-main,.ops-main,.dns-main,.dt-main,.prod-main,.dos-app,.dv3-main,.dcms-team-main,.dcms-dealer-metrics){width:calc(100% - 24px)!important;margin:12px auto!important}
 body.dcms-aligned .doc-topbar{padding:0 10px!important;gap:6px!important}
 body.dcms-aligned .doc-brand img.doc-brand-logo{width:150px!important}
 body.dcms-aligned .doc-actions{gap:4px!important}
 body.dcms-aligned .doc-pagebar{padding:14px 12px!important}
 body.dcms-aligned :is(.dcms-form-grid,.dd-form-grid,.dv3-form-grid,.ops-form-grid,.dos-grid-form,.prod-form-grid,.dcms-team-form-grid,.dcms-install-grid,.dd-filter-grid,.dd-record-edit-grid,.dv3-rule-grid){grid-template-columns:minmax(0,1fr)!important}
 body.dcms-aligned :is(.dcms-form-grid,.dd-form-grid,.dv3-form-grid,.ops-form-grid,.dos-grid-form,.prod-form-grid,.dcms-team-form-grid)>*{grid-column:1/-1!important}
 body.dcms-aligned :is(.dcms-form,.dd-form,.dv3-form,.ops-form,.dos-app,.prod-form,.dns-form,.dcms-team-form,.dd-filter-form,.dv3-filter,.dcms-install-panel) :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important;min-height:46px!important}
 body.dcms-aligned :is(.dcms-btn,.dd-btn,.dv3-btn,.ops-btn,.dos-btn,.dh-btn,.dh-ai-btn,.dcms-sync-action){min-height:44px!important}
 body.dcms-aligned :is(.dcms-btn-row,.dd-form-action-bar,.dv3-wizard-actions,.dv3-editor-actions,.ops-page-actions,.doc-pagebar-actions)>:is(a,button){flex:1 1 135px!important}
 body.dcms-aligned :is(.dcms-card-body,.dd-card,.ops-card,.dv3-panel,.dh-ai-card,.dcms-install-panel){padding:14px!important}
 body.dcms-aligned :is(.dd-stat-grid,.dh-stats,.dcms-metrics-kpi-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.dcms-aligned :is(.dcms-stat-card,.dd-stat-card,.dh-stat){padding:13px!important;min-height:112px!important}
 body.dcms-aligned :is(.dd-hero,.dh-ai-hero,.ops-hero,.dcms-hero-card){padding:16px!important}
 body.dcms-aligned #dot-dcms-app .dcms-main{width:calc(100% - 24px)!important;margin:12px auto!important}
 body.dcms-aligned #dot-dcms-app .dcms-tech-context{display:none}
 body.dcms-aligned #dot-dcms-app .dcms-menu-list{grid-template-columns:minmax(0,1fr)!important}
 body.dcms-aligned #dot-dcms-app .dcms-section-header h2{font-size:20px!important}
 body.dcms-aligned #dot-dcms-app .dcms-manager-portal-back{margin:12px 12px 0 auto!important}
 body.dcms-aligned .dcms-modal{padding:8px!important;padding-top:max(8px,env(safe-area-inset-top))!important;padding-bottom:max(8px,env(safe-area-inset-bottom))!important}
 body.dcms-aligned .dcms-modal .dcms-modal-card{max-height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;border-radius:12px!important}
 body.dcms-aligned .dcms-modal .dcms-modal-card>h3{font-size:18px!important;padding:18px 64px 16px 16px!important}
 body.dcms-aligned .dcms-modal .dcms-form{padding:14px!important}
 body.dcms-aligned .dcms-sync-strip{width:calc(100% - 24px);margin:12px auto;gap:10px;flex-wrap:wrap}
 body.dcms-aligned .dcms-sync-copy{flex:1 1 calc(100% - 30px)}
 body.dcms-aligned .dcms-sync-buttons{width:100%;display:grid;grid-template-columns:1fr 1fr}
 body.dcms-aligned .dcms-install-banner{width:calc(100% - 24px)}
 body.dcms-aligned .dcms-install-panel table.dcms-mobile-records,body.dcms-aligned .dcms-install-panel table.dcms-mobile-records tbody,body.dcms-aligned .dcms-install-panel table.dcms-mobile-records tr,body.dcms-aligned .dcms-install-panel table.dcms-mobile-records td{display:block!important;width:100%!important;min-width:0!important}
 body.dcms-aligned .dcms-install-panel table.dcms-mobile-records thead{position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden}
 body.dcms-aligned .dcms-install-panel table.dcms-mobile-records tr{padding:8px!important;margin-bottom:12px;border:1px solid var(--ui-line);border-radius:10px;background:#fff}
 body.dcms-aligned .dcms-install-panel table.dcms-mobile-records td{border:0!important;padding:8px!important;overflow-wrap:anywhere}
 body.dcms-aligned .dcms-install-panel table.dcms-mobile-records td[data-label]::before{content:attr(data-label);display:block;font-size:11px;font-weight:750;color:var(--ui-muted);margin-bottom:4px;text-transform:uppercase;letter-spacing:.04em}
}
@media(prefers-reduced-motion:reduce){body.dcms-aligned *,body.dcms-aligned *::before,body.dcms-aligned *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{body.dcms-aligned{padding:0!important;background:#fff!important}body.dcms-aligned :is(.doc-topbar,.doc-sidebar,.doc-mobile-nav,.doc-bottom-nav,.dcms-bottom-nav,.dcms-tech-topbar,.dcms-sync-buttons){display:none!important}}
/* Final source-template alignment (Office shell uses doc-nav-group). */
body.dcms-aligned .doc-nav-group>span{color:#adb6c3!important;font-size:10px!important;letter-spacing:.12em!important}
body.dcms-aligned .doc-nav-group a{color:#c8d0dc!important;min-height:42px!important;padding:10px 12px!important;border-radius:8px!important;font-size:13px!important;line-height:1.35!important}
body.dcms-aligned .doc-nav-group a.active,body.dcms-aligned .doc-nav-group a:hover{background:#292c31!important;color:#fff!important;box-shadow:inset 3px 0 #ff6900!important}
body.dcms-aligned .doc-nav-group{border-color:#323741!important}
body.dcms-aligned .doc-search-launch{display:flex!important}
body.dcms-aligned .dh-ai-hero{grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr)!important;gap:16px!important;padding:0!important;border:0!important;background:transparent!important;align-items:stretch!important;box-shadow:none!important}
body.dcms-aligned .dh-ai-hero-copy{padding:22px!important;background:#fff!important;background-image:none!important;border:1px solid var(--ui-line)!important;border-radius:12px!important;box-shadow:none!important;min-width:0!important;color:var(--ui-ink)!important}
body.dcms-aligned .dh-ai-hero-copy::before,body.dcms-aligned .dh-ai-hero-copy::after,body.dcms-aligned .dh-ai-snapshot::after{display:none!important}
body.dcms-aligned .dh-ai-hero-copy h1{font-size:clamp(24px,2.1vw,34px)!important;line-height:1.18!important;color:var(--ui-ink)!important;max-width:30ch!important;margin:10px 0!important}
body.dcms-aligned .dh-ai-hero-copy p{color:var(--ui-muted)!important;font-size:14px!important;font-weight:500!important;margin:0 0 18px!important}
body.dcms-aligned .dh-ai-kicker{background:#fff1e7!important;color:#984000!important;font-size:10px!important}
body.dcms-aligned .dh-ai-hero-actions{justify-content:flex-start!important;margin:16px 0 0!important}
body.dcms-aligned .dh-ai-btn:is(.secondary,.ghost){background:#fff!important;color:#253040!important;border:1px solid #ccd2d9!important}
body.dcms-aligned .dh-ai-snapshot{padding:18px!important;margin:0!important;border:1px solid var(--ui-line)!important;background:#fff!important;box-shadow:none!important;min-width:0!important}
body.dcms-aligned .dh-ai-snapshot h2{font-size:21px!important;margin:12px 0 8px!important;line-height:1.25!important}
body.dcms-aligned .dh-ai-snapshot>p{font-size:13px!important;line-height:1.5!important;color:var(--ui-muted)!important;font-weight:400!important}
body.dcms-aligned .dh-ai-mini-status{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin-top:12px!important}
body.dcms-aligned .dh-ai-mini-status>span{padding:10px!important;min-width:0!important}
body.dcms-aligned .dh-ai-kpi-strip{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important;gap:12px!important;margin:16px 0!important}
body.dcms-aligned .dh-ai-kpi-strip{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important}
body.dcms-aligned .dh-ai-kpi-strip .dh-stat{min-height:125px!important;padding:14px!important;gap:8px!important;display:flex!important;align-items:flex-start!important;justify-content:flex-start!important}
body.dcms-aligned .dh-ai-kpi-strip .dh-stat>span:not(.dh-stat-icon){display:flex!important;flex-direction:column!important;gap:4px!important;width:100%!important;align-items:flex-start!important;min-width:0!important}
body.dcms-aligned .dh-ai-kpi-strip .dh-stat em{position:static!important;font-size:11px!important;line-height:1.3!important;max-width:100%!important}
body.dcms-aligned .dh-ai-kpi-strip .dh-stat small{font-size:11px!important;line-height:1.4!important}
body.dcms-aligned .dh-ai-workbench{grid-template-columns:minmax(0,1fr)!important;margin:16px 0!important}
body.dcms-aligned .dh-ai-alert-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
body.dcms-aligned .dh-ai-panel-head{align-items:flex-start!important;gap:6px!important;flex-direction:column!important;margin-bottom:14px!important}
body.dcms-aligned .dh-ai-panel-head h2{font-size:20px!important;margin:0!important}
body.dcms-aligned #dot-dcms-app .dcms-bottom-nav button::before,body.dcms-aligned #dot-dcms-app .dcms-bottom-nav button::after{display:none!important;content:none!important}
body.dcms-aligned #dot-dcms-app .dcms-manager-portal-back{box-shadow:none!important}
body.dcms-aligned #dot-dcms-app .dcms-stat-card::before{background:currentColor!important;opacity:.25!important}
body.dcms-aligned .dcms-inventory-action-row{min-width:0!important}
@media(max-width:1100px){body.dcms-aligned .dh-ai-hero{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:639px){
 body.dcms-aligned .dh-ai-hero{gap:12px!important}
 body.dcms-aligned .dh-ai-hero-copy{padding:16px!important}
 body.dcms-aligned .dh-ai-hero-copy h1{font-size:25px!important}
 body.dcms-aligned .dh-ai-hero-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 body.dcms-aligned .dh-ai-hero-actions a{min-width:0!important;padding:10px 8px!important;font-size:12px!important}
 body.dcms-aligned .dh-ai-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 body.dcms-aligned .dh-ai-kpi-strip .dh-stat{min-height:136px!important}
 body.dcms-aligned .dh-ai-alert-list{grid-template-columns:minmax(0,1fr)!important}
 body.dcms-aligned .doc-topbar{grid-template-columns:minmax(85px,1fr) 44px auto!important}
 body.dcms-aligned .doc-brand img.doc-brand-logo{max-width:100%!important}
 body.dcms-aligned .doc-icon-btn,body.dcms-aligned .doc-user-btn{min-width:44px!important;min-height:44px!important}
 body.dcms-aligned .dcms-inventory-action-row{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
 body.dcms-aligned .dcms-inventory-action-row>*{flex:1 1 130px!important;min-width:0!important}
}
body.dcms-aligned.dcms-office-shell-page .dh-ai-dashboard .dh-ai-hero-copy h1{color:#15171b!important;text-shadow:none!important;-webkit-text-fill-color:#15171b!important}
body.dcms-aligned.dcms-office-shell-page .dh-ai-dashboard .dh-ai-hero-copy p{color:#59636f!important;text-shadow:none!important}
body.dcms-aligned.dcms-office-shell-page .dh-ai-dashboard .dh-ai-hero-copy .dh-ai-kicker{color:#984000!important;text-shadow:none!important}
body.dcms-aligned .dh-ai-hero{display:grid!important;min-height:0!important}
@media(max-width:639px){body.dcms-aligned .dh-ai-footer{display:flex!important;flex-direction:column!important;align-items:center!important;gap:6px!important;padding:16px 8px!important;line-height:1.6!important}}

/* 3.5.2: reserve the complete measured fixed-header stack exactly once. */
body.dcms-aligned.dcms-office-shell-page .dot-network-bar{
 height:calc(var(--dot-network-height,38px) + env(safe-area-inset-top,0px));
 padding-top:env(safe-area-inset-top,0px);top:0!important;
}
body.dcms-aligned.dcms-office-shell-page .doc-topbar{
 top:var(--dcms-network-size,calc(var(--dot-network-height,0px) + env(safe-area-inset-top,0px)))!important;
}
body.dcms-aligned.dcms-office-shell-page .doc-sidebar{
 top:var(--dcms-stack-height,calc(var(--doc-top) + var(--dot-network-height,0px) + env(safe-area-inset-top,0px)))!important;
}
html.dcms-office-offsets{scroll-padding-top:calc(var(--dcms-stack-height,110px) + 12px)}
@media print{
 body.dcms-aligned.dcms-office-shell-page{padding:0!important}
 body.dcms-aligned.dcms-office-shell-page .dot-network-bar{display:none!important}
 html.dcms-office-offsets{scroll-padding-top:0}
}
