#schedule-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
#supp-form [hidden] { display: none !important; }
#supp-form .compound-form-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.compound-section { margin: 0 0 12px; }
.compound-section > summary { min-height: 48px; }
.compound-section > summary b { font-weight: inherit; }
.compound-section > summary > span:first-child { font-weight: 600; }
.compound-section > summary > span:last-child { min-width: 0; text-align: end; }
.compound-section > summary svg { flex: none; }
.compound-section > summary [data-section-value] { overflow-wrap: anywhere; }
.compound-section[open] > summary > span:last-child svg { transform: rotate(180deg); }
.compound-section > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.compound-section .dose-details-body > :last-child { margin-bottom: 0; }

#compound-entry-form .entry-fields { margin: 0; padding: 0; border: 0; min-width: 0; }
#compound-entry-form [hidden] { display: none !important; }
#compound-entry-form .quick-product { margin-bottom: 16px; }
#compound-entry-form [name="notes"] { margin-top: 2px; }
.compound-catalog { margin: 0 0 16px; }
.compound-catalog summary { color: var(--accent); min-height: 44px; padding-block: 10px; cursor: pointer; }
.compound-catalog .catalog-content { padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel2); }
.compound-catalog .field { margin: 0 0 10px; }
.compound-catalog select { max-width: 100%; width: 100%; }
.catalog-evidence { margin-block: 8px; overflow-wrap: anywhere; }
.catalog-evidence p { margin: 4px 0; }
.catalog-evidence a { color: var(--accent); }
.catalog-name-only:has(select option[value=""]:checked) :is([data-standard-dose],[data-injection-dose],[data-strength]) { display:none; }

.standard-fields, .injection-fields, .vial-fields {
  min-inline-size: 0;
  margin-inline: 0;
  padding: 0;
  border: 0;
}
.vial-fields {
  margin-block: 14px 20px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.vial-fields legend { padding-inline: 5px; font-weight: 600; }
.vial-fields .field:last-of-type { margin-bottom: 8px; }
.injection-fields .syringe-volume { margin: -4px 0 16px; }
.injection-fields .dose-slider-row output { flex-shrink: 0; }
#sheet .dose-editor, #sheet .dose-editor > fieldset {min-inline-size:0;padding:0;margin:0;border:0}
#sheet .dose-editor :is(input[type=number],select) {box-sizing:border-box;height:44px;min-width:0;width:100%;color:var(--text);background-color:var(--bg);border:1px solid var(--border-strong);border-radius:9px;font-size:16px}
#sheet .dose-editor select {appearance:none;padding-inline:10px 27px;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-size:5px 5px;background-repeat:no-repeat;background-position:calc(100% - 15px) center,calc(100% - 10px) center}
#sheet .dose-editor [data-unit-notice]:empty, #sheet [data-plan-impact]:empty {display:none}
#sheet .dose-controls:has(input[type=range]:disabled) .adjustable-slider:not(:has(.slider-settings[open])) {display:none}
#sheet .sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#sheet .days-picker label span {min-height:44px;display:grid;place-items:center}
#sheet .days-picker input:focus-visible + span {outline:2px solid var(--accent);outline-offset:2px}
#sheet .slot-override {margin-top:10px}
#sheet .slot-override > summary {cursor:pointer;color:var(--muted);padding:8px 0}
#sheet .slot-override label {margin-top:8px}
#sheet .schedule-delivery-note[hidden] {display:none}
#sheet .schedule-delivery-note a,#sheet .draft-review button {color:var(--text);text-decoration:underline}
#sheet .schedule-delivery-note {flex-wrap:wrap}
#sheet [data-match]:not([hidden]) {display:grid;gap:10px;padding:14px;border:1px solid var(--accent-border);border-radius:12px;margin-bottom:14px}
#sheet [data-match] label {display:flex;align-items:center;gap:8px;min-height:44px}
#sheet [data-match] input {width:18px;height:18px}
#sheet :is(#supp-form,#compound-entry-form) > .sheet-actions {position:sticky;bottom:0;z-index:2;padding:8px 0 max(8px,env(safe-area-inset-bottom));background:var(--panel);border-top:1px solid var(--border)}
#sheet .draft-review p {margin:8px 0;overflow-wrap:anywhere}
#sheet:has(.compound-fields) {overflow:hidden;}
#sheet:has(.compound-fields) .sheet-inner {display:flex;flex-direction:column;max-height:inherit;box-sizing:border-box;}
#sheet :is(#supp-form,#compound-entry-form) {display:flex;flex-direction:column;min-height:0;}
#sheet .compound-fields {min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px;margin:-4px;}
#sheet :is(#supp-form,#compound-entry-form) > .sheet-actions {position:static;flex:none;margin-top:8px;}
#sheet .dose-form-units {display:grid;gap:0;grid-template-columns:minmax(0,1fr);}
#sheet .dose-form-units [name=unit] {width:min(100%,10rem);}
#sheet [data-match] select {max-width:100%;}
.filter-chips .chip,.supp-card-bottom button {min-height:44px;}
.group-tabs [role=tab] small {display:block;font-size:.73rem;color:var(--muted);}
#sheet [data-review-context] {padding:12px;border:1px solid var(--border);border-radius:10px;margin-block:8px;}
#sheet .compound-fields > .form-error:empty {display:none;}
#sheet .form-choice-display {position:relative;display:flex;align-items:center;min-height:44px;padding:8px 30px 8px 10px;box-sizing:border-box;border:1px solid var(--border-strong);background:var(--bg);border-radius:9px;font-size:16px;color:var(--text);line-height:1.3;}
#sheet .form-choice-display::after {content:'⌄';position:absolute;right:10px;pointer-events:none;}
#sheet .form-choice-display select {position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;}
#sheet .form-choice-display:focus-within {outline:2px solid var(--accent);outline-offset:2px;}
