:root{--pwa-deep:#062237;--pwa-blue:#168dc4;--pwa-cyan:#55d7f4;--pwa-mint:#52dfb7;--pwa-red:#ef5f6c}
.pwa-install-button,.pwa-push-button{appearance:none;border:1px solid rgba(116,215,255,.32);border-radius:13px;min-height:42px;padding:8px 12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;color:#eafaff;font:800 12px/1.1 inherit;white-space:nowrap;cursor:pointer;background:linear-gradient(135deg,rgba(17,112,162,.96),rgba(30,156,177,.9));box-shadow:0 8px 24px rgba(6,100,150,.2);transition:transform .16s ease,filter .16s ease,border-color .16s ease}
.pwa-push-button{background:linear-gradient(135deg,rgba(35,105,173,.96),rgba(91,77,189,.9));border-color:rgba(164,161,255,.3)}
.pwa-push-button.is-enabled{background:linear-gradient(135deg,rgba(20,137,100,.98),rgba(65,195,137,.92));border-color:rgba(115,244,190,.42)}
.pwa-install-button--floating{position:fixed;z-index:100040;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom))}
.pwa-push-button.is-unavailable{background:linear-gradient(135deg,rgba(89,99,117,.9),rgba(70,78,94,.9));opacity:.86}
.pwa-install-button:hover,.pwa-push-button:hover{filter:brightness(1.08);transform:translateY(-1px)}
.pwa-install-button__icon,.pwa-push-button__icon{width:17px;height:17px;display:inline-block;position:relative;flex:0 0 auto}
.pwa-install-button__icon:before{content:"";position:absolute;left:7px;top:1px;width:3px;height:10px;border-radius:3px;background:currentColor}.pwa-install-button__icon:after{content:"";position:absolute;left:3px;top:6px;width:9px;height:9px;border-right:3px solid currentColor;border-bottom:3px solid currentColor;transform:rotate(45deg);border-radius:1px}
.pwa-push-button__icon:before{content:"";position:absolute;left:3px;top:2px;width:11px;height:11px;border-radius:8px 8px 4px 4px;background:currentColor;clip-path:polygon(50% 0,78% 10%,94% 35%,94% 72%,100% 89%,0 89%,6% 72%,6% 35%,22% 10%)}.pwa-push-button__icon:after{content:"";position:absolute;left:6px;bottom:0;width:6px;height:3px;border-radius:0 0 6px 6px;background:currentColor}
.pwa-toast{position:fixed;z-index:100060;left:50%;bottom:max(24px,env(safe-area-inset-bottom));max-width:min(92vw,560px);transform:translate(-50%,20px);padding:13px 18px;border-radius:15px;background:rgba(4,29,44,.96);border:1px solid rgba(84,211,242,.34);color:#effcff;box-shadow:0 20px 55px rgba(0,0,0,.34);font-weight:750;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease}.pwa-toast.is-visible{opacity:1;transform:translate(-50%,0)}.pwa-toast.is-error{border-color:rgba(255,108,119,.52);background:rgba(70,20,31,.97)}
.pwa-update{position:fixed;z-index:100050;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));width:min(360px,calc(100vw - 36px));padding:18px;border-radius:20px;background:linear-gradient(145deg,rgba(6,35,54,.98),rgba(10,67,84,.98));border:1px solid rgba(104,225,255,.3);color:white;box-shadow:0 24px 70px rgba(0,0,0,.38)}.pwa-update strong{font-size:17px}.pwa-update p{margin:5px 0 14px;color:#bdd9e5}.pwa-update button{border:0;border-radius:12px;padding:11px 15px;background:linear-gradient(135deg,#2e9fd7,#58dcb7);color:white;font-weight:900;cursor:pointer}
.pwa-ios-guide,.pwa-push-panel{position:fixed;z-index:100070;inset:0;padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));display:grid;place-items:center;background:rgba(0,12,23,.72);backdrop-filter:blur(12px)}.pwa-ios-guide[hidden],.pwa-push-panel[hidden]{display:none!important}.pwa-ios-guide__card,.pwa-push-card{width:min(520px,100%);box-sizing:border-box;padding:24px;border-radius:26px;background:linear-gradient(145deg,#071f31,#0a3b4a);border:1px solid rgba(111,223,252,.28);color:#f4fdff;box-shadow:0 30px 90px rgba(0,0,0,.46)}.pwa-ios-guide__head,.pwa-push-head{display:flex;align-items:center;gap:14px}.pwa-ios-guide__head img,.pwa-push-head img{width:58px;height:58px;border-radius:15px;box-shadow:0 10px 28px rgba(0,0,0,.25)}.pwa-ios-guide h3,.pwa-push-head h3{margin:0 0 4px;font-size:22px}.pwa-ios-guide__head div div,.pwa-push-head p{margin:0;color:#b9d5e1}.pwa-ios-guide ol{margin:21px 0;padding-left:24px;display:grid;gap:10px}.pwa-ios-guide button{width:100%;border:0;border-radius:14px;padding:13px;background:linear-gradient(135deg,#208fc9,#50d7b5);color:white;font-weight:900;cursor:pointer}
.pwa-push-card{position:relative;width:min(560px,100%);padding:26px}.pwa-push-close{position:absolute;right:15px;top:13px;width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.09);color:#eafdff;font-size:27px;line-height:1;cursor:pointer}.pwa-push-options{display:grid;gap:10px;margin:22px 0}.pwa-push-options label{display:flex;align-items:center;gap:13px;padding:14px 15px;border-radius:16px;background:rgba(2,22,34,.55);border:1px solid rgba(128,213,238,.14);cursor:pointer}.pwa-push-options input{width:21px;height:21px;accent-color:#45d4b2;flex:0 0 auto}.pwa-push-options span{display:grid;gap:3px}.pwa-push-options b{font-size:15px}.pwa-push-options small{color:#9fc2d0}.pwa-push-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pwa-push-actions button{border:0;border-radius:14px;padding:12px 13px;font-weight:900;cursor:pointer}.pwa-push-primary{background:linear-gradient(135deg,#168f58,#51d38e);border:1px solid rgba(133,241,184,.34)!important;color:#fff;box-shadow:0 9px 22px rgba(22,143,88,.20),inset 0 1px 0 rgba(255,255,255,.16)}.pwa-push-primary:hover,.pwa-push-primary:focus-visible{background:linear-gradient(135deg,#1aa564,#64e19e);filter:brightness(1.03)}.pwa-push-secondary{background:linear-gradient(135deg,#d99516,#ffc84a);border:1px solid rgba(255,221,126,.48)!important;color:#302000;box-shadow:0 9px 22px rgba(217,149,22,.18),inset 0 1px 0 rgba(255,255,255,.22)}.pwa-push-secondary:hover,.pwa-push-secondary:focus-visible{background:linear-gradient(135deg,#e5a31e,#ffd45f);filter:brightness(1.03)}.pwa-push-danger{grid-column:1/-1;background:linear-gradient(135deg,#bd3441,#e35a63);border:1px solid rgba(255,132,143,.38)!important;color:#fff;box-shadow:0 9px 22px rgba(189,52,65,.20),inset 0 1px 0 rgba(255,255,255,.14)}.pwa-push-danger:hover,.pwa-push-danger:focus-visible{background:linear-gradient(135deg,#cf3d49,#ee6870);filter:brightness(1.03)}.pwa-push-actions button:focus-visible{outline:2px solid rgba(120,224,249,.72);outline-offset:2px}.pwa-push-actions button:disabled{opacity:.55;cursor:wait}.pwa-modal-open{overflow:hidden}
.is-pwa-standalone body{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
@media(max-width:1180px){.top-actions .pwa-install-button,.top-actions .pwa-push-button{padding:8px 10px}.top-actions .pwa-install-button span:last-child,.top-actions .pwa-push-button span:last-child{display:none}}
@media(max-width:700px){.pwa-push-card,.pwa-ios-guide__card{padding:21px}.pwa-push-actions{grid-template-columns:1fr}.pwa-push-danger{grid-column:auto}.pwa-toast{font-size:13px}}
@media(prefers-reduced-motion:reduce){.pwa-install-button,.pwa-push-button,.pwa-toast{transition:none}}

/* === 2026-07-17: уведомления перенесены из шапки в личный кабинет === */
.manager-cabinet-list-body .cabinet-pwa-notifications{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:74px;
  padding:14px 16px;
  border:1px solid rgba(86,190,224,.18);
  border-radius:20px;
  background:linear-gradient(135deg,rgba(7,36,55,.88),rgba(7,25,42,.94));
  box-shadow:0 14px 34px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.045);
}
.manager-cabinet-list-body .cabinet-pwa-notifications__main{
  min-width:0;
  display:flex;
  align-items:center;
  gap:12px;
}
.manager-cabinet-list-body .cabinet-pwa-notifications__icon{
  width:42px;
  height:42px;
  flex:0 0 42px;
  position:relative;
  border-radius:14px;
  color:#8ce8ff;
  border:1px solid rgba(113,222,252,.22);
  background:linear-gradient(145deg,rgba(21,114,155,.28),rgba(43,73,137,.20));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.manager-cabinet-list-body .cabinet-pwa-notifications__icon::before{
  content:"";
  position:absolute;
  left:11px;
  top:8px;
  width:20px;
  height:20px;
  border-radius:12px 12px 7px 7px;
  background:currentColor;
  clip-path:polygon(50% 0,78% 10%,94% 35%,94% 72%,100% 89%,0 89%,6% 72%,6% 35%,22% 10%);
}
.manager-cabinet-list-body .cabinet-pwa-notifications__icon::after{
  content:"";
  position:absolute;
  left:17px;
  bottom:8px;
  width:8px;
  height:4px;
  border-radius:0 0 7px 7px;
  background:currentColor;
}
.manager-cabinet-list-body .cabinet-pwa-notifications h2{
  margin:0;
  color:#f3fbff;
  font-size:16px;
  line-height:1.2;
  letter-spacing:-.01em;
}
.manager-cabinet-list-body .cabinet-pwa-notifications p{
  margin:4px 0 0;
  color:rgba(213,235,245,.68);
  font-size:13px;
  line-height:1.35;
}
.manager-cabinet-list-body .cabinet-pwa-push-button{
  flex:0 0 auto;
  min-width:128px;
  min-height:42px;
  padding-inline:15px;
}
@media(max-width:700px){
  .manager-cabinet-list-body .cabinet-pwa-notifications{
    align-items:stretch;
    flex-direction:column;
    gap:12px;
  }
  .manager-cabinet-list-body .cabinet-pwa-push-button{
    width:100%;
  }
}
/* === end cabinet push === */


/* Compact notification control in the common site header. */
.pwa-header-push{
  appearance:none;
  width:42px;
  height:42px;
  min-width:42px;
  padding:5px;
  margin:0;
  border:1px solid rgba(255,213,88,.26);
  border-radius:13px;
  display:inline-grid;
  place-items:center;
  position:relative;
  overflow:hidden;
  background:linear-gradient(145deg,rgba(14,42,67,.96),rgba(20,65,89,.94));
  box-shadow:0 8px 22px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.08);
  cursor:pointer;
  flex:0 0 auto;
  transition:filter .16s ease,border-color .16s ease,transform .16s ease;
}
.pwa-header-push img{
  display:block;
  width:31px;
  height:31px;
  object-fit:contain;
  pointer-events:none;
}
.pwa-header-push:hover{filter:brightness(1.08);border-color:rgba(255,220,103,.42);transform:translateY(-1px)}
.pwa-header-push:active{transform:translateY(0) scale(.97)}
.pwa-header-push:focus-visible{outline:2px solid rgba(93,218,246,.78);outline-offset:2px}
.pwa-header-push.is-enabled{border-color:rgba(87,229,173,.48);box-shadow:0 8px 22px rgba(0,0,0,.2),0 0 0 1px rgba(87,229,173,.12),inset 0 1px 0 rgba(255,255,255,.08)}
.pwa-header-push.is-unavailable{opacity:.65;filter:saturate(.65)}
.pwa-header-push__state{
  position:absolute;
  right:4px;
  bottom:4px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#7f8e9d;
  border:1.5px solid #0b2c43;
  box-shadow:0 0 0 1px rgba(255,255,255,.08);
}
.pwa-header-push.is-enabled .pwa-header-push__state{background:#4ce0a8;box-shadow:0 0 8px rgba(76,224,168,.72)}
@media(max-width:1180px){.pwa-header-push{width:39px;height:39px;min-width:39px;border-radius:12px;padding:5px}.pwa-header-push img{width:29px;height:29px}}
@media(max-width:700px){.pwa-header-push{width:38px;height:38px;min-width:38px}.pwa-header-push img{width:28px;height:28px}}
@media(prefers-reduced-motion:reduce){.pwa-header-push{transition:none}}

/* === 2026-07-18: full-width mobile shell + lightweight touch rendering === */
@media (max-width:767px){
  html,body{width:100%!important;max-width:100%!important;overflow-x:clip!important}
  body.app-body,body.theme-premium.app-body,body.finance-page-body,body.avito-crm-body,body.manager-cabinet-body{
    width:100%!important;max-width:100%!important;margin:0!important;padding:env(safe-area-inset-top) 0 0!important
  }
  .app-shell,.finance-page-shell,.important-page-shell,.manager-cabinet-shell,.profit-page-shell,.avito-shell{
    width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;
    padding:0 0 max(8px,env(safe-area-inset-bottom))!important;gap:8px!important
  }
  .app-shell>.topbar,.finance-page-shell>.topbar,.important-page-shell>.topbar,.manager-cabinet-shell>.topbar,.profit-page-shell>.topbar,.avito-shell>.topbar{
    width:100%!important;max-width:100%!important;margin:0!important;border-left:0!important;border-right:0!important;
    border-radius:0 0 20px 20px!important
  }
  .app-shell>main,.app-shell>section,.finance-page-shell>main,.finance-page-shell>section,.important-page-shell>main,.important-page-shell>section,
  .manager-cabinet-shell>main,.manager-cabinet-shell>section,.profit-page-shell>main,.profit-page-shell>section,.avito-shell>main,.avito-shell>section{
    width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;margin-right:0!important
  }
  .dashboard-grid,.documents-grid,.documents-grid-premium,.documents-pairs-grid,.manager-rating-grid,.finance-command-grid,
  .journal-profit-summary-grid,.journal-chart-stat-grid,.avito-crm-grid{gap:8px!important}
}

@media (max-width:900px) and (hover:none) and (pointer:coarse){
  body::before,body::after,.ambient{display:none!important}
  html{scroll-behavior:auto!important}
  body{background:linear-gradient(180deg,#061526 0%,#0a2140 55%,#0b2548 100%)!important}
  .glass-panel,.glass-subpanel,.topbar,.workspace-card,.side-card,.hero-panel,.archive-toolbar,.ledger-card,
  .form-section,.template-picker,.finance-card-panel,.security-panel,.important-files-panel,.manager-rating-card{
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;filter:none!important;
    box-shadow:0 8px 24px rgba(1,9,22,.22),inset 0 1px 0 rgba(255,255,255,.045)!important
  }
  .glass-panel::after,.topbar::before{display:none!important}
  .template-card,.manager-rating-card,.pair-ledger-card,.important-file-card,.cabinet-card,.finance-card-panel{
    content-visibility:auto;contain-intrinsic-size:auto 240px
  }
  .topbar,.side-column{position:relative!important;top:auto!important}
  .template-card:hover,.workspace-card:hover,.ledger-card:hover,.manager-rating-list li:hover{transform:none!important}
}

/* Compact notification tile: explicit mobile size, outline and quiet site-matched gradient. */
@media (max-width:900px){
  .topbar .top-actions>.pwa-header-push,.top-actions>.pwa-header-push{
    flex:0 0 56px!important;width:56px!important;min-width:56px!important;max-width:56px!important;
    height:54px!important;min-height:54px!important;max-height:54px!important;padding:6px!important;margin:0!important;
    border:1px solid rgba(121,201,244,.48)!important;border-radius:15px!important;
    background:
      radial-gradient(circle at 28% 18%,rgba(97,216,255,.22),transparent 44%),
      linear-gradient(145deg,rgba(20,61,94,.98),rgba(31,47,91,.98))!important;
    box-shadow:0 9px 22px rgba(0,9,25,.24),inset 0 1px 0 rgba(255,255,255,.12),0 0 0 1px rgba(84,160,218,.08)!important;
    overflow:hidden!important
  }
  .topbar .top-actions>.pwa-header-push img,.top-actions>.pwa-header-push img{
    width:39px!important;height:39px!important;max-width:39px!important;object-fit:contain!important
  }
  .topbar .top-actions>.pwa-header-push.is-enabled,.top-actions>.pwa-header-push.is-enabled{
    border-color:rgba(84,226,178,.58)!important;
    background:
      radial-gradient(circle at 28% 18%,rgba(92,234,200,.24),transparent 44%),
      linear-gradient(145deg,rgba(17,72,88,.98),rgba(25,54,91,.98))!important
  }
  .pwa-header-push__state{right:5px!important;bottom:5px!important;width:8px!important;height:8px!important;border-color:#102d4e!important}
}
/* === end 2026-07-18 mobile performance === */

/* === 2026-07-18 v2: frameless mobile shell, larger Avito chat, stable status strips === */
@media (max-width:900px){
  html,body{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    overflow-x:clip!important;
  }
  body.app-body,
  body.theme-premium.app-body,
  body.finance-page-body,
  body.business-pack-body,
  body.avito-crm-body,
  body.manager-cabinet-body{
    padding:max(0px,env(safe-area-inset-top)) 0 max(4px,env(safe-area-inset-bottom))!important;
    margin:0!important;
  }

  /* Remove only layout frames. Content cards keep their own background/status meaning. */
  .app-shell,.finance-page-shell,.important-page-shell,.manager-cabinet-shell,.profit-page-shell,
  .business-pack-shell,.avito-shell{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    outline:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  .app-shell::before,.app-shell::after,
  .finance-page-shell::before,.finance-page-shell::after,
  .important-page-shell::before,.important-page-shell::after,
  .manager-cabinet-shell::before,.manager-cabinet-shell::after,
  .profit-page-shell::before,.profit-page-shell::after,
  .business-pack-shell::before,.business-pack-shell::after,
  .avito-shell::before,.avito-shell::after{
    content:none!important;
    display:none!important;
  }

  /* Full-bleed primary page sections: no vertical rails or decorative outline. */
  .app-shell>.glass-panel,.app-shell>main,.app-shell>section,
  .finance-page-shell>.glass-panel,.finance-page-shell>main,.finance-page-shell>section,
  .important-page-shell>.glass-panel,.important-page-shell>main,.important-page-shell>section,
  .manager-cabinet-shell>.glass-panel,.manager-cabinet-shell>main,.manager-cabinet-shell>section,
  .profit-page-shell>.glass-panel,.profit-page-shell>main,.profit-page-shell>section,
  .business-pack-shell>.glass-panel,.business-pack-shell>main,.business-pack-shell>section,
  .avito-shell>.glass-panel,.avito-shell>main,.avito-shell>section{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    border-left:0!important;
    border-right:0!important;
    outline:0!important;
  }
  .app-shell>.glass-panel::before,.app-shell>.glass-panel::after,
  .finance-page-shell>.glass-panel::before,.finance-page-shell>.glass-panel::after,
  .important-page-shell>.glass-panel::before,.important-page-shell>.glass-panel::after,
  .manager-cabinet-shell>.glass-panel::before,.manager-cabinet-shell>.glass-panel::after,
  .profit-page-shell>.glass-panel::before,.profit-page-shell>.glass-panel::after,
  .business-pack-shell>.glass-panel::before,.business-pack-shell>.glass-panel::after,
  .avito-shell>.glass-panel::before,.avito-shell>.glass-panel::after{
    display:none!important;
  }

  /* Avito CRM occupies the whole screen width. */
  body.avito-crm-body .avito-shell,
  body.avito-crm-body .avito-crm-grid,
  body.avito-crm-body .avito-messenger-toolbar,
  body.avito-crm-body .avito-sidebar,
  body.avito-crm-body .avito-dialog-panel,
  body.avito-crm-body .avito-card-panel,
  body.avito-crm-body .site-leads-panel{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    border:0!important;
    outline:0!important;
    box-shadow:none!important;
  }
  body.avito-crm-body .avito-messenger-toolbar,
  body.avito-crm-body .avito-sidebar,
  body.avito-crm-body .avito-dialog-panel,
  body.avito-crm-body .avito-card-panel,
  body.avito-crm-body .site-leads-panel{
    border-radius:0!important;
  }
  body.avito-crm-body .avito-crm-grid{gap:8px!important}

  /* The conversation is now the main mobile surface, not a small inset card. */
  body.avito-crm-body .avito-dialog-panel{
    height:92dvh!important;
    min-height:720px!important;
    max-height:980px!important;
    overflow:hidden!important;
  }
  body.avito-crm-body .avito-dialog{
    height:100%!important;
    grid-template-rows:auto minmax(0,1fr) auto!important;
  }
  body.avito-crm-body .avito-dialog-head{
    padding:12px 10px 10px!important;
    gap:9px!important;
    border:0!important;
    box-shadow:none!important;
  }
  body.avito-crm-body #avitoChatTitle{
    font-size:clamp(22px,6.4vw,29px)!important;
    line-height:1.14!important;
  }
  body.avito-crm-body .avito-messages{
    min-height:54dvh!important;
    padding:14px 8px 18px!important;
    gap:14px!important;
    border:0!important;
    scrollbar-gutter:stable!important;
  }
  body.avito-crm-body .avito-message{
    max-width:95%!important;
    padding:13px 14px!important;
    font-size:16px!important;
    line-height:1.5!important;
    box-shadow:0 5px 14px rgba(0,7,20,.14)!important;
  }
  body.avito-crm-body .avito-message-image{
    max-height:440px!important;
  }
  body.avito-crm-body .avito-reply{
    padding:10px 8px max(12px,env(safe-area-inset-bottom))!important;
    border:0!important;
    box-shadow:0 -10px 24px rgba(1,9,24,.18)!important;
  }
  body.avito-crm-body .avito-reply textarea{
    min-height:124px!important;
    max-height:220px!important;
  }
  body.avito-crm-body .avito-reply .primary-btn,
  body.avito-crm-body .avito-template-btn{
    min-height:56px!important;
    font-size:16px!important;
  }

  /* Keep card meaning without a full rectangular outline. */
  body.avito-crm-body .avito-chat-item,
  body.avito-crm-body .avito-client-card,
  body.avito-crm-body .site-lead-card,
  body.avito-crm-body .site-lead-detail{
    border-top:0!important;
    border-right:0!important;
    border-bottom:0!important;
    outline:0!important;
  }

  /* Closed document sets must always have a green stripe on mobile. */
  .pair-ledger-card.pair-status-paired,
  body.theme-premium .pair-ledger-card.pair-status-paired{
    border:0!important;
    box-shadow:inset 5px 0 0 #35c985,0 10px 26px rgba(3,38,24,.18)!important;
  }
  .pair-ledger-card.pair-status-pending,
  body.theme-premium .pair-ledger-card.pair-status-pending{
    border:0!important;
    box-shadow:inset 5px 0 0 #e4a93b,0 10px 26px rgba(55,36,5,.18)!important;
  }
  .pair-ledger-card.pair-status-uploaded,
  .pair-ledger-card.pair-has-upload,
  body.theme-premium .pair-ledger-card.pair-status-uploaded,
  body.theme-premium .pair-ledger-card.pair-has-upload{
    border:0!important;
    box-shadow:inset 5px 0 0 #9a7cff,0 10px 26px rgba(29,18,72,.18)!important;
  }
}

@media (max-width:900px) and (hover:none) and (pointer:coarse){
  /* Meizu/Android: fewer expensive paint effects during a long scroll. */
  body.avito-crm-body .avito-chat-item,
  body.avito-crm-body .avito-client-card,
  body.avito-crm-body .site-lead-card,
  body.avito-crm-body .avito-message,
  .pair-ledger-card,
  .manager-rating-card{
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
    filter:none!important;
    transition:none!important;
  }
  body.avito-crm-body .avito-chat-item,
  body.avito-crm-body .avito-client-card,
  body.avito-crm-body .site-lead-card,
  .pair-ledger-card,
  .manager-rating-card{
    content-visibility:auto!important;
    contain-intrinsic-size:auto 210px!important;
  }
  body.avito-crm-body .avito-chat-list,
  body.avito-crm-body .avito-messages{
    scroll-behavior:auto!important;
    overscroll-behavior-y:contain!important;
    -webkit-overflow-scrolling:touch!important;
  }
}

@media (max-width:520px){
  body.avito-crm-body .avito-dialog-panel{
    height:94dvh!important;
    min-height:700px!important;
  }
  body.avito-crm-body .avito-messages{min-height:56dvh!important}
}
/* === end frameless mobile v2 === */

.pwa-update button:disabled { opacity: .58; cursor: not-allowed; }
/* Ruby Security navigation. Same recessed press geometry as Audit. */
html body.theme-premium.app-body .app-shell header.topbar .top-actions a.nav-link.security-btn{
 display:inline-flex!important;align-items:center!important;justify-content:center;gap:9px!important;
 color:#fff3f6!important;border:1px solid #ec8ca6!important;border-radius:12px!important;
 background:linear-gradient(135deg,#650a24 0%,#c21946 48%,#8b0b2b 100%)!important;
 box-shadow:0 4px 12px rgba(0,8,18,.24),inset 0 1px 0 #ffd1dd70!important;
 text-shadow:0 1px 3px #43091880!important;animation:none!important;
 transition:background .12s ease,border-color .12s ease,transform .1s ease!important;
}
html body.theme-premium.app-body .app-shell header.topbar .top-actions a.nav-link.security-btn:not(.active):hover,html body.theme-premium.app-body .app-shell header.topbar .top-actions a.nav-link.security-btn:not(.active):focus-visible{
 background:linear-gradient(135deg,#7c0d2c 0%,#dd2354 48%,#a21238 100%)!important;border-color:#ffc0d3!important;
 box-shadow:0 4px 12px rgba(0,8,18,.24),inset 0 1px 0 #ffe0e88c!important;
}
html body.theme-premium.app-body .app-shell header.topbar .top-actions a.nav-link.security-btn.active,
html body.theme-premium.app-body .app-shell header.topbar .top-actions a.nav-link.security-btn.active:hover,
html body.theme-premium.app-body .app-shell header.topbar .top-actions a.nav-link.security-btn.active:focus-visible,
html body.theme-premium.app-body .app-shell header.topbar .top-actions a.nav-link.security-btn.active:active,
html body.theme-premium.app-body .app-shell header.topbar .top-actions a.nav-link.security-btn.is-nav-press,
html body.theme-premium.app-body .app-shell header.topbar .top-actions a.nav-link.security-btn.is-nav-press:hover,
html body.theme-premium.app-body .app-shell header.topbar .top-actions a.nav-link.security-btn:not(.active):active {
  border-color: rgba(184, 218, 255, .56) !important;
  background: linear-gradient(180deg, #123764 0%, #051525 100%) !important;
  color: #fff !important;
  text-shadow: none !important;
  filter: none !important;
  transform: translateY(2px) scale(.982) !important;
  box-shadow:
    0 3px 9px rgba(0, 8, 18, .26),
    inset 0 4px 12px rgba(0, 8, 22, .62),
    inset 0 1px 0 rgba(255, 255, 255, .09) !important;
  transition: none !important;
}
html body.theme-premium.app-body .app-shell header.topbar .top-actions a.nav-link.security-btn::before,html body.theme-premium.app-body .app-shell header.topbar .top-actions a.nav-link.security-btn::after{content:none!important;display:none!important;animation:none!important}
.security-nav-shield{display:grid!important;place-items:center;width:32px;height:32px;flex:0 0 32px;background:none!important;border:0!important;border-radius:0!important}
.security-nav-shield img{display:block;width:32px;height:32px;object-fit:contain;filter:drop-shadow(0 2px 2px #22040c66)}

html body.theme-premium.app-body .app-shell header.topbar .top-actions a.nav-link.security-btn.active .security-nav-shield img,
html body.theme-premium.app-body .app-shell header.topbar .top-actions a.nav-link.security-btn.active:hover .security-nav-shield img,
html body.theme-premium.app-body .app-shell header.topbar .top-actions a.nav-link.security-btn.is-nav-press .security-nav-shield img,
html body.theme-premium.app-body .app-shell header.topbar .top-actions a.nav-link.security-btn:not(.active):active .security-nav-shield img{filter:drop-shadow(0 2px 5px rgba(0,8,20,.24))!important}
