/* ARC schedule CP002 — compact 2 columns / editor. */
body.arc-nav-home .arc-sched-card h2{font-size:16px!important;line-height:1.25;margin-bottom:8px!important}
body.arc-nav-home .arc-sched-card{padding:10px 12px!important}
body.arc-nav-home .arc-sched-card h3{font-size:13px!important}
body.arc-nav-home .arc-sched-prep{padding-top:8px!important;padding-bottom:8px!important}
body.arc-nav-home .arc-sched-right{grid-template-rows:minmax(0,1fr) auto}
body.arc-nav-home .arc-sched-rows{max-height:min(61vh,550px)}
body.arc-nav-home .arc-sched-school{max-height:310px}
.arc-sched-actions{display:flex;justify-content:space-between;gap:8px;margin:10px 0 0;flex-wrap:wrap}
.arc-sched-actions button{font-size:13px;font-weight:700;min-height:42px;padding:9px 14px}
.arc-sched-demo-caption{font-size:11px;color:#667883;margin:0 0 6px}
.arc-sched-row.arc-sched-current{background:#dbf4e9;border-left:3px solid #199477}
.arc-sched-row.arc-sched-current .arc-sched-row-button{color:#103b37}

/* CP003: stronger amber/orange signal when the planned end passed without confirmed completion. */
.arc-sched-row.arc-sched-overdue{background:#fff0cd;border-left:4px solid #e18422}
.arc-sched-row.arc-sched-overdue .arc-sched-row-button{color:#794007;font-weight:740}
.arc-sched-row.arc-sched-overdue .arc-sched-time{color:#8b470c}
.arc-sched-row.arc-sched-overdue .arc-sched-row-button:hover{background:#ffe3af}
.arc-sched-row .arc-sched-overdue-note{display:inline-block;margin:0 8px 6px;padding:2px 7px;border-radius:5px;background:#f8d19a;color:#803e05;font-size:11px;font-weight:750}
/* Confirmed completion must always override the overdue treatment. */
.arc-sched-row.arc-sched-done,.arc-sched-row.arc-sched-done.arc-sched-overdue{background:#edf0f2;border-left:3px solid #96a2ac}
.arc-sched-row.arc-sched-done .arc-sched-overdue-note{display:none}

.arc-sched-row.arc-sched-done{background:#edf0f2;border-left:3px solid #96a2ac}
.arc-sched-row.arc-sched-done .arc-sched-row-button{color:#737b83}
.arc-sched-row.arc-sched-done .arc-sched-row-button span{color:#737b83}
.arc-sched-row.arc-sched-done .arc-sched-suggestion{color:#848b90}
.arc-sched-row.arc-sched-done .arc-sched-row-button:hover{background:#e5e8ea}
.arc-se-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.arc-se-head h2{font-size:21px;margin:0!important}
.arc-schedule-editor{padding:18px!important}
.arc-se-meta{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:12px 0}
.arc-se-meta label{display:flex;align-items:center;gap:8px;font-weight:700}
.arc-se-meta input{min-height:40px;padding:6px;border:1px solid #b7d1d9;border-radius:7px}
.arc-se-note{font-size:12px;color:#5a7481;margin:8px 0}
.arc-se-status{font-size:13px;min-height:20px;color:#2a6170}
.arc-se-edit-list{display:grid;gap:6px;max-height:min(60vh,460px);overflow-y:auto}
.arc-se-edit-row{display:grid;grid-template-columns:minmax(100px,125px) minmax(100px,125px) minmax(100px,1fr) minmax(105px,140px) 58px;gap:6px;align-items:center;padding:7px;border-bottom:1px solid #e3eff0}
.arc-se-edit-row input,.arc-se-edit-row select{font:inherit;font-size:13px;min-height:40px;min-width:0;padding:6px;border:1px solid #b7d1d9;border-radius:6px;background:white}
.arc-se-remove{font:inherit;font-size:12px;border:1px solid #c7dadd;border-radius:6px;background:white;min-height:40px;cursor:pointer}
.arc-se-actions{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}
.arc-se-actions button{min-height:44px}
@media(max-width:820px){
 .arc-se-edit-row{grid-template-columns:minmax(90px,1fr) minmax(90px,1fr) minmax(130px,1.25fr) minmax(90px,.9fr) 48px;gap:4px}
 .arc-se-edit-row input,.arc-se-edit-row select{font-size:12px;padding:4px}
}
@media(max-width:620px){
 .arc-se-edit-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .arc-se-edit-row input:nth-child(3){grid-column:span 2}
 .arc-se-remove{grid-column:span 2}
 .arc-sched-actions{flex-direction:column}
 .arc-sched-actions button{width:100%}
}


/* CP004: clearer single-state labels and preparation panels at bottom-left. */
body.arc-nav-home .arc-sched-today{display:flex;flex-direction:column}
body.arc-nav-home .arc-sched-today>.arc-sched-rows{max-height:min(61vh,600px);flex:0 1 auto}
body.arc-nav-home .arc-sched-today>.arc-sched-prep{margin-top:auto;padding:15px 0 2px;border:0;border-top:1px solid #d6e5e8;border-radius:0;background:transparent;min-width:0}
body.arc-nav-home .arc-sched-today>.arc-sched-prep h3{font-size:14px!important;margin:0 0 6px!important}
body.arc-nav-home .arc-sched-today>.arc-sched-prep .arc-sched-subhead{margin-top:10px!important;padding-top:10px}
body.arc-nav-home .arc-sched-today>.arc-sched-prep .arc-sched-list{max-height:140px;min-height:25px}
body.arc-nav-home .arc-sched-right{display:block;grid-template-rows:none}
body.arc-nav-home .arc-sched-right>.arc-sched-tomorrow{height:100%;box-sizing:border-box}
.arc-sched-row .arc-sched-status{display:inline-block;margin:2px 8px 7px;padding:3px 8px;border-radius:5px;font-size:11px;font-weight:750;line-height:1.5}
.arc-sched-row.arc-sched-upcoming{background:#f5f9fc;border-left:3px solid #9bbeca}
.arc-sched-row .arc-sched-upcoming-note{background:#e4eff5;color:#385f71}
.arc-sched-row .arc-sched-current-note{background:#c5e8da;color:#174e41}
.arc-sched-row .arc-sched-done-note{background:#dce2e7;color:#53616b}
.arc-sched-row.arc-sched-overdue .arc-sched-overdue-note{margin:2px 8px 7px;padding:3px 8px}
.arc-sched-row.arc-sched-done .arc-sched-done-note{color:#53616b}
@media(max-width:670px){
 body.arc-nav-home .arc-sched-today>.arc-sched-rows{max-height:460px}
 body.arc-nav-home .arc-sched-today>.arc-sched-prep{margin-top:13px}
 body.arc-nav-home .arc-sched-right>.arc-sched-tomorrow{height:auto}
}


/* CP005: denser timeline rows and a genuinely separate lower-left preparation card. */
body.arc-nav-home .arc-sched-left{
 display:flex;flex-direction:column;gap:14px;min-width:0;align-self:stretch;
}
body.arc-nav-home .arc-sched-left>.arc-sched-today{
 flex:1 1 auto;min-height:0;
}
body.arc-nav-home .arc-sched-left>.arc-sched-prep{
 display:block;flex:0 0 auto;min-width:0;margin:0;
 padding:13px 14px;border:1px solid #d7e5e7;border-radius:10px;background:#fff;
}
body.arc-nav-home .arc-sched-left>.arc-sched-prep h3{
 font-size:14px!important;margin:0 0 6px!important;line-height:1.35;
}
body.arc-nav-home .arc-sched-left>.arc-sched-prep .arc-sched-subhead{
 margin-top:12px!important;padding-top:10px;
}
body.arc-nav-home .arc-sched-left>.arc-sched-prep .arc-sched-list{
 max-height:140px;min-height:24px;
}
body.arc-nav-home .arc-sched-row-button{
 min-height:36px!important;box-sizing:border-box!important;
 padding:5px 8px 1px!important;line-height:1.25!important;
}
body.arc-nav-home .arc-sched-row .arc-sched-status{
 margin:0 8px 5px!important;padding:2px 7px!important;line-height:1.25!important;
}
body.arc-nav-home .arc-sched-head{padding:7px 8px}
body.arc-nav-home .arc-sched-row{line-height:1.25}
@media(max-width:670px){
 body.arc-nav-home .arc-sched-left{gap:12px}
 body.arc-nav-home .arc-sched-left>.arc-sched-today{flex:auto}
 body.arc-nav-home .arc-sched-left>.arc-sched-prep{padding:11px 12px}
}

/* CP006 optional lesson/homework detail in date editor. */
.arc-se-edit-row .arc-se-content{
 grid-column:2 / 5;min-width:0;min-height:34px;
 font-size:12px;padding:7px 8px;border:1px solid #c9dde0;border-radius:6px;
 background:#f8fbfc;
}
@media(max-width:620px){.arc-se-edit-row .arc-se-content{grid-column:1 / -1}}
/* Detail text appears under the subject, aligned with the status in column one. */
.arc-sched-row-meta{display:grid;grid-template-columns:minmax(96px,1.1fr) minmax(67px,1fr) minmax(64px,.75fr);
 column-gap:8px;align-items:start;padding:0 8px 5px;min-height:0}
.arc-sched-row-meta .arc-sched-status{grid-column:1;margin:0!important;justify-self:start;align-self:start}
.arc-sched-row-meta .arc-sched-learning-content{grid-column:2 / 4;font-size:11px;
 line-height:1.45;color:#3a6070;white-space:normal;overflow-wrap:anywhere;min-width:0;
 padding:1px 0 0}
.arc-sched-row.arc-sched-overdue .arc-sched-learning-content{color:#855014}
.arc-sched-row.arc-sched-done .arc-sched-learning-content{color:#707d85}
.arc-sched-row.arc-sched-upcoming .arc-sched-learning-content{color:#456c80}
@media(max-width:820px){
 .arc-sched-row-meta{grid-template-columns:minmax(87px,1.05fr) minmax(60px,.9fr) minmax(54px,.65fr);column-gap:5px}
}

body.arc-nav-home .arc-sched-row .arc-sched-row-meta .arc-sched-status{
 margin:0!important;padding:2px 7px!important;line-height:1.3!important
}
body.arc-nav-home .arc-sched-row .arc-sched-row-meta{padding-bottom:5px}


/* CP008: remove redundant calendar picker and redundant re-edit; support
   explicit completion without mistaking it for homework submission. */
.arc-se-date{margin:0;font-size:13px;font-weight:720;color:#365f6d}
.arc-se-meta{margin:9px 0 7px;align-items:center}
.arc-se-complete{font:inherit;grid-column:5;min-height:34px;padding:6px 5px;
 background:#fff;color:#3e5965;border:1px solid #adc6ce;border-radius:6px;
 font-weight:650;font-size:12px;cursor:pointer}
.arc-se-complete:hover{background:#e8f4f5;color:#214a58}
.arc-se-complete:focus-visible{outline:3px solid #24899b;outline-offset:1px}
.arc-se-status{line-height:1.55;color:#365a69;min-height:18px}
@media(max-width:620px){
 .arc-se-complete{grid-column:span 2}
 .arc-se-date{font-size:12px}
}


/* CP009: completed is a neutral ACTION; only a saved record is displayed grey. */
.arc-se-pending{display:flex;flex-direction:column;gap:5px;
 margin:9px 0 5px;padding:9px 12px;border:1px solid #e1c484;border-radius:8px;
 background:#fff8e9;color:#76511b;font-size:13px}
.arc-se-pending[hidden]{display:none!important}
.arc-se-pending-row{display:flex;align-items:center;gap:12px;justify-content:space-between;
 padding:3px 0;border-top:1px solid #f2e3bc}
.arc-se-undo{font:inherit;font-size:12px;min-height:30px;padding:4px 10px;
 background:#fff;border:1px solid #c6a973;border-radius:5px;cursor:pointer;color:#614c2a}
.arc-se-undo:hover{background:#f5e9ce}

/* CP010: the completion ACTION must stay readable on a single line. */
.arc-se-edit-row{grid-template-columns:minmax(100px,125px) minmax(100px,125px) minmax(100px,1fr) minmax(105px,140px) 98px}
.arc-se-edit-row .arc-se-complete{white-space:nowrap;word-break:keep-all;overflow-wrap:normal;
 min-width:94px;padding:6px 7px;line-height:1.4}
.arc-se-edit-row .arc-se-extended{grid-column:1 / 3;min-height:0;
 color:#516a76;font-size:11px;line-height:1.3}
.arc-se-edit-row .arc-se-extended:empty{display:none}
@media(max-width:820px){
 .arc-se-edit-row{grid-template-columns:minmax(90px,1fr) minmax(90px,1fr) minmax(130px,1.25fr) minmax(90px,.9fr) 98px}
}
@media(max-width:620px){
 .arc-se-edit-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .arc-se-edit-row .arc-se-extended{grid-column:1 / -1}
 .arc-se-edit-row .arc-se-complete{grid-column:span 2;min-width:0;width:100%}
}


/* CP012: compact editor rows; time picker commits as soon as hour+minute are selected. */
.arc-se-edit-row{
 display:grid;align-items:center;gap:5px 7px;padding:6px 5px 8px;
 grid-template-columns: minmax(92px,112px) minmax(92px,112px) minmax(105px,1fr) minmax(115px,1fr) minmax(105px,132px) 94px;
}
.arc-se-time-wrap{position:relative;min-width:0;max-width:100%}
.arc-se-time-raw{display:none!important}
.arc-se-time-trigger{width:100%;min-width:0;min-height:39px;display:flex;align-items:center;
 justify-content:space-between;gap:4px;padding:7px 8px;cursor:pointer;
 border:1px solid #aecbd4;border-radius:6px;background:#fff;color:#183f50;font:inherit;font-size:13px}
.arc-se-time-trigger:hover{background:#f1f8f9}
.arc-se-clock{font-size:17px;color:#547581;flex:0 0 auto}
.arc-se-time-pop{position:absolute;z-index:200;top:calc(100% + 4px);left:0;
 width:min(290px,calc(100vw - 44px));padding:12px;border:1px solid #9fbfca;
 border-radius:10px;box-shadow:0 8px 25px #11344528;background:#fff}
.arc-se-time-pop[hidden]{display:none!important}
.arc-se-time-pop>strong{display:block;margin-bottom:9px;font-size:13px}
.arc-se-time-hours{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
.arc-se-time-minutes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.arc-se-hour,.arc-se-minute,.arc-se-time-back{font:inherit;font-size:12px;
 border:1px solid #c4dadd;border-radius:5px;min-height:34px;padding:5px 2px;
 cursor:pointer;background:#f7fafb;color:#183f50}
.arc-se-hour:hover,.arc-se-minute:hover{background:#d7edf0}
.arc-se-minute{font-weight:700;font-size:13px;min-height:41px}
.arc-se-time-back{margin:0 0 10px;padding:6px 9px;min-height:32px}
.arc-se-subject,.arc-se-course,.arc-se-genre{width:100%;min-width:0;min-height:39px;
 padding:5px 7px;font:inherit;font-size:13px;border:1px solid #aecbd4;
 background:#fff;border-radius:6px}
.arc-se-course:disabled{color:#81969f;background:#f4f6f7}
.arc-se-edit-row .arc-se-remove{grid-column:6;grid-row:1;min-height:39px;white-space:nowrap}
.arc-se-edit-row .arc-se-detail-box{
 grid-column:3 / 6;grid-row:2;min-width:0;display:grid;gap:6px;
}
.arc-se-edit-row .arc-se-detail-box .arc-se-content{grid-column:auto;min-height:36px}
.arc-se-detail-split{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}
.arc-se-detail-split .arc-se-textbook,.arc-se-detail-split .arc-se-pages{min-width:0;
 min-height:36px;border:1px solid #bcd0d8;background:#f7fbfc;border-radius:6px;
 font:inherit;font-size:12px;padding:5px 8px}
.arc-se-book-hint{grid-column:1 / -1;font-size:11px;color:#58727c;min-height:0;line-height:1.4}
.arc-se-book-hint:empty{display:none}
.arc-se-detail-disabled{color:#899da5;font-size:11px;padding:5px 0;min-height:18px}
.arc-se-edit-row .arc-se-complete{
 grid-column:6;grid-row:2;min-width:94px;min-height:36px;
 font-size:12px;white-space:nowrap;word-break:keep-all;padding:4px 5px
}
.arc-se-edit-row .arc-se-extended{grid-column:1 / 3;grid-row:2;align-self:center;
 margin:0;font-size:10px;line-height:1.3;color:#647c85}
.arc-se-edit-row .arc-se-extended:empty{display:none}
@media(max-width:830px){
 .arc-se-edit-row{grid-template-columns:repeat(2,minmax(0,1fr)) minmax(0,1.2fr) minmax(0,1.2fr)}
 .arc-se-edit-row .arc-se-genre{grid-column:1;grid-row:2}
 .arc-se-edit-row .arc-se-remove{grid-column:4;grid-row:2}
 .arc-se-edit-row .arc-se-detail-box{grid-column:2 / 4;grid-row:3}
 .arc-se-edit-row .arc-se-complete{grid-column:4;grid-row:3}
 .arc-se-edit-row .arc-se-extended{grid-column:1;grid-row:3}
}
@media(max-width:580px){
 .arc-se-edit-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .arc-se-subject{grid-column:1;grid-row:2}
 .arc-se-course{grid-column:2;grid-row:2}
 .arc-se-genre{grid-column:1;grid-row:3}
 .arc-se-edit-row .arc-se-remove{grid-column:2;grid-row:3}
 .arc-se-edit-row .arc-se-detail-box{grid-column:1 / -1;grid-row:4}
 .arc-se-edit-row .arc-se-complete{grid-column:1 / -1;grid-row:5;width:100%}
 .arc-se-edit-row .arc-se-extended{grid-column:1 / -1;grid-row:6}
 .arc-se-time-pop{width:min(285px,calc(100vw - 44px))}
}
