/* List page chrome, toolbar, popovers content, board, calendar. */
.hub-list-page{min-width:0}
.hub-list-header{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}
.hub-list-actions{display:flex;gap:8px}
.hub-tabs{display:flex;gap:4px;align-items:center;border-bottom:1px solid var(--hub-border,#e3e6ee);margin:12px 0 8px;overflow-x:auto}
.hub-tab{border:0;background:none;padding:8px 12px;font-size:12px;font-weight:600;color:var(--hub-text-muted,#6b7280);cursor:pointer;border-bottom:2px solid transparent;white-space:nowrap}
.hub-tab.is-active{color:var(--hub-primary,#4f46e5);border-bottom-color:var(--hub-primary,#4f46e5)}
.hub-toolbar{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.hub-tb-chip{height:24px;padding:0 10px;font-size:12px;border:1px solid var(--hub-border,#e3e6ee);border-radius:6px;background:var(--hub-surface,#fff);cursor:pointer}
.hub-tb-chip.is-on{border-color:var(--hub-primary,#4f46e5);color:var(--hub-primary,#4f46e5)}
.hub-dirty{font-size:12px;color:#b45309;font-weight:600}
.hub-btn-sm{height:24px;padding:0 10px;font-size:12px}
.hub-btn-sm.is-active{background:var(--hub-primary,#4f46e5);color:#fff}
.hub-pop-form,.hub-filter-pop,.hub-fields-panel{padding:10px;display:flex;flex-direction:column;gap:8px;max-height:70vh;overflow:auto}
.hub-pop-row{display:flex;gap:6px;align-items:center}
.hub-pop-row .hub-select,.hub-pop-row .hub-input{min-width:0;flex:1}
.hub-fgroup{display:flex;flex-direction:column;gap:6px;padding-left:0}
.hub-fgroup.depth-1,.hub-fgroup.depth-2{margin-left:14px;padding-left:8px;border-left:2px solid var(--hub-border,#e3e6ee)}
.hub-between{display:flex;gap:4px;flex:1}
.hub-icon-btn{border:0;background:none;cursor:pointer}
.hub-fields-head{font-size:11px;text-transform:uppercase;color:var(--hub-text-muted,#6b7280);margin:8px 0 2px}
.hub-field-row{display:flex;align-items:center;gap:8px;padding:4px 2px}
.hub-field-name{flex:1}
.hub-grip{cursor:grab;color:#9aa0b4}
.hub-muted{color:var(--hub-text-muted,#6b7280);font-size:12px}
.hub-popover{position:absolute;z-index:1000;background:var(--hub-surface,#fff);border:1px solid var(--hub-border,#e3e6ee);border-radius:8px;box-shadow:0 10px 30px rgba(20,25,50,.18);max-width:calc(100vw - 16px);box-sizing:border-box}
.hub-menu{display:flex;flex-direction:column;padding:4px}
.hub-menu-item{text-align:left;border:0;background:none;padding:6px 10px;font-size:13px;border-radius:6px;cursor:pointer;color:inherit}
.hub-menu-item:hover{background:var(--hub-hover,#f3f4fb)}
.hub-menu-item.is-disabled,.hub-menu-item:disabled{opacity:.5;cursor:not-allowed}
.hub-toasts{position:fixed;left:16px;bottom:16px;z-index:2000;display:flex;flex-direction:column;gap:6px}
.hub-toast{background:#1b2540;color:#fff;padding:8px 14px;border-radius:8px;font-size:13px;max-width:320px}
/* Board */
.hub-board{display:flex;gap:12px;overflow-x:auto;align-items:flex-start;padding-bottom:12px;min-width:0}
.hub-board-col{flex:0 0 260px;background:var(--hub-surface-2,#f6f7fb);border-radius:10px;padding:8px;min-height:120px}
.hub-board-col.is-over{outline:2px dashed var(--hub-primary,#4f46e5)}
.hub-board-head{display:flex;gap:8px;align-items:center;margin-bottom:8px}
.hub-board-body{display:flex;flex-direction:column;gap:8px;min-height:40px}
.hub-board-card{padding:8px 10px;cursor:grab;background:var(--hub-surface,#fff);border:1px solid var(--hub-border,#e3e6ee);border-radius:8px}
.hub-card-top,.hub-card-meta{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--hub-text-muted,#6b7280)}
.hub-card-title{display:block;margin:4px 0;font-weight:500}
.hub-prio-urgent{color:#dc2626}.hub-prio-high{color:#d97706}
/* Calendar */
.hub-cal-nav{display:flex;gap:6px;align-items:center;margin-bottom:8px}
.hub-cal-title{font-weight:600;margin-left:8px}
.hub-cal-body{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap;min-width:0}
.hub-cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));flex:1 1 560px;min-width:0;border-top:1px solid var(--hub-border,#e3e6ee);border-left:1px solid var(--hub-border,#e3e6ee);overflow:hidden}
.hub-cal-dow{padding:4px 6px;font-size:12px;color:var(--hub-text-muted,#6b7280);border-right:1px solid var(--hub-border,#e3e6ee);border-bottom:1px solid var(--hub-border,#e3e6ee);background:var(--hub-surface-2,#f6f7fb)}
.hub-cal-day{min-height:96px;padding:4px;border-right:1px solid var(--hub-border,#e3e6ee);border-bottom:1px solid var(--hub-border,#e3e6ee);min-width:0;overflow:hidden;background:var(--hub-surface,#fff)}
.hub-cal-day.is-other{background:var(--hub-surface-2,#f6f7fb);opacity:.7}
.hub-cal-day.is-today .hub-cal-num{color:var(--hub-primary,#4f46e5);font-weight:700}
.hub-cal-day.is-over{outline:2px dashed var(--hub-primary,#4f46e5);outline-offset:-2px}
.hub-cal-num{font-size:12px;margin-bottom:2px}
.hub-cal-chip{font-size:12px;padding:2px 6px;margin-bottom:2px;border-left:3px solid var(--hub-primary,#4f46e5);background:var(--hub-hover,#eef0ff);border-radius:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:grab}
.hub-cal-tray{flex:0 0 220px;max-width:100%;border:1px solid var(--hub-border,#e3e6ee);border-radius:8px;padding:8px;background:var(--hub-surface,#fff)}
.hub-cal-tray-head{font-weight:600;margin-bottom:6px}
@media (max-width:600px){.hub-cal-tray{flex:1 1 100%}.hub-board-col{flex-basis:220px}}
.hub-unresolved{margin:0 0 8px;padding:8px 12px;border-left:3px solid #d97706;background:#fffbeb;font-size:12px;border-radius:4px}
.hub-load-more-slot{display:flex;justify-content:center;padding:10px 0}
.hub-drawer{position:fixed;top:0;right:0;bottom:0;width:300px;max-width:100vw;z-index:900;background:var(--hub-surface,#fff);border-left:1px solid var(--hub-border,#e3e6ee);box-shadow:-8px 0 24px rgba(20,25,50,.12);padding:14px;display:flex;flex-direction:column;gap:10px;overflow:auto;box-sizing:border-box}
.hub-drawer-head{display:flex;justify-content:space-between;align-items:center}
.hub-drawer-row{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px}
.hub-drawer-row .hub-input,.hub-drawer-row .hub-select{max-width:150px}

.hub-fcond.is-incomplete{outline:1px dashed #d97706;outline-offset:2px;border-radius:6px}


/* D048: stable left grouping and right-aligned controls, with no sticky overlap. */
.hub-toolbar{display:flex;align-items:center;gap:8px;justify-content:flex-start;
  flex-wrap:nowrap;overflow:visible;white-space:nowrap;min-width:0;margin-bottom:14px}
.hub-toolbar-group{flex:0 0 auto;min-width:0}
.hub-group-chip{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 9px;
  font-size:12px;border:1px solid var(--hub-border,#e3e6ee);border-radius:15px;
  background:var(--hub-hover,#eef0ff);color:var(--hub-primary,#4f46e5);cursor:pointer}
/* Left-anchor overflowing items so the first Sort control remains scroll-reachable.
   Auto-margin keeps the whole action group right-aligned when it fits. */
.hub-toolbar-actions{display:flex;align-items:center;justify-content:flex-start;gap:6px;flex:0 1 auto;
  margin-left:auto;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;white-space:nowrap}
.hub-toolbar-actions>:first-child{margin-left:auto}
.hub-toolbar-actions:focus-within{scrollbar-width:auto}
.hub-toolbar-actions>*{flex:0 0 auto}
.hub-tb-control{display:inline-flex;align-items:center;justify-content:center;gap:5px}
.hub-tb-glyph{font-size:15px;line-height:1}
.hub-tb-label[hidden]{display:none}
.hub-toolbar.is-responsive-icons .hub-tb-label{display:none}
.hub-tb-search{display:inline-flex;align-items:center}
.hub-tb-search-input{width:150px;max-width:26vw}
.hub-tb-add{position:static;flex:0 0 auto;z-index:auto}
.hub-save-status{display:inline-flex;align-items:center;justify-content:flex-end;flex:0 0 auto;
  align-self:center;margin-left:auto;padding:0 6px;height:18px;
  color:var(--hub-text-muted,#6b7280);font-size:11px;line-height:16px}
.hub-save-status.is-unsaved,.hub-save-status.is-error{color:#b45309}
.hub-settings-nav{display:flex;flex-direction:column;gap:3px;margin:4px 0 8px}
.hub-settings-tab{border:0;background:transparent;text-align:left;padding:7px 9px;border-radius:6px;
  color:inherit;cursor:pointer}
.hub-settings-tab.is-active{background:var(--hub-hover,#eef0ff);font-weight:600;
  color:var(--hub-primary,#4f46e5)}
.hub-settings-drawer p{font-size:12px;line-height:1.45}
@media(max-width:600px){.hub-toolbar{gap:5px}.hub-group-chip{max-width:110px;
  overflow:hidden;text-overflow:ellipsis}.hub-toolbar-actions{gap:4px}}

/* Compact List chrome: breadcrumb belongs to the application shell, not repeated in the List. */
.hub-list-page .hub-list-header{min-height:34px;margin:0 0 5px;padding:0;align-items:center}
.hub-list-title{display:flex;align-items:center;gap:8px;min-width:0;margin:0;font-size:20px;line-height:1.3}
.hub-list-title .hub-list-icon{display:inline-flex;align-items:center;justify-content:center;min-width:24px;font-size:22px;margin:0}
.hub-list-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hub-list-title-menu{width:28px;height:28px;flex:0 0 28px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;color:var(--hub-text-muted);font-size:20px;line-height:1;font-weight:500}
.hub-list-title-menu:hover,.hub-list-title-menu:focus-visible{background:var(--hub-hover);color:var(--hub-text)}
.hub-list-view-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--hub-border);min-width:0;margin-bottom:8px}
.hub-list-view-row .hub-tabs{flex:1 1 auto;min-width:0;margin:0;border-bottom:0;align-self:stretch}
.hub-list-view-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.hub-list-view-actions .hub-btn{height:28px}
@media(max-width:600px){.hub-list-title{font-size:18px}.hub-list-view-row{flex-wrap:wrap;gap:2px}.hub-list-view-actions{padding-bottom:6px;margin-left:auto}}

/* Status progression follows the approved vertical list reference: full-width
   editable labels, grouped stages, and accessible drag/drop targets. */
.hub-status-editor{display:flex;flex-direction:column;gap:12px}
.hub-status-editor>.hub-muted{margin:0;line-height:1.5}
.hub-status-lanes{display:flex;flex-direction:column;gap:12px}
.hub-status-stage{min-width:0;border:1px solid var(--hub-border);border-radius:9px;background:var(--hub-surface-2,#f6f7fb);overflow:hidden}
.hub-status-stage-heading{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid var(--hub-border);font-size:13px}
.hub-status-stage-number{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:var(--hub-hover);color:var(--hub-primary);font-size:12px;font-weight:700;flex-shrink:0}
.hub-status-stage-heading strong{font-size:13px;min-width:0}
.hub-status-count{margin-left:auto;font-size:11px;color:var(--hub-text-muted);white-space:nowrap}
.hub-status-stage-body{display:flex;flex-direction:column;gap:7px;padding:10px 14px;min-height:56px}
.hub-status-stage-body.is-drag-over,.hub-status-card.is-drag-over{outline:2px dashed var(--hub-primary);outline-offset:-2px;border-radius:6px}
.hub-status-card{display:flex;align-items:center;gap:10px;min-width:0;border:1px solid var(--hub-border);border-radius:7px;background:var(--hub-surface);padding:8px 10px;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.hub-status-grip{color:var(--hub-text-muted);cursor:grab;font-size:17px;flex-shrink:0}
.hub-status-color{border:0;background:transparent;padding:0;width:22px;height:25px;min-width:22px;cursor:pointer;flex-shrink:0}
.hub-status-name{border:0;background:transparent;color:var(--hub-text);font:inherit;font-size:13px;min-width:0;flex:1;outline-offset:1px}
.hub-status-move{border:1px solid var(--hub-border);border-radius:5px;background:var(--hub-surface);color:var(--hub-text-muted);font-size:12px;width:110px;max-width:35%;padding:5px 6px;cursor:pointer;flex-shrink:0}
.hub-status-remove{background:transparent;border:0;color:var(--hub-text-muted);padding:3px 6px;cursor:pointer;font-size:17px;flex-shrink:0}
.hub-status-remove:hover{color:var(--hub-danger)}
.hub-status-add{border:1px dashed var(--hub-border);background:transparent;border-radius:6px;color:var(--hub-text-muted);font-size:12px;cursor:pointer;text-align:left;padding:8px 12px;width:100%}
.hub-status-add:hover{background:var(--hub-hover);color:var(--hub-text)}
.hub-status-replacements{display:flex;flex-wrap:wrap;gap:10px}
.hub-status-replacements strong{width:100%;font-size:12px}
.hub-status-replacements label{flex:1 1 180px}
@media(max-width:480px){.hub-status-card{gap:6px;padding:7px}.hub-status-move{width:86px;font-size:11px}.hub-status-stage-body{padding:8px}}
 
/* Settings actions are understated utility links; destructive action is separate. */
.hub-view-tools{margin-top:12px;padding-top:12px;border-top:1px solid var(--hub-border);display:flex;flex-direction:column;gap:8px}
.hub-view-tools-head{display:flex;align-items:center;justify-content:space-between;font-size:12px}
.hub-view-default-label{font-size:11px;color:var(--hub-text-muted)}
.hub-view-tools-grid{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.hub-view-tool{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--hub-text-muted);font-size:12px;cursor:pointer}
.hub-view-tool:hover,.hub-view-tool:focus-visible{background:var(--hub-hover);color:var(--hub-text)}
.hub-view-tool-symbol{width:14px;text-align:center;font-size:15px}
.hub-view-tool-danger{align-self:flex-start;margin-top:3px;color:var(--hub-danger);font-size:12px}
.hub-view-tool-danger:hover{background:var(--hub-hover);color:var(--hub-danger)}
.hub-view-tool:disabled{opacity:.45;cursor:not-allowed}

/* Always-visible field picker, directly before the top Add Task button. */
.hub-toolbar>.hub-tb-fields{display:inline-flex!important;flex:0 0 32px!important;align-items:center;justify-content:center;min-width:32px;width:32px;height:28px;padding:0;border:1px solid var(--hub-border,#e3e6ee);border-radius:6px;background:var(--hub-surface,#fff);color:var(--hub-primary,#5268d9);font-size:19px;font-weight:650;line-height:1;visibility:visible}
.hub-toolbar>.hub-tb-fields:hover{background:var(--hub-hover,#eef0ff)}
.hub-toolbar>.hub-tb-add{flex-shrink:0}

/* 14px text for interactive List toolbar, menus, chips and view controls. */
.hub-tab,.hub-tb-chip,.hub-btn-sm,.hub-group-chip,
.hub-menu-item,.hub-muted,.hub-drawer-row,
.hub-settings-drawer p,.hub-view-tool,.hub-status-name,
.hub-status-stage-heading,.hub-status-stage-heading strong,
.hub-status-add,.hub-toolbar .hub-btn,.hub-toolbar .hub-tb-label {font-size:14px}

/* GAP bank automation List controls. Inherit accepted Settings view-row layout. */
.hub-list-automation-action{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;min-height:28px}
.hub-list-automation-action.is-on{border-color:var(--hub-accent,#2e8b57)}
.hub-list-automation-action .hub-list-action-label[hidden]{display:none}

/* Quick-comment pop-up: the existing comments of one task, plus a comment composer.
   The pop-up is anchored to the cell and floats over the list. */
.hub-comments-pop{position:fixed;display:flex;flex-direction:column;overflow:hidden}
.hub-comments-pop .hub-cmt{display:flex;flex-direction:column;min-height:0;flex:1 1 auto}
.hub-cmt-head{flex:none;display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--hub-border,#e3e6ee)}
.hub-cmt-title{flex:1;min-width:0;font-weight:600;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hub-cmt-count{flex:none;font-size:12px;color:var(--hub-text-muted,#6b7280);font-variant-numeric:tabular-nums}
.hub-cmt-head .hub-icon-btn{flex:none;width:24px;height:24px;border-radius:6px;font-size:14px;color:var(--hub-text-muted,#6b7280)}
.hub-cmt-head .hub-icon-btn:hover{background:var(--hub-hover,#f3f4fb);color:var(--hub-text,#111827)}
.hub-cmt-head .hub-icon-btn:focus-visible{outline:2px solid var(--hub-primary,#5268d9);outline-offset:1px}
.hub-cmt-body{flex:1;min-height:0;overflow-y:auto;padding:8px 12px}
.hub-cmt-status{padding:10px 0;color:var(--hub-text-muted,#6b7280);font-size:13px}
.hub-cmt-empty{padding:10px 0;color:var(--hub-text-muted,#6b7280);font-size:13px}
.hub-cmt-error{padding:8px 0;font-size:13px;color:var(--hub-danger,#dc2626)}
.hub-cmt-item{border:1px solid var(--hub-line,#e4e9f0);border-radius:8px;padding:9px 11px;background:var(--hub-head,#f8fafc);margin-bottom:8px}
.hub-cmt-item:last-child{margin-bottom:0}
.hub-cmt-item-head{display:flex;align-items:center;gap:8px}
.hub-cmt-author{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hub-cmt-time{margin-left:auto;flex:none;font-size:11px;color:var(--hub-text-muted,#6b7280)}
.hub-cmt-text{margin-top:6px;font-size:13px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.hub-cmt-text .hd-mention{color:var(--hub-accent,#5268d9);background:var(--hub-accent-lite,#edf0ff);border-radius:4px;padding:0 3px}
.hub-cmt-compose{flex:none;border-top:1px solid var(--hub-border,#e3e6ee);padding:10px 12px}
.hub-cmt-input{width:100%;box-sizing:border-box;min-height:58px;resize:vertical;padding:7px 9px;border:1px solid var(--hub-border,#e3e6ee);border-radius:6px;font:inherit;font-size:13px;background:var(--hub-surface,#fff);color:var(--hub-text,#111827)}
.hub-cmt-input:focus-visible{outline:2px solid var(--hub-primary,#5268d9);outline-offset:1px}
.hub-cmt-input:disabled{background:var(--hub-surface-2,#f6f7fb);cursor:not-allowed}
.hub-cmt-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
.hub-cmt-compose .hub-muted{margin:8px 0 0}

/* Rich quick-comment display and compose attachments. */
.hub-comments-pop .hub-cmt-item{background:color-mix(in srgb,var(--hub-surface,#fff) 92%,var(--hub-text,#182338) 8%);border-color:color-mix(in srgb,var(--hub-line,#cbd5e1) 65%,var(--hub-text,#182338) 35%);box-shadow:0 1px 3px rgba(25,32,52,.08)}
.hub-cmt-files{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}
.hub-cmt-file{font-size:12px;text-decoration:underline;color:var(--hub-accent,#5268d9)}
.hub-cmt-pending{display:flex;gap:6px;flex-wrap:wrap}
.hub-cmt-pending:not(:empty){margin-bottom:7px}
.hub-cmt-pending-file{display:inline-flex;gap:6px;align-items:center;padding:4px 7px;border-radius:6px;border:1px solid var(--hub-line,#cbd5e1);background:var(--hub-head,#f3f4f8);font-size:12px}
.hub-cmt-pending-file button{border:0;background:transparent;color:inherit;cursor:pointer}
.hub-cmt-attach{margin-right:auto;white-space:nowrap;border:1px solid var(--hub-line,#cbd5e1)}
.hub-cmt-compose{border-top:2px solid var(--hub-line,#cbd5e1)}
.hub-cmt-compose.is-file-over{outline:2px dashed var(--hub-accent,#5268d9);outline-offset:-4px}
.hub-cmt-text{white-space:normal;line-height:1.52}
