/* Plugin wasi-shell — fenêtre flottante calquée verbatim sur calc-float-window
 * (cf. feedback_edenalos_plugin_pane_takeover.md). NE PAS simplifier.
 */

.wasi-shell-float-window {
  position: fixed;
  display: flex;
  flex-direction: column;
  background: rgba(6, 12, 20, 0.96);
  border: 1px solid rgba(120, 220, 255, 0.18);
  border-radius: var(--r-lg);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(120, 220, 255, 0.15);
  overflow: hidden;
  font-family: var(--font-mono);
  color: var(--fg);
  animation: wasi-shell-win-in 0.22s ease-out;
}
@keyframes wasi-shell-win-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; }
}
.wasi-shell-float-window.wasi-shell-maximized {
  border-radius: 0;
  box-shadow: none;
}

.wasi-shell-float-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 12px;
  background: rgba(120, 220, 255, 0.05);
  border-bottom: 1px solid rgba(120, 220, 255, 0.08);
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
}
.wasi-shell-float-titlebar:active { cursor: grabbing; }
.wasi-shell-float-titlebar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wasi-shell-float-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.wasi-shell-float-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  box-sizing: border-box;
  background: #0a0a0e;
}
.wasi-shell-float-window.wasi-shell-maximized .ec-resize { display: none; }
