/* A stable-height deck floats above the conversation. Opening a stack or quick
   reply never resizes/replaces its history or main composer. */
.jm-workspace:has(.jm-alert-deck){height:clamp(566px,calc(100dvh - 169px),946px)}
.jm-alert-deck{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;height:166px;min-height:166px;flex-shrink:0;padding:8px 20px 0;z-index:10;perspective:1000px}
.jm-alert-stack{position:relative;min-width:0}
.jm-workbench .jm-stack-toggle{display:flex;align-items:center;gap:7px;width:100%;min-height:32px;padding:0 4px 6px;background:none;border:0;color:var(--muted);font:inherit;font-size:.74rem;text-align:left;cursor:pointer}
.jm-stack-toggle strong{color:var(--ink);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jm-stack-toggle>svg{width:15px;height:15px;flex-shrink:0;color:var(--teal)}
.jm-stack-toggle>svg:last-child{margin-left:auto;transition:transform .2s ease}
.jm-alert-stack[data-expanded=true] .jm-stack-toggle>svg:last-child{transform:rotate(180deg)}
.jm-alert-pile{position:absolute;top:32px;left:0;right:0;height:108px;transform-style:preserve-3d;transition:height .32s ease;isolation:isolate}
.jm-alert-card{position:absolute;top:0;left:0;right:0;height:98px;min-width:0;margin:0;border:0;border-radius:11px;background:color-mix(in srgb,var(--theme-surface,#fff) 88%,transparent);backdrop-filter:blur(14px);box-shadow:0 8px 20px color-mix(in srgb,var(--ink) 9%,transparent);transform:translateY(calc(min(var(--jm-alert-layer),3)*7px)) translateZ(calc(min(var(--jm-alert-layer),3)*-16px)) rotateX(-2deg);transition:transform .32s ease,opacity .2s ease}
.jm-alert-stack[data-expanded=false] .jm-alert-card:not(:first-child){opacity:.6;pointer-events:none}
.jm-alert-stack[data-expanded=false] .jm-alert-card:not(:first-child)>*{visibility:hidden}
.jm-alert-stack[data-expanded=true] .jm-alert-pile{height:min(calc(var(--jm-alert-count)*108px),320px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;padding-bottom:6px;transform-style:flat}
.jm-alert-stack[data-expanded=true] .jm-alert-card{transform:translateY(calc(var(--jm-alert-layer)*108px));opacity:1}
.jm-workbench .jm-alert-open{display:flex;align-items:flex-start;gap:9px;min-width:0;width:100%;height:62px;border:0;background:none;color:var(--ink);font:inherit;text-align:left;padding:10px 12px 0;cursor:pointer}
.jm-alert-open .jm-avatar{width:30px;height:30px;min-width:30px;margin-top:1px}
.jm-alert-copy{min-width:0;display:grid;gap:3px;flex:1}.jm-alert-copy strong{font-size:.8rem;font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.jm-alert-copy small{font-size:.71rem;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block}
.jm-alert-count{font-size:.72rem;color:var(--teal);flex-shrink:0;padding-top:1px}
.jm-alert-actions{position:absolute;bottom:2px;right:8px;display:flex;gap:2px;opacity:0;transition:opacity .15s ease;pointer-events:none}
.jm-alert-card:hover .jm-alert-actions,.jm-alert-card:focus-within .jm-alert-actions{opacity:1;pointer-events:auto}
.jm-workbench .jm-alert-actions .jm-icon{width:34px;min-width:34px;height:34px;min-height:34px;padding:7px;color:var(--teal)}
.jm-alert-actions svg{width:17px;height:17px}
.jm-alert-more{position:absolute;top:0;right:36px;color:var(--muted);font-size:.65rem;margin:0;max-width:20ch;text-align:right;background:var(--theme-surface,#fff)}
.jm-alert-stack:has(.jm-alert-more:not([hidden])) .jm-stack-toggle{padding-bottom:8px}
.jm-quick-reply{position:absolute;z-index:40;top:244px;left:20px;right:20px;margin:0;padding:12px 14px;background:var(--theme-soft,#f1f5f3);box-shadow:0 14px 30px color-mix(in srgb,var(--ink) 16%,transparent);border:0;border-radius:10px}
.jm-workbench .jm-quick-reply label{display:block;margin:0 0 7px;color:var(--teal);font-size:.8rem;font-weight:600}
.jm-workbench .jm-quick-reply textarea{width:100%;min-height:48px;max-height:90px;background:transparent;color:var(--ink);font:inherit;font-size:.9rem;padding:4px 0;border:0;resize:vertical;box-shadow:none}
.jm-quick-reply>div{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.jm-quick-status{margin-right:auto;color:var(--teal);font-size:.74rem}
.jm-quick-reply .jm-text-button{font-size:.72rem}.jm-workbench .jm-quick-reply .button{font-size:.76rem;min-height:38px;padding:8px 12px}
@media(max-width:1050px){.jm-alert-deck{gap:10px;padding-left:12px;padding-right:12px}.jm-alert-open .jm-avatar{display:none}.jm-quick-reply{left:12px;right:12px}}
@media(max-width:700px){.jm-workbench .jm-workspace:has(.jm-alert-deck){height:clamp(600px,calc(100dvh - 215px),850px)}.jm-alert-deck{height:166px;min-height:166px;padding:6px 10px 0;gap:10px}.jm-alert-open .jm-avatar{display:inline-flex;width:26px;height:26px;min-width:26px}.jm-workbench .jm-alert-open{padding:9px 8px 0;gap:6px}.jm-alert-copy strong{font-size:.75rem}.jm-alert-copy small{font-size:.69rem}.jm-alert-pile{top:34px}.jm-stack-toggle{font-size:.7rem}.jm-alert-count{font-size:.65rem}.jm-alert-stack[data-expanded=true] .jm-alert-pile{height:min(calc(var(--jm-alert-count)*108px),270px)}.jm-quick-reply{top:230px;left:10px;right:10px}.jm-workbench .jm-quick-reply textarea{font-size:16px}}
@media(hover:none),(pointer:coarse){.jm-alert-actions{opacity:1;pointer-events:auto}.jm-workbench .jm-alert-actions .jm-icon{height:40px;min-height:40px;width:40px;min-width:40px}.jm-workbench .jm-stack-toggle{min-height:38px}}
@media(prefers-reduced-motion:reduce){.jm-alert-card,.jm-alert-pile,.jm-alert-actions,.jm-stack-toggle>svg:last-child{transition:none!important;transform:none!important}.jm-alert-stack[data-expanded=false] .jm-alert-card:not(:first-child){visibility:hidden}.jm-alert-stack[data-expanded=true] .jm-alert-card{position:relative;top:auto;margin-bottom:10px}}
