.template-prompt-editor__backdrop{z-index:60;position:fixed;inset:0}.template-prompt-editor{z-index:61;border:1px solid var(--color-border);background:var(--color-surface);width:min(760px,100vw - 32px);max-height:calc(100dvh - 32px);color:var(--color-foreground);font-family:var(--font-sans);box-shadow:0 24px 80px color-mix(in srgb,var(--color-p-black)24%,transparent);border-radius:24px;outline:none;flex-direction:column;margin:0;display:flex;position:fixed;top:50%;left:50%;overflow:hidden;transform:translate(-50%,-50%)}.template-prompt-editor__header{flex-shrink:0;justify-content:space-between;align-items:center;gap:16px;padding:20px 20px 16px 28px;display:flex}.template-prompt-editor__header h2{letter-spacing:-.4px;margin:0;font-size:22px;font-weight:600;line-height:1.3}.template-prompt-editor button{border:1px solid var(--color-border);background:var(--color-surface);min-height:44px;color:var(--color-foreground);font:inherit;cursor:pointer;border-radius:12px;justify-content:center;align-items:center;padding:0 20px;font-size:14px;font-weight:600;transition:background .12s,transform .12s;display:inline-flex}.template-prompt-editor button:hover{background:var(--color-surface-elevated)}.template-prompt-editor button:active{transform:translateY(1px)}.template-prompt-editor button:focus-visible{outline:2px solid var(--color-accent);outline-offset:3px}.template-prompt-editor button.template-prompt-editor__close{width:44px;color:var(--color-foreground-secondary);border-color:#0000;flex-shrink:0;padding:0}.template-prompt-editor__body{flex-direction:column;gap:12px;min-height:0;padding:0 28px 24px;display:flex;overflow-y:auto}.template-prompt-editor textarea{box-sizing:border-box;resize:none;flex-shrink:0;width:100%;height:min(360px,46dvh);min-height:120px;display:block}.template-prompt-editor__meta{color:var(--color-foreground-secondary);justify-content:space-between;align-items:baseline;gap:16px;font-size:13px;line-height:1.5;display:flex}.template-prompt-editor__meta p{margin:0}.template-prompt-editor__meta span{font-variant-numeric:tabular-nums;flex-shrink:0}.template-prompt-editor__limit{color:var(--color-coral)}.template-prompt-editor__footer{border-top:1px solid var(--color-border);flex-shrink:0;justify-content:flex-end;gap:12px;padding:16px 28px 20px;display:flex}.template-prompt-editor button.template-prompt-editor__apply{border-color:var(--color-accent);background:var(--color-accent);min-width:112px;color:var(--color-p-white)}.template-prompt-editor button.template-prompt-editor__apply:hover{background:color-mix(in srgb,var(--color-accent)88%,var(--color-p-black))}@media (width<=600px){.template-prompt-editor{border-radius:20px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.template-prompt-editor__header{padding:12px 12px 12px 20px}.template-prompt-editor__header h2{font-size:20px}.template-prompt-editor__body{padding:0 20px 20px}.template-prompt-editor__meta{flex-wrap:wrap;gap:4px 12px}.template-prompt-editor__footer{padding:16px 20px}.template-prompt-editor__footer button{flex:1}}@media (prefers-reduced-motion:reduce){.template-prompt-editor button{transition:none}}