/* Cloud Cowork mobile visual contract, approved by the owner 04.09.2026.
   Visual layer only: real data, actions, RBAC and global navigation remain
   owned by the production pages. The standalone Framework7 mock runtime is
   deliberately not copied. */
@media (max-width:700px){
  .ay-title-mobile{display:inline!important}
  .ay-title-desktop{display:none!important}
  body.ay-cowork-mobile{
    --ay-cw-concrete:#EDEFEC;
    --ay-cw-surface:#FFFFFF;
    --ay-cw-surface2:#F5F7F3;
    --ay-cw-ink:#1B2227;
    --ay-cw-ink2:#5C636B;
    --ay-cw-line:#D9DDD8;
    --ay-cw-brand:#16344B;
    --ay-cw-primary:#16344B;
    --ay-cw-primary-ink:#FFFFFF;
    --ay-cw-steel:#2C5F86;
    --ay-cw-green:#1F9D57;
    --ay-cw-red:#E23B36;
    --ay-cw-amber:#B26A00;
    --ay-cw-card-border:transparent;
    --ay-cw-shadow:0 8px 24px -20px rgba(27,34,39,.40);
    --ay-cw-disp:'Archivo','Manrope',system-ui,sans-serif;
    --ay-cw-body:'Inter',system-ui,sans-serif;
    --ay-cw-mono:'IBM Plex Mono',ui-monospace,monospace;
    --ay-cw-h-lg:48px;
    --ay-cw-h-sm:36px;

    --bg:var(--ay-cw-concrete)!important;
    --concrete:var(--ay-cw-concrete)!important;
    --card:var(--ay-cw-surface)!important;
    --card2:var(--ay-cw-surface2)!important;
    --surface:var(--ay-cw-surface)!important;
    --surface2:var(--ay-cw-surface2)!important;
    --ink:var(--ay-cw-ink)!important;
    --ink2:var(--ay-cw-ink2)!important;
    --text:var(--ay-cw-ink)!important;
    --muted:var(--ay-cw-ink2)!important;
    --line:var(--ay-cw-line)!important;
    --brand:var(--ay-cw-brand)!important;
    --blue:var(--ay-cw-steel)!important;
    --steel:var(--ay-cw-steel)!important;
    --orange:var(--ay-cw-steel)!important;
    --orange2:var(--ay-cw-steel)!important;
    --orange-d:#1F4A6B!important;
    --orange-bg:#E4EDF4!important;
    --green:var(--ay-cw-green)!important;
    --red:var(--ay-cw-red)!important;
    --shadow:var(--ay-cw-shadow)!important;

    margin:0!important;
    background:var(--ay-cw-concrete)!important;
    background-image:none!important;
    color:var(--ay-cw-ink)!important;
    font-family:var(--ay-cw-body)!important;
  }
  html[data-theme="dark"] body.ay-cowork-mobile{
    --ay-cw-concrete:#0A1120;
    --ay-cw-surface:#17243D;
    --ay-cw-surface2:#22314F;
    --ay-cw-ink:#F4F7FB;
    --ay-cw-ink2:#AEBBCF;
    --ay-cw-line:#35476B;
    --ay-cw-brand:#0F1B2E;
    --ay-cw-primary:#2C6FA8;
    --ay-cw-steel:#6FA8D6;
    --ay-cw-green:#42C97D;
    --ay-cw-red:#FF6B66;
    --ay-cw-amber:#EDAE4F;
    --ay-cw-card-border:#2C3D5E;
    --ay-cw-shadow:none;
    --orange-bg:rgba(111,168,214,.22)!important;
  }

  body.ay-cowork-mobile .top,
  body.ay-cowork-mobile .ay-top{
    background:var(--ay-cw-brand)!important;
    background-image:none!important;
    border-color:transparent!important;
    box-shadow:none!important;
  }
  body.ay-cowork-mobile > .wrap{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0 12px calc(84px + env(safe-area-inset-bottom,0px))!important;
  }
  body.ay-cowork-mobile :is(.wrap > .top,.ay-boss-detached-header){
    min-height:64px!important;
    margin:0 -12px 12px!important;
    padding:10px 12px!important;
    color:#fff!important;
  }
  html:root body.ay-cowork-mobile :is(.wrap > .top,.ay-boss-detached-header).ay-global-surface-header{
    left:0!important;right:0!important;transform:none!important;
    width:100%!important;max-width:none!important;margin:0!important;
    box-sizing:border-box!important;
  }
  body.ay-cowork-mobile :is(.wrap > .top,.ay-boss-detached-header) .brand-sub{color:rgba(255,255,255,.72)!important}
  body.ay-cowork-mobile :is(.wrap > .top,.ay-boss-detached-header) .clock{
    background:transparent!important;
    border:0!important;
    color:#fff!important;
    box-shadow:none!important;
  }
  body.ay-cowork-mobile :is(.wrap > .top,.ay-boss-detached-header) .clock-date{color:rgba(255,255,255,.72)!important}
  body.ay-cowork-mobile :is(.wrap > .top,.ay-boss-detached-header) .theme{
    width:40px!important;height:40px!important;border-radius:12px!important;
    border:0!important;background:rgba(255,255,255,.16)!important;color:#fff!important;
  }
  body.ay-cowork-mobile .top::before,
  body.ay-cowork-mobile .ay-top::before{
    background:var(--ay-cw-brand)!important;
    background-image:none!important;
    opacity:1!important;
  }
  body.ay-cowork-mobile .top b,
  body.ay-cowork-mobile .top .brandname,
  body.ay-cowork-mobile .top .screen,
  body.ay-cowork-mobile .ay-top b,
  body.ay-cowork-mobile .ay-top .brandname,
  body.ay-cowork-mobile .ay-top .screen{color:#fff!important;-webkit-text-fill-color:#fff!important;font-family:var(--ay-cw-disp)!important}
  body.ay-cowork-mobile .top .sub,
  body.ay-cowork-mobile .top .brand-sub,
  body.ay-cowork-mobile .ay-top .sub,
  body.ay-cowork-mobile .ay-top .brand-sub{color:rgba(255,255,255,.72)!important;-webkit-text-fill-color:rgba(255,255,255,.72)!important}

  body.ay-cowork-mobile :is(.panel,.card,.qcard,.rcard,.tile,.htile,.work-card,.doc-card,.summary,.metric,.stats,.overall,.form,.intro,.calc){
    background:var(--ay-cw-surface)!important;
    background-image:none!important;
    border-color:var(--ay-cw-card-border)!important;
    border-radius:14px!important;
    box-shadow:var(--ay-cw-shadow)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }

  /* The legacy field layer is intentionally one-column and replaces role
     artwork after page CSS. Restore the exact Cowork boss tile geometry and
     the same six role artworks used by its approved mock. Keep this in the
     final shared layer so the effective page, not a script-stripped mock,
     owns the result. */
  html:root body.ay-cowork-mobile.ay-role-boss .home{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  html:root body.ay-cowork-mobile.ay-role-boss .home>.htile{
    display:flex!important;
    grid-template-columns:none!important;
    min-width:0!important;
    min-height:104px!important;
    padding:104px 13px 13px!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:flex-end!important;
  }
  html:root body.ay-cowork-mobile.ay-role-boss .home>.htile>.hic{
    position:absolute!important;
    top:9px!important;
    right:11px!important;
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background-color:transparent!important;
    background-repeat:no-repeat!important;
    background-position:center!important;
    background-size:contain!important;
    box-shadow:none!important;
  }
  html:root body.ay-cowork-mobile.ay-role-boss .home>.htile>.hic>svg{
    display:none!important;
  }
  html:root body.ay-role-boss .htile [data-ay-hw][data-ay-hw][data-ay-hw]{
    top:10px!important;
    left:12px!important;
    right:auto!important;
    transform:none!important;
    --ay-hw-size:84px;
  }
  html:root[data-theme="light"] body.ay-role-boss .htile[data-sec="zayavki"]>.hic{background-image:url('/app/role-icons/04-light.webp')!important}
  html:root[data-theme="light"] body.ay-role-boss .htile[data-sec="logistika"]>.hic{background-image:url('/app/role-icons/12-light.webp')!important}
  html:root[data-theme="light"] body.ay-role-boss .htile[data-sec="produkt"]>.hic{background-image:url('/app/role-icons/06-light.webp')!important}
  html:root[data-theme="light"] body.ay-role-boss .htile[data-sec="analytics"]>.hic{background-image:url('/app/role-icons/08-light.webp')!important}
  html:root[data-theme="light"] body.ay-role-boss .htile[data-sec="buh"]>.hic{background-image:url('/app/role-icons/09-light.webp')!important}
  html:root[data-theme="light"] body.ay-role-boss .htile[data-sec="problems"]>.hic{background-image:url('/app/role-icons/13-light.webp')!important}
  html:root:not([data-theme="light"]) body.ay-role-boss .htile[data-sec="zayavki"]>.hic{background-image:url('/app/role-icons/04-dark.webp')!important}
  html:root:not([data-theme="light"]) body.ay-role-boss .htile[data-sec="logistika"]>.hic{background-image:url('/app/role-icons/12-dark.webp')!important}
  html:root:not([data-theme="light"]) body.ay-role-boss .htile[data-sec="produkt"]>.hic{background-image:url('/app/role-icons/06-dark.webp')!important}
  html:root:not([data-theme="light"]) body.ay-role-boss .htile[data-sec="analytics"]>.hic{background-image:url('/app/role-icons/08-dark.webp')!important}
  html:root:not([data-theme="light"]) body.ay-role-boss .htile[data-sec="buh"]>.hic{background-image:url('/app/role-icons/09-dark.webp')!important}
  html:root:not([data-theme="light"]) body.ay-role-boss .htile[data-sec="problems"]>.hic{background-image:url('/app/role-icons/13-dark.webp')!important}
  body.ay-cowork-mobile :is(input,select,textarea){
    min-height:var(--ay-cw-h-lg)!important;
    box-sizing:border-box!important;
    border:1px solid var(--ay-cw-line)!important;
    border-radius:12px!important;
    background:var(--ay-cw-surface)!important;
    color:var(--ay-cw-ink)!important;
    font-family:var(--ay-cw-body)!important;
    box-shadow:none!important;
  }
  body.ay-cowork-mobile :is(button,.btn,.primary,.green,.ghost){font-family:var(--ay-cw-body)!important}
  body.ay-cowork-mobile :is(.btn,.primary,.green){min-height:var(--ay-cw-h-lg)!important;border-radius:12px!important}
  body.ay-cowork-mobile :is(.primary,.btn.primary){background:var(--ay-cw-primary)!important;background-image:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:transparent!important;box-shadow:none!important}
  body.ay-cowork-mobile :is(.green,.btn.green,.btn.ok,.btn.appr){background:var(--ay-cw-green)!important;background-image:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:none!important}
  body.ay-cowork-mobile :is(.danger,.rej,.btn.rej){background:var(--ay-cw-red)!important;background-image:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
  body.ay-cowork-mobile :is(.tabs,.subtabs,.nav){background:var(--ay-cw-surface)!important;border-color:var(--ay-cw-line)!important;box-shadow:none!important}
  body.ay-cowork-mobile :is(.tab,.subtab,.ltab,.buh-tab,.buh-subtab,.seg){color:var(--ay-cw-ink2)!important;-webkit-text-fill-color:var(--ay-cw-ink2)!important;background:transparent!important;background-image:none!important;box-shadow:none!important}
  body.ay-cowork-mobile :is(.tab.on,.subtab.on,.ltab.on,.buh-tab.on,.buh-subtab.on,.seg.on){color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:var(--ay-cw-primary)!important;background:var(--ay-cw-primary)!important;background-image:none!important;box-shadow:none!important}
  body.ay-cowork-mobile :is(h1,h2,h3,.title,.screen,.card-id,.rid){font-family:var(--ay-cw-disp)!important}
  body.ay-cowork-mobile :is(.mono,.tag,.badge,.pill,.cnt,.hcnt){font-family:var(--ay-cw-mono)!important}
  body.ay-cowork-mobile :is(.tab,.subtab,.ltab,.buh-tab,.buh-subtab,.seg,.ay-bottom,.bottom,.footbar){animation:none!important;transition:none!important}

  /* Current-role artwork is decorative on mobile.  Keep functional role
     selection tiles and status/navigation icons intact, but remove the
     duplicate avatar/emblem from the common page chrome on every role page. */
  body.ay-cowork-mobile :is(.user .ava,.ay-page-avatar,.ay-role-badge,.ay-role-emblem){
    display:none!important;width:0!important;min-width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;
  }

  body.ay-cowork-mobile .ay-bottom,
  body.ay-cowork-mobile .bottom,
  body.ay-cowork-mobile .footbar{
    background:rgba(22,52,75,.92)!important;
    border-top:1px solid rgba(255,255,255,.16)!important;
    box-shadow:none!important;
    backdrop-filter:saturate(1.4) blur(18px)!important;
    -webkit-backdrop-filter:saturate(1.4) blur(18px)!important;
  }
  body.ay-cowork-mobile .ay-bottom :is(.ay-tab,button,a),
  body.ay-cowork-mobile .bottom :is(button,a),
  body.ay-cowork-mobile .footbar :is(button,a){color:rgba(255,255,255,.72)!important;-webkit-text-fill-color:rgba(255,255,255,.72)!important}

  body.ay-role-manager .wrap > .user{display:none!important}
  body.ay-role-manager .tabs{margin:10px 0 14px!important;gap:6px!important}
  body.ay-role-manager .tabs .tab{min-height:48px!important;border-radius:12px!important;font-size:10px!important}
  body.ay-role-manager .tabs .tab.on .tab-count{color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:rgba(255,255,255,.64)!important}
  body.ay-role-manager .intro{padding:8px 2px 14px!important;color:var(--ay-cw-ink2)!important;font-weight:600!important}
  html:root body.ay-cowork-mobile.ay-role-manager #managerApplicationForm :is(input,select),
  html:root body.ay-cowork-mobile.ay-role-manager #pane-new .primary{
    height:var(--ay-cw-h-lg)!important;
    min-height:var(--ay-cw-h-lg)!important;
    max-height:var(--ay-cw-h-lg)!important;
  }
  html[data-theme] body.ay-cowork-mobile.ay-role-manager :is(.wrap > .top,.ay-manager-detached-header){
    width:auto!important;max-width:none!important;
    background:#16344B!important;background-image:none!important;
  }
  html:root[data-theme] body.ay-cowork-mobile.ay-role-manager :is(.wrap > .top,.ay-manager-detached-header).ay-global-surface-header::before{
    content:none!important;display:none!important;background:transparent!important;
  }
  html[data-theme="dark"] body.ay-cowork-mobile.ay-role-manager :is(.wrap > .top,.ay-manager-detached-header){background:#0F1B2E!important}
  html[data-theme] body.ay-cowork-mobile.ay-role-manager .tabs > .tab.on{
    background:#16344B!important;background-color:#16344B!important;background-image:none!important;border-color:#16344B!important;
    color:#fff!important;-webkit-text-fill-color:#fff!important;
    animation:none!important;filter:none!important;text-shadow:none!important;
  }
  html[data-theme="dark"] body.ay-cowork-mobile.ay-role-manager .tabs > .tab.on{
    background:#2C6FA8!important;background-color:#2C6FA8!important;background-image:none!important;border-color:#2C6FA8!important;
  }
  html[data-theme] body.ay-cowork-mobile.ay-role-manager > .ay-bottom{
    background:rgba(22,52,75,.92)!important;background-image:none!important;
  }
  html:root[data-theme] body.ay-cowork-mobile.ay-role-manager > .ay-bottom::before,
  html:root[data-theme] body.ay-cowork-mobile.ay-role-manager > .ay-bottom::after{
    content:none!important;display:none!important;background:transparent!important;
  }

  body.ay-cowork-mobile,
  body.ay-cowork-mobile *{scrollbar-width:none!important;-ms-overflow-style:none!important}
  body.ay-cowork-mobile::-webkit-scrollbar,
  body.ay-cowork-mobile *::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
}
@media (min-width:701px){.ay-title-mobile{display:none!important}}

/* Manager mobile canon, 2026-09-09.
   This is deliberately narrow: the shared asset is appended to the effective
   page after legacy page CSS, but only the standalone Manager at <=700px can
   match these selectors.  Desktop and Boss' embedded Manager stay untouched. */
@media (max-width:700px){
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile{
    --ay-cw-concrete:#0F1B2E;
    --ay-cw-surface:#19243A;
    --ay-cw-surface2:#1B2840;
    --ay-cw-ink:#F4F7FB;
    --ay-cw-ink2:#AEBBCF;
    --ay-cw-line:#30405C;
    --ay-cw-primary:#18A36A;
    --ay-cw-steel:#557293;
    --ay-cw-green:#18A36A;
    --ay-cw-red:#DF433D;
    --ay-cw-card-border:#30405C;
    --ay-cw-h-lg:40px;
    --ay-cw-h-sm:36px;
    background:#0F1B2E!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
  html:root:not(.ay-boss-embedded)[data-theme="light"] body.manager-page.ay-role-manager.ay-cowork-mobile{
    --ay-cw-concrete:#FFFFFF;
    --ay-cw-surface:#F3F5F7;
    --ay-cw-surface2:#F3F5F7;
    --ay-cw-ink:#1D2938;
    --ay-cw-ink2:#536579;
    --ay-cw-line:#D3DBE3;
    --ay-cw-primary:#18A36A;
    --ay-cw-steel:#5D7387;
    --ay-cw-card-border:#D3DBE3;
    background:#FFFFFF!important;
  }
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile>.wrap{
    padding:76px 12px calc(72px + env(safe-area-inset-bottom,0px))!important;
    min-height:100dvh!important;
    overflow:visible!important;
  }
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile :is(.wrap>.top,.ay-manager-detached-header){
    position:fixed!important;z-index:90!important;top:0!important;left:0!important;
    width:100%!important;height:64px!important;min-height:64px!important;
    margin:0!important;padding:7px 12px!important;box-sizing:border-box!important;
    background:#0E1626!important;border:0!important;border-radius:0!important;
  }
  html:root:not(.ay-boss-embedded)[data-theme="light"] body.manager-page.ay-role-manager.ay-cowork-mobile :is(.wrap>.top,.ay-manager-detached-header){background:#FFFFFF!important;border-bottom:1px solid #D3DBE3!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile>.ay-bottom{
    position:fixed!important;z-index:90!important;bottom:0!important;left:0!important;right:0!important;
    width:auto!important;max-width:none!important;height:60px!important;min-height:60px!important;
    padding-bottom:env(safe-area-inset-bottom,0px)!important;box-sizing:content-box!important;
    background:#0E1626!important;border-top:1px solid #30405C!important;
  }
  html:root:not(.ay-boss-embedded)[data-theme="light"] body.manager-page.ay-role-manager.ay-cowork-mobile>.ay-bottom{background:#FFFFFF!important;border-color:#D3DBE3!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;margin:0 0 12px!important;padding:0!important;
    background:transparent!important;border:0!important;
  }
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab{
    width:auto!important;height:36px!important;min-height:36px!important;max-height:36px!important;
    padding:0 7px!important;border:1px solid #30405C!important;border-radius:12px!important;
    background:rgba(255,255,255,.07)!important;color:#AEBBCF!important;
    font:400 12px/1 Inter,system-ui,sans-serif!important;white-space:nowrap!important;
    overflow:hidden!important;text-overflow:clip!important;
  }
  html:root:not(.ay-boss-embedded)[data-theme="light"] body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab{border-color:#D3DBE3!important;background:#F3F5F7!important;color:#536579!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab.on{background:#E3A33B!important;border-color:#E3A33B!important;color:#17130D!important;-webkit-text-fill-color:#17130D!important}
  html:root:not(.ay-boss-embedded)[data-theme="light"] body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab.on{background:linear-gradient(180deg,var(--ay-light-active-top,#FFB52E),var(--ay-light-active-bottom,#F59E0B))!important;background-color:var(--ay-light-active-bottom,#F59E0B)!important;border-color:var(--ay-light-active-border,#D97706)!important;color:#2D1B00!important;-webkit-text-fill-color:#2D1B00!important}
  /* ay-tg390-batch deliberately collapses the legacy full/short spans.  The
     Manager contract uses a tab-owned label instead, so it cannot be
     overwritten by that generic label switch after a tab rerender. */
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab :is(.ay-lbl-full,.ay-lbl-short){display:none!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab::before{display:block!important;min-height:12px!important;line-height:12px!important;white-space:nowrap!important;overflow:visible!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab[data-pane="new"]::before{content:"Создать заявку"!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab[data-pane="mine"]::before{content:"Мои заявки"!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab[data-pane="work"]::before{content:"Заявки в рейсах"!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab[data-pane="history"]::before{content:"История"!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile :is(#pane-new>.panel,.mine-card,.ay-t3-app,.work-trip,.card){
    padding:12px!important;border:1px solid #30405C!important;border-radius:12px!important;
    background:#19243A!important;box-shadow:0 8px 20px -16px rgba(0,0,0,.72)!important;
  }
  html:root:not(.ay-boss-embedded)[data-theme="light"] body.manager-page.ay-role-manager.ay-cowork-mobile :is(#pane-new>.panel,.mine-card,.ay-t3-app,.work-trip,.card){background:#F3F5F7!important;border-color:#D3DBE3!important;box-shadow:0 8px 20px -16px rgba(22,38,57,.25)!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile :is(.f input,.f select,.f textarea,.mine-detail,.mine-route,.ay-t3-trip){
    min-height:40px!important;height:40px!important;border:1px solid #30405C!important;
    border-radius:8px!important;background:#0E1626!important;color:#F4F7FB!important;
    font:400 15px/1.2 Inter,system-ui,sans-serif!important;
  }
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .ay-manager-date-sheet{
    position:fixed!important;z-index:2200!important;left:0!important;right:0!important;bottom:0!important;
    padding:16px 12px calc(16px + env(safe-area-inset-bottom,0px))!important;
    border:1px solid #30405C!important;border-radius:20px 20px 0 0!important;
    background:#19243A!important;color:#F4F7FB!important;box-shadow:0 -16px 40px rgba(0,0,0,.36)!important;
  }
  html:root:not(.ay-boss-embedded)[data-theme="light"] body.manager-page.ay-role-manager.ay-cowork-mobile .ay-manager-date-sheet{
    background:#F3F5F7!important;color:#1D2938!important;border-color:#D3DBE3!important;
  }
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .ay-manager-date-sheet[hidden]{display:none!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .ay-manager-sheet-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:14px!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .ay-manager-sheet-close{width:40px!important;height:40px!important;border:1px solid #30405C!important;border-radius:10px!important;background:#1B2840!important;color:inherit!important;font:700 22px/1 Inter,sans-serif!important}
  html:root:not(.ay-boss-embedded)[data-theme="light"] body.manager-page.ay-role-manager.ay-cowork-mobile .ay-manager-sheet-close{background:#DCE5EC!important;border-color:#AEBFCD!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .ay-manager-sheet-drums{display:grid!important;grid-template-columns:repeat(var(--ay-manager-sheet-columns),minmax(0,1fr))!important;gap:8px!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .ay-manager-sheet-drums select{height:40px!important;min-width:0!important;border:1px solid #30405C!important;border-radius:8px!important;background:#0E1626!important;color:#F4F7FB!important;padding:0 6px!important}
  html:root:not(.ay-boss-embedded)[data-theme="light"] body.manager-page.ay-role-manager.ay-cowork-mobile .ay-manager-sheet-drums select{background:#EAEDF1!important;color:#1D2938!important;border-color:#D3DBE3!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .ay-manager-sheet-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin-top:16px!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .ay-manager-sheet-actions button{height:40px!important;border-radius:10px!important;font:700 14px/1 Inter,sans-serif!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .ay-manager-sheet-cancel{border:1px solid #557293!important;background:#31465F!important;color:#FFF!important}
  html:root:not(.ay-boss-embedded)[data-theme="light"] body.manager-page.ay-role-manager.ay-cowork-mobile .ay-manager-sheet-cancel{background:#DCE5EC!important;border-color:#AEBFCD!important;color:#1D2938!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .ay-manager-sheet-apply{border:1px solid #18A36A!important;background:#18A36A!important;color:#FFF!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .ay-manager-submit-error{margin-top:10px!important;padding:10px!important;border:1px solid #DF433D!important;border-radius:10px!important;background:rgba(223,67,61,.12)!important;color:#F4F7FB!important}
  html:root:not(.ay-boss-embedded)[data-theme="light"] body.manager-page.ay-role-manager.ay-cowork-mobile .ay-manager-submit-error{color:#1D2938!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .ay-manager-submit-error button{display:block!important;width:100%!important;height:40px!important;margin-top:8px!important;border:1px solid #557293!important;border-radius:10px!important;background:#31465F!important;color:#FFF!important;font:700 14px/1 Inter,sans-serif!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile #create[aria-busy="true"]::before{content:"";display:inline-block;width:12px;height:12px;margin-right:8px;border:2px solid rgba(255,255,255,.45);border-top-color:#FFF;border-radius:50%;vertical-align:-2px;animation:ay-manager-spin .7s linear infinite}
  @keyframes ay-manager-spin{to{transform:rotate(360deg)}}
  html:root:not(.ay-boss-embedded)[data-theme="light"] body.manager-page.ay-role-manager.ay-cowork-mobile .ay-manager-submit-error button{background:#DCE5EC!important;border-color:#AEBFCD!important;color:#1D2938!important}
  html:root:not(.ay-boss-embedded)[data-theme="light"] body.manager-page.ay-role-manager.ay-cowork-mobile :is(.f input,.f select,.f textarea,.mine-detail,.mine-route,.ay-t3-trip){background:#EAEDF1!important;border-color:#D3DBE3!important;color:#1D2938!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .f label{font:600 12px/1.2 Inter,system-ui,sans-serif!important;color:#AEBBCF!important}
  html:root:not(.ay-boss-embedded)[data-theme="light"] body.manager-page.ay-role-manager.ay-cowork-mobile .f label{color:#536579!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile :is(#create,#historySearch,.primary,.btn){
    min-height:40px!important;height:40px!important;border-radius:10px!important;
    font:700 14px/1 Inter,system-ui,sans-serif!important;
  }
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile :is(#create,.primary){background:#18A36A!important;border-color:#18A36A!important;color:#FFFFFF!important;-webkit-text-fill-color:#FFFFFF!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile :is(.mine-detail,.mine-route,.ay-t3-trip){height:auto!important;min-height:40px!important;border-radius:10px!important;background:#1B2840!important}
  html:root:not(.ay-boss-embedded)[data-theme="light"] body.manager-page.ay-role-manager.ay-cowork-mobile :is(.mine-detail,.mine-route,.ay-t3-trip){background:#F3F5F7!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile :is(.tabs>.tab,.primary,.btn):active{transform:scale(.985)!important}
}

/* Owner screenshots 18.09: one header, compact cards and actual navigation buttons.
   Mobile only; role tile structure, permissions and desktop remain unchanged. */
@media(max-width:700px){
  html:root{--ay-global-bottom-height:60px!important;--ay-global-bottom-control-height:40px!important}
  html:root:not(.ay-boss-embedded) body .ay-page-card{display:none!important;margin:0!important;padding:0!important}
  html:root:not(.ay-boss-embedded) body > .ay-bottom.ay-bottom{box-sizing:border-box!important;background:var(--bg)!important;background-image:none!important;border-top:1px solid var(--line)!important;height:calc(60px + env(safe-area-inset-bottom,0px))!important;min-height:calc(60px + env(safe-area-inset-bottom,0px))!important;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))!important}
  html:root:not(.ay-boss-embedded) body > .ay-bottom.ay-bottom::before{background:var(--bg)!important;background-image:none!important}
  html:root:not(.ay-boss-embedded) body > .ay-bottom.ay-bottom > :is(.inner,.ay-bottom-inner){display:flex!important;flex:1 1 100%!important;width:100%!important;margin:0!important;gap:8px!important;padding:0!important;height:40px!important;min-height:40px!important;align-items:stretch!important}
  html:root:not(.ay-boss-embedded) body > .ay-bottom.ay-bottom{display:flex!important;gap:8px!important;align-items:stretch!important}
  html:root:not(.ay-boss-embedded) body > .ay-bottom.ay-bottom :is(.ay-tab.ay-tab,#ayTabHome,#ayTabHelp,#helpBtn){display:flex!important;flex:1 1 0!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;min-width:0!important;width:auto!important;height:40px!important;min-height:40px!important;max-height:40px!important;padding:0 4px!important;border:1px solid #557293!important;border-radius:10px!important;background:#31465F!important;box-shadow:none!important;color:#FFFFFF!important;-webkit-text-fill-color:#FFFFFF!important;font:700 12px/1 Inter,system-ui,sans-serif!important;text-transform:none!important;letter-spacing:0!important;white-space:nowrap!important}
  html:root:not(.ay-boss-embedded) body > .ay-bottom.ay-bottom :is(.ay-tab.ay-tab,#ayTabHome,#ayTabHelp,#helpBtn) :is(svg,.ico){display:inline-flex!important;flex:0 0 18px!important;width:18px!important;height:18px!important;margin:0!important;filter:none!important}
  html:root:not(.ay-boss-embedded) body > .ay-bottom.ay-bottom :is(.ay-tab.ay-tab,#ayTabHome,#ayTabHelp,#helpBtn) span{font:inherit!important;color:inherit!important;-webkit-text-fill-color:inherit!important;text-transform:none!important}
  html:root:not(.ay-boss-embedded)[data-theme="light"] body > .ay-bottom.ay-bottom :is(.ay-tab.ay-tab,#ayTabHome,#ayTabHelp,#helpBtn){background:#DCE5EC!important;border-color:#AEBFCD!important;color:#1D2938!important;-webkit-text-fill-color:#1D2938!important}
  html:root:not(.ay-boss-embedded) body > .ay-bottom.ay-bottom :is(.ay-tab.ay-tab,#ayTabHome,#ayTabHelp,#helpBtn):active{transform:scale(.985)!important}

  html:root.ay-mobile-viewport-lock body.admin-tight.ay-role-admin > .app.app.ay-mobile-scroll-owner{top:64px!important;bottom:calc(60px + env(safe-area-inset-bottom,0px))!important;height:auto!important;max-height:calc(var(--ay-stable-viewport-height,100dvh) - 64px - 60px - env(safe-area-inset-bottom,0px))!important;padding:12px!important;scroll-padding:12px!important;display:flex!important;flex-direction:column!important;gap:10px!important}
  html:root body.admin-tight.ay-role-admin > .app.app > *{flex-shrink:0!important;margin:0!important}
  html:root body.admin-tight.ay-role-admin > .app.app > :is(.ay-mobile-header-spacer,.head,[data-ay-admin-bottom-spacer]){display:none!important}
  html:root body.admin-tight.ay-role-admin #adminMobilePane-health > :is(#overall,#adminHealthComponents,#adminHealthErrors,#adminHealthResolved){margin:0!important}
  html:root body.admin-tight.ay-role-admin #adminMobileTabs{gap:10px!important;margin:0!important;padding:0!important}
  html:root body.admin-tight.ay-role-admin .admin-mobile-pane{padding:0!important;margin:0!important}
  html:root body.admin-tight.ay-role-admin .admin-mobile-pane.is-active{display:flex!important;flex-direction:column!important;gap:10px!important}
  html:root body.admin-tight.ay-role-admin .admin-mobile-pane > :is(.overall,.block){flex:0 0 auto!important;margin:0!important;border:1px solid var(--line)!important;border-radius:12px!important;background:var(--card)!important;background-image:none!important;box-shadow:var(--shadow)!important;overflow:hidden!important}
  html:root body.admin-tight.ay-role-admin #overall.overall{position:relative!important;padding:12px 12px 12px 16px!important;min-height:0!important}
  html:root body.admin-tight.ay-role-admin #overall.overall::before{content:""!important;position:absolute!important;left:0!important;top:0!important;bottom:0!important;width:4px!important;background:#E3A33B!important;background-image:none!important}
  html:root body.admin-tight.ay-role-admin #overall.overall.g::before{background:#18A36A!important}
  html:root body.admin-tight.ay-role-admin #overall.overall.r::before{background:#DF433D!important}
  html:root body.admin-tight.ay-role-admin #roleBlock{background:transparent!important;box-shadow:none!important;border:0!important;overflow:visible!important;padding:0!important}
  html:root body.admin-tight.ay-role-admin #roleGrid{padding:0!important;gap:10px!important}
  html:root body.admin-tight.ay-role-admin :is(#adminHealthWarnings,#adminHealthComponents,#adminHealthErrors,#adminHealthResolved){border-bottom:1px solid var(--line)!important;padding-bottom:0!important}
  html:root body.admin-tight.ay-role-admin #warnings>.warn:last-child{border-bottom:0!important}
  html:root body.admin-tight.ay-role-admin #activeErrors .warn{display:flex!important;flex-wrap:wrap!important;gap:10px!important;align-items:flex-start!important}
  html:root body.admin-tight.ay-role-admin #activeErrors .warn>span{flex:1 1 180px!important;min-width:0!important;overflow-wrap:anywhere!important}
  html:root body.admin-tight.ay-role-admin #activeErrors [data-resolve-error]{flex:0 0 auto!important;white-space:nowrap!important;height:40px!important;min-height:40px!important;border-radius:10px!important;padding:0 10px!important}
}

/* Owner 19.09.2026: final mobile colour owner. Legacy role pages contain
   ID-heavy active-tab selectors; this single shared specificity shield beats
   those copies without changing their geometry. It matches light theme only. */
@media(max-width:700px){
  html:root[data-theme="light"] body:is(.ay-cowork-mobile,.admin-tight):not(#ay-light-active-01):not(#ay-light-active-02):not(#ay-light-active-03):not(#ay-light-active-04):not(#ay-light-active-05):not(#ay-light-active-06):not(#ay-light-active-07):not(#ay-light-active-08):not(#ay-light-active-09):not(#ay-light-active-10) :is(.tab,.subtab,.ltab,.buh-tab,.base-kind-tab,.pill,.boss-filter,.buh-subtab,.nav-btn,.admin-mobile-tab):is(.on,.active,.is-active,[aria-selected="true"]),
  html:root[data-theme="light"] body:is(.ay-cowork-mobile,.admin-tight):not(#ay-light-active-01):not(#ay-light-active-02):not(#ay-light-active-03):not(#ay-light-active-04):not(#ay-light-active-05):not(#ay-light-active-06):not(#ay-light-active-07):not(#ay-light-active-08):not(#ay-light-active-09):not(#ay-light-active-10) :is(.tabs,.subtabs,.ltabs,.buh-tabs,.admin-mobile-tabs)>:is(button,a):is(.on,.active,.is-active,[aria-selected="true"]),
  html:root[data-theme="light"] body:is(.ay-cowork-mobile,.admin-tight):not(#ay-light-active-01):not(#ay-light-active-02):not(#ay-light-active-03):not(#ay-light-active-04):not(#ay-light-active-05):not(#ay-light-active-06):not(#ay-light-active-07):not(#ay-light-active-08):not(#ay-light-active-09):not(#ay-light-active-10) .seg>button:is(.on,.active,[aria-selected="true"]){
    background:linear-gradient(180deg,var(--ay-light-active-top,#FFB52E),var(--ay-light-active-bottom,#F59E0B))!important;
    background-color:var(--ay-light-active-bottom,#F59E0B)!important;
    background-image:linear-gradient(180deg,var(--ay-light-active-top,#FFB52E),var(--ay-light-active-bottom,#F59E0B))!important;
    border-color:var(--ay-light-active-border,#D97706)!important;
    color:#2D1B00!important;-webkit-text-fill-color:#2D1B00!important;
  }
}

/* 18.09 owner follow-up: original symbols AND labels inside actual buttons. */
@media(max-width:700px){
html:root:not(.ay-boss-embedded) body>.ay-bottom.ay-bottom :is(.ay-tab.ay-tab,#ayTabHome,#ayTabHelp,#helpBtn){gap:5px!important}
html:root body.admin-tight>.ay-top{box-sizing:border-box!important;padding:6px 12px!important;align-items:center!important;overflow:visible!important}
html:root body.admin-tight>.ay-top .ay-brand{align-items:center!important;overflow:visible!important;min-height:50px!important}
html:root body.admin-tight>.ay-top .ay-shield{display:block!important;overflow:visible!important;object-fit:contain!important;filter:none!important}
}

/* ay-manager-single-visible-caption-20260919: one canonical caption; desktop unchanged. */
@media(max-width:700px){
html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab{font-size:0!important;line-height:1!important;gap:5px!important}
html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab>:not(.tab-count){display:none!important}
html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab::before{display:block!important;flex:1 1 auto!important;min-width:0!important;white-space:normal!important;font:400 12px/1 Inter,system-ui,sans-serif!important;text-transform:none!important;letter-spacing:0!important;color:inherit!important;-webkit-text-fill-color:currentColor!important}
html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab[data-pane="new"]::before{content:"Создать заявку"!important}
html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab[data-pane="mine"]::before{content:"Мои заявки"!important}
html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab[data-pane="work"]::before{content:"Заявки в рейсах"!important}
html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab[data-pane="history"]::before{content:"История"!important}
html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .top .brand b .ay-title-mobile{display:block!important;color:var(--mgr-ink)!important;-webkit-text-fill-color:var(--mgr-ink)!important}
html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .top .brand-sub .ay-title-mobile{display:block!important;color:var(--mgr-muted)!important;-webkit-text-fill-color:var(--mgr-muted)!important}
html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab>.tab-count{display:inline!important;font-size:12px!important;line-height:16px!important;flex:0 0 auto!important}
}

/* Owner feedback 19.09: the Admin mobile shell is shared by every role. */
@media(max-width:700px){
html:root:not(.ay-boss-embedded) body:is(#ayOwnerMobilePage,.ay-cowork-mobile) :is(#ayTop,.ay-top,.wrap>.top){box-sizing:border-box!important;position:fixed!important;left:0!important;right:0!important;top:var(--ay-browser-overlay-top,0px)!important;transform:none!important;width:100%!important;max-width:none!important;height:64px!important;min-height:64px!important;max-height:64px!important;margin:0!important;padding:0 2px 4px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;z-index:100!important;border-radius:0!important;border:0!important;border-bottom:1px solid var(--line,#30405C)!important}
html:root:not(.ay-boss-embedded) body:is(#ayOwnerMobilePage,.ay-cowork-mobile) :is(#ayTop,.ay-top,.wrap>.top) :is(.ay-brand,.brand){display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;height:50px!important;max-height:none!important;flex:1 1 auto!important;overflow:visible!important}
html:root:not(.ay-boss-embedded) body:is(#ayOwnerMobilePage,.ay-cowork-mobile) :is(#ayTop,.ay-top,.wrap>.top) :is(.ay-shield,.shield){width:46px!important;min-width:46px!important;max-width:46px!important;height:50px!important;min-height:50px!important;max-height:50px!important;flex:0 0 46px!important;margin:0!important;object-fit:contain!important;transform:none!important}
html:root:not(.ay-boss-embedded) body:is(#ayOwnerMobilePage,.ay-cowork-mobile) :is(#ayTop,.ay-top,.wrap>.top) :is(.ay-name,.nm,.brand>b,.brand>div>b){display:block!important;margin:0!important;padding:0!important;font:700 18px/18px Inter,system-ui,sans-serif!important;letter-spacing:0!important;text-transform:none!important;white-space:nowrap!important}
html:root:not(.ay-boss-embedded) body:is(#ayOwnerMobilePage,.ay-cowork-mobile) :is(#ayTop,.ay-top,.wrap>.top) :is(.ay-name,.nm,.brand b) .ay-title-mobile{font:inherit!important;letter-spacing:inherit!important}
html:root:not(.ay-boss-embedded) body:is(#ayOwnerMobilePage,.ay-cowork-mobile) :is(#ayTop,.ay-top,.wrap>.top) :is(.ay-sub,.brand-sub,.tag){display:block!important;max-width:none!important;min-height:0!important;height:auto!important;margin:3px 0 0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;font:400 11.5px/13.8px Inter,system-ui,sans-serif!important;white-space:nowrap!important}
html:root:not(.ay-boss-embedded) body:is(#ayOwnerMobilePage,.ay-cowork-mobile) :is(#ayTop,.ay-top,.wrap>.top) :is(.ay-right,.right){display:flex!important;flex:0 0 auto!important;align-items:center!important;gap:9px!important;margin:0!important;padding:0!important}
html:root:not(.ay-boss-embedded) body:is(#ayOwnerMobilePage,.ay-cowork-mobile) :is(#ayTop,.ay-top,.wrap>.top) :is(.ay-clock,.clock){display:block!important;flex:0 0 109px!important;min-width:109px!important;width:109px!important;max-width:109px!important;height:auto!important;margin:0!important;padding:0!important;text-align:right!important;border:0!important;background:none!important;box-shadow:none!important}
html:root:not(.ay-boss-embedded) body:is(#ayOwnerMobilePage,.ay-cowork-mobile) :is(#ayTop,.ay-top,.wrap>.top) :is(.t,.clock-time){display:block!important;height:17px!important;margin:0!important;padding:0!important;font:800 17px/17px Manrope,Inter,system-ui,sans-serif!important}
html:root:not(.ay-boss-embedded) body:is(#ayOwnerMobilePage,.ay-cowork-mobile) :is(#ayTop,.ay-top,.wrap>.top) :is(.d,.clock-date){display:block!important;height:13.2px!important;margin:3px 0 0!important;padding:0!important;font:400 11px/13.2px Inter,system-ui,sans-serif!important;white-space:nowrap!important}
html:root:not(.ay-boss-embedded) body:is(#ayOwnerMobilePage,.ay-cowork-mobile) :is(#ayTop,.ay-top,.wrap>.top) :is(.ay-theme,.theme,.theme-toggle,#themeBtn){box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 38px!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:40px!important;min-height:40px!important;max-height:40px!important;margin:0!important;padding:6px 0!important;border-radius:50%!important}
html:root:not(.ay-boss-embedded) body:is(#ayOwnerMobilePage,.ay-cowork-mobile) :is(#ayTop,.ay-top,.wrap>.top) :is(.ay-theme,.theme,.theme-toggle)>svg{width:22px!important;height:22px!important}
html:root:not(.ay-boss-embedded) body:is(#ayOwnerMobilePage,.ay-cowork-mobile)>:is(#aySharedFooter,.ay-bottom){box-sizing:border-box!important;height:calc(60px + env(safe-area-inset-bottom,0px))!important;min-height:calc(60px + env(safe-area-inset-bottom,0px))!important;max-height:none!important;left:0!important;right:0!important;width:100%!important;margin:0!important;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))!important;transform:none!important;display:flex!important;align-items:flex-start!important}
html:root:not(.ay-boss-embedded) body:is(#ayOwnerMobilePage,.ay-cowork-mobile)>:is(#aySharedFooter,.ay-bottom)>.inner{display:flex!important;align-items:center!important;gap:8px!important;width:100%!important;max-width:none!important;height:40px!important;min-height:40px!important;margin:0!important;padding:0!important}
html:root:not(.ay-boss-embedded) body:is(#ayOwnerMobilePage,.ay-cowork-mobile)>:is(#aySharedFooter,.ay-bottom)>.inner>:is(button,a){box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;flex-direction:row!important;flex:1 1 0!important;min-width:0!important;height:40px!important;min-height:40px!important;max-height:40px!important;padding:0 4px!important;margin:0!important;border-radius:10px!important;font:600 12px/1 Inter,system-ui,sans-serif!important;white-space:nowrap!important}
html:root:not(.ay-boss-embedded) body:is(#ayOwnerMobilePage,.ay-cowork-mobile)>:is(#aySharedFooter,.ay-bottom)>.inner>:is(button,a) svg{display:block!important;flex:0 0 16px!important;width:16px!important;height:16px!important;margin:0!important}
/* Keep native touch-input text legible without disabling user pinch zoom. */
html:root body:is(#ayOwnerMobilePage,.ay-cowork-mobile) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px!important;max-width:100%!important;box-sizing:border-box!important}
html:root body.admin-tight :is(#adminAccessBlock,#adminJournalBlock){min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important}
html:root body.admin-tight :is(#adminAccessBlock,#adminJournalBlock) input{min-width:0!important;width:100%!important;font-size:16px!important}
}

/* Boss home: native Desktop artwork, existing text, counter centred to its left. */
@media(max-width:700px){
html:root body.ay-role-boss.ay-cowork-mobile>.wrap{padding-top:76px!important;padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))!important}
html:root body.ay-role-boss.ay-cowork-mobile #home{box-sizing:border-box!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(164px,1fr))!important;gap:10px!important;height:max(512px,calc(var(--tg-viewport-stable-height,100dvh) - 148px - env(safe-area-inset-bottom,0px)))!important;margin:0!important;padding:0!important}
html:root body.ay-role-boss.ay-cowork-mobile #home[style*="display: none"],html:root body.ay-role-boss.ay-cowork-mobile #home[style*="display:none"]{display:none!important}
html:root body.ay-role-boss.ay-cowork-mobile #home>.htile{box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr) 96px!important;grid-template-rows:74px minmax(min-content,1fr) auto!important;column-gap:4px!important;row-gap:2px!important;padding:10px!important;min-height:164px!important;min-width:0!important;align-items:stretch!important;justify-content:normal!important;overflow:visible!important}
html:root body.ay-role-boss.ay-cowork-mobile #home>.htile>.hic{grid-row:1!important;grid-column:2!important;position:relative!important;top:auto!important;right:auto!important;left:auto!important;bottom:auto!important;justify-self:end!important;align-self:center!important;width:96px!important;min-width:96px!important;max-width:96px!important;height:74px!important;min-height:74px!important;max-height:74px!important;margin:0!important;padding:0!important;background:none!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;filter:none!important;backdrop-filter:none!important;overflow:visible!important}
html:root body.ay-role-boss.ay-cowork-mobile #home>.htile>.hic>img{width:96px!important;height:74px!important;object-fit:contain!important;transform:none!important;filter:none!important}
html:root body.ay-role-boss.ay-cowork-mobile #home>.htile>.hic::before,html:root body.ay-role-boss.ay-cowork-mobile #home>.htile>.hic::after{display:none!important;content:none!important}
html:root body.ay-role-boss.ay-cowork-mobile #home>.htile>:is(.hcnt,[data-ay-hw]){grid-row:1!important;grid-column:1!important;position:relative!important;top:auto!important;right:auto!important;left:auto!important;bottom:auto!important;transform:none!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;justify-self:stretch!important;align-self:center!important;text-align:center!important;justify-content:center!important}
html:root body.ay-role-boss.ay-cowork-mobile #home>.htile>.htt{grid-row:2!important;grid-column:1/-1!important;align-self:end!important;margin:0!important}
html:root body.ay-role-boss.ay-cowork-mobile #home>.htile>.hsub{grid-row:3!important;grid-column:1/-1!important;align-self:start!important;margin:0!important}
/* Embedded caption adjustment withheld: required painter change was not written. */
}

@media(max-width:700px){
html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile #managerApplicationForm :is(input,select,textarea){font-size:16px!important}
html:root:not(.ay-boss-embedded) body:is(#ayOwnerMobilePage,.ay-cowork-mobile) :is(#ayTop,.ay-top,.wrap>.top) .ay-cowork-role-copy{display:block!important;margin:3px 0 0!important;padding:0!important;height:13.8px!important;font:400 11.5px/13.8px Inter,system-ui,sans-serif!important}
html:root:not(.ay-boss-embedded) body:is(#ayOwnerMobilePage,.ay-cowork-mobile) :is(#ayTop,.ay-top,.wrap>.top) .ay-cowork-role-copy>b{display:block!important;font:inherit!important;letter-spacing:0!important;text-transform:none!important;margin:0!important}
html:root:not(.ay-boss-embedded) body:is(#ayOwnerMobilePage,.ay-cowork-mobile) :is(#ayTop,.ay-top,.wrap>.top) .ay-cowork-role-copy>span,html:root:not(.ay-boss-embedded) body:is(#ayOwnerMobilePage,.ay-cowork-mobile) :is(#ayTop,.ay-top,.wrap>.top) .ay-brand>div:has(.ay-cowork-role-copy)>.ay-sub{display:none!important}
}

@media(max-width:700px){
html:root body.ay-role-boss.ay-cowork-mobile #home>.htile>.hcnt{justify-self:center!important;align-self:center!important}
html:root body.ay-role-boss.ay-cowork-mobile #home>.htile>.hcnt>.ay-hw{min-width:0!important;justify-content:center!important}
}

@media(max-width:700px){
html:root body.ay-role-boss.ay-cowork-mobile #home>.htile>.hcnt>.ay-hw{width:max-content!important;flex:none!important}
html:root body.ay-role-boss.ay-cowork-mobile #home>.htile>.hcnt>.ay-hw>svg{flex:0 0 auto!important}
}

/* Latest owner decision: no home scrolling in the actual visible Mini App, not device height. */
.ay-owner-tab-label{display:none}
@media(max-width:700px){
html:root:has(body.ay-owner-home-fixed){height:var(--ay-owner-vheight,100dvh)!important;min-height:0!important;overflow:hidden!important}
html:root body.ay-role-boss.ay-owner-home-fixed{height:var(--ay-owner-vheight,100dvh)!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
html:root body.ay-role-boss.ay-owner-home-fixed>.wrap{position:fixed!important;left:0!important;right:0!important;top:calc(var(--ay-owner-vtop,0px) + 64px)!important;height:calc(var(--ay-owner-vheight,100dvh) - 64px - var(--ay-owner-footheight,60px))!important;min-height:0!important;max-height:none!important;box-sizing:border-box!important;margin:0!important;padding:2mm 12px!important;overflow:auto!important}
html:root body.ay-role-boss.ay-owner-home-fixed :is(.wrap>.top,.ay-boss-detached-header){top:var(--ay-owner-vtop,0px)!important}
html:root body.ay-role-boss.ay-owner-home-fixed>.ay-bottom{top:calc(var(--ay-owner-vtop,0px) + var(--ay-owner-vheight,100dvh) - var(--ay-owner-footheight,60px))!important;bottom:auto!important}
html:root body.ay-role-boss.ay-owner-home-fixed #home{height:100%!important;min-height:0!important;grid-template-rows:repeat(3,minmax(144px,1fr))!important;gap:8px!important}
html:root body.ay-role-boss.ay-owner-home-fixed #home>.htile{min-height:144px!important;padding:8px 10px!important}
html:root body.ay-role-boss #home .hcnt .ay-hw{color:#ea070c!important}
html:root body.ay-role-boss:has(#sec-zayavki.on){padding-top:0!important}
html:root body.ay-role-boss:has(#sec-zayavki.on)>.wrap{padding-top:64px!important;margin-top:0!important}
html:root body.ay-role-boss #sec-zayavki{margin-top:0!important;padding-top:0!important}
html:root body.ay-role-boss #sec-zayavki>.sec-head{margin-top:0!important;padding-top:0!important;margin-bottom:8px!important}
html:root.ay-boss-embedded body.manager-page .tabs.ay-owner-request-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:88px!important;grid-auto-rows:88px!important;gap:8px!important;padding:0!important;margin:0 0 10px!important}
html:root.ay-boss-embedded body.manager-page .tabs.ay-owner-request-tabs>.tab{position:relative!important;box-sizing:border-box!important;height:88px!important;min-height:88px!important;max-height:88px!important;min-width:0!important;padding:0!important;display:block!important;font-size:0!important;overflow:visible!important}
html:root.ay-boss-embedded body.manager-page .tabs.ay-owner-request-tabs>.tab::before,html:root.ay-boss-embedded body.manager-page .tabs.ay-owner-request-tabs>.tab::after{content:none!important;display:none!important}
html:root.ay-boss-embedded body.manager-page .tabs.ay-owner-request-tabs>.tab>.ay-owner-tab-label{position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;white-space:nowrap!important;font:600 12px/16px Inter,system-ui,sans-serif!important;letter-spacing:0!important;text-transform:none!important;color:inherit!important;pointer-events:none!important}
html:root.ay-boss-embedded body.manager-page .tabs.ay-owner-request-tabs>.tab[data-pane="new"]>.ay-owner-tab-label{font-size:32px!important;line-height:36px!important}
html:root.ay-boss-embedded body.manager-page .tabs.ay-owner-request-tabs>.tab>.tab-count{position:absolute!important;top:-4px!important;right:2px!important;left:auto!important;bottom:auto!important;margin:0!important;transform:none!important}
html:root.ay-boss-embedded body.manager-page .tabs.ay-owner-request-tabs>.tab>.tab-count .ay-hw{min-width:0!important;justify-content:center!important}
html:root.ay-boss-embedded body.manager-page .tabs.ay-owner-request-tabs>.tab>.tab-count svg{flex-shrink:0!important}
}

/* Boss subsection captions share mobile typography; desktop retains sec-head. */
html:root body.ay-role-boss :is(#sec-zayavki>.ay-boss-request-mobile-heading,#sec-logistika>.ay-boss-approval-mobile-heading,#sec-produkt>.ay-boss-product-mobile-heading,#sec-analytics>.ay-boss-analytics-mobile-heading,#sec-buh>.ay-boss-documents-mobile-heading,#sec-problems>.ay-boss-problems-mobile-heading){display:none}
@media(max-width:700px){
  /* The brand header is fixed outside the request scroll flow. Reserve its
     existing 64px only while this subsection is open. */
  html:root body.ay-role-boss.ay-cowork-mobile:has(#sec-zayavki.on,#sec-logistika.on,#sec-produkt.on,#sec-analytics.on,#sec-buh.on,#sec-problems.on)>.wrap.ay-mobile-scroll-owner{
    top:calc(var(--ay-browser-overlay-top,0px) + 64px)!important;
    bottom:calc(60px + env(safe-area-inset-bottom,0px))!important;
    height:auto!important;max-height:calc(var(--ay-stable-viewport-height,100dvh) - 124px - env(safe-area-inset-bottom,0px))!important;
  }
  html:root body.ay-role-boss :is(#sec-zayavki,#sec-logistika,#sec-produkt,#sec-analytics,#sec-buh,#sec-problems)>.sec-head{display:none!important}
  html:root body.ay-role-boss :is(#sec-zayavki>.ay-boss-request-mobile-heading,#sec-logistika>.ay-boss-approval-mobile-heading,#sec-produkt>.ay-boss-product-mobile-heading,#sec-analytics>.ay-boss-analytics-mobile-heading,#sec-buh>.ay-boss-documents-mobile-heading,#sec-problems>.ay-boss-problems-mobile-heading){
    display:block!important;margin:12px 12px 14px!important;
    text-align:center!important;color:#18A36A!important;-webkit-text-fill-color:#18A36A!important;
    font:700 16px/1.35 Inter,system-ui,sans-serif!important;
  }
  html:root[data-theme="dark"] body.ay-role-boss :is(#sec-zayavki>.ay-boss-request-mobile-heading,#sec-logistika>.ay-boss-approval-mobile-heading,#sec-produkt>.ay-boss-product-mobile-heading,#sec-analytics>.ay-boss-analytics-mobile-heading,#sec-buh>.ay-boss-documents-mobile-heading,#sec-problems>.ay-boss-problems-mobile-heading){color:#42C97D!important;-webkit-text-fill-color:#42C97D!important}
}

/* Bounded scroll owner already ends above the footer: do not reserve it twice. */
@media(max-width:700px){
html:root body.ay-role-boss.ay-cowork-mobile:not(.ay-owner-home-fixed)>.wrap.ay-mobile-scroll-owner{padding-bottom:12px!important;scroll-padding-bottom:12px!important}
}

/* 21.09.2026: the shared viewport lock bounds every role scroll owner above
   the fixed bottom navigation. The old 72px document reserve therefore
   became a second visual gap. Keep one compact Admin-reference gap and one
   top gap after the existing header spacer. */
@media(max-width:700px){
  html:root body.ay-mobile-scroll-owner:not(.ay-owner-home-fixed){
    min-height:0!important;
    max-height:calc(var(--ay-stable-viewport-height,100dvh) - 60px - env(safe-area-inset-bottom,0px))!important;
    overflow-y:auto!important;
    overflow-x:clip!important;
    padding-top:12px!important;
    padding-bottom:8px!important;
    scroll-padding-bottom:8px!important;
  }
}


/* 19.09.2026: the shared mobile layer is later than ay-fields.css.
   Repeat the same token owner here so embedded and role-specific mobile tabs
   cannot restore the old brown/steel fill. Dark selectors do not match. */
@media(max-width:700px){
  html:root[data-theme="light"] body.ay-cowork-mobile :is(.tabs>.tab.on,.subtabs>.subtab.on,.ltabs>.ltab.on,.buh-tabs>.buh-tab.on,.seg>button.on,.boss-filter.on,.buh-subtab.on){
    background:linear-gradient(180deg,var(--ay-light-active-top,#FFB52E),var(--ay-light-active-bottom,#F59E0B))!important;
    background-color:var(--ay-light-active-bottom,#F59E0B)!important;
    border-color:var(--ay-light-active-border,#D97706)!important;
    color:#2D1B00!important;-webkit-text-fill-color:#2D1B00!important;
  }
  html:root.ay-boss-embedded[data-theme="light"] body.manager-page.ay-cowork-mobile .tabs.ay-owner-request-tabs>.tab.on{
    background:linear-gradient(180deg,var(--ay-light-active-top,#FFB52E),var(--ay-light-active-bottom,#F59E0B))!important;
    background-color:var(--ay-light-active-bottom,#F59E0B)!important;
    border-color:var(--ay-light-active-border,#D97706)!important;
    color:#2D1B00!important;-webkit-text-fill-color:#2D1B00!important;
  }
}

/* 22.09.2026 owner mobile canon: one 2 mm rhythm and one navigation palette
   for every role/page. Semantic success, warning and danger actions keep their
   own colours; this block owns only neutral/selected navigation controls. */
@media(max-width:700px){
  html:root body.ay-mobile-scroll-owner:not(.ay-owner-home-fixed){
    padding-top:2mm!important;
    padding-bottom:2mm!important;
    scroll-padding-bottom:2mm!important;
  }
  html:root body.ay-role-boss.ay-cowork-mobile:not(.ay-owner-home-fixed)>.wrap.ay-mobile-scroll-owner{
    padding-bottom:2mm!important;
    scroll-padding-bottom:2mm!important;
  }
  html:root body:is(.ay-cowork-mobile,.admin-tight) .sec-head>:is(.back-btn,.back){
    display:none!important;
  }
  html:root body:is(.ay-cowork-mobile,.admin-tight) .sec-head{
    gap:0!important;
  }
  html:root body:is(.ay-cowork-mobile,.admin-tight) :is(.tab,.subtab,.ltab,.buh-tab,.base-kind-tab,.boss-filter,.buh-subtab,.nav-btn,.admin-mobile-tab):not(.on):not(.active):not(.is-active):not([aria-selected="true"]){
    background:#31465F!important;
    background-image:none!important;
    border-color:#557293!important;
    color:#FFFFFF!important;
    -webkit-text-fill-color:#FFFFFF!important;
  }
  html:root[data-theme="light"] body:is(.ay-cowork-mobile,.admin-tight) :is(.tab,.subtab,.ltab,.buh-tab,.base-kind-tab,.boss-filter,.buh-subtab,.nav-btn,.admin-mobile-tab):not(.on):not(.active):not(.is-active):not([aria-selected="true"]){
    background:#DCE5EC!important;
    background-image:none!important;
    border-color:#AEBFCD!important;
    color:#1D2938!important;
    -webkit-text-fill-color:#1D2938!important;
  }
  html:root[data-theme] body:is(.ay-cowork-mobile,.admin-tight) :is(.tab,.subtab,.ltab,.buh-tab,.base-kind-tab,.boss-filter,.buh-subtab,.nav-btn,.admin-mobile-tab):is(.on,.active,.is-active,[aria-selected="true"]){
    background:linear-gradient(180deg,#FFB52E,#F59E0B)!important;
    background-color:#F59E0B!important;
    background-image:linear-gradient(180deg,#FFB52E,#F59E0B)!important;
    border-color:#D97706!important;
    color:#2D1B00!important;
    -webkit-text-fill-color:#2D1B00!important;
  }
  html:root body:is(.ay-cowork-mobile,.admin-tight) :is(.tab-count,.subtab-count,.cnt,.hcnt,[data-ay-ms-count]){
    color:#EA070C!important;
    -webkit-text-fill-color:#EA070C!important;
    font-variant-numeric:tabular-nums!important;
  }
  html:root body.ay-role-boss.ay-cowork-mobile #sec-logistika>.logistics-tabs>.subtab{
    padding-left:12px!important;
    padding-right:12px!important;
  }
  html:root body.ay-role-boss.ay-cowork-mobile #sec-logistika>.logistics-tabs>.subtab>.subtab-count{
    margin-left:10px!important;
    margin-right:0!important;
  }
  html:root body.ay-cowork-mobile .ay-mobile-pane-caption{
    display:block!important;
    margin:0 0 2mm!important;
    text-align:center!important;
    color:#18A36A!important;
    -webkit-text-fill-color:#18A36A!important;
    font:800 14px/1.2 Inter,system-ui,sans-serif!important;
  }
  html:root[data-theme="dark"] body.ay-cowork-mobile .ay-mobile-pane-caption{color:#42C97D!important;-webkit-text-fill-color:#42C97D!important}
}

/* Standalone Manager caption replaces the cabinet card on mobile only. */
html:root body.manager-page>.wrap>.ay-manager-request-mobile-heading{display:none}
@media(max-width:700px){
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile>.wrap.ay-mobile-scroll-owner>.user[data-ay-manager-cabinet-card]{display:none!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile>.wrap>.ay-manager-request-mobile-heading{
    display:block!important;margin:12px 12px 14px!important;
    text-align:center!important;color:#18A36A!important;-webkit-text-fill-color:#18A36A!important;
    font:700 16px/1.35 Inter,system-ui,sans-serif!important;
  }
  html:root[data-theme="dark"]:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile>.wrap>.ay-manager-request-mobile-heading{color:#42C97D!important;-webkit-text-fill-color:#42C97D!important}
}

/* Owner 08.10.2026: Manager/Boss application navigation, mobile only.
   Keep the existing pane handlers and desktop; use Manager's field fill. */
@media (max-width:700px){
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:84px!important;grid-auto-rows:84px!important;gap:8px!important;
  }
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab{
    position:relative!important;display:block!important;height:84px!important;min-height:84px!important;max-height:84px!important;padding:0!important;
    border-radius:12px!important;background:#31465F!important;border-color:#557293!important;color:#FFFFFF!important;-webkit-text-fill-color:#FFFFFF!important;overflow:visible!important;
  }
  html:root:not(.ay-boss-embedded)[data-theme="light"] body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab{background:#DCE5EC!important;border-color:#AEBFCD!important;color:#1D2938!important;-webkit-text-fill-color:#1D2938!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab::before{
    position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;font:600 12px/16px Inter,system-ui,sans-serif!important;pointer-events:none!important;
  }
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab[data-pane="new"]::before{content:"+"!important;font-size:32px!important;line-height:36px!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab[data-pane="mine"]::before{content:"Заявки"!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab[data-pane="work"]::before{content:"В рейсах"!important}
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab.on{
    background:linear-gradient(180deg,#FFB52E,#F59E0B)!important;border-color:#D97706!important;color:#2D1B00!important;-webkit-text-fill-color:#2D1B00!important;
  }
  html:root:not(.ay-boss-embedded) body.manager-page.ay-role-manager.ay-cowork-mobile .tabs>.tab>.tab-count,
  html:root.ay-boss-embedded body.manager-page.ay-cowork-mobile .tabs.ay-owner-request-tabs>.tab>.tab-count,
  html:root #bossManagerDirectSurface [data-ay-ms-count]{
    position:absolute!important;top:-12px!important;left:50%!important;right:auto!important;bottom:auto!important;margin:0!important;transform:translateX(-50%)!important;pointer-events:none!important;
  }
  html:root body.manager-page.ay-cowork-mobile .tabs>.tab>.tab-count .ay-hw{min-width:0!important;justify-content:center!important}
  html:root.ay-boss-embedded body.manager-page .tabs.ay-owner-request-tabs{grid-template-rows:84px!important;grid-auto-rows:84px!important}
  html:root.ay-boss-embedded body.manager-page .tabs.ay-owner-request-tabs>.tab{height:84px!important;min-height:84px!important;max-height:84px!important}
  html:root[data-theme="dark"] #bossManagerDirectSurface :is(input,select,textarea),
  html:root.ay-boss-embedded[data-theme="dark"] body.manager-page.ay-cowork-mobile #managerApplicationForm :is(input,select,textarea){background:#1B2840!important}
}
