/* Accepted candidate-assignment v3a: scoped to the real task workspace. */
#tasks{padding-right:117px}
#tasks .tasks-header{flex-wrap:wrap}
#tasks .tasks-header>div:first-child{flex:1 1 320px;min-width:0}
#tasks .task-accessible-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#tasks .tasks-header{justify-content:flex-start}
#tasks .task-assignment-heading{margin:18px 0 0;font-size:17px;font-weight:600}
#tasks .task-context-facts dd{overflow-wrap:anywhere}
#tasks .task-context-facts div,#tasks .task-role-grid article,#tasks .task-history-empty{background:var(--nb-surface,#fffdfc)}
#tasks .task-queue-item.selected{border-left-color:var(--nb-active,#6c9883);background:var(--nb-surface,#fffdfc)}
#tasks .task-tabs button[aria-selected="true"]{border-bottom-color:var(--nb-active,#6c9883)}
#tasks :is(button,select,textarea,input):focus-visible,#tasks [tabindex]:focus-visible{outline:3px solid var(--nb-active,#6c9883);outline-offset:3px}
#tasks .task-result-status{display:inline-flex;align-items:center;gap:6px;font-size:12px;background:var(--nb-surface,#fffdfc);color:var(--nb-text,#29342f);margin-top:13px}
#tasks .task-result-status[hidden]{display:none}
#tasks .task-result-status::before{content:"";flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:#819087}
#tasks .task-result-status[data-outcome="continue"]::before{background:#218b5b}
#tasks .task-result-status[data-outcome="clarify"]::before{background:#d46d1c}
#tasks .task-assignment{min-width:0;border:0;padding:0;margin:0}
#tasks .task-assignment legend{padding:0;font-size:17px;font-weight:600;margin-bottom:12px}
#tasks .task-assignment-option{display:flex;align-items:center;gap:12px;min-height:54px;padding:10px 12px;margin-bottom:8px;border:1px solid var(--border-card);border-radius:5px;background:var(--nb-surface,#fffdfc);cursor:pointer}
#tasks .task-assignment-option:has(input:checked){border-color:var(--nb-active,#6c9883);box-shadow:inset 0 0 0 1px var(--nb-active,#6c9883)}
#tasks .task-assignment-option input{appearance:auto;accent-color:var(--nb-active,#6c9883);flex:0 0 18px;width:18px;height:18px;margin:0}
#tasks .task-assignment-option>span{min-width:0}
#tasks .task-assignment-option strong{display:block;font-size:15px;font-weight:500}
#tasks .task-assignment-option span span{display:block;font-size:14px;color:var(--nb-muted,#5e6760);overflow-wrap:anywhere;margin-top:2px}
#tasks .task-assignment-hint{font-size:14px;color:var(--nb-muted,#5e6760);margin:10px 0}
#tasks .task-note-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:2px 0 18px}
#tasks .task-note-apply{min-height:36px;padding:6px 14px;border:1px solid var(--nb-active,#6c9883);border-radius:5px;background:var(--nb-surface,#fffdfc);color:var(--nb-text,#29342f);font:inherit;font-size:15px;cursor:pointer}
#tasks .task-note-apply:disabled{border-color:var(--border-card);color:var(--nb-muted,#5e6760);cursor:not-allowed}
#tasks .task-note-toolbar span{font-size:14px;color:var(--nb-muted,#5e6760)}
#tasks .task-note-count{margin-left:auto}
#tasks .tasks-role-picker{min-width:232px;font-size:13px}
#tasks .tasks-role-picker select{width:232px;height:36px;padding:7px 10px;font-size:15px;font-weight:400}
#tasks .task-boundary{font-size:14px;padding:10px 12px;margin-top:12px;margin-bottom:18px}
@media(min-width:1024px){
  #tasks:not([hidden]){display:flex;flex-direction:column;height:100vh;height:100dvh;min-height:540px;padding-top:20px;padding-bottom:var(--shell-bottom-inset)}
  #tasks .tasks-header{flex:0 0 auto}
  #tasks .tasks-layout{grid-template-columns:minmax(205px,.7fr) minmax(0,1.65fr);height:auto;min-height:0;flex:1 1 auto;margin-top:16px}
  #tasks .task-queue,#tasks .task-context{height:100%;min-height:0;max-height:none}
  #tasks .task-tab-content{min-height:0}
}
@media(min-width:1024px) and (max-width:1180px){
  #tasks .task-context>header{padding:20px 18px 0}
  #tasks .task-tabs{margin-left:18px;margin-right:18px}
  #tasks .task-tab-content{padding-left:18px;padding-right:18px}
  #tasks .task-context-facts{grid-template-columns:1fr}
}
@media(max-width:760px){#tasks{padding-right:90px}}
/* Short desktop windows: keep navigation clear of the fixed compact control. */
@media(min-width:1024px) and (max-height:700px){
  body:has(#tasks:not([hidden])) .sidebar .nav-list{max-height:calc(100dvh - 126px - var(--shell-bottom-inset) - 60px);overflow-y:auto;overflow-x:hidden;align-content:start;scrollbar-width:thin}
}
