:root{
  --p48-tap:44px;
  --p48-page-max:1480px;
  --p48-reading-max:72ch;
  --p48-safe-top:env(safe-area-inset-top,0px);
  --p48-safe-right:env(safe-area-inset-right,0px);
  --p48-safe-bottom:env(safe-area-inset-bottom,0px);
  --p48-safe-left:env(safe-area-inset-left,0px);
  --p48-focus:#0b6f57;
  --p48-focus-ring:0 0 0 3px rgba(24,235,176,.32),0 0 0 5px rgba(7,46,36,.14);
}
html{min-width:320px;overflow-x:clip;scroll-padding-top:88px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-width:320px;max-width:100vw;overflow-x:clip}
*,*::before,*::after{box-sizing:border-box}
img,picture,video,canvas,svg{max-inline-size:100%;block-size:auto}
img{font-style:italic;background-repeat:no-repeat;background-size:cover}
:where(p,li,dd,td,th,label,small,span){overflow-wrap:anywhere}
:where(code,pre,kbd,samp){overflow-wrap:normal;word-break:normal}
:where(a,button,input,select,textarea,summary,[role="button"],[tabindex]):focus-visible{outline:3px solid var(--p48-focus)!important;outline-offset:3px!important;box-shadow:var(--p48-focus-ring)!important}
:where(a,button,[role="button"],summary){touch-action:manipulation;-webkit-tap-highlight-color:transparent}
:where(button,input,select,textarea){font:inherit}
:where(button,[role="button"],input[type="button"],input[type="submit"],input[type="reset"]){min-block-size:var(--p48-tap)}
:where(input,select,textarea){max-inline-size:100%}
:where(textarea){resize:vertical}
:where([hidden]){display:none!important}
.p48SrOnly,.oilora-sr-only{position:absolute!important;inline-size:1px!important;block-size:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#oiloraRouteAnnouncer{position:absolute!important;inline-size:1px!important;block-size:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}

/* Stable containers and dense surfaces */
:where(.businessContent,.customerMain,.p46CustomerMain,.p36Container,.landing-container){min-inline-size:0}
:where(.businessContent,.customerMain,.p46CustomerMain)>*{min-inline-size:0}
:where(.table-wrap,.tableWrap,.mobile-table-scroll,.bpTableWrap,.platform30Table,[class*="TableWrap"],[class*="table-wrap"]){max-inline-size:100%;overflow:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
:where(table){max-inline-size:100%}
:where(.modal,.ui-modal,[role="dialog"],[aria-modal="true"]){max-block-size:min(88dvh,880px);max-inline-size:calc(100vw - 32px);overflow:auto;overscroll-behavior:contain}
:where(.modal-backdrop,.drawer-backdrop,.businessDrawerOverlay){overscroll-behavior:contain}
:where(.public36 .p36Section,.public36 .p36Footer,.p37-home section){content-visibility:auto;contain-intrinsic-size:1px 560px}
:where(.public36 .p36Header,.p37-hero){content-visibility:visible}

/* Accessibility: meaningful current state without relying only on color */
:where(a[aria-current="page"],.active[aria-current="page"]){text-decoration-thickness:2px;text-underline-offset:4px}
:where(.businessNav a[aria-current="page"],.p46CustomerPrimary a[aria-current="page"],.p46CustomerBottom a[aria-current="page"]){font-weight:900}
:where([aria-disabled="true"]){cursor:not-allowed!important}

/* Laptop / small desktop */
@media(max-width:1280px){
  :root{--p48-page-max:1180px}
  .businessContent{padding-inline:18px!important}
  .globalSearch{min-inline-size:220px;max-inline-size:420px}
  :where(.p40DashboardGrid,.p41CrmLayout,.v42rLayout,.p43rMain,.p44Layout,.p45CommerceLayout,.p47-control-grid){gap:12px!important}
}

/* Tablet contract */
@media(max-width:1024px){
  .businessTopHeader{padding-inline:14px!important}
  .globalSearch{display:none!important}
  .businessContent{padding-inline:14px!important}
  .p36Container,.landing-container{width:min(100% - 28px,var(--p48-page-max))!important}
  :where(.p36HeroGrid,.p37-hero-grid){grid-template-columns:1fr!important}
  :where(.p36Visual,.p37-cockpit-wrap){max-inline-size:760px}
  :where(.p47-control-grid,.p47-settings-grid){grid-template-columns:1fr!important}
}

/* Mobile contract */
@media(max-width:760px){
  :root{--p48-tap:46px}
  html{scroll-padding-top:72px}
  body{padding-inline:0!important}
  .businessTopHeader{padding-top:var(--p48-safe-top)!important;min-block-size:calc(62px + var(--p48-safe-top))!important}
  .businessContent{padding:14px 12px calc(22px + var(--p48-safe-bottom))!important}
  .businessSidebar{padding-bottom:var(--p48-safe-bottom)!important}
  .customerAppRoot{padding-bottom:calc(74px + var(--p48-safe-bottom))!important}
  .p46CustomerHeader{padding-top:var(--p48-safe-top)!important}
  .p46CustomerHeaderInner{padding-inline:max(12px,var(--p48-safe-right)) max(12px,var(--p48-safe-left))!important}
  .p46CustomerMain{padding-inline:12px!important}
  .p46CustomerBottom{padding-bottom:var(--p48-safe-bottom)!important;min-block-size:calc(66px + var(--p48-safe-bottom))!important}
  .p46CustomerBottom a{min-block-size:54px}
  .p36Header{padding-top:var(--p48-safe-top)}
  .p36Container,.landing-container{width:calc(100% - 24px)!important}
  :where(.p36Hero h1,.p37-hero h1){text-wrap:balance}
  :where(.p36Hero p,.p36Heading p,.p37-hero-lead,.public36 p){max-inline-size:var(--p48-reading-max)}
  :where(input,select,textarea){font-size:16px!important}
  :where(.modal,.ui-modal,[role="dialog"],[aria-modal="true"]){inline-size:calc(100vw - 16px)!important;max-inline-size:calc(100vw - 16px)!important;max-block-size:calc(100dvh - 16px - var(--p48-safe-top) - var(--p48-safe-bottom));border-radius:16px!important}
  :where(.bpTable,.table,.wo-table,.report-table){font-size:12px!important}
  :where(.page-actions,.p40QuickActions,.p41HeroActions,.v42rProfileHead>div:last-child,.p43rActions,.p44Actions,.p45Actions,.p47-actions){max-inline-size:100%;flex-wrap:wrap!important}
  :where(.page-actions button,.page-actions a,.p40QuickActions button,.p40QuickActions a,.p41HeroActions button,.p41HeroActions a){min-block-size:46px}
}

@media(max-width:480px){
  .businessContent{padding-inline:10px!important}
  .p36Container,.landing-container{width:calc(100% - 20px)!important}
  :where(.p36HeroActions,.p37-hero-actions){display:grid!important;grid-template-columns:1fr!important}
  :where(.p36Button,.p37-cta){justify-content:center;text-align:center}
  .p46CustomerActions .themeToggle{display:none}
}

/* Short landscape phones: protect task space from chrome. */
@media(max-height:520px) and (orientation:landscape) and (max-width:940px){
  .businessTopHeader{position:relative!important}
  .p46CustomerHeader{position:relative!important}
  .p46CustomerBottom{position:relative!important}
  .customerAppRoot{padding-bottom:var(--p48-safe-bottom)!important}
}

/* Motion + contrast are user preferences, not decoration. */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;transition-delay:0ms!important;scroll-behavior:auto!important}
}
@media(prefers-contrast:more){
  :root{--p48-focus:#004c3c}
  :where(.card,.ui-card,.bpCard,.p36Card,.p40Card,.p41Card,.v42rCard,.p43rCard,.p44Card,.p45Card){border-width:2px!important}
  :where(.muted,small,.helper,.field-help){opacity:1!important}
}
@media(forced-colors:active){
  :where(a,button,input,select,textarea,summary,[role="button"]):focus-visible{outline:3px solid Highlight!important;box-shadow:none!important}
  :where(.businessDrawerOverlay,.modal-backdrop){forced-color-adjust:none;background:CanvasText!important;opacity:.45}
}

/* Printing: hide application chrome and preserve readable content. */
@media print{
  .businessSidebar,.businessTopHeader,.p46CustomerHeader,.p46CustomerBottom,.globalLanguageSwitch,.mobile-bottom-nav,.businessDrawerOverlay{display:none!important}
  .businessMain{width:100%!important;margin:0!important}
  .businessContent,.customerMain,.p46CustomerMain{padding:0!important;overflow:visible!important}
  *{box-shadow:none!important;text-shadow:none!important}
}
