/* Root Brief: one navigation row and a persistent feedback composer. */
.q-node-toolbar { flex: none; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-bottom: 1px solid #e2e9da; background: #fff; }
.q-node-toolbar .q-node-tabs { flex: 1; min-width: 0; min-height: 48px; padding: 0; gap: 20px; border: 0; align-self: stretch; overflow-y: hidden; scrollbar-width: none; }
:is(#scoping-app, #scoping-modal) .q-node-toolbar .q-node-tabs button { padding: 0; min-height: 48px; }
.q-brief-utilities { display: flex; align-items: center; gap: 3px; flex: none; }
:is(#scoping-app, #scoping-modal) .q-brief-utilities > .q-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 31px; min-width: 29px; padding: 5px !important; color: #859778; }
.q-brief-utilities .q-icon { width: 15px; height: 15px; }
:is(#scoping-app, #scoping-modal) .q-brief-utilities > .q-brief-meta { font-size: 10px; white-space: nowrap; min-width: 0; margin-right: 3px; }
.q-root-detail > .q-node-detail-body { padding-top: 18px; }
.q-brief-footer { position: relative; gap: 9px; padding-top: 11px; padding-bottom: 12px; }
.q-brief-composer { display: flex; align-items: flex-end; gap: 7px; margin: 0; }
.q-brief-composer > textarea { flex: 1; width: 0; min-width: 0; min-height: 36px; max-height: 140px; height: 36px; padding: 8px 11px; border: 1px solid #d6e1ce; border-radius: 7px; background: #fafcf8; color: #46673e; font: inherit; font-size: 12px; line-height: 20px; resize: none; overflow-y: auto; box-sizing: border-box; }
.q-brief-composer > textarea::placeholder { color: #91a187; }
.q-brief-composer > textarea:focus { outline: none; border-color: #85a871; box-shadow: 0 0 0 2px #8ba57d13; background: #fff; }
:is(#scoping-app, #scoping-modal) .q-brief-composer > .q-brief-send { width: 36px; min-width: 36px; min-height: 36px; height: 36px; padding: 7px !important; border-radius: 7px; }
.q-brief-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.q-brief-task-state { display: flex; align-items: center; gap: 7px; min-width: 0; color: #8b9981; font-size: 10px; line-height: 1.6; }
.q-task-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #becbb3; }
.q-brief-task-state.is-confirmed { color: #658254; }
.q-brief-task-state.is-confirmed .q-task-dot { background: #80a66b; }
.q-brief-task-state.is-active { color: #456f4f; }
.q-brief-task-state.is-active .q-task-dot { background: #4e875f; animation: q-status-pulse 1.4s ease-in-out infinite; }
.q-brief-task-state.is-failed { color: #a65e50; }
.q-brief-task-state.is-failed .q-task-dot { background: #bd7d69; }
.q-brief-footer-row > .q-btn { min-height: 32px; padding: 5px 12px; }
.q-brief-footer.is-working::before { content: ''; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: linear-gradient(90deg, #e3ebdd, #739d60, #e3ebdd); background-size: 200% 100%; animation: q-brief-working 2s linear infinite; }
@keyframes q-brief-working { to { background-position: -200% 0; } }
@media (max-width: 600px) {
  .q-node-toolbar { padding-inline: 14px; gap: 6px; }
  .q-node-toolbar .q-node-tabs { gap: 15px; }
  :is(#scoping-app, #scoping-modal) .q-brief-utilities > .q-btn { min-width: 30px; min-height: 36px; }
  .q-brief-utilities { gap: 1px; }
  :is(#scoping-app, #scoping-modal) .q-brief-utilities > .q-brief-meta { font-size: 9px; margin-right: 0; }
  .q-brief-composer > textarea { font-size: 16px; }
  .q-brief-footer-row > .q-btn { min-height: 39px; }
}
@media (prefers-reduced-motion: reduce) { .q-brief-footer.is-working::before, .q-brief-task-state.is-active .q-task-dot { animation: none; } }
