/* Approved dark five-stage card; selectors isolate it from older report stats. */
.results-dialog .results-stats{display:block}
.results-dialog .report-level-tabs{background:#e4e9df;border:1px solid #c5d3c7;padding:5px;gap:5px}
.results-dialog .report-level-tabs button{background:#f9fcf5;border:1px solid #c2d0c3;color:#304e42;font-weight:600;min-height:46px;box-shadow:0 2px 0 #c4d0bf}
.results-dialog .report-level-tabs button[aria-selected=true]{background:#203d37;border-color:#203d37;color:#fff8e9;box-shadow:0 2px 0 #102923}
.results-dialog .report-level-tabs button:active:not(:disabled){background:#d1e3d6}
.results-dialog .report-level-tabs button[aria-selected=true]:active{background:#294c42}
.results-dialog .report-level-tabs button[aria-selected=true] .report-new-count{background:#49675b;color:#fff8e9}
.results-dialog .report-level-tabs button[aria-selected=true] .report-new-count.has-new{background:#ffd36a;color:#493b1d}
.results-dialog .fluency-card{background:#203d37;color:#fff8e9;border:0;border-radius:25px;padding:20px 25px;box-shadow:0 5px 0 #102923;font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif;font-size:14px;font-weight:400;line-height:1.5;letter-spacing:normal;box-sizing:border-box}
.fluency-card small{font-family:inherit;font-weight:400;letter-spacing:normal}
.fluency-card .fluency-eyebrow{font-size:13px;color:#d3e2d7;margin:0 0 6px}
.fluency-card .fluency-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:0}
.fluency-card .fluency-heading strong{font-size:20px;font-weight:800;color:#ffe08a;line-height:1.2}
.fluency-card .fluency-heading span{font-size:13px;color:#d3e2d7;white-space:nowrap}
.fluency-card .fluency-segments{display:flex;gap:6px;margin:12px 0 0}
.fluency-card .fluency-segment{flex:1;height:18px;border-radius:6px;background:#b2c4b9}
.fluency-card .fluency-segment.completed{background:#54c7ab}.fluency-card .fluency-segment.current{background:#54c7ab}
.fluency-card .fluency-ends{display:flex;justify-content:space-between;gap:12px}
.fluency-card .fluency-ends span{font-size:12px;color:#d3e2d7}
.fluency-card .fluency-metrics{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:16px;padding-top:0;border-top:0}
.fluency-card .fluency-metrics span{font-size:13px;color:#d3e2d7;display:block;margin-bottom:2px}
.fluency-card .fluency-metrics strong{display:block;font-size:21px;font-weight:800;color:#ffe08a;line-height:1.2;font-variant-numeric:tabular-nums}
.fluency-card .fluency-metrics small{display:block;font-size:12px;color:#d3e2d7;margin-top:2px}
.fluency-card .fluency-requirement,.fluency-card .fluency-next,.fluency-card .fluency-sample{color:#d3e2d7;font-size:13px;line-height:1.6;margin:20px 0 0}
.fluency-card .fluency-next{margin-top:20px}.fluency-card .fluency-sample{font-size:12px}
.fluency-card .fluency-collecting-message{font-size:15px;font-weight:400;color:#fff8e9;line-height:1.6;margin:20px 0 0}
.fluency-card.fluency-collecting .fluency-heading strong{font-size:17px;line-height:1.3}
.fluency-card .fluency-awards{margin-top:24px;padding-top:20px;border-top:1px solid #49675b}
.fluency-card .fluency-awards-title{font-size:13px;color:#d3e2d7;margin:0 0 8px}
.fluency-card .fluency-awards-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;text-align:center;max-width:410px;margin:auto}
.fluency-card .fluency-award-art{position:relative;aspect-ratio:888/869;overflow:hidden;max-width:190px;margin:0 auto}
.fluency-card .fluency-award-art img{position:absolute;left:0;top:0;width:200%;height:100%;max-width:none;object-fit:fill}
.fluency-card .fluency-award-art.diamond img{left:-100%}
.fluency-card .fluency-award strong{display:block;font-size:17px;color:#fff8e9;font-weight:800;margin:7px 0}
.fluency-card .fluency-award>div:last-child{font-size:12px;line-height:1.6;color:#d3e2d7}
.fluency-card .fluency-guide{margin-top:12px;color:#fff8e9;font-size:13px;letter-spacing:normal}
.fluency-card .fluency-guide summary{display:list-item;list-style-position:inside;width:fit-content;max-width:100%;box-sizing:border-box;padding:8px 11px;min-height:36px;border:1px solid #668477;border-radius:9px;background:#304e44;font-size:12px;font-weight:400;color:#e1ece3;cursor:pointer}
.fluency-card .fluency-guide summary:hover{background:#3b5c4f}
.fluency-card .fluency-guide summary:focus-visible{outline:2px solid #ffd36a;outline-offset:3px}
.fluency-card .fluency-guide table{width:100%;border-collapse:collapse;table-layout:fixed;margin:8px 0 12px;font-size:12px;text-align:left;color:#fff8e9}
.fluency-card .fluency-guide th,.fluency-card .fluency-guide td{padding:10px 4px;border:0;border-bottom:1px solid #49675b;white-space:normal;vertical-align:middle;background:transparent;position:static;color:#fff8e9;font-weight:400}
.fluency-card .fluency-guide thead th{font-size:11px;color:#d3e2d7;font-weight:600}
.fluency-card .fluency-guide th:first-child{width:44%}.fluency-card .fluency-guide td{font-variant-numeric:tabular-nums;white-space:nowrap}
.fluency-card .fluency-guide small{display:block;font-size:11px;color:#d3e2d7;letter-spacing:normal;font-weight:400}
.fluency-card .fluency-guide p{font-size:12px;color:#d3e2d7;line-height:1.6;margin:10px 0 0}
.fluency-card .fluency-guide .fluency-current-level th,.fluency-card .fluency-guide .fluency-current-level td{background:#3b5d4e;color:#ffe08a;font-weight:700}
.fluency-card .fluency-guide .fluency-current-level th{border-radius:8px 0 0 8px}
.fluency-card .fluency-guide .fluency-current-level td:last-child{border-radius:0 8px 8px 0}
.fluency-card .fluency-guide .fluency-current-level .fluency-your-level{display:table;width:auto;margin-top:5px;padding:2px 7px;border-radius:6px;background:#ffe08a;color:#203d37;font-size:10px;line-height:1.4;font-weight:700;letter-spacing:normal;white-space:nowrap}
/* Let the report scroll when the earned-award card exceeds a small screen. */
.results-dialog:has(.fluency-card){overflow-y:auto;overscroll-behavior:contain}
.results-dialog:has(.fluency-card) .results-scroll{flex:none;height:260px;min-height:160px;max-height:45dvh}
.results-dialog:has(.fluency-card) .results-explanation{display:none}
@media(max-width:380px){.results-dialog .fluency-card{padding:16px 16px}.fluency-card .fluency-heading strong{font-size:18px}.fluency-card .fluency-heading{gap:8px}.fluency-card .fluency-heading span{font-size:12px}}
