/* .182 Quality-only complete count cards; no shared component rules. */
.ops-app[data-department="quality"] .qo-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.ops-app[data-department="quality"] .qo-heading h2{margin:4px 0 8px}
.ops-app[data-department="quality"] .qo-scope,.ops-app[data-department="quality"] .qo-footnote{color:#475569;line-height:1.55;font-size:.88rem;overflow-wrap:anywhere}
.ops-app[data-department="quality"] .qo-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}
.ops-app[data-department="quality"] .qo-count{border:1px solid #dbe3ec;background:#fff;border-radius:12px;padding:18px;display:flex;flex-direction:column;min-width:0;gap:8px}
.ops-app[data-department="quality"] .qo-count h3{font-size:1rem;margin:0;color:#24354b}
.ops-app[data-department="quality"] .qo-count>strong{font-size:2rem;line-height:1.3;font-weight:750;overflow-wrap:anywhere;color:#173047}
.ops-app[data-department="quality"] .qo-count p{font-size:.88rem;line-height:1.5;margin:0;flex:1}
.ops-app[data-department="quality"] .qo-count small{font-size:.76rem;line-height:1.5;color:#526174;overflow-wrap:anywhere}
.ops-app[data-department="quality"] .qo-count .ops-button{align-self:flex-start;margin-top:5px}
.ops-app[data-department="quality"] .qo-heading>.ops-button{background:#fff!important;color:#244970!important;border:1px solid #a6b7ca!important;box-shadow:none!important}
.ops-app[data-department="quality"] .qo-error{color:#9b2c24}
.ops-app[data-department="quality"] .qo-snapshot{border:1px solid #dbe3ec;border-radius:12px;background:#f8fafc;padding:16px;margin:18px 0}
.ops-app[data-department="quality"] .qo-snapshot>summary{cursor:pointer;font-weight:650;line-height:1.5;color:#263b50}
.ops-app[data-department="quality"] .qo-snapshot>p{font-size:.88rem;line-height:1.6;color:#475569}
@media(max-width:1050px){.ops-app[data-department="quality"] .qo-counts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.ops-app[data-department="quality"] .qo-counts{grid-template-columns:minmax(0,1fr)}.ops-app[data-department="quality"] .qo-count{padding:14px}.ops-app[data-department="quality"] .qo-count>strong{font-size:1.75rem}.ops-app[data-department="quality"] .qo-snapshot{padding:12px}}

/* .253: scoped Quality work overview. Existing operations and other departments are unchanged. */
html.fsg-ui #v8-content .qo-workspace253{min-width:0;padding:20px;border:1px solid #d9dfe5;border-radius:10px;background:#fff}
html.fsg-ui #v8-content .qo-workspace253 .qo-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
html.fsg-ui #v8-content .qo-workspace253 .qo-heading h2{margin:4px 0 8px;font-size:23px;line-height:1.3}
html.fsg-ui #v8-content .qo-workspace253 .qo-heading p{margin:0;max-width:64ch;line-height:1.6}
html.fsg-ui #v8-content .qo-workspace253 .qo-entry253{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
html.fsg-ui #v8-content .qo-workspace253 .ops-button{min-height:44px;white-space:normal}
html.fsg-ui #v8-content .qo-workspace253 .qo-new253{color:#fff!important;background:#b94700!important;border:1px solid #983d00!important;font-weight:600}
html.fsg-ui #v8-content .qo-workspace253 .qo-new253:disabled{background:#edeff2!important;color:#647081!important;border-color:#cbd3dc!important}
html.fsg-ui #v8-content .qo-workspace253 .qo-about253{position:relative;display:flex;align-items:center;gap:12px;margin:18px 0;border-top:1px solid #e1e5e9;padding-top:14px}
html.fsg-ui #v8-content .qo-workspace253 .qo-scope{margin:0;flex:1;line-height:1.6;font-size:12px;color:#4e5f70}
html.fsg-ui #v8-content .qo-workspace253 .qo-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:12px;align-items:stretch}
html.fsg-ui #v8-content .qo-workspace253 .qo-count253{position:relative;display:flex;flex-direction:column;gap:12px;margin:0;padding:14px;border:1px solid #d5dde5;border-radius:8px;background:#f8fafc;min-width:0;overflow:visible}
html.fsg-ui #v8-content .qo-workspace253 .qo-count253>header{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;min-height:48px}
html.fsg-ui #v8-content .qo-workspace253 .qo-count253 h3{margin:6px 0 0;font-size:14px;line-height:1.5}
html.fsg-ui #v8-content .qo-workspace253 .qo-value253{display:block;font-size:29px;line-height:1.25;color:#1d3246;overflow-wrap:anywhere}
html.fsg-ui #v8-content .qo-workspace253 [data-count-state253=failed] .qo-value253,html.fsg-ui #v8-content .qo-workspace253 [data-count-state253=loading] .qo-value253{font-size:19px}
html.fsg-ui #v8-content .qo-workspace253 .qo-count253>small{font-size:10px;line-height:1.5;color:#546579;overflow-wrap:anywhere}
html.fsg-ui #v8-content .qo-workspace253 .qo-count253>[data-qo-open]{margin-top:auto;min-height:44px;width:100%;color:#155e91;background:#fff;border:1px solid #b8c9d7}
html.fsg-ui #v8-content .qo-workspace253 .qo-info253{display:inline-flex!important;align-items:center;justify-content:center;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;flex:0 0 44px;border:1px solid #3878a1!important;border-radius:50%!important;padding:0!important;color:#185c89!important;background:#fff!important;box-shadow:none!important;font-size:17px!important;font-style:italic;font-family:Georgia,serif;text-shadow:none!important}
html.fsg-ui #v8-content .qo-workspace253 .qo-info253[aria-expanded=true]{background:#e8f2fa!important;border-width:2px!important}
html.fsg-ui #v8-content .qo-workspace253 :is(button,h3):focus-visible{outline:3px solid #1773b5;outline-offset:3px}
html.fsg-ui #v8-content .qo-workspace253 .qo-help253{position:absolute;z-index:15;top:68px;left:0;width:min(350px,calc(100vw - 68px));max-width:100%;padding:16px;box-sizing:border-box;background:#fff;border:1px solid #91abc0;border-radius:8px;box-shadow:0 6px 18px #142c4226;color:#23394d;overflow-wrap:anywhere}
html.fsg-ui #v8-content .qo-workspace253 .qo-help253>div{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
html.fsg-ui #v8-content .qo-workspace253 .qo-help253 h3{font-size:14px;margin:0;line-height:1.5}
html.fsg-ui #v8-content .qo-workspace253 .qo-help253 p{font-size:13px;line-height:1.65;margin:12px 0 0}
html.fsg-ui #v8-content .qo-workspace253 .qo-help253 button{flex-shrink:0;min-height:44px;padding:6px 10px}
html.fsg-ui #v8-content .qo-workspace253 .qo-about253>.qo-help253{left:auto;right:0;top:62px;max-width:100%}
html.fsg-ui #v8-content .qo-workspace253 .qo-footnote{font-size:12px;color:#53687a;margin:14px 0 0;line-height:1.6}
html.fsg-ui #v8-content .qo-workspace253 .qo-error{font-size:12px;color:#903c20;line-height:1.5;margin:0}
@media(max-width:650px){html.fsg-ui #v8-content .qo-workspace253{padding:14px}html.fsg-ui #v8-content .qo-workspace253 .qo-entry253{width:100%}html.fsg-ui #v8-content .qo-workspace253 .qo-entry253>button{width:100%}html.fsg-ui #v8-content .qo-workspace253 .qo-counts{grid-template-columns:minmax(0,1fr)}html.fsg-ui #v8-content .qo-workspace253 .qo-count253>header{min-height:44px}}

html.fsg-ui #v8-content .qo-workspace253 .qo-entry253 [data-qo-action=refresh]{color:#155e91!important;background:#fff!important;border:1px solid #9eb6c8!important;text-shadow:none!important;box-shadow:none!important}
html.fsg-ui #v8-content .qo-workspace253 .qo-count253>small{font-size:11px}
