.needs-tag {
  display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px 0 7px; border-radius: 999px; flex: none;
  font-size: 11.5px; font-weight: 680; white-space: nowrap; letter-spacing: .005em;
  color: #fff; background: var(--accent); box-shadow: 0 1px 2px rgb(110 30 0 / .25);
}
.needs-tag .i { color: #fff; }
.needs-link { text-decoration: none; }
.thread-row.needs-human, .task-row.needs-human { box-shadow: inset 3px 0 0 var(--accent); }
.task-row .task-title { display: inline-flex; align-items: center; gap: 8px; }
.board-card.needs-human { border-color: var(--accent-line); box-shadow: var(--shadow-sm), 0 0 0 1px var(--accent-line); }
.bc-needs { margin: -2px 0 -2px; }
.nav-needs.has-needs { color: var(--text); font-weight: 600; }
.nav-needs.has-needs .i { color: var(--accent-fg); }
.mention-tag.is-done { color: var(--s-done); }
.inbox-item.is-decision { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
.inbox-item.is-decision::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }

.decisions-pinned { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.decision-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 14px; border-radius: 15px;
  border: 1px solid var(--accent-line);
  background: linear-gradient(180deg, light-dark(#fff6f1, #241811), var(--surface) 70%);
  box-shadow: var(--shadow-sm), 0 10px 30px -18px light-dark(rgb(207 74 27 / .45), rgb(0 0 0 / .8));
  transition: opacity 200ms, box-shadow 300ms;
}
.decision-card.is-sent { opacity: .55; pointer-events: none; }
.decision-card.is-flash { box-shadow: 0 0 0 4px var(--accent-ring), var(--shadow-md); }
.decision-card.is-answered { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-sm); gap: 8px; }
.dc-thread { font: 650 14.5px/1.35 var(--font-display); color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.dc-thread:hover { color: var(--accent-fg); }
.dc-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 12.5px; color: var(--text-2); }
.dc-asker { display: inline-flex; align-items: center; gap: 6px; }
.dc-to b { color: var(--text); font-weight: 620; }
.dc-withdraw { margin-left: auto; }
.dc-question { font-size: 15px; line-height: 1.55; font-weight: 520; }
.dc-question p { margin-bottom: 8px; }
.dc-question-quiet { font-size: 13.5px; font-weight: 450; color: var(--text-2); }
.dc-options { display: flex; flex-direction: column; gap: 8px; }
.dc-opt {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 11px 12px 11px 13px; text-align: left;
  border-radius: 11px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
  transition: border-color var(--t), box-shadow var(--t), background var(--t), transform 80ms;
}
.dc-opt:not(.is-disabled):hover { border-color: light-dark(#e9b49c, #6b3a24); background: light-dark(#fffaf7, #1f1a17); }
.dc-opt:not(.is-disabled):active { transform: scale(.995); }
.dc-opt { cursor: pointer; }
.dc-opt.is-disabled { cursor: default; }
.dc-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dc-opt.is-picked { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-ring); }
.dc-opt.is-rec:not(.is-picked) { border-color: light-dark(#cfe8da, #24452f); }
.dc-radio { width: 18px; height: 18px; flex: none; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--border-2); background: var(--surface); display: grid; place-items: center; transition: border-color var(--t), background var(--t); }
.dc-opt.is-picked .dc-radio { border-color: var(--accent); background: var(--accent); }
.dc-opt.is-picked .dc-radio::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.dc-opt-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.dc-opt-label { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 640; font-size: 14px; }
.dc-opt-desc { color: var(--text-2); font-size: 13px; line-height: 1.45; }
.dc-opt kbd { margin-top: 1px; }
.rec-tag { display: inline-flex; align-items: center; gap: 3px; height: 19px; padding: 0 7px 0 5px; border-radius: 999px; font-size: 11px; font-weight: 680; color: var(--s-done); background: var(--ok-soft); }
.dc-other { border-style: dashed; }
.dc-other .dc-opt-label { font-weight: 600; color: var(--text-2); }
.dc-other.is-picked .dc-opt-label { color: var(--text); }
.dc-other-wrap textarea, .dc-note-wrap textarea { min-height: 0; font-size: 13.5px; }
.dc-note-wrap textarea { background: transparent; }
.dc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 2px; }
.dc-hint { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12px; }
.dc-foot-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.dc-delegate-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.dc-delegate { white-space: nowrap; }
.dc-delegate-hint { padding-left: 2px; color: var(--text-3); font-size: 11px; }
.dc-waiting { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-3); font-size: 11px; font-weight: 620; }
.dc-atts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.dc-att { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 7px; background: var(--surface-3); color: var(--text-2); font-size: 12px; text-decoration: none; }
.dc-att-img img { display: block; max-width: 220px; max-height: 140px; border-radius: 8px; border: 1px solid var(--border); }

.sys-ic.is-flag { background: var(--accent); color: #fff; }
.tl-decision .link-btn { margin-left: 4px; }
.decided-choice { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px; background: var(--ok-soft); color: light-dark(#17643d, #8fe0b5); font-weight: 650; }
.decided-note { display: block; margin-top: 6px; padding: 8px 12px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; color: var(--text); }
.decision-card.is-answered .tl-decided { padding: 0; }

.needs-summary { color: var(--text-2); font-size: 13px; margin: -6px 0 14px; }
.needs-list { display: flex; flex-direction: column; gap: 16px; }

.ask-kind { margin-bottom: 16px; }
.opt-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 8px; align-items: start; padding: 8px 0; border-top: 1px dashed var(--border); }
.opt-row:first-child { border-top: 0; padding-top: 0; }
.opt-num { width: 22px; height: 22px; margin-top: 6px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); font-size: 11.5px; font-weight: 700; }
.opt-fields { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.opt-fields .opt-desc { height: 30px; font-size: 12.5px; }
.opt-rec { display: inline-flex; align-items: center; margin-top: 4px; cursor: pointer; }
.opt-rec input { position: absolute; opacity: 0; pointer-events: none; }
.opt-rec span { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 620; color: var(--text-3); border: 1px dashed var(--border-2); transition: all var(--t); }
.opt-rec input:checked + span { color: var(--s-done); background: var(--ok-soft); border: 1px solid transparent; }
.opt-rec input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt-del { margin-top: 2px; }
#ask-add { margin-top: 2px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); align-self: end; padding-bottom: 22px; cursor: pointer; }
.check-row input { width: 16px; height: 16px; accent-color: var(--accent); }

@media (max-width: 820px) {
  .decision-card { padding: 14px 12px 12px; }
  .dc-opt kbd { display: none; }
  .dc-hint { display: none; }
  .dc-foot .btn { width: 100%; }
  .dc-foot-actions { flex-direction: column-reverse; width: 100%; margin-left: 0; }
  .dc-delegate-wrap { width: 100%; align-items: center; }
  .dc-delegate kbd { display: none; }
  .opt-row { grid-template-columns: minmax(0, 1fr) auto; }
  .opt-num { display: none; }
  .opt-rec { grid-column: 1; margin-top: 0; }
  .opt-del { grid-column: 2; grid-row: 1; }
  .thread-actions #ask-btn { order: -1; }
}
@media (max-width: 900px) {
  .thread-cols:has(.decisions-pinned) .side { order: 1; }
}

.decided-choice.is-delegated { background: var(--surface-3); color: var(--text); }
