/* Agent Hub Tasks r2 (Oct 24): Jira-style board, list and task panel in the Hub's restrained style.
   One Newsreader title (the shared pagehead), Manrope for everything else, maroon (--h-accent) only on
   primary actions, glass sticky bars, no pills, gradients, capitals labels or emoji. Phone first:
   44 px targets, no sideways page scroll, safe-area insets, a full-screen task sheet. */
html[data-hub-theme] body.hub-workspace .htk{--htk-r:8px;--htk-top:70px;--htk-bleed:36px;--htk-gap:16px;--htk-line:var(--h-line);--htk-hover:color-mix(in srgb,var(--h-ink) 5%,transparent);--htk-tint:color-mix(in srgb,var(--h-ink) 7%,transparent);--htk-nav:0px;color:var(--h-ink);font-family:var(--h-ui)}
html[data-hub-theme] body.hub-workspace .htk *{box-sizing:border-box}
/* The Hub's page-entry animation keeps a transform on #main's children (fill both), which would
   pin the fixed task panel and phone sheet to the page instead of the window. */
html[data-hub-theme] body.hub-workspace #main>#hub-tasks-root{animation-fill-mode:backwards}
html[data-hub-theme] body.hub-workspace .htk a:not(.htk-btn){text-decoration:none;color:inherit}
html[data-hub-theme] body.hub-workspace .htk [hidden]{display:none!important}
html[data-hub-theme] body.hub-workspace .htk .htk-i{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html[data-hub-theme] body.hub-workspace .htk .htk-muted{color:var(--h-muted)}
html[data-hub-theme] body.hub-workspace .htk .htk-small{font-size:13px;margin:0}
html[data-hub-theme] body.hub-workspace .htk .htk-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
html[data-hub-theme] body.hub-workspace .htk .htk-late{color:var(--h-danger,#a02a2a)}
html[data-hub-theme] body.hub-workspace .htk .htk-loading{padding:24px 0;margin:0}
html[data-hub-theme] body.hub-workspace .htk .htk-error{padding:20px 0;display:grid;gap:12px;justify-items:start}
html[data-hub-theme] body.hub-workspace .htk .htk-intro{margin:0 0 14px;max-width:70ch}
html[data-hub-theme] body.hub-workspace .htk .htk-count{font-size:12.5px;font-weight:600;color:var(--h-muted);font-variant-numeric:tabular-nums}
html[data-hub-theme] body.hub-workspace .htk .htk-key{font-size:12.5px;font-weight:600;color:var(--h-muted);font-variant-numeric:tabular-nums;letter-spacing:.01em;white-space:nowrap}

/* Buttons: neutral by default, maroon only for .htk-primary */
html[data-hub-theme] body.hub-workspace .htk .htk-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border-radius:var(--htk-r);border:1px solid var(--h-line);background:var(--h-surface);color:var(--h-ink);font:inherit;font-size:14.5px;font-weight:600;line-height:1.2;cursor:pointer;white-space:nowrap;text-decoration:none}
html[data-hub-theme] body.hub-workspace .htk .htk-btn:hover{border-color:color-mix(in srgb,var(--h-ink) 28%,var(--h-line))}
html[data-hub-theme] body.hub-workspace .htk .htk-btn.htk-primary{background:var(--h-accent);border-color:var(--h-accent);color:var(--h-on-accent,#fff)}
html[data-hub-theme] body.hub-workspace .htk .htk-btn.htk-quiet{border-color:transparent;background:transparent;color:var(--h-muted)}
html[data-hub-theme] body.hub-workspace .htk .htk-btn.htk-quiet:hover{background:var(--htk-hover);color:var(--h-ink)}
html[data-hub-theme] body.hub-workspace .htk .htk-btn:disabled{opacity:.55;cursor:default}
html[data-hub-theme] body.hub-workspace .htk .htk-icon-btn{display:inline-grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;background:none;color:var(--h-muted);cursor:pointer;border-radius:var(--htk-r)}
html[data-hub-theme] body.hub-workspace .htk .htk-icon-btn:hover{background:var(--htk-hover);color:var(--h-ink)}
html[data-hub-theme] body.hub-workspace .htk .htk-icon-btn .htk-i{width:20px;height:20px}
/* The Hub sizes every Close button 40 px; Tasks keeps its 44 px targets. */
html[data-hub-theme] body.hub-workspace .htk :is(.htk-phead,.htk-composer,.htk-build,.htk-cal-head,.htk-pfoot) button.htk-icon-btn[aria-label]{width:44px;height:44px;min-width:44px;min-height:44px}
html[data-hub-theme] body.hub-workspace .htk :is(a,button,select,input,textarea,summary,label.htk-icon-btn,[tabindex]):focus-visible{outline:2px solid var(--h-focus,var(--h-ink));outline-offset:2px}
html[data-hub-theme] body.hub-workspace .htk label.htk-icon-btn:focus-within{outline:2px solid var(--h-focus,var(--h-ink));outline-offset:2px}
html[data-hub-theme] body.hub-workspace .htk .htk-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
html[data-hub-theme] body.hub-workspace .htk :is(select,input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea){min-height:44px;padding:9px 12px;border:1px solid var(--h-line);border-radius:var(--htk-r);background:var(--h-surface);color:var(--h-ink);font:inherit;font-size:16px;max-width:100%;min-width:0}
html[data-hub-theme] body.hub-workspace .htk :is(input[type=checkbox],input[type=radio]){width:20px;height:20px;margin:0;flex:none;accent-color:var(--h-ink)}

/* Page head (shared .pagehead) and view tabs */
html[data-hub-theme] body.hub-workspace .htk .htk-head-actions{display:flex;gap:8px;flex-wrap:wrap}
html[data-hub-theme] body.hub-workspace .htk .htk-tabs{position:sticky;top:var(--htk-top);z-index:7;display:flex;align-items:center;gap:2px;overflow-x:auto;scrollbar-width:none;margin:0 calc(-1*var(--htk-bleed,16px)) 14px;padding:6px var(--htk-bleed,16px);background:var(--glass-bg,var(--h-bg));-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);border-bottom:1px solid var(--glass-edge,var(--h-line))}
html[data-hub-theme] body.hub-workspace .htk .htk-tabs::-webkit-scrollbar{display:none}
html[data-hub-theme] body.hub-workspace .htk .htk-tabs a{flex:none;min-height:44px;display:inline-flex;align-items:center;padding:0 14px;border-radius:var(--htk-r);color:var(--h-muted);font-weight:600;font-size:14.5px}
html[data-hub-theme] body.hub-workspace .htk .htk-tabs a:hover{color:var(--h-ink);background:var(--htk-hover)}
html[data-hub-theme] body.hub-workspace .htk .htk-tabs a[aria-current]{color:var(--h-ink);background:var(--htk-tint)}
html[data-hub-theme] body.hub-workspace .htk .htk-keys-btn{margin-left:auto;flex:none}

/* Toolbar: quick create + filters */
html[data-hub-theme] body.hub-workspace .htk .htk-toolbar{display:grid;gap:10px;margin:0 0 16px}
html[data-hub-theme] body.hub-workspace .htk .htk-quick{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0}
html[data-hub-theme] body.hub-workspace .htk .htk-quick-main{flex:1 1 280px;display:flex;align-items:center;gap:8px;min-height:44px;padding:0 4px 0 12px;border:1px dashed color-mix(in srgb,var(--h-ink) 22%,var(--h-line));border-radius:var(--htk-r);background:var(--h-surface);color:var(--h-muted)}
html[data-hub-theme] body.hub-workspace .htk .htk-quick-main:focus-within{border-style:solid;border-color:var(--h-ink)}
html[data-hub-theme] body.hub-workspace .htk .htk-quick-main input{flex:1;border:0!important;background:transparent!important;padding:9px 4px!important;outline:0}
html[data-hub-theme] body.hub-workspace .htk .htk-quick-main input:focus-visible{outline:0}
html[data-hub-theme] body.hub-workspace .htk .htk-quick-more{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
html[data-hub-theme] body.hub-workspace .htk .htk-quick-more select{max-width:220px}
html[data-hub-theme] body.hub-workspace .htk .htk-filterbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
html[data-hub-theme] body.hub-workspace .htk .htk-search{flex:1 1 260px;display:flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;border:1px solid var(--h-line);border-radius:var(--htk-r);background:var(--h-surface);color:var(--h-muted)}
html[data-hub-theme] body.hub-workspace .htk .htk-search:focus-within{border-color:var(--h-ink)}
html[data-hub-theme] body.hub-workspace .htk .htk-search input{flex:1;min-width:0;border:0!important;background:transparent!important;padding:9px 0!important;outline:0}
html[data-hub-theme] body.hub-workspace .htk .htk-search input:focus-visible{outline:0}
html[data-hub-theme] body.hub-workspace .htk :is(.htk-quick-main,.htk-search) input:is(:focus,:focus-visible){border:0!important;box-shadow:none!important;outline:0!important}
html[data-hub-theme] body.hub-workspace .htk .htk-filter-more{display:contents}
html[data-hub-theme] body.hub-workspace .htk .htk-filter-toggle{display:none}
html[data-hub-theme] body.hub-workspace .htk .htk-fsel{display:block;min-width:0}
html[data-hub-theme] body.hub-workspace .htk .htk-fsel select{width:100%;max-width:220px;font-size:14.5px}

/* Stage: view + side panel */
html[data-hub-theme] body.hub-workspace .htk .htk-stage{position:relative;min-width:0}
html[data-hub-theme] body.hub-workspace .htk .htk-main{min-width:0}
html[data-hub-theme] body.hub-workspace .htk .htk-view{min-width:0}

/* Board */
html[data-hub-theme] body.hub-workspace .htk .htk-switch{display:none}
html[data-hub-theme] body.hub-workspace .htk .htk-board{display:grid;grid-template-columns:repeat(4,minmax(232px,1fr));gap:12px;align-items:start;overflow-x:auto;padding-bottom:12px;scrollbar-width:thin}
html[data-hub-theme] body.hub-workspace .htk .htk-col{min-width:0;padding:10px 8px 8px;border-radius:10px;background:color-mix(in srgb,var(--h-ink) 3.5%,transparent);transition:background .15s ease,box-shadow .15s ease}
html[data-hub-theme] body.hub-workspace .htk .htk-col.is-over{background:color-mix(in srgb,var(--h-ink) 8%,transparent);box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--h-ink) 30%,transparent)}
html[data-hub-theme] body.hub-workspace .htk .htk-col-head{display:flex;align-items:baseline;gap:8px;padding:2px 6px 10px}
html[data-hub-theme] body.hub-workspace .htk .htk-col-head h2{margin:0;font:600 14px/1.3 var(--h-ui);color:var(--h-ink)}
html[data-hub-theme] body.hub-workspace .htk .htk-cards{list-style:none;margin:0;padding:0;display:grid;gap:8px;min-height:40px}
html[data-hub-theme] body.hub-workspace .htk .htk-col-empty{margin:0;padding:10px 6px 14px;font-size:13.5px;color:var(--h-muted)}
html[data-hub-theme] body.hub-workspace .htk .htk-card{position:relative;display:grid;gap:8px;padding:12px;border:1px solid var(--h-line);border-radius:var(--htk-r);background:var(--h-surface);box-shadow:0 1px 1px color-mix(in srgb,var(--h-ink) 5%,transparent);transition:border-color .12s ease,box-shadow .12s ease}
html[data-hub-theme] body.hub-workspace .htk .htk-card[draggable=true]{cursor:grab}
html[data-hub-theme] body.hub-workspace .htk .htk-card:hover{border-color:color-mix(in srgb,var(--h-ink) 26%,var(--h-line))}
html[data-hub-theme] body.hub-workspace .htk .htk-card.is-open,html[data-hub-theme] body.hub-workspace .htk .htk-card.is-focus{border-color:var(--h-ink);box-shadow:0 0 0 1px var(--h-ink)}
html[data-hub-theme] body.hub-workspace .htk .htk-card.is-dragging{opacity:.45}
html[data-hub-theme] body.hub-workspace .htk .htk-card.is-done .htk-card-title{color:var(--h-muted);text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--h-muted) 55%,transparent)}
html[data-hub-theme] body.hub-workspace .htk .htk-card-link{display:block;min-width:0}
html[data-hub-theme] body.hub-workspace .htk .htk-card-link::after{content:"";position:absolute;inset:0;border-radius:inherit}
html[data-hub-theme] body.hub-workspace .htk .htk-card-link:focus-visible{outline:0}
html[data-hub-theme] body.hub-workspace .htk .htk-card:has(.htk-card-link:focus-visible){outline:2px solid var(--h-focus,var(--h-ink));outline-offset:2px}
html[data-hub-theme] body.hub-workspace .htk .htk-card-title{font-weight:600;font-size:14.5px;line-height:1.4;overflow-wrap:anywhere}
html[data-hub-theme] body.hub-workspace .htk .htk-card-meta{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12.5px;color:var(--h-muted)}
html[data-hub-theme] body.hub-workspace .htk .htk-card-meta>span{display:inline-flex;align-items:center;gap:4px}
html[data-hub-theme] body.hub-workspace .htk .htk-card-meta .htk-i{width:14px;height:14px}
html[data-hub-theme] body.hub-workspace .htk .htk-card-meta:empty{display:none}
html[data-hub-theme] body.hub-workspace .htk .htk-card-foot{display:flex;align-items:center;gap:10px;min-height:24px}
html[data-hub-theme] body.hub-workspace .htk .htk-card-foot .htk-av{margin-left:auto}
html[data-hub-theme] body.hub-workspace .htk .htk-labels{display:flex;flex-wrap:wrap;gap:2px 10px;font-size:12.5px}
html[data-hub-theme] body.hub-workspace .htk .htk-label{color:var(--h-ink);font-weight:600;font-size:12.5px}
html[data-hub-theme] body.hub-workspace .htk .htk-label::before{content:"#";color:var(--h-muted);font-weight:500;margin-right:1px}
html[data-hub-theme] body.hub-workspace .htk .htk-prio{font-size:12.5px;font-weight:650}
html[data-hub-theme] body.hub-workspace .htk .htk-prio-high{color:var(--h-warn,#9a5b00)}
html[data-hub-theme] body.hub-workspace .htk .htk-prio-urgent{color:var(--h-danger,#a02a2a)}
html[data-hub-theme] body.hub-workspace .htk .htk-av{display:inline-grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;background:color-mix(in srgb,var(--h-ink) 9%,var(--h-surface));color:var(--h-ink);font-size:10.5px;font-weight:700;letter-spacing:.02em;line-height:1}
html[data-hub-theme] body.hub-workspace .htk .htk-person{display:inline-flex;align-items:center;gap:8px;min-width:0}
html[data-hub-theme] body.hub-workspace .htk .htk-person>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-hub-theme] body.hub-workspace .htk .htk-status{font-size:13px;font-weight:600;color:var(--h-muted);white-space:nowrap}
html[data-hub-theme] body.hub-workspace .htk .htk-st-in_progress,html[data-hub-theme] body.hub-workspace .htk .htk-st-review{color:var(--h-ink)}
html[data-hub-theme] body.hub-workspace .htk .htk-st-done{color:var(--h-ok,#2f6b4f)}
html[data-hub-theme] body.hub-workspace .htk .htk-bar{display:block;height:4px;border-radius:2px;background:color-mix(in srgb,var(--h-ink) 9%,transparent);overflow:hidden;min-width:60px}
html[data-hub-theme] body.hub-workspace .htk .htk-bar i{display:block;height:100%;background:color-mix(in srgb,var(--h-ink) 55%,transparent)}
/* One task sent to many people: one card per column, the people inside */
html[data-hub-theme] body.hub-workspace .htk .htk-card-group{padding:0}
html[data-hub-theme] body.hub-workspace .htk .htk-card-group summary{display:grid;gap:8px;padding:12px;cursor:pointer;list-style:none;border-radius:var(--htk-r)}
html[data-hub-theme] body.hub-workspace .htk .htk-card-group summary::-webkit-details-marker{display:none}
html[data-hub-theme] body.hub-workspace .htk .htk-group-list{list-style:none;margin:0;padding:4px 6px 6px;border-top:1px solid var(--h-line)}
html[data-hub-theme] body.hub-workspace .htk .htk-group-list a{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 6px;border-radius:6px;font-size:14px}
html[data-hub-theme] body.hub-workspace .htk .htk-group-list a:hover{background:var(--htk-hover)}
html[data-hub-theme] body.hub-workspace .htk .htk-group-list .htk-key{margin-left:auto}

/* List */
html[data-hub-theme] body.hub-workspace .htk .htk-list-tools{display:flex;align-items:center;gap:12px;margin:0 0 8px}
html[data-hub-theme] body.hub-workspace .htk .htk-sort-phone{display:none}
html[data-hub-theme] body.hub-workspace .htk .htk-ltable{width:100%;border-collapse:collapse;font-size:14px}
html[data-hub-theme] body.hub-workspace .htk .htk-ltable thead th{position:sticky;top:calc(var(--htk-top) + 57px);z-index:3;padding:0;text-align:left;background:var(--glass-bg,var(--h-bg));-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);border-bottom:1px solid var(--h-line);font-weight:600;font-size:13px;color:var(--h-muted);white-space:nowrap}
html[data-hub-theme] body.hub-workspace .htk .htk-ltable thead button{display:inline-flex;align-items:center;gap:4px;min-height:40px;width:100%;padding:0 10px;border:0;background:none;color:inherit;font:inherit;cursor:pointer;text-align:left}
html[data-hub-theme] body.hub-workspace .htk .htk-ltable thead button:hover,html[data-hub-theme] body.hub-workspace .htk .htk-ltable th[aria-sort=ascending] button,html[data-hub-theme] body.hub-workspace .htk .htk-ltable th[aria-sort=descending] button{color:var(--h-ink)}
html[data-hub-theme] body.hub-workspace .htk .htk-ltable .htk-sort{width:14px;height:14px}
html[data-hub-theme] body.hub-workspace .htk .htk-ltable td{padding:10px;border-bottom:1px solid var(--h-line);vertical-align:middle}
html[data-hub-theme] body.hub-workspace .htk .htk-ltable tbody tr{cursor:pointer}
html[data-hub-theme] body.hub-workspace .htk .htk-ltable tbody tr:hover{background:var(--htk-hover)}
html[data-hub-theme] body.hub-workspace .htk .htk-ltable tbody tr.is-open,html[data-hub-theme] body.hub-workspace .htk .htk-ltable tbody tr.is-focus{background:var(--htk-tint);box-shadow:inset 3px 0 0 var(--h-ink)}
html[data-hub-theme] body.hub-workspace .htk .htk-ltable tr.is-done .htk-c-title a{color:var(--h-muted);text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--h-muted) 55%,transparent)}
html[data-hub-theme] body.hub-workspace .htk .htk-c-sel{width:44px;text-align:center}
html[data-hub-theme] body.hub-workspace .htk .htk-c-key{width:84px;white-space:nowrap}
html[data-hub-theme] body.hub-workspace .htk .htk-c-title{min-width:220px}
html[data-hub-theme] body.hub-workspace .htk .htk-c-title a{display:block;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
html[data-hub-theme] body.hub-workspace .htk .htk-c-title .htk-card-meta{margin-top:3px}
html[data-hub-theme] body.hub-workspace .htk .htk-c-assignee{max-width:200px}
html[data-hub-theme] body.hub-workspace .htk :is(.htk-c-status,.htk-c-priority,.htk-c-due,.htk-c-updated){white-space:nowrap}
html[data-hub-theme] body.hub-workspace .htk .htk-empty{padding:28px 0;color:var(--h-muted);border-bottom:1px solid var(--h-line)}
html[data-hub-theme] body.hub-workspace .htk .htk-empty p{margin:0}

/* Bulk bar and sticky action bars (glass) */
html[data-hub-theme] body.hub-workspace .htk .htk-bar-actions{position:sticky;bottom:var(--htk-nav);z-index:8;display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px calc(-1*var(--htk-bleed,16px)) 0;padding:12px var(--htk-bleed,16px);background:var(--glass-bg,var(--h-bg));-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);border-top:1px solid var(--glass-edge,var(--h-line))}
html[data-hub-theme] body.hub-workspace .htk .htk-bulk>.htk-small{flex:1 1 100%;font-weight:600}
html[data-hub-theme] body.hub-workspace .htk .htk-bulk label{flex:1 1 140px;display:flex}
html[data-hub-theme] body.hub-workspace .htk .htk-bulk select{width:100%;font-size:15px}

/* Rows (calendar, repeating, templates, dialogs) */
html[data-hub-theme] body.hub-workspace .htk .htk-rows,.htk-dialog .htk-rows{list-style:none;margin:0;padding:0}
html[data-hub-theme] body.hub-workspace .htk .htk-row,.htk-dialog .htk-row{display:flex;align-items:center;gap:12px;min-height:60px;padding:8px 0;border-bottom:1px solid var(--h-line)}
html[data-hub-theme] body.hub-workspace .htk .htk-row-main,.htk-dialog .htk-row-main{flex:1;min-width:0;display:grid;gap:4px;padding:4px 0}
html[data-hub-theme] body.hub-workspace .htk a.htk-row-main{min-height:44px}
html[data-hub-theme] body.hub-workspace .htk .htk-row.is-done .htk-card-title{color:var(--h-muted);text-decoration:line-through}
html[data-hub-theme] body.hub-workspace .htk .htk-row-actions{flex-wrap:wrap}

/* Calendar */
html[data-hub-theme] body.hub-workspace .htk .htk-cal-head{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin:0 0 10px}
html[data-hub-theme] body.hub-workspace .htk .htk-cal-head strong{font-size:15px;font-weight:650}
html[data-hub-theme] body.hub-workspace .htk .htk-cal-scope{margin-left:auto}
html[data-hub-theme] body.hub-workspace .htk .htk-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;margin:0 0 14px}
html[data-hub-theme] body.hub-workspace .htk .htk-week button{display:grid;justify-items:center;gap:1px;min-height:64px;padding:6px 0;border:0;border-radius:var(--htk-r);background:none;color:var(--h-muted);font:inherit;cursor:pointer}
html[data-hub-theme] body.hub-workspace .htk .htk-week button span{font-size:12px;font-weight:600}
html[data-hub-theme] body.hub-workspace .htk .htk-week button strong{font-size:18px;color:var(--h-ink);font-variant-numeric:tabular-nums}
html[data-hub-theme] body.hub-workspace .htk .htk-week button small{font-size:12px;min-height:16px;font-weight:650}
html[data-hub-theme] body.hub-workspace .htk .htk-week button.is-today strong{box-shadow:inset 0 -2px 0 var(--h-ink)}
html[data-hub-theme] body.hub-workspace .htk .htk-week button[aria-pressed=true]{background:var(--htk-tint)}
html[data-hub-theme] body.hub-workspace .htk .htk-cal-day{display:none}
html[data-hub-theme] body.hub-workspace .htk .htk-cal-day.is-shown{display:block}
html[data-hub-theme] body.hub-workspace .htk .htk-cal-day h2{margin:0 0 4px;font:600 14px/1.4 var(--h-ui);color:var(--h-muted)}

/* Segmented control (square corners) */
html[data-hub-theme] body.hub-workspace .htk .htk-seg{display:flex;gap:2px;padding:3px;margin:0 0 14px;border-radius:calc(var(--htk-r) + 2px);background:var(--htk-tint);max-width:100%;overflow-x:auto;scrollbar-width:none}
html[data-hub-theme] body.hub-workspace .htk .htk-seg button{flex:1 1 auto;min-width:0;min-height:44px;padding:0 12px;border:0;border-radius:var(--htk-r);background:none;color:var(--h-muted);font:inherit;font-size:14px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
html[data-hub-theme] body.hub-workspace .htk .htk-seg button[aria-pressed=true]{background:var(--h-surface);color:var(--h-ink);box-shadow:0 1px 2px color-mix(in srgb,var(--h-ink) 14%,transparent)}

/* Reports */
html[data-hub-theme] body.hub-workspace .htk .htk-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;margin:4px 0 18px;padding:0 0 16px;border-bottom:1px solid var(--h-line)}
html[data-hub-theme] body.hub-workspace .htk .htk-stats dt{font-size:13px;color:var(--h-muted);font-weight:600}
html[data-hub-theme] body.hub-workspace .htk .htk-stats dd{margin:2px 0 0;font-size:22px;font-weight:680;font-variant-numeric:tabular-nums}
html[data-hub-theme] body.hub-workspace .htk .htk-table-wrap{overflow-x:auto}
html[data-hub-theme] body.hub-workspace .htk .htk-table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
html[data-hub-theme] body.hub-workspace .htk .htk-table :is(th,td){padding:12px 10px 12px 0;border-bottom:1px solid var(--h-line);text-align:left;white-space:nowrap}
html[data-hub-theme] body.hub-workspace .htk .htk-table thead th{font-size:13px;font-weight:600;color:var(--h-muted)}
html[data-hub-theme] body.hub-workspace .htk .htk-table tbody th{font-weight:600;white-space:normal}
html[data-hub-theme] body.hub-workspace .htk .htk-table tbody th small{display:block;font-weight:500;font-size:12.5px;color:var(--h-muted)}
html[data-hub-theme] body.hub-workspace .htk .htk-rate{display:inline-flex;align-items:center;gap:8px}
html[data-hub-theme] body.hub-workspace .htk .htk-rate .htk-bar{width:70px}

/* Task panel (side panel on a computer, full-screen sheet on a phone) */
html[data-hub-theme] body.hub-workspace .htk .htk-panel{display:flex;flex-direction:column;min-width:0;background:var(--h-surface);border:1px solid var(--h-line);border-radius:12px;overflow:hidden;overflow:clip}
html[data-hub-theme] body.hub-workspace .htk .htk-phead{flex:none;display:flex;align-items:center;gap:4px;min-height:56px;padding:6px 8px;border-bottom:1px solid var(--h-line);background:var(--glass-bg,var(--h-surface));-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur)}
html[data-hub-theme] body.hub-workspace .htk .htk-phead-title{margin:0 0 0 4px;font:600 16px/1.3 var(--h-ui)}
html[data-hub-theme] body.hub-workspace .htk .htk-crumbs{display:flex;align-items:center;gap:6px;min-width:0;padding:0 4px}
html[data-hub-theme] body.hub-workspace .htk .htk-crumbs a{display:inline-flex;align-items:center;min-height:44px;font-size:12.5px;font-weight:600;color:var(--h-muted)}
html[data-hub-theme] body.hub-workspace .htk .htk-crumbs a:hover{color:var(--h-ink)}
html[data-hub-theme] body.hub-workspace .htk .htk-crumbs span[aria-hidden]{color:var(--h-muted)}
html[data-hub-theme] body.hub-workspace .htk .htk-grow{flex:1}
html[data-hub-theme] body.hub-workspace .htk .htk-watch{padding:0 10px;font-size:14px}
html[data-hub-theme] body.hub-workspace .htk .htk-watch[aria-pressed=true]{color:var(--h-ink);background:var(--htk-tint)}
html[data-hub-theme] body.hub-workspace .htk .htk-menu-wrap{position:relative}
html[data-hub-theme] body.hub-workspace .htk .htk-menu{position:absolute;right:0;top:calc(100% + 4px);z-index:20;min-width:220px;padding:4px;border:1px solid var(--h-line);border-radius:var(--htk-r);background:var(--h-surface);box-shadow:0 12px 32px color-mix(in srgb,var(--h-ink) 16%,transparent)}
html[data-hub-theme] body.hub-workspace .htk .htk-menu button{display:block;width:100%;min-height:44px;padding:0 12px;border:0;border-radius:6px;background:none;color:var(--h-danger,#a02a2a);font:inherit;font-weight:600;text-align:left;cursor:pointer}
html[data-hub-theme] body.hub-workspace .htk .htk-menu button:hover{background:var(--htk-hover)}
html[data-hub-theme] body.hub-workspace .htk .htk-pbody{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 20px 24px;outline:0;-webkit-overflow-scrolling:touch}
html[data-hub-theme] body.hub-workspace .htk .htk-ptitle{margin:0 0 14px}
html[data-hub-theme] body.hub-workspace .htk .htk-ptitle h2{margin:0 0 4px;font:600 21px/1.3 var(--h-ui);letter-spacing:-.005em;overflow-wrap:anywhere}
html[data-hub-theme] body.hub-workspace .htk .htk-title-edit{display:block;width:calc(100% + 12px);margin:-4px -6px;padding:4px 6px;border:0;border-radius:6px;background:none;color:inherit;font:inherit;text-align:left;cursor:text}
html[data-hub-theme] body.hub-workspace .htk .htk-title-edit:hover{background:var(--htk-hover)}
html[data-hub-theme] body.hub-workspace .htk .htk-inline-edit{display:grid;gap:8px}
html[data-hub-theme] body.hub-workspace .htk .htk-inline-edit textarea{width:100%;font:inherit;font-size:16px;resize:vertical}
html[data-hub-theme] body.hub-workspace .htk .htk-ptitle .htk-inline-edit textarea{font-weight:600;font-size:18px}
html[data-hub-theme] body.hub-workspace .htk .htk-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin:0 0 6px;padding:0 0 18px;border-bottom:1px solid var(--h-line)}
html[data-hub-theme] body.hub-workspace .htk .htk-fields>div{min-width:0}
html[data-hub-theme] body.hub-workspace .htk .htk-fields .htk-wide{grid-column:1/-1}
html[data-hub-theme] body.hub-workspace .htk .htk-fields dt{margin:0 0 4px;font-size:12.5px;font-weight:600;color:var(--h-muted)}
html[data-hub-theme] body.hub-workspace .htk .htk-fields dd{margin:0;min-height:24px;font-size:14.5px;font-weight:500;overflow-wrap:anywhere}
html[data-hub-theme] body.hub-workspace .htk .htk-fields :is(select,input){width:100%;font-size:15px}
html[data-hub-theme] body.hub-workspace .htk .htk-due-edit{display:grid;grid-template-columns:1fr;gap:6px}
html[data-hub-theme] body.hub-workspace .htk .htk-watchers{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center}
html[data-hub-theme] body.hub-workspace .htk .htk-watcher{display:inline-flex;align-items:center;gap:6px}
html[data-hub-theme] body.hub-workspace .htk .htk-x{display:inline-grid;place-items:center;width:44px;height:44px;margin:-10px -10px -10px -8px;padding:0;border:0;border-radius:6px;background:none;color:var(--h-muted);cursor:pointer}
html[data-hub-theme] body.hub-workspace .htk .htk-x:hover{background:var(--htk-hover);color:var(--h-ink)}
html[data-hub-theme] body.hub-workspace .htk .htk-x .htk-i{width:14px;height:14px}
html[data-hub-theme] body.hub-workspace .htk .htk-add-watcher{display:block;margin-top:8px}
html[data-hub-theme] body.hub-workspace .htk .htk-psec{padding:18px 0;border-bottom:1px solid var(--h-line)}
html[data-hub-theme] body.hub-workspace .htk .htk-psec:last-child{border-bottom:0}
html[data-hub-theme] body.hub-workspace .htk .htk-psec-head{display:flex;align-items:center;gap:10px;min-height:32px;margin:0 0 8px}
html[data-hub-theme] body.hub-workspace .htk .htk-psec-head h3{margin:0;font:600 15px/1.4 var(--h-ui)}
html[data-hub-theme] body.hub-workspace .htk .htk-psec-head .htk-small-btn{margin:-6px -10px -6px auto;min-height:44px;padding:0 12px;font-size:14px}
html[data-hub-theme] body.hub-workspace .htk .htk-desc{line-height:1.6;overflow-wrap:anywhere}
html[data-hub-theme] body.hub-workspace .htk .htk-desc p{margin:0}
html[data-hub-theme] body.hub-workspace .htk .htk-checklist{list-style:none;margin:0;padding:0}
html[data-hub-theme] body.hub-workspace .htk .htk-checklist label{display:flex;align-items:flex-start;gap:12px;min-height:44px;padding:10px 0;cursor:pointer}
html[data-hub-theme] body.hub-workspace .htk .htk-checklist input{margin-top:1px}
html[data-hub-theme] body.hub-workspace .htk .htk-checklist input:checked+span{color:var(--h-muted);text-decoration:line-through}
html[data-hub-theme] body.hub-workspace .htk .htk-subs{list-style:none;margin:0 0 8px;padding:0}
html[data-hub-theme] body.hub-workspace .htk .htk-subs a{display:flex;align-items:center;gap:10px;min-height:48px;padding:4px 6px;margin:0 -6px;border-radius:6px}
html[data-hub-theme] body.hub-workspace .htk .htk-subs a:hover{background:var(--htk-hover)}
html[data-hub-theme] body.hub-workspace .htk .htk-sub-title{flex:1;min-width:0;font-weight:600;font-size:14.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-hub-theme] body.hub-workspace .htk .htk-subs .is-done .htk-sub-title{color:var(--h-muted);text-decoration:line-through}
html[data-hub-theme] body.hub-workspace .htk .htk-subadd{display:flex;gap:8px}
html[data-hub-theme] body.hub-workspace .htk .htk-subadd input{flex:1}
html[data-hub-theme] body.hub-workspace .htk .htk-files{list-style:none;margin:0;padding:0}
html[data-hub-theme] body.hub-workspace .htk .htk-files li{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px 12px;padding:10px 0;border-bottom:1px solid var(--h-line)}
html[data-hub-theme] body.hub-workspace .htk .htk-files li:last-child{border-bottom:0}
html[data-hub-theme] body.hub-workspace .htk .htk-file-meta{display:grid;gap:2px;min-width:0;flex:1 1 160px}
html[data-hub-theme] body.hub-workspace .htk .htk-file-meta a{display:flex;align-items:center;min-height:44px;font-weight:600;overflow-wrap:anywhere}
html[data-hub-theme] body.hub-workspace .htk .htk-thumb-link{display:block;flex:none}
html[data-hub-theme] body.hub-workspace .htk .htk-thumb{display:block;width:72px;height:72px;object-fit:cover;border-radius:6px;background:var(--htk-tint)}
html[data-hub-theme] body.hub-workspace .htk .htk-video{display:block;width:100%;max-height:50vh;border-radius:6px;background:#000;flex:1 1 100%}
html[data-hub-theme] body.hub-workspace .htk .htk-doc{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:600}
html[data-hub-theme] body.hub-workspace .htk .htk-files .htk-doc span{display:none}
html[data-hub-theme] body.hub-workspace .htk .htk-ptabs{display:inline-flex;margin:0 0 12px}
html[data-hub-theme] body.hub-workspace .htk .htk-ptabs button{flex:0 0 auto}
html[data-hub-theme] body.hub-workspace .htk .htk-comments,html[data-hub-theme] body.hub-workspace .htk .htk-history{list-style:none;margin:0 0 12px;padding:0}
html[data-hub-theme] body.hub-workspace .htk .htk-comments li{display:grid;grid-template-columns:26px minmax(0,1fr);gap:10px;padding:10px 0}
html[data-hub-theme] body.hub-workspace .htk .htk-comments p{margin:0;line-height:1.55;overflow-wrap:anywhere}
html[data-hub-theme] body.hub-workspace .htk .htk-comment-head{display:flex;flex-wrap:wrap;gap:2px 10px;align-items:baseline;margin:0 0 2px!important}
html[data-hub-theme] body.hub-workspace .htk .htk-comment-head time{font-size:12.5px}
html[data-hub-theme] body.hub-workspace .htk .htk-comment-media{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
html[data-hub-theme] body.hub-workspace .htk .htk-comment-media .htk-thumb{width:96px;height:96px}
html[data-hub-theme] body.hub-workspace .htk .htk-comment-media .htk-video{max-width:100%}
html[data-hub-theme] body.hub-workspace .htk .htk-mention{font-weight:650}
html[data-hub-theme] body.hub-workspace .htk .htk-history li{display:grid;gap:2px;padding:8px 0;border-bottom:1px solid var(--h-line);font-size:14px}
html[data-hub-theme] body.hub-workspace .htk .htk-history li:last-child{border-bottom:0}
html[data-hub-theme] body.hub-workspace .htk .htk-history p{margin:0;line-height:1.5;overflow-wrap:anywhere}
html[data-hub-theme] body.hub-workspace .htk .htk-history time{font-size:12.5px}
html[data-hub-theme] body.hub-workspace .htk .htk-pfoot{flex:none;display:grid;gap:8px;padding:10px 12px 12px;border-top:1px solid var(--glass-edge,var(--h-line));background:var(--glass-bg,var(--h-surface));-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur)}
html[data-hub-theme] body.hub-workspace .htk .htk-pacts{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
html[data-hub-theme] body.hub-workspace .htk .htk-pacts>.htk-small{flex:1 1 100%}
html[data-hub-theme] body.hub-workspace .htk .htk-pacts .htk-btn{flex:1 1 0}
html[data-hub-theme] body.hub-workspace .htk .htk-composer{position:relative;display:grid;gap:6px;margin:0}
html[data-hub-theme] body.hub-workspace .htk .htk-composer-row{display:flex;align-items:flex-end;gap:2px}
html[data-hub-theme] body.hub-workspace .htk .htk-composer textarea{flex:1;min-height:44px;max-height:180px;padding:10px 12px;margin:0 0 0 4px;resize:none;line-height:1.4;overflow-y:hidden}
html[data-hub-theme] body.hub-workspace .htk .htk-send{margin-left:6px;padding:0 14px}
html[data-hub-theme] body.hub-workspace .htk .htk-chips{display:flex;flex-wrap:wrap;gap:6px}
html[data-hub-theme] body.hub-workspace .htk .htk-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-height:40px;padding:3px 3px 3px 4px;border:1px solid var(--h-line);border-radius:var(--htk-r);background:var(--h-bg);font-size:13px}
html[data-hub-theme] body.hub-workspace .htk .htk-chip img{width:32px;height:32px;object-fit:cover;border-radius:4px}
html[data-hub-theme] body.hub-workspace .htk .htk-chip>span{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-hub-theme] body.hub-workspace .htk .htk-chip .htk-x{margin:0}
html[data-hub-theme] body.hub-workspace .htk .htk-progress{display:grid;gap:4px}
html[data-hub-theme] body.hub-workspace .htk .htk-progress .htk-bar{height:5px}
html[data-hub-theme] body.hub-workspace .htk .htk-progress .htk-bar i{transition:width .2s}
html[data-hub-theme] body.hub-workspace .htk .htk-mention-list{position:absolute;left:0;bottom:calc(100% + 6px);z-index:5;list-style:none;margin:0;padding:4px;width:min(100%,320px);border:1px solid var(--h-line);border-radius:var(--htk-r);background:var(--h-surface);box-shadow:0 10px 28px color-mix(in srgb,var(--h-ink) 16%,transparent)}
html[data-hub-theme] body.hub-workspace .htk .htk-mention-list button{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:0 8px;border:0;border-radius:6px;background:none;color:var(--h-ink);font:inherit;text-align:left;cursor:pointer}
html[data-hub-theme] body.hub-workspace .htk .htk-mention-list [aria-selected=true] button{background:var(--htk-tint)}
html[data-hub-theme] body.hub-workspace .htk .htk-scrim{display:none}

/* Forms (create panel, answers) */
html[data-hub-theme] body.hub-workspace .htk .htk-form{display:grid;gap:14px;margin:0}
html[data-hub-theme] body.hub-workspace .htk .htk-create{display:flex;flex-direction:column;flex:1;min-height:0}
html[data-hub-theme] body.hub-workspace .htk .htk-create .htk-pbody{display:grid;gap:14px;align-content:start}
html[data-hub-theme] body.hub-workspace .htk .htk-create .htk-pbody>p{margin:0}
html[data-hub-theme] body.hub-workspace .htk .htk-field{display:grid;gap:6px;margin:0;padding:0;border:0;min-width:0;font-weight:600;font-size:14px}
html[data-hub-theme] body.hub-workspace .htk .htk-field legend{padding:0;margin-bottom:6px}
html[data-hub-theme] body.hub-workspace .htk .htk-field :is(input:not([type=checkbox]):not([type=radio]),select,textarea){width:100%}
html[data-hub-theme] body.hub-workspace .htk .htk-field .htk-muted,html[data-hub-theme] body.hub-workspace .htk .htk-req{font-weight:500;font-size:12.5px}
html[data-hub-theme] body.hub-workspace .htk .htk-req{color:var(--h-muted);margin-left:6px}
html[data-hub-theme] body.hub-workspace .htk .htk-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
html[data-hub-theme] body.hub-workspace .htk .htk-grid .htk-wide{grid-column:1/-1}
html[data-hub-theme] body.hub-workspace .htk .htk-choice{display:flex;flex-wrap:wrap;gap:4px 16px;font-weight:500}
html[data-hub-theme] body.hub-workspace .htk :is(.htk-choice label,.htk-pick label,.htk-inline){display:inline-flex;align-items:center;gap:10px;min-height:44px;font-weight:500;cursor:pointer}
html[data-hub-theme] body.hub-workspace .htk .htk-pick{display:grid;margin-top:8px}
html[data-hub-theme] body.hub-workspace .htk .htk-pick-list{display:grid;max-height:280px;overflow-y:auto;margin-top:6px;padding:0 4px;overscroll-behavior:contain}
html[data-hub-theme] body.hub-workspace .htk .htk-pick-list label{border-bottom:1px solid var(--h-line)}
html[data-hub-theme] body.hub-workspace .htk .htk-builder{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:8px}
html[data-hub-theme] body.hub-workspace .htk .htk-build{display:flex;gap:6px;align-items:center}
html[data-hub-theme] body.hub-workspace .htk .htk-build>input{flex:1}
html[data-hub-theme] body.hub-workspace .htk .htk-build-field{flex-wrap:wrap;padding:0 0 10px;border-bottom:1px solid var(--h-line)}
html[data-hub-theme] body.hub-workspace .htk .htk-build-field [name=qlabel]{flex:1 1 100%}
html[data-hub-theme] body.hub-workspace .htk .htk-build-field :is(select,[name=qoptions]){flex:1 1 160px;width:auto}
html[data-hub-theme] body.hub-workspace .htk .htk-formerror{margin:0;color:var(--h-danger,#a02a2a);font-weight:600}
html[data-hub-theme] body.hub-workspace .htk .htk-formerror:empty{display:none}
html[data-hub-theme] body.hub-workspace .htk .htk-repeat{display:grid;gap:12px}
html[data-hub-theme] body.hub-workspace .htk .htk-psec>.htk-btn,html[data-hub-theme] body.hub-workspace .htk .htk-form>.htk-btn,html[data-hub-theme] body.hub-workspace .htk label.htk-btn{justify-self:start;cursor:pointer}

/* Dialogs (shortcuts, saved filters) */
.htk-dialog{width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;border:1px solid var(--h-line);border-radius:14px;background:var(--h-surface);color:var(--h-ink);font-family:var(--h-ui);box-shadow:0 24px 60px color-mix(in srgb,var(--h-ink) 22%,transparent)}
.htk-dialog::backdrop{background:color-mix(in srgb,var(--h-ink) 28%,transparent)}
.htk-dialog .htk-dform{display:grid;gap:14px;padding:20px}
.htk-dialog h2{margin:0;font:600 18px/1.35 var(--h-ui)}
.htk-dialog .htk-field{display:grid;gap:6px;font-weight:600;font-size:14px}
.htk-dialog input{min-height:44px;padding:9px 12px;border:1px solid var(--h-line);border-radius:8px;background:var(--h-surface);color:var(--h-ink);font:inherit;font-size:16px}
.htk-dialog .htk-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.htk-dialog .htk-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border-radius:8px;border:1px solid var(--h-line);background:var(--h-surface);color:var(--h-ink);font:inherit;font-weight:600;cursor:pointer}
.htk-dialog .htk-btn.htk-primary{background:var(--h-accent);border-color:var(--h-accent);color:var(--h-on-accent,#fff)}
.htk-dialog .htk-btn.htk-quiet{border-color:transparent;background:transparent;color:var(--h-muted)}
.htk-dialog :is(button,input):focus-visible{outline:2px solid var(--h-focus,var(--h-ink));outline-offset:2px}
.htk-dialog .htk-keys{display:grid;gap:0;margin:0}
.htk-dialog .htk-keys div{display:grid;grid-template-columns:110px 1fr;gap:12px;align-items:center;min-height:40px;border-bottom:1px solid var(--h-line)}
.htk-dialog .htk-keys dt,.htk-dialog .htk-keys dd{margin:0;font-size:14px}
.htk-dialog kbd{display:inline-block;min-width:26px;padding:2px 7px;border:1px solid var(--h-line);border-bottom-width:2px;border-radius:5px;background:var(--h-bg);font:600 12.5px/1.5 var(--h-ui);text-align:center}
.htk-dialog .htk-card-title{font-weight:600}

/* ---------- computer: side panel beside the board ---------- */
@media(min-width:1180px){
 html[data-hub-theme] body.hub-workspace .htk{--htk-pw:clamp(400px,32vw,520px)}
 html[data-hub-theme] body.hub-workspace .htk.has-panel{padding-right:calc(var(--htk-pw) + 20px)}
 html[data-hub-theme] body.hub-workspace .htk.has-panel .htk-panel{position:fixed;z-index:8;top:calc(var(--htk-top) + 16px);right:var(--htk-bleed);bottom:16px;width:var(--htk-pw);box-shadow:0 12px 40px color-mix(in srgb,var(--h-ink) 10%,transparent)}
}
/* ---------- tablet and small laptop: the panel slides over from the right ---------- */
@media(min-width:761px) and (max-width:1179.98px){
 html[data-hub-theme] body.hub-workspace .htk .htk-panel{position:fixed;z-index:40;top:var(--htk-top);right:0;bottom:0;width:min(540px,92vw);border-radius:12px 0 0 0;border-right:0;border-bottom:0;box-shadow:-16px 0 48px color-mix(in srgb,var(--h-ink) 16%,transparent)}
 html[data-hub-theme] body.hub-workspace .htk.has-panel .htk-scrim{display:block;position:fixed;inset:var(--htk-top) 0 0 0;z-index:39;background:color-mix(in srgb,var(--h-ink) 16%,transparent)}
}
@media(min-width:761px){
 html[data-hub-theme] body.hub-workspace .htk .htk-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-hub-theme] body.hub-workspace .htk .htk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-hub-theme] body.hub-workspace .htk .htk-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
 html[data-hub-theme] body.hub-workspace .htk .htk-bulk>.htk-small{flex:0 0 auto;margin-right:auto}
 html[data-hub-theme] body.hub-workspace .htk .htk-bulk label{flex:0 0 auto}
}
@media(max-width:1180px){
 html[data-hub-theme] body.hub-workspace .htk .htk-c-updated{display:none}
}
/* Hub layout: the phone bottom navigation (900 px and below) sits under the sticky bars */
@media(max-width:900px){
 html[data-hub-theme] body.hub-workspace .htk{--htk-top:62px;--htk-nav:calc(64px + env(safe-area-inset-bottom))}
}

/* ---------- board below 700 px: one column at a time ---------- */
@media(max-width:699.98px){
 html[data-hub-theme] body.hub-workspace .htk .htk-switch{position:sticky;top:var(--htk-top);z-index:6;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;margin:0 calc(-1*var(--htk-bleed,16px)) 12px;padding:6px var(--htk-bleed,16px);background:var(--glass-bg,var(--h-bg));-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);border-bottom:1px solid var(--glass-edge,var(--h-line))}
 html[data-hub-theme] body.hub-workspace .htk .htk-switch button{display:grid;justify-items:center;align-content:center;gap:1px;min-width:0;min-height:52px;padding:4px 2px;border:0;border-radius:var(--htk-r);background:none;color:var(--h-muted);font:inherit;font-size:13.5px;font-weight:600;line-height:1.2;cursor:pointer}
 html[data-hub-theme] body.hub-workspace .htk .htk-switch button>span:first-child{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html[data-hub-theme] body.hub-workspace .htk .htk-switch button[aria-pressed=true]{color:var(--h-ink);background:var(--htk-tint)}
 html[data-hub-theme] body.hub-workspace .htk .htk-board{display:block;overflow:visible;padding:0;touch-action:pan-y}
 html[data-hub-theme] body.hub-workspace .htk .htk-col{display:none;padding:0;background:none;border-radius:0}
 html[data-hub-theme] body.hub-workspace .htk .htk-col.is-active{display:block}
 html[data-hub-theme] body.hub-workspace .htk .htk-col-head{display:none}
 html[data-hub-theme] body.hub-workspace .htk .htk-cards{gap:10px}
 html[data-hub-theme] body.hub-workspace .htk .htk-card:not(.htk-card-group){padding:14px}
 html[data-hub-theme] body.hub-workspace .htk .htk-card-group summary{padding:14px}
 html[data-hub-theme] body.hub-workspace .htk .htk-card-title{font-size:15.5px}
 html[data-hub-theme] body.hub-workspace .htk .htk-col-empty{padding:28px 4px;text-align:center}
 html[data-hub-theme] body.hub-workspace .htk .htk-in-left{animation:htk-in-left .22s ease-out}
 html[data-hub-theme] body.hub-workspace .htk .htk-in-right{animation:htk-in-right .22s ease-out}
}
@keyframes htk-in-left{from{opacity:.2;transform:translateX(-28px)}to{opacity:1;transform:none}}
@keyframes htk-in-right{from{opacity:.2;transform:translateX(28px)}to{opacity:1;transform:none}}

/* ---------- phone ---------- */
@media(max-width:760px){
 html[data-hub-theme] body.hub-workspace .htk .htk-tabs{position:static;margin-bottom:12px;padding-top:0;padding-bottom:6px;background:none;-webkit-backdrop-filter:none;backdrop-filter:none}
 html[data-hub-theme] body.hub-workspace .htk .htk-keys-btn{display:none}
 html[data-hub-theme] body.hub-workspace .htk .htk-head-actions{display:grid!important;grid-template-columns:1fr;gap:8px}
 html[data-hub-theme] body.hub-workspace .htk .htk-head-actions .htk-btn{width:100%}
 html[data-hub-theme] body.hub-workspace .htk .htk-head-actions a[download]{display:none}
 html[data-hub-theme] body.hub-workspace .htk .htk-quick-main{flex-basis:100%}
 html[data-hub-theme] body.hub-workspace .htk .htk-quick-more{display:none;width:100%}
 html[data-hub-theme] body.hub-workspace .htk .htk-quick:focus-within .htk-quick-more,html[data-hub-theme] body.hub-workspace .htk .htk-quick:has(input[name=title]:not(:placeholder-shown)) .htk-quick-more{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}
 html[data-hub-theme] body.hub-workspace .htk .htk-quick-more:not(:has(select)){grid-template-columns:minmax(0,1fr) auto!important}
 html[data-hub-theme] body.hub-workspace .htk .htk-quick-more :is(select,input){width:100%;max-width:none}
 html[data-hub-theme] body.hub-workspace .htk .htk-filterbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
 html[data-hub-theme] body.hub-workspace .htk .htk-filter-toggle{display:inline-flex;padding:0 12px}
 html[data-hub-theme] body.hub-workspace .htk .htk-filter-more{display:none;grid-column:1/-1;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
 html[data-hub-theme] body.hub-workspace .htk .htk-filterbar.is-open .htk-filter-more{display:grid}
 html[data-hub-theme] body.hub-workspace .htk .htk-fsel select{max-width:none;font-size:16px}
 html[data-hub-theme] body.hub-workspace .htk .htk-filter-more>.htk-btn{width:100%}
 html[data-hub-theme] body.hub-workspace .htk .htk-sort-phone{display:block;flex:1}
 html[data-hub-theme] body.hub-workspace .htk .htk-sort-phone select{width:100%;max-width:none;font-size:16px}
 html[data-hub-theme] body.hub-workspace .htk .htk-bar-actions{padding-bottom:12px}
 html[data-hub-theme] body.hub-workspace .htk .htk-row-actions .htk-actions{width:100%}
 html[data-hub-theme] body.hub-workspace .htk .htk-row-actions .htk-actions .htk-btn{flex:1}
 html[data-hub-theme] body.hub-workspace .htk .htk-seg button{padding:0 8px}
}

/* ---------- phone task sheet (also a phone held sideways) ---------- */
@media(max-width:760px),(max-height:500px){
 html.htk-sheet-open,html.htk-sheet-open body{overflow:hidden!important;overscroll-behavior:none}
 html[data-hub-theme] body.hub-workspace .htk .htk-panel{position:fixed;z-index:60;left:0;right:0;top:var(--htk-vvt,0px);height:var(--htk-vvh,100dvh);width:auto;border:0;border-radius:0;box-shadow:none;background:var(--h-bg);padding:0 env(safe-area-inset-right) 0 env(safe-area-inset-left)}
 html[data-hub-theme] body.hub-workspace .htk .htk-phead{min-height:calc(56px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 6px 0;background:var(--glass-bg,var(--h-bg))}
 html[data-hub-theme] body.hub-workspace .htk .htk-watch>span:not(.htk-count){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
 html[data-hub-theme] body.hub-workspace .htk .htk-watch{min-width:44px;padding:0 8px}
 html[data-hub-theme] body.hub-workspace .htk .htk-pbody{padding:16px 16px 24px}
 html[data-hub-theme] body.hub-workspace .htk .htk-ptitle h2{font-size:20px}
 html[data-hub-theme] body.hub-workspace .htk .htk-pfoot{padding:8px 12px max(10px,env(safe-area-inset-bottom));background:var(--glass-bg,var(--h-bg))}
 html[data-hub-theme] body.hub-workspace .htk .htk-pfoot:is(.is-typing,:has(textarea:focus)) .htk-pacts{display:none}
 html[data-hub-theme] body.hub-workspace .htk .htk-pfoot:is(.is-typing,:has(textarea:focus)){padding-bottom:8px}
 html[data-hub-theme] body.hub-workspace .htk .htk-composer textarea{max-height:120px}
 html[data-hub-theme] body.hub-workspace .htk .htk-video{max-height:40vh}
}
/* Sideways phone: actions and composer share one row so the task keeps most of the height. */
@media(max-height:500px){
 html[data-hub-theme] body.hub-workspace .htk .htk-pfoot{display:flex;align-items:flex-end;gap:8px}
 html[data-hub-theme] body.hub-workspace .htk .htk-pfoot .htk-pacts{flex:none;flex-wrap:nowrap}
 html[data-hub-theme] body.hub-workspace .htk .htk-pfoot .htk-pacts>.htk-small{display:none}
 html[data-hub-theme] body.hub-workspace .htk .htk-pfoot .htk-pacts .htk-btn{flex:none}
 html[data-hub-theme] body.hub-workspace .htk .htk-pfoot .htk-composer{flex:1;min-width:0}
 html[data-hub-theme] body.hub-workspace .htk .htk-create .htk-pfoot .htk-pacts{flex:1}
 html[data-hub-theme] body.hub-workspace .htk .htk-create .htk-pfoot .htk-pacts .htk-btn{flex:1}
 html[data-hub-theme] body.hub-workspace .htk .htk-phead{min-height:48px}
}
@media(max-width:420px){
 html[data-hub-theme] body.hub-workspace .htk .htk-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
 html[data-hub-theme] body.hub-workspace .htk .htk-due-edit{grid-template-columns:1fr}
 html[data-hub-theme] body.hub-workspace .htk .htk-grid{grid-template-columns:1fr}
 html[data-hub-theme] body.hub-workspace .htk .htk-send{padding:0 12px}
}
@media(prefers-reduced-motion:reduce){
 html[data-hub-theme] body.hub-workspace .htk *{animation:none!important;transition:none!important}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 html[data-hub-theme] body.hub-workspace .htk :is(.htk-tabs,.htk-switch,.htk-bar-actions,.htk-phead,.htk-pfoot){background:var(--h-bg)}
}
/* Phone list rows (the computer list is a table) */
html[data-hub-theme] body.hub-workspace .htk .htk-mlist .htk-row{align-items:flex-start;gap:4px;padding:6px 0}
html[data-hub-theme] body.hub-workspace .htk .htk-mlist .htk-row-main{gap:6px;padding:8px 0}
html[data-hub-theme] body.hub-workspace .htk .htk-mlist .htk-card-title{font-size:15.5px}
html[data-hub-theme] body.hub-workspace .htk .htk-mlist .htk-row.is-open{box-shadow:inset 3px 0 0 var(--h-ink);padding-left:10px}
html[data-hub-theme] body.hub-workspace .htk .htk-mlist .htk-av{width:22px;height:22px;font-size:9.5px}
html[data-hub-theme] body.hub-workspace .htk .htk-mlist .htk-row.is-done .htk-card-title{color:var(--h-muted);text-decoration:line-through}
html[data-hub-theme] body.hub-workspace .htk .htk-pick-row{display:grid;place-items:center;flex:none;width:44px;height:44px;margin:4px 0 0 -10px;cursor:pointer}
html[data-hub-theme] body.hub-workspace .htk .htk-all{margin:0 0 4px}
