:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #283d34;
  background: #f7f8f5;
  font-synthesis: none;
  --q-ink: #253d32;
  --q-muted: #66746b;
  --q-faint: #788572;
  --q-green: #27634e;
  --q-green-dark: #1e503f;
  --q-green-soft: #edf4ee;
  --q-line: #e1e7df;
  --q-paper: #fff;
  --q-warm: #f7f8f4;
  --q-serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, input, textarea, select, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .48; }
input, textarea, select { color: var(--q-ink); }
a { color: var(--q-green); text-decoration: none; }
a:hover { text-decoration: underline; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #89ad9a;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
#scoping-app { min-height: 100dvh; }
:is(#scoping-app, #scoping-modal) button { border: 0; background: none; }
:is(#scoping-app, #scoping-modal) p { margin: 0; }
:is(#scoping-app, #scoping-modal) h1, :is(#scoping-app, #scoping-modal) h2, :is(#scoping-app, #scoping-modal) h3, :is(#scoping-app, #scoping-modal) h4 { margin: 0; }
:is(#scoping-app, #scoping-modal) strong { font-weight: 600; }
.q-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.q-icon { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.q-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.q-spread { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; }
.q-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.q-muted { color: var(--q-muted); }
.q-small { font-size: 12px; line-height: 1.7; }

.q-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); height: 100dvh; overflow: hidden; }
.q-sidebar { display: flex; flex-direction: column; gap: 27px; padding: 28px 18px 20px; background: #213b31; color: #dae5da; overflow-y: auto; min-height: 0; }
.q-brand { display: flex; align-items: center; gap: 12px; padding: 0 12px; color: #f2f6ed; text-decoration: none !important; }
.q-brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #6b8a73; border-radius: 10px; color: #d2e3bb; }
.q-brand-mark .q-icon { width: 22px; height: 22px; }
.q-brand-copy { display: flex; flex-direction: column; gap: 2px; }
.q-brand-copy strong { font-family: var(--q-serif); font-size: 23px; font-weight: 600; letter-spacing: 4px; }
.q-brand-copy small { font-size: 9px; letter-spacing: 1.5px; color: #a9bda8; }
.q-nav { display: grid; gap: 6px; }
:is(#scoping-app, #scoping-modal) .q-nav-item { width: 100%; display: flex; align-items: center; gap: 11px; border-radius: 7px; padding: 12px 14px; color: #bbcdbb; text-align: left; font-size: 13px; line-height: 1.5; }
:is(#scoping-app, #scoping-modal) .q-nav-item:hover { color: #f4f7ed; background: #304c3d; }
:is(#scoping-app, #scoping-modal) .q-nav-item.is-active { color: #edf5e5; background: #3a5745; }
.q-nav-item .q-icon { width: 17px; height: 17px; color: #acc39e; }
.q-section-label { font-size: 10px; letter-spacing: 1.4px; font-weight: 500; color: #93aa93; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; margin-bottom: 12px; }
.q-project-list { display: grid; gap: 5px; }
:is(#scoping-app, #scoping-modal) .q-project-item { width: 100%; min-width: 0; text-align: left; padding: 11px 13px; border-radius: 7px; display: flex; flex-direction: column; gap: 7px; color: #b7c9b5; }
:is(#scoping-app, #scoping-modal) .q-project-item:hover { background: #2d493a; }
:is(#scoping-app, #scoping-modal) .q-project-item.is-active { background: #304e3e; color: #edf3e7; box-shadow: inset 2px 0 #a7c48e; }
.q-project-item strong, .q-project-item > span:first-child { font-weight: 450; font-size: 12px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.q-project-item small { font-size: 10px; color: #93ac91; display: flex; align-items: center; gap: 6px; }
.q-project-item small::before { content: ""; height: 4px; width: 4px; background: #8eaa80; border-radius: 50%; }
.q-sidebar-empty { padding: 4px 14px; color: #94ab94; font-size: 12px; line-height: 1.8; }
.q-sidebar-footer { margin-top: auto; padding: 18px 12px 0; border-top: 1px solid #3d5745; display: grid; gap: 13px; color: #adc2a9; }
.q-sidebar-footer a { color: #c6d8bf; font-size: 11px; }
.q-sidebar-footer .q-btn { justify-content: flex-start; color: #c6d8bf; padding-inline: 0; }
.q-sidebar-footnote { font-size: 10px; color: #93a88f; line-height: 1.8; }

.q-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.q-topbar { min-height: 72px; padding: 16px 34px; display: flex; align-items: center; gap: 20px; background: #fff; border-bottom: 1px solid var(--q-line); }
.q-breadcrumb { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--q-muted); font-size: 12px; line-height: 1.6; }
.q-breadcrumb > span:last-child { color: #3e5749; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 340px; }
.q-breadcrumb .q-icon { width: 14px; height: 14px; color: #a7b09e; }
.q-mode-switch { display: inline-flex; gap: 3px; padding: 3px; background: #f2f5ef; border: 1px solid #e7ece2; border-radius: 8px; margin-left: auto; flex: none; }
:is(#scoping-app, #scoping-modal) .q-mode-switch button { display: flex; align-items: center; gap: 7px; padding: 7px 14px; font-size: 12px; color: #83917b; border-radius: 5px; }
:is(#scoping-app, #scoping-modal) .q-mode-switch button.is-active, :is(#scoping-app, #scoping-modal) .q-mode-switch button[aria-pressed="true"] { color: #345f43; background: #fff; box-shadow: 0 1px 4px #2538260e; font-weight: 550; }
.q-mode-switch .q-icon { width: 14px; height: 14px; }
:is(#scoping-app, #scoping-modal) .q-model-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #dfe7dc; border-radius: 6px; color: #5f7656; font-size: 11px; white-space: nowrap; background: #fff; }
.q-model-pill i { width: 5px; height: 5px; border-radius: 50%; background: #699565; }
.q-model-pill.offline i { background: #bd9a55; }
.q-topbar .q-icon-button { display: none; }
.q-content { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 31px 36px 0; scrollbar-color: #d1dbca transparent; scrollbar-width: thin; }
.q-page-head { margin-bottom: 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.q-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-size: 10px; font-weight: 550; letter-spacing: 1.7px; color: #839373; text-transform: uppercase; }
.q-title { font-family: var(--q-serif); font-size: clamp(24px, 2.4vw, 32px); font-weight: 550; line-height: 1.55; letter-spacing: .7px; color: #2e4c35; }
.q-subtitle { color: #68785e; font-size: 12px; line-height: 1.9; margin-top: 8px !important; max-width: 730px; }
.q-page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #758568; font-size: 10px; margin-top: 12px; }
.q-stepper { display: flex; align-items: center; gap: 9px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid #e3e9dc; }
.q-step { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: #a0aa92; line-height: 1.6; }
.q-step > span:first-child, .q-step-number { border: 1px solid #dbe3d2; background: #f7f9f3; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; font-size: 9px; flex: none; }
.q-step.is-active { color: #436d3d; font-weight: 600; }
.q-step.is-active > span:first-child, .q-step.is-active .q-step-number { background: #e9f1e3; border-color: #9db68f; color: #4d7740; }
.q-step.is-done { color: #5f8051; }
.q-step-line { width: 42px; height: 1px; background: #dce4d4; }

.q-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 252px; align-items: start; gap: 24px; padding-bottom: 25px; }
.q-primary { min-width: 0; display: grid; gap: 23px; }
.q-rail { display: grid; gap: 24px; padding-top: 2px; min-width: 0; }
.q-card { border: 1px solid #dfe6d9; background: var(--q-paper); border-radius: 12px; box-shadow: 0 3px 13px #243a2504; min-width: 0; }
.q-card-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 19px 23px 15px; }
.q-card-head h2, .q-section-title { font-size: 13px; font-weight: 600; line-height: 1.7; color: #4b6740; }
.q-card-head h2 { display: flex; align-items: center; gap: 9px; }
.q-card-head h2 .q-icon { width: 17px; height: 17px; color: #7f9a6b; }
.q-card-body { padding: 0 23px 23px; }
.q-card-body + .q-card-body { border-top: 1px solid #edf0e8; padding-top: 21px; }
.q-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: #8e8c70; background: #f6f4e9; padding: 4px 8px; line-height: 1.4; border-radius: 5px; white-space: nowrap; }
.q-badge.green { color: #5b8050; background: #edf4e7; }
.q-badge.amber { color: #947339; background: #faf1de; }
.q-badge.neutral { background: #f1f3ed; color: #7d8b72; }
.q-brief-title { font-family: var(--q-serif); color: #365632; font-size: 22px; line-height: 1.8; font-weight: 550; letter-spacing: .35px; margin-bottom: 12px !important; }
.q-brief-text { color: #64775a; font-size: 13px; line-height: 2.05; white-space: pre-wrap; overflow-wrap: anywhere; }
.q-brief-text + .q-brief-text { margin-top: 12px !important; }
.q-brief-details { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--q-line); }
.q-brief-details summary { cursor: pointer; color: #5b7750; font-size: 12px; line-height: 1.9; }
.q-brief-details[open] summary { margin-bottom: 14px; }
.q-brief-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 21px; padding-top: 19px; margin-top: 19px; border-top: 1px solid #e9eee2; }
.q-brief-field { min-width: 0; }
.q-brief-field dt { color: #718365; font-size: 10px; line-height: 1.6; margin-bottom: 5px; }
.q-brief-field dd { color: #6c805c; font-size: 12px; line-height: 1.9; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.q-source-label { color: #748767; font-size: 10px; display: inline-flex; align-items: center; gap: 5px; margin-top: 11px; }
.q-inline-edit { width: 100%; min-height: 120px; padding: 12px 13px; border: 1px solid #c6d6bc; background: #fbfdf8; border-radius: 7px; resize: vertical; color: #506d42; font-size: 13px; line-height: 1.9; }
.q-brief-edit { display: grid; gap: 13px; }
.q-ambiguities-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.q-ambiguities-head small { font-size: 10px; color: #778b68; }
.q-ambiguity-list { display: grid; gap: 15px; }
.q-ambiguity { padding: 21px 23px; border: 1px solid #e0e7d9; border-radius: 10px; background: #fff; min-width: 0; }
.q-ambiguity-head { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.q-number { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #eff4e9; color: #70905c; font-size: 10px; flex: none; }
.q-ambiguity-head h3 { color: #527042; font-size: 13px; line-height: 1.7; font-weight: 600; flex: 1; min-width: 0; }
.q-ambiguity-head .q-badge { margin-left: auto; }
.q-field-line { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 13px; margin: 0 0 10px; }
.q-field-line dt { font-size: 10px; color: #718366; line-height: 1.9; padding-top: 1px; }
.q-field-line dd { font-size: 12px; color: #61784f; line-height: 1.9; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.q-recommendation { background: #f3f7ed; border: 1px solid #e5ecdb; border-radius: 7px; padding: 13px 14px; margin: 14px 0; }
.q-recommendation > small { display: flex; align-items: center; gap: 6px; color: #6a8555; font-size: 10px; margin-bottom: 5px; }
.q-recommendation strong { font-size: 12px; color: #567546; line-height: 1.8; font-weight: 550; }
.q-recommendation p { color: #657e53; font-size: 11px; line-height: 1.9; margin-top: 5px !important; }
.q-choice-list { display: grid; gap: 8px; margin-top: 13px; }
.q-choice-list.inline { display: flex; flex-wrap: wrap; gap: 8px; }
.q-choice { display: flex; align-items: flex-start; gap: 9px; padding: 11px 12px; border: 1px solid #e2e8da; border-radius: 7px; background: #fff; min-width: 0; font-size: 12px; color: #607752; line-height: 1.7; cursor: pointer; }
.q-choice:hover { border-color: #b8cba9; background: #fbfdf8; }
.q-choice.is-selected, .q-choice:has(input:checked) { border-color: #7fa16b; background: #f1f6eb; color: #4f743d; }
.q-choice.is-recommended { border-color: #bfcea9; }
.q-choice input[type="radio"], .q-choice input[type="checkbox"] { margin: 3px 0 0; width: 14px; height: 14px; flex: none; accent-color: #63884e; }
.q-choice-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.q-choice-copy strong { font-weight: 500; color: inherit; }
.q-choice-copy small { color: #738469; font-size: 10px; line-height: 1.7; }
.q-choice .q-badge { margin-left: auto; align-self: center; }
.q-choice-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.q-feedback-input { width: 100%; min-height: 77px; border: 1px solid #dfe7d7; border-radius: 7px; padding: 11px 12px; background: #fbfcf9; resize: vertical; font-size: 12px; line-height: 1.9; margin-top: 11px; }
.q-feedback-input::placeholder, .q-inline-edit::placeholder, .q-input-area::placeholder { color: #a4b098; }
.q-feedback-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 10px; line-height: 1.8; color: #6e8260; }
.q-feedback-note .q-icon { width: 13px; height: 13px; }
.q-comments { padding: 19px 23px 22px; }
.q-comments label { display: block; font-size: 12px; color: #6a8257; margin-bottom: 10px; }

:is(#scoping-app, #scoping-modal) .q-btn { min-height: 37px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border: 1px solid #d7e1cf; border-radius: 7px; background: #fff; color: #617b50; font-size: 12px; line-height: 1.6; white-space: nowrap; text-decoration: none; }
:is(#scoping-app, #scoping-modal) .q-btn:hover { background: #f3f7ed; border-color: #afc49e; }
:is(#scoping-app, #scoping-modal) .q-btn.primary { background: #2d654c; border-color: #2d654c; color: #fff; box-shadow: 0 2px 4px #24452f0b; }
:is(#scoping-app, #scoping-modal) .q-btn.primary:hover { background: #24573f; border-color: #24573f; }
:is(#scoping-app, #scoping-modal) .q-btn.secondary { background: #f5f8f1; color: #547441; border-color: #c9d8be; }
:is(#scoping-app, #scoping-modal) .q-btn.ghost { background: none; border-color: transparent; color: #81966e; box-shadow: none; padding-inline: 8px; }
:is(#scoping-app, #scoping-modal) .q-btn.ghost:hover { color: #486f36; background: #f2f6ec; }
:is(#scoping-app, #scoping-modal) .q-btn.small { min-height: 29px; padding: 5px 9px; font-size: 10px; }
.q-btn .q-icon { width: 15px; height: 15px; }
:is(#scoping-app, #scoping-modal) .q-icon-button { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; color: #8fa27b; border-radius: 6px; padding: 0; flex: none; }
:is(#scoping-app, #scoping-modal) .q-icon-button:hover { background: #eff5e6; color: #577e41; }
.q-actions-bar { position: sticky; bottom: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0 22px; background: linear-gradient(#f7f8f4ee, #f7f8f4 23%); border-top: 1px solid #e4e9dd; margin-top: 0; backdrop-filter: blur(10px); }
.q-actions-note { color: #6d805d; font-size: 10px; line-height: 1.8; display: flex; align-items: center; gap: 6px; }
.q-actions-note .q-icon { width: 13px; height: 13px; }
.q-actions-buttons { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.q-actions-bar .q-btn.primary { padding-inline: 19px; }
.q-rail-section { border-bottom: 1px solid #e1e7d8; padding-bottom: 20px; }
.q-rail-section:last-child { border-bottom: 0; }
.q-rail-section h3 { display: flex; align-items: center; gap: 7px; color: #667f52; font-size: 11px; font-weight: 550; letter-spacing: .2px; margin-bottom: 12px !important; }
.q-rail-section h3 .q-icon { width: 14px; height: 14px; color: #91a57d; }
.q-rail-section > p, .q-original-input { color: #627a50; font-size: 11px; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.q-rail-section .q-small { color: #718365; font-size: 10px; line-height: 1.9; }
.q-rail-label { color: #78876d; font-size: 9px; margin-bottom: 6px; }
.q-timeline { display: grid; margin: 0; padding: 0; list-style: none; }
.q-timeline-item { position: relative; padding: 0 0 19px 20px; border-left: 1px solid #d5e0ca; margin-left: 4px; }
.q-timeline-item::before { content: ""; position: absolute; left: -4px; top: 5px; width: 7px; height: 7px; background: #f7f8f4; border: 1px solid #a6be93; border-radius: 50%; }
.q-timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.q-timeline-item.is-active::before { background: #6e9257; border-color: #6e9257; }
.q-timeline-item strong { display: block; color: #6a8556; font-size: 11px; font-weight: 500; line-height: 1.8; }
.q-timeline-item p { color: #708361; font-size: 10px; line-height: 1.8; margin-top: 4px !important; }
.q-timeline-item small { display: block; color: #7b8d68; font-size: 9px; line-height: 1.8; margin-top: 5px; }
.q-history-button { text-align: left; width: 100%; }
.q-history-count { display: inline-grid; place-items: center; height: 16px; min-width: 16px; border-radius: 4px; color: #91a67b; background: #eaf1e1; font-size: 9px; }

.q-landing { max-width: 820px; width: 100%; margin: clamp(30px, 7vh, 90px) auto 40px; }
.q-landing-mark { width: 48px; height: 48px; color: #719157; border-radius: 13px; border: 1px solid #d7e4ca; background: #f0f6e7; display: grid; place-items: center; margin-bottom: 24px; }
.q-landing-mark .q-icon { width: 25px; height: 25px; }
.q-landing .q-title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.55; }
.q-landing .q-subtitle { margin-top: 12px !important; color: #687e55; font-size: 13px; line-height: 2; }
.q-input-card { margin-top: 30px; background: #fff; border: 1px solid #d8e3ce; border-radius: 13px; box-shadow: 0 6px 26px #34522306; overflow: hidden; }
.q-input-area { display: block; width: 100%; min-height: 160px; padding: 23px 24px 15px; border: 0; outline: none; resize: vertical; font-size: 15px; line-height: 1.95; color: #4d6d3c; background: none; }
.q-input-area:focus-visible { outline: none; }
.q-input-card:focus-within { border-color: #8fab79; box-shadow: 0 0 0 3px #7091500b; }
.q-input-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 18px 17px; border-top: 1px solid #eff3e8; }
.q-input-footer > span { color: #758965; font-size: 10px; line-height: 1.8; }
.q-input-footer > span .q-icon { width: 13px; height: 13px; margin-right: 4px; }
.q-examples { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.q-examples > span { color: #788c68; font-size: 10px; margin-right: 2px; }
:is(#scoping-app, #scoping-modal) .q-example { text-align: left; padding: 7px 11px; color: #657f50; border: 1px solid #e0e8d6; border-radius: 6px; background: #f8fbf3; font-size: 10px; line-height: 1.7; }
:is(#scoping-app, #scoping-modal) .q-example:hover { border-color: #b7caa4; color: #587f41; background: #f0f6e7; }
.q-landing-footnote { margin-top: 30px; color: #758766; font-size: 10px; line-height: 1.9; }
.q-landing-footnote .q-icon { width: 12px; height: 12px; margin-right: 5px; }
.q-empty { padding: 38px 20px; text-align: center; color: #6b8358; font-size: 12px; line-height: 1.9; }
.q-alert { display: flex; align-items: flex-start; gap: 9px; padding: 13px 15px; border: 1px solid #e5e9d6; border-radius: 7px; background: #f7f8ec; color: #8c8a58; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.q-alert .q-icon { width: 16px; height: 16px; margin-top: 3px; }
.q-alert.error { background: #fff5ed; border-color: #edd6c2; color: #a05d38; }
.q-alert.success { background: #eff7e8; border-color: #d1e2c4; color: #658b4d; }
.q-alert.info { background: #f1f5ed; border-color: #dfe7d7; color: #7b9265; }
.q-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 24px; font-size: 12px; line-height: 1.8; color: #81986a; }
.q-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #d7e3cd; border-top-color: #76965e; border-radius: 50%; flex: none; animation: q-spin 1s linear infinite; }
@keyframes q-spin { to { transform: rotate(360deg); } }
.q-loading-card { min-height: 150px; display: grid; place-items: center; }
.q-skeleton { height: 11px; border-radius: 4px; background: linear-gradient(90deg, #edf2e5, #f7f9f3, #edf2e5); background-size: 220% 100%; animation: q-shimmer 2s ease-in-out infinite; }
@keyframes q-shimmer { to { background-position: -220% 0; } }

.q-dialog-overlay { position: fixed; inset: 0; background: #172f2366; backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 28px; z-index: 100; overflow-y: auto; }
.q-dialog { width: 620px; max-width: 100%; max-height: calc(100dvh - 56px); overflow: hidden; display: flex; flex-direction: column; border: 1px solid #dce5d3; border-radius: 15px; background: #fff; box-shadow: 0 20px 70px #1630201a; color: var(--q-ink); }
.q-dialog.wide { width: 800px; }
.q-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px 21px; border-bottom: 1px solid #e6ecdf; }
.q-dialog-head h2 { font-family: var(--q-serif); font-size: 21px; line-height: 1.6; font-weight: 550; color: #456939; }
.q-dialog-head p { font-size: 11px; line-height: 1.8; color: #748969; margin-top: 5px !important; }
.q-dialog-body { padding: 22px 26px 25px; overflow-y: auto; min-height: 0; }
.q-dialog-footer { padding: 17px 26px 20px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; background: #fbfcf8; border-top: 1px solid #e5ecdd; flex-wrap: wrap; }
.q-dialog-footer .q-help { margin-right: auto; margin-top: 0; max-width: 290px; }
.q-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.q-field { min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 11px; color: #667f53; }
.q-field.full { grid-column: 1 / -1; }
.q-field > label, .q-field > span:first-child { color: #6f875d; font-size: 11px; }
.q-field input, .q-field select, .q-field textarea { display: block; width: 100%; min-width: 0; min-height: 39px; padding: 10px 11px; border: 1px solid #dce6d2; background: #fbfdf8; border-radius: 6px; color: #5b7948; font-size: 12px; }
.q-field input::placeholder, .q-field textarea::placeholder { color: #abb79e; }
.q-field input:focus, .q-field select:focus, .q-field textarea:focus { border-color: #8da97c; }
.q-field textarea { resize: vertical; min-height: 100px; line-height: 1.9; }
.q-field input[type="checkbox"], .q-field input[type="radio"] { width: 15px; height: 15px; min-height: 15px; accent-color: #709559; }
.q-help { font-size: 10px; line-height: 1.8; color: #728662; margin-top: 6px; }
.q-provider-tabs { display: flex; gap: 7px; margin-bottom: 21px; flex-wrap: wrap; }
:is(#scoping-app, #scoping-modal) .q-provider-tabs button { padding: 9px 12px; border: 1px solid #dfe7d6; border-radius: 6px; color: #92a47d; font-size: 11px; background: #fbfcf8; }
:is(#scoping-app, #scoping-modal) .q-provider-tabs button.is-active { color: #64854b; border-color: #a9c195; background: #f0f6e8; }
.q-secret-field { position: relative; }
.q-secret-field input { padding-right: 40px; }
.q-secret-field button { position: absolute; right: 4px; top: 4px; }
.q-config-status { margin-top: 16px; }
.q-advanced { margin-top: 22px; border-top: 1px solid #e7edde; padding-top: 16px; }
.q-advanced summary { cursor: pointer; color: #6c8558; font-size: 11px; }
.q-advanced .q-form-grid { margin-top: 17px; }
.q-prompt-view { max-height: 310px; padding: 15px 16px; border: 1px solid #e2e9d8; border-radius: 6px; background: #fafcf6; overflow: auto; color: #7e9566; font-size: 11px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.q-record-list { display: grid; gap: 12px; }
.q-record-item { border: 1px solid #e1e9d6; border-radius: 7px; padding: 13px 14px; background: #fcfdf9; }
.q-record-item strong { color: #718f58; font-size: 11px; }
.q-record-item p { font-size: 11px; color: #71885e; line-height: 1.9; margin-top: 6px !important; white-space: pre-wrap; overflow-wrap: anywhere; }
.q-record-item small { display: block; color: #7b8f68; font-size: 9px; line-height: 1.8; margin-top: 6px; overflow-wrap: anywhere; }

.q-reader { max-width: 830px; margin: 0 auto; padding: 16px 20px 90px; }
.q-reader-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 10px; color: #76896a; margin-bottom: 16px; }
.q-reader-title { font-family: var(--q-serif); font-size: clamp(26px, 3.3vw, 39px); line-height: 1.7; font-weight: 550; letter-spacing: .5px; color: #355b32; margin-bottom: 25px !important; }
.q-reader-body { color: #607650; font-size: 14px; line-height: 2.2; overflow-wrap: anywhere; }
.q-reader-body p { white-space: pre-wrap; margin-bottom: 18px !important; }
.q-reader-body h2 { font-family: var(--q-serif); color: #567a44; font-size: 21px; font-weight: 550; margin: 34px 0 16px !important; }
.q-reader-body h3 { color: #698b51; font-size: 14px; margin: 25px 0 12px !important; }
.q-reader-body ul, .q-reader-body ol { padding-left: 24px; margin: 12px 0 24px; }
.q-reader-body blockquote { border-left: 2px solid #c2d4b3; margin: 21px 0; padding: 4px 0 4px 18px; color: #8ca276; }
.q-reader-body .q-brief-fields { margin-block: 25px; }
.q-confirmed-banner { padding: 19px 23px; display: flex; align-items: center; gap: 14px; background: #f0f6e8; border: 1px solid #cadbbd; border-radius: 10px; }
.q-confirmed-banner > .q-icon { color: #739956; width: 24px; height: 24px; }
.q-confirmed-banner strong { display: block; font-size: 13px; color: #65864e; margin-bottom: 4px; }
.q-confirmed-banner p { font-size: 11px; line-height: 1.8; color: #6e8559; }
.q-next-stage { display: grid; gap: 16px; padding: 28px; }
.q-next-stage h2 { color: #67894d; font-family: var(--q-serif); font-size: 24px; line-height: 1.8; font-weight: 550; }
.q-next-stage p { color: #8ca175; font-size: 12px; line-height: 2; }
.q-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: min(90vw, 500px); padding: 12px 18px; color: #fff; background: #294e35f2; border-radius: 8px; box-shadow: 0 7px 30px #1f3f291c; font-size: 12px; line-height: 1.7; z-index: 200; text-align: center; }

/* The Brief editor and model dialog use separate roots so the former can be inert. */
#scoping-modal { position: relative; z-index: 100; }
.q-new { width: 100%; }
.q-sidebar .q-new { justify-content: flex-start; padding-inline: 14px; }
:is(#scoping-app, #scoping-modal) .q-sidebar .q-new.primary { background: #d1e3bf; border-color: #d1e3bf; color: #365736; box-shadow: none; }
:is(#scoping-app, #scoping-modal) .q-sidebar .q-new.primary:hover { background: #deedce; border-color: #deedce; }
.q-nav-count { margin-left: auto; min-width: 19px; padding: 2px 5px; text-align: center; border-radius: 4px; background: #4a6651; color: #cbddc1; font-size: 10px; }
.q-status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #c5aa74; flex: none; }
.q-status-dot.is-online { background: #7caa6c; }
.q-nav-item > .q-status-dot { margin-left: auto; }
.q-empty-projects { padding: 4px 13px; font-size: 11px; line-height: 1.9; color: #a0b39a; }
.q-sidebar-footer > p { font-size: 10px; color: #9db396; line-height: 1.8; padding-inline: 14px; }
.q-section-label > button { display: flex; padding: 2px; color: #a4b89c; }
.q-section-label > button .q-icon { width: 13px; height: 13px; }
.q-topbar > .q-row:last-child { margin-left: auto; flex: none; }
.q-breadcrumb > strong { font-size: 12px; font-weight: 500; color: #55704a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-model-pill { max-width: 255px; overflow: hidden; text-overflow: ellipsis; }
:is(#scoping-app, #scoping-modal) .q-mobile-menu { display: none; align-items: center; justify-content: center; width: 31px; height: 31px; color: #678454; padding: 4px; border-radius: 6px; flex: none; }
.q-stepper > i { width: 35px; height: 1px; background: #dce4d4; flex: none; }
.q-stepper > .q-badge { margin-left: auto; }
.q-step > span:first-child .q-icon { width: 12px; height: 12px; }
.q-step > strong { font-size: inherit; font-weight: inherit; }
.q-landing > .q-example { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 13px; margin-top: 20px; padding: 13px 15px; }
.q-landing > .q-example > small { flex: none; color: #81966a; font-size: 10px; }
.q-landing > .q-example > span { font-size: 11px; line-height: 1.8; }
.q-landing > .q-example .q-icon { width: 13px; height: 13px; margin-left: 7px; }
.q-landing-notes { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 14px 21px; color: #7e916b; font-size: 10px; line-height: 1.8; }
.q-landing-notes > span { display: flex; align-items: center; gap: 7px; }
.q-landing-notes > span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #a4bc90; }
.q-brief-background { padding-top: 14px; margin-top: 14px !important; color: #7c8f6c; font-size: 12px; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.q-brief-field .q-spread { align-items: flex-start; gap: 7px; margin-bottom: 7px; }
.q-brief-field strong { font-size: 11px; color: #6e855c; font-weight: 500; line-height: 1.8; }
.q-brief-field p { color: #748b61; font-size: 12px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.q-brief-field .q-badge { font-size: 8px; padding: 3px 5px; }
.q-brief-footnote { display: flex; align-items: flex-start; gap: 6px; margin-top: 18px; padding-top: 13px; border-top: 1px solid #edf1e6; color: #7d916a; font-size: 10px; line-height: 1.9; }
.q-brief-footnote .q-icon { width: 13px; height: 13px; margin-top: 3px; }
.q-section-intro { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.q-section-intro p { font-size: 11px; line-height: 1.9; margin-top: 6px !important; }
.q-ambiguity-list { gap: 16px; }
.q-card.q-ambiguity { padding: 0; }
.q-ambiguity .q-card-head { padding-bottom: 13px; }
.q-ambiguity .q-card-head h3 { font-size: 13px; }
.q-ambiguity .q-card-body > dl { margin: 0; gap: 0; }
.q-ambiguity .q-recommendation { margin-block: 14px; }
.q-recommendation .q-spread { align-items: center; gap: 10px; }
.q-recommendation .q-spread > strong { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #738f5c; }
.q-recommendation .q-spread > strong .q-icon { width: 13px; height: 13px; }
.q-recommendation .q-btn { flex: none; font-size: 10px !important; min-height: 27px !important; padding: 3px 5px !important; }
.q-choice > span { min-width: 0; flex: 1; }
.q-choice > span > strong { display: block; font-size: 12px; line-height: 1.8; font-weight: 500; }
.q-choice > span > small { display: block; font-size: 10px; line-height: 1.85; color: #7d906d; margin-top: 3px; }
.q-choice > .q-badge { flex: none; }
.q-choice-list.q-binary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.q-binary .q-choice { padding-block: 10px; }
.q-binary .q-choice > span { font-size: 11px; }
.q-feedback-note > .q-field { flex: 1; min-width: 180px; }
.q-feedback-note > .q-btn { min-height: 29px !important; font-size: 10px !important; padding: 4px 5px !important; }

/* The research definition and its decisions are one editable Brief. */
.q-unified-brief .q-card-head { align-items: center; }
.q-brief-version { color: #849379; font-size: 11px; }
.q-unified-brief .q-card-body { display: flex; flex-direction: column; gap: 17px; }
.q-unified-brief .q-brief-title { margin: 0; line-height: 1.6; }
.q-unified-brief .q-brief-definition-text { margin: 0; font-size: 13px; line-height: 1.95; }
.q-brief-items-heading { border-top: 1px solid #e1e8d9; padding-top: 19px; }
.q-brief-items-heading h3 { font-size: 15px; line-height: 1.7; color: #355e40; }
.q-brief-items-heading p { margin-top: 5px !important; color: #77886a; font-size: 11px; line-height: 1.85; }
.q-brief-items { display: grid; gap: 11px; }
.q-brief-item { border: 1px solid #dbe5d2; border-radius: 8px; background: #fff; overflow: hidden; }
.q-brief-item.has-feedback { border-color: #99b68a; }
.q-brief-item > summary { position: relative; padding: 15px 15px 15px 12px; color: #71905b; cursor: pointer; list-style-position: inside; }
.q-brief-item > summary::marker { color: #829a6e; font-size: 11px; }
.q-brief-item-heading { display: inline-flex; vertical-align: top; flex-direction: column; gap: 5px; width: calc(100% - 98px); min-width: 0; }
.q-brief-item-heading > strong { color: #3d6245; font-size: 13px; line-height: 1.7; font-weight: 600; }
.q-brief-item-preview { color: #77896c; font-size: 11px; line-height: 1.8; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.q-brief-item > summary > .q-badge { position: absolute; top: 17px; right: 13px; font-size: 9px; }
.q-brief-item[open] > summary .q-brief-item-preview { display: none; }
.q-brief-item[open] > summary { border-bottom: 1px solid #edf1e8; }
.q-brief-item-body { display: flex; flex-direction: column; gap: 13px; padding: 16px; }
.q-brief-current { font-size: 13px; color: #3f6146; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.q-brief-reason { display: flex; flex-direction: column; gap: 4px; color: #78886d; font-size: 11px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.q-brief-reason > span { color: #627d51; font-weight: 550; }
.q-brief-question { border-left: 2px solid #c5d5b8; padding: 0 0 0 11px; color: #6f825e; font-size: 11px; line-height: 1.85; }
.q-brief-question > strong { font-weight: 500; color: #5b764e; }
.q-brief-question > p { margin-top: 4px !important; }
.q-brief-options { border: 0; margin: 0; padding: 0; display: grid; gap: 7px; min-width: 0; }
.q-brief-options > legend { font-size: 10px; color: #7d8d70; margin-bottom: 8px; }
.q-brief-options .q-choice { font-size: 12px; line-height: 1.8; padding: 10px 11px; }
.q-brief-replacement > span, .q-brief-item-note > span { font-size: 11px; color: #6c835b; }
.q-brief-item-note small, .q-general-feedback small { font-size: 10px; color: #95a389; font-weight: normal; }
.q-brief-replacement textarea, .q-brief-item-note textarea { min-height: 70px; resize: vertical; line-height: 1.85; font-size: 12px; }
.q-brief-item-body > .q-btn { align-self: flex-start; }
.q-brief-item-body > [hidden] { display: none !important; }
.q-unified-brief .q-general-feedback { margin-top: 4px; padding-top: 17px; border-top: 1px solid #e1e8d9; }
.q-brief-settings { border-top: 1px solid #e1e8d9; padding-top: 13px; color: #76896a; font-size: 11px; }
.q-brief-settings > summary { cursor: pointer; padding-bottom: 4px; }
.q-brief-settings .q-research-depth { margin-top: 12px; }
.q-brief-revision { padding: 11px 13px; background: #edf4e7; border: 1px solid #dce9d1; border-radius: 7px; color: #5b7950; font-size: 11px; line-height: 1.85; }
.q-brief-revision > strong { font-weight: 600; }
.q-brief-revision > p { margin-top: 3px !important; }
@media (max-width: 760px) {
  .q-unified-brief .q-card-body { padding-inline: 0; gap: 15px; }
  .q-unified-brief .q-card-head { padding-inline: 0; }
  .q-brief-item-body { padding: 13px; }
  .q-brief-item-heading { width: calc(100% - 88px); }
  .q-brief-replacement textarea, .q-brief-item-note textarea { font-size: 16px; }
  .q-brief-options .q-choice { min-height: 44px; }
  .q-unified-brief .q-brief-title { font-size: 21px; }
}
.q-card-body > .q-field:first-child { padding-top: 20px; }
.q-card-body > .q-help { margin-bottom: 0; }
.q-original-text { color: #748a60; font-size: 12px; line-height: 2.05; white-space: pre-wrap; overflow-wrap: anywhere; margin-block: 13px 9px !important; }
.q-rail-section > .q-row { margin-bottom: 12px; color: #8aa174; }
.q-rail-section > .q-row > .q-icon { width: 14px; height: 14px; }
.q-rail-section > .q-row > .q-section-title { font-size: 11px; font-weight: 500; color: #6d8758; }
.q-rail-section > small { font-size: 10px; line-height: 1.9; }
.q-timeline { margin-top: 15px; }
:is(#scoping-app, #scoping-modal) button.q-timeline-item { border-left: 1px solid #d5e0ca; margin-left: 4px; text-align: left; background: none; padding: 0 0 19px 20px; }
:is(#scoping-app, #scoping-modal) button.q-timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.q-timeline-dot { display: none; }
.q-timeline-item:hover strong { color: #4e7839; }
.q-quiet-note { padding: 16px 0; }
.q-quiet-note > strong { color: #789261; font-size: 11px; font-weight: 500; }
.q-quiet-note p { margin-top: 8px !important; color: #879c70; font-size: 11px; line-height: 1.9; }
.q-pending-dot { width: 5px; height: 5px; border-radius: 50%; background: #b49962; flex: none; }
.q-card.q-next-stage { padding: 0; }
.q-next-stage > .q-card-body { padding: 26px; display: grid; gap: 17px; }
.q-next-stage .q-brief-title { margin-bottom: 0 !important; }
.q-next-stage .q-brief-fields { margin-top: 0; }
.q-reader-lead { color: #5f7b4b; font-family: var(--q-serif); font-size: 17px; line-height: 2.1; }
.q-reader .q-reader-meta { margin-top: -10px; margin-bottom: 23px; }
.q-reader-body hr { margin: 30px 0; border: 0; border-top: 1px solid #dde6d4; }
.q-reader-body details { font-size: 12px; }
.q-reader-body details summary { cursor: pointer; color: #779361; }
.q-reader-body details p { margin-top: 15px !important; }
.q-config-mode { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #e5ecdd; margin-top: 22px; padding-top: 19px; }
.q-config-mode > span { display: grid; gap: 6px; }
.q-config-mode strong { color: #6a8455; font-size: 11px; font-weight: 500; }
.q-config-mode small { color: #849771; font-size: 10px; line-height: 1.8; }
.q-config-mode + .q-alert, .q-config-mode ~ .q-alert { margin-top: 18px; }
.q-field > small { color: #7d906c; font-size: 10px; line-height: 1.9; }
.q-dialog-body > .q-stack > p { font-size: 12px; line-height: 1.95; color: #6e865a; }
.q-dialog-body details { min-width: 0; color: #70875d; }
.q-dialog-body details summary { cursor: pointer; font-size: 12px; line-height: 1.8; }
.q-dialog-body pre { font-size: 11px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0 0; padding: 13px 14px; border: 1px solid #e1e9d6; border-radius: 6px; background: #f8fbf4; color: #7e9668; }
.q-toast { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, visibility .15s ease; }
.q-toast.is-visible { opacity: 1; visibility: visible; }

@media (min-width: 1600px) {
  .q-content { padding-inline: 52px; }
  .q-workspace { grid-template-columns: minmax(0, 1fr) 280px; gap: 34px; }
  .q-card-head { padding-inline: 28px; }
  .q-card-body { padding-inline: 28px; padding-bottom: 28px; }
  .q-ambiguity { padding: 24px 28px; }
}
@media (max-width: 1260px) {
  .q-shell { grid-template-columns: 218px minmax(0, 1fr); }
  .q-sidebar { padding-inline: 13px; }
  .q-topbar { padding-inline: 25px; gap: 13px; }
  .q-breadcrumb > span:last-child { max-width: 220px; }
  .q-content { padding: 26px 25px 0; }
  .q-workspace { grid-template-columns: minmax(0, 1fr) 215px; gap: 20px; }
  .q-card-head { padding-inline: 20px; }
  .q-card-body { padding-inline: 20px; }
  .q-ambiguity { padding-inline: 20px; }
}
@media (max-width: 1050px) {
  .q-shell { grid-template-columns: 195px minmax(0, 1fr); }
  .q-sidebar { padding: 25px 10px 18px; gap: 24px; }
  .q-brand { padding-inline: 8px; }
  .q-brand-copy strong { font-size: 21px; }
  .q-brand-copy small { font-size: 8px; }
  :is(#scoping-app, #scoping-modal) .q-nav-item { padding-inline: 10px; }
  .q-topbar { padding-inline: 23px; }
  .q-breadcrumb > span:last-child { max-width: 180px; }
  .q-mode-switch button { padding-inline: 10px !important; }
  .q-model-pill { max-width: 154px; overflow: hidden; text-overflow: ellipsis; }
  .q-content { padding: 24px 23px 0; }
  .q-workspace { grid-template-columns: minmax(0, 1fr); }
  .q-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; padding-top: 5px; }
  .q-rail-section { border-bottom: 0; padding-bottom: 10px; }
  .q-actions-bar { margin-top: 10px; }
}
@media (max-width: 760px) {
  .q-shell { grid-template-columns: 1fr; height: auto; min-height: 100dvh; overflow: visible; }
  .q-sidebar { display: none; }
  .q-shell.sidebar-open .q-sidebar { display: flex; position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(290px, 84vw); padding: 28px 20px; box-shadow: 15px 0 80px #17302040; }
  .q-mobile-backdrop { position: fixed; inset: 0; background: #17302066; z-index: 55; }
  .q-topbar { min-height: 65px; padding: 12px 18px; gap: 10px; position: sticky; top: 0; z-index: 20; background: #ffffffed; backdrop-filter: blur(12px); }
  .q-topbar .q-icon-button { display: inline-flex; width: 30px; }
  .q-breadcrumb { font-size: 11px; flex: 1; }
  .q-breadcrumb > span:last-child { max-width: 180px; }
  .q-mode-switch { margin-left: auto; }
  :is(#scoping-app, #scoping-modal) .q-mode-switch button { padding: 6px 10px; gap: 5px; font-size: 11px; }
  :is(#scoping-app, #scoping-modal) .q-model-pill { padding: 7px; font-size: 10px; max-width: 130px; }
  .q-model-pill .q-icon { width: 13px; height: 13px; }
  .q-content { overflow: visible; padding: 23px 20px 0; }
  .q-page-head { margin-bottom: 21px; }
  .q-page-head > .q-row { align-self: flex-start; }
  .q-title { font-size: 26px; }
  .q-subtitle { font-size: 11px; }
  .q-stepper { gap: 8px; margin-bottom: 23px; }
  .q-step { font-size: 10px; }
  .q-step-line { width: 25px; }
  .q-workspace { gap: 24px; }
  .q-card { border-radius: 10px; }
  .q-card-head { padding: 17px 19px 14px; gap: 10px; }
  .q-card-body { padding: 0 19px 21px; }
  .q-brief-title { font-size: 21px; }
  .q-brief-text { font-size: 12px; line-height: 2; }
  .q-ambiguity { padding: 18px 19px; }
  .q-actions-bar { padding: 15px 0 20px; gap: 10px; }
  .q-actions-note { max-width: 200px; font-size: 9px; }
  .q-actions-buttons { gap: 8px; }
  .q-actions-buttons .q-btn { padding: 8px 11px; font-size: 11px; }
  .q-landing { margin-top: 32px; }
  .q-landing .q-title { font-size: 31px; }
  .q-landing .q-subtitle { font-size: 12px; }
  .q-input-card { margin-top: 25px; }
  .q-input-area { min-height: 175px; padding: 19px 20px 14px; font-size: 14px; }
  .q-input-footer { padding: 13px 14px 15px; }
  .q-landing-footnote { margin-top: 23px; }
  .q-dialog-overlay { padding: 16px; align-items: center; }
  .q-dialog { border-radius: 12px; max-height: calc(100dvh - 32px); }
  .q-dialog-head { padding: 20px 21px 17px; }
  .q-dialog-body { padding: 20px 21px 22px; }
  .q-dialog-footer { padding: 16px 21px 18px; }
  .q-reader { padding: 10px 5px 70px; }
  .q-reader-title { font-size: 28px; }
}
@media (max-width: 470px) {
  .q-topbar { gap: 6px; padding-inline: 13px; }
  .q-breadcrumb > span:last-child { max-width: 110px; }
  .q-breadcrumb > span:first-child { display: none; }
  .q-breadcrumb .q-icon { display: none; }
  .q-mode-switch { gap: 1px; padding: 2px; }
  :is(#scoping-app, #scoping-modal) .q-mode-switch button { padding: 6px 8px; gap: 4px; font-size: 10px; }
  .q-mode-switch .q-icon { width: 12px; height: 12px; }
  :is(#scoping-app, #scoping-modal) .q-model-pill { max-width: 37px; width: 35px; padding: 8px; justify-content: center; flex: none; }
  .q-model-pill > span { display: none; }
  .q-content { padding: 20px 15px 0; }
  .q-page-head { gap: 10px; }
  .q-eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  .q-title { font-size: 25px; }
  .q-page-head .q-btn.ghost { padding: 4px; font-size: 10px; }
  .q-step { gap: 5px; font-size: 9px; white-space: nowrap; }
  .q-step > span:first-child, .q-step-number { width: 19px; height: 19px; font-size: 8px; }
  .q-step-line { width: 14px; }
  .q-card-head { padding: 16px 16px 13px; }
  .q-card-body { padding: 0 16px 19px; }
  .q-card-head h2 { font-size: 12px; gap: 6px; }
  .q-brief-title { font-size: 20px; }
  .q-brief-fields { grid-template-columns: 1fr; gap: 14px; }
  .q-ambiguity { padding: 17px 16px; }
  .q-ambiguity-head { gap: 7px; }
  .q-ambiguity-head h3 { font-size: 12px; }
  .q-field-line { grid-template-columns: 1fr; gap: 2px; margin-bottom: 12px; }
  .q-field-line dt { font-size: 9px; }
  .q-field-line dd { font-size: 11px; }
  .q-recommendation { padding: 12px; }
  .q-choice { padding: 10px; font-size: 11px; }
  .q-choice .q-badge { font-size: 8px; padding: 3px 5px; }
  .q-rail { grid-template-columns: 1fr; gap: 21px; }
  .q-actions-bar { flex-direction: column; align-items: stretch; gap: 9px; padding: 11px 0 17px; }
  .q-actions-note { max-width: none; font-size: 9px; }
  .q-actions-buttons { display: grid; grid-template-columns: 1fr 1.15fr; gap: 8px; }
  :is(#scoping-app, #scoping-modal) .q-actions-buttons .q-btn { min-height: 40px; font-size: 11px; padding-inline: 8px; }
  .q-landing { margin-top: 22px; }
  .q-landing-mark { width: 42px; height: 42px; margin-bottom: 19px; }
  .q-landing .q-title { font-size: 29px; }
  .q-input-area { min-height: 190px; padding: 17px 17px 11px; }
  .q-input-footer { align-items: flex-end; gap: 9px; }
  .q-input-footer > span { font-size: 9px; max-width: 130px; }
  .q-input-footer .q-btn { padding-inline: 10px; font-size: 11px; }
  .q-examples { gap: 7px; }
  .q-examples > span { flex-basis: 100%; }
  .q-dialog-overlay { padding: 10px; }
  .q-dialog { max-height: calc(100dvh - 20px); border-radius: 10px; }
  .q-dialog-head { padding: 17px 17px 14px; }
  .q-dialog-head h2 { font-size: 20px; }
  .q-dialog-body { padding: 18px 17px; }
  .q-dialog-footer { padding: 14px 17px 16px; gap: 8px; }
  .q-dialog-footer .q-help { flex-basis: 100%; max-width: none; }
  .q-form-grid { grid-template-columns: 1fr; gap: 16px; }
  .q-field.full { grid-column: auto; }
  .q-reader-title { font-size: 26px; }
  .q-reader-body { font-size: 13px; }
  .q-confirmed-banner { padding: 16px; gap: 11px; }
}
@media (pointer: coarse) {
  :is(#scoping-app, #scoping-modal) .q-btn, :is(#scoping-app, #scoping-modal) .q-nav-item, :is(#scoping-app, #scoping-modal) .q-project-item, :is(#scoping-app, #scoping-modal) .q-example, :is(#scoping-app, #scoping-modal) .q-icon-button, :is(#scoping-app, #scoping-modal) .q-model-pill { min-height: 44px; }
  .q-choice { min-height: 44px; }
  .q-field input, .q-field select, .q-field textarea, .q-feedback-input, .q-inline-edit { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .q-spinner, .q-skeleton { animation: none; }
}

@media (max-width: 1050px) {
  .q-topbar > .q-row:last-child { gap: 10px; }
  .q-stepper > .q-badge { font-size: 9px; }
}
@media (max-width: 760px) {
  :is(#scoping-app, #scoping-modal) .q-mobile-menu { display: inline-flex; }
  .q-stepper > i { width: 25px; }
  .q-stepper > .q-badge { display: none; }
  .q-sidebar-footer .q-status-dot { display: inline-block; }
  .q-brief-background { font-size: 11px; }
  .q-section-intro p { font-size: 10px; }
  .q-next-stage > .q-card-body { padding: 22px; }
}
@media (max-width: 470px) {
  .q-topbar > .q-row:last-child { gap: 6px; }
  .q-breadcrumb { gap: 4px; }
  .q-breadcrumb > strong { max-width: 100px; font-size: 11px; }
  :is(#scoping-app, #scoping-modal) .q-model-pill { width: 40px; max-width: 40px; gap: 5px; padding: 8px; font-size: 0; line-height: 0; }
  .q-model-pill > .q-status-dot { display: inline-block; width: 5px; height: 5px; }
  .q-model-pill > .q-icon { width: 13px; height: 13px; }
  .q-stepper > i { width: 14px; }
  .q-landing > .q-example { flex-direction: column; align-items: flex-start; gap: 5px; padding: 11px 12px; }
  .q-landing > .q-example > span { font-size: 10px; }
  .q-landing-notes { gap: 9px 12px; font-size: 9px; }
  .q-brief-field .q-badge { font-size: 8px; }
  .q-section-intro { align-items: flex-start; gap: 9px; }
  .q-choice-list.q-binary { grid-template-columns: 1fr; }
  .q-feedback-note > .q-field { min-width: 0; flex-basis: 100%; }
  .q-next-stage > .q-card-body { padding: 19px 17px; }
  .q-next-stage .q-row { flex-direction: column; align-items: stretch; }
  .q-config-mode { align-items: flex-start; gap: 10px; }
  .q-config-mode > .q-btn { font-size: 10px; padding-inline: 9px; }
  .q-reader-lead { font-size: 16px; }
}
@media (pointer: coarse) {
  .q-recommendation .q-btn, .q-feedback-note > .q-btn { min-height: 44px !important; }
}

/* Research canvas: one root node, with all clarification inside its drawer. */
#scoping-app:has(.q-canvas-shell) { height: 100dvh; overflow: hidden; }
body:has(.q-canvas-shell) { overflow: hidden; }
.q-canvas-shell { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: #f6f8f3; }
.q-canvas-header { position: relative; z-index: 45; min-height: 64px; height: 64px; flex: none; display: flex; align-items: center; gap: 19px; padding: 0 25px; border-bottom: 1px solid #e1e7db; background: #fff; }
.q-canvas-header .q-brand, .q-canvas-brand { display: inline-flex; align-items: center; gap: 8px; padding: 0; color: #315b3e; flex: none; }
.q-canvas-brand picture { display: block; }
.q-canvas-brand img { display: block; width: auto; height: 28px; }
.q-canvas-header.is-reading .q-canvas-brand img { height: 25px; }
.q-canvas-header .q-brand-mark { width: 29px; height: 29px; border-color: #d7e2cd; border-radius: 8px; background: #f3f7ec; color: #63864d; }
.q-canvas-header .q-brand-mark .q-icon { width: 19px; height: 19px; }
.q-canvas-header .q-brand-copy strong { font-size: 20px; letter-spacing: 2px; }
.q-canvas-header .q-brand-copy small { display: none; }
.q-canvas-header .q-mode-switch { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
.q-canvas-header .q-mode-switch button { min-width: 83px; padding: 7px 14px; }
.q-canvas-header > .q-row { margin-left: auto; gap: 10px; }
.q-canvas-project-switch, .q-canvas-project { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: min(32vw, 380px); padding: 5px 0; color: #68825a; font-size: 12px; line-height: 1.7; text-align: left; }
.q-canvas-project-switch > span, .q-canvas-project > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.q-canvas-project-switch .q-icon, .q-canvas-project .q-icon { width: 13px; height: 13px; color: #91a17e; }
.q-canvas-header > .q-divider { width: 1px; height: 21px; background: #e1e7db; flex: none; }
.q-canvas-menu-trigger { color: #7e936a; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; }
.q-canvas-menu-trigger:hover { background: #f1f6e9 !important; }
.q-canvas-stage { position: relative; flex: 1; min-width: 0; min-height: 0; overflow: hidden; }
.q-infinite-canvas { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; background-color: #f7f9f4; background-image: radial-gradient(rgba(var(--canvas-dot-color, 129, 153, 110), var(--canvas-dot-alpha, .18)) .6px, transparent .6px); background-size: 26px 26px; }
.q-infinite-canvas.is-dragging, .q-infinite-canvas.is-panning { cursor: grabbing; }
.q-canvas-world { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: visible; transform-origin: 0 0; pointer-events: none; will-change: transform; }
:is(#scoping-app, #scoping-modal) .q-root-node { position: absolute; width: 360px; padding: 21px 23px 0; border: 1px solid #adc5a0; border-radius: 11px; background: #fff; box-shadow: 0 6px 25px #33502a0a; pointer-events: auto; cursor: pointer; text-align: left; color: #426438; user-select: none; }
:is(#scoping-app, #scoping-modal) .q-root-node:hover { border-color: #759b65; box-shadow: 0 8px 27px #33502a10; }
:is(#scoping-app, #scoping-modal) .q-root-node.is-selected, :is(#scoping-app, #scoping-modal) .q-root-node[aria-pressed="true"] { border-color: #57864d; box-shadow: 0 0 0 4px #527d390d, 0 7px 25px #33502a0a; }
.q-root-node .q-root-label, .q-root-node > .q-row:first-child, .q-root-node .q-node-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #8ba176; font-size: 10px; line-height: 1.7; margin-bottom: 13px; }
.q-root-node .q-root-label > span:first-child, .q-root-node .q-node-top > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.q-root-node .q-root-label .q-icon, .q-root-node .q-node-top .q-icon { width: 13px; height: 13px; }
.q-root-node h2, .q-root-node h3, .q-root-title { color: #3b6135; font-family: var(--q-serif); font-size: 21px; line-height: 1.8; font-weight: 550; letter-spacing: .25px; margin: 0 0 14px !important; overflow-wrap: anywhere; }
.q-root-node .q-root-summary { color: #7d9368; font-size: 11px; line-height: 1.9; margin: 0 0 17px !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.q-root-node .q-root-footer, .q-root-node .q-node-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #e8eee0; margin-top: 16px; min-height: 43px; color: #829970; font-size: 10px; line-height: 1.6; }
.q-root-node .q-root-footer .q-icon, .q-root-node .q-node-bottom .q-icon { width: 13px; height: 13px; }
.q-root-open { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: #6b8b55; font-size: 10px; }
.q-root-node .q-badge { font-size: 9px; padding: 3px 6px; }
.q-canvas-legend { position: absolute; left: 27px; top: 23px; z-index: 5; display: flex; align-items: center; gap: 9px; color: #879c72; font-size: 11px; line-height: 1.7; pointer-events: none; }
.q-canvas-legend strong { color: #64854e; font-size: 11px; font-weight: 500; }
.q-canvas-legend .q-badge { font-size: 9px; }
.q-canvas-help { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 5; color: #91a380; font-size: 10px; line-height: 1.7; pointer-events: none; white-space: nowrap; }
.q-canvas-tools { position: absolute; left: 24px; bottom: 21px; z-index: 12; display: inline-flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid #dce5d4; border-radius: 8px; background: #ffffffed; box-shadow: 0 3px 12px #2e492c07; color: #7b9366; }
:is(#scoping-app, #scoping-modal) .q-canvas-tools button { display: inline-flex; justify-content: center; align-items: center; width: 30px; height: 30px; padding: 0; border-radius: 5px; color: #7c9467; }
:is(#scoping-app, #scoping-modal) .q-canvas-tools button:hover { background: #eff5e7; color: #4d7837; }
.q-canvas-tools > span { min-width: 43px; text-align: center; font-size: 10px; font-variant-numeric: tabular-nums; }
.q-canvas-tools .q-icon { width: 15px; height: 15px; }
.q-canvas-tools > i { height: 16px; width: 1px; background: #e4ebdc; margin: 0 3px; }
.q-canvas-presets { display: inline-flex; align-items: center; gap: 2px; }
:is(#scoping-app, #scoping-modal) .q-canvas-presets button { width: 40px; font-size: 10px; font-variant-numeric: tabular-nums; }
:is(#scoping-app, #scoping-modal) .q-canvas-presets button[aria-pressed="true"] { background: #e9f1e1; color: #436b33; font-weight: 600; }
.q-node-detail { position: absolute; top: 0; bottom: 0; right: 0; width: min(640px, calc(100% - 48px)); z-index: 30; display: flex; flex-direction: column; min-height: 0; border-left: 1px solid #dfe7d6; background: #fafcf7; box-shadow: -8px 0 34px #304a2510; }
.q-node-detail-header { min-height: 65px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 24px 13px; background: #fff; }
.q-node-detail-header h2 { display: flex; align-items: center; gap: 7px; color: #547942; font-size: 14px; line-height: 1.7; font-weight: 550; }
.q-node-detail-header h2 .q-icon { width: 16px; height: 16px; color: #84a16c; }
.q-node-detail-header > .q-row { min-width: 0; }
.q-node-detail-header .q-badge { font-size: 9px; }
.q-node-detail-header > .q-btn, .q-node-detail-header > .q-icon-button { flex: none; }
.q-node-tabs { display: flex; align-items: center; gap: 25px; min-height: 43px; padding: 0 25px; border-bottom: 1px solid #e2e9da; background: #fff; flex: none; }
:is(#scoping-app, #scoping-modal) .q-node-tabs button { position: relative; padding: 0 1px 13px; color: #96a885; font-size: 11px; line-height: 1.8; }
:is(#scoping-app, #scoping-modal) .q-node-tabs button.is-active, :is(#scoping-app, #scoping-modal) .q-node-tabs button[aria-selected="true"] { color: #567b41; font-weight: 550; }
.q-node-tabs button.is-active::after, .q-node-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #678d50; }
.q-node-tabs small { font-size: 9px; color: #9bac8a; margin-left: 5px; }
.q-node-detail-body { flex: 1; min-height: 0; overflow: auto; overflow-x: hidden; padding: 23px 24px 28px; display: flex; flex-direction: column; gap: 20px; scrollbar-width: thin; scrollbar-color: #cbdac0 transparent; }
.q-node-detail-body > .q-primary { display: grid; gap: 20px; }
.q-node-detail-body .q-brief-title { font-size: 21px; }
.q-node-detail-body .q-card-head { padding-inline: 19px; }
.q-node-detail-body .q-card-body { padding-inline: 19px; }
.q-node-detail-body .q-card-head > .q-row { gap: 7px; }
.q-node-detail-body .q-card-head .q-btn.ghost { padding-inline: 4px; font-size: 10px; }
.q-node-detail-body .q-card-head .q-muted { font-size: 10px; }
.q-node-detail-body .q-card-head h2, .q-node-detail-body .q-card-head .q-muted { display: none; }
.q-node-detail-body .q-brief-fields { grid-template-columns: 1fr; }
.q-node-detail-body .q-section-intro { margin-bottom: -4px; }
.q-node-detail-footer { flex: none; border-top: 1px solid #dfe7d6; padding: 14px 24px 18px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.q-node-detail-footer .q-actions-bar { position: static; padding: 0; border: 0; background: none; margin: 0; backdrop-filter: none; flex-direction: column; align-items: stretch; gap: 9px; }
.q-node-detail-footer .q-actions-note { max-width: none; font-size: 9px; }
.q-node-detail-footer .q-actions-buttons { display: flex; justify-content: flex-end; gap: 9px; }
.q-node-detail-footer .q-btn { font-size: 11px; min-height: 36px; }
.q-node-popovermenu { position: absolute; right: 22px; top: 55px; z-index: 80; width: 221px; padding: 6px; border: 1px solid #dfe7d6; border-radius: 9px; background: #fff; box-shadow: 0 10px 35px #28432b15; display: grid; gap: 2px; }
:is(#scoping-app, #scoping-modal) .q-node-popovermenu > button, .q-node-popovermenu > a { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 11px; min-height: 35px; border-radius: 5px; color: #6c8658; text-align: left; font-size: 11px; line-height: 1.6; }
:is(#scoping-app, #scoping-modal) .q-node-popovermenu > button:hover, .q-node-popovermenu > a:hover { background: #f0f6e8; color: #486f35; text-decoration: none; }
.q-node-popovermenu .q-icon { width: 15px; height: 15px; }
.q-node-popovermenu hr { width: 100%; height: 1px; border: 0; margin: 5px 0; background: #e9eee1; }
.q-canvas-empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 9; width: min(670px, calc(100% - 64px)); }
.q-canvas-empty .q-landing { width: auto; max-width: none; margin: 0; }
.q-canvas-empty .q-landing-mark { width: 37px; height: 37px; margin-bottom: 19px; border-radius: 10px; background: #f1f6e9; }
.q-canvas-empty .q-landing-mark .q-icon { width: 20px; height: 20px; }
.q-canvas-empty .q-landing .q-title { font-size: 30px; line-height: 1.7; }
.q-canvas-empty .q-subtitle { font-size: 12px; }
.q-canvas-empty .q-input-card { margin-top: 24px; }
.q-canvas-empty .q-input-area { min-height: 123px; padding: 18px 21px 13px; font-size: 14px; }
.q-canvas-empty .q-input-footer { padding: 12px 15px 14px; }
.q-canvas-empty .q-example { margin-top: 14px; }
.q-canvas-empty .q-landing-notes { margin-top: 20px; }
.q-canvas-stage > .q-reader { height: 100%; overflow: auto; padding: 36px 28px 80px; }
.q-canvas-stage > .q-alert { position: absolute; top: 17px; left: 50%; transform: translateX(-50%); z-index: 19; max-width: min(650px, calc(100% - 45px)); }

@media (max-width: 1100px) {
  .q-canvas-header { padding-inline: 20px; gap: 14px; }
  .q-canvas-project-switch, .q-canvas-project { max-width: 220px; }
  .q-canvas-header .q-mode-switch button { min-width: 68px; padding-inline: 12px; }
  .q-node-detail { width: min(600px, calc(100% - 48px)); }
}
@media (max-width: 760px) {
  .q-canvas-header { min-height: 59px; height: 59px; padding-inline: 16px; gap: 12px; }
  .q-canvas-header .q-brand-copy strong { font-size: 18px; }
  .q-canvas-header .q-mode-switch button { min-width: 59px; padding-inline: 10px !important; }
  .q-canvas-project-switch, .q-canvas-project { max-width: 180px; font-size: 11px; }
  .q-canvas-legend { left: 20px; top: 20px; font-size: 10px; }
  .q-canvas-help { display: none; }
  .q-node-detail { width: 100%; border-left: 0; box-shadow: none; }
  .q-node-detail-header { min-height: 59px; padding: 14px 20px 12px; }
  .q-node-tabs { min-height: 40px; padding-inline: 21px; gap: 25px; }
  .q-node-detail-body { padding: 20px 19px 24px; }
  .q-node-detail-footer { padding: 12px 19px 16px; }
  .q-canvas-tools { left: 19px; bottom: 19px; }
  .q-node-popovermenu { right: 16px; top: 51px; }
  .q-canvas-empty { width: min(610px, calc(100% - 44px)); }
  .q-canvas-empty .q-landing .q-title { font-size: 27px; }
  .q-canvas-empty .q-input-area { min-height: 137px; }
}
@media (max-width: 470px) {
  .q-canvas-header { padding-inline: 13px; gap: 10px; }
  .q-canvas-brand img { height: 27px; }
  .q-canvas-header .q-brand-mark { width: 27px; height: 27px; }
  .q-canvas-header .q-brand-copy { display: none; }
  .q-canvas-header .q-mode-switch { position: static; transform: none; margin-left: auto; }
  .q-canvas-header .q-mode-switch button { min-width: auto; padding-inline: 9px !important; }
  .q-canvas-header > .q-row { margin-left: 0; gap: 5px; }
  .q-canvas-project-switch, .q-canvas-project { max-width: 104px; font-size: 10px; gap: 4px; }
  .q-canvas-header .q-divider { display: none; }
  .q-canvas-legend { left: 16px; top: 18px; gap: 7px; }
  .q-canvas-legend > span:not(.q-badge) { display: none; }
  .q-canvas-tools { left: 15px; bottom: 16px; padding: 3px; }
  :is(#scoping-app, #scoping-modal) .q-canvas-tools button { width: 28px; height: 28px; }
  .q-canvas-tools > span { min-width: 38px; font-size: 9px; }
  :is(#scoping-app, #scoping-modal) .q-canvas-presets button { width: 36px; }
  .q-root-node h2, .q-root-node h3, .q-root-title { font-size: 21px; }
  .q-node-detail-header { padding-inline: 16px; min-height: 56px; gap: 9px; }
  .q-node-detail-header h2 { font-size: 13px; }
  .q-node-detail-header > .q-row { gap: 6px; }
  .q-node-detail-header .q-btn { padding: 4px 5px !important; font-size: 10px !important; }
  .q-node-tabs { padding-inline: 17px; gap: 23px; }
  .q-node-detail-body { padding: 17px 14px 22px; gap: 16px; }
  .q-node-detail-body .q-card-head { padding-inline: 16px; }
  .q-node-detail-body .q-card-body { padding-inline: 16px; }
  .q-node-detail-body .q-brief-title { font-size: 20px; }
  .q-node-detail-footer { padding: 11px 14px 14px; }
  .q-node-detail-footer .q-actions-buttons { display: grid; grid-template-columns: 1fr 1.15fr; gap: 7px; }
  .q-node-detail-footer .q-actions-note { font-size: 9px; }
  .q-node-detail-footer .q-btn { min-height: 39px !important; padding-inline: 8px !important; font-size: 10px !important; }
  .q-canvas-empty { width: calc(100% - 32px); top: 48%; }
  .q-canvas-empty .q-landing-mark { margin-bottom: 15px; }
  .q-canvas-empty .q-landing .q-title { font-size: 25px; }
  .q-canvas-empty .q-subtitle { font-size: 11px; }
  .q-canvas-empty .q-input-area { min-height: 138px; padding-inline: 17px; }
  .q-canvas-empty .q-input-footer > span { max-width: 115px; }
  .q-canvas-empty .q-landing-notes { font-size: 9px; gap: 8px 12px; }
  .q-node-popovermenu { right: 12px; top: 51px; width: 211px; }
  .q-canvas-stage > .q-reader { padding: 27px 20px 65px; }
}
@media (max-height: 700px) {
  .q-canvas-empty { top: 48%; }
  .q-canvas-empty .q-landing-mark, .q-canvas-empty .q-landing-notes { display: none; }
  .q-canvas-empty .q-input-area { min-height: 105px; }
}
@media (pointer: coarse) {
  :is(#scoping-app, #scoping-modal) .q-canvas-tools button { width: 38px; height: 38px; }
  :is(#scoping-app, #scoping-modal) .q-canvas-presets button { width: 38px; }
  :is(#scoping-app, #scoping-modal) .q-node-tabs button { min-height: 43px; }
  .q-node-detail-footer .q-btn { min-height: 44px !important; }
}

/* Exact canvas DOM: collapsed clarifications and secondary project/history lists. */
.q-root-node .q-root-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.q-root-status { min-height: 18px; }
.q-root-status .q-spinner { width: 9px; height: 9px; border-width: 1.5px; }
.q-node-detail-header > .q-row .q-btn { width: 31px; min-width: 31px; min-height: 31px; padding: 4px !important; }
.q-node-detail-header > .q-row .q-icon { width: 16px; height: 16px; }
.q-node-detail-body > .q-card { border: 0; border-radius: 0; box-shadow: none; background: none; }
.q-node-detail-body > .q-card > .q-card-head { padding: 0 0 18px; align-items: center; }
.q-node-detail-body > .q-card > .q-card-head .q-number { display: none; }
.q-node-detail-body > .q-card > .q-card-head h2 { font-size: 12px; }
.q-node-detail-body > .q-card > .q-card-body { padding: 0; }
.q-node-detail-body .q-brief-title { font-size: 22px; margin-bottom: 14px !important; }
.q-node-detail-body .q-brief-text { color: #637e50; font-size: 13px; line-height: 2.1; }
.q-brief-details { border-top: 1px solid #e4ebdc; margin-top: 23px; padding-top: 16px; }
.q-brief-details > summary { color: #7d946a; font-size: 11px; line-height: 1.8; cursor: pointer; }
.q-brief-details[open] > summary { color: #63854d; }
.q-brief-details > .q-brief-background { padding-top: 0; margin-top: 14px !important; }
.q-brief-details > .q-brief-fields { border-top: 0; padding-top: 0; margin-top: 17px; }
.q-node-detail-body .q-brief-footnote { color: #81966f; font-size: 10px; margin-top: 22px; }
.q-detail-clarifications { display: grid; gap: 0; min-width: 0; }
.q-ambiguity-fold { border-bottom: 1px solid #dde6d5; min-width: 0; }
.q-ambiguity-fold > summary { display: flex; align-items: center; gap: 11px; padding: 17px 1px; list-style: none; cursor: pointer; min-height: 55px; color: #5a7b45; }
.q-ambiguity-fold > summary::-webkit-details-marker { display: none; }
.q-ambiguity-fold > summary::before { content: ""; width: 6px; height: 6px; flex: none; border-right: 1px solid #8aa476; border-bottom: 1px solid #8aa476; transform: rotate(-45deg); margin-right: 1px; }
.q-ambiguity-fold[open] > summary::before { transform: rotate(45deg); margin-top: -3px; }
.q-ambiguity-fold > summary > span { font-size: 13px; line-height: 1.8; flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.q-ambiguity-fold > summary > small { font-size: 9px; color: #8ca275; white-space: nowrap; font-weight: 400; }
.q-ambiguity-fold[open] > summary { color: #416c30; }
.q-detail-card-body { padding: 1px 1px 20px; min-width: 0; }
.q-detail-card-body > dl { margin: 0; gap: 0; }
.q-detail-card-body .q-field-line { margin-bottom: 11px; }
.q-detail-card-body .q-recommendation { margin: 14px 0; }
.q-detail-card-body > .q-btn.ghost { margin-top: 10px; font-size: 10px !important; padding-inline: 0 !important; }
.q-card-note { margin-top: 14px; }
.q-card-note > summary { color: #879d73; font-size: 10px; line-height: 1.8; cursor: pointer; }
.q-card-note > .q-field { margin-top: 10px; }
.q-general-feedback { margin-top: 4px; gap: 9px; }
.q-general-feedback > span { font-size: 11px; color: #7e956a; }
.q-general-feedback textarea { min-height: 85px; font-size: 12px; line-height: 1.9; }
.q-node-detail-footer > .q-actions-note:empty { display: none; }
.q-node-detail-footer > .q-actions-buttons { margin-left: auto; }
.q-modal-projects { display: grid; gap: 9px; }
:is(#scoping-app, #scoping-modal) .q-project-picker-item { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; padding: 15px 17px; border: 1px solid #e0e8d7; border-radius: 8px; text-align: left; background: #fcfdf9; color: #6c8756; }
:is(#scoping-app, #scoping-modal) .q-project-picker-item:hover { background: #f3f8ec; border-color: #b7cda6; }
:is(#scoping-app, #scoping-modal) .q-project-picker-item.is-active { background: #eff6e6; border-color: #95b77e; }
.q-project-picker-item > strong { font-size: 13px; font-weight: 500; line-height: 1.85; overflow-wrap: anywhere; }
.q-project-picker-item > small { font-size: 10px; line-height: 1.8; color: #8aa172; overflow-wrap: anywhere; }
.q-record-original { color: #788f63; font-size: 12px; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; margin: 13px 0 4px !important; }
.q-canvas-stage:has(> .q-reader) { background: #fafcf7; }
.q-canvas-stage > .q-reader { min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cbdac0 transparent; overscroll-behavior: contain; }

@media (max-width: 760px) {
  .q-canvas-project-switch, .q-canvas-project { max-width: min(180px, calc(50vw - 170px)); }
  .q-node-detail-body > .q-card > .q-card-head { padding-bottom: 17px; }
  .q-node-detail-header > .q-row .q-btn { min-height: 33px; width: 33px; min-width: 33px; }
  .q-node-detail-body .q-brief-title { font-size: 21px; }
  .q-node-detail-footer > .q-actions-buttons { margin-left: 0; }
}
@media (max-width: 470px) {
  .q-canvas-project-switch, .q-canvas-project { max-width: 104px; }
  .q-node-detail-body > .q-card > .q-card-head { flex-wrap: wrap; gap: 6px 10px; }
  .q-node-detail-body > .q-card > .q-card-head > .q-row:first-child { gap: 6px; }
  .q-node-detail-body > .q-card > .q-card-head > .q-row:last-child { margin-left: auto; }
  .q-node-detail-body .q-brief-title { font-size: 21px; }
  .q-node-detail-body .q-brief-text { font-size: 12px; line-height: 2.05; }
  .q-ambiguity-fold > summary { padding-block: 16px; gap: 8px; }
  .q-ambiguity-fold > summary > span { font-size: 12px; }
  .q-detail-card-body .q-field-line { grid-template-columns: 1fr; gap: 2px; }
  .q-node-detail-footer > .q-actions-buttons { width: 100%; }
  .q-general-feedback textarea { font-size: 13px; }
  :is(#scoping-app, #scoping-modal) .q-project-picker-item { padding: 13px 14px; }
  .q-project-picker-item > strong { font-size: 12px; }
}
@media (pointer: coarse) {
  .q-node-detail-header > .q-row .q-btn { min-width: 44px; min-height: 44px; }
  .q-general-feedback textarea { font-size: 16px; }
}

@media (min-width: 471px) and (max-width: 760px) {
  .q-canvas-header .q-brand-copy { display: none; }
  .q-canvas-project-switch { max-width: min(180px, calc(50vw - 150px)); }
}

/* Framework stage: preserve the quiet canvas; put analysis and feedback in the drawer. */
.q-stage-switch { pointer-events: auto; gap: 9px; }
:is(#scoping-app, #scoping-modal) .q-stage-switch button { padding: 6px 0; color: #839276; font-size: 12px; }
:is(#scoping-app, #scoping-modal) .q-stage-switch button[aria-pressed="true"] { color: #3c6c40; font-weight: 600; box-shadow: inset 0 -1px #789868; }
.q-framework-switcher { position: absolute; z-index: 12; top: 17px; left: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: calc(100% - 40px); }
.q-framework-switcher select { min-width: 0; max-width: 210px; border: 1px solid #dce5d4; border-radius: 7px; padding: 8px 11px; background: #fff; color: #47673a; font-size: 12px; }
.q-framework-switcher .q-badge { font-size: 10px; }
/* Correct outer zoom, then soften overview lines without changing the 100% pen widths. */
.q-framework-edges { position: absolute; pointer-events: none; overflow: visible; fill: none; stroke: #718766; stroke-width: calc(1.6px * var(--q-edge-inverse-scale,1) * var(--q-edge-weight-scale,1)); }
.q-framework-edges [data-layer] path { vector-effect: non-scaling-stroke; }
.q-framework-edges [data-layer="connections"] path { stroke-width: calc(var(--q-framework-edge-width,1.6px) * var(--q-edge-inverse-scale,1) * var(--q-edge-weight-scale,1)); }
.q-framework-edges [data-layer="connections"] .q-framework-tree-edge.is-selection-path { stroke: #527d39; --q-framework-edge-width: 2.6px; }
.q-framework-edges [data-layer="decorations"] path { stroke: #7c956b; stroke-width: calc(1.5px * var(--q-edge-inverse-scale,1) * var(--q-edge-weight-scale,1)); }
.q-framework-edges [data-layer="decorations"] [data-kind*="axis"], .q-framework-edges [data-layer="decorations"] [data-kind*="spine"], .q-framework-edges [data-layer="decorations"] [data-kind*="bone"] { stroke: #6f8b5e; stroke-width: calc(2.3px * var(--q-edge-inverse-scale,1) * var(--q-edge-weight-scale,1)); }
.q-framework-edges [data-layer="decorations"] text { fill: #698558; stroke: none; font-family: inherit; font-size: 14px; font-weight: 600; }
:is(#scoping-app, #scoping-modal) .q-framework-node { position: absolute; padding: 12px 15px 0; border: 1px solid #c7d5bd; border-radius: 9px; background: #fff; box-shadow: 0 4px 16px #33502a08; pointer-events: auto; cursor: pointer; color: #426438; user-select: none; }
:is(#scoping-app, #scoping-modal) .q-framework-node:hover { border-color: #88a375; }
:is(#scoping-app, #scoping-modal) .q-framework-node.is-selected { border-color: #5a8750; box-shadow: 0 0 0 3px #527d3914; }
.q-framework-node-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 9px; line-height: 1.5; color: #8b9e7b; }
.q-framework-node h2 { font-size: 13.5px; font-weight: 550; line-height: 1.55; margin: 0 !important; height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; color: #43633b; }
.q-framework-node .q-framework-node-description { font-size: 11px; line-height: 1.5; color: #809071; margin: 5px 0 0 !important; height: 50px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.q-framework-node-footer { display: flex; align-items: center; justify-content: space-between; height: 21px; gap: 10px; color: #8c9e7f; font-size: 9px; }
.q-depth-limit-label { color: #9b8050; }
.q-research-depth { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e7ecdf; }
.q-research-depth select { width: 100%; }
.q-research-depth small { color: #839276; font-size: 11px; line-height: 1.8; }
.q-depth-summary { color: #839276; font-size: 11px; line-height: 1.8; }
.q-depth-notice { padding: 12px 14px; border: 1px solid #e5dfcf; border-radius: 7px; background: #faf8f1; color: #8a774c; font-size: 12px; line-height: 1.9; }
.q-depth-notice > p { margin: 6px 0 10px; }
:is(#scoping-app, #scoping-modal) .q-framework-node-footer button { font-size: 10px; color: #5d824a; padding: 1px 0; }
.q-framework-heading { font-family: var(--q-serif); font-size: 21px; line-height: 1.9; font-weight: 500; color: #3c6237; overflow-wrap: anywhere; }
.q-framework-copy { color: #758966; font-size: 13px; line-height: 2; }
.q-framework-field { display: grid; gap: 7px; min-width: 0; }
.q-framework-field h3 { color: #567344; font-size: 12px; font-weight: 500; }
.q-framework-field p, .q-framework-field li, .q-framework-issue > p { color: #70835f; font-size: 12px; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.q-framework-field ul { margin: 0; padding-left: 19px; }
.q-framework-fold { padding: 13px 0; border-top: 1px solid #e1e8d9; min-width: 0; }
.q-framework-fold summary { color: #668452; font-size: 12px; line-height: 1.9; cursor: pointer; overflow-wrap: anywhere; }
.q-framework-fold[open] > :not(summary) { margin-top: 15px; }
.q-framework-fold > p { color: #70835f; font-size: 12px; line-height: 2; }
.q-framework-issue { display: grid; gap: 12px; padding: 0 0 15px; }
/* Node code prefix: program-assigned reference identity (B2, A1…). */
.q-node-code { display:inline-block; min-width:1.6em; margin-right:6px; color:var(--q-muted, #66746b); opacity:.8; font-weight:400; font-variant-numeric:tabular-nums; letter-spacing:.03em; }
.q-framework-children > button .q-node-code { margin-right:4px; font-weight:400; }
.q-framework-read-node > summary .q-node-code { margin-right:6px; }
.q-framework-children { display: grid; gap: 0; }
:is(#scoping-app, #scoping-modal) .q-framework-children button { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 12px 0; text-align: left; color: #5b7b48; font-size: 12px; line-height: 1.9; border-bottom: 1px solid #e6ecdf; overflow-wrap: anywhere; }
.q-framework-children button > span { flex: none; }
:is(#scoping-app, #scoping-modal) .q-framework-parent { justify-content: flex-start; text-align: left; line-height: 1.8; white-space: normal; overflow-wrap: anywhere; font-size: 11px; padding-inline: 0; }
.q-framework-reading { margin-top: 30px; display: grid; gap: 22px; }
.q-framework-reading > .q-spread h2 { margin: 0; }
.q-framework-reading-tree { display: grid; gap: 0; }
.q-framework-read-node { border-top: 1px solid #e1e8d9; padding: 16px 0; min-width: 0; }
.q-framework-read-node > summary { color: #4f733f; font-size: 14px; line-height: 1.9; cursor: pointer; overflow-wrap: anywhere; }
.q-framework-read-content { display: grid; gap: 20px; padding: 20px 0 0 15px; }
.q-framework-read-content > .q-btn { justify-self: start; }
.q-reader .q-framework-field h3 { margin: 0; }
.q-examples-link { margin-top: 18px; }
@media (max-width: 760px) {
  .q-framework-switcher { top: 12px; left: 12px; gap: 6px; max-width: calc(100% - 24px); }
  .q-framework-switcher select { max-width: min(200px, 50vw); }
  .q-framework-switcher .q-badge { display: none; }
  .q-framework-switcher .q-btn { padding-inline: 5px !important; }
  .q-node-tabs { gap: 18px; }
}
@media (pointer: coarse) {
  .q-framework-switcher select, .q-framework-children button { min-height: 44px; }
}

/* Method-informed agent workflow: only current results stay on the main canvas. */
.q-framework-viewbar { position: absolute; right: 21px; bottom: 22px; z-index: 13; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; max-width: calc(100% - 410px); padding: 4px; border: 1px solid #dce5d4; border-radius: 8px; background: #ffffffed; }
.q-framework-viewbar select { min-width: 0; max-width: 205px; border: 0; background: transparent; color: #5b7b48; padding: 7px 9px; font-size: 11px; }
.q-framework-viewbar .q-btn { font-size: 10px !important; padding: 6px 8px !important; }
.q-canvas-stage:has(.q-node-detail) .q-framework-viewbar { display: none; }
/* Node dependency overlays: line color = relation type, midpoint dot = upstream research state. */
.q-framework-edges .q-framework-dependency { fill: none; --q-framework-edge-width: 1.8px; opacity: .9; }
.q-framework-edges .q-framework-dependency.is-input { stroke: #4e875f; }
.q-framework-edges .q-framework-dependency.is-constraint { stroke: #4f7d9e; }
.q-framework-edges .q-framework-dependency.is-support { stroke: #3f9483; }
.q-framework-edges .q-framework-dependency.is-contradict { stroke: #bb5a4d; }
.q-framework-edges .q-framework-dependency.is-compare { stroke: #8d977f; }
.q-framework-edges .q-framework-dependency.is-optional { stroke-dasharray: calc(5px * var(--q-edge-inverse-scale,1)) calc(5px * var(--q-edge-inverse-scale,1)); }
.q-framework-edges .q-framework-dependency.is-inactive { opacity: .45; }
.q-framework-edges .q-framework-dependency.is-inactive:not(.is-optional) { stroke-dasharray: calc(2px * var(--q-edge-inverse-scale,1)) calc(4px * var(--q-edge-inverse-scale,1)); }
.q-framework-edges .q-flow-edge.is-input { --q-framework-edge-width: 1.8px; }
.q-framework-edges .q-flow-edge.is-reference { stroke-dasharray: calc(6px * var(--q-edge-inverse-scale,1)) calc(5px * var(--q-edge-inverse-scale,1)); }
#q-dependency-arrow path { fill: none; stroke: #7d8f74; stroke-width: 1; }
#q-flow-arrow path { stroke-width: 1; }
.q-framework-edges .q-dependency-state { stroke: #fff; stroke-width: 1.2; }
.q-framework-edges .q-dependency-state.is-ready { fill: #4e875f; }
.q-framework-edges .q-dependency-state.is-active { fill: #3a7bbf; }
.q-framework-edges .q-dependency-state.is-blocked { fill: #c28835; }
.q-framework-edges .q-dependency-state.is-failed { fill: #bb5a4d; }
.q-framework-edges .q-dependency-state.is-unknown { fill: #98a294; }
:is(#scoping-app, #scoping-modal) .q-framework-node.is-dimmed { opacity: .38; }
:is(#scoping-app, #scoping-modal) .q-framework-node.is-dependency-focus { box-shadow: 0 0 0 3px #4e875f33, 0 6px 25px #33502a14; }
:is(#scoping-app, #scoping-modal) .q-node-actionbar .q-node-dependencies.is-active { background: #e2eede; color: #2f6a3f; }
.q-canvas-dependency-toggle { color: #7e936a; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; }
.q-canvas-dependency-toggle:hover { background: #f1f6e9 !important; }
.q-canvas-dependency-toggle.is-active { color: #2f6a3f; background: #e9f2e4; }
.q-dependency-legend { position: absolute; left: 24px; bottom: 70px; z-index: 13; display: grid; gap: 4px; max-width: min(560px, calc(100% - 300px)); padding: 7px 11px; border: 1px solid #dce5d4; border-radius: 8px; background: #ffffffed; font-size: 10px; color: #5b7b48; line-height: 1.7; }
.q-dependency-legend > div { display: flex; flex-wrap: wrap; gap: 3px 10px; }
.q-dependency-legend span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.q-dependency-legend-note { color: #93a58d; }
.q-dependency-line { width: 14px; height: 0; border-top: 2px solid #8d977f; }
.q-dependency-line.is-input { border-color: #4e875f; }
.q-dependency-line.is-constraint { border-color: #4f7d9e; }
.q-dependency-line.is-support { border-color: #3f9483; }
.q-dependency-line.is-contradict { border-color: #bb5a4d; }
.q-dependency-line.is-compare { border-color: #8d977f; }
.q-dependency-line.is-optional { border-top-style: dashed; border-color: #8d977f; }
.q-dependency-dot { width: 8px; height: 8px; border-radius: 50%; background: #98a294; }
.q-dependency-dot.is-ready { background: #4e875f; }
.q-dependency-dot.is-active { background: #3a7bbf; }
.q-dependency-dot.is-blocked { background: #c28835; }
.q-dependency-dot.is-failed { background: #bb5a4d; }
.q-workflow-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.q-workflow-summary .q-btn { padding: 4px 0 !important; font-size: 11px !important; }
.q-workflow-running { position: absolute; z-index: 14; left: 24px; bottom: 82px; max-width: min(610px, calc(100% - 48px)); border: 1px solid #dce5d4; border-radius: 8px; padding: 10px 14px; background: #ffffffed; }
.q-workflow-running .q-workflow-summary { gap: 6px 11px; }
.q-workflow-review { display: grid; gap: 15px; padding: 15px 0 0; border-top: 1px solid #e1e8d9; min-width: 0; }
.q-workflow-review > .q-spread { flex-wrap: wrap; }
.q-workflow-review h3 { font-size: 13px; font-weight: 500; color: #496f3b; }
.q-workflow-review > p { font-size: 12px; line-height: 2; color: #718660; overflow-wrap: anywhere; }
.q-workflow-issue { border-bottom: 1px solid #e5ebdf; min-width: 0; padding-bottom: 13px; }
.q-workflow-issue > summary { display: flex; align-items: baseline; gap: 12px; color: #5b784b; font-size: 12px; line-height: 1.9; cursor: pointer; }
.q-workflow-issue > summary > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.q-workflow-issue > summary > small { flex: none; color: #8b855c; font-size: 10px; }
.q-workflow-issue[open] > .q-stack { padding-top: 15px; }
.q-workflow-change { display: grid; gap: 15px; }
.q-workflow-message { display: grid; gap: 7px; padding-top: 15px; border-top: 1px solid #e1e8d9; }
.q-workflow-message > strong { color: #547544; font-size: 12px; font-weight: 500; }
.q-workflow-message > small { color: #8a9b7a; font-size: 10px; }
.q-workflow-call { min-width: 0; padding: 15px 0; border-bottom: 1px solid #e1e8d9; }
.q-workflow-call > summary { color: #5d7f4d; font-size: 12px; cursor: pointer; line-height: 1.9; }
.q-workflow-call > summary { overflow-wrap: anywhere; }
/* Execution log: three-stage timeline of model calls around a node. */
.q-exec-usage { border: 1px solid #dbe4d0; border-radius: 9px; background: #f6f9f0; padding: 12px 14px; display: grid; gap: 9px; }
.q-exec-usage-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; }
.q-exec-usage-counts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #5d7550; }
.q-exec-usage-counts strong { font-size: 16px; color: #3e5749; font-variant-numeric: tabular-nums; }
.q-exec-usage-counts .is-failed strong { color: #b3564a; }
.q-exec-usage-tokens { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11px; color: #6a8259; background: #edf3e4; border-radius: 6px; padding: 6px 11px; }
.q-exec-usage-scope { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; width: 100%; }
.q-exec-usage-scope > strong { font-size: 13px; }
.q-exec-usage-scope > small { color: var(--q-muted, #74816e); font-size: 11px; }
.q-exec-usage-row + .q-exec-usage-row { border-top: 1px solid var(--q-border, #dbe4d0); padding-top: 9px; }
.q-exec-usage-model-fold { min-width: 0; }
.q-exec-usage-model-fold > summary { cursor: pointer; font-size: 12px; color: inherit; padding: 3px 0 7px; }
.q-exec-cache-rate small { color: var(--q-muted, #74816e); font-size: 10px; font-weight: 400; }
.q-exec-cache-coverage { display: block; margin-top: 2px; }
.q-exec-usage-scroll { max-width: 100%; min-width: 0; overflow-x: auto; }
.q-exec-usage-models { width: 100%; border-collapse: collapse; font-size: 11px; color: #4d6a42; }
.q-exec-usage-models th { text-align: left; font-weight: 600; color: #7d9470; font-size: 10px; padding: 4px 10px 4px 0; border-bottom: 1px solid #dbe4d0; white-space: nowrap; }
.q-exec-usage-models td { padding: 5px 10px 5px 0; border-bottom: 1px solid #eaf0e0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.q-exec-usage-models th[scope="row"] { color: inherit; font-size: 11px; font-weight: 550; }
.q-exec-usage-models :is(thead th:first-child, th[scope="row"]) { position: sticky; left: 0; z-index: 1; background: var(--q-elevated, #f6f9f0); }
.q-exec-usage-model-group th { font-size: 11px; padding-top: 10px; }
.q-exec-usage-models tr:last-child td { border-bottom: 0; }
.q-exec-usage-models td:first-child { font-weight: 550; }
.q-exec-usage > .q-help { margin: 0; }
.q-exec-stage { border: 1px solid #e3e9da; border-radius: 9px; background: #fbfcf8; overflow: hidden; }
.q-exec-stage-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 14px 9px; border-bottom: 1px solid #ebf0e3; }
.q-exec-stage-heading h3 { font-size: 14px; margin: 0; color: #3e5749; }
.q-exec-stage-heading .q-help { margin: 3px 0 0; }
.q-exec-stage-stats { display: flex; align-items: center; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.q-exec-stage-stats small { color: #93a58d; font-size: 10px; }
.q-exec-timeline { position: relative; padding: 8px 12px 10px 36px; display: grid; gap: 3px; }
.q-exec-timeline::before { content: ""; position: absolute; left: 24px; top: 16px; bottom: 14px; width: 1px; background: #d8e2cc; }
.q-exec-item, .q-exec-milestone { position: relative; }
.q-exec-item::before, .q-exec-milestone::before { content: ""; position: absolute; left: -18px; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; border-radius: 50%; background: #fff; border: 2px solid #7fa06b; }
.q-exec-milestone::before { background: #7fa06b; }
.q-exec-item.is-failed::before { border-color: #bb5a4d; background: #bb5a4d; }
.q-exec-item.is-running::before { border-color: #c28835; background: #c28835; }
.q-exec-milestone { display: flex; align-items: baseline; gap: 8px; padding: 4px 2px; color: #4a6a3f; font-size: 11px; font-weight: 600; }
.q-exec-milestone time { color: #93a58d; font-size: 10px; font-weight: 400; font-variant-numeric: tabular-nums; flex: none; }
.q-exec-milestone small { color: #8aa17c; font-weight: 400; }
.q-exec-item > summary { display: flex; flex-wrap: nowrap; align-items: baseline; gap: 5px; padding: 7px 6px; border-radius: 6px; font-size: 12px; color: #5d7550; cursor: pointer; list-style: none; min-width: 0; max-width: 100%; white-space: nowrap; overflow-x: auto; scrollbar-width: thin; }
.q-exec-item > summary > * { flex-shrink: 0; }
.q-exec-item > summary::-webkit-details-marker { display: none; }
.q-exec-item > summary:hover { background: #f0f5e9; }
.q-exec-item[open] > summary { background: #eef4e6; }
.q-exec-item > summary time { color: #93a58d; font-size: 10px; font-variant-numeric: tabular-nums; flex: none; }
.q-exec-op { font-weight: 600; color: #43654a; flex: none; }
.q-exec-tier { display: inline-flex; flex: none; align-items: center; padding: 0 5px; border: 1px solid var(--q-border, #dbe4d0); border-radius: 4px; background: var(--q-selected, #eef4e6); color: var(--q-accent, #43654a); font-size: 11px; font-weight: 600; line-height: 1.6; }
.q-exec-progress { font-size: 11px; white-space: nowrap; }
.q-exec-target { color: #7d9171; font-size: 10px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-exec-meta { display: inline-flex; align-items: baseline; gap: 6px; flex: none; margin-left: auto; color: #8aa17c; font-size: 10px; white-space: nowrap; }
.q-exec-state { font-weight: 650; }
.q-exec-call-info { display: grid; gap: 4px; margin: 0; font-size: 12px; }
.q-exec-call-info > div { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 8px; }
.q-exec-call-info dt { color: var(--q-muted, #6a8259); }
.q-exec-call-info dd { margin: 0; overflow-wrap: anywhere; }
.q-exec-item.is-failed > summary .q-exec-meta { color: #bb5a4d; }
.q-exec-item.is-running > summary .q-exec-op { color: #a3742c; }
.q-exec-detail { padding: 9px 10px 10px; margin-top: 3px; border-top: 1px dashed #dce7d0; border-radius: 0 0 6px 6px; background: #f6f9f1; }
.q-exec-raw > summary { color: #5d7f4d; font-size: 11px; cursor: pointer; padding: 4px 0; overflow-wrap: anywhere; }
.q-exec-raw pre { max-height: 340px; overflow: auto; }
.q-exec-detail .q-btn { font-size: 10px !important; }
.q-execution-log, .q-exec-usage, .q-exec-item, .q-exec-detail, .q-exec-content, .q-exec-message, .q-exec-field, .q-exec-field dd, .q-exec-array li { min-width: 0; max-width: 100%; }
.q-exec-detail { color: var(--q-text, #3e5749); }
.q-exec-answer-fold { min-width: 0; }
.q-exec-answer-fold > summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.q-exec-answer-fold[open] > summary { margin-bottom: 12px; }
.q-exec-content { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.q-exec-request { display: grid; gap: 10px; }
.q-exec-message { border: 1px solid var(--q-border, #dbe4d0); border-radius: 7px; padding: 9px 12px; }
.q-exec-message > summary { cursor: pointer; overflow-wrap: anywhere; }
.q-exec-message > summary > span { margin-left: 10px; font-size: 12px; color: var(--q-muted, #6a8259); }
.q-exec-message[open] > summary { margin-bottom: 12px; }
.q-exec-markdown.q-leaf-prose { width: 100%; max-width: none; margin: 0; font-size: 14px; }
.q-exec-content pre, .q-exec-content pre code { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
.q-exec-json { padding: 10px; background: var(--q-input, #f0f3ed); border-radius: 5px; }
.q-exec-fields { margin: 0; display: grid; gap: 12px; }
.q-exec-field { border-bottom: 1px solid var(--q-border, #dbe4d0); padding-bottom: 9px; }
.q-exec-field:last-child { border-bottom: 0; padding-bottom: 0; }
.q-exec-field > dt { font-size: 12px; font-weight: 600; color: var(--q-muted, #6a8259); margin-bottom: 4px; overflow-wrap: anywhere; }
.q-exec-field > dd { margin: 0; }
.q-exec-field .q-exec-markdown > :last-child { margin-bottom: 0; }
.q-exec-object { padding-left: 10px; border-left: 2px solid var(--q-border, #dbe4d0); }
.q-exec-object > summary { cursor: pointer; font-size: 12px; color: var(--q-muted, #6a8259); }
.q-exec-object[open] > summary { margin-bottom: 8px; }
.q-exec-array { margin: 0; padding-left: 24px; }
.q-exec-array > li + li { margin-top: 12px; }
.q-exec-scalar { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.q-model-failure-log { display: grid; gap: 12px; min-width: 0; color: var(--q-text, var(--q-ink)); }
.q-failure-counts { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12px; color: var(--q-muted, #63775b); }
.q-model-failure-log table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.q-model-failure-log th, .q-model-failure-log td { padding: 9px 8px; border-bottom: 1px solid var(--q-border, #dbe4d0); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.q-model-failure-log th { background: var(--q-elevated, #f2f6ee); }
.q-model-failure-log th:first-child { width: 17%; }
.q-model-failure-log th:last-child { width: 32%; }
.q-model-failure-log td > small { display: block; color: var(--q-muted, #63775b); font-size: 11px; }
.q-model-failure-log td > time { font-variant-numeric: tabular-nums; }
.q-model-failure-log .q-failure-trace { margin-top: 4px; }
.q-failure-trace dl { margin: 4px 0 0; display: grid; gap: 5px; font-size: 11px; }
.q-failure-trace dt { color: var(--q-muted, #63775b); }
.q-failure-trace dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .q-model-failure-log :is(table, tbody) { display: block; }
  .q-model-failure-log thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .q-model-failure-log tbody { display: grid; gap: 8px; }
  .q-model-failure-log tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--q-border, #dbe4d0); border-radius: 6px; }
  .q-model-failure-log td { display: block; min-width: 0; border: 0; }
  .q-model-failure-log td::before { display: block; margin-bottom: 3px; content: attr(data-column); font-size: 11px; color: var(--q-muted, #63775b); }
}
@media (max-width: 760px) {
  .q-exec-stage-heading { flex-wrap: wrap; }
  .q-exec-stage-stats { justify-content: flex-start; }
}
.q-progress-node { display: grid; gap: 5px; min-width: 0; padding: 10px 0; border-bottom: 1px solid #e5ebdf; }
.q-progress-node > button { white-space: normal; text-align: left; justify-content: flex-start; overflow-wrap: anywhere; }
.q-progress-node > small { color: #8b9c7b; font-size: 10px; line-height: 1.8; }
.q-progress-node > p { margin: 0; }
.q-workflow-call > .q-stack { padding-top: 14px; }
.q-workflow-source { display: grid; gap: 8px; }
.q-workflow-source > a { color: #5c7f47; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.q-workflow-source > p { color: #788b68; font-size: 11px; line-height: 1.9; overflow-wrap: anywhere; }
.q-workflow-ack { display: flex; align-items: flex-start; gap: 7px; color: #8b7e51; font-size: 11px; line-height: 1.8; }
.q-workflow-ack input { flex: none; margin-top: 3px; accent-color: #527548; }
.q-node-detail-footer:has(.q-workflow-ack) { flex-wrap: wrap; }
.q-node-detail-footer .q-workflow-ack { width: 100%; }
@media (max-width: 760px) {
  .q-framework-viewbar { right: 14px; left: 14px; bottom: 67px; max-width: none; justify-content: flex-start; }
  .q-framework-viewbar select { max-width: min(165px, 43vw); padding-inline: 5px; }
  .q-framework-viewbar .q-btn { padding-inline: 4px !important; }
  .q-workflow-running { left: 14px; top: 72px; bottom: auto; max-width: calc(100% - 28px); }
  .q-node-tabs { overflow-x: auto; flex-shrink: 0; gap: 19px; }
  .q-node-tabs button { flex: none; }
}
@media (pointer: coarse) {
  .q-framework-viewbar select, .q-workflow-issue summary { min-height: 44px; }
}

@media (max-width: 360px) {
  .q-canvas-tools { flex-wrap: wrap; width: 184px; }
  .q-canvas-presets { flex-basis: 100%; justify-content: space-between; border-top: 1px solid #e4ebdc; padding-top: 3px; margin-top: 3px; }
  .q-canvas-presets-divider { display: none; }
  .q-framework-viewbar { bottom: 113px; }
}

/* Research execution stays inside node details and secondary controls. */
.q-research-flow-edges { color: #8fa780; }
.q-research-flow-edges .q-flow-edge { fill: none; }
.q-research-flow-edges .is-aggregation { stroke: #b7c8ac; stroke-width: 1.1; opacity: .75; }
.q-research-flow-edges .is-input { stroke: #718f66; stroke-width: 1.5; }
.q-research-flow-edges .is-reference { stroke: #a48cac; stroke-width: 1.25; opacity: .85; }
.q-research-flow-edges marker path { stroke-width: 1.2; }
.q-research-flow-node .q-framework-node-footer { height: 33px; margin-top: 3px; gap: 6px; }
.q-research-card-status { min-width: 0; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; color: #7d8e70; }
.q-framework-view-switch { display: inline-flex; padding: 2px; gap: 2px; border-radius: 5px; background: #f2f6ed; }
:is(#scoping-app, #scoping-modal) .q-framework-view-switch button { padding: 6px 9px; color: #7c916b; font-size: 10px; border-radius: 4px; white-space: nowrap; }
:is(#scoping-app, #scoping-modal) .q-framework-view-switch button[aria-pressed="true"] { background: #fff; color: #476d39; box-shadow: 0 1px 4px #43613b0a; }
.q-view-options { position: relative; min-width: 0; }
.q-view-options > summary { cursor: pointer; color: #71865f; font-size: 10px; padding: 6px 9px; white-space: nowrap; }
.q-view-options > div { position: absolute; right: -5px; bottom: calc(100% + 13px); display: grid; gap: 7px; width: min(280px, 78vw); max-height: min(450px, 65vh); overflow: auto; padding: 12px; border: 1px solid #dbe4d3; border-radius: 8px; background: #fff; box-shadow: 0 8px 28px #38502a14; }
.q-view-options select { max-width: 100%; width: 100%; border: 1px solid #e2e9da; border-radius: 5px; }
.q-view-options .q-btn { justify-content: flex-start; text-align: left; white-space: normal; }
.q-research-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0 4px; }
.q-research-entry > .q-help { flex-basis: 100%; }
.q-research-entry .q-btn { font-size: 11px; }
.q-node-tabs { overflow-x: auto; scrollbar-width: thin; }
.q-node-tabs > button { flex: none; white-space: nowrap; }
.q-research-text, .q-research-source p { white-space: pre-wrap; overflow-wrap: anywhere; }
.q-research-source { display: grid; min-width: 0; gap: 8px; }
.q-research-source a { color: #4d7b49; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.q-research-source p { color: #7a8d6b; font-size: 11px; line-height: 1.9; }
.q-research-waiting { border-left: 2px solid #c6b986; padding: 5px 0 5px 13px; min-width: 0; }
.q-research-waiting > strong { color: #8a7b50; font-size: 12px; font-weight: 500; }
.q-research-waiting p { font-size: 11px; color: #7b876b; line-height: 1.9; overflow-wrap: anywhere; }
.q-research-waiting button { white-space: normal; text-align: left; padding-left: 0 !important; }
.q-research-check { display: flex; align-items: flex-start; gap: 9px; padding: 12px 13px; color: #5b784b; font-size: 12px; line-height: 1.9; }
.q-research-check input { flex: none; margin-top: 5px; accent-color: #527548; }
.q-research-check [data-prerequisite-reference-advisory] { display: block; margin-top: 3px; }
.q-research-schedule-list { display: grid; gap: 0; border-top: 1px solid #e0e7d9; }
.q-research-schedule-node { display: flex; align-items: flex-start; gap: 10px; padding: 13px 0; border-bottom: 1px solid #e6ecdf; min-width: 0; }
.q-research-schedule-node input { flex: none; margin-top: 5px; accent-color: #527548; }
.q-research-schedule-node > span { display: grid; gap: 5px; min-width: 0; }
.q-research-schedule-node strong { font-size: 12px; color: #547745; font-weight: 500; line-height: 1.8; overflow-wrap: anywhere; }
.q-research-schedule-node small { color: #8b987c; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.q-research-schedule-node.is-waiting strong { color: #8e9b7e; }
.q-research-review-actions { flex-wrap: wrap; justify-content: flex-end; }
.q-research-reading { display: grid; gap: 14px; margin-top: 35px; }
@media (max-width: 760px) {
  .q-framework-viewbar { gap: 6px; }
  .q-framework-view-switch button { padding-inline: 7px; }
  .q-view-options > div { right: -7px; }
}
@media (max-width: 470px) {
  .q-framework-viewbar { justify-content: space-between; padding: 5px; flex-wrap: nowrap; }
  .q-framework-viewbar > .q-btn { white-space: nowrap; }
  .q-view-options > summary { padding-inline: 5px; }
  .q-view-options > div { right: -6px; width: min(280px, calc(100vw - 40px)); }
  .q-research-entry .q-btn { font-size: 10px; }
}

/* Mind maps: compact questions, optional read-only expansion on the canvas. */
.q-mindmap-controls { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.q-framework-viewbar .q-mindmap-controls select { width: 124px; max-width: 150px; padding-inline: 7px; }
.q-simple-switch { display: inline-flex; align-items: center; gap: 5px; color: #70885e; font-size: 10px; line-height: 1.8; white-space: nowrap; cursor: pointer; }
.q-simple-switch input { width: 12px; height: 12px; margin: 0; accent-color: #5b7d48; }
:is(#scoping-app, #scoping-modal) .q-mindmap-node { padding: 9px 12px 7px; }
/* Fill and inset markers express depth without changing measured card geometry. */
:is(#scoping-app, #scoping-modal) .q-mindmap-node[data-node-depth] { background: #fbfcf9; border-color: #dce4d5; --q-node-marker: #dce4d5; --q-node-marker-width: 1px; }
:is(#scoping-app, #scoping-modal) .q-mindmap-node[data-node-depth="2"] { background: #fff; border-color: #c7d5bd; --q-node-marker: #c0d0b5; --q-node-marker-width: 2px; }
:is(#scoping-app, #scoping-modal) .q-mindmap-node.is-root-question { background: #dfead6; border-color: #8da77b; --q-node-marker: #63864f; --q-node-marker-width: 6px; }
:is(#scoping-app, #scoping-modal) .q-mindmap-node.is-primary-question { background: #edf3e7; border-color: #a3ba91; --q-node-marker: #8aa571; --q-node-marker-width: 4px; }
:is(#scoping-app, #scoping-modal) .q-mindmap-node[data-node-depth]:hover { border-color: #88a375; }
:is(#scoping-app, #scoping-modal) .q-mindmap-node[data-node-depth].is-selection-path { border-color: #6d925b; --q-node-marker: #527d39; }
:is(#scoping-app, #scoping-modal) .q-mindmap-node[data-node-depth].is-selected { border-color: #416c32; --q-node-marker: #416c32; box-shadow: 0 0 0 3px #527d392b; }
.q-mindmap-node[data-node-depth]::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: linear-gradient(90deg, var(--q-node-marker) var(--q-node-marker-width), transparent var(--q-node-marker-width)); pointer-events: none; }
.q-mindmap-node:is(.is-root-question,.is-primary-question) .q-framework-node-description { color: #586f4b; }
.q-mindmap-node.is-root-question h2, .q-mindmap-node.is-primary-question h2 { font-weight: 600; }
.q-mindmap-node h2 { height: 44px; font-size: 16px; line-height: 22px; -webkit-line-clamp: 2; }
.q-mindmap-node .q-framework-node-description { height: 40px; margin-top: 3px !important; font-size: 14px; line-height: 20px; -webkit-line-clamp: 2; }
.q-mindmap-node .q-framework-node-footer { height: 19px; margin-top: 5px; gap: 6px; }
.q-mindmap-node .q-framework-node-footer button { font-size: 9px !important; }
:is(#scoping-app, #scoping-modal) .q-mindmap-node.is-simple { padding: 0 12px; display: flex; align-items: stretch; }
.q-inline-node-heading { display: flex; gap: 8px; align-items: center; width: 100%; min-width: 0; }
.q-mindmap-node.is-simple .q-inline-node-heading > h2 { flex: 1; min-width: 0; height: auto; display: block; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; line-height: 1.7; }
:is(#scoping-app, #scoping-modal) .q-inline-node-heading .q-node-children-toggle { flex: none; width: 22px; height: 26px; padding: 0; color: #7a9367; font-size: 14px; }
:is(#scoping-app, #scoping-modal) .q-mindmap-node.is-inline-expanded { padding: 0; display: flex; flex-direction: column; cursor: default; user-select: text; }
.q-mindmap-node.is-inline-expanded > .q-inline-node-heading { flex: none; min-height: 52px; padding: 11px 14px; border-bottom: 1px solid #e4ebdc; }
:is(#scoping-app, #scoping-modal) .q-inline-node-title { flex: 1; min-width: 0; text-align: left; padding: 0; cursor: pointer; }
.q-inline-node-title > h2 { height: auto; max-height: 44px; font-size: 14px; line-height: 21px; -webkit-line-clamp: 2; white-space: normal; }
.q-inline-node-content { flex: 1; min-height: 0; min-width: 0; overflow: auto; overscroll-behavior: contain; padding: 15px 16px 20px; display: flex; flex-direction: column; gap: 16px; cursor: text; user-select: text; scrollbar-width: thin; scrollbar-color: #c7d8bd transparent; touch-action: pan-y; }
.q-inline-node-content .q-framework-field { flex: none; }
.q-inline-node-content .q-framework-field h3 { height: auto; font-size: 11px; line-height: 1.8; }
.q-inline-node-content .q-framework-field p, .q-inline-node-content .q-framework-field li { font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.q-inline-node-content:focus-visible { outline: 2px solid #91ac7f; outline-offset: -3px; }
.q-inline-node-actions { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 49px; padding: 9px 12px; border-top: 1px solid #e4ebdc; }
:is(#scoping-app, #scoping-modal) .q-inline-node-actions .q-btn { font-size: 11px; min-height: 30px; padding: 5px 9px; }
@media (max-width: 760px) {
  .q-framework-viewbar { flex-wrap: wrap; gap: 5px; justify-content: flex-start; }
  .q-framework-viewbar .q-mindmap-controls select { width: 116px; }
  .q-mindmap-controls { gap: 5px; }
}
@media (max-width: 470px) {
  .q-framework-viewbar { flex-wrap: wrap; padding: 5px; }
  .q-framework-viewbar .q-mindmap-controls select { width: 104px; padding-inline: 4px; }
  .q-framework-view-switch button { padding-inline: 7px !important; }
  .q-view-options { margin-left: auto; }
}
.q-mindmap-node.is-simple:not(.is-inline-expanded) .q-inline-node-heading > h2 { font-size: 15px; font-weight: 600; line-height: 1.7; }

/* Execution metadata updates without replacing the canvas or changing card geometry. */
.q-node-status-slot{display:inline-flex;align-items:center;min-width:0;flex-shrink:1;vertical-align:middle}
.q-node-status{display:inline-flex;align-items:center;gap:4px;min-width:0;max-width:100%;color:#87947f;font-size:9px;line-height:16px;white-space:nowrap}
.q-node-status>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.q-node-status svg{width:12px;height:12px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.q-node-status.is-active{color:#287758}.q-node-status.is-review,.q-node-status.is-stale{color:#a87527}.q-node-status.is-failed{color:#b34d45}.q-node-status.is-completed,.q-node-status.is-reused{color:#39714d}
.q-inline-node-heading>.q-node-status-slot{flex:none}.q-node-status.is-compact svg{width:15px;height:15px}
.q-research-failure{border:1px solid #e5c8c1;background:#fff9f7;border-radius:10px;padding:13px;display:grid;gap:9px;font-size:13px}.q-research-failure>p{margin:0}.q-research-failure pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto}
.q-research-starting>strong{display:flex;align-items:center;gap:8px}
.q-research-control{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border:1px solid #dfe5d5;border-radius:9px;background:#f8faf4}
.q-research-control strong,.q-research-control-indicator{font-size:12px;color:#6b7956}
.q-research-control p{margin:5px 0 0;font-size:11px;line-height:1.7;color:#7a866b}
.q-research-control-indicator{flex:none;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.q-research-control-button{white-space:nowrap;font-size:11px;min-height:34px}
.q-autorun-banner{position:absolute;top:17px;left:50%;transform:translateX(-50%);z-index:18;display:flex;align-items:center;gap:10px;max-width:min(720px,calc(100% - 45px));padding:9px 10px 9px 14px;border:1px solid #dfe5d5;border-radius:9px;background:#f8faf4;box-shadow:0 4px 14px rgba(56,66,45,.08)}
.q-autorun-banner .q-task-dot{width:6px;height:6px;flex:none;border-radius:50%;background:#80a66b}
.q-autorun-banner .q-task-dot.is-active{background:#4e875f;animation:q-status-pulse 1.4s ease-in-out infinite}
.q-autorun-banner p{margin:0;font-size:11px;line-height:1.7;color:#5c6a4c}
.q-autorun-banner[data-autorun-status="failed"]{border-color:#e5c8c1;background:#fff9f7}.q-autorun-banner[data-autorun-status="failed"] p{color:#9c5147}
.q-autorun-banner[data-framework-attempt="failed"]{border-color:#e5c8c1;background:#fff9f7}.q-autorun-banner[data-framework-attempt="failed"] p{color:#9c5147}
.q-framework-attempt{display:block}.q-framework-attempt>p{margin:7px 0 0}
.q-autorun-banner[data-autorun-status="interrupted"],.q-autorun-banner[data-autorun-status="stopped"]{border-color:#e8ddc0;background:#fdfaf1}.q-autorun-banner[data-autorun-status="interrupted"] p,.q-autorun-banner[data-autorun-status="stopped"] p{color:#7d6a3a}
.q-autorun-banner .q-btn{white-space:nowrap;font-size:10px;min-height:30px}
.q-canvas-stage:has(> .q-alert) > .q-autorun-banner{top:64px}
.q-auto-framework-toggle{display:inline-flex;align-items:center;gap:5px;margin-right:auto;color:#758965;font-size:10px;line-height:1.8;cursor:pointer}
.q-auto-framework-toggle input{margin:0;accent-color:#4e875f}
.q-auto-framework-toggle .q-icon{width:13px;height:13px}
.q-node-status.is-paused{color:#8a7b50;background:#faf6e9}
@media(max-width:650px){.q-canvas-header>.q-row{flex-shrink:0}.q-canvas-header .q-research-control-indicator{max-width:78px;font-size:10px}.q-canvas-header .q-research-control-button{min-height:32px;padding-inline:8px;font-size:10px}.q-research-control{align-items:flex-start;flex-wrap:wrap}}
@keyframes q-status-pulse{50%{opacity:.4}}

/* Detail tabs share Brief's compact navigation and persistent action area. */
.q-content-detail > .q-node-toolbar { padding-inline: 20px; gap: 8px; }
.q-content-detail .q-node-tabs { gap: 20px; overflow-x: auto; }
.q-content-detail > .q-node-detail-body { padding: 18px 24px 22px; gap: 16px; }
.q-content-detail .q-stack { gap: 14px; }
.q-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.q-detail-title { color: #315b3c; font-size: 21px; line-height: 1.55; font-weight: 600; overflow-wrap: anywhere; }
.q-detail-heading > .q-badge { flex: none; margin-top: 5px; }
.q-detail-question { color: #536f45; font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.q-detail-context { font-size: 15px; font-weight: 600; line-height: 1.7; color: #44683e; overflow-wrap: anywhere; }
:is(#scoping-app,#scoping-modal) .q-detail-parent { align-self: flex-start; max-width: 100%; min-height: 28px; padding: 0 !important; color: #839775; font-size: 11px; text-align: left; overflow-wrap: anywhere; }
.q-detail-node-brief { display: grid; gap: 14px; }
.q-content-detail .q-framework-field h3 { font-size: 12px; margin-bottom: 5px; color: #4f7042; }
.q-content-detail .q-framework-field :is(p,li) { font-size: 13px; line-height: 1.85; }
.q-content-detail .q-framework-field ul { padding-left: 19px; }
.q-content-detail .q-framework-fold { padding: 10px 0; }
.q-content-detail .q-framework-fold[open] > :not(summary) { margin-top: 10px; }
.q-content-detail .q-framework-children button { min-height: 42px; padding-block: 9px; line-height: 1.75; }
.q-content-detail .q-detail-issue-link { align-self: flex-start; padding-inline: 0 !important; }
.q-detail-utilities { position: relative; }
.q-detail-menu { position: static; }
.q-detail-menu > summary { display: flex; align-items: center; justify-content: center; width: 32px; min-height: 36px; cursor: pointer; border-radius: 5px; color: #859778; list-style: none; }
.q-detail-menu > summary::-webkit-details-marker { display: none; }
.q-detail-menu > summary:hover, .q-detail-menu[open] > summary { background: #f0f5ec; color: #476c3d; }
.q-detail-menu > div { position: absolute; right: 34px; top: calc(100% + 7px); width: 220px; max-width: calc(100vw - 40px); padding: 8px; background: #fff; border: 1px solid #dce6d3; border-radius: 9px; box-shadow: 0 8px 26px #304a251a; display: grid; gap: 3px; z-index: 50; }
:is(#scoping-app,#scoping-modal) .q-detail-menu > div > .q-btn { justify-content: flex-start; text-align: left; min-height: 36px; padding: 7px 10px !important; font-size: 12px; }
.q-detail-menu .q-field { padding: 6px; font-size: 11px; }
.q-detail-menu select { width: 100%; font-size: 12px; }
.q-detail-footer { gap: 9px; padding: 10px 24px 12px; }
.q-detail-footer-content { display: grid; gap: 8px; }
.q-detail-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.q-detail-task-state { display: flex; align-items: center; gap: 7px; min-width: 0; color: #829377; font-size: 10px; line-height: 1.6; }
.q-detail-task-state > span:last-child { overflow-wrap: anywhere; }
.q-detail-task-state.is-active .q-task-dot { background: #4e875f; animation: q-status-pulse 1.4s ease-in-out infinite; }
.q-detail-footer .q-actions-buttons { flex: none; margin: 0; display: flex; align-items: center; gap: 7px; }
.q-detail-footer .q-actions-buttons:empty { display: none; }
.q-detail-footer .q-actions-buttons .q-btn { min-height: 36px; padding: 7px 12px; white-space: nowrap; }
.q-detail-footer .q-research-review-actions { flex-wrap: nowrap; gap: 7px; }
.q-detail-footer .q-workflow-ack { margin: 0; font-size: 11px; }
.q-detail-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; color: #87967c; font-size: 10px; min-height: 28px; }
.q-detail-meta .q-badge { font-size: 10px; }
.q-detail-meta time { margin-left: auto; }
.q-detail-version { margin: 0; width: auto; }
.q-detail-version select { max-width: 180px; min-height: 30px; padding: 4px 24px 4px 8px; font-size: 11px; }
.q-content-detail .q-leaf-reader { margin-top: 0; }
.q-content-detail .q-detail-execution { border: 0; border-bottom: 1px solid #e1e8d9; border-radius: 0; background: transparent; padding: 0 0 10px; }
.q-detail-execution > summary { cursor: pointer; font-size: 11px; color: #6f855e; line-height: 1.8; }
.q-detail-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.q-detail-section-head h3 { font-size: 13px; font-weight: 600; color: #4e7140; }
:is(#scoping-app,#scoping-modal) .q-detail-section-head > .q-btn { padding: 3px 8px !important; min-width: 32px; min-height: 32px; font-size: 20px; line-height: 1; }
.q-detail-relation > summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; list-style: none; position: relative; padding-left: 15px; }
.q-detail-relation > summary::-webkit-details-marker { display: none; }
.q-detail-relation > summary::before { content: '›'; position: absolute; left: 0; top: 0; color: #8ca17c; font-size: 16px; line-height: 24px; }
.q-detail-relation[open] > summary::before { transform: rotate(90deg); }
.q-detail-relation-title { font-weight: 600; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.q-detail-relation-kind { font-size: 10px; color: #879678; white-space: nowrap; align-self: start; }
.q-detail-relation-use { grid-column: 1/-1; color: #849377; font-size: 11px; line-height: 1.7; }
.q-detail-relation > summary > .q-badge { justify-self: start; }
.q-audit-overview { display: grid; gap: 7px; padding-bottom: 12px; border-bottom: 1px solid #dfe7d7; }
.q-audit-overview .q-spread { gap: 12px; flex-wrap: wrap; }
.q-audit-overview strong { font-size: 15px; color: #3d653e; }
.q-audit-overview p, .q-audit-empty { font-size: 12px; color: #778c66; line-height: 1.8; }
.q-audit-issues { display: grid; gap: 0; }
.q-audit-issue { padding: 11px 0; }
.q-audit-issue > summary { position: relative; padding-left: 15px; align-items: flex-start; list-style: none; }
.q-audit-issue > summary::-webkit-details-marker { display: none; }
.q-audit-issue > summary::before { content: '›'; position: absolute; left: 0; top: 0; color: #8ca17c; font-size: 16px; line-height: 24px; }
.q-audit-issue[open] > summary::before { transform: rotate(90deg); }
.q-audit-issue-copy { display: grid; gap: 5px; }
.q-audit-issue-copy strong { font-size: 12px; font-weight: 550; color: #4e7044; line-height: 1.8; }
.q-audit-recommendation { font-size: 12px; color: #819271; line-height: 1.8; }
.q-audit-issue > summary > small { margin-top: 2px; }
.q-audit-issue-detail { padding-left: 15px; }
.q-audit-node-link { align-self: flex-start; max-width: 100%; white-space: normal; text-align: left; padding: 0 !important; overflow-wrap: anywhere; }
.q-audit-attribution { color: #96a38a; font-size: 10px; }
.q-audit-review-conclusion { display: grid; gap: 10px; }
.q-audit-review-conclusion .q-spread { gap: 8px; align-items: baseline; flex-wrap: wrap; }
.q-audit-review-conclusion .q-spread h3 { font-size: 12px; }
.q-audit-review-conclusion .q-spread small { color: #8a9a7e; font-size: 10px; }
.q-content-detail :is(summary,button,select,textarea):focus-visible { outline: 2px solid #85a871; outline-offset: 3px; }
@media (max-width: 600px) {
  .q-content-detail > .q-node-toolbar { padding-inline: 14px; gap: 5px; }
  .q-content-detail .q-node-tabs { gap: 16px; }
  .q-content-detail > .q-node-detail-body { padding: 15px 16px 20px; }
  .q-content-detail .q-detail-title { font-size: 19px; }
  .q-content-detail .q-detail-question { font-size: 13px; }
  .q-detail-menu > summary { min-width: 36px; min-height: 40px; }
  .q-detail-footer { padding: 9px 14px 11px; }
  .q-detail-footer .q-actions-buttons { display: flex; width: auto; margin: 0; }
  .q-detail-footer .q-actions-buttons .q-btn { min-height: 40px !important; padding-inline: 10px !important; font-size: 11px !important; }
  .q-detail-task-state { font-size: 10px; }
  .q-detail-footer-row { gap: 8px; }
  .q-detail-relation > summary { grid-template-columns: minmax(0,1fr); }
  .q-detail-relation-kind { white-space: normal; }
  .q-detail-meta { gap: 7px; }
  .q-detail-meta time { margin-left: 0; }
  .q-audit-issue > summary { gap: 8px; }
  .q-audit-issue > summary > small { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { .q-detail-task-state.is-active .q-task-dot { animation: none; } }
.q-detail-version { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; }
.q-detail-version select { color: #56714a; background: #fafcf8; border: 1px solid #d9e3d1; border-radius: 5px; font: inherit; font-size: 11px; }
.q-detail-execution > summary > span { margin-left: 10px; font-size: 10px; color: #8a9b7e; }
/* Failed requests remain dismissible above an open detail panel. */
.q-canvas-stage > .q-alert { z-index: 40; }
.q-research-header-control { display: inline-flex; align-items: center; gap: 8px; }

/* Canvas layout and depth controls stay together above the zoom tools. */
.q-framework-viewbar { left: 24px; right: auto; bottom: 70px; width: max-content; max-width: min(370px, calc(100% - 48px)); gap: 4px 8px; padding: 4px; justify-content: flex-start; flex-wrap: wrap; box-shadow: 0 3px 12px #2e492c07; }
.q-framework-viewbar .q-mindmap-controls { gap: 6px; }
.q-framework-viewbar .q-mindmap-controls select { width: 120px; max-width: 140px; min-height: 32px; padding: 5px 7px; cursor: pointer; }
.q-framework-viewbar .q-simple-switch { min-height: 32px; padding: 0 5px; font-size: 11px; }
.q-framework-viewbar .q-simple-switch input { width: 14px; height: 14px; }
.q-depth-controls { display: inline-flex; align-items: center; gap: 2px; padding-left: 6px; border-left: 1px solid #e0e8d8; }
:is(#scoping-app, #scoping-modal) .q-depth-controls button { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 32px; padding: 5px 7px; border-radius: 5px; color: #7a906b; font-size: 11px; line-height: 1.6; white-space: nowrap; }
:is(#scoping-app, #scoping-modal) .q-depth-controls button:hover { background: #f1f6eb; color: #4c743b; }
:is(#scoping-app, #scoping-modal) .q-depth-controls button[aria-pressed="true"] { background: #eaf2e2; color: #476f35; font-weight: 600; }
.q-framework-viewbar :is(button,select,input):focus-visible { outline: 2px solid #85a871; outline-offset: 2px; }

/* Compact cards preserve the title and branch control without execution chrome. */
:is(#scoping-app, #scoping-modal) .q-framework-node.is-simple:not(.is-inline-expanded) { min-height: 48px; max-height: none; padding: 7px 12px; display: flex; align-items: center; overflow: visible; }
.q-framework-node.is-simple:not(.is-inline-expanded) .q-inline-node-heading { min-height: 0; gap: 6px; }
.q-framework-node.is-simple:not(.is-inline-expanded) .q-inline-node-heading > h2 { flex: 1; min-width: 0; height: auto; max-height: none; display: block; margin: 0 !important; font-size: 16px; font-weight: 600; line-height: 24px; white-space: pre-wrap; text-overflow: clip; overflow: visible; overflow-wrap: anywhere; -webkit-line-clamp: unset; }
.q-framework-node.is-simple:not(.is-inline-expanded) :is(.q-node-status-slot,.q-framework-node-description,.q-framework-node-footer,.q-inline-node-content,.q-inline-node-actions) { display: none; }
:is(#scoping-app, #scoping-modal) .q-framework-node.is-simple:not(.is-inline-expanded) .q-node-children-toggle { flex: none; width: 28px; height: 32px; padding: 0; border-radius: 4px; }

.q-canvas-snap-guides { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 9; color: #5a8750; }
.q-canvas-snap-guides line { stroke: currentColor; stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; opacity: .85; }

@media (min-width: 761px) {
  .q-canvas-stage:has(.q-framework-viewbar) > .q-workflow-running { bottom: 124px; }
}
@media (max-width: 760px) {
  .q-framework-viewbar { left: 19px; right: auto; bottom: 68px; max-width: min(370px, calc(100% - 38px)); }
}
@media (pointer: coarse) {
  .q-framework-viewbar { bottom: 78px; }
  .q-framework-viewbar .q-mindmap-controls select, .q-framework-viewbar .q-simple-switch, :is(#scoping-app, #scoping-modal) .q-depth-controls button { min-height: 44px; }
  :is(#scoping-app, #scoping-modal) .q-depth-controls button { min-width: 44px; }
  :is(#scoping-app, #scoping-modal) .q-framework-node.is-simple:not(.is-inline-expanded) .q-node-children-toggle { width: 44px; height: 44px; }
}
@media (max-width: 470px) {
  .q-framework-viewbar { left: 15px; right: auto; bottom: 76px; max-width: calc(100% - 30px); gap: 4px 6px; padding: 4px; }
  .q-framework-viewbar .q-mindmap-controls select { width: 104px; min-height: 44px; padding-inline: 5px; }
  .q-framework-viewbar .q-simple-switch, :is(#scoping-app, #scoping-modal) .q-depth-controls button { min-height: 44px; }
  :is(#scoping-app, #scoping-modal) .q-depth-controls button { min-width: 44px; padding-inline: 6px; }
  .q-depth-controls { padding-left: 4px; }
  .q-canvas-tools { gap: 0; padding: 3px; max-width: calc(100% - 30px); }
  :is(#scoping-app, #scoping-modal) .q-canvas-tools button, :is(#scoping-app, #scoping-modal) .q-canvas-presets button { width: 44px; height: 44px; }
  .q-canvas-tools > span { min-width: 30px; }
  .q-canvas-tools > i { margin: 0; }
  .q-canvas-presets { gap: 0; }
}
@media (max-width: 360px) {
  .q-canvas-tools { width: min(330px, calc(100% - 30px)); }
  .q-framework-viewbar { bottom: 128px; }
  .q-depth-controls { padding-left: 0; border-left: 0; }
}

/* Framework content uses the same safe Markdown presentation as Brief. */
.q-content-detail .q-framework-markdown { display: grid; gap: 10px; overflow-wrap: anywhere; }
.q-content-detail .q-framework-markdown :is(h1,h2,h3,h4,h5,h6) { margin: 5px 0 0; color: #46683e; font-size: 14px; font-weight: 600; line-height: 1.8; }
.q-content-detail .q-framework-markdown > :first-child { margin-top: 0; }
.q-content-detail .q-framework-markdown p { margin: 0; font-size: 13px; line-height: 1.9; }
.q-content-detail .q-framework-markdown :is(ul,ol) { margin: 0; padding-left: 21px; }
.q-content-detail .q-framework-markdown li { margin: 3px 0; font-size: 13px; line-height: 1.85; }
.q-content-detail .q-framework-markdown li > :is(ul,ol) { margin-top: 3px; }
.q-content-detail .q-framework-markdown blockquote { margin: 0; padding-left: 12px; border-left: 2px solid #d7e2ce; color: #7a8d69; }
.q-content-detail .q-framework-markdown table { width: 100%; border-collapse: collapse; font-size: 12px; }
.q-content-detail .q-framework-markdown :is(td,th) { padding: 6px 8px; border: 1px solid #dfe7d7; text-align: left; }
.q-framework-children-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 3px; }
.q-content-detail .q-framework-children-heading > h3 { margin: 0; }
.q-decomposition-info-wrap { display: inline-flex; align-items: center; flex: none; }
:is(#scoping-app,#scoping-modal) .q-decomposition-info { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; min-height: 28px; padding: 0; color: #91a280; background: transparent; border: 0; border-radius: 5px; font-size: 12px; cursor: help; }
:is(#scoping-app,#scoping-modal) .q-decomposition-info:hover, :is(#scoping-app,#scoping-modal) .q-decomposition-info[aria-expanded="true"] { color: #4c7440; background: #eef4e7; }
.q-decomposition-note { position: fixed; z-index: 90; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; padding: 12px 14px; border: 1px solid #dbe5d2; border-radius: 8px; background: #fff; box-shadow: 0 6px 24px #314b241a; color: #728563; font-size: 12px; line-height: 1.9; white-space: pre-wrap; font-weight: 400; cursor: text; }
.q-decomposition-note[hidden] { display: none; }
.q-framework-decisions .q-framework-decision { display: grid; gap: 9px; padding-bottom: 12px; border-bottom: 1px solid #e2e9db; }
.q-framework-decisions .q-framework-decision:last-child { border-bottom: 0; padding-bottom: 0; }
@media (pointer: coarse) { :is(#scoping-app,#scoping-modal) .q-decomposition-info { width: 40px; height: 40px; min-height: 40px; } }

.q-content-detail .q-detail-node-brief { gap: 7px; }
.q-content-detail .q-framework-readiness { display: grid; gap: 7px; }
.q-framework-readiness > ul { margin: 0; padding-left: 18px; }
.q-framework-readiness > button { justify-self: start; }
.q-detail-footer .q-framework-conditions { min-width: 0; padding: 4px 0; }
.q-detail-footer .q-framework-conditions > :not(summary) { margin-top: 6px; }
.q-framework-condition-list { max-height: min(26vh, 220px); overflow: auto; overscroll-behavior: contain; display: grid; gap: 9px; }
.q-framework-condition { min-width: 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.75; }
/* Product sections stay distinct from headings authored inside the Brief. */
.q-detail-framework { --q-section-fill: #f0f4ed; --q-section-marker: #b7c8aa; --q-section-divider: #dfe7d8; }
.q-detail-framework > .q-detail-storyline { padding-top: 12px; border-top: 1px solid var(--q-section-divider); }
.q-content-detail .q-detail-framework > .q-framework-brief-fold { padding: 0; border: 1px solid var(--q-border, #dfe7d8); border-radius: 7px; }
.q-detail-framework > .q-framework-brief-fold > summary { padding: 10px 12px; }
.q-detail-framework > .q-framework-brief-fold > div { padding: 0 12px 12px; }
.q-content-detail .q-detail-framework > .q-detail-storyline > .q-framework-field > h3,
.q-content-detail .q-detail-framework .q-detail-node-brief > h3,
.q-content-detail .q-detail-framework > .q-framework-field > .q-framework-children-heading {
  margin: 0 0 7px;
  padding: 6px 9px;
  border-left: 3px solid var(--q-section-marker);
  border-radius: 0 4px 4px 0;
  background: var(--q-section-fill);
  color: #42613b;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
}
.q-content-detail .q-detail-framework .q-detail-node-brief > h3 { margin-bottom: 0; }
.q-content-detail .q-detail-framework > .q-framework-field > .q-framework-children-heading { padding-block: 3px; }
.q-content-detail .q-detail-framework > .q-framework-field > .q-framework-children-heading > h3 { min-width: 0; font: inherit; color: inherit; }
.q-content-detail .q-detail-framework > .q-framework-fold > summary { font-size: 13px; font-weight: 600; }
@media (pointer: coarse) {
  .q-content-detail .q-detail-framework > .q-framework-field > .q-framework-children-heading { padding-block: 0; }
}
.q-decomposition-info > span { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; font-weight: 600; line-height: 1; }
.q-content-detail .q-framework-markdown { min-width: 0; }
.q-content-detail .q-framework-markdown pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.q-content-detail .q-framework-decisions :is(p,li) { color: #70835f; font-size: 13px; line-height: 1.85; }
.q-content-detail .q-framework-decision-limits > ul { margin: 0; padding-left: 19px; }

/* Every card exposes its state and the two recursive actions in one quiet row. */
.q-node-actionbar { display: flex; align-items: center; justify-content: space-between; flex: none; width: 100%; min-width: 0; height: 18px; margin-bottom: 2px; }
.q-node-action-buttons { display: inline-flex; align-items: center; gap: 2px; flex: none; transform-origin: right bottom; }
:is(#scoping-app,#scoping-modal) .q-node-actionbar button { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; min-width: 22px; height: 18px; min-height: 18px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #658454; cursor: pointer; }
.q-node-actionbar .q-node-status-control { transform-origin: left bottom; }
:is(#scoping-app,#scoping-modal) .q-node-actionbar button:disabled { color: #87947f; opacity: .38; cursor: default; }
:is(#scoping-app,#scoping-modal) .q-node-actionbar button:not(:disabled):hover { background: #e8f0e1; color: #3e713d; }
.q-node-actionbar button:focus-visible { outline: 2px solid #7f9e6e; outline-offset: 2px; }
.q-node-actionbar .q-icon, .q-node-actionbar .q-node-status.is-compact svg { width: 13px; height: 13px; }
.q-node-actionbar .q-node-status { line-height: 16px; background: transparent; }
.q-root-node .q-root-label > .q-node-actionbar { width: 86px; margin-bottom: 0; }
.q-mindmap-node > .q-inline-node-heading { gap: 6px; }
.q-mindmap-node:not(.is-simple) > .q-inline-node-heading > h2 { flex: 1; min-width: 0; }
:is(#scoping-app,#scoping-modal) .q-mindmap-node:not(.is-simple) > .q-inline-node-heading > .q-node-children-toggle { width: 22px; height: 22px; min-height: 22px; padding: 0; flex: none; border-radius: 4px; font-size: 14px; }
.q-node-role-note { position: absolute; left: 12px; bottom: 3px; max-width: calc(100% - 24px); font-size: 12px; line-height: 16px; }
:is(#scoping-app,#scoping-modal) .q-framework-node.is-simple:not(.is-inline-expanded) { flex-direction: column; align-items: stretch; }
.q-framework-node.is-simple:not(.is-inline-expanded) > .q-inline-node-heading { flex: 1; }
:is(#scoping-app,#scoping-modal) .q-framework-node.is-simple .q-node-actionbar .q-node-status-slot { display: inline-flex; }
/* Enlarge only the focused card's controls above the card at low canvas zoom. */
:is(.q-framework-node,.q-root-node):is(:hover,:focus-within) { z-index: 12; }
:is(.q-framework-node,.q-root-node):is(:hover,:focus-within) .q-node-action-buttons,
:is(.q-framework-node,.q-root-node):is(:hover,:focus-within) .q-node-status-control { transform: scale(var(--q-node-tool-scale,1)); background: var(--q-node-tools-bg,#f7faf3); border-radius: 4px; }
.q-tier-toggle{display:flex;align-items:center;gap:6px;color:#5c6a4c;font-size:11px;line-height:1.7;cursor:pointer}
.q-tier-toggle input{margin:0;accent-color:#4e875f}
.q-tier-toggle .q-row{flex:1}
.q-model-config-section:first-child{border-top:0;padding-top:0}
.q-dialog-body .q-model-config-section > summary{font-size:14px;font-weight:650;padding:6px 0}
.q-model-config-section[open] > :not(summary){margin-top:10px}
.q-config-provider-group{display:grid;gap:12px;min-width:0}
.q-config-provider-group + .q-config-provider-group{padding-top:14px;border-top:1px solid var(--q-border,#e1e8d9)}
.q-config-provider-group h3{font-size:13px;font-weight:600;color:var(--q-heading,#456939)}
.q-config-model-choices{display:flex;flex-wrap:wrap;gap:6px}
:is(#scoping-app,#scoping-modal) .q-config-model-choices button{white-space:normal;overflow-wrap:anywhere;text-align:left;max-width:100%}
:is(#scoping-app,#scoping-modal) .q-config-model-choices button[aria-pressed="true"]{border-color:var(--q-accent,#638053);color:var(--q-accent,#456939);font-weight:650}
.q-model-config-fields{min-inline-size:0;margin:0;padding:0;border:0}
.q-model-config-feedback{flex:0 0 100%;min-width:0;color:var(--q-muted,#667f53);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.q-model-config-feedback.success{color:var(--q-success-text,#4a7440)}
.q-model-config-feedback.error{color:var(--q-error-text,#a05d38)}
.q-model-config-feedback[hidden],.q-model-config-actions .q-spinner[hidden]{display:none}
.q-model-config-actions{margin-inline-start:auto;justify-content:flex-end}
.q-supplier-models{display:grid;gap:8px}
.q-supplier-model{display:grid;grid-template-columns:minmax(0,1fr) minmax(122px,172px);align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--q-border,#e1e8d9)}
.q-supplier-model > span,.q-supplier-model-budget{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}
.q-supplier-model strong{font-size:13px;font-weight:600;color:var(--q-ink,#456939)}
.q-supplier-model small{color:var(--q-muted,#667f53)}

/* Node workflow: keep the whole path visible and separate phase from runtime. */
.q-node-indicators { display: inline-flex; align-items: center; gap: 4px; flex: none; transform-origin: left bottom; }
.q-node-stage-slot { display: inline-flex; align-items: center; }
.q-node-stage, .q-node-runtime { position: relative; display: inline-flex; align-items: center; justify-content: center; color: var(--q-muted, #7b8b70); }
.q-node-stage { color: var(--q-accent, #527347); }
.q-node-stage .q-icon, .q-node-runtime .q-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.q-node-runtime.tone-active { color: var(--q-accent, #287758); }
.q-node-runtime.tone-warning { color: var(--q-warning-text, #a87527); }
.q-node-runtime.tone-error { color: var(--q-error-text, #b34d45); }
.q-node-runtime.tone-success { color: var(--q-success-text, #39714d); }
.q-node-icon.is-running .q-node-icon-rotor { transform-origin: 12px 12px; animation: q-node-running 1.1s linear infinite; }
@keyframes q-node-running { to { transform: rotate(360deg); } }
.q-root-node .q-root-label > .q-node-actionbar { width: 112px; }
:is(.q-framework-node,.q-root-node):is(:hover,:focus-within) .q-node-indicators { transform: scale(var(--q-node-tool-scale,1)); background: var(--q-node-tools-bg,#f7faf3); border-radius: 4px; }
:is(.q-framework-node,.q-root-node):is(:hover,:focus-within) .q-node-status-control { transform: none; }
.q-node-indicators button { position: relative; }
.q-node-indicators [data-tooltip]::after, .q-node-progress-step[data-tooltip]::after { content: attr(data-tooltip); position: absolute; z-index: 30; bottom: calc(100% + 10px); left: -4px; width: max-content; max-width: 250px; padding: 7px 10px; border: 1px solid var(--q-border, #dce6d3); border-radius: 7px; background: var(--q-elevated, #fff); color: var(--q-text, #3f5737); box-shadow: 0 4px 16px #00000018; font-size: var(--q-font-caption,12px); font-weight: 400; line-height: 1.7; text-align: left; white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; }
.q-node-indicators button:is(:hover,:focus-visible) [data-tooltip]::after, .q-node-progress-step[data-tooltip]:is(:hover,:focus-visible)::after { opacity: 1; visibility: visible; }
.q-node-indicators:has(button:hover) button:not(:hover):focus-visible [data-tooltip]::after { opacity: 0; visibility: hidden; }
.q-footer-progress { display: contents; }
.q-footer-progress :is(.q-detail-task-state,.q-brief-task-state) { flex: 1; min-width: 24px; overflow: hidden; white-space: nowrap; }
.q-node-progress-track { list-style: none; display: inline-flex; align-items: center; gap: 4px; flex: none; width: auto; height: 28px; margin: 0; padding: 0; }
.q-node-progress-step { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 28px; color: var(--q-faint, #8c9883); }
.q-node-progress-step::before { content: ''; position: absolute; top: 14px; left: -4px; width: 4px; height: 1px; background: var(--q-border, #dfe7d6); }
.q-node-progress-step:first-child::before { display: none; }
.q-node-progress-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 28px; border: 1px solid transparent; border-radius: 5px; background: transparent; }
.q-node-progress-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.q-node-progress-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.q-node-progress-step.is-done { color: var(--q-accent, #527347); }
.q-node-progress-step.is-done::before, .q-node-progress-step.is-current::before { background: var(--q-accent, #759b68); }
.q-node-progress-step.is-done .q-node-progress-icon { background: var(--q-selected, #f2f6ef); }
.q-node-progress-step.is-current { color: var(--q-accent, #3c713e); font-weight: 600; }
.q-node-progress-step.is-current .q-node-progress-icon { border-color: var(--q-accent, #4f7944); background: var(--q-selected, #eaf2e5); color: var(--q-accent, #4f7944); }
.q-node-progress-step:focus-visible { outline: 2px solid var(--q-accent, #7f9e6e); outline-offset: 3px; border-radius: 5px; }
.q-node-progress-step:last-child[data-tooltip]::after { left: auto; right: 0; }
.q-brief-footer-row > .q-btn { flex: none; }
@media (prefers-reduced-motion: reduce) { .q-node-icon.is-running .q-node-icon-rotor { animation: none; } }
.q-node-state-legend { display: grid; gap: 24px; color: var(--q-text,#3f5737); }
.q-node-state-legend h3 { margin: 0 0 12px; color: var(--q-heading,#3f5737); font-size: var(--q-font-body,16px); }
.q-node-legend-intro { margin: 0; font-size: var(--q-font-ui,14px); line-height: 1.85; }
.q-node-legend-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 20px; }
.q-node-legend-item { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.q-node-legend-glyph { display: inline-flex; flex: none; width: 28px; height: 28px; align-items: center; justify-content: center; border: 1px solid var(--q-border,#dce6d3); border-radius: 6px; color: var(--q-accent,#527347); }
.q-node-legend-glyph.tone-warning { color: var(--q-warning-text,#a87527); }
.q-node-legend-glyph.tone-error { color: var(--q-error-text,#b34d45); }
.q-node-legend-glyph.tone-success { color: var(--q-success-text,#39714d); }
.q-node-legend-item strong { display: block; margin-top: 3px; font-size: var(--q-font-ui,14px); line-height: 1.6; font-weight: 500; }
.q-node-legend-item p { margin: 4px 0 0; color: var(--q-muted,#7c8f70); font-size: var(--q-font-caption,12px); line-height: 1.8; overflow-wrap: anywhere; }
@media (max-width: 480px) { .q-node-legend-grid { grid-template-columns: minmax(0,1fr); } }

/* A single toolbar: workflow, a quiet live message, then the available action. */
.q-node-detail-footer :is(.q-detail-footer-row,.q-brief-footer-row) { gap: 10px; }
.q-node-detail-footer .q-actions-buttons { display: inline-flex; align-items: center; gap: 6px; flex: none; margin: 0; }
:is(#scoping-app,#scoping-modal) .q-node-detail-footer .q-actions-buttons .q-btn { min-height: 34px !important; padding: 6px 9px !important; font-size: 13px !important; line-height: 1.4; border-radius: 6px; white-space: nowrap; }
.q-node-detail-footer .q-actions-buttons .q-btn .q-icon { width: 13px; height: 13px; }
.q-footer-status { flex: 1 1 0%; width: 0; font-size: 12px; line-height: 20px; color: var(--q-muted, #7c8f70); }
.q-footer-status-scroll { display: block; flex: 1 1 0%; min-width: 0; width: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.q-footer-status-scroll::-webkit-scrollbar { display: none; }
.q-footer-status-text { display: inline-block; white-space: nowrap; }
.q-footer-status-scroll.is-overflowing .q-footer-status-text { animation: q-footer-status-travel var(--q-status-duration,12s) linear infinite alternate; }
.q-footer-status-scroll:is(:hover,:focus-visible) .q-footer-status-text { animation: none; transform: none; }
.q-footer-status-scroll:focus-visible { outline: 1px solid var(--q-accent,#759b68); outline-offset: -1px; border-radius: 3px; }
@keyframes q-footer-status-travel { 0%,15% { transform: translateX(0); } 85%,100% { transform: translateX(var(--q-status-travel,0)); } }
.q-task-feedback { min-width: 0; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--q-border,#e1e8d9); }
.q-task-feedback:empty { display: none; }
.q-framework-node-issues { display: grid; gap: 20px; min-width: 0; }
.q-dialog-body > .q-auto-analysis-copy > p { color: var(--q-text,#3f5737); line-height: 1.85; }
.q-dialog-body > .q-auto-analysis-copy > p.q-help { color: var(--q-muted,#7c8f70); }
.q-framework-node-issue { min-width: 0; padding: 16px; border: 1px solid var(--q-border,#dce6d3); border-radius: 7px; scroll-margin-block: 16px; }
.q-framework-node-issue:focus-visible { outline: 2px solid var(--q-accent,#527347); outline-offset: 3px; }
.q-framework-node-issue-heading { display: grid; gap: 8px; }
.q-framework-node-issue-heading > strong { font-size: var(--q-font-body,16px); font-weight: 500; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.q-framework-node-issue-heading > small { order: -1; font-size: var(--q-font-caption,12px); color: var(--q-warning-text,#937134); }
.q-framework-issue-attribution, .q-framework-issue-sources { margin: 10px 0; color: var(--q-muted,#7c8f70); font-size: var(--q-font-caption,12px); line-height: 1.8; overflow-wrap: anywhere; }
.q-framework-issue-carried { padding: 8px 10px; border-left: 2px solid var(--q-warning-border,#baa066); color: var(--q-warning-text,#937134); font-size: 12px; line-height: 1.8; }
.q-framework-node-issue .q-framework-field { margin-top: 14px; }
.q-framework-issue-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--q-border,#e1e8d9); }
.q-framework-issue-actions > .q-help { flex-basis: 100%; margin: 0; }
.q-framework-issue-condition { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--q-muted,#7c8f70); font-size: 12px; line-height: 1.6; cursor: pointer; }
.q-framework-issue-condition input { width: 15px; height: 15px; flex: none; accent-color: var(--q-accent,#527347); }
.q-framework-descendant-issues h3, .q-framework-global-audit h3 { margin: 0 0 10px; font-size: 14px; font-weight: 500; }
:is(#scoping-app,#scoping-modal) .q-framework-issue-link { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 12px; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--q-border,#e1e8d9); color: var(--q-accent,#527347); background: transparent; text-align: left; }
.q-framework-issue-link > :first-child { font-size: var(--q-font-ui,14px); line-height: 1.7; overflow-wrap: anywhere; }
.q-framework-issue-link > :first-child > small { display: inline-block; margin-left: 8px; color: var(--q-muted,#7c8f70); font-size: var(--q-font-caption,12px); }
.q-framework-issue-link > :nth-child(2) { grid-column: 1; color: var(--q-muted,#7c8f70); font-size: 12px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.q-framework-issue-link > :last-child { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.q-framework-global-audit { padding-top: 16px; border-top: 1px solid var(--q-border,#e1e8d9); }
.q-framework-audit-stages { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.q-framework-audit-stage { display: grid; align-content: start; gap: 5px; margin: 0; font-size: var(--q-font-ui,14px); line-height: 1.7; }
.q-framework-audit-stage strong { font-size: var(--q-font-caption,12px); font-weight: 400; color: var(--q-muted,#7c8f70); }
.q-framework-audit-stage small { font-size: var(--q-font-caption,12px); color: var(--q-muted,#7c8f70); }
.q-framework-global-limitations { margin-top: 12px; }
.q-framework-global-limitations p { font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.q-task-feedback .q-alert { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.q-task-feedback .q-alert > :is(p,strong,span) { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.q-task-feedback .q-alert > p { margin: 0; }
.q-task-notice { padding: 10px 12px; border-left: 2px solid var(--q-warning-border,#baa066); color: var(--q-muted,#7c8f70); font-size: 12px; line-height: 1.8; }
.q-stage-feedback { position: absolute; z-index: 15; right: 20px; bottom: 82px; max-width: min(640px,calc(100% - 40px)); max-height: 35%; overflow-y: auto; background: var(--q-surface,#fff); border-radius: 8px; }
.q-stage-feedback > .q-task-feedback { margin: 0; padding: 12px; border: 1px solid var(--q-border,#e1e8d9); }
@media (pointer: coarse) { :is(#scoping-app,#scoping-modal) .q-node-detail-footer .q-actions-buttons .q-btn { min-height: 44px !important; } }
@media (prefers-reduced-motion: reduce) { .q-footer-status-scroll.is-overflowing .q-footer-status-text { animation: none; } }

/* Task detail is disclosed above the toolbar, leaving its layout unchanged. */
.q-node-detail-footer { position: relative; }
:is(#scoping-app,#scoping-modal) .q-task-timeline-trigger { display: flex; align-items: center; gap: 5px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: inherit; text-align: left; cursor: pointer; min-height: 28px; }
:is(#scoping-app,#scoping-modal) .q-task-timeline-trigger:hover { color: var(--q-accent,#527347); background: var(--q-selected,#f2f6ef); }
.q-task-timeline-trigger:focus-visible { outline: 1px solid var(--q-accent,#759b68); outline-offset: 2px; }
.q-task-timeline-trigger:focus-visible .q-footer-status-text { animation: none; transform: none; }
.q-task-status-caret { width: 10px; height: 10px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .65; }
.q-task-timeline-trigger[aria-expanded="true"] .q-task-status-caret { transform: rotate(180deg); }
.q-task-progress-panel { position: absolute; z-index: 60; left: 12px; right: 12px; bottom: calc(100% + 8px); display: flex; flex-direction: column; min-width: 0; max-height: min(420px,55dvh); border: 1px solid var(--q-border,#dce6d3); border-radius: 9px; background: var(--q-surface,#fff); color: var(--q-text,#3f5737); box-shadow: 0 -6px 30px #00000025; text-align: left; }
.q-task-progress-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex: none; padding: 12px 14px 10px; border-bottom: 1px solid var(--q-border,#e1e8d9); }
.q-task-progress-head h3 { margin: 0; font-size: 14px; line-height: 1.5; }
.q-task-progress-head p { margin: 3px 0 0; color: var(--q-muted,#7c8f70); font-size: 11px; }
:is(#scoping-app,#scoping-modal) .q-task-progress-head .q-btn { flex: none; padding: 3px !important; min-width: 28px; min-height: 28px !important; }
.q-task-timeline-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 14px 10px; }
.q-task-timeline { list-style: none; margin: 0; padding: 0; }
.q-task-timeline-event { position: relative; display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 10px; padding: 11px 0 11px 12px; border-left: 1px solid var(--q-border,#e1e8d9); font-size: 12px; line-height: 1.7; }
.q-task-timeline-event::before { content: ''; position: absolute; left: -3px; top: 18px; width: 5px; height: 5px; border-radius: 50%; background: var(--q-muted,#97a18d); }
.q-task-timeline-time { color: var(--q-muted,#829377); font-size: 10px; overflow-wrap: anywhere; }
.q-task-timeline-label { font-size: 12px; overflow-wrap: anywhere; }
.q-task-timeline-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-right: 5px; vertical-align: -4px; color: var(--q-accent,#527347); }
.q-task-timeline-icon > svg { width: 16px; height: 16px; }
.q-task-timeline-event.is-problem .q-task-timeline-icon { color: var(--q-error-text,#b34d45); }
.q-task-timeline-event.is-historical .q-task-timeline-icon { color: var(--q-muted,#7c8f70); }
.q-task-timeline-detail { margin: 4px 0 0; color: var(--q-muted,#7c8f70); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.q-task-timeline-state, .q-task-timeline-history { display: inline-block; margin-left: 6px; font-size: 10px; color: var(--q-muted,#829377); font-weight: 400; }
.q-task-timeline-event.is-active::before, .q-task-timeline-event.is-completed::before { background: var(--q-accent,#759b68); }
.q-task-timeline-event.is-problem::before { background: var(--q-error-text,#b34d45); }
.q-task-timeline-event.is-problem .q-task-timeline-state { color: var(--q-error-text,#b34d45); }
.q-task-timeline-event.is-current .q-task-timeline-label { color: var(--q-accent,#527347); }
.q-task-timeline-event.is-historical .q-task-timeline-label { color: var(--q-muted,#829377); font-weight: 400; }
.q-task-progress-foot { padding: 4px 12px 7px; border-top: 1px solid var(--q-border,#e1e8d9); flex: none; }
:is(#scoping-app,#scoping-modal) .q-task-progress-foot .q-btn { min-height: 28px !important; padding: 4px 0 !important; font-size: 12px; }
@media (max-width: 600px) { .q-task-timeline-event { grid-template-columns: 78px minmax(0,1fr); gap: 8px; } }

/* Related bottom controls share one flow, so wrapping cannot make them collide. */
.q-canvas-bottom-rail { position: absolute; z-index: 20; left: 24px; right: 20px; bottom: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none; }
.q-canvas-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 100%; pointer-events: none; }
.q-canvas-controls > :is(.q-framework-viewbar,.q-canvas-tools) { position: static; inset: auto; flex: none; width: max-content; max-width: 100%; margin: 0; pointer-events: auto; }
.q-canvas-bottom-rail > .q-stage-feedback { position: static; align-self: flex-end; width: min(640px,100%); max-width: 100%; max-height: min(220px,35dvh); pointer-events: auto; }
.q-canvas-bottom-rail > .q-stage-feedback:empty { display: none; }
.q-framework-issue-response { display: grid; gap: 8px; min-width: 0; margin-top: 12px; }
.q-framework-issue-response .q-brief-current { margin: 0; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.q-framework-issue-response .q-choice { min-width: 0; padding: 8px 10px; overflow-wrap: anywhere; }
.q-framework-issue-response .q-brief-custom { align-items: center; }
.q-framework-issue-response .q-brief-custom input[type="radio"] { margin-top: 0; }
.q-framework-issue-response-state { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--q-muted,#7d906e); font-size: 11px; }
.q-framework-issue-response-state .q-btn { padding: 2px 0; min-height: 28px; }
.q-framework-issue-context { margin-top: 12px; }
.q-framework-issue-branch + .q-framework-issue-branch { margin-top: 12px; }
.q-framework-issue-branch-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 6px 0; border: 0; background: transparent; color: var(--q-text,#3f5737); font: inherit; text-align: left; cursor: pointer; }
.q-framework-issue-branch-title > span { min-width: 0; overflow-wrap: anywhere; }
.q-framework-issue-branch-title > small { flex: none; color: var(--q-muted,#7d906e); font-size: 11px; }
@media (pointer: coarse) { .q-framework-issue-response .q-choice { min-height: 44px; } .q-framework-issue-response .q-brief-custom-input { font-size: 16px; } }
@media (max-width: 760px) {
  .q-canvas-bottom-rail { left: 14px; right: 14px; bottom: 16px; }
  .q-canvas-stage:has(> .q-node-detail) .q-canvas-controls { display: none; }
}
