/* Mobile workspace: quiet surfaces, consistent tap targets and safe areas. */
@media (max-width:760px), (max-width:1000px) and (max-height:540px) and (orientation:landscape) {
  body.workspace-unified.mw-enabled { --mw-bottom:calc(76px + env(safe-area-inset-bottom,0px)); }
  body.workspace-unified.mw-enabled .mw-bottom-nav {
    left:8px;right:8px;bottom:env(safe-area-inset-bottom,0px);
    height:64px;padding:3px 6px;gap:2px;
    background:#fff; border:1px solid #dce5e7;border-radius:20px;
    box-shadow:0 6px 24px #263b4b12;
  }
  body.workspace-unified.mw-enabled .mw-bottom-item {
    min-height:54px;gap:2px;padding:4px 3px;border-radius:14px;
    color:#536677;font-size:11px;line-height:1.2;font-weight:600;
  }
  body.workspace-unified.mw-enabled .mw-bottom-item .mw-icon {width:22px;height:22px;}
  body.workspace-unified.mw-enabled .mw-bottom-item.is-current {color:#173f36;background:#e5f0eb;}
  body.workspace-unified.mw-enabled .mw-bottom-item.is-current::before {display:none;}
  body.workspace-unified.mw-enabled .mw-bottom-item .nav-count {
    position:absolute;top:2px;left:calc(50% + 8px);right:auto;margin:0;
    display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;
    border:2px solid #fff;border-radius:999px;background:#d33834;color:#fff;
    font-size:10px;font-weight:700;line-height:1;
  }
  body.workspace-unified.mw-enabled .mw-bottom-item .nav-count[hidden]{display:none!important;}
  body.workspace-unified.mw-enabled .mw-menu-sheet {background:#f4f7f8;color:#25333d;border-color:#dce5e7;}
  body.workspace-unified.mw-enabled .mw-sheet-header h2 {color:#223a46;}
  body.workspace-unified.mw-enabled .mw-menu-group h3 {color:#536777;}
  body.workspace-unified.mw-enabled .mw-menu-item {background:#fff;color:#334d5b;border-color:#dfe7e9;}
  body.workspace-unified.mw-enabled .mw-menu-item-icon {background:#edf4f3;color:#305f55;}
  body.workspace-unified.mw-enabled .mw-menu-item.is-current {background:#e5f1eb;color:#164739;border-color:#a7cabe;}
  body.workspace-unified.mw-enabled .mw-sheet-account {background:#fff;border-color:#dfe7e9;}
  body.workspace-unified.mw-enabled .mw-sheet-account strong {color:#27483b;}
  body.workspace-unified.mw-enabled .mw-sheet-account small {color:#5e7165;}
  body.workspace-unified.mw-enabled .mw-sheet-account>button {background:#f4f7f6;color:#465e52;border-color:#dce5df;}
  body.workspace-unified.is-im-page .content {height:calc(100dvh - 76px - env(safe-area-inset-bottom,0px));}
  body.workspace-unified.im-chat-open .content {height:100dvh;}
  [data-workspace-theme=dark] body.workspace-unified.mw-enabled {--mw-ink:#edf2f2;--mw-line:#44515a;}
  [data-workspace-theme=dark] body.workspace-unified.mw-enabled .mw-bottom-nav {background:#222b31;border-color:#48565e;box-shadow:0 6px 24px #0006;}
  [data-workspace-theme=dark] body.workspace-unified.mw-enabled .mw-bottom-item {color:#c1ccd1;}
  [data-workspace-theme=dark] body.workspace-unified.mw-enabled .mw-bottom-item.is-current {background:#354c47;color:#e7faf0;}
  [data-workspace-theme=dark] body.workspace-unified.mw-enabled .mw-bottom-item .nav-count {border-color:#222b31;}
  [data-workspace-theme=dark] body.workspace-unified.mw-enabled .mw-menu-sheet {background:#1c252a;color:#e8eff1;border-color:#48565e;}
  [data-workspace-theme=dark] body.workspace-unified.mw-enabled .mw-sheet-header h2 {color:#eef6f6;}
  [data-workspace-theme=dark] body.workspace-unified.mw-enabled .mw-sheet-header>button {background:#34434a;color:#e6efef;border-color:#52636a;}
  [data-workspace-theme=dark] body.workspace-unified.mw-enabled .mw-menu-group h3 {color:#c3d0d5;}
  [data-workspace-theme=dark] body.workspace-unified.mw-enabled .mw-menu-item {background:#28343a;color:#e4edef;border-color:#4c5c63;}
  [data-workspace-theme=dark] body.workspace-unified.mw-enabled .mw-menu-item-icon {background:#344943;color:#d4f0df;}
  [data-workspace-theme=dark] body.workspace-unified.mw-enabled .mw-menu-item.is-current {background:#354e45;color:#edfaf2;border-color:#80aa96;}
  [data-workspace-theme=dark] body.workspace-unified.mw-enabled .mw-menu-search>label {background:#28343a;color:#c2cfd1;border-color:#506068;}
  [data-workspace-theme=dark] body.workspace-unified.mw-enabled .mw-menu-search input {color:#f0f5f5;}
  [data-workspace-theme=dark] body.workspace-unified.mw-enabled .mw-sheet-account {background:#222d32;border-color:#48565e;}
  [data-workspace-theme=dark] body.workspace-unified.mw-enabled .mw-sheet-account strong {color:#edf5f1;}
  [data-workspace-theme=dark] body.workspace-unified.mw-enabled .mw-sheet-account small {color:#c2d0c8;}
  [data-workspace-theme=dark] body.workspace-unified.mw-enabled .mw-sheet-account>button {background:#33433d;color:#e3eee8;border-color:#53695d;}
}
