/* Same composer surface in Inno and Paja; keep both public copies in sync. */
.prompt-voice-enabled > .composer-tools { display: flex; align-items: center; gap: 8px; width: 100%; }
.prompt-voice-status { flex: 1; min-width: 0; color: var(--prompt-muted); font: 400 12px/1.5 var(--font, 'DM Sans', sans-serif); }
.prompt-voice-enabled .composer-tools > button { flex: none; min-width: 44px; min-height: 44px; margin: 0; }
.prompt-voice-enabled .composer-tools > button[type="submit"], .prompt-voice-enabled .composer-tools > button:not([type]) { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 22px; }
.prompt-voice-enabled .prompt-microphone, .prompt-voice-enabled .prompt-voice-cancel { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--prompt-line); border-radius: 50%; background: transparent; color: var(--prompt-text); cursor: pointer; }
.prompt-voice-enabled .prompt-voice-cancel { width: auto; padding: 0 8px; border-radius: 12px; font: 500 12px/1.4 var(--font, 'DM Sans', sans-serif); }
.prompt-voice-enabled .prompt-voice-cancel[hidden] { display: none; }
.prompt-voice-enabled .prompt-microphone:disabled { opacity: .4; cursor: default; }
.prompt-voice-enabled .prompt-microphone[aria-pressed="true"] { background: var(--prompt-accent); color: var(--prompt-surface); border-color: var(--prompt-accent); }
.prompt-voice-enabled .composer-tools > button:focus-visible { outline: 2px solid var(--prompt-accent); outline-offset: 3px; }
.prompt-recording { border-color: var(--prompt-accent); }
.prompt-composer {
  --prompt-surface: var(--surface, #102b3b);
  --prompt-text: var(--text, #fbf9f3);
  --prompt-muted: var(--muted, #c5d8df);
  --prompt-line: var(--line, rgba(208,242,236,.3));
  --prompt-accent: var(--accent, #a3ecd8);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--prompt-line);
  border-radius: 24px;
  background: var(--prompt-surface);
  box-shadow: 0 12px 36px rgba(0,12,24,.1);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
}
.prompt-composer:hover { border-color: color-mix(in srgb, var(--prompt-accent) 60%, var(--prompt-line)); }
.prompt-composer:focus-within {
  border-color: var(--prompt-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--prompt-accent) 12%, transparent), 0 16px 44px rgba(0,12,24,.14);
  transform: translateY(-2px);
}
.prompt-composer textarea {
  display: block;
  flex: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 76px;
  max-height: min(224px, 35svh);
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: var(--prompt-text);
  caret-color: var(--prompt-accent);
  font: 400 18px/1.5 var(--font, 'DM Sans', sans-serif);
  scrollbar-width: thin;
}
.prompt-composer textarea::placeholder { color: var(--prompt-muted); opacity: 1; }
.prompt-composer > button, .prompt-composer > .composer-tools {
  align-self: flex-end;
  flex: none;
}
.prompt-composer > button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 50%;
  font-size: 22px;
}
.prompt-composer > button:disabled { opacity: .4; }
.prompt-composer.prompt-enhanced { isolation: isolate; gap: 14px; }
/* A northern-light ribbon belongs to the frame, never over the draft. */
.prompt-enhanced::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 12%, var(--prompt-accent) 30%, #8ab7dc 47%, #d2b98a 58%, transparent 78%);
  background-size: 250% 250%;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: .45;
  transition: opacity 220ms ease;
}
.prompt-animating::before { animation: prompt-aurora 9s ease-in-out infinite alternate; }
.prompt-enhanced:focus-within::before { opacity: .9; }
.prompt-field { position: relative; width: 100%; min-width: 0; }
.prompt-voice-enabled > .prompt-field, .prompt-voice-enabled > .composer-tools { grid-column: 1 / -1; }
.prompt-voice-active .prompt-field textarea { min-height: 112px !important; caret-color: transparent; cursor: default; }
.prompt-voice-active textarea::placeholder { color: transparent !important; }
.prompt-voice-active .prompt-ghost { display: none; }
.prompt-voice-active .composer-tools > button[type="submit"], .prompt-voice-active .composer-tools > button:not([type]) { display: none !important; }
.prompt-voice-visual { position: absolute; inset: 0; display: flex; align-items: center; gap: 18px; pointer-events: none; color: var(--prompt-accent); }
.prompt-voice-visual[hidden] { display: none; }
.prompt-voice-visual > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.prompt-voice-visual strong { font: 600 22px/1.25 var(--font, 'DM Sans', sans-serif); letter-spacing: -.025em; }
.prompt-voice-visual > div > span { color: var(--prompt-muted); font: 400 13px/1.5 var(--font, 'DM Sans', sans-serif); }
.prompt-voice-bars { display: flex; align-items: center; justify-content: center; flex: 0 0 48px; gap: 4px; height: 48px; }
.prompt-voice-bars i { display: block; width: 5px; height: 18px; border-radius: 5px; background: currentColor; transform: scaleY(.55); }
.prompt-voice-bars i:nth-child(2), .prompt-voice-bars i:nth-child(4) { height: 30px; }
.prompt-voice-bars i:nth-child(3) { height: 44px; }
.prompt-recording .prompt-voice-bars i { animation: prompt-listening 900ms ease-in-out infinite alternate; }
.prompt-recording .prompt-voice-bars i:nth-child(2) { animation-delay: -350ms; }
.prompt-recording .prompt-voice-bars i:nth-child(3) { animation-delay: -600ms; }
.prompt-recording .prompt-voice-bars i:nth-child(4) { animation-delay: -150ms; }
.prompt-recording .prompt-voice-bars i:nth-child(5) { animation-delay: -450ms; }
.prompt-composer.prompt-recording { border-color: var(--prompt-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--prompt-accent) 14%, transparent), 0 12px 36px rgba(0,12,24,.1); }
.prompt-recording .prompt-voice-status { color: var(--prompt-accent); }
@keyframes prompt-listening { from { transform: scaleY(.35); opacity: .65; } to { transform: scaleY(1); opacity: 1; } }
.prompt-enhanced .prompt-field textarea { min-height: 96px; }
.prompt-message .prompt-field textarea { min-height: 81px; }
.prompt-ghost {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--prompt-muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 400 18px/1.5 var(--font, 'DM Sans', sans-serif);
}
.prompt-show-example textarea::placeholder { color: transparent !important; }
.prompt-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  border-radius: 2px;
  background: var(--prompt-accent);
  vertical-align: -.12em;
  animation: prompt-caret 1.1s steps(2, jump-none) infinite;
}
.prompt-enhanced > button { transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease; }
.prompt-enhanced > button:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 4px 16px color-mix(in srgb, var(--prompt-accent) 25%, transparent); }
.composer.prompt-enhanced #idea { min-height: 96px; }
.composer.prompt-enhanced .prompt-ghost { font-size: 20px; line-height: 30px; letter-spacing: -.015em; }
@keyframes prompt-aurora { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes prompt-caret { 0%, 45% { opacity: 1; } 55%, 100% { opacity: 0; } }
.prompt-composer .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.landing-prompt { width: min(680px, 100%); margin-top: 30px; }
.inno-hero .inno-brief { margin-top: 28px; }
.inno-brief > .prompt-composer { width: 100%; }
.inno-composer.prompt-composer {
  position: sticky;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(900px, calc(100% - 28px));
  margin: 0 auto 14px;
  border-bottom: 1px solid var(--prompt-line);
  border-radius: 24px;
}
.inno-composer.prompt-composer textarea { min-height: 48px; }
.prompt-composer.prompt-paused { transition: none; transform: none; }
.prompt-paused::before, .prompt-paused .prompt-cursor { animation: none; }
@media(max-width:600px) {
  .prompt-composer { padding: 16px; border-radius: 22px; }
  .prompt-composer textarea { font-size: 16px; min-height: 72px; }
  .prompt-ghost { font-size: 16px; }
  .composer.prompt-enhanced .prompt-ghost { font-size: 18px; line-height: 27px; }
}
@media(prefers-reduced-motion:reduce) {
  .prompt-recording .prompt-voice-bars i { animation: none; transform: none; }
  .prompt-composer, .prompt-composer:focus-within { transition: none; transform: none; }
  .prompt-enhanced::before, .prompt-cursor { animation: none; transition: none; }
  .prompt-enhanced > button, .prompt-enhanced > button:not(:disabled):hover { transition: none; transform: none; }
}
@media(forced-colors:active) {
  .prompt-composer { background: Canvas; border: 1px solid CanvasText; box-shadow: none; }
  .prompt-composer:focus-within { outline: 2px solid Highlight; transform: none; }
  .prompt-composer textarea { color: CanvasText; }
  .prompt-composer textarea::placeholder { color: GrayText; }
  .prompt-enhanced::before { display: none; }
}
