/* Routine editing and missed-dose presentation. No scheduling or dose rules. */
.routine-missed{border-left-color:var(--amber);padding:20px!important;min-width:0}
.routine-missed-head,.routine-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.routine-missed-head h2{margin:0;font-size:var(--type-20);line-height:1.25}
.routine-missed-head .eyebrow{margin:0 0 5px}
.routine-missed-count{flex-shrink:0;font-size:var(--type-14);color:var(--ink-soft);border:1px solid var(--rule);border-radius:999px;padding:5px 9px}
.routine-missed>.sub{margin:12px 0 15px!important;line-height:1.6}
.routine-missed-list{display:grid;gap:0}
.routine-missed-row{display:grid;grid-template-columns:minmax(145px,1fr) auto;align-items:center;gap:14px;padding:14px 0;border-top:1px solid var(--rule)}
.routine-missed-label{min-width:0;display:grid;gap:4px;overflow-wrap:anywhere}
.routine-missed-label>b{font-size:var(--type-16);line-height:1.4}
.routine-missed-label>span{font-size:var(--type-14);line-height:1.5;color:var(--ink-soft)}
.routine-missed-actions{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap;min-width:0}
.routine-missed-actions .btn{min-height:40px;white-space:normal;line-height:1.35;max-width:100%}
.routine-missed-more{margin:8px 0 0!important;font-size:var(--type-14)}
.routine-missed-bulk{border-top:1px solid var(--rule);padding-top:13px;margin-top:4px}
.routine-missed-bulk summary,.home-routine-links>summary{cursor:pointer;font-size:var(--type-14);font-weight:600;line-height:1.5;padding:7px 0;color:var(--ink-soft)}
.routine-missed-bulk .routine-missed-actions{justify-content:flex-start;margin-top:10px}
.home-routine-modal .routine-editor{max-width:720px;max-height:92dvh;overflow:auto}
.routine-editor-section{margin-top:22px}
.routine-editor-heading{margin-bottom:9px;align-items:flex-start}
.routine-editor-heading h3{font-size:var(--type-16);line-height:1.5;margin:7px 0 0}
.routine-editor-heading>.btn{flex-shrink:0;min-height:40px}
.routine-editor .home-routine-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 0;border-top:1px solid var(--rule)}
.routine-editor .home-routine-row>div:first-child{min-width:0;overflow-wrap:anywhere}
.routine-editor .home-routine-row b{display:block;font-size:var(--type-14);line-height:1.5}
.routine-editor .home-routine-row small{display:block;margin-top:4px;font-size:var(--type-14);line-height:1.55;color:var(--ink-soft)}
.routine-editor .home-routine-row>div:last-child{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.routine-editor .home-routine-row .btn{min-height:40px}
.routine-editor .home-routine-links{margin-top:20px;border-top:1px solid var(--rule);padding-top:8px}
.routine-compounds-modal .bmrow{align-items:flex-start;gap:12px}
.routine-compounds-modal .bn{min-width:0;overflow-wrap:anywhere}
.routine-compounds-modal .chips{display:flex;flex-wrap:wrap;gap:6px}
@media(max-width:700px){
 .routine-missed-row{grid-template-columns:minmax(0,1fr);gap:10px}
 .routine-missed-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);justify-content:stretch}
 .routine-missed-actions .btn{width:100%;min-height:44px}
 .routine-missed-actions [data-shift],.routine-missed-bulk .routine-missed-actions .btn{grid-column:1/-1}
}
@media(max-width:420px){
 .routine-missed{padding:16px!important}
 .routine-missed-head{align-items:flex-start;flex-direction:column;gap:9px}
 .routine-missed-head h2{font-size:var(--type-20)}
 .routine-editor-heading{flex-wrap:wrap;gap:7px}
 .routine-editor .home-routine-row{grid-template-columns:minmax(0,1fr);gap:9px}
 .routine-editor .home-routine-row>div:last-child{justify-content:flex-start}
 .routine-editor .home-routine-row .btn{min-height:44px}
}
