.note-dictation { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 12px; }
.note-dictation__button { box-sizing: border-box; height: 36px; min-height: 36px; line-height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; border: 1px solid #087f99; border-radius: 5px; background: #fff; color: #086c82; cursor: pointer; font: inherit; font-size: 13px; }
.note-dictation__button:focus-visible { outline: 2px solid #008cad; outline-offset: 3px; }
.note-dictation__button:disabled { opacity: .5; cursor: not-allowed; }
.note-dictation.is-listening .note-dictation__button { background: #087f99; color: #fff; }
.note-dictation [role="status"] { font-size: 12px; color: #40515b; overflow-wrap: anywhere; }
@media print { .note-dictation { display: none; } }
.conversation-notes { box-sizing: border-box; width: min(880px, calc(100vw - 24px)); height: min(680px, calc(100dvh - 24px)); max-width: none; max-height: none; overflow: hidden; border: 1px solid #b9cdd5; border-radius: 12px; padding: 0; color: #1a2226; background: #fff; box-shadow: 0 16px 60px #0004; }
.conversation-notes[open] { display: flex; flex-direction: column; }
.conversation-notes::backdrop { background: #15242c88; }
.conversation-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #1b252a; color: white; flex-shrink: 0; }
.conversation-header h2 { margin: 2px 0 0; font-size: 20px; line-height: 1.2; color: inherit; }
.conversation-eyebrow { color: #75d7e9; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.conversation-notes button { padding: 9px 12px; border: 0; border-radius: 5px; background: #087f99; color: #fff; cursor: pointer; font: inherit; font-size: 13px; }
.conversation-notes button:disabled { opacity: .5; cursor: not-allowed; }
.conversation-notes button:focus-visible { outline: 2px solid #00abd1; outline-offset: 2px; }
.conversation-header [data-close] { background: transparent; color: white; font-size: 26px; padding: 0 8px; }
.conversation-tabs { display: flex; gap: 6px; padding: 12px 20px 0; flex-shrink: 0; }
.conversation-tabs button { background: #edf3f6; color: #40515b; }
.conversation-tabs button[aria-pressed="true"] { background: #087f99; color: white; }
.conversation-notes [role="status"] { margin: 10px 20px; font-size: 12px; line-height: 1.4; color: #40515b; flex-shrink: 0; }
.conversation-body { flex: 1; min-height: 0; overflow: hidden; padding: 0 20px 16px; }
.conversation-pane { display: flex; flex-direction: column; height: 100%; min-height: 0; gap: 10px; }
.conversation-notes [hidden] { display: none !important; }
.conversation-hint { margin: 0; font-size: 12px; line-height: 1.4; color: #62737c; }
.conversation-notes label { display: flex; flex-direction: column; gap: 8px; margin: 0; font-weight: 600; font-size: 13px; flex: 1; min-height: 0; }
.conversation-notes textarea { box-sizing: border-box; width: 100%; flex: 1; height: 0; min-height: 0; padding: 12px; border: 1px solid #b9cdd5; border-radius: 7px; font: inherit; font-weight: normal; resize: none; overflow: auto; }
.conversation-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.conversation-notes audio { width: 100%; height: 34px; flex-shrink: 0; }
.conversation-footer { display: flex; justify-content: space-between; gap: 8px; padding: 12px 20px; border-top: 1px solid #dbe6eb; background: #f6f9fb; flex-shrink: 0; }
.conversation-footer [data-discard] { background: transparent; color: #62737c; }
@media (max-width: 520px), (max-height: 500px) {
  .conversation-notes { width: calc(100vw - 12px); height: calc(100dvh - 12px); }
  .conversation-header { padding: 8px 12px; }
  .conversation-header h2 { font-size: 17px; }
  .conversation-eyebrow { display: none; }
  .conversation-tabs { padding: 6px 12px 0; }
  .conversation-notes [role="status"] { margin: 6px 12px; font-size: 11px; }
  .conversation-body { padding: 0 12px 8px; }
  .conversation-pane { gap: 6px; }
  .conversation-footer { padding: 8px 12px; }
  .conversation-notes button { padding: 7px 8px; font-size: 12px; }
}
@media print { .conversation-notes { display: none !important; } }
.ai-order-item { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; padding: 16px; margin: 12px 0; background: #f1f7f9; border: 1px solid #b9cdd5; border-radius: 8px; }
.ai-order-item label { display: grid; gap: 8px; }
.conversation-order-preview { flex: 1; min-height: 0; overflow: auto; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; background: #f1f7f9; padding: 12px; font: inherit; }
