.live-sidebar{padding-top:22px;padding-bottom:14px}.live-brand{padding-bottom:20px}
.live-sidebar nav{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;gap:12px;padding-bottom:16px}
.workspace-nav-group{display:grid;gap:2px}.workspace-nav-caption{padding:3px 14px 5px;color:#9ab5a9;font-size:11px;letter-spacing:.07em}
.live-sidebar .live-nav-item{min-height:38px;padding:8px 13px}.live-sidebar .live-nav-item svg{width:17px;height:17px}
.live-sidebar-user{flex-shrink:0;padding-top:12px}.live-topbar{min-height:64px;height:auto;padding-top:10px;padding-bottom:10px}
.workspace-title{margin:0;font-size:21px;letter-spacing:.01em;color:#193e38;font-weight:650}
.workspace-header-actions,.home-actions{display:flex;align-items:center;gap:10px}
.workspace-options{position:relative}.workspace-options summary{height:36px;min-width:36px;display:grid;place-items:center;color:#567068;border:1px solid #d5e1da;border-radius:6px;cursor:pointer;list-style:none}
.workspace-options summary::-webkit-details-marker{display:none}.workspace-options[open]>div{position:absolute;z-index:20;right:0;top:42px;display:grid;min-width:165px;padding:6px;background:#fff;border:1px solid #dce8df;border-radius:8px;box-shadow:0 7px 24px #203a2c18}
.workspace-options a,.workspace-options .live-button{display:flex;justify-content:flex-start;align-items:center;gap:8px;padding:9px 10px;color:#32584c;font-size:13px;text-decoration:none}.workspace-options a svg{width:16px;height:16px}
#order-refresh-button:empty{display:none}#order-refresh-button button{min-height:38px}
.quick-sync-status{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:10px 14px;margin-bottom:14px;border:1px solid #d8e5de;border-radius:7px;background:#f6faf7;color:#355c50;font-size:13px}
.quick-sync-status details{flex:1}.quick-sync-status summary{cursor:pointer}.quick-sync-status summary span{margin-left:12px;color:#526a60}.quick-sync-status ul{padding-left:19px;line-height:1.8}
.home-queue{padding:20px}.home-queue-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}.home-queue h2{margin:0;font-size:19px;flex-shrink:0}
.home-queue .live-data-freshness{display:flex;flex:0 1 720px;background:none;border:none;padding:0;min-width:0;max-width:calc(100% - 108px);font-size:12px;color:#506c61;text-align:right;line-height:1.55;white-space:normal;overflow-wrap:anywhere}.home-queue .live-data-freshness strong,.home-queue .live-data-freshness span{font-size:12px;display:block;color:inherit}.home-queue .live-data-freshness span{margin-left:0}.home-queue .live-data-freshness small{display:none}
.home-queue .live-task-grid{gap:0;border:1px solid #dce7df;border-radius:8px;overflow:hidden;background:#f7faf8}
.home-queue .live-task-card{min-width:0;border:0;border-right:1px solid #dce7df;border-radius:0;padding:14px;box-shadow:none;background:transparent}.home-queue .live-task-card:hover{background:#eaf3ec}.home-queue .live-task-card:last-child{border:0}
.home-queue .live-task-card strong{margin-top:5px;font-size:24px;line-height:1.3}.home-queue .live-task-card small{font-size:12px;font-weight:400;color:#647b70;margin-left:5px}
.home-actions{flex-wrap:wrap;margin-top:16px}.live-main{padding-top:22px}
@media(max-width:900px){.home-queue .live-task-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.workspace-header-actions{gap:6px}.workspace-title{font-size:18px}}
@media(max-width:620px){.live-topbar{min-height:58px;padding:8px 12px}.live-main{padding:12px}.home-queue{padding:14px}.home-queue-head{align-items:flex-start;flex-direction:column;gap:4px}.home-queue .live-data-freshness{flex:none;max-width:100%;width:100%;text-align:left}.home-actions{gap:6px}.home-queue .live-task-card{padding:9px}.workspace-title{font-size:17px}.quick-sync-status{gap:4px}.quick-sync-status summary span{display:block;margin:3px 0 0}.workspace-header-actions .live-button{padding:8px;font-size:12px}}

/* Order list height follows its actual toolbar/filter position, not a fixed deduction. */
.live-main[data-view="orders"]{max-width:1800px;padding:18px 20px 16px}
.live-main[data-view="orders"] .ow-list>.live-table-scroll{max-height:var(--order-table-room,calc(100dvh - 280px));overflow:auto;overscroll-behavior:contain}
.live-main[data-view="orders"] .ow-list>.live-pagination{position:relative;bottom:auto;box-shadow:none}
@media(max-width:760px){
 .live-main[data-view="orders"]{padding:12px}
 .live-main[data-view="orders"] .ow-list>.ow-table-wrap{max-height:none;overflow:visible}
 .live-main[data-view="orders"] .of-list>.of-scroll{max-height:var(--order-table-room,calc(100dvh - 330px));overflow:auto}
}
.home-queue .live-task-grid.live-task-hero-pair{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:900px){.home-queue .live-task-grid.live-task-hero-pair{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Workspace chrome. Routes and role-derived navigation remain in the template. */
@media screen {
  .live-sidebar {
    background: var(--ds-sidebar);
    color: var(--ds-sidebar-text);
    padding: 16px 12px 12px;
    overflow: hidden;
  }
  .live-sidebar .live-brand {
    min-height: 42px;
    padding: 0 9px 10px;
    border-bottom: 1px solid var(--ds-sidebar-divider);
  }
  .live-sidebar .live-brand-mark {
    width: 31px;
    height: 31px;
    color: var(--ds-surface);
    background: var(--ds-primary);
    border-radius: var(--ds-radius-control);
  }
  .live-sidebar .live-brand strong { font-size: var(--ds-page-size); }
  .live-sidebar nav {
    gap: 10px;
    padding: 8px 0;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    scrollbar-color: var(--ds-sidebar-hover) transparent;
  }
  .workspace-nav-group { gap: 1px; }
  .workspace-nav-caption {
    padding: 0 12px 2px;
    line-height: 16px;
    color: var(--ds-sidebar-caption);
    font-size: var(--ds-caption-size);
    font-weight: var(--ds-heading-weight);
  }
  .live-sidebar .live-nav-item {
    min-height: 32px;
    gap: 10px;
    padding: 5px 10px;
    border-left: 3px solid transparent;
    border-radius: var(--ds-radius-badge);
    color: var(--ds-sidebar-text);
    font-size: var(--ds-body-size);
    line-height: 20px;
    white-space: nowrap;
  }
  .live-sidebar .live-nav-item svg { color: inherit; }
  .live-sidebar .live-nav-item:hover { color: var(--ds-surface); background: var(--ds-sidebar-hover); }
  .live-sidebar .live-nav-item.active {
    color: var(--ds-surface);
    background: var(--ds-sidebar-active);
    border-left-color: var(--ds-sidebar-indicator);
    box-shadow: none;
  }
  .live-sidebar-user {
    border-top-color: var(--ds-sidebar-divider);
    padding: 10px 6px 0;
    white-space: nowrap;
  }
  .live-sidebar-user strong { color: var(--ds-sidebar-text); }
  .live-sidebar-user small, .live-sidebar-exit { color: var(--ds-muted); }
  .live-sidebar-user .live-avatar, .live-sidebar-exit:hover {
    background: var(--ds-sidebar-hover);
    color: var(--ds-sidebar-text);
  }
  .workspace-todo-count {
    margin-inline-start: auto;
    min-width: 1.6em;
    padding-inline: .4em;
    border-radius: var(--ds-radius-badge);
    background: var(--ds-sidebar-hover);
    color: var(--ds-sidebar-text);
    text-align: center;
    font-variant-numeric: tabular-nums;
  }
  .workspace-todo-count:empty, .workspace-todo-count[data-count="0"] { display: none; }
  .live-topbar {
    height: 56px;
    min-height: 56px;
    padding-block: 0;
    flex-wrap: nowrap;
    background: var(--ds-surface);
    border-bottom: 1px solid var(--ds-border);
  }
  .workspace-title {
    color: var(--ds-text);
    font-size: var(--ds-page-size);
    font-weight: var(--ds-heading-weight);
    white-space: nowrap;
    line-height: 1.3;
  }
  .workspace-header-actions { flex-wrap: nowrap; flex: 0 0 auto; gap: 8px; }
  .workspace-options summary {
    height: var(--ds-control-height);
    min-width: var(--ds-control-height);
    border-color: var(--ds-border);
    border-radius: var(--ds-radius-control);
    color: var(--ds-secondary-text);
  }
}
@media screen and (min-width: 901px) and (max-height: 820px) {
  .live-sidebar { padding-block: 9px; }
  .live-sidebar nav { gap: 6px; padding-block: 6px; }
  .live-sidebar .live-nav-item { min-height: 30px; padding-block: 4px; }
}

