/* Practical-note composer: touch controls wrap within narrow screens. */
.notes-phrases{display:flex;flex-wrap:wrap;gap:.5rem}.notes-phrase{display:flex;max-width:100%;align-items:stretch;gap:.2rem}.notes-phrase button{min-width:44px;min-height:44px}.notes-badge{border-radius:1.5rem;white-space:normal;text-align:left;overflow-wrap:anywhere}.notes-badge[aria-pressed="true"]{background:var(--navy,#082f49);color:#fff}.notes-badge[aria-pressed="false"]{background:#fff;color:var(--navy,#082f49)}.notes-phrase .notes-badge{flex:1;min-width:0}
.notes-phrases{display:grid;grid-template-columns:minmax(0,1fr)}.notes-phrase{display:flex;width:100%;gap:.35rem}.notes-phrase .notes-switch{font-size:1.7rem;font-weight:700;display:flex;align-items:center;justify-content:center;flex:0 0 44px;padding:0}.notes-actions{position:relative;flex:0 0 44px}.notes-actions summary{display:flex;justify-content:center;align-items:center;min-height:44px;cursor:pointer;font-size:1.5rem;list-style:none}.notes-actions[open]{z-index:2}.notes-actions[open] button{display:block;position:relative;background:#fff;color:var(--navy,#082f49);min-width:120px;margin-left:-76px}.notes-phrase .notes-badge{border-radius:1.5rem}.notes-phrase>button:not(.notes-badge){padding:.25rem}

.notes-phrase .notes-badge{line-height:1.45;text-align:left;white-space:normal;overflow-wrap:anywhere}.notes-phrase{align-items:flex-start}.notes-phrase .notes-badge{min-height:44px}

[data-meal-notes-helper] .button:disabled{cursor:not-allowed}[data-meal-notes-helper] .button--ghost:hover:not(:disabled){background:var(--sky,#e0f2fe);color:var(--navy,#082f49)}.notes-actions summary{border:1px solid var(--line,#d9e2e8);border-radius:12px;color:var(--navy,#082f49);background:transparent}.notes-actions summary:hover{background:var(--sky,#e0f2fe)}.notes-actions summary:focus-visible{outline:2px solid var(--blue,#0284c7);outline-offset:2px}.notes-badge[aria-pressed="true"]:hover{background:var(--navy-2,#0c4a6e)}[data-meal-notes-helper]>.button{margin-bottom:.75rem}

[data-notes-replace][hidden]{display:none}

/* Show the prepared base and optional additions as two readable groups. */
.notes-phrases>section{display:grid;gap:.5rem;min-width:0;margin-bottom:1rem}.notes-phrases>section>h4{margin:.4rem 0 0;font-size:1.05rem}.notes-phrases>section>p{margin:0 0 .4rem;font-size:.95rem}.notes-phrase .notes-badge{font-weight:400;border-radius:.65rem;padding:.65rem .8rem}.notes-badge[aria-pressed="true"]{background:var(--sky,#e0f2fe);color:var(--navy,#082f49)}.notes-badge[aria-pressed="true"]:hover{background:#cce5f3;color:var(--navy,#082f49)}

@media(max-width:600px){.notes-phrase{flex-wrap:wrap;padding-bottom:.6rem;border-bottom:1px solid var(--line,#d9e2e8)}.notes-phrase .notes-badge{flex:1 1 100%}}
