/* Ready prompts: the button at a prompt box's right edge and its upward menu;
   the "Ask about this room" row. Layered by css/layers.css (--z-menu). */
.pp-host { position: relative; }
.pp-field { padding-right: 48px !important; }
/* an inline textarea/input leaves a descender gap under itself in a block
   host, which put the button below the box's bottom edge */
.pp-host > .pp-field { display: block; }
/* 44 px hand, 36 px visible ring (the mic's own pattern), so the ring stays
   inside even a 44 px-tall box */
.pp-btn {
  position: absolute; right: 2px; bottom: 2px; /* the mic's own inset, mirrored */
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 0; background: transparent; padding: 0;
  color: var(--accent, #d6cbb0); cursor: pointer; z-index: 2;
}
.pp-btn::before {
  content: ""; position: absolute; inset: 4px; border-radius: 999px;
  border: 1px solid rgba(var(--kit-rim-rgb, 214,203,176), .28);
  background: rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pp-btn > svg { position: relative; }
.pp-btn:hover::before, .pp-btn:focus-visible::before { background: rgba(var(--kit-rim-rgb, 214,203,176), .14); box-shadow: 0 0 0 2px rgba(var(--kit-rim-rgb, 214,203,176), .35); }
.pp-btn:focus-visible { outline: none; }
.pp-btn[aria-expanded="true"]::before { background: var(--kit-accent-grad, var(--accent)); }
.pp-btn[aria-expanded="true"] { color: var(--accent-contrast, #f5f1e8); }
/* the host is always the box's own wrap (prompt-presets.js builds one), so
   the composer's send button, outside that wrap, never needs making room for */

.pp-menu {
  position: absolute; right: 6px; bottom: calc(100% + 8px);
  /* never wider than the box it belongs to (a 398 px box once got a 480 px menu) */
  min-width: min(300px, calc(100% - 12px)); max-width: min(520px, 92vw, calc(100% - 12px)); max-height: 60vh; overflow: auto;
  padding: 6px; border-radius: 16px;
  background: color-mix(in srgb, var(--bg-elevated, #0d1f47) 78%, transparent);
  border: 1px solid rgba(var(--kit-rim-rgb, 214,203,176), .32);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 24px 70px rgba(2, 8, 30, .6), inset 0 1px 0 rgba(255,255,255,.08);
  z-index: var(--z-menu, 1000);
}
.pp-head { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint, #8b96b4); padding: 8px 12px 4px; font-family: var(--font-mono, monospace); }
.pp-item, .pp-close {
  display: block; width: 100%; text-align: left; min-height: 44px; padding: 10px 12px;
  border: 0; border-radius: 10px; background: transparent; color: var(--text, #f1ede4); font: inherit; font-size: 14px; line-height: 1.35; cursor: pointer;
}
.pp-item:hover, .pp-item:focus-visible { background: rgba(var(--kit-rim-rgb, 214,203,176), .12); outline: none; }
.pp-close { color: var(--text-muted, #b4bdd3); text-align: center; border-top: 1px solid rgba(255,255,255,.06); border-radius: 0 0 10px 10px; margin-top: 4px; }

/* Ask about this room */
.pp-ask { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: end; margin: 22px 0 8px; }
.pp-ask-label { grid-column: 1 / -1; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint, #8b96b4); font-family: var(--font-mono, monospace); }
.pp-ask-field { position: relative; }
.pp-ask-input {
  width: 100%; min-height: 48px; padding: 12px 56px 12px 48px; border-radius: 14px;
  border: 1px solid rgba(var(--kit-rim-rgb, 214,203,176), .22); background: rgba(255,255,255,.05); color: var(--text, #f1ede4); font: inherit; font-size: 14px;
}
.pp-ask-input:focus { outline: none; border-color: var(--accent, #d6cbb0); box-shadow: 0 0 0 3px rgba(var(--kit-rim-rgb, 214,203,176), .16); }
.pp-ask-send { min-height: 48px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--accent, #d6cbb0); background: transparent; color: var(--accent-strong, #ece5d2); font: inherit; font-weight: 700; cursor: pointer; }
.pp-ask-send:hover { background: var(--kit-accent-grad, var(--accent)); color: var(--accent-contrast, #f5f1e8); }

@media (max-width: 480px) {
  .pp-menu { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); top: auto; max-width: none; max-height: 70dvh; border-radius: 18px; }
  .pp-ask { grid-template-columns: 1fr; }
  .pp-ask-send { min-height: 44px; }
}
