.dose-actions{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}.dose-actions button{min-height:56px!important;border-radius:14px;font-size:14px!important;padding:10px 14px!important;white-space:nowrap}.dose-actions .dose-tick{background:#285c45!important;border-color:#285c45!important;color:white!important;min-width:106px;font-weight:700}.dose-actions .dose-options{border-color:#b8a5c3;background:#fffafd;color:#44354f;font-weight:500;min-width:76px}.dose-actions .dose-undo{min-height:48px!important;min-width:60px;background:#fff9;color:#245945;border-color:#92ae9a}.dose-recorded-text{color:#245945;font-size:12px;line-height:1.5;flex:1;min-width:125px;font-weight:600;max-width:260px;overflow-wrap:anywhere}.dose-unavailable{font-size:11px;color:#75647c;max-width:160px;line-height:1.5}.dose-pending-label{font-size:12px;line-height:1.5;color:#835b2e;flex:1;min-width:95px;max-width:190px}.dose-actions .dose-retry{border-color:#ae7d45;color:#754515;background:#fff4e5;min-width:85px}.dose-actions button:disabled{cursor:wait;opacity:.7}.dose-feedback{position:sticky;top:8px;z-index:4;margin:0 0 15px!important;background:#ecf2e6;color:#294a31;border:1px solid #a2b597;border-radius:14px;padding:12px 16px;line-height:1.5;font-size:14px;box-shadow:0 4px 15px #24402c0c}#main:not(.today-view):not(.cabinet-view)>.dose-feedback{display:none}
.fc-dose-recorded{background:#edf4ed!important;border-color:#98b09d!important}.fc-event-slot>.dose-actions{margin-top:12px}.fc-event-slot{cursor:default}.fc-event-slot .dose-actions{flex-direction:column;align-items:stretch}.fc-event-slot .dose-recorded-text{min-width:0;max-width:none}.fc-next-preview .dose-actions{max-width:340px}.fc-next-preview .dose-recorded-text{max-width:260px}
#today-dashboard .td-dose-slot{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:13px 14px}#today-dashboard .td-dose-info{display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:0;text-align:left;color:#49405f;min-height:44px;width:100%;font-weight:600}#today-dashboard .td-dose-info>span:has(strong){flex:1;min-width:0}#today-dashboard .td-dose-info time{width:48px}#today-dashboard .td-dose-info small{font-size:12px}#today-dashboard .td-dose-slot>.dose-actions{margin-top:9px;display:flex}#today-dashboard .dose-actions .dose-tick{flex:1;min-height:52px!important}#today-dashboard .dose-actions .dose-options{min-height:52px!important}#today-dashboard .td-dose-recorded{background:#edf4ed;border-color:#91ab96}.dose-diary-entry{border-left:3px solid #7d9d84;padding-left:15px!important}.dose-diary-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}.dose-diary-heading small{font-size:11px;color:#68715e}.dose-diary-entry>strong{display:block;font-size:17px}.dose-diary-entry>p{font-size:14px;line-height:1.6}.dose-diary-entry .tag{background:#e5eee2!important;color:#285c45}
#dose-options{width:min(700px,95vw);max-width:95vw;background:#fffafd;border-color:#d4c9db;border-radius:26px;color:#44354f}#dose-options h2{font:400 27px/1.25 Georgia,serif;overflow-wrap:anywhere}#dose-options .dialog-header{align-items:flex-start}#dose-options .dialog-header button{min-height:48px;flex:none}#dose-options fieldset{border:0;padding:0;margin:22px 0}#dose-options legend{font-weight:650;font-size:16px;margin-bottom:11px}#dose-options label{font-size:14px}#dose-options .dose-option-context{padding:16px;background:#eee7f1;border-radius:16px;font-size:14px;line-height:1.55}#dose-options .dose-choices{display:flex;flex-wrap:wrap;gap:8px}#dose-options .dose-choices button{min-height:56px;flex:1;padding:10px 12px;font-size:14px;background:white;border:1px solid #a793b3;color:#44354f;min-width:110px}#dose-options .dose-choices button[aria-pressed=true]{background:#44354f;color:white;border-color:#44354f}#dose-options .dose-amount-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}#dose-options .dose-amount-pair label{margin-top:12px}#dose-options textarea{min-height:80px}#dose-option-save{min-height:56px;width:100%;margin-top:18px;background:#44354f;border-color:#44354f}#dose-entry-history p{font-size:14px;line-height:1.6;margin:12px 0;overflow-wrap:anywhere}
@media(max-width:600px){.fc-dose>.dose-actions{grid-column:1/-1;width:100%;display:flex;margin-top:5px}.fc-dose .dose-tick{flex:1}.fc-next-preview>.dose-actions{width:100%;max-width:none;display:flex}.fc-next-preview .dose-tick{flex:1}.fc-next-preview .dose-recorded-text{max-width:none}.dose-actions button{min-height:52px!important;padding:10px 12px!important}.dose-feedback{font-size:12px;top:5px;padding:11px 13px}.dose-recorded-text{font-size:12px;max-width:none}.fc-event-slot{min-width:100%}#dose-options{padding:22px 18px;border-radius:24px;width:calc(100vw - 24px);max-width:calc(100vw - 24px)}#dose-options .dose-choices button{min-width:85px;font-size:13px;padding:10px}#dose-option-save{position:sticky;bottom:-22px}#dose-options input,#dose-options select,#dose-options textarea{font-size:16px}.dose-diary-heading{flex-wrap:wrap}}

.dose-recent-entry{font-size:13px;line-height:1.6;margin:12px 0 20px;color:#52635a;background:#edf2e7;border-radius:12px;padding:12px 14px}.fc-plan-row .fc-overview-head{flex-wrap:wrap}.fc-card>.dose-actions{margin-top:10px}.fc-card>.dose-actions button{width:100%}
/* Compact controls retain 44px targets and the complete accessible dose label. */
.dose-actions.dose-actions-compact{display:flex;flex:0 1 auto;flex-wrap:wrap;gap:5px;align-items:center;min-width:0;max-width:100%}
.dose-actions.dose-actions-compact button{min-height:44px!important;height:auto;min-width:44px!important;padding:7px 10px!important;border-radius:13px;font-size:13px!important;line-height:1.35;margin:0}
.dose-actions.dose-actions-compact .dose-tick{width:44px!important;flex:none!important;font-size:23px!important;background:#44354f!important;border-color:#44354f!important;box-shadow:0 2px 0 #2d2037}
.dose-actions.dose-actions-compact .dose-options{width:44px!important;flex:none;background:#fff9;border-color:#d1c5d7;letter-spacing:1px}
.dose-actions.dose-actions-compact .dose-recorded-summary{color:#2b5b41;border-color:#a4bea9;background:#e7f2e8;font-weight:650;max-width:100%}
.dose-actions.dose-actions-compact .dose-undo{background:transparent;border-color:transparent;text-decoration:underline;text-underline-offset:3px}
.dose-actions-compact .dose-pending-label{font-size:11px;min-width:70px;flex:1 1 90px;overflow-wrap:anywhere}
.dose-actions.dose-actions-compact .dose-recorded-summary{white-space:pre-line;text-align:left;line-height:1.4;font-size:12px!important;max-width:150px;overflow-wrap:anywhere}
.dose-actions[data-outcome=unknown] .dose-recorded-summary{background:#f0ebf4;border-color:#c8b9d2;color:#665470}.dose-actions[data-outcome=reported_not_given] .dose-recorded-summary{background:#f7eddf;border-color:#d6bd9c;color:#825c37}
.fc-dose-recorded:has([data-outcome=unknown]),#today-dashboard .td-dose-recorded:has([data-outcome=unknown]){background:#f0ebf4!important;border-color:#c8b9d2!important}.fc-dose-recorded:has([data-outcome=reported_not_given]),#today-dashboard .td-dose-recorded:has([data-outcome=reported_not_given]){background:#f7eddf!important;border-color:#d6bd9c!important}
