/* Model 1: complete visual treatment, scoped to the management application. */
@media screen{
 html body{--ink:#15243c;--muted:#64748b;--line:#e0e7ef;--pale:#f5f8fc;--surface:#fff;background:#f5f8fc;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:13px}
 html body>.sidebar{width:232px!important;padding:0 12px 14px!important;background:linear-gradient(155deg,var(--navy),var(--teal))!important;border:0;box-shadow:none;z-index:110}
 html body>.main{margin-left:232px!important;padding:0 20px 46px!important;min-width:0}
 html body .sidebar .brand{height:66px;min-height:66px;padding:12px 4px!important;gap:10px;position:relative;border-bottom:1px solid #ffffff10;margin-bottom:12px}
 html body .sidebar .brand-mark{width:32px!important;height:32px!important;min-width:32px!important;border-radius:7px!important;background:transparent!important}
 html body .sidebar .brand-mark img{padding:0!important}
 html body .sidebar .brand strong{font-size:16px!important;font-weight:600;letter-spacing:-.3px;max-width:146px}
 html body .sidebar .brand small,html body .sidebar .brand-version,html body .sidebar-note{display:none!important}
 html body #m1Pin{border:0;background:transparent;color:#a5c8dc;width:28px;height:28px;padding:5px;position:absolute;right:-8px;bottom:-12px;border-radius:6px;cursor:pointer;z-index:5}
 html body #m1Pin:hover,html body #m1Pin:focus-visible{background:#204b62;color:#fff;outline:2px solid #6dcbe5}
 html body #m1Pin[aria-pressed=true] svg{fill:#80bbd133}
 html body #m1Pin[aria-pressed=false] svg{transform:rotate(40deg);opacity:.8}
 html body .sidebar #nav{gap:2px;padding:0;flex:1;overflow-y:auto;scrollbar-width:thin}
 html body .sidebar .sidebar-exit{margin-top:12px!important;border-top:1px solid #ffffff16!important;border-radius:0!important}
 html body.m1-unpinned>.sidebar{width:64px!important;padding:0 8px 12px!important;overflow-x:hidden;transition:width .16s ease}
 html body.m1-unpinned>.main{margin-left:64px!important}
 html body.m1-unpinned>.sidebar:not(:hover):not(:focus-within) .brand>div,html body.m1-unpinned>.sidebar:not(:hover):not(:focus-within) .nav-section-toggle strong,html body.m1-unpinned>.sidebar:not(:hover):not(:focus-within) .nav-section-toggle b,html body.m1-unpinned>.sidebar:not(:hover):not(:focus-within) .client-nav-heading{display:none!important}
 html body.m1-unpinned>.sidebar:not(:hover):not(:focus-within) .nav-btn{font-size:0!important;gap:0;justify-content:center;padding:10px!important}
 html body.m1-unpinned>.sidebar:not(:hover):not(:focus-within) .nav-btn>span:not(:first-child),html body.m1-unpinned>.sidebar:not(:hover):not(:focus-within) .nav-submenu{display:none!important}
 html body.m1-unpinned>.sidebar:hover,html body.m1-unpinned>.sidebar:focus-within{width:232px!important;box-shadow:8px 0 30px #08223326}
 html body.m1-unpinned #m1Pin{right:0;bottom:-10px}
 html body .topbar{height:66px!important;min-height:66px!important;padding:12px 20px!important;margin:0 -20px!important;border-bottom:1px solid var(--line);background:#fff!important;box-shadow:none!important;gap:14px;position:sticky;top:0;z-index:100}
 html body .topbar>.global-search{width:min(560px,58vw)!important;max-width:none!important;flex:1 1 400px;min-width:100px;height:36px!important;border:1px solid #dce4ee!important;background:#f7f9fc!important;border-radius:7px!important}
 html body .topbar .global-search input{height:34px!important;min-height:0!important;max-height:34px!important;background:transparent!important;font-size:12px!important}
 html body .top-actions{flex:0 0 auto;gap:14px!important;margin-left:auto}
 html body #appHelpButton{border:0!important;background:transparent!important;box-shadow:none!important;color:#536780!important;font-size:0!important;width:28px!important;min-width:28px!important;padding:0!important}
 html body #appHelpButton:after{content:'?';font-size:14px;border:1.5px solid currentColor;border-radius:50%;width:18px;height:18px;display:grid;place-items:center}
 html body #appHelpButton svg{display:none!important}
 html body .m1-account{position:relative;font-size:12px}
 html body .m1-account>summary{list-style:none;display:flex;align-items:center;gap:10px;cursor:pointer;min-height:36px}
 html body summary::-webkit-details-marker{display:none}
 html body .m1-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#284e76;color:#fff;font-size:11px;font-weight:650}
 html body .m1-account-panel{position:absolute;right:0;top:42px;width:235px;display:flex;flex-direction:column;gap:7px;padding:12px;border:1px solid var(--line);background:white;border-radius:8px;box-shadow:0 8px 25px #12294420}
 html body .m1-account:not([open])>.m1-account-panel{display:none}
 html body .m1-account-panel .btn{width:100%!important;justify-content:flex-start!important;box-shadow:none!important;min-height:34px!important}
 html body .m1-account-panel #globalClock{box-shadow:none!important;border:0!important;background:#f3f7fb!important;color:var(--ink)!important;width:100%;margin:0!important}
 html body #m1PageHeading{padding:22px 4px 17px;background:transparent}
 html body #m1PageHeading h1{font-size:25px!important;font-weight:650;letter-spacing:-.7px;margin:0 0 5px;color:#102138}
 html body #m1PageHeading h1 svg{display:none}
 html body #m1PageHeading .page-subtitle-line{font-size:12px;margin:0;gap:16px}
 html body:is(.client-pilot-page,.page-workspace-active) #m1PageHeading{display:none}
 html body .app-status-footer{left:232px!important;height:34px!important;min-height:34px!important;padding:5px 20px!important;background:#fff!important;border-top:1px solid var(--line);box-shadow:none!important;font-size:11px!important;gap:12px}
 html body.m1-unpinned .app-status-footer{left:64px!important}
 html body .m1-footer-brand{font-size:11px;color:#53647a;white-space:nowrap}
 html body .app-backup-status{font-size:10px!important;flex:1}
 html body .app-footer-user{display:flex!important;align-items:center;gap:6px}
 html body .app-footer-user small{font-size:10px}
 html body :is(.btn,button,summary){font-family:inherit}
 html body .btn{box-shadow:none!important;font-size:12px!important;border-radius:6px!important;min-height:32px!important;font-weight:500}
 html body .btn.primary{background:var(--blue)!important;border-color:var(--blue)!important;color:white!important}
 html body .btn:not(.primary):not(.danger){box-shadow:none!important}
 html body .btn svg,html body .btn .btn-icon{width:17px!important;height:17px!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;padding:0!important}
 /* One command row for registers. Native controls remain in place for module ownership. */
 html body .entity-list-panel{border:1px solid var(--line)!important;border-radius:8px!important;box-shadow:none!important;overflow:visible!important;background:white}
 html body .entity-list-panel>.panel-head{display:none!important}
 html body .entity-list-panel>.panel-body{display:flex!important;flex-direction:column!important;padding:0!important}
 html body .entity-list-panel .entity-list-controls{order:2!important;margin:0!important;padding:10px 14px!important;background:#fff!important;border:0!important;border-bottom:1px solid var(--line)!important}
 html body .entity-list-panel #entityTable{display:contents!important}
 html body .entity-list-panel .entity-selection-actions{order:1!important;display:flex!important;align-items:center!important;gap:9px!important;flex-wrap:nowrap!important;background:#f7f9fc!important;border:0!important;border-bottom:1px solid var(--line)!important;padding:8px 14px!important;min-height:49px;position:relative!important;top:auto!important}
 html body .entity-list-panel .entity-selection-actions>:is(.selection-context,[data-ca-selection-label],.entity-selected-open,.entity-selected-rustdesk,.entity-selected-bulk,.entity-selected-print,.selection-more){display:none!important}
 html body .entity-list-panel .entity-selection-actions>.m1-list-new{margin-right:auto!important;color:#0670ef!important;background:transparent!important;border:0!important;order:0!important;display:inline-flex;gap:6px;align-items:center}
 html body .entity-list-panel .entity-selection-actions>.m1-list-refresh{order:10!important;background:transparent!important;border:0!important;color:#536780!important;padding:6px!important;min-width:30px}
 html body .entity-list-panel .entity-selection-actions>.m1-menu{order:20!important}
 html body .entity-list-panel .entity-selection-actions>.entity-selected-edit{order:30!important;background:var(--blue)!important;border:1px solid var(--blue)!important;color:#fff!important;padding:7px 16px!important;border-radius:6px!important;min-width:100px}
 html body .entity-list-panel .ab-tools{display:flex!important;gap:10px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;flex-wrap:nowrap!important}
 html body .entity-list-panel .ab-tools>:is(.ab-options,.ab-info){display:none!important}
 html body .entity-list-panel #entitySearch{flex:1!important;max-width:none!important;width:auto!important;height:34px!important;border-radius:6px!important;border:1px solid #d7e0eb!important;background:white!important}
 html body .entity-list-panel #clientFilter{width:240px!important;max-width:35%!important;flex:0 1 240px!important;height:34px!important;border-radius:6px!important}
 html body .entity-list-panel .column-tools-bar{order:3!important;font-size:10px;min-height:25px;padding:4px 14px!important;margin:0!important;border:0!important;box-shadow:none!important;background:white!important;position:static!important}
 html body .entity-list-panel .column-tools-actions{display:none!important}
 html body .entity-list-panel .asset-patch-legend{font-size:10px!important}
 html body .entity-list-panel .table-wrap{order:4!important;border:0!important;border-radius:0!important;margin:0!important}
 html body .entity-list-panel .entity-pagination{order:5!important;background:white;border-top:1px solid var(--line);padding:9px 14px!important;margin:0!important;font-size:11px}
 html body .entity-list-panel :is(th,td){padding:9px 12px!important;border-color:#e5ebf2!important;font-size:12px!important;white-space:nowrap}
 html body .entity-list-panel th{background:#f5f8fc!important;color:#32465f!important;font-weight:600!important;height:35px!important}
 html body .entity-list-panel .column-filter-row input{height:26px!important;min-height:26px!important;font-size:10px!important;background:white!important;border:1px solid #e2e8f0!important;border-radius:4px!important;padding:3px 6px!important}
 html body .entity-list-panel tbody tr{background:#fff!important}
 html body .entity-list-panel tbody tr:hover{background:#f4f9ff!important}
 html body .entity-list-panel tbody tr.entity-row-selected{background:#e7f2ff!important}
 html body .entity-list-panel .machine-cell,html body .entity-list-panel .machine-cell *{color:#006458!important;font-weight:650!important}
 html body .entity-list-panel td a{color:#0670ef}
 /* Menus: compact outline symbols, no coloured button tiles. */
 html body .m1-menu{position:relative;display:inline-flex;flex:0 0 auto}
 html body .m1-menu-toggle{display:flex;align-items:center;gap:8px;background:transparent!important;border:1px solid #d6e0eb!important;color:#314963!important;font-size:12px!important;min-height:32px!important;padding:6px 11px!important;white-space:nowrap}
 html body .m1-menu-panel{width:310px;max-width:calc(100vw - 24px);padding:8px;background:white;color:#243b55;border:1px solid #dce5ef;border-radius:7px;box-shadow:0 10px 30px #17334b25;overflow:auto;z-index:10000}
 html body .m1-menu-panel[hidden]{display:none!important}
 html body .m1-menu-heading{display:block;font-size:10px;letter-spacing:.04em;font-weight:650;text-transform:uppercase;color:#7b8da3;padding:8px}
 html body .m1-menu-heading:not(:first-child){margin-top:5px;border-top:1px solid #e8edf3}
 html body .m1-option{display:flex;align-items:center;gap:9px;width:100%;min-height:32px;background:transparent;border:0;border-radius:4px;padding:7px 8px;text-align:left;color:#29445e;font-size:12px;cursor:pointer}
 html body .m1-option:hover:not(:disabled){background:#f0f6fd;color:#0567db}
 html body .m1-option:disabled{opacity:.45;cursor:not-allowed}
 html body .m1-option svg{width:17px;height:17px;flex:none}
 html body .m1-view-option{display:grid;gap:5px;font-size:11px;margin:8px}
 html body .m1-view-option select{height:32px;max-width:100%;width:100%;border:1px solid #d9e1eb;border-radius:5px;background:white}
 html body .m1-tool-status{font-size:11px;padding:0 8px;color:#708298}
 /* The form identity and actions occupy the same white header row. */
 html body #detailDialog#detailDialog.m1-detail[open]{display:grid!important;grid-template-columns:minmax(230px,1fr) auto!important;grid-template-rows:70px minmax(0,1fr)!important;overflow:hidden!important;height:calc(100dvh - 105px)!important;max-height:none!important;background:#f6f9fc!important;border:1px solid var(--line)!important;border-radius:0!important;gap:0!important}
 html body #detailDialog#detailDialog.m1-detail>.dialog-head{grid-column:1;grid-row:1;position:static!important;background:#fff!important;color:#17324b!important;border:0!important;min-height:70px!important;height:70px!important;padding:12px 20px!important;overflow:visible!important;box-shadow:none!important}
 html body #detailDialog#detailDialog.m1-detail>.dialog-head :is(h2,small,p){color:#264c60!important}
 html body #detailDialog#detailDialog.m1-detail #detailTitle{font-size:20px!important;font-weight:650!important;color:#00695f!important}
 html body #detailDialog#detailDialog.m1-detail #detailBrandLogo{display:none!important}
 html body #detailDialog#detailDialog.m1-detail .detail-header-status{font-size:10px;padding:3px 7px;background:#e9f6ef;color:#168658}
 html body #detailDialog#detailDialog.m1-detail>.dialog-head .ui-head-actions{position:absolute;right:12px;top:17px;z-index:105;margin:0!important}
 html body #detailDialog#detailDialog.m1-detail>.detail-actions{grid-column:2;grid-row:1;position:static!important;background:#fff!important;border:0!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;padding:12px 58px 12px 10px!important;flex-wrap:nowrap!important;z-index:100!important;overflow:visible!important}
 html body #detailDialog#detailDialog.m1-detail>.detail-actions>:is(.aw-status,#assetQuickActions,.detail-more,.m1-secondary-action){display:none!important}
 html body #detailDialog#detailDialog.m1-detail>.detail-actions>#detailEdit:not([hidden]){display:inline-flex!important;background:var(--blue)!important;color:white!important;border-color:var(--blue)!important;order:80!important}
 html body #detailDialog#detailDialog.m1-detail>.detail-actions>#detailRefresh{order:0!important;background:transparent!important;border:0!important;min-width:30px!important;font-size:0!important;color:#0670ef}
 html body #detailDialog#detailDialog.m1-detail>.detail-actions>.m1-menu{order:10!important}
 html body #detailDialog#detailDialog.m1-detail>.detail-actions>[data-client-pilot-action]:not(.m1-secondary-action){order:70!important}
 html body #detailDialog#detailDialog.m1-detail>.detail-actions>.ui-action-primary{order:80!important}
 html body #detailDialog#detailDialog.m1-detail>#detailWorkspace{grid-row:2;grid-column:1/-1;overflow:auto!important;min-height:0!important;padding:0 18px 20px!important;margin:0!important}
 html body #detailDialog#detailDialog.m1-detail>#businessPilotHost{grid-row:2;grid-column:1/-1;overflow:auto;min-height:0;padding:0 18px 20px}
 html body #detailDialog#detailDialog.m1-detail>:is(#detailFields,#detailContacts,#detailExtras,#detailAgent,#requestThread){grid-column:1/-1;min-width:0}
 html body #detailDialog#detailDialog.m1-detail .aw-layout{display:block!important}
 html body #detailDialog#detailDialog.m1-detail .aw-main{background:transparent!important;border:0!important;box-shadow:none!important}
 html body :is(#detailDialog#detailDialog.m1-detail,#softwareDeploymentPage.material-form-reference) .aw-tabs{position:sticky;top:0;z-index:6;background:white!important;border-bottom:1px solid var(--line);margin:0 -18px 16px;padding:0 18px;gap:20px}
 html body :is(#detailDialog#detailDialog.m1-detail,#softwareDeploymentPage.material-form-reference) .aw-tabs button{background:transparent!important;border:0!important;border-bottom:2px solid transparent!important;color:#526c86!important;font-size:12px!important;padding:11px 3px!important;border-radius:0!important;box-shadow:none!important}
 html body :is(#detailDialog#detailDialog.m1-detail,#softwareDeploymentPage.material-form-reference) .aw-tabs button.active{color:#0670ef!important;border-bottom-color:#0670ef!important}
 html body #detailDialog#detailDialog.m1-detail .aw-tab-body{padding:0!important;display:block!important}
 html body #clientPilotForm .pilot-overview-grid{display:block!important}
 html body :is(#detailDialog#detailDialog.m1-detail,#softwareDeploymentPage.material-form-reference) .aw-card{padding:16px!important;margin:0 0 13px!important;border:1px solid #e1e8f0!important;border-radius:6px!important;box-shadow:none!important;background:white!important}
 html body :is(#detailDialog#detailDialog.m1-detail,#softwareDeploymentPage.material-form-reference) .aw-card h3{font-size:14px!important;margin:0 0 14px!important;color:#19334b!important}
 html body #detailDialog#detailDialog.m1-detail dl.m1-fields{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:13px 18px!important;margin:0!important}
 html body #detailDialog#detailDialog.m1-detail dl.m1-fields>dt{display:none!important}
 html body #detailDialog#detailDialog.m1-detail dl.m1-fields>dd{margin:0!important;min-width:0}
 html body #detailDialog#detailDialog.m1-detail dl.m1-fields>dd.m1-wide{grid-column:1/-1}
 html body #detailDialog#detailDialog.m1-detail .m1-field-label{font-size:11px!important;color:#324b63;line-height:1.4;display:block!important;margin-bottom:4px}
 html body #detailDialog#detailDialog.m1-detail .form-field>:is(input,select){width:100%!important;max-width:none!important;height:32px!important;min-height:32px!important;max-height:32px!important;border:1px solid #d5e0ec!important;border-radius:5px!important;padding:5px 8px!important;font-size:12px!important;background:white!important}
 html body .m1-monitor-info{margin:10px 0 12px;border:1px solid #e0e8f1;border-radius:6px;background:#fff}
 html body .m1-monitor-info>summary{padding:9px 12px;color:#47647e;font-size:11px;cursor:pointer}
 html body .m1-monitor-info:not([open])>:not(summary){display:none!important}
 html body .m1-monitor-info>.aw-summary{margin:10px;padding:0;gap:10px}
 html body .m1-monitor-info>.aw-aside{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px}
 html body .m1-record-form:not(.business-pilot-form){display:grid!important;grid-template-columns:minmax(230px,1fr) auto!important;grid-template-rows:70px auto minmax(0,1fr)!important;height:calc(100dvh - 105px)!important;overflow:hidden!important;background:#f6f9fc!important}
 html body #recordForm.m1-record-form:not(.business-pilot-form)>.record-head{grid-column:1;grid-row:1;position:static!important;background:white!important;color:#17324b!important;border:0!important;padding:12px 18px!important;min-width:0}
 html body #recordForm.m1-record-form:not(.business-pilot-form)>.record-head :is(h2,small){color:#264c60!important}
 html body #recordForm.m1-record-form .record-app-icon,html body #recordForm.m1-record-form .record-mode{display:none!important}
 html body #recordForm.m1-record-form:not(.business-pilot-form)>.record-head .ui-head-actions{position:absolute;right:12px;top:17px;z-index:105}
 html body #recordForm.m1-record-form:not(.business-pilot-form)>.record-footer{grid-column:2!important;grid-row:1!important;position:static!important;align-self:stretch!important;background:white!important;border:0!important;padding:14px 58px 14px 10px!important}
 html body #recordForm.m1-record-form .record-footer small{display:none!important}
 html body #recordForm.m1-record-form:not(.business-pilot-form)>#recordTabs{grid-column:1/-1!important;grid-row:2!important;background:white;margin:0!important}
 html body #recordForm.m1-record-form:not(.business-pilot-form)>#formFields{grid-column:1/-1!important;grid-row:3!important;overflow:auto!important;min-height:0;padding:18px!important}
 html body #recordForm.m1-record-form .record-footer .dialog-actions{flex-wrap:nowrap!important;gap:8px!important}
 html body #recordForm.m1-record-form #recordFormError:not(:empty){font-size:11px;margin:0;color:#b42338;max-width:300px}
 html body :is(#detailDialog,#recordDialog) .icon-btn{background:transparent!important;border:0!important;color:#56718c!important;box-shadow:none!important}
 @media(max-width:1000px){
  html body>.sidebar{width:200px!important}html body>.main{margin-left:200px!important}.app-status-footer{left:200px!important}
  html body #detailDialog#detailDialog.m1-detail dl.m1-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body #detailDialog#detailDialog.m1-detail[open],html body .m1-record-form:not(.business-pilot-form){grid-template-columns:minmax(150px,1fr) auto!important}
  html body #detailDialog#detailDialog.m1-detail #detailTitle{font-size:16px!important}
  html body #detailDialog#detailDialog.m1-detail>.detail-actions{gap:4px!important;padding-left:0!important}
 }
 @media(max-width:760px){
  html body>.sidebar{width:56px!important;position:fixed!important;inset:0 auto 0 0!important;height:100dvh!important;overflow:visible!important;padding:0 6px!important}
  html body>.main,html body.m1-unpinned>.main{margin-left:56px!important;padding:0 10px 42px!important}
  html body>.sidebar .brand>div,html body>.sidebar .nav-section-toggle strong,html body>.sidebar .nav-section-toggle b,html body>.sidebar .client-nav-heading{display:none!important}
  html body>.sidebar .nav-btn{font-size:0!important;padding:10px!important;justify-content:center}
  html body>.sidebar #nav{display:grid!important;max-height:calc(100dvh - 120px)!important}
  html body>.sidebar .mobile-menu-toggle,html body .mobile-bottom-nav{display:none!important}
  html body>.sidebar .nav-submenu{margin:0!important}
  html body>.sidebar .nav-submenu .nav-btn{font-size:0!important}
  html body>.sidebar:focus-within,html body>.sidebar:hover{width:200px!important;background:#102f43!important}
  html body>.sidebar:focus-within .brand>div,html body>.sidebar:hover .brand>div{display:block!important}
  html body>.sidebar:focus-within .nav-btn,html body>.sidebar:hover .nav-btn{font-size:12px!important;justify-content:flex-start}
  html body .topbar{margin:0 -10px!important;padding:10px!important;height:56px!important;min-height:56px!important;gap:6px}
  html body .m1-user{display:none}html body .top-actions{gap:6px!important}html body .topbar .global-search{min-width:60px!important}
  html body .app-status-footer,html body.m1-unpinned .app-status-footer{left:56px!important;padding:4px 8px!important}.m1-footer-brand,.app-backup-status{display:none!important}
  html body #m1PageHeading{padding:15px 0 12px}html body #m1PageHeading h1{font-size:20px!important}
  html body #detailDialog#detailDialog.m1-detail[open]{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:50px 44px minmax(0,1fr)!important;height:calc(100dvh - 100px)!important}
  html body #detailDialog#detailDialog.m1-detail>.dialog-head{grid-column:1;grid-row:1;height:50px!important;min-height:50px!important;padding:8px 12px!important}
  html body #detailDialog#detailDialog.m1-detail>.detail-actions{grid-column:1;grid-row:2;padding:6px 12px!important;justify-content:flex-end!important}
  html body #detailDialog#detailDialog.m1-detail>#detailWorkspace,html body #detailDialog#detailDialog.m1-detail>#businessPilotHost{grid-row:3;grid-column:1}
  html body #detailDialog#detailDialog.m1-detail dl.m1-fields{grid-template-columns:minmax(0,1fr)!important}
  html body .m1-monitor-info>.aw-aside{grid-template-columns:1fr}
  html body #recordForm.m1-record-form:not(.business-pilot-form){grid-template-columns:minmax(0,1fr)!important;grid-template-rows:50px 44px auto minmax(0,1fr)!important;height:calc(100dvh - 100px)!important}
  html body #recordForm.m1-record-form:not(.business-pilot-form)>.record-head{grid-column:1;grid-row:1;padding:8px 12px!important}
  html body #recordForm.m1-record-form:not(.business-pilot-form)>.record-footer{grid-column:1!important;grid-row:2!important;padding:6px 12px!important}
  html body #recordForm.m1-record-form:not(.business-pilot-form)>#recordTabs{grid-row:3!important}
  html body #recordForm.m1-record-form:not(.business-pilot-form)>#formFields{grid-row:4!important}
  html body .entity-list-panel .entity-selection-actions{padding:6px!important;gap:4px!important}
  html body .entity-list-panel .entity-selection-actions>.entity-selected-edit{min-width:0!important;padding:7px 9px!important}
  html body .entity-list-panel #clientFilter{max-width:46%!important}
 }
}
@media print{#m1Pin,.m1-menu,.m1-account,#m1PageHeading{display:none!important}}
@media screen{
 html body>.main>.topbar{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important}
 html body>.main>.topbar>.global-search{display:flex!important;flex-direction:row!important;align-items:center!important;flex:0 1 560px!important;width:560px!important;margin:0!important;padding:0 10px!important}
 html body>.main>.topbar .global-search>#globalSearch{width:100%!important;min-width:0!important;max-width:none!important;flex:1 1 auto!important;border:0!important;margin:0!important;padding:0!important;height:32px!important;background:transparent!important}
 html body>.main>.topbar>.top-actions{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;width:auto!important;flex:0 0 auto!important}
 html body #appHelpButton>*{display:none!important}
 html body #content{padding:0!important}
 html body .sidebar #nav{align-content:start!important}
 html body .entity-list-panel .entity-selection-actions>.m1-list-new[hidden],html body .entity-list-panel .entity-selection-actions>.m1-list-refresh[hidden]{display:none!important}
}
@media screen{
 html body>.sidebar{z-index:1000!important}
 html body>.main>.topbar{z-index:100!important}
 html body .m1-user{white-space:nowrap!important;width:auto!important;max-width:180px;overflow:hidden;text-overflow:ellipsis}
 html body .m1-account>summary{flex-wrap:nowrap!important}
 html body .m1-fields>dd:has([name=hostname]){order:-30}
 html body .m1-fields>dd:has([name=clientId]){order:-20}
 html body .m1-fields>dd:has([name=siteId]){order:-10}
 html body .entity-list-panel .column-filter-row input{height:26px!important;min-height:26px!important;max-height:26px!important;box-shadow:none!important}
 html body .entity-list-panel .column-filter-row th{padding:5px 12px!important}
 html body .entity-list-panel .table-wrap table{font-size:12px!important}
 html body .m1-detail>.detail-actions>button:not(.primary):not(#detailEdit):not(.m1-secondary-action){background:transparent!important;border:0!important;box-shadow:none!important}
}
@media screen{
 html body #detailDialog#detailDialog.m1-detail>.dialog-head,html body #recordForm#recordForm.m1-record-form>.record-head{z-index:120!important}
 html body #detailDialog#detailDialog #closeDetail,html body #recordDialog#recordDialog #closeDialog{color:#526c86!important;background:transparent!important;border:0!important;min-width:30px!important;width:30px!important;height:32px!important}
 html body #detailDialog#detailDialog #closeDetail>*,html body #recordDialog#recordDialog #closeDialog>*{color:#526c86!important}
 html body :is(#detailDialog,#recordDialog,.entity-list-panel) [hidden]{display:none!important}
 html body .entity-list-panel .column-filters input{height:26px!important;min-height:26px!important;max-height:26px!important;box-shadow:none!important;font-size:10px!important;border-radius:4px!important}
 html body .entity-list-panel .column-filters th{padding:5px 12px!important}
 html body .entity-list-panel .btn-icon,html body #detailDialog .btn-icon,html body #recordDialog .btn-icon{color:inherit!important;background:none!important;filter:none!important;box-shadow:none!important}
 @media(max-width:760px){
  html body>.sidebar #nav,html body>.sidebar .nav-submenu{grid-template-columns:1fr!important;max-width:100%!important;gap:3px!important}
  html body>.sidebar .nav-btn,html body>.sidebar .nav-section-toggle{width:100%!important;min-width:0!important;white-space:nowrap!important;word-break:normal!important;overflow:hidden}
  html body>.sidebar .brand{width:100%!important;min-width:0!important}
  html body>.sidebar .brand>div{min-width:140px;max-width:140px;white-space:nowrap}
  html body>.sidebar .brand strong{font-size:14px!important;max-width:none!important;white-space:nowrap}
  html body #recordForm.m1-record-form .record-footer .dialog-actions>button,html body #detailDialog .detail-actions>button{min-width:0!important;white-space:nowrap!important;word-break:normal!important;flex:0 0 auto!important;font-size:11px!important;padding:6px 8px!important}
  html body #recordForm.m1-record-form>.record-head .ui-head-actions,html body #detailDialog.m1-detail>.dialog-head .ui-head-actions{top:8px!important;right:8px!important}
  html body #recordForm#recordForm.m1-record-form:not(.business-pilot-form)>.record-head{height:50px!important;min-height:50px!important;max-height:50px!important;box-sizing:border-box!important}
 }
}
@media screen{
 html body.dark-mode{--ink:#deebf7;--muted:#a0b4c9;--line:#2b4055;--pale:#122337;--surface:#172b40;background:#0c1b2b!important}
 html body.dark-mode>.main>.topbar,html body.dark-mode .m1-account-panel,html body.dark-mode .m1-menu-panel,html body.dark-mode .app-status-footer{background:#13283c!important;color:#deebf7!important;border-color:#2b4055!important}
 html body.dark-mode #detailDialog#detailDialog.m1-detail[open],html body.dark-mode #recordForm.m1-record-form{background:#102235!important}
 html body.dark-mode #detailDialog#detailDialog.m1-detail>.dialog-head,html body.dark-mode #detailDialog#detailDialog.m1-detail>.detail-actions,html body.dark-mode #recordForm.m1-record-form>.record-head,html body.dark-mode #recordForm.m1-record-form>.record-footer{background:#172e44!important;color:#deebf7!important}
 html body.dark-mode :is(#detailDialog#detailDialog.m1-detail,#softwareDeploymentPage.material-form-reference) .aw-card,html body.dark-mode :is(#detailDialog#detailDialog.m1-detail,#softwareDeploymentPage.material-form-reference) .aw-tabs,html body.dark-mode .m1-monitor-info,html body.dark-mode .entity-list-panel,html body.dark-mode .entity-list-panel .entity-list-controls,html body.dark-mode .entity-list-panel .entity-pagination,html body.dark-mode .entity-list-panel .column-tools-bar,html body.dark-mode .entity-list-panel tbody tr{background:#14283d!important;color:#dbe9f8!important;border-color:#2b4055!important}
 html body.dark-mode :is(#detailDialog#detailDialog.m1-detail,#softwareDeploymentPage.material-form-reference) .aw-card h3,html body.dark-mode #m1PageHeading h1,html body.dark-mode #recordForm.m1-record-form>.record-head :is(h2,small){color:#dbe9f8!important}
 html body.dark-mode #detailDialog#detailDialog.m1-detail #detailTitle{color:#6bd5bd!important}
 html body.dark-mode .m1-field-label,html body.dark-mode .m1-option,html body.dark-mode .m1-menu-toggle,html body.dark-mode .m1-monitor-info>summary{color:#bed3e6!important}
 html body.dark-mode #detailDialog#detailDialog.m1-detail .form-field>:is(input,select),html body.dark-mode .entity-list-panel #entitySearch,html body.dark-mode .entity-list-panel #clientFilter,html body.dark-mode .entity-list-panel .column-filters input,html body.dark-mode>.main>.topbar>.global-search{background:#102235!important;color:#deebf7!important;border-color:#334c65!important}
 html body.dark-mode .entity-list-panel th,html body.dark-mode .entity-list-panel .entity-selection-actions{background:#1b334a!important;color:#bdcee0!important}
 html body.dark-mode .entity-list-panel tbody tr.entity-row-selected{background:#163f62!important}
 html body.dark-mode .entity-list-panel .machine-cell,html body.dark-mode .entity-list-panel .machine-cell *{color:#7fe2c5!important}
}

/* V554: original grouped navigation and separate application header. */
@media screen{
 html body>.main>.topbar{position:fixed!important;top:0!important;left:0!important;right:0!important;width:auto!important;height:82px!important;min-height:82px!important;margin:0!important;padding:8px 18px 8px 12px!important;z-index:1200!important;gap:14px!important;background:#fff!important}
 html body>.main{padding-top:82px!important}
 html body>.sidebar{top:82px!important;height:calc(100dvh - 82px)!important;padding-top:12px!important}
 html body>.main>.topbar>.brand{display:flex!important;align-items:center!important;flex:0 0 206px!important;width:206px!important;height:66px!important;gap:10px!important;padding:4px!important;margin:0!important;border:0!important}
 html body .topbar .brand-mark{display:flex!important;align-items:center;justify-content:center;width:48px!important;min-width:48px!important;height:48px!important;border-radius:10px!important;background:#fff!important;color:#17384b!important;overflow:hidden}
 html body .topbar .brand-mark img{width:100%!important;height:100%!important;object-fit:contain!important;padding:0!important}
 html body .topbar .brand strong{display:block!important;color:#17384b!important;font-size:17px!important;white-space:nowrap!important;letter-spacing:-.4px}
 html body .topbar .brand small{display:block!important;color:#577183!important;font-size:11px!important;white-space:nowrap!important;margin-top:4px!important}
 html body #m1Pin{position:static!important;flex:0 0 30px!important;width:30px!important;height:32px!important;color:#375c74!important;margin:0!important}
 html body #m1Pin:hover,html body #m1Pin:focus-visible{background:#e4eef5!important;color:#17384b!important}
 html body>.main>.topbar>.global-search,html body>.main>.topbar .global-search>#globalSearch{background:#fff!important;color:#263e54!important}
 html body>.main>.topbar>.global-search{flex:1 1 360px!important;max-width:560px!important;min-width:0!important}
 @media(max-width:760px){
  html body>.main>.topbar{height:108px!important;min-height:108px!important;flex-wrap:wrap!important;gap:6px!important;padding:6px 10px!important}
  html body>.main>.topbar>.brand{flex:1 0 calc(100% - 100px)!important;height:52px!important;order:0}
  html body>.main>.topbar>.top-actions{order:1}
  html body #m1Pin{order:2}
  html body>.main>.topbar>.global-search{order:3;flex:1 1 calc(100% - 42px)!important;width:auto!important}
  html body>.main{padding-top:108px!important}
  html body>.sidebar{top:108px!important;height:calc(100dvh - 108px)!important}
  html body #recordForm.m1-record-form:not(.business-pilot-form){height:calc(100dvh - 150px)!important}
 }
}

@media screen{
 html body>.main>.topbar{background:linear-gradient(110deg,var(--navy),var(--teal))!important;border-bottom:1px solid #254c5e!important}
 html body .topbar .brand strong{color:#fff!important}
 html body .topbar .brand small{color:#c2d5e2!important}
 html body .topbar .brand-mark{background:transparent!important}
 html body #m1Pin,html body #appHelpButton,html body .m1-account>summary{color:#e3edf4!important}
 html body>.main>.topbar>.global-search{height:36px!important;min-height:36px!important;max-height:36px!important;box-sizing:border-box!important;overflow:visible!important}
 html body>.main>.topbar .global-search>#globalSearch{height:30px!important;min-height:30px!important;max-height:30px!important;box-sizing:border-box!important;line-height:normal!important;outline-offset:-2px!important;box-shadow:none!important}
}

/* V555: taller category buttons and rounded exit. */
@media screen{
 html body>.sidebar #nav{display:flex!important;flex-direction:column!important;gap:8px!important;min-height:0!important;align-content:stretch!important}
 html body>.sidebar #nav>.nav-group{display:flex!important;flex-direction:column!important;flex:1 0 auto!important;gap:3px!important}
 html body>.sidebar #nav .nav-section-toggle{min-height:clamp(46px,5.6vh,60px)!important;padding:12px!important;border-radius:10px!important;flex:1 0 auto!important}
 html body>.sidebar #nav .nav-section-toggle strong{font-size:13px!important;line-height:1.35!important}
 html body>.sidebar #nav .nav-submenu{flex:0 0 auto!important}
 html body>.sidebar .sidebar-exit{border:1px solid rgba(255,255,255,.28)!important;border-radius:10px!important;min-height:44px!important;margin-top:12px!important;background:rgba(255,255,255,.07)!important}
 html body>.sidebar .sidebar-exit:hover{background:rgba(255,255,255,.14)!important}
}

/* V692: complete Matériel tab surface, not just button styles.
   Specificity deliberately exceeds flat-tabs; header remains outside scroll. */
html:root body #softwareDeploymentPage#softwareDeploymentPage.material-form-reference .aw-tabs{
 margin:0 0 16px!important;padding:0!important;gap:20px!important;
 min-height:55px;background:linear-gradient(to bottom,#f0f3f6 0px,#fff 14px,#fff 100%)!important;
 border-radius:12px 12px 0 0!important;border-bottom:1px solid var(--line)!important;
}
html:root body.dark-mode #softwareDeploymentPage#softwareDeploymentPage.material-form-reference .aw-tabs{
 background:linear-gradient(to bottom,#102235 0px,#14283d 14px,#14283d 100%)!important;
}
