/* Scoped to Quality workflow review and retained-step panels only. */
.qw-state{background:#f8fafc;border:1px solid #cbd5e1;border-left:4px solid #e97424;border-radius:10px;padding:16px 20px;margin:0 0 18px;overflow-wrap:anywhere}
.qw-state h3{margin:0 0 8px;font-size:17px;color:#17253a}.qw-state p{margin:7px 0;line-height:1.5}.qw-help{font-size:13px;color:#475569;line-height:1.5}.qw-error{color:#9f2828;font-weight:600}
.qw-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:14px 0 4px}.qw-actions .ops-button{max-width:100%;white-space:normal}
.qw-state dl,.qw-review dl{display:grid;grid-template-columns:1fr 1fr;gap:12px 22px;margin:18px 0}.qw-state dl>div,.qw-review dl>div{min-width:0;border-bottom:1px solid #e2e8f0;padding-bottom:10px}.qw-state dt,.qw-review dt{font-size:12px;font-weight:700;color:#475569;margin-bottom:4px}.qw-state dd,.qw-review dd{margin:0;color:#17253a;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.qw-retained{margin-top:14px}.qw-retained summary{font-weight:600;cursor:pointer;line-height:1.5}.qw-checked{border-top:1px solid #cbd5e1;padding-top:16px;margin-top:16px}
.qw-review{box-sizing:border-box;width:min(760px,calc(100vw - 28px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #cbd5e1;border-radius:14px;padding:26px;background:#fff;color:#17253a;box-shadow:0 22px 70px #0003;margin:auto}
.qw-review::backdrop{background:#14253b88}.qw-review h2{font-size:23px;line-height:1.25;margin:0 0 12px}.qw-review h2:focus{outline:2px solid #2563eb;outline-offset:4px}.qw-review p{line-height:1.5;margin:10px 0}.qw-review .qw-actions{position:sticky;bottom:-26px;background:#fff;border-top:1px solid #e2e8f0;padding:14px 0;margin-bottom:0}.qw-review .ops-button{font-size:14px;min-height:42px}
@media(max-width:600px){.qw-state{padding:14px}.qw-state dl,.qw-review dl{grid-template-columns:1fr}.qw-review{padding:20px;max-height:calc(100dvh - 24px)}.qw-review .qw-actions{bottom:-20px}.qw-review h2{font-size:21px}.qw-actions{gap:8px}}
