/* V250.46: task navigation and a compact desktop workspace. */
#workspace-bar, #workspace-palette-empty { display:none; }
@media screen and (min-width:1025px) and (pointer:fine) {
  body.workspace-desktop { background:#edf0f3; }
  #workspace-bar {
    display:flex;align-items:center;gap:16px;flex:0 0 50px;min-width:0;
    padding:0 16px;background:#fff;border-bottom:1px solid #e1e5e9;color:#27303c;
  }
  #workspace-bar .workspace-brand { display:flex;align-items:center;gap:8px;flex-shrink:0; }
  #workspace-bar .workspace-brand img { width:30px;height:30px;object-fit:contain; }
  #workspace-bar .workspace-brand strong { font-size:15px;color:#28353f;letter-spacing:0; }
  #workspace-bar .workspace-primary, #workspace-bar .workspace-file { display:flex;align-items:center;gap:4px; }
  #workspace-bar button {
    appearance:none;font-family:inherit;font-size:12px;font-weight:600;line-height:1.3;
    min-height:34px;padding:6px 12px;border:1px solid transparent;border-radius:6px;
    background:transparent;color:#37424f;white-space:nowrap;cursor:pointer;
  }
  #workspace-bar button:hover { background:#eef2f6; }
  #workspace-bar button:focus-visible, #palette button:focus-visible { outline:2px solid #526fe5;outline-offset:2px; }
  #workspace-bar .workspace-primary .active { background:#e8edff;color:#294dbb;border-color:#c4d0fb; }
  #workspace-bar button:disabled { opacity:.35;cursor:default; }
  #workspace-bar #workspace-undo, #workspace-bar #workspace-redo { width:34px;padding:0;font-size:21px; }
  #workspace-bar #workspace-undo { margin-left:8px; }
  #workspace-bar #workspace-save { background:#256d59;color:white;padding-inline:16px; }
  #workspace-bar #workspace-save:hover { background:#1c5948; }
  #workspace-bar .workspace-tabs { display:flex;align-self:stretch;align-items:stretch;gap:4px;margin-left:auto; }
  #workspace-bar .workspace-tabs button { border-radius:0;border-bottom:3px solid transparent;padding:5px 14px 2px; }
  #workspace-bar .workspace-tabs [aria-selected="true"] { color:#345bd0;border-bottom-color:#4c6ddd;background:#f5f7ff; }
  body.workspace-desktop #toolbar,
  body.workspace-desktop #toolbar.toolbar-overflow {
    height:50px!important;min-height:50px!important;max-height:50px!important;
    margin:0!important;padding:5px 12px!important;gap:10px!important;
    border:0!important;border-bottom:1px solid #dce2e8!important;border-radius:0!important;
    background:#f9fafb!important;box-shadow:none!important;flex-wrap:nowrap!important;
    overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin;
  }
  body.workspace-desktop #toolbar .tg {
    min-height:34px!important;
    gap:4px!important;padding:0 10px 0 0!important;border:0!important;border-right:1px solid #e0e5ec!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  }
  body.workspace-desktop #toolbar .tg-label { font-size:11px!important;padding:4px 6px!important;color:#687586!important;min-height:32px!important;border-radius:4px!important; }
  body.workspace-desktop #toolbar .tb, body.workspace-desktop #toolbar .pi,
  body.workspace-desktop #toolbar-settings-btn {
    min-height:32px!important;height:32px!important;border-radius:5px!important;
    background:#fff!important;border-color:#dce2e8!important;box-shadow:none!important;font-size:12px!important;font-weight:600!important;
  }
  body.workspace-desktop #toolbar .tb { padding:4px 9px!important; }
  body.workspace-desktop #toolbar .tb.active { background:#e8edff!important;color:#294dbb!important;border-color:#bacaf6!important; }
  body.workspace-desktop #toolbar .workspace-group-hidden { display:none!important; }
  body.workspace-desktop #toolbar #tb-logo,
  body.workspace-desktop #toolbar > .tg:has(> #pal-toggle) { display:none!important; }
  body.workspace-desktop:not([data-workspace-mode="all"]) #toolbar :is(#bt-select,#bt-pipe,#bt-undo,#bt-redo) { display:none!important; }
  body.workspace-desktop #toolbar .tb-title-actions { background:transparent!important;box-shadow:none!important; }
  body.workspace-desktop #main { gap:8px!important;padding:8px!important;background:#edf0f3!important; }
  body.workspace-desktop #cc { border:1px solid #dce1e5!important;border-radius:6px!important;box-shadow:none!important; }
  body.workspace-desktop #palette.pal-open {
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:6px;
    width:236px!important;min-width:236px!important;padding:8px!important;margin:0!important;
    background:#fff!important;border:1px solid #dce2e8!important;border-radius:6px!important;box-shadow:none!important;
    scrollbar-width:thin;
  }
  body.workspace-desktop #palette > :not(.pitem) { grid-column:1 / -1; }
  body.workspace-desktop #palette .pal-head {
    top:-8px;background:#fff!important;margin:-8px -8px 0!important;padding:12px 8px 8px!important;
    border-radius:0!important;border-bottom:1px solid #e0e5ec;
  }
  body.workspace-desktop #palette .pal-title { font-size:13px!important;margin-bottom:8px; }
  body.workspace-desktop #palette .pal-title::after { display:none!important; }
  body.workspace-desktop #palette #pal-search { height:34px!important;min-height:34px!important;border-radius:5px!important;font-size:12px!important; }
  body.workspace-desktop #palette .pal-tabs { display:flex;flex-wrap:wrap;gap:4px;margin:8px 0 0;padding:0;overflow:visible; }
  body.workspace-desktop #palette .pal-tab {
    flex:0 1 auto;font-size:11px;line-height:1.2;min-height:28px;padding:5px 7px;
    border-radius:4px;background:#f6f8fa;color:#536172;border:1px solid #e4e8ee;box-shadow:none;
  }
  body.workspace-desktop #palette .pal-tab.active { background:#e7edff;color:#294dbb;border-color:#bfcef9; }
  body.workspace-desktop #palette .pcat {
    min-height:27px!important;padding:6px 0 2px!important;margin:4px 0 0!important;
    border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
    color:#647284!important;font-size:11px!important;font-weight:600!important;
  }
  body.workspace-desktop #palette .pitem {
    min-height:94px!important;min-width:0;margin:0!important;padding:6px 4px!important;gap:4px!important;
    border-radius:6px!important;border-color:#e2e7ed!important;background:#fff!important;box-shadow:none!important;
  }
  body.workspace-desktop #palette .pitem:hover { transform:none!important;border-color:#91a6e9!important;background:#f4f7ff!important; }
  body.workspace-desktop #palette .pitem.sel { border-color:#6d84d5!important;background:#ecf1ff!important;box-shadow:inset 0 0 0 1px #6d84d5!important; }
  body.workspace-desktop #palette .pitem svg {
    height:54px!important;width:80px!important;flex:0 0 54px!important;padding:2px!important;
    border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  }
  body.workspace-desktop #palette .pitem span { font-size:11px!important;min-height:27px!important;line-height:1.25;overflow-wrap:anywhere; }
  body.workspace-desktop #palette.workspace-searching .pal-tab-hidden:not(.pal-filter-hidden):not(.pal-hidden) { display:flex!important; }
  body.workspace-desktop #workspace-palette-empty:not([hidden]) { display:block;padding:18px 4px;color:#647284;font-size:12px;text-align:center; }
  body.workspace-desktop #props {
    width:232px!important;margin:0!important;padding:12px!important;background:#fff!important;
    border:1px solid #dce2e8!important;border-radius:6px!important;box-shadow:none!important;
  }
  body.workspace-desktop.props-collapsed #props { width:42px!important;min-width:42px!important;padding:8px 4px!important; }
  body.workspace-desktop #props .pg { border:0!important;border-bottom:1px solid #e5e9ee!important;border-radius:0!important;padding:8px 0!important;background:transparent!important; }
  body.workspace-desktop #props .tb, body.workspace-desktop #props .pi { border-radius:5px!important;box-shadow:none!important; }
  body.workspace-desktop #props .props-title { font-size:14px!important;letter-spacing:0!important; }
  body.workspace-desktop #props .props-title span { letter-spacing:0!important; }
  body.workspace-desktop #sb { margin:0!important;min-height:24px!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;backdrop-filter:none!important; }
}
