/**
 * Popout mode — full-bleed single surface in its own window.
 * Hides the shell chrome (sidebar, shell header). Surface gets a thin
 * popout-specific header with title + close.
 */

body.popout-mode .admin-shell > .shell-header,
body.popout-mode .admin-shell > .sidebar {
  display: none;
}

body.popout-mode .admin-shell {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

body.popout-mode .main-content {
  grid-area: auto;
}

body.popout-mode .content-area {
  height: 100vh;
  padding: 0;
}

.popout-root {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--s-color-bg-app);
}

.popout-header {
  display: flex;
  align-items: center;
  gap: var(--s-space-3);
  padding: var(--s-space-2) var(--s-space-3);
  flex-shrink: 0;
}

.popout-title {
  flex: 1;
  font-size: var(--s-font-size-1);
  font-weight: var(--s-font-weight-semibold);
  color: var(--s-color-fg-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popout-close {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--s-color-fg-muted);
  cursor: pointer;
  border-radius: var(--s-radius-1);
  font-size: 18px;
  line-height: 1;
}

.popout-close:hover {
  color: var(--s-color-fg-primary);
  background: color-mix(in oklch, var(--s-color-fg-muted) 12%, transparent);
}

.popout-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.popout-error {
  padding: var(--s-space-5);
  font-family: var(--s-font-mono);
  color: var(--s-color-fg-muted);
}
