/* Focused layout corrections: readable controls at normal and enlarged text sizes. */
.calculator-modal-v276 .calculator-shell-v276{width:min(620px,calc(100vw - 24px))!important;height:auto!important;min-height:0!important;max-height:calc(100dvh - 24px)!important;display:flex!important;flex-direction:column!important;gap:10px!important;overflow:auto!important;padding:20px!important}
.calculator-keys-v276{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-template-rows:repeat(6,minmax(44px,1fr))!important;flex:none!important;gap:7px!important;overflow:visible!important}
.calculator-keys-v276 button{min-height:44px!important;padding:8px!important;font-size:clamp(16px,2.5vw,21px)!important;border-radius:12px!important;transition:background .15s,transform .15s}
.calculator-keys-v276 button:active{transform:scale(.96)}
.calculator-shell-v276 header p{display:none}.calculator-shell-v276 footer{flex:none!important}.calculator-screen-v276{flex:none!important}
#composerCard.is-expanded{max-height:none!important;display:flex;flex-direction:column}
#composerCard.is-expanded textarea{overflow-y:auto!important;overscroll-behavior:contain}
.provider-route2519{display:inline-flex;font-size:11px;border:1px solid currentColor;border-radius:20px;padding:2px 7px;opacity:.8;margin:0 6px}
.appeal-entry>div{overflow-wrap:anywhere;line-height:1.65}.appeal-entry small{display:block;margin-bottom:10px}
body:has(#developerAccess61){background:var(--bg,#f4f6f7)}
body:has(#developerAccess61) .tool-page{width:min(1120px,calc(100% - 36px));margin:36px auto}
#developerAccess61,.developer-chat61,#studioForm,.tool-api{border:1px solid var(--border,#b9c7cc);border-radius:22px;padding:24px;margin-bottom:24px;background:var(--surface,#fff);box-shadow:0 8px 28px #00192308}
#developerKeys61 article{display:flex;align-items:center;justify-content:space-between;padding:18px 0;border-bottom:1px solid var(--border,#dce3e6)}
#developerKeys61 article>div{display:grid;gap:6px}#developerKeys61 small{opacity:.7}
body:has(#developerAccess61) button{min-height:44px;border-radius:12px;transition:transform .15s,background .15s}body:has(#developerAccess61) button:active{transform:translateY(1px)}
body:has(#developerAccess61) input,body:has(#developerAccess61) select,body:has(#developerAccess61) textarea{font-size:16px;border-radius:12px;padding:12px;max-width:100%;box-sizing:border-box}
@media(max-width:600px){.calculator-modal-v276 .calculator-shell-v276{padding:12px!important;gap:6px!important}.calculator-keys-v276{gap:4px!important}.calculator-shell-v276 header small,.calculator-modes-v276 span{display:none}#developerAccess61,.developer-chat61,#studioForm,.tool-api{padding:16px}body:has(#developerAccess61) .tool-options{display:flex;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.calculator-keys-v276 button,body:has(#developerAccess61) button{transition:none}}
.workspace-group2520{display:block;border-bottom:1px solid var(--border,#ccd5d8);padding:4px 0}.workspace-group2520>summary{padding:12px 8px;font-size:13px;font-weight:650;cursor:pointer;list-style-position:inside}.workspace-group2520>a,.workspace-group2520>button{width:100%;box-sizing:border-box}.workspace-server2520{display:block;padding:14px;font-size:13px}

.study-diagram2520{margin:16px 0}.study-diagram2520 img{max-width:100%;height:auto;border-radius:18px}

/* v0.25.21: wrapping controls retain their own hit areas at enlarged text sizes. */
.workspace-group-body2521{display:grid;gap:3px;padding:0 2px 7px}
.workspace-group-body2521>.sidebar-nav{width:100%;min-width:0;box-sizing:border-box}
.workspace-group2520>summary{user-select:none;transition:color .18s,background .18s;border-radius:10px}
.workspace-group2520>summary:hover{background:var(--surface-hover,#8881)}
#composerCard{box-sizing:border-box;min-width:0}
#composerCard .composer-toolbar{display:flex!important;flex-wrap:wrap!important;gap:8px!important;min-width:0!important;width:100%!important;box-sizing:border-box}
#composerCard .composer-left-tools,#composerCard .composer-right-tools{display:flex!important;flex-wrap:wrap!important;align-items:center;gap:6px!important;min-width:0!important;max-width:100%!important}
#composerCard .composer-right-tools{margin-left:auto;justify-content:flex-end;flex:1 1 220px!important}
#composerCard .composer-toolbar button{position:relative!important;inset:auto!important;flex-shrink:0!important;max-width:100%;box-sizing:border-box}
#composerCard #effortButton{min-width:0!important;white-space:normal}
@media(prefers-reduced-motion:reduce){.workspace-group2520>summary{transition:none}}

#composerCard #effortLabel{display:inline!important;font-size:12px!important;color:inherit!important;opacity:1!important;visibility:visible!important}
#composerCard #effortButton{width:auto!important;min-height:40px;padding:6px 9px!important}

/* One sizing owner; retain the toolbar when the textarea expands. */
body.senvora-app-body #appShell #composerCard{flex:none!important;min-height:0!important;max-height:none!important;display:flex!important;flex-direction:column!important}
body.senvora-app-body #appShell #composerCard .composer-input-shell{flex:none!important;min-height:0!important;width:100%;box-sizing:border-box}
body.senvora-app-body #appShell #composerCard #messageInput{height:var(--composer-input-height,52px)!important;min-height:0!important;max-height:none!important;box-sizing:border-box;transition:none!important}
body.senvora-app-body #appShell #composerCard .composer-toolbar{flex:none!important;position:relative!important;inset:auto!important;height:auto!important;min-height:44px!important}
body.senvora-app-body #appShell #attachmentChips{flex:none;max-height:min(100px,15dvh);overflow:auto;overscroll-behavior:contain}
.workspace-nav{overflow-anchor:none}
.workspace-group2520>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none}
.workspace-group2520>summary::-webkit-details-marker{display:none}
.workspace-group2520>summary::after{content:'';width:7px;height:7px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(-45deg);transition:transform .28s cubic-bezier(.22,1,.36,1);flex:none;margin-right:6px}
.workspace-group2520[data-expanded=true]>summary::after{transform:rotate(45deg)}
.workspace-group2520>summary:focus-visible{outline:2px solid var(--accent,#179e91);outline-offset:-2px}
.workspace-group-body2521{opacity:0;transition:opacity .16s ease}
.workspace-group2520[data-expanded=true]>.workspace-group-body2521{opacity:1}
@media(prefers-reduced-motion:reduce){.workspace-group2520>summary::after,.workspace-group-body2521{transition:none}}
