.shakes-voice-bar{padding:.5rem 0;max-width:70rem;margin:auto}.shakes-voice-bar button{font:inherit;font-size:1rem;min-height:44px;padding:.45rem .85rem;border:2px solid currentColor;border-radius:2rem;background:var(--surface,var(--panel,#fff));color:var(--ink,#18312b)}.shakes-voice-dialog{box-sizing:border-box;width:min(92vw,32rem);max-height:85dvh;overflow:auto;border:2px solid #18312b;border-radius:1.3rem;padding:1.3rem;background:#fffdf8;color:#18312b;font:1rem/1.5 system-ui;z-index:9999}.shakes-voice-dialog::backdrop{background:#102c28b3}.shakes-voice-dialog h2{font:700 1.5rem/1.2 system-ui;margin:0 0 1rem}.shakes-voice-dialog label{display:block;margin:1rem 0;font-weight:700}.shakes-voice-dialog select{display:block;box-sizing:border-box;width:100%;max-width:100%;font:inherit;min-height:48px;color:#18312b;background:white;border:1px solid #426259;border-radius:.5rem;padding:.5rem}.shakes-voice-actions{display:flex;flex-wrap:wrap;gap:.5rem}.shakes-voice-dialog button{font:inherit;min-height:44px;background:#18312b;color:white;border:0;border-radius:.7rem;padding:.6rem 1rem}.shakes-voice-dialog :focus-visible,.shakes-voice-bar :focus-visible{outline:3px solid #d45a00;outline-offset:3px}

.shakes-voice-bar{padding:.5rem 1rem}.shakes-voice-dialog{font-size:1rem}html[data-size=large] .shakes-voice-dialog{font-size:1.2rem}html[data-size=larger] .shakes-voice-dialog{font-size:1.4rem}html[data-style=contrast] .shakes-voice-dialog,html[data-brew=contrast] .shakes-voice-dialog{background:#000;color:#fff}html[data-style=contrast] .shakes-voice-dialog button,html[data-brew=contrast] .shakes-voice-dialog button{background:#fff;color:#000}
.shakes-voice-bar{position:sticky;top:0;z-index:30;box-sizing:border-box;width:100%;background:var(--surface,var(--panel,#fffdf8));color:var(--ink,#18312b);border-bottom:2px solid currentColor}.shakes-voice-bar .shakes-voice-actions{gap:.35rem}.shakes-voice-bar [data-voice-read]{font-weight:800}.shakes-voice-bar .shakes-auto{display:flex;align-items:center;gap:.5rem;min-height:44px;font-size:1rem}.shakes-auto input{width:22px;height:22px}.shakes-voice-bar p{font-size:.85rem;line-height:1.3;margin:.2rem 0}.shakes-voice-bar button{border-radius:.65rem}@media(max-height:550px){.shakes-voice-bar{position:relative}}

/* One small control stays visible; the full menu opens only when needed. */
.shakes-voice-bar [hidden]{display:none!important}
.shakes-menu-heading{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}
.shakes-menu-heading [data-tools-toggle]{font-weight:800}
.shakes-tools-state{font-size:1rem}
.shakes-tools-panel{max-height:calc(80dvh - 5rem);overflow:auto;overscroll-behavior:contain;padding:.6rem .2rem .2rem}
.shakes-page-tools{display:grid;gap:.7rem;margin-bottom:.8rem}
.shakes-page-tools .page-nav{box-sizing:border-box;width:100%;max-width:none;margin:0;padding:.3rem 0;gap:.25rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.shakes-page-tools .page-nav a{font:inherit;font-weight:700;min-height:44px;padding:.35rem .45rem;overflow-wrap:anywhere}
.shakes-page-tools .access{justify-self:start;min-height:44px;font:inherit}
@media(max-width:980px){.shakes-voice-bar{padding:.4rem .75rem}.shakes-tools-panel{max-height:calc(75dvh - 5rem)}.shakes-voice-bar button{max-width:100%;white-space:normal;overflow-wrap:anywhere}.shakes-page-tools .page-nav a{font-size:1rem}}
@media(max-width:360px){.shakes-page-tools .page-nav{grid-template-columns:1fr}}
@media print{.shakes-voice-bar{display:none}}

.shakes-page-tools .access{max-width:100%;width:100%}.shakes-page-tools .access summary{min-height:44px;font-size:1rem;justify-content:flex-start;width:fit-content}.shakes-page-tools .access-panel{position:static;box-sizing:border-box;max-width:100%;width:100%;margin-top:.6rem;box-shadow:none}.shakes-page-tools .page-nav a{font-size:1rem}.shakes-page-tools .page-nav a[aria-current=page]::after{bottom:0}
