/* Existing Clearspace/Afterhours tokens keep the due agenda legible on cover and inner screens. */
.checks-page{max-width:1200px;margin:0 auto;display:grid;gap:20px;min-width:0}
.checks-page h2{font-size:clamp(26px,4vw,36px)}
.checks-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.checks-tools,.checks-calendar-head,.checks-calendar-head>div{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.checks-calendar-head{justify-content:space-between}
.checks-page .panel{min-width:0}
.checks-agenda h4{margin:22px 0 10px;font-size:17px}
.checks-row{display:flex;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid var(--line);min-width:0}
.checks-row time{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:14px}
.checks-row-text{flex:1;min-width:0;overflow-wrap:anywhere}
.checks-row p{margin:5px 0}
.checks-row strong{font-size:16px}
.checks-overdue time{color:var(--danger,#b74343);font-weight:700}
.checks-assignee{font-size:12px;max-width:170px}
.checks-page input,.checks-page select,.checks-duty input{max-width:100%;min-width:0;box-sizing:border-box}
.checks-setup form{display:grid;gap:16px;max-width:760px}
.checks-setup label,.checks-assignee{display:grid;gap:7px}
.checks-tick{display:flex!important;align-items:center;gap:10px;margin:12px 0}
.checks-tick input{width:18px!important;min-width:18px;height:18px;flex:none}
.checks-duty{padding:16px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.checks-duty p{margin:7px 0;line-height:1.55}
#checks-feed-url{width:100%;font-size:14px}
@media(max-width:700px){.checks-page{gap:14px}.checks-stats{gap:8px}.checks-stats .metric{padding:12px 8px}.checks-stats .metric strong{font-size:26px}.checks-stats .metric small{font-size:12px}.checks-row{flex-wrap:wrap;gap:10px}.checks-row time{width:100%}.checks-row-text{flex-basis:100%}.checks-assignee{max-width:none;flex:1}.checks-tools .btn{flex:1 1 140px}.checks-calendar-head>div{width:100%;flex-wrap:nowrap}.checks-calendar-head input{flex:1;width:120px}.checks-page .page-intro{display:block}.checks-page .page-intro .btn{margin-top:12px}}
.checks-page{padding:24px;box-sizing:border-box}
.checks-page .page-intro{margin-bottom:0}
.checks-page>.btn{justify-self:start;flex:none}
.checks-controls{position:relative;min-width:0}
.checks-controls>summary{list-style:none;cursor:pointer}
.checks-controls[open]>.checks-tools{padding-top:10px}
.checks-page .checks-calendar-head>div{display:flex;flex-wrap:nowrap;max-width:360px}
.checks-calendar-head input{width:165px;flex:none}
.checks-calendar-head .btn{flex:none;padding:10px 14px}
.checks-page .checks-row .btn{flex:none}
@media(max-width:700px){
 .checks-page{padding:14px;gap:12px}.checks-page h2{font-size:27px}
 .checks-page>.btn{padding:6px 10px;font-size:12px}
 .checks-page .page-intro{display:flex;align-items:center;gap:8px}
 .checks-page .page-intro .eyebrow{display:none}
 .checks-page .page-intro p:not(.eyebrow){font-size:12px;line-height:1.4}
 .checks-page .page-intro .btn{margin:0;flex:none;max-width:110px;padding:10px;font-size:13px}
 .checks-stats .metric{padding:8px}.checks-stats .metric small{display:none}
 .checks-stats .metric strong{font-size:25px;margin:5px 0 0}.checks-stats .metric span{font-size:11px}
 .checks-tools>.btn,.checks-tools>.checks-controls{flex:1 1 120px;font-size:13px}
 .checks-tools .btn{font-size:13px;padding:10px}
 .checks-controls .checks-tools{display:grid}
 .checks-page .checks-calendar-head>div{width:auto;max-width:100%}
 .checks-calendar-head input{flex:1;width:165px}
 .checks-page .checks-calendar-head h3{margin:0}
 .checks-page .panel{padding:14px}
 .checks-row{padding:12px 0}.checks-row strong{font-size:16px}
}

/* CL-04: Checks and obligations — due information first on compact phones. */
@media(max-width:700px){
 .checks-page{grid-template-columns:minmax(0,1fr);padding:12px;gap:10px;font-size:14px;overflow-wrap:anywhere}
 .checks-page .page-intro{order:-3;flex-wrap:wrap}
 .checks-page .page-intro p:not(.eyebrow){font-size:14px;line-height:1.5}
 .checks-page .page-intro .btn{max-width:100%;font-size:14px}
 .checks-page .checks-stats{order:-2}
 .checks-page .checks-stats .metric span{font-size:14px}
 .checks-page>.panel:has(.checks-agenda){order:-1}
 #checks-work:not(:empty){order:-1}
 #checks-work:empty{display:none}
 #checks-back{order:2;font-size:14px}
 .checks-page :is(p,small,label,summary),.checks-page .checks-tools .btn{font-size:14px;line-height:1.5}
 .checks-page :is(button,summary,select),.checks-page input:not([type=checkbox]){min-height:44px;min-width:44px}
 .checks-page :is(button,summary){white-space:normal;max-width:100%}
 .checks-page :is(input,select){font-size:16px}
 .checks-page .checks-tick{min-height:44px}
 .checks-page a{display:inline-block;min-height:44px;align-content:center}
 .checks-page .checks-row>div{min-width:0;max-width:100%}
 .checks-page .checks-assignee{flex-basis:100%;max-width:100%}
 .checks-page .checks-calendar-head>div{width:100%;gap:6px}
 .checks-page .checks-calendar-head input{width:0;flex:1;min-width:0}
 .checks-page .checks-controls{min-width:0;max-width:100%}
 .dialog:is([aria-label="Add obligation"],[aria-label="Cancel obligation"],[aria-label="Confirm payment"],[aria-label="Business reminder settings"],[aria-label="Read-only calendar subscription"],[aria-label="Checks reminders"]){font-size:14px;overflow-wrap:anywhere}
 .dialog:is([aria-label="Add obligation"],[aria-label="Cancel obligation"],[aria-label="Confirm payment"],[aria-label="Business reminder settings"],[aria-label="Read-only calendar subscription"],[aria-label="Checks reminders"]) :is(p,small,label){font-size:14px;line-height:1.5}
 .dialog:is([aria-label="Add obligation"],[aria-label="Cancel obligation"],[aria-label="Confirm payment"],[aria-label="Business reminder settings"],[aria-label="Read-only calendar subscription"],[aria-label="Checks reminders"]) :is(button,label.check){min-height:44px;min-width:44px;font-size:14px;white-space:normal;max-width:100%}
 .dialog:is([aria-label="Add obligation"],[aria-label="Cancel obligation"],[aria-label="Confirm payment"],[aria-label="Business reminder settings"],[aria-label="Read-only calendar subscription"],[aria-label="Checks reminders"]) input:not([type=checkbox]),.dialog:is([aria-label="Add obligation"],[aria-label="Cancel obligation"],[aria-label="Confirm payment"],[aria-label="Business reminder settings"],[aria-label="Read-only calendar subscription"],[aria-label="Checks reminders"]) select{min-height:44px;font-size:16px;max-width:100%}
}
