/* Dictation button and panel; colours from the site theme tokens. */
.msd-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line, #e3ded5); background: var(--surface, #fff); color: var(--ink, #23201c); box-shadow: var(--shadow-lg, 0 6px 20px rgb(0 0 0 / .15)); display: grid; place-items: center; cursor: pointer; }
.msd-fab:hover { border-color: var(--accent, #274180); }
.msd-fab:focus-visible { outline: 2px solid var(--accent, #274180); outline-offset: 3px; }
.msd-fab.on { background: var(--danger-fill, #b0403c); border-color: var(--danger-fill, #b0403c); color: var(--on-danger, #fff); }
.msd-panel { position: fixed; right: 18px; bottom: 84px; z-index: 60; width: min(360px, calc(100vw - 36px)); background: var(--surface, #fff); color: var(--ink, #23201c); border: 1px solid var(--line, #e3ded5); border-radius: var(--radius, 14px); box-shadow: var(--shadow-lg, 0 8px 28px rgb(0 0 0 / .16)); padding: 12px 14px; font-size: .9rem; line-height: 1.4; }
.msd-panel[hidden], .msd-panel [hidden] { display: none !important; }
.msd-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msd-sub { color: var(--ink-2, #5c564d); font-size: .8rem; flex-basis: 100%; }
.msd-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3, #8a8479); }
.msd-panel[data-state="listening"] .msd-dot { background: var(--green-fill, #3f9469); }
.msd-panel[data-state="hearing"] .msd-dot { background: var(--danger-fill, #b0403c); }
.msd-panel[data-state="working"] .msd-dot, .msd-panel[data-state="loading"] .msd-dot { background: var(--gold-fill, #eaa21a); }
.msd-meter { height: 4px; border-radius: 2px; background: var(--surface-2, #f0ece5); margin: 8px 0; overflow: hidden; }
.msd-meter div { height: 100%; width: 0; background: var(--green-fill, #3f9469); transition: width .06s; }
.msd-last { color: var(--ink-2, #5c564d); font-style: italic; min-height: 1.2em; margin-bottom: 8px; overflow-wrap: anywhere; }
.msd-held { background: var(--surface-2, #f0ece5); border-radius: var(--radius-sm, 9px); padding: 8px 10px; margin-bottom: 8px; }
.msd-held p { margin: 0 0 4px; font-size: .8rem; color: var(--ink-2, #5c564d); }
.msd-held-text { margin-bottom: 8px; white-space: pre-wrap; }
.msd-btn { font: inherit; font-size: .82rem; padding: 6px 10px; min-height: 34px; border-radius: var(--radius-sm, 9px); border: 1px solid var(--line, #e3ded5); background: var(--surface, #fff); color: var(--ink, #23201c); cursor: pointer; }
.msd-btn:hover { border-color: var(--ink-3, #8a8479); }
.msd-stop { margin-left: auto; border-color: var(--danger, #b0403c); color: var(--danger, #b0403c); }
.msd-help { margin-top: 8px; font-size: .82rem; color: var(--ink-2, #5c564d); }
@media (max-width: 640px) { .msd-fab { right: 14px; bottom: 14px; } .msd-panel { right: 14px; left: 14px; width: auto; bottom: 78px; } }
