#freePrescriptionDialog{width:min(1200px,calc(100vw - 32px));max-width:1200px;max-height:94dvh;padding:24px;overflow:auto}
.free-voice-repair{padding:10px 12px;background:#fff7e9;border:1px solid #e6d7b9;border-radius:6px;margin-top:10px}.free-voice-repair p{font-size:12px;line-height:1.6;color:#7d602f}.free-voice-repair .row-actions{margin:9px 0 0}.free-voice-repair[hidden],.free-voice-repair button[hidden]{display:none}.free-match-note{padding:10px 12px;border-left:3px solid #7c9a57;background:#f1f6e8;font-size:12px;line-height:1.7;color:#486136;margin:0 0 12px}
.free-entry-modes{display:flex;align-items:center;gap:8px;margin:0 0 9px}.free-entry-modes .button{min-height:40px;padding:9px 15px;font-size:12px}.free-entry-modes .button[aria-pressed="true"]{background:#edf4e2;border-color:#a3bd84;color:var(--forest)}.free-entry-modes .button.is-listening{background:#fff0e9;border-color:#c58970;color:#94462e}.free-entry-modes .button:disabled{opacity:.65;cursor:default}.free-voice-status{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 12px}.free-voice-status.is-listening{color:#94462e;font-weight:500}.free-voice-interim{font-size:12px;line-height:1.7;padding:10px 12px;border:1px dashed #c8d7b7;border-radius:6px;margin:0 0 12px;background:#f7faf1;white-space:pre-wrap;overflow-wrap:anywhere}.free-voice-interim[hidden]{display:none}.free-mic-dot{width:8px;height:8px;border-radius:50%;background:currentColor;display:inline-block}.free-voice-privacy{font-size:12px;line-height:1.7;color:var(--muted);margin-top:10px}.free-writing textarea[readonly]{background:#f5f8ef;border-color:#b4c89a;cursor:default}
.free-plan-balance{display:block!important;font-size:12px;color:#426b36;margin-top:3px;line-height:1.5}.free-plan-balance.is-exceeded{color:#975b1d}.free-plan-balance.is-no-target,.free-plan-balance.is-missing-data{color:#818b74}.free-calculation-totals .free-balance-note{margin-top:12px;font-size:12px}.free-calculation-totals .free-balance-note+p{margin-top:6px}
@media(min-width:801px){.free-writing{max-height:min(690px,calc(94dvh - 210px));overflow-y:auto;scrollbar-gutter:stable;padding-right:4px}}
#freePrescriptionDialog[open]{display:flex;flex-direction:column;height:min(900px,94dvh);overflow:hidden}
.free-dialog-head{gap:20px;margin-bottom:22px}.free-eyebrow{display:block;font-size:12px;text-transform:uppercase;letter-spacing:1.4px;color:var(--muted);margin-bottom:7px}.free-dialog-head p{font-size:12px;color:var(--muted);margin-top:8px}
.free-prescription-grid{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(0,1.35fr);gap:24px;align-items:start}.free-writing{position:sticky;top:0;min-width:0}.free-writing textarea{width:100%;min-height:245px;resize:vertical;line-height:1.8;font-size:14px;padding:13px}.free-writing .row-actions{margin:15px 0}.free-writing #freeBankStatus{margin:12px 0}.free-calculation-status{background:#f2f5eb;border-radius:7px;padding:10px;font-size:12px;line-height:1.6}
.free-prescription-grid{overflow:auto;min-height:0;padding-right:6px}.free-writing textarea{height:190px;min-height:150px;max-height:35dvh}.free-dialog-head,.free-dialog-footer{flex-shrink:0}.free-results-panel.is-stale{opacity:.65}
.free-calculation-totals{border:1px solid var(--line);border-radius:9px;padding:15px;margin-top:15px}.free-calculation-totals>strong{font-size:12px}.free-total-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.free-total-grid span{display:block;color:var(--muted);font-size:12px}.free-total-grid b{display:block;margin-top:5px;font-size:20px;font-weight:500}.free-total-grid b small{font-size:12px}.free-partial{font-size:12px;color:#8c6319}.free-calculation-totals p{font-size:12px;line-height:1.6;color:var(--muted);margin-top:15px}
.free-results-panel{min-width:0}.free-results-panel>h3{margin-bottom:12px}.free-empty{padding:35px 22px;background:#f8faf3;border:1px dashed #d6dfc8;border-radius:9px;text-align:center}.free-empty p{margin-top:12px;font-size:12px;line-height:1.8;color:var(--muted)}
.free-food-row{padding:16px;border:1px solid var(--line);border-radius:9px;margin-bottom:12px;background:white;min-width:0}.free-row-head{margin-bottom:12px}.free-row-head>strong{display:block;font-size:13px;overflow-wrap:anywhere}.free-row-state{display:block;margin-top:7px;color:#8c6319;font-size:12px;line-height:1.6}.free-row-state.ready{color:#396d43}.free-food-row select{max-width:100%;width:100%;text-overflow:ellipsis}.free-confirm{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.free-confirm>span{font-size:12px;color:var(--muted)}.free-source{font-size:12px;line-height:1.7;color:var(--muted);margin:9px 0;overflow-wrap:anywhere}.free-source a{white-space:nowrap}.free-search{margin:10px 0;font-size:12px}.free-search summary{cursor:pointer;color:var(--green)}.free-query{display:flex;gap:7px;margin-top:8px}.free-query input{width:100%;min-width:0;border:1px solid var(--line);padding:8px;border-radius:6px}.free-measure{font-size:12px;line-height:1.7;color:var(--muted);margin:10px 0}.free-portion-grid{display:grid;grid-template-columns:minmax(0,1fr) 85px;gap:10px}.free-density{grid-column:1/-1}.free-row-macros{background:#f1f5e9;font-size:12px;line-height:1.7;border-radius:6px;padding:9px;margin-top:12px}.free-ignore{font-size:12px;margin-top:12px}.free-food-row.is-ignored{background:#f7f8f4}.free-dialog-footer{border-top:1px solid var(--line);margin-top:20px;padding-top:18px;display:flex;align-items:center;justify-content:space-between;gap:20px}.free-dialog-footer>p{font-size:12px;line-height:1.7;color:var(--muted);max-width:620px}.free-dialog-footer .row-actions{flex-shrink:0}
@media(max-width:800px){#freePrescriptionDialog{width:calc(100vw - 16px);padding:17px;max-height:96dvh}.free-prescription-grid{grid-template-columns:1fr}.free-writing{position:static}.free-writing textarea{min-height:180px}.free-total-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.free-total-grid b{font-size:18px}.free-dialog-footer{display:block}.free-dialog-footer .row-actions{margin-top:13px}}
@media(max-width:420px){.free-total-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.free-query{flex-wrap:wrap}}

.dha-entry-modes{margin-top:18px}.dha-input textarea[readonly]{background:#f5f8ef;border-color:#b4c89a;cursor:default}.dha-voice-help{margin-bottom:14px}.dha-actions{flex-wrap:wrap}
