/* Monthly qualitative assessments: scoped, RTL-first refinements. */
#content:has(#monthly-editor){--monthly-ink:#17354e;--monthly-muted:#586f81;--monthly-line:#dbe5ed;--monthly-accent:#086f79;--monthly-soft:#edf8f9;--monthly-warm:#fff9ed}
#content:has(#monthly-editor) .page-head{background:linear-gradient(110deg,#e6f6f6,#f2f6ff 67%,#fafcfe);border:1px solid #d4e7ef;border-radius:19px;padding:18px 20px;margin-bottom:15px}
#content:has(#monthly-editor) .page-head h2{color:var(--monthly-ink);font-weight:800;letter-spacing:0}
#content:has(#monthly-editor) .page-head p{color:var(--monthly-muted)}
#content:has(#monthly-editor) .card{border:1px solid var(--monthly-line);border-radius:17px;box-shadow:0 5px 20px rgba(26,69,99,.055)}
#content:has(#monthly-editor) .card>h3{color:var(--monthly-ink);line-height:1.9}
#content:has(#monthly-editor) select,#content:has(#monthly-editor) input[type=search],#content:has(#monthly-editor) textarea{font-family:Vazirmatn,Tahoma,Arial,sans-serif!important;font-size:14px;line-height:1.9;min-height:44px;padding:9px 13px;border-radius:11px;border:1px solid #bfd1dc;color:#173a56;background-color:#fbfdff;box-shadow:inset 0 1px 2px rgba(21,60,85,.035);max-width:100%;transition:border-color .16s,box-shadow .16s}
#content:has(#monthly-editor) select{padding-inline-end:30px;cursor:pointer;color-scheme:light}
#content:has(#monthly-editor) option{font-family:Vazirmatn,Tahoma,Arial,sans-serif!important;font-size:14px;line-height:2.1;padding:9px}
#content:has(#monthly-editor) :is(select,input,textarea,button):focus-visible{outline:2px solid #248c97;outline-offset:2px;box-shadow:0 0 0 3px rgba(36,140,151,.13)}
#content:has(#monthly-editor) .monthly-notice{background:#fff5ec;color:#8a3d18;border:1px solid #f2cdab;border-radius:13px;padding:12px 15px;margin-bottom:12px;font-weight:650;line-height:1.9}
#monthly-teacher-progress{background:linear-gradient(120deg,#e7f6f5,#f9fcfe)!important;border-color:#c9e6e7!important}
#monthly-teacher-progress h3{margin:0 0 6px;font-size:18px;color:#145d63}
#monthly-teacher-progress p{margin:4px 0;line-height:1.9;color:#4e6775}
#monthly-teacher-progress strong{display:inline-block;background:#fff;border:1px solid #bde2dd;border-radius:11px;padding:7px 14px;color:#176a60}
#monthly-goal-picker{background:linear-gradient(180deg,#fff,#f8fbff)}
#monthly-goal-picker [data-monthly-subject]{padding:10px 12px;border:1px solid #e1e9f0;border-radius:13px;background:#fbfdff;margin-top:12px}
#monthly-goal-picker [data-monthly-subject] label{border-bottom:1px solid #e7edf2;font-size:14px;line-height:1.9}
#monthly-goal-picker [data-monthly-subject] label:last-child{border-bottom:0}
#monthly-goal-picker input[type=checkbox],#monthly-goal-settings input[type=checkbox]{accent-color:#08747d;min-width:19px;min-height:19px}
#monthly-goal-settings summary,#monthly-advanced summary,#monthly-class-evidence summary,#monthly-evidence-panel summary{cursor:pointer;color:#1e536b;font-weight:700;line-height:2;padding:3px}
#monthly-editor>section{margin-bottom:13px}
#monthly-editor .monthly-combined{background:linear-gradient(180deg,#fff,#f9fcff 80%);padding:clamp(12px,2vw,22px)}
.monthly-combined .mc-head{border-bottom:1px solid #e1eaf0;padding-bottom:13px}
.monthly-combined .mc-head h3{font-size:18px;color:#155f70}
.monthly-combined .mc-head strong{background:#e3f4f0;color:#11695d;border:1px solid #c7e5db;border-radius:20px;padding:7px 14px}
.monthly-combined .mc-help{border-inline-start:3px solid #63bdc1;background:#f0faf9;padding:10px 13px;border-radius:8px;margin:13px 0!important;color:#325c6b!important}
.monthly-combined .mc-bulk{background:#eef7fb;border:1px solid #bcdde8;border-radius:17px;padding:14px 15px;margin:14px 0 16px}
.monthly-combined .mc-bulk-title{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px;color:#174b64}
.monthly-combined .mc-bulk-title strong{font-size:15px}
.monthly-combined .mc-bulk-title small{font-size:12px;line-height:1.8;color:#547286}
.monthly-combined .mc-bulk-form{display:grid;grid-template-columns:minmax(150px,1fr) minmax(190px,1.4fr) auto;align-items:end;gap:10px}
.monthly-combined .mc-bulk-form label{display:flex;flex-direction:column;gap:4px;color:#25566b;font-weight:650;font-size:13px;line-height:1.8;margin:0}
.monthly-combined .mc-bulk-form select{width:100%;background:#fff!important}
.monthly-combined .mc-bulk-form button{min-height:44px;white-space:nowrap;border-radius:11px}
.monthly-combined .mc-bulk-undo-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px;font-size:12px;color:#57748b;line-height:1.9}
.monthly-combined #mc-bulk-undo{font-size:12px;min-height:37px;border-radius:10px}
.monthly-combined #mc-bulk-undo:disabled{opacity:.48}
.monthly-combined .mc-search{border-color:#bfd5e0!important;background:#fff!important;margin:7px 0 14px!important}
.monthly-combined .mc-list{gap:9px}
.monthly-combined .mc-row{position:relative;border-color:#dde7ef;box-shadow:0 2px 10px rgba(26,69,99,.035);transition:border-color .16s,background .16s,box-shadow .16s}
.monthly-combined .mc-row:nth-child(2n){background:#f5f9fd}
.monthly-combined .mc-row[data-dirty=true]{background:#fff8e8;border-color:#e9bc70;box-shadow:0 2px 12px rgba(164,110,35,.08)}
.monthly-combined .mc-row-title{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#1f435b;margin-bottom:10px}
.monthly-combined .mc-pick{display:inline-flex;align-items:center;gap:9px;min-width:0;font-size:14px}
.monthly-combined [data-mc-check]{display:none;min-height:19px;min-width:19px;accent-color:#0b7781}
.monthly-combined.mc-selecting [data-mc-check]{display:block}
.monthly-combined .mc-index{display:inline-flex;justify-content:center;align-items:center;flex:none;width:29px;height:29px;border-radius:9px;background:#e3eef5;color:#42667e;font-weight:750;font-variant-numeric:tabular-nums}
.monthly-combined .mc-row-state{font-size:11px;color:#57758b;border-radius:16px;background:#eaf1f7;padding:4px 10px;white-space:nowrap}
.monthly-combined .mc-row[data-dirty=true] .mc-row-state{background:#ffe9bd;color:#87551b}
.monthly-combined .mc-ratings button{font-family:Vazirmatn,Tahoma,Arial,sans-serif;font-size:13px;line-height:1.6;border-radius:11px;background:#fff;border-color:#cfdde8}
.monthly-combined .mc-ratings button:hover:not(:disabled){border-color:#198e9a;background:#eff9fa}
.monthly-combined .mc-ratings button[aria-pressed=true]{background:#086f79!important;border-color:#086f79;color:#fff!important;box-shadow:0 2px 8px rgba(8,111,121,.22)}
.monthly-combined .mc-status{max-width:310px;margin-top:10px;color:#567387}
.monthly-combined .mc-status select{min-height:37px!important;padding-block:4px!important;font-size:13px!important}
.monthly-combined .mc-warning{border-radius:9px;background:#fff4e6;border:1px solid #e9c896;padding:8px 10px;line-height:1.85}
.monthly-combined .mc-footer{border:1px solid #b8d7e0;background:#f2fbfc;box-shadow:0 4px 20px rgba(22,79,101,.13)}
.monthly-combined #mc-feedback{font-size:13px;color:#28536a;line-height:1.8}
.monthly-combined #mc-save{border-radius:11px;min-height:46px}
@media(max-width:680px){
 #content:has(#monthly-editor) .page-head{padding:13px 15px}
 .monthly-combined .mc-bulk-form{grid-template-columns:1fr}
 .monthly-combined .mc-bulk-form button{width:100%}
 .monthly-combined .mc-ratings{grid-template-columns:repeat(2,minmax(0,1fr))}
 .monthly-combined .mc-row{padding:12px 10px}
 .monthly-combined .mc-ratings button{font-size:13px;min-height:46px}
 .monthly-combined .mc-bulk-title{display:block}
 .monthly-combined .mc-row-title{align-items:flex-start}
 .monthly-combined .mc-footer{bottom:2px}
}
@media(prefers-reduced-motion:reduce){.monthly-combined *{transition:none!important}}

/* V2 teacher/manager subject navigation */
#monthly-editor .msv2-board{background:linear-gradient(180deg,#fbfdff,#f7fbfb);border:1px solid #cddfe9;border-radius:18px;padding:clamp(12px,2vw,22px)}
.msv2-board>h3{font-size:18px;margin:0 0 5px;color:#174b62}
.msv2-help{color:#587286;line-height:1.95;font-size:13px;margin:8px 0 15px}
.msv2-subject-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(148px,1fr));gap:9px}
.msv2-subject{display:flex;align-items:start;flex-direction:column;gap:4px;text-align:right;min-height:93px;border-radius:13px;border:1px solid #cddfe8;padding:11px 13px;background:#fff;color:#1c5064;font:inherit;transition:background .15s,border-color .15s}
.msv2-subject:hover{background:#f0fafa;border-color:#65a9b4}
.msv2-subject.active{background:#e5f5f4;border-color:#0d8585;box-shadow:inset 0 0 0 1px #0d8585,0 3px 9px #006a6a18}
.msv2-subject strong{font-size:14px}
.msv2-subject small{font-size:11px;color:#50778e}
.msv2-subject span{font-size:12px;font-variant-numeric:tabular-nums;color:#16746d}
.msv2-detail{margin-top:15px;background:#fff;border:1px solid #dbe6ed;border-radius:14px;padding:clamp(12px,2vw,18px)}
.msv2-subject-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-bottom:1px solid #e1e9ef;padding-bottom:9px}
.msv2-subject-head h4{margin:0;font-size:16px;color:#144f64}
.msv2-subject-head span{border-radius:16px;background:#e6f6f5;padding:5px 11px;font-size:12px;color:#166d67}
.msv2-goals{border:1px solid #d3e5ec;border-radius:12px;padding:10px 13px;margin:12px 0;background:#f9fcfe}
.msv2-goals summary{cursor:pointer;font-weight:700;color:#205e76;padding:6px 0;line-height:1.8}
.msv2-goal{display:flex;align-items:start;gap:10px;padding:9px 2px;border-bottom:1px solid #e7eef2;line-height:1.85;font-size:13px}
.msv2-goal input,.msv2-review input{accent-color:#0d8585;min-width:18px;min-height:18px}
.msv2-actions{margin-top:12px;padding:12px;background:#f1f8fb;border:1px solid #d6e6ef;border-radius:12px;display:grid;gap:9px}
.msv2-actions label{font-size:13px;line-height:1.8}
.msv2-actions button,.msv2-goals button,.msv2-not-taught button{min-height:44px;border-radius:10px}
.msv2-actions textarea,.msv2-not-taught textarea{display:block;width:100%;min-height:70px}
.msv2-not-taught{border-top:1px solid #e0e9ed;margin-top:13px;padding-top:12px;display:grid;gap:8px}
.msv2-note{border-radius:11px;background:#eff8f7;border:1px solid #c7e5df;padding:12px 14px;color:#216b65;line-height:1.9}
.msv2-results-summary{display:grid;gap:6px;margin:12px 0}
.msv2-results-summary>div{display:flex;gap:8px;justify-content:space-between;align-items:center;border-bottom:1px solid #e7edf1;padding:8px 0;font-size:13px}
@media(max-width:560px){.msv2-subject-list{grid-template-columns:repeat(2,minmax(0,1fr))}.msv2-subject{min-height:94px}.msv2-results-summary>div{display:block}}

/* V2: consistent manager print selection and published parent report */
.msv2-print-panel{margin-top:18px;border:1px solid #bfd8e3;border-radius:14px;background:#f7fbfe;padding:13px 15px}
.msv2-print-panel>summary{font-weight:750;color:#235970;cursor:pointer;padding:5px 0;font-size:14px}
.msv2-print-actions{display:flex;flex-wrap:wrap;gap:9px;margin:11px 0}
.msv2-print-actions button{min-height:43px;border-radius:10px}
.msv2-print-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:6px;max-height:255px;overflow:auto;padding:8px;border:1px solid #dde8ee;border-radius:11px;background:#fff}
.msv2-print-list label{display:flex;gap:8px;align-items:center;padding:7px 9px;font-size:13px;border-radius:8px;cursor:pointer;line-height:1.8}
.msv2-print-list label:nth-child(2n){background:#f1f7fb}
.msv2-print-list input{accent-color:#127e86;width:18px;height:18px;flex:none}
.msv2-print-select-all{font-weight:750;color:#17616c}
.monthly-parent-v2{background:#fff;border:1px solid #d9e5ed;border-radius:17px;overflow:hidden;padding:clamp(14px,2vw,22px)!important;box-shadow:0 5px 20px #13536a0b}
.mpr2-actions{display:flex;justify-content:flex-end;margin-bottom:10px}
.mpr2-actions button{min-height:43px;border-radius:10px}
.mpr2-hero{border-radius:14px;background:linear-gradient(100deg,#eaf8f6,#f0f6ff);padding:16px 18px;border:1px solid #d4e9e7}
.mpr2-hero small{color:#476679;font-weight:650}
.mpr2-hero h2{margin:4px 0 6px;color:#14546b;font-size:19px;font-weight:800}
.mpr2-hero p{font-size:13px;line-height:1.9;margin:4px 0}
.mpr2-partial{border-inline-start:3px solid #dc9d4c;background:#fff8e8;border-radius:7px;padding:8px 10px;color:#80521b!important}
.mpr2-complete{color:#1d725e}
.mpr2-subjects{display:grid;gap:11px;margin:14px 0}
.mpr2-subject{border:1px solid #d5e2eb;border-radius:13px;overflow:hidden;background:#fff}
.mpr2-subject-head{display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap;background:#f1f8fb;padding:12px 15px}
.mpr2-subject-head h3{margin:0;font-size:15px;color:#17516b}
.mpr2-subject-head span{border:1px solid #aacecd;border-radius:20px;padding:5px 11px;background:#fff;color:#0d6267;font-size:12px;font-weight:700}
.mpr2-goals{padding:3px 14px}
.mpr2-goal{display:flex;justify-content:space-between;gap:12px;padding:11px 2px;border-bottom:1px solid #e7edf2;font-size:13px;line-height:1.9}
.mpr2-goal:last-child{border:0}
.mpr2-goal>span{min-width:0;flex:1}
.mpr2-goal strong{flex:none;color:#12686b;max-width:155px;text-align:end}
.mpr2-recommendation{background:#f7fbfe;border:1px solid #d2e3ed;border-radius:12px;padding:13px 15px}
.mpr2-recommendation h3{margin:0 0 5px;font-size:15px}
.mpr2-recommendation p{white-space:pre-wrap;line-height:1.95}
.mpr2-footer{font-size:12px;color:#607585;margin-top:15px;line-height:1.9}
@media(max-width:650px){.mpr2-goal{display:grid;gap:4px}.mpr2-goal strong{max-width:none;text-align:start}.msv2-print-actions button{width:100%}}

/* Monthly subject states — independent visual status and keyboard focus. */
.msv2-subject[data-state="draft"][data-teaching-status="planned"]{background:#f7f9fc;border-color:#d7e1e9;color:#647588}
.msv2-subject[data-state="draft"][data-teaching-status="taught"]{background:#eff8ff;border-color:#a4cdeb;color:#164f7c}
.msv2-subject[data-state="submitted"]{background:#fff7e8;border-color:#efc98a;color:#87511a}
.msv2-subject[data-state="published"]{background:#ecf9f2;border-color:#9bd7b4;color:#196044}
.msv2-subject[data-teaching-status="not_taught"]{background:#f3f1f8;border-color:#d3c8e2;color:#655579}
.msv2-subject[data-state="submitted"] small{color:#86510d;font-weight:750}
.msv2-subject[data-state="published"] small{color:#166d4c;font-weight:750}
.msv2-subject.active{outline:2px solid #167e87;outline-offset:2px;box-shadow:0 3px 12px #126d7c20}
.msv2-subject:focus-visible{outline:3px solid #0a7186;outline-offset:3px}
#monthly-start-card{background:linear-gradient(110deg,#e5f7f5,#f3f8ff);border:1px solid #bcd9e0;border-radius:18px;box-shadow:0 8px 22px #17576a11;padding:18px 20px}
#monthly-start-card h3{color:#11566b;font-size:17px;margin:0 0 5px}
#monthly-start-card p{color:#4c6e80;font-size:13px;line-height:1.9;margin:3px 0 12px}
#monthly-start-card button{min-height:44px;border-radius:11px;padding:9px 17px;font:inherit;font-weight:750}
#monthly-start-card .monthly-start-tag{font-size:11px;background:#fff;border:1px solid #c6e1e2;border-radius:20px;padding:4px 10px;color:#176a73}
@media(max-width:600px){#monthly-start-card{padding:14px 12px}.msv2-subject{min-width:0}.msv2-subject strong{font-size:13px}}

/* V2 manager review: compact by default, exceptions first. */
.msv2-subject[data-review-pending]:not([data-review-pending="0"]){background:#fff1f1;border-color:#e9a6a6;color:#8d2b37}
.msv2-subject[data-review-pending]:not([data-review-pending="0"]) small{color:#a72e42;font-weight:800}
.mr-panel{border:1px solid #d1e1e9;border-radius:16px;background:linear-gradient(180deg,#f8fcfe,#fff);padding:clamp(12px,2vw,20px);margin:12px 0}
.mr-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
.mr-header h4,.mr-panel h4{margin:0;font-size:17px;font-weight:800;color:#174f64}
.mr-header span{background:#e7f4f2;border:1px solid #b7dcd6;color:#176c5b;font-size:13px;font-weight:750;border-radius:20px;padding:5px 11px}
.mr-description,.mr-panel>p{font-size:13px;color:#527087;line-height:1.9;margin:9px 0}
.mr-stat-list{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:13px 0}
.mr-stat{border:1px solid #d8e6ec;background:#fff;border-radius:12px;padding:10px 6px;display:flex;flex-direction:column;align-items:center;gap:4px}
.mr-stat strong{font-size:21px;font-weight:800;font-variant-numeric:tabular-nums}
.mr-stat span{font-size:11px;color:#49677c;text-align:center;line-height:1.6}
.mr-stat[data-kind=very-good] strong{color:#087b69}
.mr-stat[data-kind=good] strong{color:#147d9f}
.mr-stat[data-kind=acceptable] strong{color:#9a6b1b}
.mr-stat[data-kind=needs-work] strong,.mr-stat[data-kind=special] strong{color:#b04a31}
.mr-review-status{display:flex;align-items:center;flex-wrap:wrap;gap:12px;background:#eff8fa;border:1px solid #d0e8ea;border-radius:11px;padding:10px 13px;font-size:12px;color:#325c6d;line-height:1.8}
.mr-review-status .mr-remainder{font-weight:750;color:#175c57}
.mr-panel h5{font-size:14px;color:#174f64;margin:16px 0 9px}
.mr-person-list{display:grid;gap:8px}
.mr-person{border:1px solid #d8e6ed;border-radius:12px;padding:12px;background:#fff;line-height:1.9}
.mr-person:nth-child(even){background:#f7fafc}
.mr-person-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.mr-person-title strong{font-size:14px;color:#234761}
.mr-person-title>span{font-size:12px;color:#3c6a79}
.mr-person-title small{font-weight:750;color:#995624;border-radius:16px;background:#fff1de;padding:4px 10px}
.mr-reason{margin:6px 0 10px;font-size:13px;color:#955326;background:#fff6e9;border-inline-start:3px solid #daaa64;padding:7px 10px;border-radius:7px}
.mr-person button{font-size:12px;min-height:38px;border-radius:9px;margin-top:7px}
.mr-person [data-mr-return-panel]{margin-top:10px;padding:10px;background:#f3f8fc;border-radius:10px}
.mr-person label{font-size:13px;font-weight:700;display:block}
.mr-person textarea,.mr-person select{display:block;width:100%;min-height:43px;margin:7px 0;border:1px solid #b9d1df;border-radius:10px;background:#fff;font:inherit;padding:9px}
.mr-person textarea{min-height:74px}
.mr-inline-actions{display:flex;gap:8px;flex-wrap:wrap}
.mr-wait,.mr-done,.mr-quiet{display:inline-block;padding:7px 10px;border-radius:9px;font-size:12px;line-height:1.8}
.mr-wait{background:#fff4e0;color:#80521d}
.mr-done{background:#e5f7ee;color:#196444}
.mr-quiet,.mr-empty{background:#eef8f7;color:#235e60}
.mr-all{margin-top:11px;border:1px solid #d9e7ed;border-radius:10px;padding:9px 11px}
.mr-all summary{font-size:13px;cursor:pointer;font-weight:750;color:#235b74;line-height:1.8}
.mr-all .mr-person-list{margin-top:10px}
.mr-caption{font-size:11px!important;margin-top:13px!important}
.mr-blocked{color:#91542b;font-weight:700;font-size:13px;border:1px solid #ebcead;padding:9px;background:#fff7eb;border-radius:10px}
@media(max-width:750px){.mr-stat-list{grid-template-columns:repeat(3,minmax(0,1fr))}.mr-review-status{gap:7px}.mr-person-title{justify-content:start}}
@media(max-width:400px){.mr-stat{padding:8px 4px}.mr-stat span{font-size:10px}}

.mr-student-details{margin:9px 0;border:1px solid #d9e8ed;border-radius:9px;background:#fbfdff;padding:8px 11px}
.mr-student-details summary{cursor:pointer;font-size:12px;font-weight:750;color:#235a6c;line-height:1.9}
.mr-goal-detail{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px 11px;padding:8px 0;border-bottom:1px solid #e5edf1;font-size:12px;line-height:1.9}
.mr-goal-detail:last-child{border-bottom:0}
.mr-goal-detail>span{flex:1;min-width:180px}
.mr-goal-detail strong{color:#176b6d;font-weight:750}
.mr-goal-detail small{flex-basis:100%;color:#677a88}

/* Monthly teacher batch actions and multi-month navigation. Scoped only to monthly assessment. */
.msv2-bulk-submit{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:#f0f8fa;border:1px solid #b8dce3;border-radius:14px;padding:12px 15px;margin:12px 0}
.msv2-bulk-submit>div>strong{font-size:14px;color:#165d70}
.msv2-bulk-submit .msv2-help{margin:3px 0;font-size:12px}
.msv2-bulk-actions{display:flex;gap:8px;flex-wrap:wrap}
.msv2-bulk-actions button{min-height:42px;border-radius:10px;font:inherit;font-size:13px;font-weight:750}
.msv2-subject-slot{min-width:0;display:flex;flex-direction:column;gap:6px}
.msv2-subject-slot .msv2-subject{width:100%;flex:1}
.msv2-subject-select{font-size:12px;display:flex;gap:7px;align-items:center;line-height:1.8;background:#fff;border:1px solid #cedee8;border-radius:9px;padding:6px 9px;cursor:pointer}
.msv2-subject-select input{width:18px;height:18px;accent-color:#14868e;margin:0}
.monthly-periods{display:flex;gap:9px;overflow-x:auto;overscroll-behavior-inline:contain;padding:7px 3px 12px;scroll-snap-type:x proximity;align-items:stretch}
.monthly-period{flex:0 0 auto;min-width:138px;max-width:190px;min-height:68px;border-radius:12px;border:1px solid #cfdee9;background:#f8fafc;color:#2c5269;display:flex;flex-direction:column;gap:4px;align-items:start;text-align:start;justify-content:center;padding:9px 12px;font:inherit;cursor:pointer;scroll-snap-align:start}
.monthly-period strong{font-size:14px}
.monthly-period small{font-size:11px;opacity:.88;line-height:1.7}
.monthly-period[aria-pressed=true]{background:#e5f7f4;border:2px solid #15818a;color:#0d5f69;box-shadow:0 3px 11px #0d72791b}
.monthly-period[data-status=published]{background:#effaf2;border-color:#a6d9be}
.monthly-period[data-status=awaiting_review]{background:#fff5e7;border-color:#f0d4a6}
.monthly-period[data-status=attention]{background:#fff1ef;border-color:#e9bcb0}
.monthly-period:focus-visible{outline:3px solid #096e86;outline-offset:3px}
.monthly-periods-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px;margin:2px 0 5px}
.monthly-periods-head strong{font-size:14px;color:#244f66}
.monthly-periods-head span{font-size:12px;color:#61798b}
@media(max-width:640px){.msv2-bulk-submit{align-items:stretch}.msv2-bulk-actions,.msv2-bulk-actions button{width:100%}.monthly-period{min-width:122px}}

/* Published-only qualitative trend: accessible stacked bars, no numerical grades. */
.monthly-trend-panel{padding:clamp(14px,2vw,22px);margin-top:16px;border:1px solid #c9e1e5!important;background:linear-gradient(155deg,#f8fcff,#fff 65%,#f4fbf8);border-radius:17px}
.mpt-heading,.mpt-chart-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.mpt-heading h3{margin:0;color:#17546a;font-size:18px}
.mpt-heading p{margin:5px 0;color:#5a7684;font-size:12px}
.mpt-heading select,.mpt-chart-head select{font-family:Vazirmatn,Tahoma,sans-serif;min-height:40px;background:#fff;border:1px solid #bcd4dd;border-radius:10px;padding:6px 10px;color:#235b6b;max-width:100%}
.mpt-heading label,.mpt-filter-label{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:13px;color:#315b6d;font-weight:700}
.mpt-content{margin-top:14px}
.mpt-chart-head h3{margin:0;color:#174f65;font-size:15px}
.mpt-legend{display:flex;flex-wrap:wrap;gap:12px 18px;margin:16px 0;font-size:12px;color:#466678}
.mpt-legend span{display:inline-flex;align-items:center;gap:6px}
.mpt-legend i{display:inline-block;width:11px;height:11px;border-radius:4px}
.mpt-level-0{background:#e47755}
.mpt-level-1{background:#e6b857}
.mpt-level-2{background:#51a3d4}
.mpt-level-3{background:#36a880}
.mpt-chart{display:grid;gap:10px;padding:14px;border:1px solid #dceaf0;border-radius:14px;background:#fff}
.mpt-chart-row{display:grid;grid-template-columns:minmax(86px,125px) minmax(0,1fr) 98px;gap:12px;align-items:center;font-size:12px;line-height:1.8}
.mpt-chart-row strong{color:#28516a}
.mpt-chart-row small{text-align:end;color:#547181}
.mpt-track{display:flex;direction:rtl;overflow:hidden;height:22px;background:#eff4f7;border-radius:7px;box-shadow:inset 0 0 0 1px #dbe5e9}
.mpt-segment{display:block;min-width:0;height:100%;transition:width .18s}
.mpt-segment+.mpt-segment{border-right:1px solid #fff}
.mpt-analysis{margin:17px 0 6px}
.mpt-analysis h4{font-size:14px;color:#234f67;margin:0 0 10px}
.mpt-insight{background:#f2f8fb;border-right:3px solid #55a4bb;border-radius:9px;padding:10px 12px;margin:8px 0}
.mpt-insight strong{font-size:13px;color:#1f536c}
.mpt-insight p{font-size:12px;line-height:1.95;margin:3px 0;color:#3b5d70}
.mpt-empty{font-size:13px;color:#657986;line-height:1.9;padding:9px}
.mpt-caution{color:#647583;line-height:1.9;font-size:11px;margin:13px 0 0}
@media(max-width:600px){.mpt-chart-row{grid-template-columns:1fr 1fr;gap:4px 8px}.mpt-chart-row .mpt-track{grid-column:1/-1;grid-row:2}.mpt-chart-row small{text-align:end}.mpt-heading,.mpt-chart-head{align-items:flex-start}.mpt-chart{padding:10px}}
@media(prefers-reduced-motion:reduce){.mpt-segment{transition:none}}

/* New month selection: visible review requirement, compact at desktop and mobile. */
#monthly-goal-picker .monthly-catalog-disclaimer{background:#fff8e8;border:1px solid #edd39f;border-right:4px solid #c68d2c;border-radius:10px;color:#765322;font-size:12px;line-height:1.95;padding:10px 13px;margin:0 0 13px}
#monthly-start-card label{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:13px;color:#24596b;font-weight:700;margin:9px 0 12px}
#monthly-start-card #monthly-new-period{min-height:42px;min-width:155px;background:#fff;border:1px solid #b1d2dc;border-radius:10px;padding:7px 10px;font-family:Vazirmatn,Tahoma,sans-serif;color:#154d64}
#monthly-start-card #monthly-new-period:focus-visible{outline:2px solid #167d87;outline-offset:2px}
