.qg-rec-dashboard{border-right:5px solid #f79043;background:linear-gradient(115deg,#fff,#f8f4ff)}
.qg-rec-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:10px 0 22px}
.qg-rec-summary>div{background:#fff;border:1px solid #e5e3f4;border-radius:18px;padding:18px 20px;box-shadow:0 10px 28px #4038770d}
.qg-rec-summary small{display:block;color:#647089;font-size:12px}.qg-rec-summary strong{display:block;color:#4d3fa5;font-size:24px;margin-top:8px}
.qg-rec-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;align-items:start;margin:28px 0 40px}
.qg-rec-main,.qg-rec-side,.qg-rec-browse{background:#fff;border:1px solid #e7e3f4;border-radius:22px;padding:25px;min-width:0}
.qg-rec-main{border-top:5px solid #644cce}.qg-rec-side{border-top:5px solid #f09242;background:linear-gradient(155deg,#fff,#fff8f0)}
.qg-rec-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.qg-rec-heading h2,.qg-rec-side h2{margin:4px 0 8px;font-size:21px}.qg-rec-heading p,.qg-rec-side li,.qg-rec-foot{font-size:12px;line-height:2;color:#5e6980}
.qg-rec-side ol{padding-right:21px}.qg-rec-side li{padding:7px 0}.qg-rec-side a{display:block;margin:10px 0;color:#5145ad;font-size:12px;font-weight:700}
.qg-rec-list{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:8px}.qg-rec-row{display:flex;align-items:center;gap:13px;padding:12px;border:1px solid #e9e7f4;border-radius:13px;background:#fbfaff;break-inside:avoid}
.qg-rec-number{display:grid;place-items:center;background:#eee9fc;color:#5140a7;border-radius:10px;min-width:34px;height:34px;font-weight:800}
.qg-rec-copy{min-width:0;flex:1}.qg-rec-copy b,.qg-rec-copy span,.qg-rec-copy small{display:block}.qg-rec-copy b{font-size:13px}.qg-rec-copy span,.qg-rec-copy small{font-size:11px;color:#606b80;margin-top:3px}
.qg-rec-controls{display:flex;gap:4px}.qg-rec-controls button{font:inherit;font-size:10px;border:1px solid #dad5f0;border-radius:8px;padding:7px 8px;background:#fff;color:#4d42a4;cursor:pointer}.qg-rec-controls button:disabled{opacity:.4;cursor:default}.qg-rec-controls form:last-child button{color:#ad4e55}
.qg-rec-browse{margin:24px 0 40px}.qg-rec-filters{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;margin:15px 0 24px}.qg-rec-filters label{font-size:12px;font-weight:700}.qg-rec-filters select{display:block;width:100%;min-height:44px;border:1px solid #dcd8eb;border-radius:10px;padding:8px;background:#fff;margin-top:6px}
.qg-rec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.qg-rec-card{display:flex;flex-direction:column;gap:9px;padding:20px!important;min-width:0}.qg-rec-card h3{margin:0;font-size:17px}.qg-rec-card p{margin:0;font-size:12px;line-height:1.9;color:#58667c}
.qg-rec-card-head,.qg-rec-card-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.qg-rec-card-head small{color:#69758c}.qg-rec-facts{display:flex;gap:7px;flex-wrap:wrap}.qg-rec-facts span{padding:5px 8px;border-radius:8px;background:#f4f1fd;color:#4c4487;font-size:10px}
.qg-rec-card details{border-top:1px solid #e9e7f4;padding-top:9px}.qg-rec-card summary{font-size:11px;font-weight:700;cursor:pointer;color:#5749ae}.qg-rec-card details p{font-size:11px}.qg-rec-card .qg-rec-caution{color:#985221;background:#fff3e8;padding:7px;border-radius:8px}
.qg-rec-card-actions{margin-top:auto;padding-top:8px;font-size:11px}.qg-rec-card-actions a{color:#5143ab}.qg-rec-card-actions>span{color:#407f65;font-weight:700}.qg-rec-pages{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:20px;font-size:12px}.qg-rec-pages a{padding:8px 12px;border-radius:8px;background:#f2eefb;color:#483999}.qg-rec-pages a[aria-current]{background:#5a49b9;color:#fff}
@media(max-width:920px){.qg-rec-layout{grid-template-columns:1fr}.qg-rec-side{order:-1}.qg-rec-side ol{display:grid;grid-template-columns:repeat(2,1fr);gap:0 22px}}
@media(max-width:680px){.qg-rec-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.qg-rec-summary>div{padding:13px}.qg-rec-summary strong{font-size:18px}.qg-rec-layout{gap:12px}.qg-rec-main,.qg-rec-side,.qg-rec-browse{padding:17px;border-radius:16px}.qg-rec-heading{align-items:stretch;flex-direction:column}.qg-rec-side ol{grid-template-columns:1fr}.qg-rec-row{flex-wrap:wrap}.qg-rec-copy{flex-basis:calc(100% - 48px)}.qg-rec-controls{width:100%;padding-right:45px}.qg-rec-filters,.qg-rec-grid{grid-template-columns:1fr}.qg-rec-card-actions{flex-wrap:wrap}}
@media print{.qg-rec-side,.qg-rec-browse,.qg-rec-controls,.qg-rec-main form,.qg-rec-foot{display:none!important}.qg-rec-layout{display:block}.qg-rec-main{border:0;padding:0}.qg-rec-summary{grid-template-columns:repeat(4,1fr)}.qg-rec-row{border:1px solid #ddd;background:#fff}}
.qg-rec-filters input[type=search]{display:block;width:100%;min-height:44px;border:1px solid #dcd8eb;border-radius:10px;padding:8px 12px;background:#fff;margin-top:6px;font:inherit}
.qg-rec-filters input:focus-visible,.qg-rec-filters select:focus-visible,.qg-rec-action button:focus-visible{outline:3px solid #f3a457;outline-offset:2px}
.qg-rec-action{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.qg-rec-ack{display:flex;align-items:center;gap:5px;font-size:11px;line-height:1.6;color:#704c2a;max-width:220px}
.qg-rec-ack input{accent-color:#684ac2}.qg-rec-card .qg-rec-action{justify-content:flex-end}.qg-rec-card details{overflow-wrap:anywhere}
.qg-rec-card .qg-tag.band-unknown{background:#fff2e7;color:#8d4e18}.qg-rec-card .qg-tag.band-plausible{background:#efe9fc;color:#4d3a9c}
/* Editable 150-choice draft */
.qg-rec-overview{border-right:4px solid #754cc7;background:#f7f2ff}
.qg-rec-overview b{color:#412987}.qg-rec-overview p{margin:5px 0 0;font-size:13px}
.qg-rec-jumps{display:flex;gap:8px;overflow-x:auto;padding:8px 0 18px;scrollbar-width:thin}
.qg-rec-jumps a{white-space:nowrap;padding:7px 12px;background:#f0eaff;color:#4e3499;border-radius:100px;font-size:11px;font-weight:700}
.qg-rec-row{align-items:flex-start;scroll-margin-top:24px}
.qg-rec-row.needs-review{border-color:#f0bd8d;background:#fffaf5}
.qg-rec-copy .qg-rec-fit,.qg-rec-copy .qg-rec-history,.qg-rec-copy .qg-rec-flag{font-size:11px;line-height:1.85;margin-top:6px}
.qg-rec-copy .qg-rec-fit{color:#4d3a9c;font-weight:700}
.qg-rec-copy .qg-rec-history{color:#355b74;background:#edf7fa;padding:7px 9px;border-radius:8px}
.qg-rec-copy .qg-rec-flag{color:#975015;background:#fff1df;padding:6px 9px;border-radius:8px}
.qg-rec-review{margin:7px 0 0;border:1px solid #efcaa6;border-radius:9px;padding:5px 9px}
.qg-rec-review summary{cursor:pointer;color:#7c4b22;font-size:11px;font-weight:700}
.qg-rec-review p{font-size:11px;margin:5px 0;line-height:1.8}
.qg-rec-controls{flex-wrap:wrap;justify-content:flex-end;max-width:330px}
.qg-rec-move{display:flex;align-items:end;gap:5px}
.qg-rec-move label{font-size:10px;line-height:1.4;color:#504981;font-weight:700}
.qg-rec-move input{display:block;width:70px;height:32px;margin-top:3px;border:1px solid #d4cbeb;border-radius:7px;padding:3px 6px;font:inherit;color:#382680}
@media(max-width:680px){.qg-rec-controls{max-width:none;justify-content:flex-start}.qg-rec-jumps{margin:0 -8px;padding:8px 8px 17px}.qg-rec-move{flex:1;min-width:155px}.qg-rec-move label{flex:1}.qg-rec-move input{width:100%}}
@media print{.qg-rec-jumps,.qg-rec-review{display:none!important}}

.qg-rec-rebuild{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:-8px 0 18px;font-size:11px;color:#69567d}
.qg-rec-rebuild label{display:flex;align-items:center;gap:6px}
.qg-rec-rebuild input{accent-color:#7048c9}
.qg-rec-history small{display:block;color:#5f6880;font-size:10px}
.qg-app .qg-rec-main .qg-rec-controls .qg-rec-action button.qg-btn{background:#fff!important;color:#5030a4!important;border:2px solid #7048c9!important;box-shadow:none!important;font-weight:800!important;opacity:1!important;min-height:37px}
.qg-app .qg-rec-main .qg-rec-controls .qg-rec-action button.qg-btn:hover{background:#f2ebff!important;color:#3f218c!important}
@media(max-width:680px){.qg-rec-rebuild{justify-content:flex-start}}
