/* Depth belongs to the thing temporarily in front of the reading surface. */
:root {
  --tormie-floating-material: rgba(255, 255, 255, .94);
  --tormie-floating-line: rgba(55, 90, 75, .12);
  --tormie-floating-shadow: 0 12px 40px #23332c13, 0 2px 8px #23332c08;
}
.popover,
.workspace-options-panel,
.connected-workspace .workspace-options-panel,
dialog {
  background: var(--tormie-floating-material);
  border: 1px solid var(--tormie-floating-line);
  box-shadow: var(--tormie-floating-shadow);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
}
dialog { box-shadow: 0 24px 80px #23332c24, 0 3px 12px #23332c0b; }
dialog::backdrop { background: #18251e30; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.capture-editor,
.connected-app .chat-input {
  border-color: var(--tormie-floating-line);
  background: #fff;
  box-shadow: 0 3px 14px #23332c07, 0 1px 3px #23332c05;
}
.capture-editor:focus-within,
.connected-app .chat-input:focus-within {
  border-color: #668373;
  box-shadow: 0 0 0 2px #375a4b12, 0 4px 16px #23332c0a;
}
[data-motion-phase] { will-change: transform, opacity; }
/* A reserved control slot prevents state feedback from moving hit targets. */
.connected-app .quiet-composer #liveCaptureCompanion {
  display: inline-block;
  visibility: hidden;
  --companion-size: 30px;
  pointer-events: none;
  margin: 0;
}
.connected-app .quiet-composer #liveCaptureCompanion:is([data-pose="listening"], [data-pose="saved"], [data-pose="thinking"]) { visibility: visible; }
body.demo-ready .capture-companion { visibility: hidden; --companion-size: 30px; margin: 0; }
body.demo-ready .capture-companion:is([data-pose="listening"], [data-pose="saved"]) {
  visibility: visible;
  margin: 0;
  pointer-events: none;
}
/* Press feedback stays on the control itself; it cannot change a hit target. */
button:active { transform: none; }
:where(.quiet-button, .iconbutton, .solid-button, .send-button, .voice-button):active { filter: brightness(.97); }
@media (prefers-reduced-motion: reduce) {
  [data-motion-phase], tormie-companion > img { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .popover, .workspace-options-panel, .connected-workspace .workspace-options-panel, dialog { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  dialog::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; background: #18251e45; }
}
@media (prefers-contrast: more) {
  .popover, .workspace-options-panel, .connected-workspace .workspace-options-panel, dialog { background: #fff; border-color: #66736b; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .capture-editor, .connected-app .chat-input { border-color: #66736b; }
}
