/* CP291: approved navy/gold identity, accessible daily work layout; no mock counters. */
.routine-hero{background:linear-gradient(120deg,#0a1f39,#102e50);color:#fff;padding:26px;border-radius:18px;margin-bottom:22px;display:flex;gap:20px;justify-content:space-between;align-items:center;flex-wrap:wrap}.routine-hero h2{font-size:29px;letter-spacing:-.5px;margin:4px 0 12px}.routine-hero .tag{color:#edca77}.routine-hero p{max-width:680px;line-height:1.6}.routine-hero .outline{color:#fff;border-color:#b69a5e}.routine-chips{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.routine-chips>span{border:1px solid #c8d3df;border-radius:12px;padding:10px 14px}.routine-dialog{width:min(860px,94vw);max-height:88dvh;overflow:auto;border:1px solid #c2cddd;border-radius:20px;padding:24px;color:#15263c}.routine-dialog::backdrop{background:#06111fc9}.routine-close{float:right;margin:0 0 15px 15px}.routine-dialog .form-grid{clear:both}.routine-dialog details{padding:12px;border-bottom:1px solid #d3dce7}.routine-dialog summary{cursor:pointer;font-weight:650}.routine-task[hidden]{display:none!important}.routine-task p{overflow-wrap:anywhere}.routine-dialog textarea{min-height:110px;width:100%;resize:vertical}.routine-company{max-width:210px;font-size:13px}.sidebar{height:100dvh;overflow-y:auto;overscroll-behavior:contain}.sidebar nav{flex-shrink:0}.side-footer{flex-shrink:0}.routine-dialog h3{margin-top:24px}#workspace>h1{margin-top:6px}#workspace>.muted{margin-bottom:24px}@media(max-width:700px){.routine-hero{padding:20px}.routine-hero h2{font-size:24px}.routine-dialog{padding:18px}.routine-company{max-width:180px}.routine-dialog .form-grid{grid-template-columns:1fr}}@media print{.routine-dialog{position:static;max-height:none;width:100%;border:0}.routine-dialog button{display:none}}
/* CP291 recovery: filters remain readable and operable on a narrow phone. */
.routine-filters{display:grid;grid-template-columns:minmax(190px,1fr) minmax(200px,1fr);gap:16px;align-items:end;margin:16px 0 8px}
.routine-check{display:flex;gap:9px;align-items:center;font-size:13px;min-height:44px;line-height:1.5}
.routine-check input{width:17px;height:17px;flex:0 0 auto}
.routine-list .record{border-left:3px solid #e3e9f2;padding-left:15px;margin-bottom:8px}
.routine-list .record:has(.pill.pending){border-left-color:#d4af37}
.routine-list .action-row{flex-wrap:wrap}
.routine-task p,.routine-dialog .record p{white-space:pre-wrap;overflow-wrap:anywhere}
.routine-dialog h2{line-height:1.35}
#routine-filter-count{min-height:18px}
.routine-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.routine-metrics>div{padding:12px;border:1px solid #d3dce7;border-radius:10px;background:#f7f9fc;min-width:0}
.routine-metrics dt{font-size:12px;line-height:1.5;color:#46566b}
.routine-metrics dd{margin:5px 0 0;font-weight:650;overflow-wrap:anywhere;color:#102e50}
[data-scheduler-state] p{margin:8px 0 0;line-height:1.6}
.routine-dialog>section{margin-bottom:22px}
@media(max-width:600px){.routine-filters{grid-template-columns:1fr;gap:8px}.routine-chips{width:100%}.routine-hero .routine-chips .btn{flex:1 1 180px}.routine-dialog{max-height:92dvh}.routine-dialog .action-row .btn{width:100%}}
@media(max-width:600px){.routine-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}
