/* Preserve the existing mobile route layouts and let their controls finish positioning. */
@media (max-width: 760px) {
  html[data-hm-shell]:not([data-hm-shell="chat"]) header > .hs-menu-ai-entry:not([data-ai-placement]) {
    display: none !important;
  }

  html[data-hm-shell]:not([data-hm-shell="chat"]) header > .hs-menu-ai-entry {
    box-shadow: none !important;
    transition: none !important;
  }

  html[data-hm-shell]:is([data-hm-shell="home"], [data-hm-shell="catalog"], [data-hm-shell="cases"], [data-hm-shell="books"])
    .hs-mobile-actions > a[href*="sample-request"]:not(.hs-in-header) {
    visibility: hidden !important;
  }

  html[data-hm-shell]:not([data-hm-shell="chat"]) [data-hs-basket].hs-in-header {
    transition: none !important;
  }

  html[data-hm-shell="catalog"][data-mobile-entry-state] body > header {
    visibility: visible !important;
    pointer-events: auto !important;
  }

  html[data-hm-shell="catalog"][data-mobile-entry-state] .mobile-stable-entry-status {
    inset-block-start: 64px;
    z-index: 10;
    justify-content: flex-start;
    padding: 32px 16px 20px;
  }

  html[data-hm-shell="catalog"] .mobile-stable-entry-brand { display: none; }

  html[data-hm-shell="catalog"][data-mobile-entry-state="pending"] .mobile-stable-entry-status::after,
  html[data-hm-shell="cases"] [data-case-startup-notice]:has(button[hidden])::after {
    content: "";
    display: block;
    width: 100%;
    height: 148px;
    margin-top: 10px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f3f0eb 0 48%, transparent 48% 52%, #f3f0eb 52% 100%);
  }
}

@media (max-width: 767px) {
  html[data-hm-shell="chat"] #business-request-status.is-waiting { display: none !important; }
}

@media (min-width: 1024px) {
  html[data-hm-shell="detail"] .library-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1520px) {
  html[data-hm-shell="detail"] .library-detail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-inline-size: 1280px;
  }
}

@media (max-width:760px){
.circular-home .home-actions{box-sizing:border-box;min-width:0;max-width:100%}
.circular-home .home-actions:not(:has(.hs-ai-entry-cta))::after{content:'';display:block;flex:none;width:100%;height:58px;pointer-events:none}
html .circular-home .home-actions .hs-ai-entry-cta{display:flex;align-items:center;gap:12px;box-sizing:border-box;width:100%;max-width:100%;min-width:0;height:58px;min-height:44px;margin:0!important;padding:0 14px 0 12px!important;flex:none;border:1px solid rgba(255,255,255,.2);border-radius:16px;background:rgba(14,14,14,.5);-webkit-backdrop-filter:blur(14px) saturate(120%);backdrop-filter:blur(14px) saturate(120%);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 6px 20px rgba(0,0,0,.16);color:#f8f6f3;text-decoration:none;transform:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:background-color .2s ease,border-color .2s ease}
html .circular-home .home-actions .hs-ai-entry-cta::before,html .circular-home .home-actions .hs-ai-entry-cta::after{content:none}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){html .circular-home .home-actions .hs-ai-entry-cta{background:rgba(14,14,14,.7)}}
@media (hover:hover){html .circular-home .home-actions .hs-ai-entry-cta:hover{background:rgba(14,14,14,.6);border-color:rgba(255,255,255,.32);transform:none}html .circular-home .home-actions .hs-ai-entry-cta:hover .hs-ai-entry-arrow{transform:translateX(2px);opacity:1}}
html .circular-home .home-actions .hs-ai-entry-cta:active{background:rgba(14,14,14,.66);transform:none}
html .circular-home .home-actions .hs-ai-entry-cta:focus-visible{outline:2px solid #fff;outline-offset:2px}
html .circular-home .home-actions .hs-ai-entry-cta .hs-ai-entry-icon{display:flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;margin:0;padding:0;border:0;border-radius:10px;background:rgba(255,255,255,.12);color:#fff}
html .circular-home .home-actions .hs-ai-entry-cta .hs-ai-entry-icon svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor}
html .circular-home .home-actions .hs-ai-entry-cta .hs-ai-entry-copy{display:flex;flex-direction:column;justify-content:center;flex:1 1 auto;min-width:0;gap:1px}
html .circular-home .home-actions .hs-ai-entry-cta .hs-ai-entry-text{display:block;margin:0;font-size:15px;font-weight:600;line-height:20px;letter-spacing:.02em;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html .circular-home .home-actions .hs-ai-entry-cta .hs-ai-entry-desc{display:block;margin:0;padding:0;font-size:12px;line-height:16px;color:rgba(248,246,243,.74);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html .circular-home .home-actions .hs-ai-entry-cta .hs-ai-entry-arrow{display:block;flex:none;width:16px;height:16px;margin:0;opacity:.72;transform:none;transition:transform .2s ease,opacity .2s ease}
@media (max-width:359px){html .circular-home .home-actions .hs-ai-entry-cta{gap:10px;padding:0 12px 0 10px!important}html .circular-home .home-actions .hs-ai-entry-cta .hs-ai-entry-desc{font-size:11.5px}}
.circular-home .hs-home-assemble{position:fixed;inset:0;z-index:2147483000;pointer-events:none;contain:layout paint style;animation:hs-ha-out 1620ms ease both}
.circular-home .hs-home-assemble .hs-ha-box{position:absolute;box-sizing:border-box}
.circular-home .hs-home-assemble .hs-ha-box::before{content:'';position:absolute;inset:0;border:1px dashed rgba(255,255,255,.55);border-radius:12px;box-shadow:0 0 0 1px rgba(0,0,0,.1);clip-path:inset(0 100% 100% 0);animation:hs-ha-draw 460ms cubic-bezier(.2,.7,.2,1) var(--d,0ms) both}
.circular-home .hs-home-assemble .hs-ha-tag{position:absolute;left:0;display:inline-flex;align-items:center;padding:2px 6px;border-radius:4px;background:rgba(10,10,10,.5);color:rgba(255,255,255,.9);font:500 11px/16px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:nowrap;opacity:0;animation:hs-ha-fade 160ms linear calc(var(--d,0ms) + 260ms) both}
.circular-home .hs-home-assemble .hs-ha-box--ring::before{border-radius:50%;border-color:rgba(230,238,248,.72);box-shadow:inset 0 0 18px rgba(230,238,248,.08)}
.circular-home .hs-home-assemble .hs-ha-box--intro .hs-ha-tag{left:auto;right:0}
.circular-home .hs-home-assemble .hs-ha-tag--inside{top:5px;left:5px}
.circular-home .hs-home-assemble .hs-ha-tag--below{top:calc(100% + 4px)}
.circular-home .hs-home-assemble .hs-ha-tag--above{bottom:calc(100% + 4px)}
.circular-home .hs-home-assemble .hs-ha-type{display:inline-block;overflow:hidden;width:0;vertical-align:top;border-right:1px solid currentColor;animation:hs-ha-type 560ms steps(var(--n,12),end) calc(var(--d,0ms) + 300ms) both,hs-ha-caret 400ms steps(1) calc(var(--d,0ms) + 300ms) 3}
@keyframes hs-ha-draw{0%{clip-path:inset(0 100% 100% 0)}55%{clip-path:inset(0 0 calc(100% - 1px) 0)}100%{clip-path:inset(0)}}
@keyframes hs-ha-fade{from{opacity:0}to{opacity:1}}
@keyframes hs-ha-type{from{width:0}to{width:var(--w,0px)}}
@keyframes hs-ha-caret{50%{border-right-color:transparent}}
@keyframes hs-ha-out{0%,80%{opacity:1}100%{opacity:0}}
}
@media (max-width:760px) and (prefers-reduced-motion:reduce){
html .circular-home .home-actions .hs-ai-entry-cta,html .circular-home .home-actions .hs-ai-entry-cta .hs-ai-entry-arrow{transition:none!important}
html .circular-home .home-actions .hs-ai-entry-cta:hover .hs-ai-entry-arrow{transform:none!important}
.circular-home .hs-home-assemble{display:none!important}
}

@media(max-width:760px){
  html[data-entry-surface] .circular-home .home-actions .hs-ai-entry-cta{position:relative;inset-block-start:-28px}
  html[data-entry-surface] body:has(.circular-home) .hs-mobile-actions>[data-hs-consult]{
    width:48px!important;height:48px!important;min-height:48px!important;gap:2px!important;
  }
  html[data-entry-surface] body:has(.circular-home) .hs-mobile-actions>[data-hs-consult] svg{width:18px!important;height:18px!important}
}
