/* Panneau « Prompt du maître » (app-prompt.js, v1.99.0) : réplique la
   mécanique des panneaux latéraux d'app.css (#history-panel), qui est au
   cliquet et ne peut pas accueillir ces règles. */

#prompt-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(96vw, 560px);
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-radius: 18px 0 0 18px;
  box-shadow: var(--shadow-pop);
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1);
  display: flex;
  flex-direction: column;
  z-index: 30;
}
body.prompt-open #prompt-panel { transform: none; }

#prompt-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 8, 0.35);
  backdrop-filter: blur(2px);
  z-index: 20;
  display: none;
}
body.prompt-open #prompt-backdrop { display: block; }

#prompt-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 12px 0;
}

.prompt-tab {
  flex: 1;
  min-height: 44px; /* cible tactile (ergonomie v1.49+) */
  border: 1px solid var(--border, #ccc);
  border-radius: 10px;
  background: var(--bg, #fff);
  color: inherit;
  font: inherit;
}

.prompt-tab.active {
  border-color: var(--accent, #7a5cff);
  font-weight: 650;
}

#prompt-meta {
  padding: 8px 14px 0;
  color: var(--muted);
  font-size: 0.78em;
}

#prompt-text {
  flex: 1;
  margin: 10px 12px;
  padding: 10px 12px;
  border: 1px solid var(--border, #ccc);
  border-radius: 10px;
  background: var(--bg, #fff);
  color: inherit;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  resize: none;
}

#prompt-status {
  padding: 0 14px;
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.78em;
}

#prompt-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 12px 14px;
}

#prompt-actions .header-button { min-height: 44px; }
