/* Copyright 2026 Michael Shaun French, United Kingdom. All rights reserved.
   Full-screen speech uses the board's four primary actions, with a separate
   second row for Exit, Flip and Share. Shared action tokens keep both in step. */
body.reference-composer{--speech-action-height:56px;--speech-action-font:calc(16px * var(--ui-reading-scale,1));--speech-action-direction:row;--speech-action-gap:8px;--speech-action-icon:28px}
body.reference-composer #composer #composerActions>button{height:var(--speech-action-height)!important;min-height:var(--speech-action-height)!important;font-size:var(--speech-action-font)!important;font-weight:650!important;flex-direction:var(--speech-action-direction)!important;gap:var(--speech-action-gap)!important}
body.reference-composer #composer #composerActions>button .card-control-picture{width:var(--speech-action-icon)!important;height:var(--speech-action-icon)!important;font-size:var(--speech-action-icon)!important}
body.reference-composer #messageDialog #fullMessageActions{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px;flex:none;padding:0;border:0;border-radius:0;background:transparent}
body.reference-composer #messageDialog #fullMessageActions>button{grid-column:span 3;width:100%;max-width:none;height:var(--speech-action-height)!important;min-height:var(--speech-action-height)!important;border:1px solid var(--border)!important;border-radius:12px!important;box-shadow:none!important;display:flex!important;flex-direction:var(--speech-action-direction)!important;align-items:center;justify-content:center;gap:var(--speech-action-gap)!important;padding:6px!important;font-size:var(--speech-action-font)!important;font-weight:650!important;line-height:1.2!important;box-sizing:border-box;background:var(--surface);color:var(--text)}
body.reference-composer #messageDialog #fullMessageActions>button:nth-child(n+5){grid-column:span 4}
body.reference-composer #messageDialog #fullMessageActions>button .card-control-picture{width:var(--speech-action-icon)!important;height:var(--speech-action-icon)!important;font-size:var(--speech-action-icon)!important}
body.reference-composer #messageDialog #fullMessageActions>button .composer-button-label{font-size:inherit!important;line-height:1.2!important}
body.reference-composer #messageDialog #fullMessageSpeak{border-color:var(--accent)!important;background:var(--accent)!important;color:var(--accent-ink)!important}
body.reference-composer #messageDialog #fullMessage{font-weight:600;line-height:1.35;border:2px solid var(--accent);border-radius:12px;background:var(--surface);color:var(--text)}
@media(max-width:480px){body.reference-composer{--speech-action-height:72px;--speech-action-font:calc(12px * var(--ui-reading-scale,1));--speech-action-direction:column;--speech-action-gap:4px;--speech-action-icon:24px}}
body.phone-device.reference-composer[data-composer-button-style=icons],body.compact-reference-composer{--speech-action-height:48px}
body.phone-device.reference-composer[data-composer-button-style=icons]{--speech-action-icon:28px}
body.phone-device.reference-composer[data-composer-button-style=icons] #fullMessageActions>button:nth-child(-n+4) .composer-button-label{display:none!important}
body.phone-device.reference-composer #messageDialog #fullMessageActions>button:nth-child(n+5){font-size:12px!important}
@media(max-width:480px){body.phone-device.reference-composer #messageDialog #fullMessageActions>button:nth-child(n+5){height:72px!important;min-height:72px!important}}
body.reference-composer #messageDialog #fullMessageActions>button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
