/* KVANTYRA PROMPT FULLSCREEN EDITOR V423 — RESTORED FLOATING KEYBOARD CHECK */
.kv-prompt-host-v411{position:relative!important}

/* Only reserve the right-side control lane. Do not reserve an artificial footer inside
   the textarea: this removes the large empty gap after a pasted prompt. */
html body #create #genPrompt.kv-prompt-expandable-v421,
html body #create.kv-studio-v157 #genPrompt.kv-prompt-expandable-v421,
html body #create #kvVideoPromptV19.kv-prompt-expandable-v421,
html body.kv-video-final-active-v19 #create #kvVideoPromptV19.kv-prompt-expandable-v421{
  box-sizing:border-box!important;
  padding-right:66px!important;
  padding-bottom:16px!important;
  scroll-padding-right:66px!important;
  scroll-padding-bottom:16px!important;
}

.kv-prompt-expand-v411.kv-prompt-expand-v421{
  position:absolute;z-index:18;width:38px;height:38px;display:grid;place-items:center;padding:0;
  border:1px solid rgba(188,168,248,.15);border-radius:13px;
  background:linear-gradient(180deg,rgba(29,29,39,.96),rgba(18,19,27,.96));color:rgba(248,249,255,.94);
  box-shadow:0 8px 22px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.065);
  -webkit-backdrop-filter:blur(18px) saturate(1.16);backdrop-filter:blur(18px) saturate(1.16);
  cursor:pointer;-webkit-tap-highlight-color:transparent;
  transition:transform .16s ease,background .16s ease,border-color .16s ease,opacity .14s ease;
}
.kv-prompt-expand-v411.kv-prompt-expand-v421:active{transform:scale(.92);background:rgba(43,42,56,.98)}
.kv-prompt-expand-v411.kv-prompt-expand-v421 svg{width:17px;height:17px;display:block}
.kv-prompt-expand-v411.kv-prompt-expand-v421[hidden]{display:none!important}
.kv-prompt-expand-v411.kv-hidden-for-keyboard-v423{opacity:0!important;pointer-events:none!important}

/* Keyboard dismiss control belongs to the active prompt field itself. */
#kvPromptKeyboardDoneV423{
  position:fixed;left:0;top:0;z-index:2147483644;width:52px;height:52px;display:grid;place-items:center;padding:0;
  border:0;border-radius:50%;background:#f6f6f7;color:#090a0d;
  box-shadow:0 10px 34px rgba(0,0,0,.34),0 1px 0 rgba(255,255,255,.9) inset;
  -webkit-tap-highlight-color:transparent;transition:transform .14s ease,opacity .14s ease;
}
#kvPromptKeyboardDoneV423[hidden]{display:none!important}
#kvPromptKeyboardDoneV423:active{transform:scale(.92);background:#e8e8ea}
#kvPromptKeyboardDoneV423 svg{width:26px;height:26px;display:block}

#kvPromptEditorV411{
  position:fixed;inset:0;z-index:2147482500;display:none;align-items:stretch;justify-content:center;
  background:rgba(3,4,8,.74);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);opacity:0;transition:opacity .2s ease;
}
#kvPromptEditorV411.kv-active-v411{display:flex;opacity:1}
#kvPromptEditorV411 .kv-pe-shell-v411{
  width:100%;height:100dvh;min-height:100vh;display:flex;flex-direction:column;
  background:radial-gradient(circle at 86% 0,rgba(118,76,255,.10),transparent 30%),linear-gradient(180deg,#0a0b0f 0%,#090a0e 100%);
  color:#fff;overflow:hidden;
}
#kvPromptEditorV411 .kv-pe-head-v411{
  flex:0 0 auto;min-height:64px;padding:calc(env(safe-area-inset-top,0px) + 11px) 16px 11px;
  display:grid;grid-template-columns:46px minmax(0,1fr) 46px;align-items:end;border-bottom:1px solid rgba(255,255,255,.045);
}
#kvPromptEditorV411 .kv-pe-title-v411{align-self:center;text-align:center;font-size:18px;line-height:1.15;font-weight:800;letter-spacing:-.02em}
#kvPromptEditorV411 .kv-pe-close-v411{width:38px;height:38px;align-self:center;display:grid;place-items:center;padding:0;border:0;border-radius:13px;background:rgba(255,255,255,.055);color:#f8f8fb;cursor:pointer;-webkit-tap-highlight-color:transparent}
#kvPromptEditorV411 .kv-pe-close-v411:active{transform:scale(.94);background:rgba(255,255,255,.09)}
#kvPromptEditorV411 .kv-pe-close-v411 svg{width:20px;height:20px}
#kvPromptEditorV411 .kv-pe-spacer-v411{width:38px;height:38px}
#kvPromptEditorV411 .kv-pe-body-v411{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;padding:14px 16px 10px}
#kvPromptEditorInputV411{
  flex:1 1 auto;min-height:0;width:100%;border:1px solid rgba(255,255,255,.07);border-radius:24px;outline:none;resize:none;
  padding:18px 18px 22px;background:rgba(255,255,255,.045);color:#f7f7fa;box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
  font:inherit;font-size:16px;line-height:1.52;letter-spacing:0;caret-color:#9b77ff;-webkit-appearance:none;scroll-padding-bottom:24px;
}
#kvPromptEditorInputV411::placeholder{color:rgba(235,236,245,.34)}
#kvPromptEditorV411 .kv-pe-count-v411{display:none!important}

/* Fullscreen actions are contextual. While typing, the footer disappears and the round
   check dismisses only the keyboard. After dismissal, Smart Edit + Done return. */
#kvPromptEditorV411 .kv-pe-foot-v411{position:relative;flex:0 0 auto;padding:0 16px calc(env(safe-area-inset-bottom,0px) + 14px)}
#kvPromptEditorV411.kv-pe-keyboard-active-v423 .kv-pe-foot-v411{display:none!important}

#kvPromptEditorV411 .kv-pe-done-v411.kv-pe-done-v422{
  width:100%;min-height:56px;border:0;border-radius:20px;background:#f7f7f8;color:#0a0a0d;
  font:inherit;font-size:16px;font-weight:850;letter-spacing:-.01em;
  box-shadow:0 9px 28px rgba(0,0,0,.25),inset 0 1px 0 #fff;cursor:pointer;-webkit-tap-highlight-color:transparent;
  transition:transform .14s ease,background .14s ease;
}
#kvPromptEditorV411 .kv-pe-done-v411.kv-pe-done-v422:active{transform:scale(.985);background:#e9e9eb}

html.kv-prompt-editor-open-v411,html.kv-prompt-editor-open-v411 body{overflow:hidden!important;overscroll-behavior:none!important}
#kvPromptEditorV411 .kv-pe-native-back-slot-v412{width:38px;height:38px;pointer-events:none}
#kvPromptEditorV411.kv-use-telegram-back-v412 .kv-pe-head-v411{grid-template-columns:46px minmax(0,1fr) 46px}

@media(min-width:760px){
  #kvPromptEditorV411{padding:36px}
  #kvPromptEditorV411 .kv-pe-shell-v411{width:min(720px,calc(100vw - 72px));height:min(820px,calc(100dvh - 72px));min-height:0;margin:auto;border:1px solid rgba(255,255,255,.08);border-radius:30px;box-shadow:0 30px 90px rgba(0,0,0,.52)}
  #kvPromptEditorV411 .kv-pe-head-v411{padding:14px 18px 12px}
  #kvPromptEditorV411 .kv-pe-body-v411{padding:14px 18px 10px}
  #kvPromptEditorV411 .kv-pe-foot-v411{padding:0 18px 18px}
  #kvPromptKeyboardDoneV423{display:none!important}
}
@media(max-width:390px){
  .kv-prompt-expand-v411.kv-prompt-expand-v421{width:36px;height:36px;border-radius:12px}
  #kvPromptEditorV411 .kv-pe-body-v411{padding-left:12px;padding-right:12px}
  #kvPromptEditorV411 .kv-pe-foot-v411{padding-left:12px;padding-right:12px}
  html body #create #genPrompt.kv-prompt-expandable-v421,
  html body #create.kv-studio-v157 #genPrompt.kv-prompt-expandable-v421,
  html body #create #kvVideoPromptV19.kv-prompt-expandable-v421{padding-right:62px!important;padding-bottom:14px!important}
}
/* KVANTYRA PROMPT FULLSCREEN EDITOR V423 END */
