
/* ClokIt authenticated mobile app shell — targeted visual overrides only. */
@media screen and (max-width:820px){
  html:not([data-public-report="true"]) body:not(.public-view) .topbar{
    height:56px!important;min-height:56px!important;background:#0c293e!important;
    border-bottom:1px solid rgba(255,255,255,.09)!important;box-shadow:none!important
  }
  html:not([data-public-report="true"]) body:not(.public-view) .topbar-inner{
    height:56px!important;min-height:56px!important;max-height:56px!important;
    padding:0 12px!important;overflow:visible!important
  }
  html:not([data-public-report="true"]) body:not(.public-view) .clokit-app-brand-lockup{
    gap:7px!important;max-width:calc(100vw - 96px)!important;text-decoration:none!important
  }
  html:not([data-public-report="true"]) body:not(.public-view) .clokit-master-brand-mark{
    width:32px!important;height:32px!important;flex:0 0 32px!important
  }
  html:not([data-public-report="true"]) body:not(.public-view) .clokit-master-brand-mark img{
    width:32px!important;height:32px!important;object-fit:contain!important
  }
  html:not([data-public-report="true"]) body:not(.public-view) .clokit-master-brand-copy b{
    font-size:17px!important;line-height:1.05!important
  }
  html:not([data-public-report="true"]) body:not(.public-view) .clokit-master-brand-copy small{
    display:none!important
  }
  html:not([data-public-report="true"]) body:not(.public-view) #clokitMobileNavRescue{
    left:8px!important;right:8px!important;bottom:calc(6px + env(safe-area-inset-bottom,0px))!important;
    padding:4px!important;gap:2px!important;border:1px solid rgba(255,255,255,.14)!important;
    border-radius:19px!important;background:rgba(8,42,66,.98)!important;
    box-shadow:0 10px 28px rgba(9,32,51,.23)!important
  }
  html:not([data-public-report="true"]) body:not(.public-view) #clokitMobileNavRescue:after{
    content:none!important;display:none!important
  }
  html:not([data-public-report="true"]) body:not(.public-view) #clokitMobileNavRescue button{
    min-height:47px!important;gap:2px!important;padding:4px 1px!important;
    border-radius:14px!important;touch-action:manipulation!important
  }
  html:not([data-public-report="true"]) body:not(.public-view) #clokitMobileNavRescue button b{
    width:27px!important;height:23px!important;font-size:15px!important
  }
  html:not([data-public-report="true"]) body:not(.public-view) #clokitMobileNavRescue button span{
    font-size:10px!important;line-height:1.15!important;letter-spacing:0!important
  }
  html:not([data-public-report="true"]) body:not(.public-view) #clokitMobileNavRescue button.active{
    background:#1a5b7e!important
  }
  html:not([data-public-report="true"]) body:not(.public-view) #app.page{
    padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))!important
  }
  html:not([data-public-report="true"]) body.clokit-data-center-open #clokitMobileNavRescue{
    display:none!important;visibility:hidden!important;pointer-events:none!important
  }
}
@media screen and (max-width:760px){
  .clokit-library-mobile,.clokit-published-mobile,.clokit-account-mobile{
    background:#f2f6f9!important;overflow-x:clip!important
  }
  .clokit-library-hero,.clokit-published-hero,.clokit-published-detail-head,.clokit-account-hero{
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin:0 0 12px!important;padding:13px 3px 8px!important;
    border:0!important;border-radius:0!important;box-shadow:none!important;
    background:transparent!important;color:#102e43!important
  }
  .clokit-library-hero h1,.clokit-published-hero h1,
  .clokit-published-detail-head h1,.clokit-account-hero h1{
    font-size:clamp(23px,6.2vw,28px)!important;line-height:1.15!important;
    letter-spacing:-.035em!important;color:#102e43!important;margin:4px 0 5px!important
  }
  .clokit-library-kicker,.clokit-published-hero small,
  .clokit-published-detail-head small,.clokit-account-kicker{
    font-size:10px!important;line-height:1.2!important;
    letter-spacing:.105em!important;color:#147fae!important
  }
  .clokit-library-hero p,.clokit-published-hero p,
  .clokit-published-detail-head p,.clokit-account-hero>p{
    font-size:13px!important;line-height:1.45!important;
    color:#657c8d!important;max-width:48ch!important;margin:0!important
  }
  .clokit-library-search,.clokit-published-search{margin-top:12px!important;gap:9px!important}
  .clokit-library-search input,.clokit-published-search input{
    min-height:46px!important;width:100%!important;
    border:1px solid #cddfe9!important;border-radius:13px!important;
    background:#fff!important;color:#17374a!important;
    padding:0 13px!important;font-size:16px!important;box-shadow:none!important
  }
  .clokit-library-search input::placeholder,.clokit-published-search input::placeholder{
    color:#7d93a1!important;opacity:1!important
  }
  .clokit-library-search button{
    min-width:46px!important;border-radius:13px!important;
    background:#0c6e9e!important;border-color:#0c6e9e!important;color:#fff!important
  }
  .clokit-library-summary,.clokit-published-summary{gap:9px!important;margin:6px 0 13px!important}
  .clokit-library-summary>button,.clokit-library-summary>div,.clokit-published-summary>div{
    border-radius:14px!important;box-shadow:none!important;
    padding:12px!important;border-color:#dce7ed!important
  }
  .clokit-library-summary small,.clokit-published-summary small,
  .clokit-account-stat small{font-size:10px!important;line-height:1.25!important}
  .clokit-library-summary b,.clokit-published-summary b{font-size:19px!important}
  .clokit-library-summary span,.clokit-published-summary span{font-size:11px!important;line-height:1.25!important}
  .clokit-client-head h2,.clokit-published-folder-head h2{font-size:18px!important}
  .clokit-client-head span,.clokit-published-folder-head span{font-size:11px!important}
  .clokit-client-folder,.clokit-published-folder{
    border-radius:15px!important;box-shadow:none!important;min-height:130px!important
  }
  .clokit-client-folder h3,.clokit-published-folder h3{font-size:13px!important;line-height:1.25!important}
  .clokit-client-folder p,.clokit-published-folder p,
  .clokit-client-folder footer,.clokit-published-folder footer{
    font-size:10px!important;line-height:1.35!important
  }
  .clokit-account-identity{
    grid-template-columns:45px minmax(0,1fr)!important;gap:11px!important;
    margin-top:12px!important;border:1px solid #dbe7ee!important;
    border-radius:14px!important;background:#fff!important;padding:11px 12px!important
  }
  .clokit-account-avatar{
    width:45px!important;height:45px!important;border-radius:12px!important;
    color:#fff!important;background:#5479c6!important;font-size:20px!important;border:0!important
  }
  .clokit-account-identity b{color:#102e43!important;font-size:15px!important}
  .clokit-account-identity span{color:#647f91!important;font-size:11px!important;line-height:1.3!important}
  .clokit-account-stats{margin-top:9px!important;gap:9px!important}
  .clokit-account-stat{
    border:1px solid #dce7ed!important;border-radius:14px!important;
    background:#fff!important;padding:11px 12px!important
  }
  .clokit-account-stat small{color:#698298!important}
  .clokit-account-stat b{color:#102e43!important;font-size:20px!important;line-height:1.15!important}
  .clokit-account-control{padding:12px!important;box-shadow:none!important}
  .clokit-account-control i{width:34px!important;height:34px!important;font-size:15px!important}
  .clokit-account-control b{font-size:13px!important;line-height:1.3!important}
  .clokit-account-control span{font-size:10px!important;line-height:1.3!important}
  .clokit-account-panel,.clokit-account-details details{box-shadow:none!important}
  .v220-center{padding-top:12px!important}
  .v220-topline{margin-bottom:10px!important}
  .v220-title h1{font-size:23px!important;line-height:1.15!important}
  .clokit-v2-continue{margin-bottom:12px!important}
  .clokit-v2-continue .clokit-v2-preview{max-height:185px!important;overflow:hidden!important}
  html:has(.capture-page) .capture-page{
    height:calc(100dvh - 56px)!important;min-height:0!important;padding:0!important
  }
  html:has(.capture-page) .capture-console{border:0!important;border-radius:0!important}
  html:has(.capture-page) .capture-body{
    display:block!important;min-height:0!important;overflow-y:auto!important;
    overflow-x:hidden!important;padding-bottom:calc(94px + env(safe-area-inset-bottom,0px))!important;
    -webkit-overflow-scrolling:touch!important
  }
  html:has(.capture-page) .capture-main{
    display:flex!important;flex-direction:column!important;gap:9px!important;
    overflow:visible!important;padding:11px!important
  }
  html:has(.capture-page) .capture-header{padding:10px 11px!important;gap:10px!important}
  html:has(.capture-page) .capture-header-actions button{
    font-size:12px!important;min-height:38px!important;padding:6px 9px!important
  }
  html:has(.capture-page) .capture-hero{padding:13px!important;gap:9px!important;border-radius:16px!important}
  html:has(.capture-page) .capture-hero h2{font-size:19px!important;line-height:1.17!important}
  html:has(.capture-page) .capture-hero-actions button{
    min-height:43px!important;font-size:13px!important;padding:9px!important
  }
  html:has(.capture-page) .capture-feed{
    height:clamp(130px,21dvh,210px)!important;flex:0 0 auto!important;
    overflow-y:auto!important;border-radius:15px!important
  }
  html:has(.capture-page) .capture-feed-empty{
    min-height:100px!important;height:100%!important;padding:10px!important
  }
  html:has(.capture-page) .capture-side{padding:10px!important;overflow:visible!important}
  html:has(.capture-page) .capture-side-card{min-width:0!important;flex:1!important}
  .clokit-library-search button,.clokit-account-control,
  .clokit-client-folder,.clokit-published-folder,.clokit-year-chip{touch-action:manipulation!important}
}
@media screen and (max-width:360px){
  .clokit-account-controls{gap:7px!important}
  .clokit-library-search,.clokit-published-search{gap:6px!important}
}
@media (prefers-reduced-motion:reduce){
  #clokitMobileNavRescue button,.clokit-client-folder,.clokit-published-folder{transition:none!important;animation:none!important}
}
/* Secondary workspaces own the entire screen and have their own Back/Manage controls.
   The global dock otherwise overlays forms and steals touches above owner/org admin. */
@media screen and (max-width:820px){
  html:not([data-public-report="true"]) body:has(#clokitOwnerOps) #clokitMobileNavRescue,
  html:not([data-public-report="true"]) body:has(#clokitOrgManager) #clokitMobileNavRescue,
  html:not([data-public-report="true"]) body.orgmgr-open #clokitMobileNavRescue{
    display:none!important;visibility:hidden!important;pointer-events:none!important
  }
}