/* Work-oriented layouts share the ocean palette and the existing motion timing. */
.work-queue { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin: 20px 0 28px; }
.queue-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 16px; border: 1px solid var(--hy-border-default); border-radius: var(--hy-radius-md); background: var(--hy-white); color: var(--hy-text-body); text-align: left; text-decoration: none; font: inherit; cursor: pointer; transition: border-color 160ms ease, background 160ms ease, transform 120ms ease; }
.queue-card > span { font-weight: 700; color: var(--hy-ocean-800); }
.queue-card strong { font-size: 28px; line-height: 1.4; color: var(--hy-ocean-800); }
.queue-card strong small { margin-left: 4px; font-size: 12px; font-weight: 500; }
.queue-card > small { color: var(--hy-text-muted); font-size: 12px; }
.queue-card[aria-pressed="true"] { background: var(--hy-ocean-50); border-color: var(--hy-ocean-600); box-shadow: inset 0 3px var(--hy-ocean-600); }
.management-start { margin: 28px 0; }
.admin-filters { flex-wrap: wrap; align-items: end; }
.admin-filters .field:first-child { flex: 2 1 260px; }
.admin-filters .field { flex: 1 1 150px; }
.workflow-guide { padding: 20px; margin: 20px 0; border-left: 3px solid var(--hy-ocean-600); }
.workflow-guide ol { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.workflow-guide li { display: flex; align-items: center; gap: 8px; color: var(--hy-text-muted); font-size: 13px; }
.workflow-guide li > span { display: grid; place-items: center; flex: 0 0 25px; height: 25px; border: 1px solid var(--hy-border-default); border-radius: 50%; font-size: 12px; }
.workflow-guide [aria-current="step"] { color: var(--hy-ocean-800); font-weight: 700; }
.workflow-guide [aria-current="step"] > span { background: var(--hy-ocean-700); border-color: var(--hy-ocean-700); color: var(--hy-white); }
.workflow-guide .is-complete > span { background: var(--hy-ocean-50); color: var(--hy-ocean-800); }
.workflow-guide p { margin: 16px 0 0; font-size: 13px; }
.workflow-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 24px; }
.workflow-actions > p { margin: 0; }
.workflow-actions .toolbar { justify-content: flex-end; }
.creation-step { padding: 24px; margin: 20px 0; }
.creation-step h2 { display: flex; align-items: center; gap: 12px; }
.creation-step h2 > span { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; background: var(--hy-ocean-50); color: var(--hy-ocean-800); border-radius: 50%; font-size: 14px; }
.member-picker { max-height: 390px; overflow-y: auto; overscroll-behavior: contain; }
.member-choice:has(input:disabled) { color: var(--hy-text-muted); background: var(--hy-bg-subtle); }
.member-choice:has(input:checked) { background: var(--hy-ocean-50); }
.member-choice[hidden], .template-item[hidden] { display: none !important; }
.selected-members { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.selected-person { padding: 6px 10px; border: 1px solid var(--hy-ocean-200); border-radius: 6px; color: var(--hy-ocean-800); background: var(--hy-ocean-50); font: inherit; cursor: pointer; }
.template-section { margin: 28px 0; }
.template-item { padding: 20px; border: 1px solid var(--hy-border-default); border-radius: var(--hy-radius-md); margin: 12px 0; background: var(--hy-white); }
.template-item > summary { cursor: pointer; color: var(--hy-ocean-800); }
.template-item > summary small { margin-left: 12px; color: var(--hy-text-muted); }
.template-item[open] > summary { margin-bottom: 20px; }
.template-item .field { margin-bottom: 16px; }
.question-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.question-editor-head .btn { font-size: 12px; min-height: 32px; padding: 6px 10px; }
.template-preview { margin: 24px 0; padding: 20px; border: 1px dashed var(--hy-ocean-300); border-radius: var(--hy-radius-md); background: var(--hy-ocean-50); }
.template-preview > summary { cursor: pointer; font-weight: 700; color: var(--hy-ocean-800); }
#template-preview-content { margin-top: 20px; }
.btn[aria-busy="true"]::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: hyoka-spin .8s linear infinite; }
@media (hover:hover) and (pointer:fine) { .queue-card:hover { border-color: var(--hy-ocean-600); transform: translateY(-1px); } }
@media (max-width:900px) { .work-queue { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width:600px) {
  .work-queue { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .queue-card { padding: 12px; }
  .workflow-guide ol { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workflow-guide, .creation-step, .template-item { padding: 16px; }
  .workflow-actions .toolbar > .btn { flex: 1 1 180px; }
  .question-editor-head { align-items: flex-start; flex-direction: column; gap: 0; }
}
@media (prefers-reduced-motion:reduce) {
  .queue-card { transition: none; }
  .queue-card:hover { transform: none; }
  .btn[aria-busy="true"]::after { animation: none; }
}

.directory-autocomplete { position: relative; margin-bottom: 12px; }
.directory-candidates { position: absolute; z-index: 6; inset: calc(100% + 4px) 0 auto; max-height: 320px; overflow-y: auto; background: var(--hy-white); border: 1px solid var(--hy-text-muted); border-radius: var(--hy-radius-md); box-shadow: var(--hy-shadow-overlay); animation: hy-detail-in 160ms var(--hy-motion-easing-out) both; }
.directory-candidates[hidden], #admin-candidate-retry[hidden] { display: none; }
.directory-candidates [role="option"] { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 12px 16px; gap: 2px; border: 0; border-bottom: 1px solid var(--hy-border-subtle); text-align: left; background: var(--hy-white); color: var(--hy-text-body); cursor: pointer; overflow-wrap: anywhere; }
.directory-candidates strong { color: var(--hy-text-heading); }
.directory-candidates span, .directory-candidates small { color: var(--hy-text-muted); font-size: 13px; }
.directory-candidates [aria-selected="true"], .directory-candidates [role="option"]:hover { background: var(--hy-bg-selected); }
.directory-candidates [aria-disabled="true"] { cursor: default; background: var(--hy-bg-subtle); }
@media (prefers-reduced-motion:reduce) { .directory-candidates { animation: none; } }
