#hestia-screen-open {
  position:fixed;inset:auto max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) auto;z-index:30;
  display:inline-flex;align-items:center;justify-content:center;gap:.45em;min-height:38px;padding:6px 12px;
  border:1px solid var(--line);border-radius:10px;background:var(--raised);color:var(--ink);
  font:inherit;font-weight:650;line-height:1.25;white-space:nowrap;box-shadow:0 2px 8px #0002;
}
#hestia-screen-open span {color:var(--accent);line-height:1}
#hestia-screen-open.hestia-inline {position:static;z-index:auto;box-shadow:none;margin:0}
dialog > #hestia-screen-open.hestia-inline {margin-block:0 8px}
.task-editor-heading:has(#hestia-screen-open) {flex-wrap:wrap;gap:8px}
.task-editor-heading:has(#hestia-screen-open) h3 {flex:1 1 12em}
#hestia-screen-open:hover {border-color:var(--accent)}
#hestia-screen-open:focus-visible,#hestia-screen :focus-visible {outline:2px solid var(--accent);outline-offset:2px}
#hestia-screen-open[hidden],#hestia-screen [hidden]{display:none}
#hestia-screen {box-sizing:border-box;width:min(500px,calc(100vw - 24px));max-height:88dvh;overflow:auto;
  margin:auto;padding:clamp(16px,4vw,24px);border-radius:16px;border:1px solid var(--line);
  background:var(--toolbar-surface,var(--paper));color:var(--ink);font-family:inherit;box-shadow:0 16px 50px #0004}
#hestia-screen::backdrop{background:#10152299}
#hestia-screen header,#hestia-screen footer,.hestia-command-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
#hestia-screen header h2{margin:0;font:inherit;font-weight:750;font-size:1.35rem}
#hestia-screen header + p{color:var(--muted);margin:4px 0 18px;overflow-wrap:anywhere}
#hestia-screen form,#hestia-screen label{display:grid;gap:8px}
#hestia-screen textarea{box-sizing:border-box;width:100%;min-height:90px;resize:vertical;font:inherit}
#hestia-screen pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:28vh;overflow:auto;font:inherit}
#hestia-screen pre:empty,#hestia-screen p:empty,#hestia-screen footer:not(:has(button:not([hidden]))) {display:none}
#hestia-screen details{color:var(--muted);font-size:.85em;margin-block:4px}
#hestia-screen button{min-height:38px}
#hestia-screen .dictation-tools{justify-content:flex-start;gap:6px;flex:1 1 auto;flex-wrap:wrap}
#hestia-screen .dictation-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;order:0;width:auto;padding:6px 10px;white-space:normal;font:inherit;font-weight:600}
#hestia-screen .dictation-button::after {content:attr(aria-label)}
#hestia-screen .dictation-tools [role=status]{order:1}
@media (max-width:540px),(pointer:coarse){
  #hestia-screen-open,#hestia-screen button{min-height:44px}
  #hestia-screen .hestia-command-actions > .primary{flex:1 1 auto}
}
