/* Additive mobile layer: preserve the approved desktop shell and finance logic. */
.jam-mobile-nav,.jam-mobile-control,.jam-history-close,.jam-history-scrim{display:none}
.jam-service-notice{margin:8px 16px;padding:10px 12px;border:1px solid #e7d8b5;border-radius:10px;background:#fff8e8;color:#624c22;font-size:13px;line-height:1.4}
@media(max-width:700px){
  :root{--jam-nav-height:60px;--jam-vh:100dvh}
  *{box-sizing:border-box}
  body{overflow-x:hidden;padding-bottom:calc(var(--jam-nav-height) + env(safe-area-inset-bottom))}
  .main-area{min-width:0!important}
  .topbar{display:flex!important;height:auto!important;padding:10px 14px!important;gap:8px!important;flex-wrap:wrap!important;position:relative!important;min-height:0!important}
  .topbar h1{font-size:22px!important;line-height:1.2!important}
  .topbar .top-actions{margin-left:auto}
  .topbar-left>div>span{font-size:9px!important}
  .topbar button{min-height:40px;min-width:40px}
  .jam-mobile-control{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #dedbd4;border-radius:9px;background:#fff;color:#29256f;padding:8px 10px;font-size:13px;cursor:pointer}
  .jam-filter-toggle{margin-left:0;flex-basis:100%;max-width:100%;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;justify-content:space-between;min-height:34px!important}
  .global-filter-toolbar{display:none!important;width:100%!important;margin:0!important;padding:0!important}
  .jam-filters-open .global-filter-toolbar{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important}
  .global-filter-toolbar>div{min-width:0!important}
  .global-filter-toolbar select,.global-filter-toolbar input{width:100%!important;min-width:0!important;font-size:16px!important;min-height:44px}
  .global-filter-toolbar>p,.global-filter-toolbar>[class*="summary"],.global-filter-toolbar>[class*="context"]{grid-column:1/-1;white-space:normal;font-size:11px!important}
  .jam-mobile-nav{display:flex;position:fixed;inset:auto 0 0;z-index:80;height:calc(var(--jam-nav-height) + env(safe-area-inset-bottom));padding:5px 8px calc(5px + env(safe-area-inset-bottom));gap:3px;background:#fffefc;border-top:1px solid #e3dfd7;box-shadow:0 -2px 12px #00000006}
  .jam-mobile-nav a{display:flex;flex:1;align-items:center;justify-content:center;min-width:0;text-decoration:none;font-size:12px;color:#66616b;border-radius:10px;min-height:44px;font-weight:600}
  .jam-mobile-nav a[aria-current="page"]{background:#eeedf7;color:#29256f}
  .sidebar{z-index:140!important}
  .sidebar-overlay{z-index:130!important}
  body.live-data-ready .overview-curated{padding:14px!important}
  body.live-data-ready .overview-curated .zone-soft-executive.finance-summary{padding:14px!important;border-radius:16px}
  body.live-data-ready .finance-summary-header{display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:wrap;padding-bottom:10px!important}
  body.live-data-ready .finance-summary-header h2{font-size:17px!important;flex:1;margin:0!important}
  body.live-data-ready .finance-summary-header>span{font-size:10px!important}
  body.live-data-ready .finance-summary-table th,body.live-data-ready .finance-summary-table td{padding:8px 6px!important;height:44px!important;font-size:12px!important}
  body.live-data-ready .finance-revenue-row th,body.live-data-ready .finance-revenue-row td{font-size:14px!important}
  body.live-data-ready .finance-summary-table td:nth-child(2){white-space:nowrap}
  body.live-data-ready .finance-summary-table td:last-child{width:30px!important}
  body.live-data-ready .finance-summary-table td button{min-height:32px;min-width:30px}
  body.live-data-ready .finance-chart-card{padding:12px!important}
  body.live-data-ready .finance-pie{width:160px!important}
  .jam-mobile-chat{padding-bottom:0;overflow:hidden}
  .jam-mobile-chat .app-shell,.jam-mobile-chat .main-area{height:var(--jam-vh)!important;min-height:0!important}
  .jam-mobile-chat .main-area{display:flex!important;flex-direction:column;padding-bottom:calc(var(--jam-nav-height) + env(safe-area-inset-bottom))!important;overflow:hidden}
  .jam-mobile-chat .topbar{flex-shrink:0}
  .jam-mobile-chat .assistant-layout{flex:1;min-height:0!important;height:auto!important;overflow:hidden;display:flex!important}
  .jam-mobile-chat .chat-panel{display:flex!important;flex-direction:column;min-width:0;min-height:0!important;height:100%!important;width:100%!important;overflow:hidden}
  .jam-mobile-chat .chat-heading{flex-shrink:0;padding:10px 12px!important;gap:8px!important}
  .jam-mobile-chat .chat-heading button{min-height:40px}
  .jam-mobile-chat .chat-heading .assistant-avatar{display:none}
  .jam-mobile-chat .chat-heading>div{flex:1;min-width:65px}
  .jam-mobile-chat .chat-heading .jam-mobile-new-conversation{margin:0!important;padding:6px 8px!important}
  .jam-mobile-chat .chat-heading strong{font-size:11px;white-space:nowrap}
  .jam-mobile-chat .messages{flex:1!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;padding:14px 12px!important;scroll-padding-bottom:12px}
  .jam-mobile-chat .message{gap:8px!important;max-width:100%!important}
  .jam-mobile-chat .message-content,.jam-mobile-chat .message-bubble{max-width:100%;overflow-wrap:anywhere}
  .jam-mobile-chat .messages table{display:block;overflow-x:auto;max-width:100%}
  .jam-mobile-chat .suggestions{flex-shrink:0;overflow-x:auto;flex-wrap:nowrap!important;justify-content:flex-start!important;gap:6px;padding:6px 12px!important;scrollbar-width:none}
  .jam-mobile-chat .suggestions button{white-space:nowrap;min-height:36px;font-size:12px}
  .jam-mobile-chat .chat-composer{flex-shrink:0;margin:5px 12px 6px!important;width:auto!important;min-height:52px;max-height:140px;align-items:center}
  .jam-mobile-chat .chat-composer textarea{font-size:16px!important;min-height:32px!important;max-height:112px!important;resize:none}
  .jam-mobile-chat .chat-composer button{min-height:40px;min-width:36px}
  .jam-mobile-chat .chat-disclaimer{flex-shrink:0;margin:0 12px 6px!important;font-size:9px!important;text-align:center}
  .jam-mobile-chat .conversation-sidebar{display:none!important}
  .jam-mobile-chat.jam-history-open .conversation-sidebar{display:flex!important;flex-direction:column;position:fixed;inset:0 auto 0 0;width:min(320px,88vw);height:var(--jam-vh)!important;z-index:200;padding:16px!important;overflow-y:auto;box-shadow:8px 0 30px #0002;background:#f7f5f1}
  .jam-history-open .jam-history-close{display:block;min-height:44px;margin-bottom:10px;align-self:flex-end;border:0;background:transparent;color:#29256f}
  .jam-history-open .jam-history-scrim{display:block;position:fixed;inset:0;z-index:190;background:#0005;border:0}
  .jam-keyboard-open{--jam-nav-height:0px}
  .jam-keyboard-open .jam-mobile-nav{display:none}
  .jam-keyboard-open .chat-disclaimer,.jam-keyboard-open .suggestions{display:none!important}
  .jam-service-notice{margin:4px 12px;font-size:12px;flex-shrink:0}
  .live-task-filters{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px!important;padding:12px!important}
  .live-task-filters .live-task-search{grid-column:1/-1}
  .live-task-filters label{min-width:0!important;width:100%!important}
  .live-task-filters input,.live-task-filters select{width:100%!important;min-width:0!important;min-height:44px;font-size:16px!important}
  .live-task-filters>button{min-height:44px}
  .notification-badge-mobile{position:static!important;box-shadow:none!important}
}
