/* Match Home and Creator's content width, spacing and quiet monochrome controls. */
.prompt-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.prompt-heading h1 { margin: 0; font-size: 26px; line-height: 1.4; font-weight: 650; letter-spacing: -.7px; }
.prompt-heading p { margin: 8px 0 0; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.prompt-save { flex: 0 0 auto; min-width: 100px; height: 44px; padding: 0 24px; border: 0; border-radius: 999px; background: #fff; color: #151515; font-size: 14px; font-weight: 750; }
.prompt-save:hover:not(:disabled) { background: #e4e2e8; }
.prompt-save:disabled { cursor: default; background: rgb(255 255 255 / 8%); color: var(--text-muted); }
.prompt-save[aria-busy="true"] { cursor: progress; }
.prompt-module-navigation { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; min-width: 0; }
.prompt-tabs { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; padding: 3px 0 10px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 14%) transparent; }
.prompt-tab { position: relative; flex: 0 0 auto; height: 36px; padding: 0 17px; border: 0; border-radius: 999px; background: rgb(255 255 255 / 5%); color: var(--text-secondary); font-size: 13px; font-weight: 600; white-space: nowrap; }
.prompt-tab:hover { background: rgb(255 255 255 / 10%); color: #fff; }
.prompt-tab[aria-selected="true"] { background: #fff; color: #151515; }
.prompt-tab.is-dirty::after { display: inline-block; width: 5px; height: 5px; margin-left: 7px; border-radius: 50%; background: currentColor; vertical-align: middle; content: ''; }
.prompt-scroll { display: grid; flex: 0 0 28px; place-items: center; height: 36px; padding: 0; margin-bottom: 7px; border: 0; border-radius: 8px; background: transparent; color: var(--text-secondary); font: 24px/1 var(--font-ui); }
.prompt-scroll:hover:not(:disabled) { background: rgb(255 255 255 / 6%); color: #fff; }
.prompt-scroll:disabled { cursor: default; opacity: .2; }
.prompt-panel { overflow: hidden; border: 1px solid rgb(255 255 255 / 8%); border-radius: 14px; background: rgb(255 255 255 / 2%); }
.prompt-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid rgb(255 255 255 / 6%); }
.prompt-editor-heading label { font-size: 14px; font-weight: 650; }
.prompt-editor-mode { color: var(--text-muted); font-size: 12px; }
.prompt-editor { display: block; width: 100%; height: max(340px, calc(100dvh - 370px)); min-height: 280px; margin: 0; padding: 24px; resize: vertical; border: 0; outline: none; background: transparent; color: #e6e2e9; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.9; tab-size: 2; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 14%) transparent; }
.prompt-editor:focus-visible { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 16%); }
.prompt-editor[readonly] { color: #c3bec9; }
.prompt-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 24px; border-top: 1px solid rgb(255 255 255 / 6%); color: var(--text-muted); font-size: 12px; line-height: 1.6; }
.prompt-editor-footer p { margin: 0; }
#prompt-character-count { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.prompt-load-error { color: #f1a5ac; font-size: 13px; line-height: 1.7; }
.prompt-toast { position: fixed; z-index: 30; right: 32px; bottom: 28px; display: flex; align-items: center; gap: 24px; max-width: min(520px, calc(100vw - 64px)); padding: 16px 18px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 12px; background: #29262e; color: #fff; box-shadow: 0 12px 36px rgb(0 0 0 / 30%); font-size: 13px; line-height: 1.6; }
.prompt-toast.is-error { border-color: rgb(241 165 172 / 35%); color: #f1c3c7; }
.prompt-toast button { flex: 0 0 24px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: inherit; font-size: 20px; line-height: 1; opacity: .65; }
.prompt-toast button:hover { background: rgb(255 255 255 / 7%); opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .prompt-save, .prompt-tab, .prompt-scroll { transition: background-color 160ms ease, color 160ms ease; }
}
.purpose-tabs { display: flex; align-items: center; gap: 8px; margin: -4px 0 26px; }
.purpose-tab { padding: 12px 20px; border: 0; border-radius: 999px; background: rgb(255 255 255 / 5%); color: var(--text-secondary); font-size: 14px; font-weight: 650; }
.purpose-tab:hover { color: #fff; background: rgb(255 255 255 / 10%); }
.purpose-tab[aria-pressed="true"] { background: #fff; color: #151515; }
.purpose-tab:disabled { cursor: wait; opacity: .5; }
