:root{--bg:#f2f4f6;--surface:#fff;--surface-soft:#f7f8fa;--text:#191f28;--muted:#6b7684;--line:#e5e8eb;--blue:#3182f6;--blue-hover:#1b64da;--danger:#e5484d;--radius:24px;--shadow:0 8px 30px rgba(0,0,0,.04)}
*{box-sizing:border-box}html{background:var(--bg);scroll-behavior:smooth}body{margin:0;color:var(--text);background:var(--bg);font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans KR",sans-serif;-webkit-font-smoothing:antialiased}button,textarea{font:inherit}fieldset{min-width:0;margin:0;padding:0;border:0}.app-shell{width:min(100%,760px);min-height:100dvh;margin:0 auto;padding:0 20px 32px;display:flex;flex-direction:column}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:10px;align-items:center;color:var(--text);font-weight:750;text-decoration:none;font-size:17px}.brand-mark{width:34px;height:34px;border-radius:11px;object-fit:cover}.status-pill{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:#4e5968;background:#e8ebed;padding:8px 10px;border-radius:999px;transition:.2s}.status-pill i{width:7px;height:7px;border-radius:50%;background:#f59f00}.status-pill[data-state=ready] i{background:#20c997}.status-pill[data-state=offline] i{background:#fa5252}.hero{padding:56px 6px 34px}.eyebrow{margin:0 0 10px;font-size:12px;line-height:1;font-weight:800;letter-spacing:.08em;color:var(--blue)}.hero h1,.result-hero h1{font-size:clamp(34px,7vw,52px);line-height:1.16;letter-spacing:-.05em;margin:0;font-weight:800}.hero>p:last-child,.result-hero>div>p:last-child{max-width:540px;margin:20px 0 0;color:var(--muted);font-size:17px;line-height:1.7;letter-spacing:-.02em}.panel{background:var(--surface);border-radius:var(--radius);padding:28px;box-shadow:var(--shadow);margin-bottom:16px}.field-head,.section-title{display:flex;align-items:center;justify-content:space-between;gap:16px}.field-head{margin-bottom:12px}.field-head label{font-size:16px;font-weight:750}.field-head span,.section-title>span{font-size:12px;color:#8b95a1}.composer-panel textarea{width:100%;min-height:150px;resize:vertical;border:0;outline:0;background:var(--surface-soft);border-radius:18px;padding:18px;color:var(--text);font-size:16px;line-height:1.65;transition:box-shadow .18s,background .18s}.composer-panel textarea:focus{background:#fff;box-shadow:0 0 0 2px var(--blue)}.composer-panel textarea::placeholder{color:#b0b8c1}.composer-panel fieldset:disabled textarea,.composer-panel fieldset:disabled .quick-prompts button{opacity:.55;cursor:not-allowed}.quick-prompts{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 20px}.quick-prompts button,.text-button{border:0;cursor:pointer}.quick-prompts button{padding:9px 12px;border-radius:999px;background:#f2f4f6;color:#4e5968;font-size:13px;font-weight:650}.quick-prompts button:hover{background:#e8ebed}.primary-button,.secondary-button{width:100%;height:56px;border:0;border-radius:16px;cursor:pointer;font-weight:750;font-size:16px;transition:transform .15s,background .15s}.primary-button{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--blue);color:#fff}.primary-button:hover{background:var(--blue-hover)}.primary-button:active,.secondary-button:active{transform:scale(.985)}.primary-button[disabled]{cursor:not-allowed;opacity:.7}.spinner{display:none;width:18px;height:18px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}.primary-button.loading .spinner{display:block}.guide-panel{padding-bottom:18px}.section-title h2{font-size:20px;letter-spacing:-.035em;margin:0}.tip-list{margin-top:12px}.tip-list>div{display:grid;grid-template-columns:38px 1fr;gap:8px;padding:16px 0;border-top:1px solid #f0f1f3}.tip-list>div:first-child{border-top:0}.tip-list b{font-size:12px;color:var(--blue);padding-top:4px}.tip-list p{display:flex;flex-direction:column;gap:5px;margin:0}.tip-list strong{font-size:15px}.tip-list span{font-size:14px;line-height:1.55;color:var(--muted)}.result-hero{padding:56px 6px 30px;display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.text-button{flex:0 0 auto;background:#e8f3ff;color:#1b64da;font-weight:750;padding:11px 14px;border-radius:13px}.text-button:hover{background:#d9ecff}.result-card{margin-bottom:0}.image-frame{position:relative;min-height:300px;display:grid;place-items:center;background:#f2f4f6;border-radius:20px;overflow:hidden}.image-frame img{display:block;width:100%;height:auto;max-height:680px;object-fit:contain}.error-state{text-align:center;padding:48px 24px}.error-icon{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 16px;border-radius:16px;background:#ffebee;color:var(--danger);font-weight:900;font-size:22px}.error-state strong{display:block;font-size:18px}.error-state p{margin:8px auto 0;color:var(--muted);line-height:1.55}.result-actions{margin-top:14px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.secondary-button{background:#e8f3ff;color:#1b64da}.secondary-button:hover{background:#d9ecff}.share-button{background:var(--blue);color:#fff}.share-button:hover{background:var(--blue-hover)}.secondary-button:disabled{cursor:not-allowed;opacity:.65}.prompt-summary{margin-top:18px;padding:18px;background:var(--surface-soft);border-radius:16px}.prompt-summary span{display:block;margin-bottom:6px;color:#8b95a1;font-size:12px;font-weight:700}.prompt-summary p{margin:0;color:#4e5968;font-size:14px;line-height:1.55;word-break:break-word}.footer{margin-top:auto;text-align:center;padding:32px 0 8px;color:#b0b8c1;font-size:12px}.footer a{color:inherit;text-decoration:none;font-weight:700}.footer a:hover{color:#6b7684}.modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px}.modal[hidden]{display:none}.modal-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(25,31,40,.42);backdrop-filter:blur(4px);cursor:default}.modal-card{position:relative;width:min(100%,360px);padding:26px;background:#fff;border-radius:24px;box-shadow:0 20px 60px rgba(0,0,0,.18);text-align:center;animation:modal-in .18s ease-out}.modal-icon{display:grid;place-items:center;width:44px;height:44px;margin:0 auto 14px;border-radius:15px;background:#e8f3ff;color:var(--blue);font-size:20px;font-weight:900}.modal-card h2{margin:0;font-size:20px;letter-spacing:-.035em}.modal-card p{margin:10px 0 22px;color:var(--muted);font-size:14px;line-height:1.6;white-space:pre-wrap;word-break:keep-all}.modal-actions{display:flex}.modal-button{width:100%;height:48px;border:0;border-radius:14px;background:var(--blue);color:#fff;font-size:14px;font-weight:750;cursor:pointer}.modal-button:active{transform:scale(.985)}.modal-open{overflow:hidden}@keyframes modal-in{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}[hidden]{display:none!important}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:560px){.app-shell{padding:0 16px 24px}.topbar{height:64px}.hero{padding:42px 4px 26px}.hero>p:last-child,.result-hero>div>p:last-child{font-size:15px;margin-top:16px}.panel{padding:22px;border-radius:22px}.composer-panel textarea{min-height:138px;padding:16px}.guide-panel{padding-bottom:12px}.status-pill{font-size:11px}.image-frame{min-height:240px}.result-hero{padding:42px 4px 24px;align-items:flex-start;flex-direction:column}.result-hero .text-button{align-self:flex-start}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
