/* THE PROMPT BOX (ui/PromptBox.astro): the words in one rounded box, its pictures small under them, then a row: the
   picture-and-plus button at the start, the CTA at the end. Tokens only. */
.g-prompt { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label label" "box box" "row go" "more more" "err err"; gap: var(--g-3); margin: 0; }
.g-prompt--below { grid-template-columns: minmax(0, 1fr); grid-template-areas: "label" "box" "row" "more" "go" "err"; }
.g-prompt__label { grid-area: label; } .g-prompt__box { grid-area: box; } .g-prompt__row { grid-area: row; } .g-prompt__go { grid-area: go; display: flex; } .g-prompt__err { grid-area: err; } .g-prompt__morebox { grid-area: more; } .g-prompt__morebox[hidden] { display: none; }
.g-prompt__box { display: grid; gap: var(--g-3); padding: var(--g-3) var(--g-4); border-radius: var(--g-r-sm); corner-shape: squircle; background: var(--g-fill); transition: box-shadow var(--g-fast) var(--g-ease), background var(--g-fast) var(--g-ease); }
.g-prompt__box:focus-within { background: var(--g-fill-strong); box-shadow: var(--g-ring); }
.g-prompt__text { width: 100%; box-sizing: border-box; min-height: calc(var(--g-touch-lg) * 1.5); padding: 0; border: 0; background: none; color: var(--g-text); font: inherit; line-height: 1.4; resize: none; }
.g-prompt__text:focus, .g-prompt__text:focus-visible { outline: none; box-shadow: none; }   /* the box ringed whole, never its words (as the kit's search) */
.g-prompt__text::placeholder { color: var(--g-text-3); }
.g-prompt__pics { display: flex; flex-wrap: wrap; gap: var(--g-2); }
.g-prompt__pics[hidden] { display: none; }
.g-prompt__pic { position: relative; width: 56px; height: 56px; border-radius: var(--g-r-sm); background: var(--g-fill-strong) no-repeat center / cover; }
.g-prompt__x { position: absolute; inset: -6px -6px auto auto; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: var(--g-bg); color: var(--g-text); box-shadow: 0 0 0 var(--g-hair) var(--g-text-3); cursor: pointer; font: inherit; font-size: 13px; line-height: 1; }
.g-prompt__x::after { content: ""; position: absolute; inset: -11px; }   /* a finger's size */
.g-prompt__row { display: flex; align-items: center; justify-content: space-between; gap: var(--g-3); }
.g-prompt__add { display: inline-flex; align-items: center; gap: 2px; min-width: var(--g-touch); height: var(--g-touch); padding: 0 var(--g-3); border: 0; border-radius: var(--g-r-round); background: var(--g-fill); color: var(--g-text); cursor: pointer; }
.g-prompt__add:hover, .g-prompt__add:focus-visible { outline: none; background: var(--g-fill-strong); box-shadow: var(--g-ring); }
.g-prompt__add svg { width: var(--g-icon); height: var(--g-icon); }
.g-prompt__add svg + svg { width: calc(var(--g-icon) * .75); height: calc(var(--g-icon) * .75); }
.g-prompt__add[disabled] { opacity: .4; cursor: default; }
.g-prompt__err { margin: 0; color: var(--g-danger); font-size: var(--g-t-caption); }
.g-prompt__err[hidden] { display: none; }
/* its label shown above the box; its picture button with words (a chip); its CTA on a row of its own (the create flow) */
.g-prompt__label { color: var(--g-text); font-family: var(--g-font-book); }
.g-prompt__add--text { gap: var(--g-2); padding: 0 var(--g-4); border-radius: var(--g-r-sm); color: var(--g-text-2); font: inherit; font-family: var(--g-font-book); }
.g-prompt__add--text svg + span { line-height: 1; }
.g-prompt--below .g-prompt__go { margin-top: var(--g-4); }
.g-prompt__row { flex-wrap: wrap; justify-content: flex-start; }
.g-prompt__more svg { transition: transform var(--g-fast) var(--g-ease); }
.g-prompt__more[aria-expanded="true"] svg { transform: rotate(180deg); }
