.app-shell.desktop .editor-panel { grid-template-rows: auto auto auto minmax(0, 1fr) auto; }
.desktop-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 16px;
  padding: 6px var(--chrome-inset);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.desktop-window-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.desktop-window-label { flex: 0 0 auto; color: var(--muted); font: 700 9px/1.5 var(--font-geist-mono), monospace; letter-spacing: .08em; }
.desktop-window-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.desktop-session-status { color: var(--muted); font-size: 10px; flex: 0 0 auto; }
.desktop-session-status.has-error { color: #c7463a; }
.desktop-rename-dialog {
  width: min(400px, calc(100vw - 32px));
  margin: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 80px #0005;
}
.desktop-rename-dialog::backdrop { background: #0b120f7a; backdrop-filter: blur(4px); }
.desktop-rename-dialog form { display: grid; gap: 14px; }
.desktop-rename-dialog h2 { margin: 0 0 4px; font-size: 20px; }
.desktop-rename-dialog label { font-size: 12px; color: var(--muted); }
.desktop-rename-dialog input { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--panel); font: inherit; }
.desktop-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 8px; }
.desktop-dialog-actions button { min-height: 36px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--panel); font: inherit; cursor: pointer; }
.desktop-dialog-actions button[type="submit"] { background: var(--deep); color: var(--paper); border-color: var(--deep); }
.desktop-dialog-actions button:disabled { opacity: .5; cursor: default; }
.desktop-dialog-error { margin: 0; color: #c7463a; font-size: 12px; }
.desktop-loading, .desktop-startup-error { max-width: 560px; margin: 16vh auto; padding: 24px; font: 16px/1.6 system-ui, sans-serif; }
@media (max-width: 480px) { .desktop-session-status { max-width: 110px; text-align: right; } }
