/* Tasks for Humanity research hub (/tfh/research). /os tokens; product color arrives as --p from .p-tfh. */
.rh-hero { min-height: 72svh; align-items: center; background: radial-gradient(1200px 600px at 50% 0%, #fbe9e4 0%, #f2f2f0 60%); }
.rh-hero .ox__copy { padding: 72px 24px; }
.rh-hero .ox__name { font-size: clamp(46px, 8vw, 104px); }
.rh-hero .os-btns { justify-content: center; }
.rh-hero__note { margin: 22px auto 0; max-width: 52ch; color: var(--muted); font-size: 15px; }
.rh-who { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.rh-panel { background: var(--alt); border-radius: var(--r); padding: 28px; max-width: 760px; }
.os-sec--alt .rh-panel { background: var(--bg); }
.rh-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 12px; }
.rh-row input, .rh-field input, .rh-field select, .rh-form select { font: inherit; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid #c9cbd1; background: #fff; color: var(--ink); }
.rh-row input { flex: 1 1 260px; min-width: 0; }
.rh-row button, .rh-dock button, .rh-list button, .rh-copy button, .rh-panel button { border: 0; cursor: pointer; font-family: inherit; }
.rh-msg { color: var(--muted); margin: 0 0 8px; font-size: 15px; }
.rh-msg.is-ok { color: #1d6b3a; } .rh-msg.is-err { color: #a3261b; }
.rh-big { font-size: 19px; margin: 0 0 8px; }
.rh-tools { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.rh-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.rh-field input, .rh-field select { width: 100%; }
.rh-chips { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.rh-legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.rh-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px #c9cbd1; font-size: 14px; cursor: pointer; }
.os-sec:not(.os-sec--alt) .rh-chip { background: var(--alt); }
.rh-chip:has(input:checked) { box-shadow: inset 0 0 0 2px var(--pt, var(--p)); color: var(--pt, var(--p)); font-weight: 600; }
.rh-chip input { accent-color: var(--p); margin: 0; }
.rh-note { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.rh-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.rh-card { background: var(--bg); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 130px; }
.rh-card.is-picked { box-shadow: inset 0 0 0 2px var(--p); }
.rh-card h3 { font-size: 19px; letter-spacing: -.01em; margin: 0; line-height: 1.25; }
.rh-card__k { margin: 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--pt, var(--p)); }
.rh-card__s { margin: 0; color: var(--muted); font-size: 15px; }
.rh-card__m { margin: 0; font-size: 13px; color: var(--muted); }
.rh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 0; }
.rh-stats div { background: var(--alt); border-radius: 12px; padding: 8px 10px; }
.rh-stats .rh-ns { grid-column: 1 / -1; }
.rh-stats dt { font-size: 11px; color: var(--muted); }
.rh-stats dd { margin: 0; font-weight: 700; font-size: 15px; }
.rh-need summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--pt, var(--p)); min-height: 32px; display: flex; align-items: center; }
.rh-need p { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.rh-need a { color: var(--pt, var(--p)); }
.rh-pick { margin-top: auto; display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.rh-pick input { width: 22px; height: 22px; accent-color: var(--p); }
.rh-dock { position: sticky; bottom: 16px; z-index: 30; margin: 24px auto 0; max-width: 640px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 999px;
  background: rgba(17, 17, 20, .92); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.rh-dock p { margin: 0 auto 0 8px; }
.rh-dock .rh-msg { color: #d9d9de; width: 100%; text-align: center; margin: 0; font-size: 13px; }
.rh-dock .rh-msg:empty { display: none; }
html.os .rh-dock .ob-btn--q { color: #fff; }
.rh-result { margin-top: 24px; }
.rh-steps { background: var(--alt); border-radius: var(--r); padding: 28px; }
.rh-steps h3 { margin: 0 0 12px; font-size: 22px; }
.rh-steps ol { margin: 0 0 16px; padding-left: 22px; } .rh-steps li { margin-bottom: 6px; }
.rh-opt { font-weight: 700; margin: 20px 0 8px; }
.rh-copy { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: start; margin: 0 0 14px; }
.rh-copy span { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--muted); }
.rh-copy pre { margin: 0; background: #111114; color: #f2f2f4; border-radius: 12px; padding: 12px 14px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; font-size: 13px; max-height: 260px; }
.rh-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rh-h3 { font-size: 22px; margin: 28px 0 12px; }
.rh-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rh-list li { background: var(--alt); border-radius: 14px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 15px; }
.rh-list li > span { color: var(--muted); font-size: 13px; }
.rh-list li > p { margin: 0; width: 100%; color: var(--muted); font-size: 14px; }
.rh-list li button { margin-left: auto; }
.rh-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fff; box-shadow: inset 0 0 0 1px #c9cbd1; }
.rh-form { max-width: none; }
.rh-form textarea { font: inherit; }
.rh-form select { width: 100%; }
@media (max-width: 860px) { .rh-tools { grid-template-columns: 1fr 1fr; } .rh-tools .rh-field:first-child { grid-column: 1 / -1; } .rh-cols { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .rh-stats { grid-template-columns: repeat(2, 1fr); } .rh-dock { border-radius: 22px; } .rh-row button { width: 100%; } .rh-grid { grid-template-columns: 1fr; } }
.rh-rot { list-style: none; padding: 0; margin: 18px auto 28px; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.3; max-width: 34ch; min-height: 2.7em; }
.rh-rot b { color: var(--pt, var(--p)); }
.rh-flow { list-style: none; padding: 0; margin: 26px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 15px; color: var(--muted); }
.rh-flow b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--p); color: var(--pi, #fff); font-size: 13px; margin-right: 6px; }
.rh-count { list-style: none; padding: 0; margin: 30px auto 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-width: 900px; }
.rh-count li { background: rgba(255,255,255,.75); border-radius: 18px; padding: 14px 10px; display: grid; gap: 2px; }
.rh-count b { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; }
.rh-count span { font-size: 12px; color: var(--muted); }
.rh-prog { display: grid; gap: 4px; }
.rh-prog progress { width: 100%; height: 8px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 99px; background: var(--alt); overflow: hidden; }
.rh-prog progress::-webkit-progress-bar { background: var(--alt); border-radius: 99px; }
.rh-prog progress::-webkit-progress-value { background: var(--p); border-radius: 99px; }
.rh-prog progress::-moz-progress-bar { background: var(--p); border-radius: 99px; }
.rh-prog span { font-size: 12px; color: var(--muted); }
.rh-card__live { margin: 0; font-size: 13px; font-weight: 600; color: var(--pt, var(--p)); }
.rh-card__act { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.rh-card__act .rh-pick { margin-top: 0; }
.rh-card__act button { border: 0; cursor: pointer; font-family: inherit; }
.rh-board { counter-reset: rk; }
.rh-board li[data-rank]::before { counter-increment: rk; content: counter(rk); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--p); color: var(--pi, #fff); font-weight: 700; font-size: 13px; }
.rh-flash { animation: rhf 1.2s ease-out; }
@keyframes rhf { from { box-shadow: inset 0 0 0 2px var(--p); } to { box-shadow: inset 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .rh-flash { animation: none; } }
@media (max-width: 860px) { .rh-count { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rh-count { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.os-sec--alt .rh-list li { background: var(--bg); }
html.os .rh-dock .ob-btn--q { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
