:root{--sp-lime:#79abff;--sp-cyan:#62e4ff;--sp-panel:#1d2125;--sp-line:#41484e;--sp-muted:#8e979f}

.prompt-launcher-section{padding:13px!important}
.prompt-launcher-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}
.prompt-launcher-head small,.prompt-launcher-head strong{display:block}
.prompt-launcher-head small{margin-bottom:5px;color:#788188;font:800 11px/1 ui-monospace,Consolas,monospace;letter-spacing:.14em}
.prompt-launcher-head strong{color:#f1f3f1;font-size:12px}
.prompt-launcher-head>span{color:#78838a;font:800 11px/1 ui-monospace,Consolas,monospace}

.prompt-editor-open{position:relative;width:100%;min-height:112px;display:grid;grid-template-columns:minmax(0,1fr) 38px;align-items:center;gap:11px;padding:15px;border:1px solid #4a5359;border-radius:16px;background:linear-gradient(145deg,#24292d,#15191c);box-shadow:inset 4px 4px 12px rgba(255,255,255,.025),inset -5px -5px 14px rgba(0,0,0,.22),0 4px 0 #090b0c;color:#fff;text-align:left;cursor:pointer;overflow:hidden}
.prompt-editor-open:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 98% 4%,rgba(121,171,255,.1),transparent 34%);pointer-events:none}
.prompt-editor-open:hover,.prompt-editor-open:focus-visible{outline:0;border-color:var(--sp-lime);transform:translateY(-1px);box-shadow:inset 4px 4px 12px rgba(255,255,255,.025),inset -5px -5px 14px rgba(0,0,0,.2),0 5px 0 #15417f,0 13px 24px rgba(0,0,0,.2)}
.prompt-editor-copy{position:relative;z-index:1;min-width:0}
.prompt-editor-copy b{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;color:#f3f3f6;font-size:12px;line-height:1.65;word-break:keep-all;overflow-wrap:anywhere}
.prompt-editor-copy small{display:block;margin-top:8px;color:#747f86;font-size:11px}
.prompt-editor-open>i{position:relative;z-index:1;width:36px;height:36px;display:grid;place-items:center;border:1px solid #566069;border-radius:12px;background:linear-gradient(145deg,#343a3f,#1b1f22);box-shadow:inset 0 1px rgba(255,255,255,.07),0 3px 0 #090b0c;color:var(--sp-lime);font-size:14px;font-style:normal}
.prompt-launcher-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
.prompt-launcher-actions>span{display:flex;align-items:center;gap:6px;color:#758087;font-size:11px}
.prompt-launcher-actions>span i{width:6px;height:6px;border-radius:50%;background:var(--sp-cyan);box-shadow:0 0 9px rgba(98,228,255,.65)}
.prompt-launcher-actions>button{min-height:29px;padding:0 10px;border:1px solid rgba(121,171,255,.34);border-radius:999px;background:#191b26;color:#b8d1ff;font-size:11px;font-weight:850;cursor:pointer}

.studio-prompt-modal[hidden]{display:none!important}
.studio-prompt-modal{position:fixed;z-index:1800;inset:0;display:grid;place-items:center;padding:24px}
.studio-prompt-backdrop{position:absolute;inset:0;border:0;background:rgba(3,5,6,.82);backdrop-filter:blur(14px) saturate(85%);cursor:default}
.studio-prompt-dialog{position:relative;width:min(850px,calc(100vw - 36px));max-height:calc(100vh - 40px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid #4a5359;border-radius:27px;background:linear-gradient(145deg,#23292d,#12171a 72%);box-shadow:inset 0 1px rgba(255,255,255,.08),0 10px 0 #050708,0 42px 110px rgba(0,0,0,.72)}
.studio-prompt-dialog:before{content:"";position:absolute;right:-90px;top:-110px;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(121,171,255,.12),transparent 68%);pointer-events:none}
.studio-prompt-dialog>header{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:26px;padding:25px 27px 22px;border-bottom:1px solid #394147;background:linear-gradient(180deg,rgba(255,255,255,.025),transparent)}
.studio-prompt-dialog>header small{display:block;color:var(--sp-lime);font:850 11px/1 ui-monospace,Consolas,monospace;letter-spacing:.16em}
.studio-prompt-dialog>header h2{margin:8px 0 0;color:#f6f6f8;font-size:26px;line-height:1.25;letter-spacing:-.045em}
.studio-prompt-dialog>header p{margin:8px 0 0;color:#8c969d;font-size:12px;line-height:1.55}
.studio-prompt-dialog>header>button{width:39px;height:39px;display:grid;place-items:center;flex:none;border:1px solid #525a61;border-radius:50%;background:linear-gradient(145deg,#343a3f,#1b1f22);box-shadow:inset 0 1px rgba(255,255,255,.08),0 4px 0 #080a0b;color:#e4e7e8;font-size:22px;line-height:1;cursor:pointer}

.studio-prompt-editor-body{min-height:0;padding:24px 27px 20px;overflow-y:auto}
.studio-prompt-editor-body>label{display:block;margin-bottom:10px;color:#dce1e3;font-size:12px;font-weight:900}
.studio-prompt-textarea-wrap{position:relative}
.studio-prompt-textarea-wrap textarea{width:100%;height:clamp(230px,42vh,410px);min-height:230px!important;margin:0;padding:21px 21px 48px;border:1px solid #4a5359;border-radius:18px;outline:0;resize:none;background:linear-gradient(145deg,#171b1e,#0f1315);box-shadow:inset 5px 5px 14px rgba(0,0,0,.36),inset -2px -2px 8px rgba(255,255,255,.02);color:#f4f5f7;font:600 16px/1.8 Pretendard,"Noto Sans KR",system-ui,sans-serif;caret-color:var(--sp-lime);word-break:keep-all;overflow-wrap:anywhere;scrollbar-color:#4e5a60 #14181b}
.studio-prompt-textarea-wrap textarea:focus{border-color:var(--sp-lime);box-shadow:inset 5px 5px 14px rgba(0,0,0,.34),0 0 0 3px rgba(121,171,255,.08),0 0 30px rgba(121,171,255,.045)}
.studio-prompt-textarea-wrap>span{position:absolute;right:16px;bottom:14px;padding:6px 8px;border:1px solid #363f44;border-radius:999px;background:rgba(8,11,12,.78);color:#7c878d;font:800 11px/1 ui-monospace,Consolas,monospace}
.studio-prompt-guide{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}
.studio-prompt-guide>span{display:flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #384147;border-radius:999px;background:#191e21;color:#879299;font-size:11px}
.studio-prompt-guide i{width:6px;height:6px;border-radius:50%;background:#5b666c}
.studio-prompt-guide span:nth-child(1) i{background:var(--sp-lime);box-shadow:0 0 8px rgba(121,171,255,.5)}
.studio-prompt-guide span:nth-child(2) i{background:var(--sp-cyan)}
.studio-prompt-guide span:nth-child(3) i{background:#c294ff}
.studio-prompt-guide span:nth-child(4) i{background:#8fa8ff}
.studio-prompt-guide span:nth-child(5) i{background:#ff829e}

.studio-prompt-dialog>footer{display:flex;align-items:center;justify-content:space-between;gap:13px;padding:16px 27px 21px;border-top:1px solid #394147;background:#151a1d}
.studio-prompt-dialog>footer button{min-height:45px;border-radius:12px;font-size:12px;font-weight:900;cursor:pointer}
.studio-prompt-improve{padding:0 17px;border:1px solid #465057;background:linear-gradient(180deg,#292f33,#1b2023);box-shadow:0 3px 0 #07090a;color:#d6dcdf}
.studio-prompt-improve:hover{border-color:#6b777e;color:#fff}
.studio-prompt-improve:disabled{opacity:.55;cursor:wait}
.studio-prompt-done{min-width:185px;display:flex;align-items:center;justify-content:space-between;padding:0 10px 0 18px;border:1px solid #b5d3ff;background:linear-gradient(180deg,#b8d7ff,var(--sp-lime));box-shadow:inset 0 1px rgba(255,255,255,.75),0 5px 0 #103f8d,0 14px 24px rgba(5,59,157,.16);color:#040a16}
.studio-prompt-done span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:rgba(4,10,22,.12);font-size:14px}
.studio-prompt-modal-open{overflow:hidden!important}

@media(max-width:680px){
  .studio-prompt-modal{padding:9px}
  .studio-prompt-dialog{width:100%;max-height:calc(100vh - 18px);border-radius:21px}
  .studio-prompt-dialog>header{padding:20px 17px 17px}
  .studio-prompt-dialog>header h2{font-size:21px}
  .studio-prompt-dialog>header p{max-width:270px}
  .studio-prompt-editor-body{padding:17px}
  .studio-prompt-textarea-wrap textarea{height:38vh;min-height:210px!important;padding:16px 16px 44px;font-size:14px}
  .studio-prompt-dialog>footer{padding:13px 17px 18px;flex-direction:column-reverse;align-items:stretch}
  .studio-prompt-dialog>footer button{width:100%}
  .studio-prompt-done{min-width:0}
}

@media(prefers-reduced-motion:no-preference){
  .studio-prompt-dialog{animation:studioPromptIn .2s ease-out}
}
@keyframes studioPromptIn{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
