@media (max-width:768px) {
  :root {
    --mobile-v1-safe-top:env(safe-area-inset-top);
    --mobile-v1-safe-bottom:env(safe-area-inset-bottom);
    --mobile-v1-nav-bottom:max(12px,var(--mobile-v1-safe-bottom));
    --mobile-v1-nav-height:56px;
    --mobile-v1-content-bottom:calc(var(--mobile-v1-nav-height) + var(--mobile-v1-nav-bottom) + 16px);
    --mobile-v1-header-height:calc(56px + var(--mobile-v1-safe-top));
  }
  html, body { width:100%; max-width:100%; overflow-x:hidden!important; }
  body:not(.logged-out) { background:var(--si-bg); }
  body:not(.logged-out)>.rail, body:not(.logged-out)>.crm-status-bar { display:none!important; }
  body:not(.logged-out)>main>#notice:empty { display:none; }
  body:not(.logged-out)>main, body:not(.logged-out).rail-expanded>main { box-sizing:border-box; width:100%; margin:0; padding:var(--mobile-v1-header-height) 0 var(--mobile-v1-content-bottom); overflow-x:clip; }
  body:not(.logged-out) .app-header, body:not(.logged-out).rail-expanded .app-header { left:0; right:0; width:100%; height:var(--mobile-v1-header-height); min-height:var(--mobile-v1-header-height); padding:calc(var(--mobile-v1-safe-top) + 8px) 16px 8px; border:0; background:var(--si-bg); }
  body:not(.logged-out) .app-header>.session { display:none!important; }
  body:not(.logged-out) .workspace { width:100%; max-width:100%; min-width:0; }

  html[data-crm-theme] body:not(.logged-out)>.mobile-app-nav {
    position:fixed; z-index:1000; right:auto; bottom:var(--mobile-v1-nav-bottom); left:50%; display:grid;
    box-sizing:border-box; width:264px; height:var(--mobile-v1-nav-height); min-height:var(--mobile-v1-nav-height); grid-template-columns:repeat(3,84px); gap:2px;
    padding:4px; border:0; border-radius:20px; background:rgba(29,29,27,.92);
    box-shadow:0 10px 30px rgba(0,0,0,.25); transform:translateX(-50%); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  }
  html[data-crm-theme] body:not(.logged-out)>.mobile-app-nav button {
    position:relative; display:flex; width:84px; min-width:84px; height:48px; min-height:48px; align-items:center; justify-content:center;
    flex-direction:column; gap:3px; padding:0; border:0; border-radius:16px; background:transparent; color:#b9b7b2;
    font-size:11px; font-weight:500; line-height:1; overflow:visible;
  }
  .mobile-app-nav button svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
  html[data-crm-theme] body:not(.logged-out)>.mobile-app-nav button.active { background:#fff; color:#1d1d1b; }
  html[data-crm-theme] body:not(.logged-out)>.mobile-app-nav button:not(.active),
  html[data-crm-theme] body:not(.logged-out)>.mobile-app-nav button:not(.active) svg { color:#b9b7b2; filter:none; }
  html[data-crm-theme] body:not(.logged-out)>.mobile-app-nav button.active svg { color:#c4501a; filter:none; }

  /* Compact screen headers. */
  body.clients-page-active .app-header, body.requests-page-active .app-header { display:block; height:var(--mobile-v1-header-height); min-height:var(--mobile-v1-header-height); padding:calc(var(--mobile-v1-safe-top) + 8px) 16px 8px; }
  html[data-crm-theme] body.clients-page-active .app-header,
  html[data-crm-theme] body.clients-page-active .app-header>.board-topbar { border-bottom:0; background:var(--si-bg)!important; }
  html[data-crm-theme] body.requests-page-active .app-header,
  html[data-crm-theme] body.requests-page-active .app-header>.request-toolbar { border-bottom:0; background:var(--request-bg)!important; }
  body.clients-page-active .app-header>.board-topbar, body.requests-page-active .app-header>.request-toolbar {
    display:grid; width:100%; height:36px; min-height:36px; grid-template-columns:minmax(0,1fr) 36px 36px auto; grid-template-rows:36px; gap:8px; padding:0; border:0;
  }
  body.requests-page-active .app-header>.request-toolbar { box-sizing:border-box; padding-inline:16px!important; background:var(--si-bg)!important; }
  body.clients-page-active .board-title, body.requests-page-active .request-toolbar h1 { grid-column:1; align-self:center; margin:0; padding:0; font-size:22px; line-height:28px; font-weight:650; background:transparent; }
  html[data-crm-theme] body.clients-page-active .clients-search,
  html[data-crm-theme] body.requests-page-active .request-search { grid-column:2; grid-row:1; width:36px!important; min-width:36px!important; max-width:36px!important; height:36px; min-height:36px; margin:0; overflow:hidden; border:1px solid var(--si-line); border-radius:10px; background:var(--si-surface); }
  body.clients-page-active .clients-search input, body.requests-page-active .request-search input { position:fixed; z-index:1200; top:calc(var(--mobile-v1-safe-top) + 8px); right:60px; left:16px; width:auto; height:36px; opacity:0; pointer-events:none; transform:translateY(-8px); transition:opacity .16s ease,transform .16s ease; }
  body.mobile-search-open .clients-search input, body.mobile-search-open .request-search input { opacity:1; pointer-events:auto; transform:none; }
  body.clients-page-active .clients-search::after, body.requests-page-active .request-search svg { width:18px; height:18px; margin:auto; }
  body.clients-page-active .clients-search::after { content:"⌕"; display:grid; place-items:center; color:var(--si-ink-2); font-size:22px; }
  .mobile-filter-trigger { grid-column:3; grid-row:1; display:grid; width:36px; height:36px; place-items:center; padding:0; border:1px solid var(--si-line); border-radius:10px; background:var(--si-surface); color:var(--si-ink-2); }
  .mobile-filter-trigger svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; }
  body.clients-page-active #newLead, body.requests-page-active .request-new { position:static; grid-column:4; grid-row:1; min-width:0; height:36px; min-height:36px; margin:0; padding:0 12px; border-radius:10px; background:#1d1d1b; color:#fff; font-size:13px; font-weight:650; white-space:nowrap; }
  body.clients-page-active #newLead span { display:inline; }
  body.clients-page-active .client-scope-segment, body.clients-page-active .client-stage-segment, body.clients-page-active .client-filters,
  body.clients-page-active #noNextFilter, body.clients-page-active #newReplyLabel, body.clients-page-active .board-topbar-spacer,
  body.requests-page-active .request-class-segment, body.requests-page-active .request-scope, body.requests-page-active .request-filters,
  body.requests-page-active .request-toolbar-spacer, body.requests-page-active .request-overdue-count { display:none!important; }
  html[data-crm-theme] body.clients-page-active:not(.logged-out)>main,
  html[data-crm-theme] body.clients-page-active:not(.logged-out).rail-expanded>main,
  html[data-crm-theme] body.requests-page-active:not(.logged-out)>main { padding-top:var(--mobile-v1-header-height)!important; }

  /* Shared one-column board pager. */
  .mobile-board-stage-nav { display:flex!important; width:100%; height:48px; align-items:center; gap:6px; padding:10px 16px; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; scroll-padding-inline:16px; }
  .mobile-board-stage-nav::-webkit-scrollbar { display:none; }
  .mobile-board-stage-nav button { flex:0 0 auto; min-width:max-content; height:28px; min-height:28px; padding:0 10px; border:1px solid var(--si-line-soft); border-radius:999px; background:var(--si-surface); color:var(--si-ink-2); font-size:12px; font-weight:500; }
  .mobile-board-stage-nav button.active { border-color:#1d1d1b!important; background:#1d1d1b!important; color:#fff!important; box-shadow:none!important; }
  .mobile-board-stage-nav button b { margin-left:5px; color:inherit; font-size:11px; font-weight:500; opacity:.65; }
  .mobile-board-pager { display:flex; min-height:40px; align-items:center; justify-content:space-between; gap:12px; padding:0 16px 8px; }
  .mobile-board-pager>span { display:flex; min-width:0; align-items:center; gap:8px; font-size:17px; font-weight:650; }
  .mobile-board-pager>span i { width:8px; height:8px; flex:none; border-radius:50%; background:var(--mobile-stage-color,#c4501a); }
  .mobile-board-pager>span small { color:var(--si-ink-faint); font-size:12px; font-weight:500; }
  .mobile-board-dots { display:flex; align-items:center; gap:5px; }
  .mobile-board-pager .mobile-board-dots button { display:grid; width:18px; min-width:18px; height:24px; min-height:24px; place-items:center; padding:0; border:0; background:transparent; cursor:pointer; }
  .mobile-board-pager .mobile-board-dots button::before { content:""; width:6px; height:6px; border-radius:3px; background:#d6d3ce; transition:width .16s ease,background .16s ease; }
  .mobile-board-pager .mobile-board-dots button.active::before { width:18px; background:#1d1d1b; }
  html[data-crm-theme="dark"] .mobile-board-pager .mobile-board-dots button::before { background:#5b5e63; }
  html[data-crm-theme="dark"] .mobile-board-pager .mobile-board-dots button.active::before { background:#eceae6; }

  body.clients-page-active .workspace.board, body.requests-page-active .workspace.page-requests { display:block; height:calc(100dvh - var(--mobile-v1-header-height)); margin-top:0!important; padding:0; overflow:hidden; }
  body.clients-page-active .mobile-clients-head { display:none!important; }
  body.clients-page-active .workspace.board .mobile-stage-nav { position:static!important; display:flex!important; width:100%; height:48px; min-height:48px; padding:10px 16px; border:0; background:var(--si-bg); }
  body.clients-page-active .mobile-stage-nav .mobile-attention-entry { display:none; }
  body.clients-page-active .workspace.board .board-columns, body.requests-page-active .request-columns {
    display:grid!important; width:100%; max-width:100%; height:calc(100dvh - var(--mobile-v1-header-height) - 88px);
    grid-auto-flow:column; grid-auto-columns:calc(100% - 10px); grid-template-columns:none!important; gap:0; padding:0!important;
    overflow-x:auto!important; overflow-y:hidden!important; scroll-snap-type:x mandatory; scroll-padding-inline:0; overscroll-behavior-x:contain; scrollbar-width:none;
    touch-action:pan-x pan-y; -webkit-overflow-scrolling:touch;
  }
  body.clients-page-active #workspace:not([data-mobile-board-ready="clients"]) .board-columns,
  body.requests-page-active #workspace:not([data-mobile-board-ready="requests"]) .request-columns { visibility:hidden; }
  body.clients-page-active .board-columns::-webkit-scrollbar, body.requests-page-active .request-columns::-webkit-scrollbar { display:none; }
  body.clients-page-active .workspace.board .column, body.requests-page-active .request-column {
    box-sizing:border-box; width:auto; min-width:0; height:100%; min-height:0; margin:0; padding:12px 12px var(--mobile-v1-content-bottom)!important; overflow-y:auto; overflow-x:visible;
    border:0; border-radius:0; background:transparent; scroll-snap-align:start; scroll-snap-stop:always;
    touch-action:pan-x pan-y; -webkit-overflow-scrolling:touch;
  }
  html[data-crm-theme] body.clients-page-active .workspace.board .column {
    padding:12px 12px var(--mobile-v1-content-bottom)!important;
    overflow-x:visible;
    overflow-y:auto;
  }
  html[data-crm-theme] body.clients-page-active .workspace.board .column>h3,
  html[data-crm-theme] body.requests-page-active .request-column>header { display:none!important; }
  body.clients-page-active .workspace.board .column { padding-right:12px!important; }
  body.requests-page-active .requests-screen { display:block; height:100%; }
  body.requests-page-active .request-toolbar { position:fixed; z-index:20; top:calc(var(--mobile-v1-safe-top) + 8px); right:0; left:0; }
  body.requests-page-active .request-columns { height:calc(100dvh - var(--mobile-v1-header-height) - 88px); }
  body.requests-page-active .request-column { padding:0!important; overflow:hidden; }
  body.requests-page-active .request-column-scroll { box-sizing:border-box; height:100%; padding:16px 16px var(--mobile-v1-content-bottom)!important; overflow-y:auto; touch-action:pan-x pan-y; -webkit-overflow-scrolling:touch; }

  /* Compact cards follow the approved mobile hierarchy. */
  body.clients-page-active .card { margin:0 0 6px; border-radius:6px; }
  body.requests-page-active .request-board-card { margin:0 0 10px; border-radius:6px; }
  body.clients-page-active .card, body.requests-page-active .request-board-card { touch-action:manipulation; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; }
  body.requests-page-active .request-board-card { flex:0 0 auto; min-height:auto; }
  body.requests-page-active .request-card-body { gap:7px; padding:12px 14px 8px; }
  body.requests-page-active .request-card-v23-body { gap:5px; padding:10px 12px 9px; }
  body.requests-page-active .request-card-v23-row { gap:8px; }
  body.requests-page-active .request-card-route { font-size:13.5px; }
  body.requests-page-active .request-card-v23-footer { height:30px; padding-inline:12px; }
  body.requests-page-active .request-card-body header strong, body.clients-page-active .card-heading button { font-size:14.5px; font-weight:650; }
  body.requests-page-active .request-route-card { display:flex; min-width:0; align-items:center; gap:5px; padding:0; overflow:hidden; background:transparent; font-size:13px; white-space:nowrap; }
  body.requests-page-active .request-route-point { display:inline-flex; min-width:0; grid-template-columns:none; gap:0; }
  body.requests-page-active .request-route-point i, body.requests-page-active .request-route-point.start::after { display:none; }
  body.requests-page-active .request-route-point.start::after { content:none; }
  body.requests-page-active .request-route-point.start>span::after { content:" →"; margin-left:4px; color:var(--request-muted); }
  body.requests-page-active .request-route-point>span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  body.requests-page-active .request-route-point em { display:none; }
  body.requests-page-active .request-route-card small { flex:none; padding:0; font-size:11px; white-space:nowrap; }
  body.requests-page-active .request-card-summary { display:flex; min-width:0; align-items:center; gap:8px; }
  body.requests-page-active .request-card-facts { min-width:0; flex:1; flex-wrap:nowrap; overflow:hidden; }
  body.requests-page-active .request-card-facts>* { overflow:hidden; padding:0; border-radius:0; text-overflow:ellipsis; white-space:nowrap; box-shadow:none; }
  body.requests-page-active .request-card-facts>*+*::before { content:"·"; margin-right:5px; color:var(--request-muted); }
  body.requests-page-active .request-card-facts>.is-vehicle { flex:1; }
  body.requests-page-active .request-card-values { flex:none; white-space:nowrap; }
  body.requests-page-active .crm-v3-card-footer { padding:8px 14px; }
  body.requests-page-active .crm-v3-card-footer .crm-v3-owner,
  body.clients-page-active .crm-v3-card-footer .crm-v3-owner { min-width:max-content; max-width:none; flex:1; overflow:visible; text-overflow:clip; white-space:nowrap; }
  body.clients-page-active .card { padding:0; overflow:hidden; }
  body.clients-page-active .card.priority-A { border-color:#e9b79c; }
  body.clients-page-active .client-card-body { gap:6px; padding:10px 11px; }
  body.clients-page-active .client-current-state { min-height:0; padding:0; font-size:12px; line-height:16px; }
  body.clients-page-active .client-next-slot { min-height:52px; padding-block:8px; }
  body.clients-page-active .client-next-icon svg { width:22px; height:22px; }
  body.clients-page-active .client-card-request-outcomes { display:none; }

  /* Full-height bottom sheets. */
  body.client-modal-open>.mobile-app-nav, body:has(.request-drawer.open)>.mobile-app-nav { display:none!important; }
  html[data-crm-theme] .client-modal, html[data-crm-theme] .request-drawer {
    inset:0!important; width:100vw!important; max-width:none!important; height:100dvh!important; max-height:none!important; border:0!important; border-radius:18px 18px 0 0!important;
    opacity:1; transform:translateY(102%)!important; transform-origin:center bottom; transition:transform .24s cubic-bezier(.2,.8,.2,1)!important;
  }
  html[data-crm-theme] .client-modal.open, html[data-crm-theme] .request-drawer.open { transform:translateY(0)!important; }
  .client-modal::before, .request-drawer::before { content:""; position:absolute; z-index:20; top:7px; left:50%; width:38px; height:4px; border-radius:2px; background:var(--si-line-strong); transform:translateX(-50%); }
  .client-modal .drawer-head, .request-drawer-head { top:12px!important; right:8px!important; }
  .client-modal .client-modal-body, .client-modal .client-v7-body, .client-modal .client-v7-main { grid-template-columns:1fr!important; }
  .client-modal .client-v7-side { position:static!important; width:auto!important; border-left:0!important; border-top:1px solid var(--si-line); }
  .client-modal .client-tabs { max-width:100%; margin-inline:12px; overflow-x:auto; scroll-snap-type:x proximity; }
  .client-modal .client-tabs button { min-width:104px; scroll-snap-align:start; }
  #requestDrawerBody, #drawerBody { height:100dvh; overflow-y:auto; overscroll-behavior:contain; padding-bottom:calc(96px + env(safe-area-inset-bottom)); }
  .request-sheet-content { display:block!important; padding:0 12px calc(100px + env(safe-area-inset-bottom))!important; }
  .request-v2-body { width:100%; min-width:0; }
  .request-v2-body > :is(main,aside), .request-v2-section, .request-v2-price-grid { min-width:0; max-width:100%; }
  .request-sheet-side { position:static!important; }
  .request-drawer.open .request-actions { position:fixed!important; z-index:12; right:12px; bottom:env(safe-area-inset-bottom); left:12px; min-height:0; padding:10px; border:1px solid var(--si-line); border-radius:14px; background:var(--request-surface)!important; box-shadow:0 -8px 20px rgba(0,0,0,.08); }
  .request-drawer.open .request-v2-section.request-actions { right:0; bottom:0; left:0; padding:0!important; border-width:1px 0 0; border-radius:0; }
  .request-form-dialog, dialog:not(.request-form-dialog) { inset:0!important; width:100vw!important; max-width:none!important; height:100dvh!important; max-height:none!important; margin:0!important; border-radius:18px 18px 0 0!important; }
  dialog[open] { animation:mobile-sheet-in .24s cubic-bezier(.2,.8,.2,1); }
  .request-form-dialog form, dialog:not(.request-form-dialog) form { height:100dvh!important; max-height:none!important; }
  .request-form-grid, .request-price-fields { grid-template-columns:1fr!important; }

  /* Mobile dashboard. */
  body.overview-page-active .app-header { display:none!important; }
  html[data-crm-theme] body.overview-page-active:not(.logged-out)>main,
  html[data-crm-theme] body.overview-page-active:not(.logged-out).rail-expanded>main { padding-top:0!important; }
  html[data-crm-theme] .workspace.page-overview { margin-top:0!important; padding:0 0 var(--mobile-v1-content-bottom)!important; }
  .mobile-dashboard { min-height:100dvh; padding:calc(var(--mobile-v1-safe-top) + 8px) 0 var(--mobile-v1-content-bottom); }
  .mobile-dashboard-head { display:flex; height:44px; align-items:center; gap:10px; padding:0 16px; }
  .mobile-dashboard-head h1 { flex:1; margin:0; font-size:22px; line-height:28px; font-weight:650; }
  .mobile-user-trigger { display:grid; width:36px; height:36px; place-items:center; border:1px solid var(--si-line); border-radius:10px; background:var(--si-surface); color:var(--si-ink); font-size:13px; font-weight:650; }
  .mobile-dashboard-period { display:grid; height:36px; grid-template-columns:repeat(3,1fr); margin:12px 16px 0; padding:3px; border-radius:10px; background:var(--si-surface-2); }
  .mobile-dashboard-period button { border:0; border-radius:8px; background:transparent; color:var(--si-ink-2); font-size:13px; font-weight:500; }
  .mobile-dashboard-period button.active { background:var(--si-surface); color:var(--si-ink); box-shadow:0 1px 2px rgba(0,0,0,.08); }
  .mobile-dashboard-kpis { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:14px 16px 0; }
  .mobile-dashboard-kpis article { min-width:0; padding:12px 14px; border:1px solid var(--si-line); border-radius:14px; background:var(--si-surface); box-shadow:var(--si-shadow-card); }
  .mobile-dashboard-kpis small { display:block; color:var(--si-ink-faint); font-size:12px; }
  .mobile-dashboard-kpis strong { display:block; margin-top:2px; font-size:30px; line-height:34px; font-weight:650; }
  .mobile-dashboard-kpis em { display:block; overflow:hidden; color:var(--si-ink-faint); font-size:12px; font-style:normal; font-weight:500; text-overflow:ellipsis; white-space:nowrap; }
  .mobile-dashboard-kpis em.is-bad { color:var(--state-bad); } .mobile-dashboard-kpis em.is-ok { color:var(--state-ok); }
  .mobile-dashboard-attention>header { display:flex; align-items:center; justify-content:space-between; padding:18px 16px 8px; }
  .mobile-dashboard-attention h2 { margin:0; font-size:17px; font-weight:650; }
  .mobile-dashboard-attention>header button { min-height:44px; padding:0; border:0; background:transparent; color:var(--si-ink-2); font-size:13px; }
  .mobile-dashboard-attention>div { margin:0 16px; overflow:hidden; border:1px solid var(--si-line); border-radius:14px; background:var(--si-surface); box-shadow:var(--si-shadow-card); }
  .mobile-dashboard-attention>div>button { display:grid; width:100%; min-height:55px; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:10px; padding:9px 14px; border:0; border-bottom:1px solid var(--si-line-soft); background:transparent; color:var(--si-ink); text-align:left; }
  .mobile-dashboard-attention>div>button:last-child { border-bottom:0; }
  .mobile-dashboard-attention>div>button>span:nth-child(2) { display:grid; min-width:0; }
  .mobile-dashboard-attention b, .mobile-dashboard-attention small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .mobile-dashboard-attention small { color:var(--si-ink-faint); font-size:12px; }
  .mobile-attention-icon { display:grid; width:32px; height:32px; place-items:center; border-radius:9px; background:var(--si-surface-2); color:var(--si-ink-2); }
  .mobile-attention-icon.tone-danger { background:var(--si-danger-soft); color:var(--state-bad); }
  .mobile-attention-icon.tone-warning { background:var(--si-warn-soft); color:var(--state-warn-text); }
  .mobile-attention-icon.tone-success { background:var(--si-ok-soft); color:var(--state-ok); }
  .mobile-attention-icon svg { width:18px; height:18px; fill:none; stroke:currentColor; }

  .mobile-user-sheet { position:fixed; z-index:1600; right:12px; bottom:calc(var(--mobile-v1-content-bottom) + 8px); left:12px; display:grid; gap:4px; padding:10px; border:1px solid var(--si-line); border-radius:18px; background:var(--si-surface); box-shadow:var(--si-shadow-pop); }
  .mobile-user-sheet[hidden] { display:none!important; }
  .mobile-user-sheet button { min-height:44px; padding:0 12px; border:0; border-radius:10px; background:transparent; color:var(--si-ink); text-align:left; }
  .mobile-user-sheet button:hover { background:var(--si-surface-2); }
  .mobile-filter-sheet { position:fixed; z-index:1500; right:0; bottom:0; left:0; display:grid; gap:14px; padding:18px 16px calc(24px + env(safe-area-inset-bottom)); border:1px solid var(--si-line); border-radius:20px 20px 0 0; background:var(--si-surface); box-shadow:0 -16px 36px rgba(0,0,0,.18); }
  .mobile-filter-sheet[hidden] { display:none!important; }
  .mobile-filter-sheet header { display:flex; align-items:center; justify-content:space-between; }
  .mobile-filter-sheet h2 { margin:0; font-size:18px; }
  .mobile-filter-sheet [data-mobile-filter-close] { width:44px; height:44px; border:0; background:transparent; color:var(--si-ink); font-size:24px; }
  .mobile-filter-group { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:3px; min-height:40px; padding:4px; border-radius:10px; background:var(--si-surface-2); }
  .mobile-filter-group button { min-height:32px; border:0; border-radius:8px; background:transparent; color:var(--si-ink-2); font-weight:500; }
  .mobile-filter-group button.active { background:var(--si-surface); color:var(--si-ink); box-shadow:0 1px 2px rgba(0,0,0,.08); }

  @media (prefers-reduced-motion:reduce) {
    *, *::before, *::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; }
    html[data-crm-theme] .client-modal,
    html[data-crm-theme] .request-drawer { transition:none!important; }
  }
  @keyframes mobile-sheet-in { from { transform:translateY(100%); } to { transform:translateY(0); } }
}

@media (min-width:769px) {
  .mobile-app-nav, .mobile-board-pager, .mobile-user-sheet { display:none!important; }
}

@media (max-width:768px) {
  html[data-crm-theme] body.clients-page-active .workspace.board .card.crm-v3-card {
    width:100%;
    height:auto;
    min-height:0;
    padding:0;
    overflow:hidden;
    border-radius:6px;
  }
  html[data-crm-theme] body.clients-page-active .workspace.board .client-card-body {
    height:auto;
    min-height:0;
    grid-template-rows:auto;
    gap:6px;
    padding:10px 11px;
  }
  html[data-crm-theme] body.clients-page-active .workspace.board .client-current-state {
    height:auto;
    min-height:0;
    padding:0;
    font-size:12px;
    line-height:16px;
  }
}
@media(max-width:700px){
  .request-form-dialog.request-price-change-dialog{inset:auto!important;width:min(360px,calc(100vw - 24px))!important;height:auto!important;max-height:calc(100dvh - 24px)!important;margin:auto!important;border-radius:10px!important}
  .request-form-dialog.request-price-change-dialog form{height:auto!important;max-height:calc(100dvh - 24px)!important}
}
