/* Quality scores (web/js/quality.js): the Quality card on Phone and Results, the breakdown on a call, the operator's table. */
.ql-score { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 22px; padding: 0 7px; border-radius: 99px; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; background: #f0f0ed; color: var(--ink-2); }
.ql-score.good { background: var(--ok-soft); color: var(--ok); }
.ql-score.mid { background: var(--warn-soft); color: var(--warn); }
.ql-score.low { background: var(--bad-soft); color: var(--bad); }
.ql-top { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.ql-ring { --p: 0; --c: var(--ok); width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), #ecEEf2 0); position: relative; flex: none; }
.ql-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--panel, #fff); }
.ql-ring b { position: relative; font-size: 30px; font-weight: 650; letter-spacing: -.03em; line-height: 1; }
.ql-ring small { position: relative; display: block; text-align: center; font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.ql-ring > span { position: relative; text-align: center; }
.ql-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.ql-facts > div { padding: 2px 0 2px 16px; border-left: 1px solid var(--line); }
.ql-facts > div:first-child { padding-left: 0; border-left: 0; }
.ql-facts .v { font-size: 22px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.ql-facts .v.up { color: var(--ok); }
.ql-facts .v.down { color: var(--bad); }
.ql-facts .l { font-size: 12.5px; color: var(--muted); }
.ql-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ql-part .row { font-size: 13px; margin-bottom: 5px; }
.ql-part .row b { font-weight: 600; }
.ql-part .row span { color: var(--muted); font-variant-numeric: tabular-nums; }
.ql-bar { height: 6px; border-radius: 99px; background: #eceef2; overflow: hidden; }
.ql-bar > i { display: block; height: 100%; border-radius: 99px; background: var(--sky, #5AA9F6); }
.ql-bar > i.mid { background: var(--sand, #E9B872); }
.ql-bar > i.low { background: var(--bad); }
.ql-h { font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 20px 0 8px; }
.ql-trend { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.ql-trend > div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 3px; min-width: 0; }
.ql-trend i { display: block; width: 100%; max-width: 34px; border-radius: 5px 5px 2px 2px; background: #cfe4fb; min-height: 3px; }
.ql-trend > div:last-child i { background: var(--sky, #5AA9F6); }
.ql-trend i.none { background: #eceef2; height: 3px; }
.ql-trend small { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ql-teach { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.ql-teach:first-of-type { border-top: 0; padding-top: 2px; }
.ql-teach .q { font-weight: 600; font-size: 14px; }
.ql-teach .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.ql-teach .btn { flex: none; }
.ql-weak { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 0; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ql-weak:first-of-type { border-top: 0; }
.ql-weak:hover .w { color: var(--ink); }
.ql-weak .w { font-size: 13px; color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ql-weak .meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ql-fix { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13.5px; border-top: 1px solid var(--line); }
.ql-fix:first-of-type { border-top: 0; }
.ql-fix small { color: var(--muted); display: block; font-size: 12.5px; }
.ql-foot { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; }
.ql-empty { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 13.5px; }
/* the breakdown inside a call */
.ql-call { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ql-call-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ql-call-head h3 { margin: 0; font-size: 15px; }
.ql-row { padding: 9px 0; border-top: 1px solid var(--line); }
.ql-row:first-of-type { border-top: 0; }
.ql-row .row { font-size: 13.5px; }
.ql-row ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.ql-row li { margin: 2px 0; overflow-wrap: anywhere; }
.ql-flag { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--warn-soft); font-size: 13px; margin-top: 8px; }
.ql-flag .grow { min-width: 0; overflow-wrap: anywhere; }
.ql-better { margin: 12px 0 0; padding: 11px 14px; border-radius: 10px; background: var(--brand-soft); font-size: 13px; }
.ql-better b { display: block; margin-bottom: 3px; }
.ql-better ul { margin: 0; padding-left: 18px; }
/* operator */
.ql-chg.up { color: var(--ok); font-weight: 600; }
.ql-chg.down { color: var(--bad); font-weight: 600; }
.ql-set { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.ql-set .field { margin: 0; width: 190px; }
@media (max-width: 720px) { .ql-top { grid-template-columns: 1fr; } .ql-parts { grid-template-columns: 1fr; } }
@media print { .ql-card .btn, .ql-weak { display: none; } }
