:root{--oa-panel-duration:300ms;--oa-panel-easing:cubic-bezier(.3,.12,.45,1)}
/* Shared screen-only density: preserve all print layouts and business controls. */
@media screen{
 .oa-category-details>summary{cursor:pointer;font-size:13px;color:#315e77;padding:6px 0}
 .oa-category-details{margin:4px 0 8px}
 body.oa-admin-density :is(.admin-context-tabs,.admin-task-intro,.search-row){margin-top:6px!important;margin-bottom:8px!important}
 body.oa-admin-density .panel-head p{font-size:12px;line-height:1.4;margin:4px 0!important}
 body.oa-admin-density .panel-head{margin-bottom:6px!important}
 body.oa-admin-density :is(.people-category-note,#people-count,#onboard-message){margin:5px 0;line-height:1.4;font-size:13px}
 body.oa-admin-density .onboarding-steps{margin:8px 0;gap:8px}
 body.oa-admin-density .onboarding-fields{gap:8px 12px}
 body.oa-admin-density .onboarding-fields label{gap:4px;min-width:0}
 body.oa-admin-density :is(.notice,.admin-task-intro){font-size:13px;line-height:1.4}
 body.oa-files-density #forms-status:empty{display:none}
 body.oa-files-density #forms-app .forms-tools{gap:6px;margin:6px 0}
 body.oa-department-density .department-status:empty{display:none}
}
@media screen and (min-width:761px){
 body.oa-responsive #housing-app .work-main{margin:0!important;min-width:0;padding:12px 20px!important}
 body.oa-responsive #housing-app .work-topbar{display:flex;align-items:center;gap:12px}
 body.oa-responsive #housing-app :is(p,h2){margin:8px 0!important}
 body.oa-responsive #housing-app #housing-status:empty{display:none}
 body.oa-responsive #housing-app table :is(td,th){padding:4px 6px!important;font-size:13px}
 body.oa-responsive #housing-app :is(input,select,button){min-height:34px!important;height:auto;padding:5px 7px}
 body.oa-admin-density :is(.oa-admin-main,.panel){padding:12px!important}
 body.oa-admin-density .oa-admin-main>header{min-height:42px!important;padding:4px 0!important}
 body.oa-admin-density :is(input:not([type=checkbox]),select,button){min-height:34px!important;padding:5px 8px!important}
 body.oa-admin-density .onboarding-fields{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.oa-admin-density .onboarding-fields .full{grid-column:1/-1}
 body.oa-admin-density .onboarding-step>.actions{position:sticky;bottom:0;background:#fff;padding:7px 0;margin:8px 0 0;z-index:2}
 body.oa-admin-density table :is(td,th){padding:5px 7px!important}
 body.oa-files-density .work-main{padding:12px 20px!important}
 body.oa-files-density #forms-app .forms-header{align-items:center}
 body.oa-files-density #forms-app .forms-header :is(h1,p){margin:4px 0}
 body.oa-files-density .oa-category-details>summary{display:none}
 body.oa-files-density #forms-app .forms-scopes{margin:6px 0}
 body.oa-department-density .department-column{padding:10px!important}
}
@media screen and (max-width:760px){
 html body.oa-responsive #housing-app table.oa-phone-records #housing-rows tr{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:3px 6px!important;padding:6px!important}
 html body.oa-responsive #housing-app table.oa-phone-records #housing-rows td:first-child{grid-column:1/-1;display:flex!important;align-items:center;gap:6px;font-size:14px}
 html body.oa-responsive #housing-app table.oa-phone-records #housing-rows td:first-child::before{display:none!important}
 html body.oa-responsive #housing-app table.oa-phone-records #housing-rows td:first-child small{font-size:12px;margin:0}
 html body.oa-responsive #housing-app table.oa-phone-records #housing-rows td:nth-child(4){grid-column:1/3}
 html body.oa-responsive #housing-app table.oa-phone-records #housing-rows td:last-child{grid-column:3}
 html body.oa-responsive #housing-app #housing-rows select{width:100%;padding:4px!important}
 html body.oa-responsive #housing-app table.oa-phone-records #housing-rows td{border:0!important;font-size:13px;padding:3px!important}
 html body.oa-responsive #housing-app table.oa-phone-records #housing-rows td:last-child::before{display:none!important}
 html body.oa-responsive #housing-app table.oa-phone-records #housing-rows td:last-child button{width:100%;margin:0}
 html body.oa-responsive #housing-app #housing-status:empty{display:none}
 html body.oa-responsive #housing-app h2{margin:8px 0!important}
 html body.oa-responsive #housing-app :is(.table-wrap,p){margin:6px 0}
 html body.oa-admin-density .oa-admin-main>header{padding:4px 0!important;min-height:48px!important}
 html body.oa-admin-density .admin-task-intro{display:none}
 html body.oa-admin-density .panel{padding:8px!important;margin:8px 0!important}
 html body.oa-admin-density .panel-head h2{margin:4px 0!important}
 html body.oa-admin-density .panel-head{gap:5px!important;align-items:center!important}
 html body.oa-admin-density .panel-head>div{flex:1;min-width:140px}
 html body.oa-admin-density .panel-head p{display:block}
 html body.oa-admin-density :is(.search-row,.people-filters){gap:6px!important;margin:6px 0!important}
 html body.oa-admin-density .people-category-buttons{margin:5px 0!important}
 html body.oa-admin-density .onboarding-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 html body.oa-admin-density .onboarding-fields .full{grid-column:1/-1!important}
 html body.oa-admin-density .onboarding-fields label{font-size:13px!important}
 html body.oa-admin-density .onboarding-fields small{font-size:11px;line-height:1.4}
 html body.oa-admin-density .onboarding-fields label:has(#employee-code){grid-column:1/-1}
 html body.oa-admin-density .onboarding-step>.actions{position:sticky;bottom:0;background:#fff;padding:6px 0;gap:8px;z-index:2}
 html body.oa-admin-density .group-tools{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important}
 html body.oa-admin-density .group-tools label{min-width:0!important}
 html body.oa-admin-density #permission-editor .admin-scroll-hint{display:none!important}
 html body.oa-admin-density #permission-editor #members{font-size:12px;line-height:1.4;margin:6px 0}
 html body.oa-admin-density #permission-editor .group-save{position:sticky;bottom:0;background:#fff;z-index:2;padding:6px 0}
 html body.oa-responsive table.oa-density-records{display:block!important;min-width:0!important;width:100%!important;table-layout:auto!important}
 html body.oa-responsive table.oa-density-records thead{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)}
 html body.oa-responsive table.oa-density-records tbody{display:block!important}
 html body.oa-responsive table.oa-density-records tbody tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px 8px!important;padding:8px!important;margin:6px 0!important;border:1px solid #c9dce8!important;border-radius:8px;background:#fff}
 html body.oa-responsive table.oa-density-records tbody td{display:block!important;min-width:0!important;width:auto!important;padding:3px!important;border:0!important;white-space:normal!important;font-size:13px;overflow-wrap:anywhere}
 html body.oa-responsive table.oa-density-records tbody td::before{content:attr(data-oa-label)!important;display:block!important;color:#617b8b;font-size:11px;font-weight:600;line-height:1.4;margin-bottom:3px}
 html body.oa-responsive table.oa-density-records tbody tr.oa-density-band{display:block!important;background:transparent;border:0!important;padding:0!important}
 html body.oa-responsive table.oa-density-records tr.oa-density-band td::before{display:none!important}
 html body.oa-admin-density #permission-editor table.oa-density-records tr{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 html body.oa-admin-density #permission-editor table.oa-density-records td:nth-child(-n+2){grid-column:1/-1}
 html body.oa-admin-density #permission-editor table.oa-density-records td:has(input){display:flex!important;flex-direction:column;align-items:flex-start}
 html body.oa-admin-density #permission-editor table.oa-density-records td input{width:22px!important;height:22px!important;min-height:0!important;margin:0;padding:0}
 html body.oa-admin-density #permission-editor table.oa-density-records td:has(input) label{min-height:48px;min-width:48px;display:flex;align-items:center}
 html body.oa-files-density .oa-category-details>summary{min-height:48px!important;display:flex;align-items:center;border:1px solid #bad0df;border-radius:8px;padding:0 10px;cursor:pointer}
 html body.oa-files-density .oa-category-details>summary::before{content:'▸';margin-right:6px}
 html body.oa-files-density .oa-category-details[open]>summary::before{content:'▾'}
 html body.oa-files-density #forms-app .forms-header{display:grid;grid-template-columns:1fr auto;gap:6px}
 html body.oa-files-density #forms-app .forms-header>div{grid-column:1/-1}
 html body.oa-files-density #forms-app .forms-header p{margin:4px 0;font-size:12px;line-height:1.4}
 html body.oa-files-density #forms-app .forms-scopes{margin:6px 0}
 html body.oa-files-density #forms-app .forms-public-dense .forms-title{min-height:44px!important;display:flex!important;align-items:center}
 html body.oa-files-density #forms-app.forms-public-dense .forms-title{min-height:44px!important;display:flex;align-items:center}
 html body.oa-files-density #forms-app.forms-public-dense tbody td{padding:3px 0!important}
 html body.oa-files-density #forms-app.forms-public-dense tbody tr{align-items:center}
 html body.oa-files-density #forms-app table.oa-density-records td:nth-child(3),html body.oa-files-density #forms-app table.oa-density-records td:last-child{grid-column:1/-1}
 html body.oa-files-density #forms-app table.oa-density-records td:last-child{white-space:normal!important}
 html body.oa-files-density #forms-app table.oa-density-records .forms-more{margin-left:0}
 html body.oa-department-density .department-search{display:grid!important;grid-template-columns:1fr 1fr;gap:6px}
 html body.oa-department-density .department-search label{grid-column:1/-1}
 html body.oa-department-density .department-column{padding:8px!important}
 html body.oa-department-density .department-column form{padding:8px!important}
}
@media screen{
 .oa-phone-only{display:none!important}.oa-login-remember{display:flex!important;align-items:center;gap:8px;margin:10px 0 0!important;font-size:14px;line-height:1.4}.oa-login-remember input{width:18px!important;height:18px!important;flex:0 0 18px;padding:0!important;min-height:0!important}.oa-login-save-note{font-size:12px!important;color:#5d7284;margin:4px 0!important;line-height:1.5}
 .oa-demo-disclosure{margin:6px 0;max-width:100%}.oa-demo-disclosure>summary{cursor:pointer;color:#567083;min-height:32px;display:flex;align-items:center;font-size:12px}.oa-demo-disclosure .demo-switch{margin:0!important;padding:4px 0!important}.oa-tap-pressed{filter:brightness(.95)}
}
@media screen and (max-width:760px){
 html body{--oa-touch-size:48px}body:not(.liquid-glass-home) :is(.main,.contact-main,.work-main,.oa-admin-main){padding:8px 12px 24px!important;min-width:0}
 html body.oa-responsive.oa-responsive :is(button,summary,.primary-button,.secondary-button,.work-nav,.nav-item):not(.org-chart-canvas *){min-height:var(--oa-touch-size)!important;touch-action:manipulation}
 html body.oa-responsive.oa-responsive :is(input,select,textarea):not([type=checkbox]):not([type=radio]){font-size:16px!important;min-height:44px;max-width:100%;box-sizing:border-box}
 html body.oa-responsive.oa-responsive :is(input[type=checkbox],input[type=radio]){accent-color:#246385}
 html body.oa-responsive.oa-responsive :is(h1,.page-head h1,.work-topbar h1,.contact-page-head h1){font-size:21px!important;line-height:1.3!important;margin:6px 0!important;word-break:normal;overflow-wrap:normal}
 html body.oa-responsive.oa-responsive :is(h2,.panel-head h2){font-size:17px!important;margin-top:10px;margin-bottom:8px}
 html body.oa-responsive.oa-responsive :is(.topbar,.work-topbar,.contact-topbar,.oa-admin-main>header){gap:6px!important;flex-wrap:wrap!important;padding:6px 0!important;min-height:54px!important;height:auto!important}
 html body.oa-responsive.oa-responsive :is(.topbar,.work-topbar,.contact-topbar,.oa-admin-main>header)>div:has(h1){min-width:160px;flex:1}
 body .oa-demo-disclosure>summary{min-height:40px!important}
 html body.oa-responsive.oa-responsive :is(.panel,.calendar-card,.card,.contact-panel){padding:12px!important;margin-bottom:12px!important}
 html body.oa-responsive.oa-responsive :is(.panel-head,.page-head){gap:8px!important;margin-bottom:10px!important}
 html body.oa-responsive.oa-responsive :is(.work-stats,.contact-home-stats,.stats){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-bottom:12px!important}
 body .contact-home-stats>:last-child:nth-child(odd){grid-column:1/-1}
 html body.oa-responsive.oa-responsive :is(.stat,.stat-card,.work-stat,.contact-stat){padding:8px 10px!important;min-height:52px!important}
 html body.oa-responsive.oa-responsive :is(.history-row,.contact-home-item,.work-item){padding:8px!important;gap:6px!important}
 html body.oa-responsive.oa-responsive :is(.history-filters,.filter-row,.vehicle-tools,.contact-filters,.oa-query-line){gap:6px!important;margin-top:6px!important;margin-bottom:8px!important}
 html body.oa-responsive.oa-responsive :is(.auth,.modal-overlay){padding:8px!important}html body.oa-responsive.oa-responsive :is(.auth form,.compact-modal){width:min(390px,100%)!important;padding:20px!important;max-height:calc(100dvh - 16px);overflow:auto}
 body dialog{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:14px!important;overflow:auto}
 html body.oa-responsive.oa-responsive :is(.actions,.modal-actions,.form-actions){gap:8px!important;flex-wrap:wrap}
 body #housing-app>.work-sidebar{display:none!important}
 body #housing-app .work-main{width:100%;margin:0!important}
 body #housing-app table.oa-phone-records tbody tr{display:grid!important;grid-template-columns:1fr 1fr!important;padding:8px!important;gap:4px 8px!important}
 body #housing-app table.oa-phone-records tbody td{padding:4px!important;min-width:0}
 body .oa-phone-only{display:flex!important}.oa-phone-status{align-items:center;gap:8px;font-size:13px;margin:6px 0}.oa-phone-status select{flex:1;min-width:0}
 body .vehicle-filters.oa-phone-filter-ready{display:none!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .portal-content{padding:0 12px 20px!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .workbench-intro{margin:6px 0!important;padding:0!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell :is(.company-announcement-panel,.department-board,.notification-panel){padding:10px!important;margin:8px 0!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .company-announcement-files{grid-template-columns:1fr!important;gap:6px!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .company-announcement-file{grid-template-columns:42px minmax(0,1fr)!important;gap:7px;padding:6px!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .company-announcement-file img{width:42px;height:54px}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .announcement-copy{gap:2px!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .announcement-copy>a:first-child{display:flex;align-items:center;min-height:44px}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .announcement-copy strong{font-size:13px;line-height:1.35;-webkit-line-clamp:2}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .announcement-copy>a:last-child{min-height:32px;display:flex;align-items:center}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .announcement-publication-box{display:none}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .oa-announcement-details .announcement-publication-box{display:grid}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .oa-home-jumps{display:flex;gap:8px;margin:4px 0 8px;align-items:center}
 body .oa-home-jumps a{display:flex;align-items:center;justify-content:center;min-height:44px;flex:1;border:1px solid #bad0df;background:#fff;border-radius:8px;color:#244f68;text-decoration:none;font-size:14px}
 body .oa-announcement-toggle{min-height:44px!important;font-size:12px!important;padding:4px 8px!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .department-board header{margin-bottom:6px!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .department-columns{gap:8px!important;grid-template-columns:1fr!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .department-columns h3{font-size:14px;margin:4px 0!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .department-columns p{margin:4px 0!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .department-columns li{padding:4px 0!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .notice-summary{gap:6px!important;margin:8px 0!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .summary-tile{padding:8px!important;min-height:54px!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .notice-tools{gap:6px!important;margin:8px 0!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .reminder-item{padding:8px 0!important;min-height:80px!important}
 body.liquid-glass-home #portal-sidebar nav{gap:8px!important}body.liquid-glass-home #portal-sidebar .shell-sub-menu{gap:6px!important}body.liquid-glass-home #portal-sidebar .shell-sub-item{min-height:44px!important}
 body.oa-welfare-mobile main{padding:10px 12px!important}body.oa-welfare-mobile .notice{padding:10px!important;margin:8px 0;font-size:13px;line-height:1.5}body.oa-welfare-mobile .choices{gap:6px!important}body.oa-welfare-mobile .choice{padding:9px!important;min-height:64px!important}body.oa-welfare-mobile .choice b{font-size:16px}body.oa-welfare-mobile .choice small{font-size:12px}body.oa-welfare-mobile .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body.oa-welfare-mobile .field{min-width:0}body.oa-welfare-mobile .field label{font-size:13px}body.oa-welfare-mobile .summary{padding:8px 10px!important;margin-top:8px!important}body.oa-welfare-mobile .money{font-size:18px}body.oa-welfare-mobile .summary p{font-size:13px;margin:4px 0}
}


@media screen and (max-width:760px){
 html body.oa-responsive.oa-responsive .oa-language-switch{min-width:160px;flex-shrink:0;flex-wrap:nowrap;margin-left:auto}
 html body.oa-responsive.oa-responsive .oa-language-switch button{white-space:nowrap!important;word-break:normal!important}
 html body.oa-responsive.oa-responsive .oa-demo-switch{display:none!important}
 html body.oa-responsive.oa-responsive.oa-demo-expanded .oa-demo-switch{display:flex!important}
 html body.oa-responsive.oa-responsive .oa-demo-disclosure{min-height:0;margin:0!important;padding:0!important}
 html body.oa-responsive.oa-responsive .oa-demo-disclosure>summary{min-height:40px!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .company-announcement-file{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;align-items:start!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .company-announcement-file>.announcement-copy{display:grid!important;grid-column:2;grid-row:1;min-width:0}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .company-announcement-file>a:first-child{grid-column:1;grid-row:1;min-height:54px}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .company-announcement-file .announcement-publication-box{grid-column:1/-1}
 html body.oa-responsive.oa-responsive .day-cell{padding:4px 2px!important;min-height:72px!important}
 html body.oa-responsive.oa-responsive .leave-bar{min-height:32px!important;max-height:44px;overflow:hidden;line-height:1.2;min-width:0}
 html body.oa-responsive.oa-responsive .history-row{grid-template-columns:minmax(0,1fr) auto!important;padding:8px!important;gap:4px 8px!important}
 html body.oa-responsive.oa-responsive .history-row>*{min-width:0}
 html body.oa-responsive.oa-responsive .history-row .record-main{grid-column:1/-1}
 html body.oa-responsive.oa-responsive .history-row .date-range{font-size:13px}
}

@media screen and (min-width:761px){.oa-query-disclosure{display:contents}.oa-query-disclosure>summary{display:none}}
@media screen and (max-width:760px){
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .company-announcement-file:nth-child(n+4){display:none!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .oa-more-announcements .company-announcement-file:nth-child(n+4){display:grid!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .oa-announcement-more{width:100%;justify-content:center;min-height:44px!important;margin-top:4px}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .department-board:not(.oa-departments-open) .department-columns{display:none!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .department-board a{min-height:44px;display:flex;align-items:center;font-size:12px}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .department-board h2{margin:0!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .department-board header{margin-bottom:0!important}
 html body.oa-responsive.oa-responsive .oa-query-disclosure{margin:4px 0;padding:0;border:1px solid #c5d7e4;border-radius:8px;background:#fff}
 html body.oa-responsive.oa-responsive .oa-query-disclosure>summary{padding:4px 10px;min-height:44px!important;font-size:13px}
 html body.oa-responsive.oa-responsive .oa-query-disclosure .vehicle-query-bar{padding:8px!important;margin:0!important}
 html body.oa-responsive.oa-responsive .vehicle-tools{display:flex!important;flex-direction:row!important;align-items:end!important;flex-wrap:wrap!important}
 html body.oa-responsive.oa-responsive .vehicle-tools .vehicle-search{flex:1!important;min-width:0!important;width:auto!important}
 html body.oa-responsive.oa-responsive .vehicle-tools #vehicle-refresh{width:auto!important;flex:0 0 80px}
 html body.oa-responsive.oa-responsive :is(.history-filters,.history-tools,.history-search-row){gap:6px!important;padding:4px 0!important}
 html body.oa-responsive.oa-responsive :is(#history-view,.history-panel){padding:10px!important}
 html body.oa-responsive.oa-responsive #history-view .panel-description{margin:4px 0!important;font-size:12px}
}

@media screen and (max-width:760px){
 html body.oa-responsive.oa-responsive #leave-history-panel .filters.oa-phone-filter-ready{display:none!important}
 html body.oa-responsive.oa-responsive #leave-history-panel .table-toolbar{display:grid!important;grid-template-columns:1fr 100px;gap:6px!important;margin-bottom:8px!important;align-items:end}
 html body.oa-responsive.oa-responsive #leave-history-panel .oa-phone-status{display:grid!important;gap:4px;margin:0}
 html body.oa-responsive.oa-responsive #leave-history-panel .history-year-picker{gap:4px;margin:0!important}
 html body.oa-responsive.oa-responsive #leave-history-panel #history-total{grid-column:1/-1;font-size:12px}
 html body.oa-responsive.oa-responsive #leave-history-panel .history-query{display:grid!important;grid-template-columns:1fr 1fr;gap:6px!important;margin:6px 0!important}
 html body.oa-responsive.oa-responsive #leave-history-panel .history-query>label{width:auto!important;min-width:0!important;font-size:12px}
 html body.oa-responsive.oa-responsive #leave-history-panel .history-search-label{grid-column:1/-1}
 html body.oa-responsive.oa-responsive #leave-history-panel .leave-list-guide{font-size:12px!important;margin:6px 0!important}
 html body.oa-responsive.oa-responsive #leave-history-panel .record-row{grid-template-columns:1fr auto 16px!important;padding:8px!important;gap:4px 6px!important;min-height:104px!important}
 html body.oa-responsive.oa-responsive #leave-history-panel .record-row .record-main{grid-column:1/3;font-size:14px}
 html body.oa-responsive.oa-responsive #leave-history-panel .record-row .date-range{display:block!important;grid-column:1/3;font-size:12px}
 html body.oa-responsive.oa-responsive #leave-history-panel .record-row .record-progress{grid-column:1/3;font-size:12px}
 html body.oa-responsive.oa-responsive #leave-history-panel .record-row .arrow{grid-column:3;grid-row:1/4}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .announcement-copy{grid-template-columns:minmax(0,1fr) 66px!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .announcement-copy>a:first-child{grid-column:1/-1}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .announcement-copy>small:first-of-type{grid-column:1;font-size:11px}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .announcement-copy>a:last-child{grid-column:2;grid-row:2;font-size:11px;justify-content:center;min-height:44px}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .company-announcement-head a{min-height:44px;display:flex;align-items:center}
}

@media screen and (max-width:760px){
 html body.oa-responsive.oa-responsive #vehicle-form .vehicle-paper{padding:10px!important}
 html body.oa-responsive.oa-responsive #vehicle-form .vehicle-paper-table,html body.oa-responsive.oa-responsive #vehicle-form .vehicle-paper-table tbody{display:block!important;width:100%}
 html body.oa-responsive.oa-responsive #vehicle-form .vehicle-paper-table colgroup{display:none}
 html body.oa-responsive.oa-responsive #vehicle-form .vehicle-paper-table tr{display:grid!important;grid-template-columns:1fr 1fr;border-bottom:1px solid #b9cbd6;padding:8px 0;gap:6px}
 html body.oa-responsive.oa-responsive #vehicle-form .vehicle-paper-table tr:first-child{grid-template-columns:110px 1fr;gap:3px 6px}
 html body.oa-responsive.oa-responsive #vehicle-form .vehicle-paper-table :is(td,th){display:block!important;padding:4px!important;border:0!important;min-width:0!important;width:auto!important;background:transparent!important}
 html body.oa-responsive.oa-responsive #vehicle-form .vehicle-paper-table tr:not(:first-child):not(:nth-child(3))>*{grid-column:1/-1}
 html body.oa-responsive.oa-responsive #vehicle-form .vehicle-paper-table tr:nth-child(3)>th{grid-row:1}
 html body.oa-responsive.oa-responsive #vehicle-form .vehicle-paper-table th{font-size:12px!important;text-align:left!important}
 html body.oa-responsive.oa-responsive #vehicle-form .vehicle-bilingual-fields{grid-template-columns:1fr 1fr!important;gap:6px!important}
 html body.oa-responsive.oa-responsive #vehicle-form .vehicle-language-label{font-size:12px!important;min-height:32px}
 html body.oa-responsive.oa-responsive #vehicle-form textarea{min-height:74px!important;font-size:16px!important}
 html body.oa-responsive.oa-responsive #vehicle-form #vehicle-passenger-plan .passenger-roster{grid-template-columns:1fr 1fr!important;gap:3px 6px!important;max-height:190px!important}
 html body.oa-responsive.oa-responsive #vehicle-form #vehicle-passenger-plan .passenger-roster label{min-height:44px;padding:3px!important;font-size:12px}
 html body.oa-responsive.oa-responsive #vehicle-form .vehicle-paper-types{display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px}
 html body.oa-responsive.oa-responsive #vehicle-form .vehicle-paper-types label{min-height:44px;display:flex;align-items:center;font-size:13px}
 html body.oa-responsive.oa-responsive #vehicle-form :is(.vehicle-paper-signatures,.vehicle-paper-code){display:none!important}
 html body.oa-responsive.oa-responsive #leave-history-panel .record-row>span:nth-child(3){grid-column:2;grid-row:2;font-size:12px;justify-self:end}
 html body.oa-responsive.oa-responsive #leave-history-panel .record-row .date-range{grid-column:1!important;white-space:normal!important}
 html body.oa-responsive.oa-responsive #leave-history-panel .record-row .record-progress{display:flex!important;flex-wrap:wrap;align-items:center;gap:5px}
 html body.oa-responsive.oa-responsive #leave-history-panel .record-row .record-progress .leave-next-step{font-size:12px}
}

/* Mobile application and approval workspaces. Screen only: paper export unchanged. */
@media screen and (max-width:760px){
 html body.oa-responsive.oa-responsive :is(#leave-modal,#detail-modal,#note-modal,#confirmation-modal,#sign-dialog,#contact-create-overlay,#contact-detail-dialog,#supplement-dialog,#contact-finished-preview,#vehicle-confirm) {
  --oa-dialog-top:max(12px,env(safe-area-inset-top));
  --oa-dialog-bottom:max(12px,env(safe-area-inset-bottom));
  --oa-dialog-available-height:calc(100dvh - var(--oa-dialog-top) - var(--oa-dialog-bottom));
  padding:var(--oa-dialog-top) max(12px,env(safe-area-inset-right)) var(--oa-dialog-bottom) max(12px,env(safe-area-inset-left))!important;
  align-items:center;overflow:hidden
 }
 html body.oa-responsive.oa-responsive :is(#leave-modal,#detail-modal,#note-modal,#confirmation-modal,#sign-dialog,#contact-create-overlay,#contact-detail-dialog,#supplement-dialog,#contact-finished-preview) .modal{width:100%!important;max-width:none!important;max-height:var(--oa-dialog-available-height)!important;padding:12px!important;border-radius:14px!important;box-sizing:border-box;min-height:0}
 html body.oa-responsive.oa-responsive :is(#leave-modal,#detail-modal,#contact-detail-dialog,#supplement-dialog) .modal{display:flex;flex-direction:column;overflow:hidden!important}
 html body.oa-responsive.oa-responsive :is(.modal-head,.contact-create-toolbar){gap:8px!important;padding:0!important;margin:0 0 8px!important;flex-shrink:0;align-items:center}
 html body.oa-responsive.oa-responsive .modal-head .eyebrow{margin:0 0 3px!important;font-size:12px}
 html body.oa-responsive.oa-responsive .modal-head h2{margin:0!important;font-size:18px!important;line-height:1.4}
 html body.oa-responsive.oa-responsive .modal-head>button{width:48px!important;min-width:48px!important;height:48px!important;padding:0!important;flex-shrink:0}
 html body.oa-responsive.oa-responsive #leave-form{max-height:calc(100dvh - 40px)!important;min-height:0}
 html body.oa-responsive.oa-responsive #leave-form .leave-form-scroll{padding:0 4px 8px 0!important;overscroll-behavior:contain}
 html body.oa-responsive.oa-responsive #leave-form .leave-start-guide{margin:0 0 8px!important;padding:8px!important;font-size:12px;line-height:1.4}
 html body.oa-responsive.oa-responsive #leave-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 html body.oa-responsive.oa-responsive #leave-form .form-grid>label{min-width:0;margin:0!important;font-size:13px!important;gap:4px}
 html body.oa-responsive.oa-responsive #leave-form .form-grid>label:first-child,html body.oa-responsive.oa-responsive #leave-form :is(label.full,#duration-unit-wrap,.day-result,#leave-hours-wrap){grid-column:1/-1!important}
 html body.oa-responsive.oa-responsive #leave-form .day-result{min-height:0!important;padding:8px!important;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
 html body.oa-responsive.oa-responsive #leave-form .day-result strong{font-size:19px!important;margin:0!important}
 html body.oa-responsive.oa-responsive #leave-form .day-result small{font-size:12px!important}
 html body.oa-responsive.oa-responsive #leave-form #day-rule{width:100%;line-height:1.4}
 html body.oa-responsive.oa-responsive #leave-form :is(label small,.leave-attachment-help){font-size:12px!important;line-height:1.4}
 html body.oa-responsive.oa-responsive #leave-note{min-height:68px!important;height:68px}
 html body.oa-responsive.oa-responsive :is(#leave-form>.modal-actions,#note-form>.modal-actions,#confirmation-modal .modal-actions,#sign-dialog .actions,#detail-actions,.oa-detail-footer){margin-top:8px!important;padding:8px 0 0!important;gap:8px!important;flex-shrink:0;max-height:30dvh;overflow:auto}
 html body.oa-responsive.oa-responsive :is(#leave-form>.modal-actions,#note-form>.modal-actions,#confirmation-modal .modal-actions,#sign-dialog .actions)>button{flex:1;min-width:0;padding:8px!important;font-size:14px!important}
 html body.oa-responsive.oa-responsive :is(#detail-content,#contact-detail-body,.supplement-scroll){min-height:0;overflow:auto!important;flex:1;max-height:none!important;overscroll-behavior:contain}
 html body.oa-responsive.oa-responsive :is(.detail-meta,.detail-meta-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin:0 0 8px!important}
 html body.oa-responsive.oa-responsive :is(.detail-meta>div,.detail-meta-grid>div,.detail-note,.oa-detail-summary){padding:8px!important;margin-bottom:8px!important;font-size:13px;line-height:1.4}
 html body.oa-responsive.oa-responsive :is(.detail-section,.timeline-title){margin:8px 0!important;padding:8px!important}
 html body.oa-responsive.oa-responsive .timeline-item{padding-bottom:8px!important}
 html body.oa-responsive.oa-responsive :is(#action-note,#sign-note){min-height:80px!important;height:80px}
 html body.oa-responsive.oa-responsive #contact-create-overlay .contact-create-modal{height:calc(100dvh - 16px);display:flex;flex-direction:column;overflow:hidden!important;padding-bottom:76px!important}
 html body.oa-responsive.oa-responsive #contact-create-view{min-height:0;overflow:auto;overscroll-behavior:contain}
 html body.oa-responsive.oa-responsive #contact-create-view .contact-page-head{padding:0!important;margin:0 0 6px!important}
 html body.oa-responsive.oa-responsive #contact-create-view .contact-eyebrow{display:none}
 html body.oa-responsive.oa-responsive #contact-form :is(.contact-paper-brand,.contact-paper-title){display:none!important}
 html body.oa-responsive.oa-responsive #contact-form{padding:0!important;margin:0!important;border:0!important;background:none!important;box-shadow:none!important}
 html body.oa-responsive.oa-responsive #contact-form .panel-head{margin:0!important;padding:4px!important}
 html body.oa-responsive.oa-responsive #contact-form .contact-form-group>h3{padding:6px 8px!important;margin:0!important;font-size:13px}
 html body.oa-responsive.oa-responsive #contact-form .fields{gap:6px!important;padding:8px!important}
 html body.oa-responsive.oa-responsive #contact-form .fields>label{padding:0!important;min-width:0;font-size:13px}
 html body.oa-responsive.oa-responsive #contact-form .contact-source-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body.oa-responsive.oa-responsive #contact-form .contact-source-fields>label:last-child{grid-column:1/-1}
 html body.oa-responsive.oa-responsive #contact-form :is(.contact-recipient-fields,.contact-subject-fields){grid-template-columns:1fr!important}
 html body.oa-responsive.oa-responsive #contact-form .contact-description-fields textarea{height:94px;min-height:94px!important;resize:vertical}
 html body.oa-responsive.oa-responsive #contact-form #signature-slots{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body.oa-responsive.oa-responsive #contact-form .contact-paper-signature>div{min-height:54px!important;padding:6px!important}
 html body.oa-responsive.oa-responsive #contact-form .signer-section .panel-head p{font-size:12px;line-height:1.4}
 html body.oa-responsive.oa-responsive #contact-form>.actions{position:absolute;bottom:12px;left:12px;right:12px;display:flex!important;flex-wrap:nowrap!important;gap:6px!important;margin:0!important;background:#fff;border-top:1px solid #cad9e3;padding:8px 0 0!important;z-index:3}
 html body.oa-responsive.oa-responsive #contact-form>.actions>button{flex:1!important;min-width:0!important;padding:6px!important;font-size:13px!important}
 html body.oa-responsive.oa-responsive #contact-create-overlay .contact-create-modal{position:relative}
 html body.oa-responsive.oa-responsive #vehicle-form{padding-bottom:80px}
 html body.oa-responsive.oa-responsive #vehicle-form .vehicle-paper-header{margin:0!important;padding:0!important;gap:8px}
 html body.oa-responsive.oa-responsive #vehicle-form .vehicle-paper-header img{width:50px!important;height:auto!important}
 html body.oa-responsive.oa-responsive #vehicle-form .vehicle-paper-header :is(strong,span){font-size:11px!important;line-height:1.3}
 html body.oa-responsive.oa-responsive #vehicle-paper-title{font-size:16px!important;margin:6px 0!important}
 html body.oa-responsive.oa-responsive #vehicle-form .vehicle-paper-help{font-size:12px!important;margin:6px 0!important;line-height:1.4}
 html body.oa-responsive.oa-responsive #vehicle-form .vehicle-paper-table tr:first-child{grid-template-columns:100px 1fr!important;gap:0 6px!important;padding:4px 0!important;font-size:13px}
 html body.oa-responsive.oa-responsive #vehicle-form .vehicle-paper-actions{position:fixed;bottom:0;left:0;right:0;z-index:8;display:flex!important;flex-wrap:nowrap!important;gap:8px!important;background:#fff;padding:8px 12px max(8px,env(safe-area-inset-bottom))!important;border-top:1px solid #cad9e3;margin:0!important}
 html body.oa-responsive.oa-responsive #vehicle-form-view[hidden] .vehicle-paper-actions{display:none!important}
 html body.oa-responsive.oa-responsive #vehicle-form .vehicle-paper-actions>button{flex:1;min-width:0;font-size:14px!important}
 html body.oa-responsive.oa-responsive #vehicle-confirm>.panel{padding:12px!important;width:100%;max-height:var(--oa-dialog-available-height);overflow:auto}
 html body.oa-responsive.oa-responsive #vehicle-confirm .actions{display:flex;gap:8px;flex-wrap:nowrap}
 html body.oa-responsive.oa-responsive #vehicle-confirm .actions button{flex:1;min-width:0;font-size:13px!important}
 html body.oa-responsive.oa-responsive #contact-finished-preview .modal{display:flex;flex-direction:column;height:var(--oa-dialog-available-height);overflow:hidden}
 html body.oa-responsive.oa-responsive #contact-finished-preview .contact-preview-note{font-size:12px!important;margin:4px 0 8px!important;line-height:1.4}
 html body.oa-responsive.oa-responsive #contact-finished-preview iframe{min-height:0!important;flex:1;width:100%!important}
 .oa-preview-tools{display:flex;gap:8px;margin-bottom:6px}.oa-preview-tools button{flex:1;font-size:13px!important}
}
@media screen and (min-width:761px){.oa-preview-tools{display:none}}
@media screen and (max-width:760px){
 html body.oa-responsive.oa-responsive #leave-form{padding:0!important}
 html body.oa-responsive.oa-responsive #leave-form .day-result{justify-content:flex-start!important;text-align:left!important}
 html body.oa-responsive.oa-responsive #leave-form .day-result :is(strong,small){display:inline!important}
 html body.oa-responsive.oa-responsive #contact-create-view>.contact-notice{padding:4px 8px!important;margin:4px 0 8px!important;border-radius:8px!important}
 html body.oa-responsive.oa-responsive #contact-form>.panel-head{justify-content:flex-end}
 html body.oa-responsive.oa-responsive #contact-form .contact-source-fields>label:has(#sender-display){grid-column:1/-1}
 html body.oa-responsive.oa-responsive #contact-form .contact-source-fields>label:has(#issued-on){grid-column:2;grid-row:1}
 html body.oa-responsive.oa-responsive #contact-form .contact-source-fields>label:has(#issuer-department-display){grid-column:1;grid-row:1}
 html body.oa-responsive.oa-responsive .oa-preview-tools [aria-pressed=true]{border:2px solid #246485!important;background:#e5f2fa!important}
}
@media screen and (max-width:760px){
 html body.oa-responsive.oa-responsive #contact-detail-dialog .oa-detail-footer{display:flex!important;align-items:flex-end;justify-content:flex-end;max-height:35dvh;overflow:auto}
 html body.oa-responsive.oa-responsive #contact-detail-dialog .oa-detail-footer>button{flex:1;min-width:0;padding:8px!important;font-size:14px!important}
 html body.oa-responsive.oa-responsive .oa-approval-tools{flex:1;min-width:0;margin:0}
 html body.oa-responsive.oa-responsive .oa-approval-tools>summary{display:flex;justify-content:center;align-items:center;padding:6px;font-size:13px;border:1px solid #bfd5e2;border-radius:8px;background:#f3f8fc;cursor:pointer}
 html body.oa-responsive.oa-responsive .oa-approval-tool-list{display:grid;gap:6px;padding:6px 0}
 html body.oa-responsive.oa-responsive .oa-approval-tool-list>*{width:100%;font-size:12px!important;margin:0!important;padding:6px!important}
 html body.oa-responsive.oa-responsive #leave-form .day-result{display:grid!important;grid-template-columns:1fr auto!important;gap:3px 8px!important;text-align:left!important}
 html body.oa-responsive.oa-responsive #leave-form .day-result>small{grid-column:1/-1;line-height:1.4!important}
}
@media screen and (min-width:761px){.oa-approval-tools,.oa-approval-tool-list{display:contents}.oa-approval-tools>summary{display:none}}
@mediaprint{.oa-approval-tools,.oa-approval-tool-list{display:contents}.oa-approval-tools>summary{display:none}}
@media screen and (max-width:760px){
 html body.oa-responsive.oa-responsive .oa-approval-tools[open]{flex-basis:100%;display:grid;grid-template-columns:100px minmax(0,1fr);gap:6px;align-items:start}
 html body.oa-responsive.oa-responsive .oa-approval-tools[open]>.oa-approval-tool-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:160px;overflow:auto;padding:0;min-width:0}
}

/* Vehicle, gate and welfare density. Screen only; original report papers untouched. */
@media screen and (max-width:760px){
 html body.oa-responsive.oa-gate-density main{padding:8px 12px 20px!important}
 body.oa-gate-density main>header{display:grid;grid-template-columns:1fr auto;gap:3px 8px;padding:0 0 6px}
 body.oa-gate-density main>header>a{grid-column:1/-1;font-size:13px}
 body.oa-gate-density main>header h1{margin:3px 0!important;font-size:20px!important}
 body.oa-gate-density #operator{grid-column:1/-1;margin:2px 0;font-size:13px}
 body.oa-gate-density main>header .oa-language-switch{grid-column:1/-1;justify-self:end}
 body.oa-gate-density #oa-module-sidebar nav{display:flex;flex-wrap:nowrap;gap:5px;margin-top:8px}
 body.oa-gate-density #oa-module-sidebar button{flex:1;min-width:0;padding:5px!important;font-size:13px!important}
 body.oa-gate-density #category-title{margin:8px 0 4px!important}
 body.oa-gate-density #category-help{margin:4px 0 8px!important;font-size:12px;line-height:1.45}
 body.oa-gate-density :is(section,form#entry){padding:10px!important;margin:8px 0!important}
 body.oa-gate-density :is(section,form#entry)>p{font-size:12px;line-height:1.45;margin:5px 0}
 body.oa-gate-density h2{margin:7px 0!important;font-size:17px!important}
 body.oa-gate-density .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px}
 body.oa-gate-density .grid>label{font-size:13px;gap:3px}
 body.oa-gate-density .grid :is(.wide,.time-field,.manager-person-picker,.manager-checkbox){grid-column:1/-1}
 body.oa-gate-density .actions{gap:8px;margin:6px 0}
 .oa-gate-jumps{gap:6px;margin:0 0 8px;position:sticky;top:0;z-index:3;background:#fff;padding:4px 0}
 .oa-gate-jumps a{flex:1;min-width:0;min-height:44px;display:flex;align-items:center;justify-content:center;padding:4px;border:1px solid #bfd1df;border-radius:7px;color:#245f82;text-decoration:none;font-size:13px}
 body.oa-gate-density :is(#company-departure-count,#company-count,#company-history-q){scroll-margin-top:62px}
 html body.oa-responsive .oa-mobile-records{display:block;width:100%!important;min-width:0!important;table-layout:auto!important}
 .oa-mobile-records thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .oa-mobile-records tbody{display:block}
 .oa-mobile-records tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px;padding:8px 0;border-bottom:1px solid #cad9e3}
 html body.oa-responsive .oa-mobile-records tbody :is(td,th){display:block;width:auto!important;min-width:0;padding:2px!important;border:0;font-size:13px;line-height:1.4;white-space:normal!important}
 .oa-mobile-records td[data-oa-label]::before{content:attr(data-oa-label);display:block;font-size:11px;font-weight:600;color:#617c8d;line-height:1.3;margin:0 0 3px}
 .oa-mobile-records :is(.oa-record-wide,[colspan]){grid-column:1/-1}
 .oa-mobile-records .company-plate-number{font-size:20px!important}
 .oa-mobile-records .company-time-fields{display:grid;grid-template-columns:minmax(0,1fr) 65px 8px 65px;align-items:center;gap:4px}
 .oa-mobile-records .company-time-fields input[type=date]{min-width:0;width:100%;grid-column:1/-1}
 .oa-mobile-records .company-time-fields select{width:100%;min-width:0}
 .oa-mobile-records .company-time-fields select:first-of-type{grid-column:2}
 .oa-mobile-records .company-time-fields select:last-of-type{grid-column:4}
 .oa-mobile-records td:last-child{display:flex!important;align-items:center;flex-wrap:wrap;gap:8px}
 .oa-mobile-records td:last-child::before{flex-basis:100%}
 .oa-mobile-records td:last-child button{margin:0!important;min-width:96px}
 .oa-mobile-records td:last-child [role=status]{flex-basis:100%;margin:0}
 .oa-mobile-records .company-time24{display:flex;flex-wrap:wrap;gap:5px}
 .return-evidence-table{max-height:none!important;overflow:visible!important}
 .return-evidence-tools{gap:5px}.return-evidence-tools button{flex:1;min-width:0;font-size:12px!important}
 .return-word-tools{gap:6px!important;padding:8px!important;margin:8px 0!important}
 .return-word-tools label{flex:1 1 110px;min-width:0}.return-word-tools button{width:100%}
 #vehicle-passenger-plan :is([data-employee],[data-customer]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:8px 0;padding:8px;border:1px solid #c9d9e3;border-radius:6px}
 #vehicle-passenger-plan :is([data-employee],[data-customer]) label{min-width:0;display:grid;gap:3px;font-size:12px!important}
 #vehicle-passenger-plan [data-customer] label:first-child{grid-column:1/-1}
 #vehicle-passenger-plan [data-remove]{grid-column:1/-1;justify-self:end}
 #vehicle-passenger-plan>fieldset{margin:6px 0!important;padding:6px!important}
 #vehicle-passenger-plan legend{font-size:12px!important;line-height:1.35}
 body.oa-welfare-mobile :is(header,.tabs){padding-bottom:8px!important;margin-bottom:8px!important}
 body.oa-welfare-mobile .tabs{gap:5px}.oa-welfare-mobile .tabs button{flex:1;padding:6px!important;font-size:13px}
 body.oa-welfare-mobile #form>.card{margin-bottom:8px!important;padding:10px!important}
 body.oa-welfare-mobile .summary{font-size:12px!important;line-height:1.4}
 .oa-applicant-details{grid-column:1/-1;border:1px solid #c8d8e3;border-radius:7px;margin:0!important;padding:0 8px;background:#f5f9fc}
 .oa-applicant-details>summary{display:flex;align-items:center;min-height:48px;font-size:13px}
 .oa-applicant-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding-bottom:8px}
 body.oa-welfare-mobile #form>.oa-welfare-data>p.muted{font-size:12px;line-height:1.4}
 body.oa-welfare-mobile #form .grid{margin-top:8px!important}
 body.oa-welfare-mobile #proof-types .grid{gap:6px!important}
 body.oa-welfare-mobile #proof-types .check{min-height:44px;align-items:center;font-size:12px;gap:6px}
 body.oa-welfare-mobile #form{padding-bottom:68px}
 body.oa-welfare-mobile #form .actions{position:fixed;bottom:0;left:0;right:0;z-index:5;background:#fff;border-top:1px solid #c8d8e3;padding:8px 12px max(8px,env(safe-area-inset-bottom));gap:8px;flex-wrap:nowrap}
 body.oa-welfare-mobile #form .actions button{flex:1;min-width:0;padding:6px;font-size:14px}
 body.oa-welfare-mobile #apply[hidden] #form .actions{display:none!important}
 body.oa-welfare-mobile #preview[open]{display:flex;flex-direction:column;overflow:hidden;max-height:calc(100dvh - 16px);padding:12px!important;width:calc(100vw - 16px);margin:auto}
 #preview-body{min-height:0;overflow:auto}
 body.oa-welfare-mobile #preview>h2{margin:0 0 8px!important}
 body.oa-welfare-mobile #preview>.notice{font-size:12px;padding:8px!important;margin:6px 0;flex-shrink:0}
 body.oa-welfare-mobile #preview>.actions{flex-shrink:0;display:flex;flex-wrap:nowrap;gap:8px}
 body.oa-welfare-mobile #preview>.actions button{flex:1;padding:6px;font-size:13px}
}
@media screen and (min-width:761px){
 .oa-applicant-details{grid-column:1/-1;margin:0;padding:0}
 .oa-applicant-details>summary{font-size:13px;min-height:28px}
 .oa-applicant-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 html body.oa-responsive :is(.work-main,.contact-main){padding:10px 24px 20px!important}
 html body.oa-responsive :is(.work-topbar,.contact-topbar){min-height:44px!important;padding:4px 0!important}
 html body.oa-responsive :is(.work-note,.vehicle-query-result,.vehicle-tools){margin:6px 0!important}
 html body.oa-responsive #vehicle-form .vehicle-paper{padding:12px!important;margin-top:8px!important}
 html body.oa-responsive #vehicle-form .vehicle-paper-header{gap:10px;margin:0;padding:0}
 html body.oa-responsive #vehicle-form .vehicle-paper-header img{width:64px!important;height:auto}
 html body.oa-responsive #vehicle-form .vehicle-paper-header :is(strong,span){font-size:13px!important;line-height:1.3}
 html body.oa-responsive #vehicle-form #vehicle-paper-title{font-size:20px;margin:6px 0!important;line-height:1.3}
 html body.oa-responsive #vehicle-form .vehicle-paper-help{font-size:12px;margin:5px 0!important}
 html body.oa-responsive #vehicle-form .vehicle-paper-table :is(th,td){padding:5px 7px!important;font-size:13px}
 html body.oa-responsive #vehicle-form textarea{min-height:48px!important;font-size:14px;padding:6px!important;resize:vertical}
 html body.oa-responsive #vehicle-passenger-plan{display:grid;grid-template-columns:1fr 1fr;gap:6px}
 html body.oa-responsive #vehicle-passenger-plan>fieldset:first-of-type{grid-column:1/-1}
 html body.oa-responsive #vehicle-passenger-plan>fieldset{margin:0!important;padding:5px!important}
 html body.oa-responsive #vehicle-passenger-plan .passenger-roster{max-height:144px!important;gap:2px 8px!important}
 html body.oa-responsive #vehicle-passenger-plan .passenger-roster label{padding:3px!important;min-height:30px;line-height:1.3;font-size:12px}
 html body.oa-responsive #vehicle-passenger-plan legend{font-size:12px}
 html body.oa-responsive #vehicle-passenger-plan :is([data-employee],[data-customer]){display:grid;grid-template-columns:1fr 1fr;gap:6px}
 html body.oa-responsive #vehicle-passenger-plan :is([data-employee],[data-customer]) label{font-size:12px}
 html body.oa-responsive #vehicle-passenger-plan [data-remove]{justify-self:end;grid-column:1/-1}
 html body.oa-responsive #vehicle-passenger-plan [data-passenger-status]{grid-column:1/-1;margin:2px 0}
 html body.oa-responsive #vehicle-form .vehicle-paper-signatures{display:none}
 html body.oa-responsive #vehicle-form .vehicle-paper-actions{position:sticky;bottom:0;background:#fff;padding:6px 0;border-top:1px solid #c8d8e3;margin:6px 0!important;z-index:2}
 html body.oa-responsive #vehicle-form :is(button,input,select){min-height:34px!important}
 body.oa-gate-density main{max-width:none;padding:12px 24px!important}
 body.oa-gate-density main>header{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
 body.oa-gate-density main>header h1{margin:4px 0;font-size:23px}
 body.oa-gate-density #operator{margin:0;font-size:13px}
 body.oa-gate-density #oa-module-sidebar nav{margin-top:8px}
 body.oa-gate-density :is(section,form#entry){padding:10px!important;margin:8px 0!important}
 body.oa-gate-density :is(h2,legend){margin:6px 0!important;font-size:17px}
 body.oa-gate-density :is(#category-help,section>p){font-size:12px;line-height:1.4;margin:5px 0}
 body.oa-gate-density :is(td,th){padding:5px 6px!important;font-size:13px}
 body.oa-gate-density :is(input,select,button){min-height:34px!important;padding:5px 7px!important}
 body.oa-gate-density .actions{margin-top:6px;gap:6px}
 body.oa-welfare-mobile main{max-width:none;padding:12px 24px}
 body.oa-welfare-mobile header{padding-bottom:8px}
 body.oa-welfare-mobile .notice{font-size:13px;padding:8px 12px;margin:8px 0}
 body.oa-welfare-mobile .tabs{margin:8px 0;gap:6px}
 body.oa-welfare-mobile .card{padding:12px;margin-bottom:10px}
 body.oa-welfare-mobile .grid{gap:8px; margin-top:8px!important}
 body.oa-welfare-mobile .field{gap:3px;font-size:13px}
 body.oa-welfare-mobile :is(input,select){padding:6px;min-height:34px}
 body.oa-welfare-mobile :is(h2,.money){font-size:18px}
 body.oa-welfare-mobile .muted{font-size:12px;line-height:1.4}
 body.oa-welfare-mobile .summary{padding:8px 10px;margin-top:8px;font-size:13px;line-height:1.4}
 body.oa-welfare-mobile .check{margin:6px 0}
 body.oa-welfare-mobile #form .actions{position:sticky;bottom:0;background:#fff;padding:8px 0;gap:8px}
}
@media screen and (min-width:960px){
 body.oa-welfare-mobile #form{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:10px;align-items:start}
 body.oa-welfare-mobile #form>.card{margin:0!important}
 body.oa-welfare-mobile #form>.oa-welfare-proof{grid-column:1/-1}
 body.oa-welfare-mobile #form .choices{grid-template-columns:1fr 1fr;gap:6px}
 body.oa-welfare-mobile #form .choice{padding:9px;min-height:64px}
 body.oa-welfare-mobile #proof-types .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media screen and (max-width:760px){
 .oa-mobile-records .company-time-fields{display:block!important}
 .oa-mobile-records .manager-datetime{display:grid!important;grid-template-columns:minmax(0,1fr) 74px 8px 74px;gap:4px;align-items:center}
 .oa-mobile-records .manager-datetime input[type=date]{width:100%!important;min-width:0!important;grid-column:1/-1}
 .oa-mobile-records .manager-datetime select:first-of-type{grid-column:2;width:74px!important}
 .oa-mobile-records .manager-datetime select:last-of-type{grid-column:4;width:74px!important}
 .oa-mobile-records .manager-datetime>span{grid-column:3}
}

@media screen and (max-width:760px){
 .oa-mobile-records .manager-datetime{grid-template-columns:minmax(0,1fr) 60px 8px 60px!important}
 .oa-mobile-records .manager-datetime input[type=date]{grid-column:1!important}
 .oa-mobile-records .manager-datetime select:first-of-type,.oa-mobile-records .manager-datetime select:last-of-type{width:60px!important}
}
@media screen and (min-width:960px){
 body.oa-welfare-mobile #form>.oa-welfare-data{grid-column:2;grid-row:1/span 2}
 body.oa-welfare-mobile #form>.oa-welfare-proof{grid-column:1;grid-row:2}
 body.oa-welfare-mobile #proof-types .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media screen and (max-width:760px){
 html body.oa-responsive #vehicle-schedule-view .schedule-header{display:none!important}
 html body.oa-responsive #vehicle-schedule-view .schedule-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px 8px;padding:8px!important}
 html body.oa-responsive #vehicle-schedule-view .schedule-cell{font-size:13px!important;line-height:1.4;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
 #vehicle-schedule-view .schedule-cell::before{content:attr(data-oa-label);display:block;font-size:11px;font-weight:600;color:#617c8d;margin-bottom:2px}
 #vehicle-schedule-view .schedule-cell:first-child{grid-column:1/-1}
 html body.oa-responsive #vehicle-schedule-view .schedule-controls{grid-column:1/-1;padding-top:5px}
 html body.oa-responsive #vehicle-schedule-view .schedule-controls select{height:auto!important;max-width:none;min-height:44px!important}
 html body.oa-responsive #vehicle-schedule-view .schedule-controls button{height:auto!important;min-width:62px;min-height:48px!important}
 html body.oa-responsive #vehicle-list .vehicle-row-quick button{min-width:48px}
}

@media screen{
 .oa-applicant-help{font-size:12px;color:#617c8d;margin:4px 0}
 .oa-applicant-help p{margin:4px 0;font-size:12px}
 .oa-applicant-details>summary{display:list-item;line-height:1.4;padding:12px 0;cursor:pointer}
}
@media screen and (max-width:760px){
 .oa-applicant-help>summary{padding:8px 0;min-height:44px!important}
 html body.oa-responsive .oa-mobile-records tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media screen and (min-width:960px){
 body.oa-welfare-mobile #form>.oa-form-error-summary{grid-column:1/-1}
 body.oa-welfare-mobile #form>.oa-welfare-kind{grid-column:1;grid-row:1}
 body.oa-welfare-mobile #form>.oa-welfare-data{grid-column:2;grid-row:1/span 2}
 body.oa-welfare-mobile #form>.oa-welfare-proof{grid-column:1;grid-row:2}
 body.oa-welfare-mobile #form .oa-welfare-proof{font-size:13px;line-height:1.4}
 body.oa-welfare-mobile #form .oa-welfare-proof #proof-types .check{font-size:12px;min-height:30px!important;padding:3px;align-items:center}
}

@media screen and (min-width:960px){
 body.oa-welfare-mobile #form>.oa-form-errors{grid-column:1/-1;grid-row:1}
 body.oa-welfare-mobile #form>.oa-welfare-kind{grid-row:2}
 body.oa-welfare-mobile #form>.oa-welfare-data{grid-row:2/span 2}
 body.oa-welfare-mobile #form>.oa-welfare-proof{grid-row:3}
}

/* Corrections verified in embedded OA workspace and dynamic onboarding groups. */
@media screen{
 body.oa-admin-density .onboarding-fields>section{grid-column:1/-1;min-width:0}
 body.oa-admin-density .onboarding-fields>section :is(h3,p){margin:5px 0;font-size:13px;line-height:1.4}
 body.oa-admin-density .panel-head h2{text-align:left!important}
}
@media screen and (max-width:760px){
 html body.oa-admin-density .panel-head>div{flex:1 1 100%;min-width:0}
 html body.oa-admin-density .panel-head>button{width:auto!important;min-width:120px}
 html body.oa-files-density #forms-app .forms-header{display:flex;flex-wrap:wrap}
 html body.oa-files-density #forms-app .forms-header>div:first-child{flex:1 1 100%}
 html body.oa-files-density #forms-app .forms-header>.oa-language-controls{width:auto!important;margin-left:auto}
 html body.oa-admin-density .onboarding-fields>label:has(#annual-leave-days){grid-column:1/-1}
}

@mediaprint{.oa-category-details>summary{display:none!important}.oa-category-details{margin:0}}

/* Embedded fleet, finance and personnel pages: preserve original controls and print geometry. */
@media screen{
 body.oa-responsive #vehicle-monthly-view>h2,body.oa-responsive #vehicle-fleet-view>h2{margin:8px 0;font-size:19px}
 body.oa-responsive #vehicle-monthly-view>p,body.oa-responsive #vehicle-fleet-view>p{margin:5px 0;line-height:1.4;font-size:13px}
 body.oa-responsive #vehicle-monthly-view .monthly-tools{margin:6px 0;gap:6px;align-items:end}
 body.oa-responsive #vehicle-monthly-view .monthly-tools label{display:grid;gap:3px;font-size:12px;min-width:0}
 body.oa-responsive #monthly-close-panel{padding:8px 10px;margin:7px 0;line-height:1.4}
 body.oa-responsive #monthly-close-panel h3{font-size:15px;margin:0 0 4px}
 body.oa-responsive #monthly-close-panel p,body.oa-responsive #monthly-summary p{margin:4px 0;font-size:12px}
 body.oa-responsive #monthly-summary{font-size:13px;line-height:1.4;margin:6px 0}
 body.oa-responsive #monthly-normal h3{margin:8px 0 4px;font-size:16px}
 body.oa-responsive #monthly-normal p{margin:5px 0;line-height:1.4;font-size:13px}
 body.oa-responsive #vehicle-fleet-view .vehicle-admin-row{padding:7px 8px;gap:6px 10px;align-items:end}
 body.oa-responsive #manager-gantt-view .gantt-month{margin:8px 0;padding:10px}
 body.oa-responsive #manager-gantt-view .gantt-month h2{font-size:16px;margin:0 0 5px}
 .oa-gantt-timeline>summary{display:none}
 body.oa-admin-density #transfer-app .panel{padding:10px 12px;margin:8px 0}
 body.oa-admin-density #transfer-app :is(.panel h2,.panel-head p,#workflow-help){margin:5px 0}
 body.oa-admin-density #transfer-app .workflow-choices{margin:6px 0}
 body.oa-admin-density #transfer-app .transfer-fields{margin-bottom:6px}
 body.oa-admin-density #transfer-app .notice{padding:8px 10px;margin:6px 0;font-size:13px;line-height:1.45}
}
@media screen and (max-width:760px){
 html body.oa-responsive #vehicle-fleet-view .vehicle-admin-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px}
 html body.oa-responsive #vehicle-fleet-view .vehicle-admin-row label{min-width:0;max-width:none}
 html body.oa-responsive #vehicle-fleet-view .vehicle-admin-row :is(input,select){min-width:0;min-height:48px!important;width:100%!important}
 html body.oa-responsive #vehicle-fleet-view .vehicle-admin-row>p{grid-column:1/-1;margin:3px 0}
 html body.oa-responsive #vehicle-fleet-view .vehicle-admin-row>button{min-height:48px!important;width:100%!important}
 html body.oa-responsive #vehicle-monthly-view>.monthly-tools:has(#monthly-period){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
 html body.oa-responsive #vehicle-monthly-view>.monthly-tools:has(#monthly-period)>label:has(#monthly-basis){grid-column:1/-1}
 html body.oa-responsive #vehicle-monthly-view .monthly-tools :is(select,button){min-height:48px!important;max-width:100%;white-space:normal}
 html body.oa-responsive #monthly-export{grid-column:1/-1;width:100%!important}
 html body.oa-responsive #vehicle-monthly-view>.monthly-tools:has([data-monthly-kind]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 html body.oa-responsive #vehicle-monthly-view>.monthly-tools:has([data-monthly-kind]) button{width:100%!important}
 html body.oa-responsive #monthly-normal .monthly-table:has(.oa-monthly-records){max-height:none;overflow:visible}
 html body.oa-responsive #monthly-normal .oa-monthly-records{min-width:0!important;width:100%!important;display:block}
 html body.oa-responsive #monthly-normal .oa-monthly-records thead{display:none}
 html body.oa-responsive #monthly-normal .oa-monthly-records tbody{display:block}
 html body.oa-responsive #monthly-normal .oa-monthly-records tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px;padding:8px;border-bottom:1px solid #c8dbe5}
 html body.oa-responsive #monthly-normal .oa-monthly-records td{display:block;border:0;padding:0;min-width:0;overflow-wrap:anywhere;white-space:normal;font-size:13px}
 #monthly-normal .oa-monthly-records td::before{content:attr(data-oa-label);display:block;font-size:11px;color:#617c8d;font-weight:600;margin-bottom:2px}
 html body.oa-responsive #monthly-normal .oa-monthly-records tr.oa-monthly-band{display:block;padding:6px 8px;background:#eaf3f8}
 html body.oa-responsive #monthly-normal .oa-monthly-band td::before{display:none}
 html body.oa-responsive #monthly-normal .oa-monthly-records td:last-child{display:flex;align-items:end;justify-content:end}
 html body.oa-responsive #monthly-normal .oa-monthly-records td:last-child::before{display:none}
 .oa-gantt-list{list-style:none;padding:0;margin:6px 0;font-size:13px;line-height:1.5}
 .oa-gantt-list li{padding:8px 0;border-bottom:1px solid #d8e4ed;overflow-wrap:anywhere}
 .oa-gantt-timeline>summary{display:list-item;min-height:48px;padding:12px 0;font-size:13px;cursor:pointer;box-sizing:border-box}
 html body.oa-admin-density #transfer-app .workflow-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 html body.oa-admin-density #transfer-app .workflow-choices button{padding:6px!important;min-height:48px!important;width:100%!important;font-size:12px}
 html body.oa-admin-density #transfer-app .workflow-choices button:last-child{grid-column:1/-1}
}
@mediaprint{.oa-gantt-list,.oa-gantt-timeline>summary{display:none!important}}

@media screen and (max-width:760px){html body.oa-responsive .oa-gantt-list{display:block!important;columns:auto!important;column-count:1!important}html body.oa-responsive .oa-gantt-list li{display:block!important;white-space:pre-line;width:100%;box-sizing:border-box}html body.oa-responsive .oa-gantt-timeline{clear:both}}
@media screen and (max-width:760px){
 html body.oa-responsive #monthly-close-panel form{min-width:0;max-width:100%;box-sizing:border-box;padding:8px}
 html body.oa-responsive #monthly-close-panel label{min-width:0;max-width:100%;box-sizing:border-box}
 html body.oa-responsive #monthly-close-panel input:not([type=checkbox]){min-width:0;max-width:100%;width:100%;box-sizing:border-box;flex:1 1 100%;min-height:48px!important}
 html body.oa-responsive #monthly-close-panel label:has(input[type=checkbox]){min-height:48px!important;flex-wrap:nowrap}
}
@media screen{
 html body.oa-responsive.oa-admin-density #transfer-app .panel{padding:10px 12px!important;margin:8px 0!important}
 html body.oa-responsive.oa-admin-density #transfer-app :is(.panel h2,.panel-head p,#workflow-help){margin:5px 0!important;line-height:1.4}
 html body.oa-responsive.oa-admin-density #transfer-app .panel h2{font-size:16px!important}
 html body.oa-responsive.oa-admin-density #transfer-app .panel-head{margin-bottom:8px!important}
 html body.oa-responsive.oa-admin-density #transfer-app .transfer-fields{gap:8px!important;margin-bottom:6px!important}
}

/* Continuity and finance editors: screen only, original fields/actions preserved. */
@media screen{
 html body.oa-continuity-density main>header{margin-bottom:8px!important;gap:10px;align-items:center}
 html body.oa-continuity-density main>header>div{flex:1;text-align:left}
 html body.oa-continuity-density main>header h1{text-align:left!important;font-size:22px!important}
 html body.oa-continuity-density main .panel{padding:10px 12px!important;margin:8px 0!important}
 html body.oa-continuity-density main .panel-head{margin-bottom:8px!important;gap:8px}
 html body.oa-continuity-density main :is(h2,h3){margin:5px 0!important;font-size:16px!important}
 html body.oa-continuity-density main .panel p{margin:5px 0!important;line-height:1.4}
 html body.oa-continuity-density :is(#delegation-editor,#delegation-revoke){padding:8px 10px;margin:8px 0}
 html body.oa-continuity-density :is(.fields,#fields:not([hidden])){gap:6px 10px!important}
 html body.oa-continuity-density label{min-width:0;gap:3px!important;margin:4px 0!important;line-height:1.4}
 html body.oa-continuity-density .actions{margin-top:8px;gap:6px;align-items:center}
 html body.oa-continuity-density table small{display:block;line-height:1.4;font-size:11px;margin-top:2px}
 html body.oa-continuity-density table :is(td,th){padding:6px 8px!important}
 html body.oa-continuity-density :is(#delegation-review,#review){padding:8px 10px;line-height:1.45;margin:6px 0}
 html body.oa-continuity-density [role=alert]:not(:empty){padding:8px;border:1px solid #dfb1a7;background:#fff0ed;color:#922c23;overflow-wrap:anywhere}
 html body.oa-continuity-density #delegation-form .fields label:has(:disabled)::after{content:'核對中；可返回修改';font-size:11px}
 html body.oa-responsive #monthly-normal [data-finance-form] form{width:100%;max-width:none;padding:10px!important;box-sizing:border-box;margin:8px 0}
 html body.oa-responsive #monthly-normal [data-finance-form] :is(h4,p,label){margin:4px 0!important;line-height:1.4}
 html body.oa-responsive #monthly-normal [data-finance-form] fieldset{padding:8px 10px;margin:8px 0;min-width:0}
 html body.oa-responsive #monthly-normal .monthly-finance-grid{gap:6px 10px}
 html body.oa-responsive #monthly-normal [data-rider]{display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,2fr) auto;gap:6px 10px;padding:6px 0;align-items:end}
 html body.oa-responsive #monthly-normal [data-finance-form] label{min-width:0}
 html body.oa-responsive #monthly-normal [data-finance-form] input:not([type=checkbox]),html body.oa-responsive #monthly-normal [data-finance-form] select{width:100%!important;max-width:100%;min-width:0;box-sizing:border-box}
 html body.oa-responsive #monthly-normal [data-finance-form] :is(form>.monthly-tools){position:sticky;bottom:0;z-index:5;background:#f4f9fc;border-top:1px solid #bfd3e3;padding:6px 0;margin:6px 0 0}
}
@media screen and (min-width:960px){
 html body.oa-continuity-density #delegation-app>.panel>.fields{grid-template-columns:180px minmax(220px,1fr) auto;align-items:end}
 html body.oa-continuity-density #delegation-form .fields{grid-template-columns:repeat(4,minmax(0,1fr))}
 html body.oa-continuity-density #vacancy-app #fields:not([hidden]){grid-template-columns:repeat(3,minmax(0,1fr))}
 html body.oa-responsive #monthly-normal [data-kind=settings] .monthly-finance-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 html body.oa-responsive #monthly-normal [data-kind=trip] .monthly-finance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (max-width:760px){
 html body.oa-continuity-density main>header{flex-wrap:wrap}
 html body.oa-continuity-density main>header .back{font-size:12px}
 html body.oa-continuity-density #delegation-form .fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body.oa-continuity-density #delegation-form .fields label:has(select){grid-column:1/-1}
 html body.oa-continuity-density #delegation-modules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px;padding:6px;margin:6px 0}
 html body.oa-continuity-density #delegation-modules label{display:flex;align-items:center;min-height:48px;gap:6px;font-size:12px}
 html body.oa-continuity-density #delegation-modules input{width:20px!important;min-height:0!important;height:20px!important;flex-shrink:0}
 html body.oa-continuity-density #vacancy-app #fields:not([hidden]){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body.oa-continuity-density #vacancy-app #fields label:has(select),html body.oa-continuity-density #vacancy-app #fields label:has([name=reason]){grid-column:1/-1}
 html body.oa-continuity-density :is(#vacancy-app,#delegation-app) input:not([type=checkbox]),html body.oa-continuity-density :is(#vacancy-app,#delegation-app) select{min-height:48px!important;min-width:0;box-sizing:border-box;width:100%}
 html body.oa-continuity-density :is(#form,#delegation-form,#revoke-form)>.actions{position:sticky;bottom:0;z-index:4;padding:6px 0;background:#f4f9fc;display:flex;gap:6px}
 html body.oa-continuity-density :is(#form,#delegation-form,#revoke-form)>.actions button:not([hidden]){width:auto!important;flex:1;min-width:0;min-height:48px!important}
 html body.oa-continuity-density table.oa-density-records td:nth-child(3),html body.oa-continuity-density table.oa-density-records td:nth-child(4),html body.oa-continuity-density table.oa-density-records td:last-child{grid-column:1/-1}
 html body.oa-continuity-density table.oa-density-records td:last-child{display:flex!important;flex-wrap:wrap;gap:6px;justify-content:flex-end;align-items:center}
 html body.oa-continuity-density table.oa-density-records td:last-child::before{display:none!important}
 html body.oa-continuity-density table.oa-density-records :is(button,a){min-height:48px!important;display:inline-flex;align-items:center;justify-content:center;padding:6px;font-size:12px}
 html body.oa-continuity-density #vacancy-app>.panel>.actions:has(#vacancy-new){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 html body.oa-continuity-density #vacancy-app>.panel>.actions:has(#vacancy-new) button{width:100%!important;min-height:48px!important;padding:6px!important;font-size:12px}
 html body.oa-continuity-density #office-new{grid-column:1/-1}
 html body.oa-responsive #monthly-normal [data-finance-form] form{padding:8px!important}
 html body.oa-responsive #monthly-normal [data-finance-form] fieldset{padding:6px;margin:6px 0}
 html body.oa-responsive #monthly-normal .monthly-finance-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px 8px}
 html body.oa-responsive #monthly-normal [data-rider]{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px;padding:5px 0}
 html body.oa-responsive #monthly-normal [data-rider] label:has([name=person]){grid-column:1/-1}
 html body.oa-responsive #monthly-normal [data-rider]>button{grid-column:2;min-height:48px!important}
 html body.oa-responsive #monthly-normal [data-finance-form] label{font-size:12px!important;gap:3px}
 html body.oa-responsive #monthly-normal [data-finance-form] input:not([type=checkbox]),html body.oa-responsive #monthly-normal [data-finance-form] select{min-height:48px!important;font-size:16px!important}
 html body.oa-responsive #monthly-normal [data-finance-form] label:has(input[type=checkbox]){min-height:48px}
 html body.oa-responsive #monthly-normal [data-finance-form] summary{min-height:48px;display:flex;align-items:center;font-size:12px}
 html body.oa-responsive #monthly-normal [data-finance-form] form>.monthly-tools{display:flex!important;gap:6px;justify-content:space-between}
 html body.oa-responsive #monthly-normal [data-finance-form] form>.monthly-tools button{width:auto!important;flex:1;min-width:0;min-height:48px!important;margin:0!important}
}

@media screen{html body.oa-continuity-density #vacancy-app>header h1{flex:1;margin:0!important;text-align:left!important}}
@media screen and (max-width:760px){html body.oa-continuity-density #vacancy-app .admin-context-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}html body.oa-continuity-density #vacancy-app .admin-context-tabs a{min-height:48px;display:flex;align-items:center;justify-content:center;font-size:12px}}

/* Audit fixes: search must remain usable even with paper intake actions. */
@media screen and (max-width:760px){
 html body.oa-responsive.oa-responsive .vehicle-tools .vehicle-search{flex:1 0 100%!important;width:100%!important}
 html body.oa-responsive.oa-responsive .vehicle-tools .vehicle-search input{width:100%!important}
 html body.oa-responsive #energy-app:has(#site-rows) table.oa-density-records tbody tr{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3px 6px!important;padding:6px!important;margin:4px 0!important}
 html body.oa-responsive #energy-app #site-rows td:first-child{grid-column:1/-1;font-size:15px!important;font-weight:700;overflow-wrap:normal!important}
 html body.oa-responsive #energy-app #site-rows td:first-child::before{display:none!important}
 html body.oa-responsive #energy-app #site-rows td:last-child{grid-column:1/-1;display:flex!important;gap:6px;justify-content:flex-end}
 html body.oa-responsive #energy-app #site-rows td:last-child::before{display:none!important}
 html body.oa-responsive #energy-app #site-rows button{white-space:nowrap!important}
}
@media screen{
 #contact-reports-view>#contact-report-menu{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}
 #contact-reports-view>#contact-report-menu button{width:auto!important;min-width:0;flex:0 1 auto;padding:6px 10px!important;font-size:13px!important}
}

@media screen and (max-width:760px){
 html body.oa-responsive #energy-app:has(#site-rows) table{display:block!important;min-width:0!important;width:100%!important}
 html body.oa-responsive #energy-app:has(#site-rows) table thead{position:absolute!important;width:1px!important;height:1px!important;clip-path:inset(50%)!important;overflow:hidden!important}
 html body.oa-responsive #energy-app #site-rows{display:block!important;width:100%!important}
 html body.oa-responsive #energy-app #site-rows tr{display:grid!important;border:1px solid #c9dce8!important;border-radius:8px!important;background:white!important}
 html body.oa-responsive #energy-app #site-rows td{display:block!important;width:auto!important;max-width:100%!important;padding:3px!important;border:0!important;white-space:normal!important}
 html body.oa-responsive.oa-responsive #vehicle-list-view .oa-flow-help{margin:0!important}
 html body.oa-responsive.oa-responsive #vehicle-list-view .oa-phone-status{margin:2px 0!important}
 html body.oa-responsive.oa-responsive #vehicle-count-scope{margin:4px 0!important;font-size:12px!important;line-height:1.4}
 html body.oa-responsive.oa-responsive #vehicle-list-view .operations-more{padding:4px 8px;margin:4px 0}
 html body.oa-responsive.oa-responsive #vehicle-list-view .vehicle-query-result{margin:4px 0}
}

@media screen and (max-width:760px){
 html body.oa-responsive #energy-app #site-rows td:not(:first-child):not(:last-child)::before{display:block!important;content:attr(data-oa-label)!important;font-size:11px;color:#617b8b;margin-bottom:2px}
 html body.oa-responsive #energy-app #site-rows td:first-child{text-align:left!important}
 html body.oa-responsive #energy-app #site-rows td:last-child{display:flex!important}
 html body.oa-responsive.oa-responsive #energy-app #site-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}
 html body.oa-responsive.oa-responsive #energy-app #site-stats .stat{padding:6px!important;font-size:12px}
 html body.oa-responsive.oa-responsive #energy-app #site-rows button{min-height:44px!important}
}

@media screen{
 .department-composer{border:1px solid #c8d8e4;border-radius:8px;padding:4px 8px;margin:6px 0}
 .department-composer>summary{cursor:pointer;font-size:13px;font-weight:600;padding:6px 0}
 .oa-upload-help{flex-basis:100%;grid-column:1/-1;font-size:12px}
 .oa-upload-help>summary{cursor:pointer;font-size:12px;padding:4px 0}
 .oa-upload-help small{display:block;margin:4px 0;line-height:1.5}
 .oa-calendar-scroll{max-width:100%;overflow-x:auto}
 html body.oa-ui #calendar-grid .day-cell{min-height:112px}
}
@media screen and (max-width:760px){
 html body.oa-responsive.oa-responsive .oa-calendar-scroll :is(.weekday-row,#calendar-grid){min-width:672px!important;grid-template-columns:repeat(7,minmax(96px,1fr))!important}
 html body.oa-responsive.oa-responsive #calendar-grid .day-cell{min-height:166px!important}
 html body.oa-responsive.oa-responsive #calendar-grid :is(.leave-bar,.subordinate-name,.subordinate-summary){white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;word-break:normal!important;overflow-wrap:normal!important;min-height:44px!important;height:44px!important;font-size:12px!important}
 .oa-calendar-hint{font-size:12px;margin:4px 0;color:#536d7e}
 html body.oa-responsive.oa-responsive :is(.oa-upload-help,.department-composer)>summary{min-height:44px;display:flex;align-items:center}
}

@media screen and (max-width:760px){
 html body.oa-responsive.oa-responsive #forms-app dialog :is(input,select,textarea):not([type=checkbox]){min-height:44px!important;font-size:16px!important;padding:6px!important}
 html body.oa-responsive.oa-responsive #forms-app dialog button{min-height:44px!important}
 html body.oa-responsive.oa-responsive #forms-app dialog{padding:12px!important;max-height:calc(100dvh - 24px)!important}
 html body.oa-responsive.oa-responsive #forms-app dialog h2{margin:4px 0 8px!important}
 html body.oa-responsive.oa-responsive #forms-app dialog .forms-tools{justify-content:flex-end;gap:6px}
}

@media screen{
 html body.oa-ui .admin-group-card{padding:8px!important;margin:8px 0!important}
 html body.oa-ui .admin-group-roles{gap:6px!important}
 html body.oa-ui .admin-group-roles>section{padding:6px!important}
 html body.oa-ui .admin-group-roles :is(h4,p){margin:4px 0!important;font-size:13px}
}
@media screen and (max-width:760px){
 html body.oa-responsive.oa-responsive #contact-status-filters,html body.oa-responsive.oa-responsive #contact-management-scopes{display:none!important}
 html body.oa-responsive .oa-contact-phone-filter{display:grid!important;grid-template-columns:76px minmax(0,1fr);gap:6px;align-items:center;margin:4px 0;font-size:12px}
 html body.oa-responsive .oa-contact-phone-filter[hidden]{display:none!important}
 html body.oa-responsive .oa-contact-phone-filter select{width:100%;min-width:0}
 html body.oa-responsive.oa-responsive #vehicle-list .vehicle-row-summary{grid-template-areas:'person status' 'destination destination' 'times times' 'flow flow' 'actions actions'}
 html body.oa-responsive.oa-responsive #vehicle-list .vehicle-row-times,html body.oa-responsive.oa-responsive #vehicle-list .vehicle-row-times>*{white-space:normal!important;max-width:100%!important;overflow-wrap:anywhere}
}

@media screen{
 html body.oa-ui #contract-app{padding:12px 16px;max-width:100%;box-sizing:border-box;background:#f3f6f9}
 html body.oa-ui #contract-app header{display:flex;align-items:center;gap:12px}
 html body.oa-ui #contract-app h1{font-size:22px;margin:6px 0}
 html body.oa-ui #contract-form{padding:10px;border:1px solid #c9dce8;border-radius:8px;background:#fff}
 html body.oa-ui #contract-form label{display:grid;gap:4px;margin:6px 0;font-size:13px}
 html body.oa-ui #contract-form label:has([type=checkbox]){display:flex;align-items:center}
 html body.oa-ui #contract-form :is(input,select){min-height:34px;width:100%;padding:6px;box-sizing:border-box}
 html body.oa-ui #contract-form input[type=checkbox]{width:20px;min-height:20px;flex:0 0 20px}
}
@media screen and (max-width:760px){
 html body.oa-responsive #contract-app table.oa-density-records td:first-child,html body.oa-responsive #contract-app table.oa-density-records td:last-child{grid-column:1/-1}
 html body.oa-responsive #contract-app table.oa-density-records td:first-child::before,html body.oa-responsive #contract-app table.oa-density-records td:last-child::before{display:none!important}
 html body.oa-responsive #contract-app table.oa-density-records td:first-child{font-size:16px;font-weight:700}
 html body.oa-responsive #contract-app table.oa-density-records td:last-child{text-align:right}
 html body.oa-responsive #contract-app .monthly-table{overflow-x:visible}
 html body.oa-responsive #contract-app .monthly-finance-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px}
 html body.oa-responsive #contract-app .monthly-finance-grid label:has([name=amount]){grid-column:1/-1}
 html body.oa-responsive #contract-form :is(input,select):not([type=checkbox]){min-height:44px!important}
 html body.oa-responsive.oa-responsive #monthly-costs [data-cost-form] .monthly-finance-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px 8px}
 html body.oa-responsive.oa-responsive #monthly-costs [data-cost-form] label{min-width:0;margin:3px 0;font-size:12px}
 html body.oa-responsive.oa-responsive #monthly-costs [data-cost-form] .monthly-finance-grid label:has([name=day]){grid-column:1/-1}
 html body.oa-responsive.oa-responsive #monthly-costs [data-cost-form] :is(input,select){width:100%!important;min-width:0;min-height:44px!important}
 html body.oa-responsive.oa-responsive #monthly-costs [data-cost-form] form>.monthly-tools{position:sticky;bottom:0;background:#f3f6fa;padding:6px 0;display:flex;justify-content:space-between}
}

@media screen{
 .oa-demo-tools:not([open])>.oa-demo-switch{display:none!important}
 .oa-demo-tools>summary{cursor:pointer;font-size:12px}
}
@media screen and (max-width:760px){
 html body.oa-files-density #forms-app table.oa-density-records tbody tr{grid-template-columns:28px minmax(0,1fr) minmax(0,1fr)!important;gap:3px 6px!important;padding:6px!important;margin:4px 0!important}
 html body.oa-files-density #forms-app table.oa-density-records td:first-child::before,html body.oa-files-density #forms-app table.oa-density-records td:last-child::before{display:none!important}
 html body.oa-files-density #forms-app table.oa-density-records td:nth-child(2){grid-column:2/-1}
 html body.oa-files-density #forms-app table.oa-density-records td:nth-child(4){grid-column:2}
 html body.oa-files-density #forms-app table.oa-density-records td:nth-child(5){grid-column:3}
 html body.oa-files-density #forms-app table.oa-density-records td:last-child{display:flex!important;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:6px}
}

/* Phone calendar shows the complete week; the existing day dialog holds names. */
@media screen and (max-width:760px){
 html body.oa-responsive.oa-responsive .oa-calendar-scroll :is(.weekday-row,#calendar-grid){min-width:0!important;grid-template-columns:repeat(7,minmax(0,1fr))!important}
 html body.oa-responsive.oa-responsive #calendar-grid .day-cell{min-height:82px!important;padding:3px!important}
 html body.oa-responsive.oa-responsive #calendar-grid .oa-calendar-count{display:block;width:100%;min-height:44px!important;padding:2px!important;white-space:nowrap!important;font-size:12px!important;border-radius:5px!important}
 html body.oa-responsive.oa-responsive #calendar-grid .oa-calendar-count.pending{background:#fff2dc!important;color:#80521b!important;border:1px solid #d8b979!important}
 html body.oa-responsive.oa-responsive #calendar-grid .oa-calendar-count.approved{background:#e4f3f1!important;color:#21605a!important;border:1px solid #9dc9bf!important}
}

@media screen{
 .oa-count-help{font-size:12px;color:#536d7e;margin:3px 0}
 .oa-count-help>summary{cursor:pointer;padding:4px 0}
}
@media screen and (max-width:760px){
 html body.oa-responsive.oa-responsive #contact-records-view .contact-page-head{padding:6px 0!important;margin:4px 0!important}
 html body.oa-responsive.oa-responsive #contact-records-view .panel-head{display:flex!important;align-items:center;gap:6px;flex-wrap:nowrap!important;margin-bottom:4px!important}
 html body.oa-responsive.oa-responsive #contact-records-view .panel-head>div{flex:1;min-width:0}
 html body.oa-responsive.oa-responsive #record-list-title{display:none!important}
 html body.oa-responsive.oa-responsive #contact-records-view .panel-head button{width:auto!important}
 html body.oa-responsive.oa-responsive #contact-records-view .oa-flow-help{margin:0!important}
 html body.oa-responsive .oa-count-help>summary{min-height:44px;display:flex;align-items:center}
}

@media screen{
 #super-desk-app{max-width:100%;min-width:0;box-sizing:border-box}
 #super-desk-app table:has(tbody:empty){display:none}
}
@media screen and (max-width:760px){
 #super-desk-app{padding:10px!important}
 #super-desk-app header{display:flex!important;flex-wrap:wrap;align-items:center;gap:6px}
 #super-desk-app header h1{flex-basis:100%;font-size:21px;margin:4px 0}
 #super-desk-app header .oa-language-switch{margin-left:auto}
 #super-desk-app :is(input,select){max-width:100%;box-sizing:border-box}
}

@media screen and (min-width:761px){
 html body.oa-responsive #forms-app dialog :is(input,select,textarea):not([type=checkbox]){min-height:34px;padding:6px;font-size:14px;box-sizing:border-box}
}

@media screen and (min-width:761px){
 .oa-contact-query-more,.oa-contact-query-fields{display:contents}
 .oa-contact-query-more>summary{display:none}
}
@media screen and (max-width:760px){
 html body.oa-responsive.oa-responsive #contact-records-view .panel-head{flex-direction:row!important;text-align:left!important}
 html body.oa-responsive.oa-responsive #contact-records-view .panel-head>div{width:auto!important}
 html body.oa-responsive.oa-responsive .oa-contact-phone-filter{display:inline-grid!important;width:calc(50% - 4px);grid-template-columns:1fr;gap:2px;box-sizing:border-box;margin:2px 2px}
 html body.oa-responsive.oa-responsive .oa-contact-phone-filter[hidden]{display:none!important}
 html body.oa-responsive .oa-contact-query-more{grid-column:1/-1;width:100%;flex-basis:100%;border:1px solid #c9dce8;border-radius:6px;padding:2px 6px}
 html body.oa-responsive .oa-contact-query-more>summary{min-height:44px;display:flex;align-items:center;font-size:12px;cursor:pointer}
 html body.oa-responsive .oa-contact-query-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 html body.oa-responsive .oa-contact-query-fields label{min-width:0}
 html body.oa-responsive.oa-responsive #contact-query-tools>button{min-height:44px!important;width:auto!important;justify-self:end}
}

@media screen{
 .oa-contact-query-more[hidden]{display:none!important}
}
@media screen and (max-width:760px){
 html body.oa-responsive.oa-responsive .oa-contact-phone-filter{width:calc(50% - 8px)!important;vertical-align:top}
}

@media screen and (min-width:761px){
 html body.oa-responsive #monthly-costs [data-cost-form] :is(input,select){min-height:34px;padding:6px}
}

@media screen{
 html body.oa-ui #correction-app #edit .form-actions{display:flex;justify-content:flex-end;gap:6px;background:#fff;padding:6px 0;margin:6px 0}
}
@media screen and (max-width:760px){
 html body.oa-responsive #correction-app table.oa-density-records td:nth-child(2){grid-column:1/-1;grid-row:2}
 html body.oa-responsive #correction-app table.oa-density-records td:last-child{grid-column:1/-1;text-align:right}
 html body.oa-responsive #correction-app table.oa-density-records td:last-child::before{display:none!important}
 html body.oa-responsive #correction-app #fields{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px 8px!important}
 html body.oa-responsive #correction-app #fields label{min-width:0;font-size:12px}
 html body.oa-responsive #correction-app #fields label:has(textarea),html body.oa-responsive #correction-app #fields label:has(select[id*=proxy]){grid-column:1/-1}
 html body.oa-responsive #correction-app #fields :is(input,select,textarea){width:100%;min-width:0;box-sizing:border-box}
 html body.oa-responsive #correction-app #edit .form-actions{position:sticky;bottom:0;z-index:2;border-top:1px solid #cbdbe5}
}

@media screen and (max-width:760px){
 html body.oa-responsive #correction-app #fields{display:grid!important}
 html body.oa-responsive #correction-app #fields>label{grid-column:auto!important}
 html body.oa-responsive #correction-app #fields>label:has(textarea),html body.oa-responsive #correction-app #fields>label:has(select[id*=proxy]){grid-column:1/-1!important}
}

@media screen{
 html body.oa-ui #correction-app #attachment-admin p:has(a){display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
 html body.oa-ui #correction-app #attachment-admin a{flex:1 1 160px;min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word}
}

@media screen and (max-width:760px){
 html body.oa-responsive #correction-app #fields>label:has(input[type=text]){grid-column:1/-1!important}
}

@media screen and (max-width:760px){
 html body.oa-responsive #correction-app #fields>label:has(input[type=datetime-local]){grid-column:1/-1!important}
}

/* Round six: compact shared-rider fields without dropping names or departments. */
@media screen and (min-width:960px){
 html body.oa-responsive #monthly-normal [data-kind=trip]>label:has([name=start_odometer]){max-width:420px}
}
@media screen and (max-width:760px){
 html body.oa-responsive #monthly-normal [data-rider]{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"department department" "person remove"}
 html body.oa-responsive #monthly-normal [data-rider] label:has([name=department]){grid-area:department}
 html body.oa-responsive #monthly-normal [data-rider] label:has([name=person]){grid-area:person;grid-column:auto}
 html body.oa-responsive #monthly-normal [data-rider]>button{grid-area:remove;margin-bottom:4px}
}

/* UI-20261106-MOBILE-01: mobile records read down, desktop columns remain adjustable. */
@media screen and (max-width:600px){
 html body .oa-column-scroll{overflow:visible!important;min-width:0!important;width:100%!important}
 html body table.oa-mobile-stack{display:block!important;min-width:0!important;max-width:100%!important;width:100%!important;table-layout:auto!important}
 html body table.oa-mobile-stack>colgroup,html body table.oa-mobile-stack>thead{display:none!important}
 html body table.oa-mobile-stack>tbody{display:block!important;width:100%!important}
 html body table.oa-mobile-stack>tbody>tr{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;min-width:0!important;height:auto!important;margin:0 0 10px!important;padding:10px!important;border:1px solid #c5d8e7!important;border-radius:12px!important;box-sizing:border-box}
 html body table.oa-mobile-stack>tbody>tr>td{display:block!important;position:static!important;width:auto!important;min-width:0!important;max-width:100%!important;height:auto!important;white-space:normal!important;overflow-wrap:anywhere!important;text-overflow:clip!important;padding:6px 0!important;border:0!important;box-sizing:border-box}
 html body table.oa-mobile-stack>tbody>tr>td::before{content:attr(data-oa-mobile-label);display:block!important;font-size:12px;line-height:1.4;color:#657e91;font-weight:600;margin-bottom:3px}
 html body table.oa-mobile-stack>tbody>tr.oa-history-day-band>th{grid-column:1/-1;min-width:0}
 html body table.oa-mobile-stack :is(input,select,textarea){max-width:100%!important;min-width:0!important;box-sizing:border-box}
 html body :is(.oa-column-handle,.hr-column-handle){display:none!important}
 html body :is(.vehicle-history-columns,.vehicle-list-head,.work-list-head,.report-row.row-head){display:none!important}
 html body :is(.vehicle-history-row,.vehicle-row-summary,.work-row-summary,.report-row:not(.row-head)){display:grid!important;grid-template-columns:minmax(0,1fr)!important;min-width:0!important;width:100%!important;height:auto!important;gap:8px!important;padding:12px!important;box-sizing:border-box;white-space:normal!important}
 html body :is(.vehicle-history-row,.vehicle-row-summary,.work-row-summary,.report-row:not(.row-head))>*{grid-column:auto!important;grid-row:auto!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
 html body [data-oa-mobile-label]::before{content:attr(data-oa-mobile-label);display:block;font-size:12px;line-height:1.4;color:#657e91;font-weight:600}
 html body.oa-ui .oa-menu-toggle{position:static!important;transform:none!important;margin:0!important;align-self:start}
 html body :is(.oa-work-toolbar,.hr-toolbar,.contact-action-toolbar){display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;align-items:center!important;gap:6px!important;max-width:100%!important}
 html body #portal-sidebar :is(.nav-item,.shell-system-toggle,.shell-sub-item){position:relative!important}
 html body #portal-sidebar :is(.portal-work-badge,.shell-notice-badge){flex-shrink:0;animation:none!important}
}

@media screen and (max-width:600px){
 html body.contact-consistent.contact-consistent #contact-records-view.contact-manage-compact.contact-manage-compact .contact-records{overflow:visible!important;min-width:0!important}
 html body.contact-consistent.contact-consistent #contact-records-view.contact-manage-compact.contact-manage-compact .contact-manage-columns{display:none!important}
 html body.contact-consistent.contact-consistent #contact-records-view.contact-manage-compact.contact-manage-compact .contact-manage-row{min-width:0!important;width:100%!important;margin:0 0 10px!important}
 html body.contact-consistent.contact-consistent #contact-records-view.contact-manage-compact.contact-manage-compact .contact-manage-summary{display:grid!important;grid-template-columns:minmax(0,1fr)!important;min-width:0!important;width:100%!important;height:auto!important;gap:7px!important;padding:12px!important;box-sizing:border-box}
 html body.contact-consistent.contact-consistent #contact-records-view.contact-manage-compact.contact-manage-compact .contact-manage-summary>*{min-width:0!important;max-width:100%!important;width:auto!important;height:auto!important;white-space:normal!important;overflow:visible!important;padding:0!important;overflow-wrap:anywhere!important}
 html body.contact-consistent.contact-consistent #contact-records-view.contact-manage-compact.contact-manage-compact .manage-subject-line{display:flex!important;flex-wrap:wrap!important;gap:6px!important}
 html body.contact-consistent.contact-consistent #contact-records-view.contact-manage-compact.contact-manage-compact button.manage-subject{flex:1 1 100%!important;white-space:normal!important;text-overflow:clip!important;line-height:1.6!important;max-width:100%!important;text-align:left!important}
 html body.contact-consistent.contact-consistent #contact-records-view.contact-manage-compact.contact-manage-compact .manage-subject-line::before{display:none!important}
 html body.contact-consistent.contact-consistent #contact-records-view.contact-manage-compact.contact-manage-compact .manage-report{flex:1 1 100%!important;white-space:normal!important}
 html body.contact-consistent.contact-consistent #contact-records-view.contact-manage-compact.contact-manage-compact #contact-query-tools{display:grid!important;grid-template-columns:minmax(0,1fr)!important;min-width:0!important}
 html body.contact-consistent.contact-consistent #contact-records-view.contact-manage-compact.contact-manage-compact #contact-query-tools>*{width:100%!important;min-width:0!important;box-sizing:border-box}
}

@media screen and (max-width:600px){html body.contact-consistent.contact-consistent #contact-records-view.contact-manage-compact.contact-manage-compact .contact-manage-summary>*{grid-column:auto!important;grid-row:auto!important}}
@media screen and (max-width:600px){
 html body.contact-consistent #contact-records-view :is(.oa-flow-help,.oa-count-help){min-height:0!important;margin:4px 0!important;padding:0!important}
 html body.contact-consistent #contact-records-view :is(.oa-flow-help,.oa-count-help)>summary{min-height:0!important;padding:6px!important;font-size:12px!important;line-height:1.4!important}
 html body.contact-consistent #contact-query-tools #contact-manage-search-wrap{display:grid!important;gap:4px!important;min-height:0!important;margin:0!important;padding:0!important}
 html body.contact-consistent #contact-query-tools input{font-size:16px!important;min-height:44px!important}
}

@media screen and (max-width:600px){
 html body #vehicle-list-view #vehicle-list .vehicle-list-head,html body #vehicle-history-view .vehicle-history-columns{display:none!important}
 html body #vehicle-list-view #vehicle-list .vehicle-row-summary,html body #vehicle-history-view .vehicle-history-row,html body #work-list .work-row-summary{grid-template-columns:minmax(0,1fr)!important;min-width:0!important;width:100%!important;height:auto!important}
 html body #vehicle-list-view #vehicle-list .vehicle-row-summary>*,html body #vehicle-history-view .vehicle-history-row>*,html body #work-list .work-row-summary>*{grid-column:auto!important;grid-row:auto!important;white-space:normal!important;min-width:0!important}
 html body.contact-consistent #contact-home-view .contact-home-frame{min-height:0!important;align-content:start!important;padding-top:16px!important}
}
/* Responsive display must keep permission-scoped and deliberately hidden cells hidden. */
@media screen and (max-width:600px){html body table.oa-mobile-stack :is([hidden],.hidden){display:none!important}}

/* Modal actions stay above every workspace Dock, including wrapped mobile rows. */
@media screen {
 html body.leave-style .modal-overlay{z-index:1000!important}
 html body.leave-style :is(#confirmation-modal,#note-modal,#password-modal){z-index:1100!important}
 html body.leave-style #image-preview-modal{z-index:1200!important}
}

/* Preserve home heading and action alignment. */
html body .oa-clock-home-header.oa-clock-home-header,
html body :is(#onc-center,.onc-module-ghost) .onc-home-header {
  box-sizing:border-box;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:clamp(8px,1.5vw,16px);
  width:min(100%,var(--oa-home-width,100%));
  margin-inline:auto;
  text-align:start;
}
html body .oa-clock-home-header.oa-clock-home-header > h1 {
  width:auto!important;
  margin-inline:0!important;
}
/* The clock slot can be used inside a home grid or a header. */
.oa-home-clock-slot {
  display:flow-root;
  flex:0 0 100%;
  width:100%;
  order:-1;
}
html body #oa-hr-home:has(.oa-home-clock-slot) {justify-content:flex-start!important}
html body :is(#onc-center,.onc-module-ghost) .onc-overview:has(.oa-home-clock-slot) {align-content:start}
#permission-center > header:has(> .oa-home-clock-slot) {flex-wrap:wrap}
#permission-center:not(:has(> #permission-frame[src^="/admin/permissions/matrix?permission_embed=1"]:not([src*="&view=accounts"]))) > header > .oa-home-clock-slot {
  display:none;
}
.oa-home-clock-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) repeat(2,minmax(0,1fr));
  align-items:center;
  flex:0 0 100%;
  width:100%;
  min-width:0;
  max-width:660px;
  container-type:inline-size;
  margin-inline:auto;
}
.oa-home-clock {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  block-size:clamp(82px,16cqi,84px);
  box-sizing:border-box;
  min-width:0;
  padding:2px 3px;
  border:1px solid #fff9;
  border-radius:16px;
  background:#edf7ff9c;
  backdrop-filter:blur(13px) saturate(140%);
  box-shadow:0 8px 24px #23496719,inset 0 1px #fff8;
  color:#153853;
  font-size:clamp(10px,2.1cqi,11px);
  line-height:1.1;
  text-align:center;
  overflow-wrap:anywhere;
}
.oa-home-clock-primary {
  block-size:clamp(88px,19cqi,98px);
  border-radius:24px;
}
.oa-home-clock time {
  font-size:clamp(14px,5.1cqi,26px);
  line-height:1;
  font-weight:650;
  letter-spacing:-.04em;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.oa-home-clock-primary time {
  font-size:clamp(24px,8.2cqi,46px);
}
@media (max-width:760px), (prefers-reduced-transparency:reduce) {
  .oa-home-clock {background:#edf7ff;backdrop-filter:none}
}
@media print {
  :is(.oa-home-clock-slot,.oa-home-clock-row) {display:none!important}
}

@media screen {
  :where(.oa-ui, .oa-blue-glass-page, .ann-style, .daily-dock-page) :is(
    time, input[type=number], output, .oa-home-clock, #history-total,
    #onc-count, #onc-page-info, .awb-summary-count, .daily-home-pending
  ) {font-variant-numeric:tabular-nums;}
}

/* Shared home details. Existing cards keep their hierarchy and category colours. */
:root {
  --oa-home-icon-radius:12px;
  --oa-home-inset:clamp(12px,1.3vw,16px);
  --oa-home-soft-shadow:0 2px 5px #133c670d,0 8px 20px #133c6715;
}
:where(.oa-home-header,.oa-clock-daily-header,.onc-overview,.awb-overview) :is(h1,h2),
:is(.oa-home-card-head,.awb-summary-head,.daily-home-card) strong,
.oa-hr-home-card > span { text-wrap:balance; overflow-wrap:anywhere; }
:is(.oa-home-card,.awb-summary-card,.daily-home-card) :is([class$="-count"],.vd-pending,.daily-home-pending) {
  font-variant-numeric:tabular-nums;
  min-inline-size:2ch;
}
@media screen and (max-width:760px) {
  html body :is(#onc-center,#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home) .oa-home-grid :is(.oa-home-lead,.oa-home-left) .oa-home-card:nth-child(n) {
    box-shadow:var(--oa-home-soft-shadow)!important;
  }
}
@media screen {
  /* Fade only the contents; the surface, hit area, Dock and page transition stay independent. */
  :is(.onc-overview,.oa-home-grid,.awb-home-grid,#daily-home,#oa-hr-home) :is(.oa-home-icon,.awb-summary-icon,.daily-home-icon,.oa-hr-home-card > svg) {
    animation:oa-home-detail-in .18s ease-out both;
  }
  :is(.onc-overview,.oa-home-grid,.awb-home-grid,#daily-home,#oa-hr-home) :is(.oa-home-card-head > strong,.awb-summary-head > strong,.daily-home-card > strong,.oa-hr-home-card > span) {
    animation:oa-home-detail-in .18s .055s ease-out both;
  }
  :is(.onc-overview,.oa-home-grid,.awb-home-grid,#daily-home) :is(.oa-home-card [class$="-count"],.onc-preview-count,.awb-summary-count,.daily-home-pending) {
    animation:oa-home-detail-in .18s .105s ease-out both;
  }
  :is(.oa-home-card,.awb-summary-card,.daily-home-card,.oa-hr-home-card):focus-within * {animation:none;}
  @keyframes oa-home-detail-in { from { opacity:.35; } to { opacity:1; } }
}
@media (forced-colors:active) {
  :is(.oa-home-card,.awb-summary-card,.daily-home-card,.oa-hr-home-card):focus-visible {outline:2px solid Highlight!important;outline-offset:2px;}
}


@media screen {
  /* Sequential entry forms only. Keep paper layouts and HR dense grids intact. */
  :where(#leave-form .form-grid, #bill-form .form-grid, #apply #form .field)
  :is(input:not([type=checkbox],[type=radio],[type=hidden]),select,textarea) {
    min-inline-size:0;
    max-inline-size:100%;
  }
  :is(#leave-form,#bill-form,#vehicle-form,#apply #form)
  :is(input,select,textarea):not(:disabled):focus-visible {
    outline:2px solid #22668f;
    outline-offset:2px;
  }
}
@media screen and (forced-colors:active) {
  :is(#leave-form,#bill-form,#vehicle-form,#apply #form)
  :is(input,select,textarea):focus-visible {outline-color:Highlight;}
}


@media screen {
  /* Scope to OA's own review panels. Original attachments have their own viewer. */
  :is(#forms-history,#preview:has(> #preview-title)) {
    --oa-review-inset:clamp(12px,2vw,20px);
    --oa-review-inner-radius:8px;
    box-sizing:border-box;
    max-inline-size:calc(100% - 16px);
    border-radius:calc(var(--oa-review-inner-radius) + var(--oa-review-inset));
    padding:var(--oa-review-inset);
  }
  :is(#forms-history-title,#preview-title,.onc-drawer > h2[data-onc-value="title"]) {
    text-wrap:balance;
    overflow-wrap:anywhere;
  }
  #forms-history :is(#forms-history-context,#forms-versions) {
    overflow-wrap:anywhere;
    font-variant-numeric:tabular-nums;
  }
  #forms-history-context {
    background:#f2f7fc;
    border:1px solid #d9e5ee;
    border-radius:var(--oa-review-inner-radius);
    padding:10px;
  }
  #forms-versions > section > a {
    display:inline-flex;
    align-items:center;
    min-block-size:32px;
    max-inline-size:100%;
  }
  :is(#forms-history,#preview:has(> #preview-title)) :is(button,a):focus-visible {
    outline:2px solid #22668f;
    outline-offset:2px;
  }
  #preview-body {
    margin:0;
    font-variant-numeric:tabular-nums;
    overflow-wrap:anywhere;
  }
  #preview-body > div {
    display:grid;
    grid-template-columns:minmax(0, 10em) minmax(0,1fr);
    gap:4px 12px;
    padding:8px 4px;
    border-block-end:1px solid #d9e5ee;
  }
  #preview-body dt {font-weight:650;}
  #preview-body dd {margin:0;min-inline-size:0;white-space:pre-wrap;}
}
@media screen and (max-width:600px) {
  #preview-body > div {grid-template-columns:minmax(0,1fr);}
  #forms-versions > section > a {min-block-size:44px;}
}
@media screen and (forced-colors:active) {
  :is(#forms-history,#preview:has(> #preview-title)) :is(button,a):focus-visible {outline-color:Highlight;}
}

@media screen and (max-width:600px) {
  /* Keep form actions in the scroll area above the workspace's measured Dock clearance. */
  body.oa-welfare-mobile #form {padding-bottom:0;}
  body.oa-welfare-mobile #form .actions {position:static;}
  body.oa-welfare-mobile #form .actions button {min-block-size:44px;}
}


#sign-dialog #sign-progress {
  min-block-size:1.4em;
  margin-block:0;
}

@media screen and (min-width: 761px) {
  html body.oa-responsive.oa-responsive :is(#sign-dialog,#vehicle-confirm,#note-modal,#confirmation-modal)
  :is(.actions button,.modal-actions button) {
    min-height:36px !important;
  }

  html body.oa-responsive.oa-responsive :is(#sign-dialog,#vehicle-confirm,#note-modal,#detail-modal,#contact-detail-dialog)
  :is(#close-sign-dialog,#vehicle-confirm-close,.modal-close,.icon-button.close-note,#close-detail,#close-contact-detail),
  html body.oa-responsive.oa-responsive .vehicle-detail-drawer .vehicle-detail-head > button.oa-close-control,
  html body.oa-responsive.oa-responsive #contract-detail .contract-detail-close {
    min-width:32px !important;
    min-height:32px !important;
  }
}

@media screen and (max-width: 760px) {
 html body.leave-style.oa-dock-standard:has(:is(#detail-modal,#note-modal,#confirmation-modal,#leave-modal):not(.hidden))
 button.oa-mobile-dock-toggle[aria-controls="leave-workspace-dock"] {
  display:none !important;
 }
 html body.oa-responsive.oa-responsive :is(#sign-dialog,#vehicle-confirm,#note-modal,#confirmation-modal) {
  padding-inline: max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right)) !important;
 }
 html body.oa-responsive.oa-responsive :is(#sign-dialog,#vehicle-confirm,#note-modal,#confirmation-modal)
 :is(.actions button,.modal-actions button,#vehicle-confirm-close) {
  min-width:44px !important;
  min-height:44px !important;
 }
}

@media (hover:hover) and (pointer:fine) {
  html:not([data-oa-genie-motion="off"]) :is(body,#onc-center,#home-view,#announcement-workbench) :is(.oa-home-card,.oa-home-clock,.awb-summary-card,.daily-home-card,.oa-hr-home-card)[data-oa-home-pull]:not([hidden]) {
    transform:perspective(720px) translate(var(--onc-pull-x,0px),var(--onc-pull-y,0px))
      rotateX(var(--onc-pull-pitch,0deg)) rotateY(var(--onc-pull-yaw,0deg))!important;
    transition:transform .2s ease-out,background .2s ease-out!important;
  }
}

/* The primary clock owns the home midline. Existing actions occupy the two side columns. */
@media screen {
  .oa-home-clock-row,
  #onc-center .onc-clock-feature .oa-home-clock-row {
    width:min(100%,460px);
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:clamp(8px,1.6dvh,14px);
  }
  .oa-home-clock-slot > .oa-home-clock-row {
    margin:0 auto;
  }
  .oa-home-clock-primary {
    grid-column:1 / -1;
    grid-row:1;
    justify-self:center;
    width:min(80%,320px);
    block-size:clamp(116px,21dvh,172px);
    background:linear-gradient(150deg,#f0f9fff0,#c7e3f7dc);
    box-shadow:inset 0 1px #fff,0 12px 30px #244e7426;
    font-size:clamp(12px,1.9cqi,16px);
  }
  .oa-home-clock-primary time {
    font-size:clamp(46px,17cqi,80px);
  }

  html body [data-oa-clock-host] {
    container-name:oa-clock-layout;
    container-type:inline-size;
  }
  html body :is(#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home,#oa-hr-home,.awb-overview):has([data-oa-clock-grid]) {
    gap:clamp(10px,2dvh,24px)!important;
    padding-block-start:clamp(18px,4dvh,42px)!important;
  }

  html body :is([data-oa-clock-grid],#daily-home[data-oa-clock-grid]):not([hidden]) {
    box-sizing:border-box;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-areas:none!important;
    grid-template-rows:none;
    align-items:center;
    justify-content:stretch;
    width:min(100%,var(--oa-home-width,100%));
    min-height:0!important;
    margin-inline:auto;
    gap:clamp(8px,1.1vw,14px)!important;
  }
  html body [data-oa-clock-grid] > :is(.oa-home-lead,.oa-home-left,.oa-home-right):not([hidden],.hidden) {
    display:contents!important;
  }
  [data-oa-clock-grid] > .oa-home-clock-slot {
    grid-area:1 / 1 / 2 / -1;
    align-self:center;
    min-width:0;
  }
  html body :is([data-oa-clock-grid],#daily-home[data-oa-clock-grid]) :is(.oa-home-card,.awb-summary-card,.daily-home-card,.oa-hr-home-card)[data-oa-home-lane]:not([hidden]) {
    grid-area:auto!important;
    grid-column:var(--oa-home-lane)!important;
    grid-row:calc(var(--oa-home-card-row) + 1)!important;
    justify-self:stretch;
    align-self:center;
    width:100%!important;
    min-width:0;
    min-height:64px!important;
    height:auto!important;
    flex:none!important;
    max-block-size:none;
  }
  [data-oa-home-lane=left] { --oa-home-lane:1; }
  [data-oa-home-lane=right] { --oa-home-lane:2; }

  html body :is([data-oa-clock-grid],#daily-home[data-oa-clock-grid]) :is(.oa-home-card,.awb-summary-card,.daily-home-card,.oa-hr-home-card)[data-oa-home-lane] {
    padding:6px 8px!important;
  }
  html body :is([data-oa-clock-grid],#daily-home[data-oa-clock-grid]) [data-oa-home-lane] :is(.oa-home-card-head,.awb-summary-head) {
    position:static!important;
    display:grid!important;
    height:auto!important;
    align-content:center!important;
    grid-template-columns:26px minmax(0,1fr) auto!important;
    grid-template-areas:none!important;
    gap:6px!important;
    justify-content:stretch!important;
    padding:2px!important;
    text-align:start!important;
    align-items:center;
  }
  html body :is([data-oa-clock-grid],#daily-home[data-oa-clock-grid]) [data-oa-home-lane] :is(.oa-home-card-head,.awb-summary-head) > :is(span,strong,small) {
    grid-area:auto!important;
    margin-block:0!important;
  }
  html body :is([data-oa-clock-grid],#daily-home[data-oa-clock-grid]) [data-oa-home-lane] :is(.oa-home-card-head,.awb-summary-head) > :is(.oa-home-icon,.awb-summary-icon) { grid-column:1!important;grid-row:1!important; }
  html body :is([data-oa-clock-grid],#daily-home[data-oa-clock-grid]) [data-oa-home-lane] :is(.oa-home-card-head,.awb-summary-head) > strong { grid-column:2!important;grid-row:1!important;min-width:0; }
  html body :is([data-oa-clock-grid],#daily-home[data-oa-clock-grid]) [data-oa-home-lane] :is(.oa-home-card-head,.awb-summary-head) > :is([class$="-count"],.vd-pending) { grid-column:3!important;grid-row:1!important; }
  html body :is([data-oa-clock-grid],#daily-home[data-oa-clock-grid]) [data-oa-home-lane] .oa-home-card-head > small { grid-column:2 / -1!important; }
  html body [data-oa-clock-grid] :is(.oa-home-card,.awb-summary-card,.daily-home-card,.oa-hr-home-card) :is(strong,span:not([class])) {
    font-size:clamp(12px,1.05vw,16px)!important;
    overflow-wrap:anywhere;
  }
  html body [data-oa-clock-grid] :is(.oa-home-icon,.awb-summary-icon,.daily-home-icon,.oa-hr-home-card > svg) {
    width:26px!important;
    height:26px!important;
    flex-shrink:0;
  }
  html body :is([data-oa-clock-grid],#daily-home[data-oa-clock-grid]) [data-oa-home-lane] :is([class$="-count"],.vd-pending,.daily-home-pending) {
    font-size:clamp(16px,1.55vw,23px)!important;
    margin-block:0!important;
  }
  html body [data-oa-clock-grid] :is(.oa-home-arrow,.awb-summary-list,.awb-summary-foot) {display:none!important}

  @container oa-clock-layout (min-width:850px) {
    html body :is([data-oa-clock-grid],#daily-home[data-oa-clock-grid]):not([hidden]) {
      grid-template-columns:minmax(0,1fr) minmax(0,460px) minmax(0,1fr)!important;
      grid-template-rows:repeat(var(--oa-home-card-rows,1),auto);
      column-gap:clamp(14px,2.6vw,38px)!important;
    }
    [data-oa-clock-grid] > .oa-home-clock-slot {
      grid-area:1 / 2 / span var(--oa-home-card-rows,1) / 3;
    }
    html body :is([data-oa-clock-grid],#daily-home[data-oa-clock-grid]) :is(.oa-home-card,.awb-summary-card,.daily-home-card,.oa-hr-home-card)[data-oa-home-lane]:not([hidden]) {
      grid-row:var(--oa-home-card-row)!important;
    }
    [data-oa-home-lane=right] { --oa-home-lane:3; }
  }
}

@media screen and (max-width:760px) {
  .oa-home-clock-row,
  #onc-center .onc-clock-feature .oa-home-clock-row {gap:4px}
  .oa-home-clock {block-size:56px;line-height:1.04}
  .oa-home-clock-primary {
    width:min(100%,320px,calc(100vw - 88px));
    block-size:76px;
  }
  html body .oa-home-clock-primary time,
  html body #onc-center .onc-clock-feature .oa-home-clock-primary time {font-size:clamp(29px,12vw,46px)}
}

@media screen and (max-width:760px) and (max-height:680px) {
  html body.oa-compact-center #onc-center[data-onc-overview="true"] > .onc-overview {
    padding-block:4px!important;
    gap:4px;
  }
  html body.oa-compact-center #onc-center .onc-overview .onc-home-cluster { row-gap:4px; }
  #onc-center .onc-clock-feature .oa-home-clock {block-size:52px}
  #onc-center .onc-clock-feature .oa-home-clock-primary {block-size:70px}
}

@media screen and (max-width:600px) and (max-height:680px) {
  html body.oa-compact-center #onc-center[data-onc-overview="true"] > .onc-overview {
    margin-block-end:calc(var(--oa-mobile-dock-height,90px) + env(safe-area-inset-bottom));
  }
}

/* A shared desktop landing position, based on the gate-home title and clock. */
@media screen {
  html body [data-oa-home-backdrop]:not(#onc-center){
    box-sizing:border-box;
    min-height:calc(100dvh - var(--oa-home-backdrop-offset,0px))!important;
    background:var(--oa-home-background,linear-gradient(110deg,#f0f6fde0,#dfebf798),url('/assets/oa-notification-mountain-lake.webp') center / cover no-repeat,#8daccb)!important;
    background-blend-mode:normal,normal,luminosity;
  }
  html body #oa-hr-home[data-oa-home-backdrop]{min-height:var(--oa-workspace-height,100dvh)!important}
}
@media screen and (min-width:761px){
  html body [data-oa-home-layout-active]{--oa-home-top:clamp(118px,20dvh,172px)}
  html body main[data-oa-home-backdrop],
  html body [data-oa-home-backdrop] .work-main:has([data-oa-home-layout-active]){
    margin-block:0!important;
  }
  html body [data-oa-home-layout-active] [data-oa-aligned-heading]:has(> .oa-demo-tools){
    position:relative;
  }
  html body [data-oa-home-layout-active] [data-oa-aligned-heading] > .oa-demo-tools{
    position:absolute;
    inset-inline-end:0;
    inset-block-start:0;
    z-index:2;
  }
  html body :is(#gate-home,#home-view,#contact-home-view,#vehicle-home-view,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home,#oa-hr-home,#announcement-workbench .awb-overview,#onc-center > .onc-overview)[data-oa-home-layout-active]:not([hidden]),
  html body.daily-dock-page main[data-oa-home-layout-active]:has(#daily-home:not([hidden])){
    box-sizing:border-box;
    align-content:start!important;
    justify-content:start!important;
    padding-block-start:max(0px,calc(var(--oa-home-top) - var(--oa-home-origin,0px)))!important;
    row-gap:0!important;
  }
  html body :is(#onc-center,[data-oa-home-layout-active]) [data-oa-aligned-heading],
  html body [data-oa-home-layout-active] > [data-oa-aligned-heading]{
    box-sizing:border-box;
    inline-size:min(100%,1280px)!important;
    min-block-size:42px!important;
    margin-block:0!important;
    margin-inline:auto!important;
    padding-block:0!important;
  }
  html body :is(#onc-center,[data-oa-home-layout-active]) [data-oa-aligned-title]{
    text-align:center!important;
    inline-size:100%;
    margin-block:0!important;
  }
  html body :is(#onc-center,[data-oa-home-layout-active]) [data-oa-aligned-stage]{
    box-sizing:border-box;
    margin-block:24px 0!important;
    margin-inline:auto!important;
    width:min(100%,1280px)!important;
  }
  html body #onc-center[data-onc-overview="true"] > .onc-overview[data-oa-home-layout-active]{
    padding-block-end:90px!important;
  }
  html body.daily-dock-page main[data-oa-home-layout-active] #daily-home[data-oa-aligned-stage]{
    margin-block-start:0!important;
    padding-block-start:0!important;
  }
  @container oa-clock-layout (min-width:850px){
    html body [data-oa-aligned-stage] > .oa-home-clock-slot{align-self:start!important}
    html body :is(#daily-home,[data-oa-aligned-stage])[data-oa-aligned-stage] :is(.oa-home-card,.awb-summary-card,.daily-home-card,.oa-hr-home-card)[data-oa-home-lane]{
      align-self:start!important;
      margin-block-start:10px!important;
    }
  }
  @container onc-dashboard (min-width:850px){
    html body #onc-center .onc-overview [data-oa-aligned-heading]{position:relative}
    html body #onc-center .onc-overview [data-oa-aligned-heading] > a{
      position:absolute;
      inset-inline-end:0;
      inset-block-start:0;
    }
    html body #onc-center .onc-overview .onc-overview-panel{margin-block-start:-14px}
    html body #onc-center .onc-overview .onc-home-cluster[data-oa-aligned-stage]{
      grid-template-columns:minmax(0,1fr) minmax(0,460px) minmax(0,1fr);
      align-items:start;
    }
  }
}
