/* Pick a ready-written build request.

   Reuses aly-space-modal.css's panel, search box, count and scroll list
   wholesale (.space-backdrop, .space-modal, .space-search, .space-list) —
   this file only adds what is actually different: the "Start from scratch"
   escape hatch, the divider above the list, and the ideas themselves —
   expandable, highlighted while searching. */

.prompt-modal { width: min(520px, 100%); gap: 16px; }

/* A slightly more considered search field than the shared default — more
   breathing room, a rounder shape to match the cards below it, and a focus
   transition rather than an instant snap. */
.prompt-modal .space-search {
  padding: 11px 14px; border-radius: 12px; font-size: 13.5px;
  transition: border-color .15s ease, background-color .15s ease;
}

/* Its own distinct option — a title and a line under it, not a row in the
   list below. Kept quiet (no border by default) so it reads as a different
   KIND of thing, not a fancier idea competing with the real ones. */
.prompt-scratch {
  display: flex; flex-direction: column; gap: 3px;
  width: 100%; padding: 13px 14px; cursor: pointer; text-align: left;
  border: 1px solid transparent; border-radius: 12px;
  background: var(--surface-2); color: inherit; font: inherit;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.prompt-scratch:hover { border-color: var(--surface-line); transform: translateY(-1px); }
.prompt-scratch:hover, .prompt-scratch:focus-visible { border-color: var(--text); }
.prompt-scratch:focus-visible {
  outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent);
}
.prompt-scratch-title { font-size: 13.5px; font-weight: 700; }
.prompt-scratch-desc { font-size: 12px; color: var(--muted); }

.prompt-divider {
  margin: 2px 0 -2px; padding-top: 12px;
  border-top: 1px solid var(--surface-line);
  font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted);
}

.prompt-list { gap: 10px; padding-right: 2px; }
/* A visible track keeps a long, scrollable idea list from reading as a hard
   cut-off at the panel's edge. */
.prompt-list { scrollbar-width: thin; scrollbar-color: var(--surface-line) transparent; }
.prompt-list::-webkit-scrollbar { width: 8px; }
.prompt-list::-webkit-scrollbar-thumb { background: var(--surface-line); border-radius: 8px; }

.prompt-row {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  width: 100%; padding: 13px 14px; cursor: pointer; text-align: left;
  border: 1px solid var(--surface-line); border-radius: 12px;
  background: var(--surface-2); color: inherit; font: inherit;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.prompt-row:hover {
  border-color: var(--text); transform: translateY(-1px);
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .35);
}
.prompt-row:focus-visible {
  outline: none; border-color: var(--text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent);
}
/* Open, not merely hovered — held with a steadier background than a passing
   pointer gets, so the one card in this state stays obvious while reading it. */
.prompt-row.is-expanded {
  cursor: default; background: var(--surface); border-color: var(--text);
  transform: none; box-shadow: none;
}

.prompt-row-title { font-size: 13.5px; font-weight: 600; }
.prompt-row-text {
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Expanded: the clamp lifts and the full idea reads at a slightly calmer
   line height — this is the moment somebody is actually reading, not scanning. */
.prompt-row-text.is-full {
  -webkit-line-clamp: unset; display: block; overflow: visible; color: var(--text);
}

.prompt-use {
  margin-top: 10px; align-self: flex-start; padding: 7px 16px;
  border-radius: 999px; font-size: 12.5px; font-weight: 600;
  letter-spacing: normal; text-transform: none;
  background: var(--primary); color: var(--primary-ink); border-color: var(--primary);
}
.prompt-use:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

/* `currentColor` tracked whatever the surrounding text happened to be —
   `--muted` on a collapsed card, which put a low-contrast tint on top of
   already-low-contrast text. `--jade` is ALYSSIUN's one accent that is
   defined for both atmospheres (style.css) and already used elsewhere as the
   "this is active/true" colour, so a match reads as emphasis rather than a
   colour this file invented. Text goes to `--text` (not `inherit`) so a
   match inside the muted collapsed preview still reads at full contrast. */
.prompt-highlight {
  background: color-mix(in srgb, var(--jade) 35%, transparent);
  color: var(--text); font-weight: 700; border-radius: 3px; padding: 0 2px;
}

.prompt-empty { margin: 8px 0; font-size: 13px; line-height: 1.5; }
