/* Screens 17–24. Each surface is scoped to its phase-owned composition. */
.p3-games,.p3-progress,.p3-settings{max-width:1080px;margin:0 auto}
.p3-games .kl-game-hero{min-height:165px;margin-bottom:10px}
body.kl-ui .p3-games .kl-game-hero h1{font-size:35px}
.p3-game-level{display:flex;gap:14px;align-items:center;margin:12px 0 22px}
.p3-game-level>span{font-size:12px;font-weight:700}
.p3-game-level .simple-level{min-width:215px;margin:0}
.p3-game-level>small{font-size:10px;max-width:235px;margin-left:auto}
body.kl-ui .p3-games .kl-featured-games{gap:15px}
body.kl-ui .p3-games .kl-game-card{padding:19px;min-height:330px;align-items:stretch}
body.kl-ui .p3-games .kl-game-card h2{font-size:21px;line-height:1.25;min-height:52px;margin:0 0 8px}
.p3-games .kl-game-card>p{font-size:12px;min-height:56px;margin:0 0 8px}
.p3-games .kl-game-card>svg{width:100%;height:95px;margin:2px 0 14px}
.p3-games .kl-game-card>span{font-size:10px;line-height:1.5;margin:0 0 14px}
.p3-games .kl-game-card>.primary{margin-top:auto;font-size:12px;min-height:44px}
.p3-match .kl-page-heading{margin:22px 0 16px}
.p3-match .kl-page-heading .rd-lumi{width:115px;height:127px}
.p3-match .kl-match-board{gap:70px;margin:24px 0}
.p3-match .kl-match-tile{min-height:62px;font-size:15px;padding:14px 18px;line-height:1.4}
.p3-match .kl-match-tile>b{font-size:15px;font-weight:650;overflow-wrap:anywhere}
.p3-match .kl-match-tile>span{display:grid;place-items:center;width:24px;height:24px;border:1px solid #d3d9ca;border-radius:50%;font-size:12px;flex-shrink:0;background:#fff}
.p3-match .kl-match-tile.paired{border-color:#b7a1d0;background:#f1ebfa}
.p3-match .kl-match-tile.paired>span{background:#d9cbed;color:#513c70;border-color:#bca6d8}
.p3-match .kl-match-tile.correct>span{background:#dcebb7;color:#385526;border-color:#acc275}
.p3-match .kl-match-tile.incorrect>span{background:#f4d4d0;color:#9b4340;border-color:#d99e94}
.p3-match-actions{display:flex;gap:22px;align-items:center;margin-top:20px}
.p3-match-actions>.kl-match-hint{flex:1;margin:0;font-size:12px;line-height:1.5;padding:17px 20px}
.p3-match-actions>.primary{min-width:175px;font-size:12px;min-height:46px}
.p3-progress .kl-profile-summary{padding:22px}
.p3-progress .kl-profile-summary>div>h2{font-size:23px}
.p3-progress .kl-profile-totals>div{min-width:100px}
.p3-progress .kl-profile-totals>div>strong{font-size:29px}
.p3-progress .kl-profile-totals>div>span{font-size:11px}
.p3-week-chart{display:flex;align-items:flex-end;gap:12px;height:165px;margin:20px 0 12px;padding-top:16px}
.p3-week-chart>div{flex:1;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.p3-day-column{height:105px;width:100%;max-width:37px;border-radius:7px;background:#eff1e9;display:grid;place-items:center;color:#fff;font-size:18px}
.p3-day-column.done{background:linear-gradient(#9cae5e,#697a38)}
.p3-week-chart small{font-size:10px}
.p3-progress .kl-progress-columns>.kl-card>h2{font-size:20px}
.p3-progress .kl-shortcut-row .kl-phase-art{width:45px;height:45px;float:left;margin:0 14px 30px 0}
.p3-progress .kl-shortcut-row h3{font-size:18px}
.p3-progress .kl-shortcut-row p{font-size:12px;margin:7px 0}
.p3-progress .kl-shortcut-row>button>span{font-size:12px;font-weight:650}
.p3-badges{padding:22px;background:#fff;border:1px solid var(--kl-border);border-radius:14px;margin:20px 0}
.p3-badges>h2{font-size:23px}
.p3-badges>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.p3-badges article{display:flex;align-items:flex-start;gap:12px;padding:18px;background:#f4f3f7;border-radius:12px}
.p3-badges article.earned{background:#edf3db}
.p3-badges article>span{font-size:24px;line-height:1.2;color:#8a9690}
.p3-badges article.earned>span{color:var(--kl-olive)}
.p3-badges article h3{font-size:15px;margin-bottom:7px}
.p3-badges article p{font-size:12px;margin:0 0 9px;line-height:1.5}
.p3-badges article small{font-size:10px}
.p3-settings-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(240px,1fr);gap:24px;margin-top:20px}
.p3-settings-grid>div,.p3-settings-grid>aside{display:grid;gap:20px;align-content:start}
.p3-settings-grid>aside{position:static;padding:0;background:none;border:0;height:auto}
.p3-settings .kl-card{padding:22px}
.p3-settings .kl-card>h2{font-size:20px;margin-bottom:18px}
.p3-settings .kl-card>h3{font-size:17px}
.p3-settings .kl-card>p{font-size:13px;line-height:1.6}
.p3-settings .kl-card>label:not(.p3-switch){display:grid;grid-template-columns:minmax(130px,1fr) minmax(140px,1fr);align-items:center;gap:18px;font-size:13px;margin:14px 0}
.p3-settings .kl-card dl{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;font-size:13px}
.p3-settings .kl-card dt{color:var(--kl-muted)}
.p3-settings .kl-card dd{margin:0;overflow-wrap:anywhere}
.p3-settings .kl-card>.text-button{display:block;text-align:left;font-size:12px}
.p3-settings aside .primary{font-size:12px;min-height:44px;width:100%;margin-top:8px}
.p3-switch{display:flex;align-items:center;gap:20px;justify-content:space-between;border-top:1px solid var(--kl-border);padding-top:18px;margin-top:14px;font-size:13px}
.p3-switch small{display:block;font-size:11px;margin-top:5px}
.p3-switch input{width:22px;height:22px;flex-shrink:0}
.p3-review-preferences{margin-top:15px;border-top:1px solid var(--kl-border);padding-top:10px;font-size:12px}
.p3-review-preferences>summary{min-height:44px;padding:10px 0}
.p3-review-preferences .simple-preferences{margin:10px 0 0;padding:18px;border:0;background:#f5f6ed}
.p3-review-preferences .simple-profile{display:none}
.p3-account-data{margin:24px 0;border-top:1px solid var(--kl-border);padding-top:12px;font-size:13px}
.p3-account-data>summary{padding:12px 0;min-height:44px}
body.p3-reduced-motion *,body.p3-reduced-motion *::before,body.p3-reduced-motion *::after{animation:none;transition:none;scroll-behavior:auto}
.p3-staff-overview .kl-page-heading h1{font-size:31px}
.p3-summary-status{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 22px}
.p3-summary-status>.secondary{font-size:11px;min-height:40px;padding:10px 13px;white-space:nowrap}
.p3-summary-status>p{font-size:11px;margin:0;max-width:610px}
.p3-staff-overview .kl-table-wrap table{min-width:850px}
.p3-staff-overview td>progress{display:block;width:100px;height:6px;margin-top:7px}
.p3-batch-meta{display:flex;align-items:flex-start;gap:22px;padding:0 0 20px;border-bottom:1px solid var(--kl-border);margin-top:-10px;margin-bottom:20px}
.p3-batch-meta>div{flex:1;min-width:0}
.p3-batch-meta span{display:block;font-size:10px;color:var(--kl-muted);margin-bottom:6px}
.p3-batch-meta b{font-size:12px;line-height:1.5;font-weight:650;display:block}
.p3-batch-meta>.text-button{font-size:11px;text-align:left;min-height:40px;max-width:140px}
.p3-recent-saves{position:static;height:auto;background:#f1edf8;border:0;padding:22px;border-radius:14px;margin:22px 0}
.p3-recent-saves>h2{font-size:19px}
.p3-recent-saves>p{font-size:11px}
.p3-recent-saves article{display:flex;gap:12px;align-items:center;border-top:1px solid #ddd5e8;padding:12px 0}
.p3-recent-saves article>span{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#e5daf4;color:#74588f}
.p3-recent-saves article b{font-size:13px;display:block}
.p3-recent-saves article small{font-size:11px;display:block;margin-top:4px}
.p3-recent-saves>.text-button{font-size:12px;padding:8px 0;min-height:40px}
.p3-report-controls{display:flex;align-items:flex-end;gap:20px;margin-bottom:20px}
.p3-report-controls>label{display:grid;gap:7px;font-size:11px;min-width:200px}
.p3-report-controls>.secondary{margin-left:auto;font-size:12px;min-height:46px}
.p3-report-charts{display:grid;grid-template-columns:.9fr 1.1fr 1fr;gap:18px;margin:0 0 22px}
.p3-report-charts>.kl-card{padding:22px;min-width:0}
.p3-report-charts h2{font-size:18px;margin:0 0 18px}
.p3-report-charts p,.p3-report-charts small{font-size:11px;line-height:1.5}
.p3-report-ring{width:125px;height:125px;border-radius:50%;background:conic-gradient(var(--kl-olive) calc(var(--p3-value)*1%),#eef0e8 0);display:grid;place-items:center;margin:4px auto 16px}
.p3-report-ring>strong{display:grid;place-items:center;background:white;width:99px;height:99px;border-radius:50%;font-size:28px}
.p3-report-skill{display:grid;grid-template-columns:64px 1fr 35px;gap:9px;align-items:center;font-size:10px;margin:18px 0}
.p3-report-skill progress{width:100%;height:8px}
.p3-recency-chart{display:flex;align-items:flex-end;gap:15px;height:160px}
.p3-recency-chart>div{display:flex;flex-direction:column;align-items:center;gap:6px;flex:1;min-width:0;text-align:center}
.p3-recency-chart b{font-size:14px}
.p3-recency-chart small{font-size:9px;min-height:28px;line-height:1.3}
.p3-recency-track{height:95px;width:34px;display:flex;align-items:flex-end;background:#f0f1e9;border-radius:6px;overflow:hidden}
.p3-recency-track>i{display:block;width:100%;background:#8a74ac;border-radius:6px}
.p3-recency-chart>div:nth-child(2) i{background:#a4b268}
.p3-recency-chart>div:nth-child(3) i{background:#dec76b}
.p3-report>.kl-card .sectionhead h2{font-size:20px}
.p3-report .sectionhead>input{max-width:270px;font-size:12px}
.p3-report .kl-table-wrap table{min-width:650px}
.p3-assignment .kl-assignment-head h2{font-size:28px}
.p3-assignment .kl-assignment-head>.controls{margin:0;flex-wrap:nowrap}
.p3-assignment .kl-assignment-head>.controls>button{font-size:12px;min-height:44px;margin:0}
.p3-assignment .kl-assignment-grid{grid-template-columns:minmax(0,1.1fr) minmax(270px,1fr);gap:22px}
.p3-assignment .kl-assignment-grid>form{padding:22px;gap:18px}
.p3-assignment form>label,.p3-assignment .kl-field-pair>label{font-size:12px;gap:7px}
.p3-assignment .kl-assignment-grid>aside{padding:24px;border-radius:14px;top:20px}
.p3-assignment #uiAssignmentPreview>h2{font-size:24px;margin:14px 0 8px;overflow-wrap:anywhere}
.p3-assignment #uiAssignmentPreview>h3{font-size:18px;margin:20px 0 14px}
.p3-assignment #uiAssignmentPreview>p{font-size:12px}
.p3-preview-instructions{white-space:pre-wrap;overflow-wrap:anywhere}
.p3-assignment .kl-preview-task{padding:15px;gap:12px;margin:10px 0}
.p3-assignment .kl-preview-task>.home-icon{width:24px;height:24px;color:#70568e}
.p3-assignment .kl-preview-task b{font-size:13px}
.p3-assignment .kl-preview-task p{font-size:11px;line-height:1.5;margin:5px 0 0}
.p3-assignment fieldset{margin:0;padding:0;border:0;min-width:0}
.p3-assignment legend{font-size:13px;font-weight:700;padding:0}
.p3-activity-choice{display:flex;gap:12px;align-items:flex-start;padding:13px 0;border-bottom:1px solid var(--kl-border)}
.p3-activity-choice>input{width:18px;height:18px;margin:3px 0 0;flex-shrink:0}
.p3-activity-choice>.home-icon{width:23px;height:23px;color:#72548f;flex-shrink:0}
.p3-activity-choice b,.p3-activity-choice small{display:block}
.p3-activity-choice b{font-size:12px;margin-bottom:5px}
.p3-activity-choice small{font-size:11px;line-height:1.4}
.p3-mobile-publish{display:none}
@media(max-width:1199px){
 .p3-game-level{flex-wrap:wrap}.p3-game-level>small{margin-left:0}
 body.kl-ui .p3-games .kl-game-card{padding:16px}.p3-games .kl-game-card h2{font-size:19px}
 .p3-progress .kl-profile-totals{gap:16px}.p3-progress .kl-profile-totals>div{min-width:80px;padding-left:16px}
 .p3-report-charts{grid-template-columns:1fr 1fr}.p3-report-charts>.kl-card:last-child{grid-column:1/-1}
 .p3-recency-chart{height:140px;max-width:400px;margin:auto}.p3-recency-track{height:80px}
 .p3-report-controls{flex-wrap:wrap}.p3-report-controls>label{min-width:170px}
 .p3-batch-meta{gap:16px;flex-wrap:wrap}.p3-batch-meta>div{flex-basis:20%}
 .p3-badges>div{grid-template-columns:1fr}
}
@media(max-width:767px){
 body.kl-ui .p3-games .kl-game-hero h1{font-size:29px}
 .p3-game-level>small{flex-basis:100%;font-size:10px}
 body.kl-ui .p3-games .kl-featured-games{grid-template-columns:1fr 1fr;gap:12px}
 body.kl-ui .p3-games .kl-game-card{min-height:340px;padding:16px}
 body.kl-ui .p3-games .kl-game-card h2{font-size:20px;min-height:50px}
 .p3-games .kl-game-card>p{font-size:12px;min-height:72px}.p3-games .kl-game-card>svg{height:80px}
 .p3-games .kl-game-card>span{font-size:10px;min-height:30px}
 .p3-games .kl-game-card>.primary{font-size:12px}
 .p3-match .kl-page-heading .rd-lumi{width:76px;height:84px}
 .p3-match .kl-match-board{gap:14px;margin:20px 0}
 .p3-match .kl-match-tile{padding:13px 10px;gap:8px;min-height:76px}
 .p3-match .kl-match-tile>b{font-size:13px}.p3-match .kl-match-tile>span{width:20px;height:20px;font-size:10px}
 .p3-match-actions{display:block}.p3-match-actions>.primary{width:100%;margin-top:14px;min-height:46px}
 .p3-progress .kl-profile-summary{padding:20px}.p3-progress .kl-profile-totals{justify-content:space-between;gap:9px}
 .p3-progress .kl-profile-totals>div{min-width:0;padding-left:12px}.p3-progress .kl-profile-totals>div>strong{font-size:25px}
 .p3-progress .kl-profile-totals>div>span{font-size:10px}
 .p3-progress .kl-shortcut-row .kl-phase-art{margin-bottom:20px;width:40px;height:40px}
 .p3-settings-grid{grid-template-columns:1fr;gap:20px}.p3-settings .kl-card{padding:20px}
 .p3-settings .kl-card>label:not(.p3-switch){grid-template-columns:1fr;gap:8px;font-size:12px}
 .p3-settings .kl-card dl{grid-template-columns:90px minmax(0,1fr);gap:12px;font-size:12px}
 .p3-settings #p3DownloadReminder{width:100%;font-size:12px}
 .p3-summary-status{display:block}.p3-summary-status>.secondary{margin-top:10px;width:100%;min-height:44px}
 .p3-staff-overview .kl-page-heading h1{font-size:27px}
 .p3-batch-meta{gap:16px;margin-top:0;padding-bottom:18px}
 .p3-batch-meta>div{flex-basis:calc(50% - 16px)}.p3-batch-meta>.text-button{max-width:none;flex-basis:100%}
 .p3-report-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}
 .p3-report-controls>label{min-width:0}.p3-report-controls>.secondary{grid-column:1/-1;width:100%;font-size:12px}
 .p3-report-charts{grid-template-columns:1fr;gap:14px}.p3-report-charts>.kl-card:last-child{grid-column:auto}
 .p3-report-charts>.kl-card{padding:20px}.p3-report-ring{width:115px;height:115px}.p3-report-ring>strong{width:91px;height:91px;font-size:26px}
 .p3-report .sectionhead>input{max-width:none;width:100%}.p3-report .sectionhead{flex-wrap:wrap;gap:14px}
 .p3-assignment .kl-assignment-head{display:block}.p3-assignment .kl-assignment-head h2{font-size:25px}
 .p3-assignment .kl-assignment-head>.controls{display:flex;gap:10px;margin-top:16px}
 .p3-assignment .kl-assignment-head>.controls>button{flex:1;font-size:11px;padding:10px 12px}
 .p3-assignment .kl-assignment-grid{grid-template-columns:1fr;gap:18px}.p3-assignment .kl-assignment-grid>form{padding:20px}
 .p3-assignment .kl-assignment-grid>aside{position:static;padding:22px}
 .p3-mobile-publish{display:block;width:100%;min-height:46px}
}
@media(max-width:360px){body.kl-ui .p3-games .kl-featured-games{grid-template-columns:1fr}.p3-games .kl-game-card>p{min-height:0}body.kl-ui .p3-games .kl-game-card h2{min-height:0}body.kl-ui .p3-games .kl-game-card{min-height:300px}}
