@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#0f172a;background:#f7f9fc;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{ -webkit-tap-highlight-color:transparent }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
a{text-decoration:none;color:inherit}[hidden]{display:none!important}
.qc-topbar{height:78px;display:flex;align-items:center;gap:18px;background:#fff;border-bottom:1px solid #e2e8f0;padding:0 max(22px,calc((100vw - 1440px)/2))}
.qc-brand{font-family:'Space Grotesk',sans-serif;font-size:24px;letter-spacing:-1.3px;font-weight:700;display:inline-flex;align-items:center;gap:9px;white-space:nowrap}
.qc-mark{width:35px;height:35px;border-radius:10px;display:grid;place-items:center;color:white;background:#2563eb;font-size:21px}.qc-dot{color:#2563eb}
.qc-header-section{font-size:12px;font-weight:700;color:#64748b;white-space:nowrap}.qc-spacer{flex:1}.qc-user{font-size:11px;color:#64748b;max-width:180px;overflow:hidden;text-overflow:ellipsis}
.qc-btn{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:9px;padding:12px 15px;font-size:12px;font-weight:700;border:1px solid #cbd5e1;white-space:nowrap;transition:.15s}.qc-btn:disabled{opacity:.48;cursor:not-allowed}.qc-btn-light{background:#fff;color:#334155}.qc-btn-light:hover:not(:disabled){background:#eff6ff;color:#1d4ed8;border-color:#93c5fd}.qc-btn-primary{background:#2563eb;color:#fff;border-color:#2563eb}.qc-btn-primary:hover:not(:disabled){background:#1d4ed8}
.qc-page{max-width:1484px;margin:0 auto;padding:48px 24px 28px}.qc-page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.qc-eyebrow{font-size:11px;letter-spacing:2px;color:#2563eb;font-weight:800;margin-bottom:10px}.qc-page-heading h1{font:600 clamp(26px,3vw,39px) 'Space Grotesk',sans-serif;letter-spacing:-1.6px;margin:0 0 10px}.qc-page-heading p{color:#64748b;font-size:13px;margin:0;line-height:1.8}.qc-muted{color:#64748b;font-size:12px}
.qc-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:22px}.qc-stat{background:white;border:1px solid #e2e8f0;border-radius:12px;padding:22px}.qc-stat span{display:block;color:#64748b;font-size:11px;font-weight:600;margin-bottom:11px}.qc-stat strong{display:block;font:600 27px 'Space Grotesk',sans-serif;overflow-wrap:anywhere}
.qc-content-grid{display:grid;grid-template-columns:minmax(350px,0.9fr) minmax(420px,1.25fr);gap:18px;align-items:start}.qc-panel{background:#fff;border:1px solid #e2e8f0;border-radius:13px;min-width:0;box-shadow:0 8px 30px rgba(15,23,42,.025)}.qc-panel-heading{padding:22px 22px 15px;display:flex;justify-content:space-between;align-items:center}.qc-panel h2{font:600 21px 'Space Grotesk',sans-serif;margin:0}.qc-filters{padding:0 22px 20px;display:grid;grid-template-columns:1fr auto;gap:10px}.qc-filters input{grid-column:1/-1}.qc-filters input,.qc-filters select,.qc-form input,.qc-review-form textarea{width:100%;border:1px solid #cbd5e1;border-radius:9px;padding:12px 13px;background:#fff;color:#0f172a;font-size:12px}.qc-filters select{min-width:0}.qc-case-list{border-top:1px solid #e2e8f0;min-height:260px;max-height:590px;overflow:auto}.qc-case{display:block;width:100%;text-align:left;background:#fff;border:0;border-bottom:1px solid #eef2f7;padding:19px 23px;cursor:pointer}.qc-case:hover,.qc-case.selected{background:#eff6ff}.qc-case-line{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:7px}.qc-case-id{font:700 14px 'Space Grotesk',sans-serif;letter-spacing:-.3px;color:#1d4ed8}.qc-case-route{display:block;font-size:12px;font-weight:700;color:#0f172a;margin-bottom:8px}.qc-case-meta{font-size:11px;color:#64748b;line-height:1.6}.qc-badge{border-radius:20px;padding:5px 9px;background:#f1f5f9;color:#475569;font-size:10px;font-weight:800;white-space:nowrap}.qc-badge.pending_review{background:#fef3c7;color:#92400e}.qc-badge.approved{background:#dcfce7;color:#166534}.qc-badge.coaching{background:#ffedd5;color:#9a3412}.qc-badge.flagged{background:#fee2e2;color:#991b1b}.qc-empty{color:#64748b;font-size:12px;text-align:center;padding:50px 18px}.qc-pagination{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:17px 22px;color:#64748b;font-size:12px}
.qc-review-panel{padding:25px;min-height:400px}.qc-placeholder{text-align:center;padding:75px 18px;color:#64748b}.qc-placeholder-icon{font-size:36px;color:#2563eb;margin-bottom:14px}.qc-placeholder h2{color:#0f172a;margin-bottom:8px}.qc-placeholder p{font-size:12px;line-height:1.8}
.qc-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.qc-detail-header h2{font-size:26px;margin:7px 0 5px}.qc-detail-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:18px 0;margin:14px 0;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0}.qc-detail-meta span{display:block;color:#64748b;font-size:10px;margin-bottom:7px}.qc-detail-meta strong{font-size:12px;overflow-wrap:anywhere}.qc-section-title{font:600 17px 'Space Grotesk',sans-serif;margin:25px 0 12px}.qc-note{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:17px;font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.qc-timeline{list-style:none;padding:0;margin:0;border-left:2px solid #dbeafe}.qc-timeline li{padding:0 0 16px 17px;position:relative;font-size:12px;color:#475569;line-height:1.6}.qc-timeline li:before{content:'';position:absolute;left:-6px;top:4px;width:10px;height:10px;border-radius:50%;background:#2563eb}.qc-history-date{display:block;font-size:10px;color:#94a3b8;margin-top:3px}
.qc-review-form{border-top:1px solid #e2e8f0;padding-top:20px}.qc-review-form fieldset{border:0;padding:0;margin:0}.qc-review-form legend{font-weight:800;font-size:12px;margin-bottom:13px}.qc-criterion{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #eef2f7;font-size:12px;font-weight:600}.qc-criterion-options{display:flex;gap:8px;flex-wrap:wrap}.qc-criterion-options label{display:flex;align-items:center;gap:4px;font-size:11px;font-weight:600;cursor:pointer}.qc-criterion-options input{accent-color:#2563eb}.qc-review-form label[for]{display:block;font-size:11px;font-weight:700;margin:16px 0 8px}.qc-review-form select{padding:10px;border:1px solid #cbd5e1;border-radius:8px;width:100%;background:#fff}.qc-review-form textarea{min-height:90px;resize:vertical}.qc-review-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:17px}.qc-review-score{color:#1d4ed8;font:700 21px 'Space Grotesk',sans-serif}.qc-review-history-item{background:#f8fafc;padding:13px;border:1px solid #e2e8f0;border-radius:9px;margin-bottom:10px}.qc-review-history-item p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;color:#475569;line-height:1.7}.qc-review-history-item small{color:#64748b;font-size:10px}.qc-footer-note{font-size:11px;line-height:1.9;color:#94a3b8;margin-top:20px}
.qc-toast{position:fixed;bottom:18px;left:50%;transform:translate(-50%,80px);opacity:0;pointer-events:none;background:#0f172a;color:white;font-size:12px;padding:14px 20px;border-radius:9px;transition:.2s;z-index:9;max-width:90vw;text-align:center}.qc-toast.visible{opacity:1;transform:translate(-50%,0)}
.qc-login-page{min-height:100vh;display:grid;place-items:center;padding:24px}.qc-login-card{width:100%;max-width:450px;padding:40px;background:#fff;border:1px solid #e2e8f0;border-radius:17px;box-shadow:0 17px 55px rgba(15,23,42,.04)}.qc-login-card .qc-brand{margin-bottom:40px}.qc-login-card h1{font:600 36px 'Space Grotesk',sans-serif;letter-spacing:-1px;margin:0 0 12px}.qc-login-card p{line-height:1.8}.qc-form{display:grid;gap:11px;margin-top:28px}.qc-form label{font-weight:700;font-size:11px}.qc-form button{margin-top:10px}.qc-message{color:#b91c1c;font-size:12px;min-height:18px}.qc-fineprint{font-size:11px;color:#94a3b8;margin-top:22px}.qc-text-link{font-size:12px;color:#2563eb;font-weight:700}.qc-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1050px){.qc-content-grid{grid-template-columns:1fr}.qc-case-list{max-height:350px}.qc-review-panel{min-height:200px}}
@media(max-width:660px){.qc-topbar{gap:10px;padding:14px;min-height:70px;height:auto;flex-wrap:wrap}.qc-header-section{display:none}.qc-user{max-width:100px}.qc-page{padding:28px 13px}.qc-page-heading{align-items:flex-start}.qc-page-heading .qc-btn{display:none}.qc-stats{gap:8px}.qc-stat{padding:15px}.qc-stat strong{font-size:19px}.qc-detail-meta{gap:13px}.qc-criterion{display:block}.qc-criterion-options{margin-top:11px}.qc-review-panel{padding:17px}.qc-login-card{padding:27px}.qc-detail-header h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Personal QC folders, case actions, and fast-copy controls */
.qc-folder-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 17px;padding:5px;border-radius:12px;background:#f4f7fb;border:1px solid #e2e8f0}
.qc-folder-tab{border:0;border-radius:9px;background:transparent;color:#64748b;font-weight:800;font-size:11px;padding:11px 12px;transition:.18s;white-space:nowrap}
.qc-folder-tab:hover,.qc-folder-tab.active{background:white;color:#1d4ed8;box-shadow:0 2px 8px #0f172a0c}
.qc-folder-counter{display:inline-block;min-width:18px;padding:2px 6px;border-radius:8px;background:#e5edff;color:#2563eb;font-size:10px}
.qc-export-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:11px 0 17px;border-bottom:1px solid #eef2f7;margin-bottom:5px}
.qc-export-bar span{font-size:10px;line-height:1.5;color:#8795aa;max-width:240px}
.qc-case-saved{display:inline-flex;gap:4px;align-items:center;font-size:10px;color:#2563eb;font-weight:800}
.qc-case-action-bar{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap;margin:13px 0 23px}
.qc-case-action-bar button{min-height:37px}
.qc-btn-danger{border:1px solid #fecaca!important;background:#fef2f2!important;color:#b91c1c!important}
.qc-btn-danger:hover{background:#fee2e2!important}
.qc-fact-copy-row{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0}
.qc-copy-btn{flex-shrink:0;border:1px solid #dbeafe;background:#f8fbff;color:#2563eb;padding:4px 7px;border-radius:7px;cursor:pointer;font-size:9px;font-weight:800;letter-spacing:.1px}
.qc-copy-btn:hover{background:#dbeafe}
.qc-removed-hint{margin:12px 0 17px;color:#b45309;background:#fffbeb;border:1px solid #fef3c7;padding:12px;border-radius:10px;font-size:11px;line-height:1.7}
@media(max-width:600px){.qc-export-bar{align-items:flex-start}.qc-folder-tabs{gap:3px}.qc-folder-tab{font-size:10px;padding:10px 9px}}

/* Compact, QC-only analytics section (all metrics are aggregate). */
.qc-insights{background:#fff;border:1px solid #dce5f0;border-radius:15px;padding:16px 19px;margin:13px 0 18px;box-shadow:0 5px 18px rgba(15,23,42,.035)}
.qc-insights-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.qc-insights-overline{color:#94a3b8;font-size:9px;font-weight:900;letter-spacing:1.2px}
.qc-insights-top h2{font-size:18px;letter-spacing:-.6px;margin:4px 0 2px;font-weight:850;color:#17243b}
.qc-insights-top p{color:#8896a9;font-size:10px;margin:2px 0 0}
.qc-insights-controls{display:flex;align-items:end;gap:8px;flex-wrap:wrap}
.qc-insights-filter{display:grid;gap:4px;font-weight:800;font-size:9px;color:#718096}
.qc-insights-filter select{height:33px;background:white;border:1px solid #dbe4ef;border-radius:8px;padding:5px 8px;font-size:10px;min-width:117px;color:#334155;font-weight:700}
.qc-insights-refresh{height:33px;width:34px;border-radius:9px;border:1px solid #dbe4ef;background:#f8fafc;color:#2563eb;font-size:19px;cursor:pointer}
.qc-insights-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0}
.qc-insights-cube{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-height:57px;padding:7px 9px;border:1px solid color-mix(in srgb,var(--qc-cube-ink) 17%,white);border-radius:10px;background:var(--qc-cube-bg,#f5f8fc);color:var(--qc-cube-ink,#2563eb);min-width:0}
.qc-insights-cube strong{font:800 20px/1 'Space Grotesk',system-ui;letter-spacing:-.3px;font-variant-numeric:tabular-nums}
.qc-insights-cube small{font-size:9px;font-weight:850;white-space:nowrap}
.qc-insights-secondary{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(0,1.5fr);gap:14px;align-items:start}
.qc-insights-trend,.qc-insights-reviewers{border:1px solid #edf1f7;border-radius:10px;padding:12px;min-width:0}
.qc-insights-label-row{display:flex;justify-content:space-between;flex-wrap:wrap;align-items:center;gap:5px 10px;margin-bottom:8px}
.qc-insights-label-row strong{font-size:10px;color:#293952;font-weight:850}
.qc-insights-label-row span{font-size:9px;color:#94a3b8}
.qc-insights-trend svg{display:block;width:100%;height:92px}
.qc-insights-reviewer-list{display:grid;gap:5px;max-height:180px;overflow:auto}
.qc-insights-person{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;border-radius:8px;background:#f9fbff;padding:7px 9px}
.qc-insights-person-name{font-size:10px;color:#263850;font-weight:850;min-width:95px;flex:1}
.qc-insights-mini-cubes{display:flex;gap:4px;flex-wrap:wrap}
.qc-insights-mini-cubes .qc-insights-cube{width:53px;min-height:38px;padding:5px 4px;border-radius:7px}
.qc-insights-mini-cubes .qc-insights-cube strong{font-size:13px}
.qc-insights-mini-cubes .qc-insights-cube small{font-size:8px}
.qc-insights-empty{font-size:11px;color:#94a3b8;margin:7px}
.qc-insights-more{color:#94a3b8;font-size:9px}
.qc-insights-status{font-size:9px;color:#94a3b8;margin:10px 0 0}
:root[data-cricket-density="compact"] .qc-insights{padding:11px 13px}
@media(max-width:840px){.qc-insights-secondary{grid-template-columns:1fr}}
@media(max-width:600px){
  .qc-insights-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .qc-insights-controls{width:100%}
  .qc-insights-filter{flex:1}.qc-insights-filter select{width:100%;min-width:0}
  .qc-insights-person{align-items:start}
}
