/* Mobile app layer only — desktop remains untouched. */
.mobile-app-header,.mobile-bottom-nav,.mobile-more-layer{display:none}
@media(max-width:850px){
  html,body{min-height:100%;background:#f8f6f7;overscroll-behavior-y:none}
  body{padding-top:calc(64px + env(safe-area-inset-top));padding-bottom:calc(76px + env(safe-area-inset-bottom));-webkit-tap-highlight-color:transparent}
  .app-shell{min-height:auto;display:block}
  .sidebar{display:none!important}
  .main-shell{min-width:0;width:100%;height:auto;display:block}
  .topbar{display:none!important}
  .main-scroll{height:auto!important;overflow:visible!important;padding:0!important}
  #content{min-width:0}

  .mobile-app-header{position:fixed;z-index:120;top:0;left:0;right:0;height:calc(64px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 16px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;background:rgba(255,255,255,.94);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid rgba(38,27,31,.07)}
  .mobile-brand-button{appearance:none;border:0;background:transparent;padding:0;min-width:0;display:flex;align-items:center;gap:10px;text-align:left;color:#241a1e;font:inherit}
  .mobile-brand-mark{width:34px;height:34px;border-radius:11px;background:var(--wine,#6b1730);display:grid;place-items:center;flex:0 0 auto;box-shadow:0 7px 18px rgba(74,22,40,.16)}
  .mobile-brand-mark svg{width:21px;height:21px;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .mobile-brand-copy{min-width:0;display:grid;gap:1px}.mobile-brand-copy small{font-size:10px;line-height:1.2;color:#8b7d82;text-transform:uppercase;letter-spacing:.07em}.mobile-brand-copy strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}
  .mobile-header-actions{display:flex;gap:8px}.mobile-header-button{width:38px;height:38px;border:1px solid rgba(38,27,31,.08);border-radius:12px;background:#fff;color:#3b2e33;display:grid;place-items:center;padding:0}.mobile-header-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

  .mobile-bottom-nav{position:fixed;z-index:125;left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));height:64px;display:grid;grid-template-columns:repeat(4,1fr);padding:6px;border:1px solid rgba(38,27,31,.08);border-radius:20px;background:rgba(255,255,255,.96);box-shadow:0 14px 40px rgba(46,27,34,.16);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
  .mobile-nav-item{appearance:none;border:0;background:transparent;border-radius:15px;color:#877980;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font:inherit;font-size:10px;font-weight:600;padding:2px}.mobile-nav-item svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.mobile-nav-item.active{background:var(--accent-soft,#f6ebef);color:var(--wine,#6b1730)}

  .mobile-more-layer{position:fixed;z-index:220;inset:0;display:block;pointer-events:none;background:rgba(22,16,18,0);transition:.2s ease}.mobile-more-layer.show{pointer-events:auto;background:rgba(22,16,18,.32)}
  .mobile-more-sheet{position:absolute;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));max-height:min(72vh,620px);overflow:auto;background:#fff;border-radius:24px;padding:10px 14px calc(16px + env(safe-area-inset-bottom));box-shadow:0 22px 65px rgba(30,18,23,.25);transform:translateY(calc(100% + 30px));transition:.24s cubic-bezier(.2,.8,.2,1)}.mobile-more-layer.show .mobile-more-sheet{transform:translateY(0)}
  .mobile-sheet-grab{width:38px;height:4px;border-radius:9px;background:#ddd4d7;margin:2px auto 13px}.mobile-more-head{display:flex;align-items:center;justify-content:space-between;padding:3px 4px 12px}.mobile-more-head div{display:grid}.mobile-more-head small{font-size:11px;color:#8b7d82}.mobile-more-head strong{font-size:17px}.mobile-sheet-close{width:34px;height:34px;border:0;border-radius:11px;background:#f5f2f3;font-size:20px;color:#5c4f54}
  .mobile-more-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.mobile-more-item{min-height:72px;border:1px solid rgba(38,27,31,.08);border-radius:15px;background:#fff;padding:12px;display:flex;align-items:center;gap:10px;text-align:left;font:inherit;color:#33282c}.mobile-more-item span:first-child{width:34px;height:34px;border-radius:10px;background:#f7f3f4;color:var(--wine,#6b1730);display:grid;place-items:center;flex:0 0 auto}.mobile-more-item svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.mobile-more-item div{display:grid;gap:2px}.mobile-more-item strong{font-size:12px}.mobile-more-item small{font-size:10px;color:#8b7d82}.mobile-more-account{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}.mobile-more-account button{min-height:44px;border:1px solid rgba(38,27,31,.08);border-radius:13px;background:#fff;font:inherit;font-size:12px;font-weight:600;color:#46383e}.mobile-more-account button.danger{color:#9a4256}

  .page{padding:16px!important;max-width:none!important}.page-head{align-items:flex-start!important;gap:12px!important;margin-bottom:18px!important}.page-head .page-title{font-size:25px!important;line-height:1.15!important}.page-head .page-sub{font-size:12px!important;line-height:1.45!important;margin-top:5px!important}.head-actions{gap:7px!important;flex-wrap:wrap!important}.head-actions .primary,.head-actions .outline,.head-actions button{min-height:40px}
  button,.primary,.outline,.ghost{touch-action:manipulation}

  .stats-grid,.dashboard-grid,.payment-kpis,.data-card-grid,.brand-studio-grid{grid-template-columns:1fr!important}
  .card,.section-card,.settings-option-card,.attention-strip,.open-tasks-card{border-radius:16px!important}
  .tablewrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch;border-radius:14px}.table{min-width:680px}

  .client-hero{position:relative!important;top:auto!important}.client-hero-inner{padding:16px!important}.client-top{display:block!important}.client-id{align-items:flex-start!important}.client-logo{width:46px!important;height:46px!important;flex:0 0 auto}.client-title{font-size:22px!important;line-height:1.15!important}.client-contactline{display:flex!important;overflow-x:auto;white-space:nowrap;padding-bottom:2px;scrollbar-width:none}.client-contactline::-webkit-scrollbar{display:none}.client-hero-right{margin-top:15px!important}.client-actions{justify-content:flex-start!important;flex-wrap:wrap!important}.client-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.metric{min-width:0!important;padding:10px!important}.metric small{font-size:10px!important}.metric strong{font-size:12px!important;overflow-wrap:anywhere}
  .client-tabs{display:flex!important;overflow-x:auto!important;white-space:nowrap!important;gap:4px!important;scroll-snap-type:x proximity;padding:5px 0 2px!important;scrollbar-width:none}.client-tabs::-webkit-scrollbar{display:none}.client-tab{flex:0 0 auto!important;scroll-snap-align:start;padding:10px 11px!important;min-height:42px!important}
  .client-body{display:block!important;padding:16px!important}.client-main{min-width:0!important}.client-body>aside,.client-body>.right-panel{margin-top:14px!important;width:auto!important;position:static!important}.customer-service-grid,.solveire-service-grid{grid-template-columns:1fr!important}

  .drawer{position:fixed!important;z-index:240!important;left:8px!important;right:8px!important;top:auto!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;height:auto!important;max-height:calc(100dvh - 24px - env(safe-area-inset-top))!important;border-radius:24px!important;box-shadow:0 24px 70px rgba(30,18,23,.28)!important;overflow:auto!important}.drawer.show{transform:none!important}.screen-overlay{z-index:230!important}
  .modal-layer{z-index:250!important;padding:8px!important;align-items:flex-end!important}.modal-card{width:100%!important;max-width:none!important;max-height:calc(100dvh - 20px - env(safe-area-inset-top))!important;border-radius:24px!important;overflow:auto!important}
  .form-grid{grid-template-columns:1fr!important}.field.full{grid-column:auto!important}.drawer-actions{position:sticky;bottom:0;background:#fff;padding-bottom:max(12px,env(safe-area-inset-bottom));z-index:2;flex-wrap:wrap}

  .settings-shell-v19{display:block!important}.settings-nav-v19{display:flex!important;overflow-x:auto!important;gap:6px!important;padding:0 0 12px!important;background:transparent!important;border:0!important;scrollbar-width:none}.settings-nav-v19::-webkit-scrollbar{display:none}.settings-nav-top,.settings-nav-group-label{display:none!important}.settings-nav-group{display:contents!important}.settings-nav-v19 button{flex:0 0 auto!important;width:auto!important;min-width:0!important;padding:9px 12px!important;border-radius:12px!important;background:#fff!important;border:1px solid rgba(38,27,31,.08)!important}.settings-nav-v19 button.active{background:var(--accent-soft)!important;border-color:rgba(107,23,48,.12)!important}.settings-nav-v19 button>span,.settings-nav-v19 button i,.settings-nav-v19 button small{display:none!important}.settings-nav-v19 button strong{font-size:11px!important;white-space:nowrap}.settings-page-v19 main{min-width:0!important}

  .proposal-workbench{grid-template-columns:1fr!important;gap:14px!important}.proposal-controls,.proposal-preview{max-height:none!important;overflow:visible!important}.proposal-controls{padding:15px!important;border-radius:16px!important}.proposal-preview{padding-bottom:10px!important}.proposal-document{font-size:12px!important;padding:18px 15px!important}.proposal-document-cover{margin:-18px -15px 20px!important}.proposal-item{grid-template-columns:1fr!important}.proposal-item-media,.proposal-item .full,.proposal-item-remove{grid-column:1!important;grid-row:auto!important}.proposal-item-thumb{width:100%!important;height:150px!important}.proposal-add{display:grid!important;grid-template-columns:1fr 1fr!important}.proposal-add select{grid-column:1/-1}.proposal-preview-label{font-size:11px!important}

  .client-files-toolbar{align-items:stretch!important;flex-direction:column!important}.client-files-toolbar>small{text-align:left!important}.client-file-row{grid-template-columns:46px minmax(0,1fr)!important}.client-file-actions{grid-column:1/-1!important;padding-left:60px!important;flex-wrap:wrap!important}.client-files-card{padding:15px!important}.client-file-drop{min-height:122px!important}

  .auth-layout{min-height:100dvh!important}.auth-overlay{padding:0!important}.auth-panel{padding:calc(18px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom))!important}.auth-panel-inner{width:100%!important}.auth-visual{display:none!important}
}
@media(max-width:390px){.mobile-brand-copy strong{max-width:150px}.mobile-bottom-nav{left:7px;right:7px}.page{padding:13px!important}.client-body,.client-hero-inner{padding:13px!important}.mobile-more-grid{grid-template-columns:1fr 1fr}.client-metrics{grid-template-columns:1fr!important}}
