@import url("../korean-typography.css?v=KOWRAP0071");
:host{display:block;color:#16171b;background:#fff;font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo",sans-serif;font-synthesis:none}
:root{color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;color:#16171b;background:#fff;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button:disabled{opacity:1;-webkit-text-fill-color:currentColor;cursor:default}main{height:100dvh;height:100svh;display:flex;flex-direction:column;overflow:hidden}.conversation{flex:1;min-height:0;overflow:auto;padding:20px 17px 28px;overscroll-behavior:contain}.user{margin:0 0 19px auto;width:fit-content;max-width:90%;padding:12px 14px;background:#e7f0ff;border-radius:17px;font-size:16px;line-height:1.4;letter-spacing:-.35px}.speaker{display:block;color:#73767e;font-size:13px;line-height:20px;margin-bottom:6px}.reply p{font-size:16px;line-height:1.55;letter-spacing:-.3px;margin:0}.synopsis{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid #e7e8ed;border-radius:12px;background:#fff;padding:10px;margin:18px 0 0;color:#17181c;min-height:80px}.thumbnail{width:94px;height:60px;object-fit:cover;border-radius:8px}.synopsis strong{font-size:15px;line-height:1.4;display:block;font-weight:600;letter-spacing:-.4px}.synopsis small{display:block;font-size:13px;color:#777b85;line-height:1.5;white-space:nowrap}.chevron{width:20px;height:20px;opacity:.4;margin-left:auto}.followup{margin-top:21px}.dock{flex:none;background:#fff;padding-bottom:env(safe-area-inset-bottom,0px)}.preview-note{font-size:10px;line-height:14px;color:#858890;text-align:center;margin:0 0 5px}.composer{display:flex;gap:8px;align-items:center;background:#f3f4f6;border-radius:28px;margin:0 14px 14px;padding:5px;min-height:48px}.composer input{min-width:0;flex:1;border:0;background:transparent;outline:none;padding:7px 8px;font-size:15px;color:#1d1d1f;letter-spacing:-.4px}.composer input::placeholder{color:#92969f}.composer button{height:38px;width:38px;min-width:38px;border:0;border-radius:50%;background:#087aff;display:grid;place-items:center}.composer button img{width:25px;height:25px;filter:invert(1)}nav{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #e9eaee;padding:8px 6px 12px}nav button{border:0;background:transparent;color:#737780;display:flex;align-items:center;flex-direction:column;gap:4px;min-height:48px;padding:0;font-size:12px}nav .selected{color:#087aff}.icon{display:block;width:25px;height:25px;background:currentColor;mask-repeat:no-repeat;mask-position:center;mask-size:contain}.home{mask-image:url(house.svg)}.folder{mask-image:url(folder.svg)}.more{mask-image:url(ellipsis.svg)}@media(max-width:350px){.conversation{padding-inline:12px}.synopsis{gap:8px}.thumbnail{width:76px}.synopsis strong{font-size:14px}.synopsis small{font-size:12px}.composer input{font-size:14px}}
/* MOBCHAT001: live conversation, independently scrollable above the input. */
.user p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.reply{margin-bottom:22px}.reply p{white-space:pre-wrap;overflow-wrap:anywhere}.user{margin-bottom:22px}.composer textarea{font:inherit;resize:none;min-width:0;flex:1;background:transparent;border:0;outline:none;padding:8px 9px;font-size:16px;line-height:22px;max-height:120px;color:#16171b}.composer textarea::placeholder{color:#92969f}.composer button:disabled{background:#b8d5fb}.chat-status{font-size:12px;line-height:18px;color:#6e737d;margin:0 18px 6px;overflow-wrap:anywhere}.chat-status:empty{display:none}.latest{display:block;border:1px solid #e7e8ed;background:white;color:#087aff;border-radius:18px;margin:0 auto 8px;padding:8px 14px;font-size:12px}.latest[hidden]{display:none}.empty{font-size:15px;color:#777b85;margin:12px 0}.optimistic{opacity:.6}.message-error{display:block;color:#ad2525;font-size:12px;margin-top:6px}.conversation{-webkit-overflow-scrolling:touch;scrollbar-width:thin}

/* MOBAPI0001: compact composer settings, mobile bottom sheet. */
.composer{margin-bottom:4px}.chat-tools{padding:0 18px 8px}.settings-open{border:0;background:transparent;color:#555e6e;font-size:12px;padding:7px 0;max-width:100%;text-align:left}.connection-label{margin-left:7px;color:#087aff;overflow-wrap:anywhere}.settings-sheet{border:0;border-radius:24px 24px 0 0;width:100%;max-width:700px;max-height:85dvh;margin:auto 0 0;padding:20px 22px calc(24px + env(safe-area-inset-bottom,0px));color:#16171b;background:#fff;box-shadow:0 -8px 40px #0002}.settings-sheet::backdrop{background:#0005}.sheet-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.sheet-heading h2{font-size:20px;margin:0}.settings-close{border:0;border-radius:50%;background:#f1f2f4;width:36px;height:36px;font-size:24px;color:#646973}.settings-sheet label{display:block;font-size:14px;margin:16px 0}.settings-sheet label[hidden]{display:none}.settings-sheet select{display:block;width:100%;font:inherit;font-size:16px;background:#f4f5f7;border:1px solid #e2e5e9;border-radius:12px;padding:13px 10px;margin-top:8px;color:#17181c}.connection-status,.settings-note{font-size:13px;line-height:1.5;color:#69717d}.connection-refresh,.settings-save{font:inherit;padding:13px;border-radius:12px;border:0;width:100%;margin-top:8px}.connection-refresh{color:#087aff;background:#edf4ff}.settings-save{color:white;background:#087aff}.settings-open:focus-visible,.settings-sheet button:focus-visible{outline:2px solid #087aff;outline-offset:3px}

/* MOBKEY0001: keep the conversation spacious while composing. */
:host(.is-typing) nav,:host(.is-typing) .chat-tools{display:none}:host(.is-typing) .composer{margin-bottom:6px}:host(.is-typing) .dock{padding-bottom:0}

/* MOBSWI0001: connection switch remains available beside send while typing. */
.composer .backend-toggle{background:#e4eaf2;color:#315577;border:1px solid #d4deeb;border-radius:10px;width:44px;min-width:44px;height:38px;font-size:11px;font-weight:700;letter-spacing:.2px}.backend-toggle:focus-visible{outline:2px solid #087aff;outline-offset:2px}.composer{gap:5px}



/* MOBCLR0001: connection selection lives inside the composer. */
.chat-tools{display:none}

/* MOBMOD0001: compact model menu next to transport selector. */
.composer .model-open{display:flex;gap:4px;background:transparent;color:#343b46;border-radius:9px;width:auto;min-width:52px;max-width:92px;padding:0 5px;font-size:11px}.model-open span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.performance-info{padding:14px;background:#f4f5f7;border-radius:12px;font-size:14px}.performance-detail{font-size:13px;line-height:1.5;color:#69717d;margin:7px 0 0}@media(max-width:350px){.composer .model-open{max-width:68px}.composer textarea{padding-inline:5px}}

/* CHATMAN001: manual ChatGPT / Your dot exchange. */
.external-chat textarea{display:block;width:100%;box-sizing:border-box;font:inherit;font-size:16px;line-height:1.5;margin-top:8px;padding:10px;border:1px solid #d4deeb;border-radius:12px;resize:vertical}.external-chat p{font-size:14px;line-height:1.5}.external-chat a{display:block;text-align:center;padding:12px;color:#087aff}.external-resume{width:calc(100% - 28px);margin:0 14px 8px;font-size:13px}.external-resume[hidden]{display:none}

/* CHATBAR001: full-width writing area above the composer tools. */
.composer{display:grid;grid-template-columns:auto minmax(0,1fr) 38px;gap:4px 8px;align-items:center;padding:10px;border-radius:24px;margin-bottom:10px}.composer textarea{grid-column:1 / -1;grid-row:1;width:100%;min-height:42px;padding:8px 6px}.composer .backend-toggle{grid-column:1;grid-row:2;width:auto;min-width:48px;height:36px;border:0;background:transparent;color:#424750;font-size:13px;padding:0 8px}.composer .model-open{grid-column:2;grid-row:2;justify-self:start;width:auto;max-width:100%;height:36px;font-size:13px;padding:0 4px;justify-content:start}.composer button[type=submit]{grid-column:3;grid-row:2;background:#17181c}.composer button[type=submit]:disabled{background:#d8dadd}.composer .backend-toggle:disabled,.composer .model-open:disabled{background:transparent;opacity:.5}

/* CHATBOX001: readable mobile conversation library. */
.library-list{max-height:52dvh;overflow:auto;margin-top:12px}.library-row{display:flex;align-items:center;border-bottom:1px solid #eceef1;gap:12px;padding:8px 0}.library-open{flex:1;min-width:0;background:none;border:0;text-align:left;padding:12px 0;font:inherit;font-size:15px;color:#20232a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-open[aria-current=true]{color:#087aff;font-weight:600}.library-action{flex:none;padding:12px;border:0;border-radius:10px;background:#f4f5f7;color:#bd3535;font:inherit;font-size:13px}.library-status,.delete-title{overflow-wrap:anywhere;font-size:14px;line-height:1.5}

/* TOPICUI001: first conversation choice cards */
.topic-intro{margin-top:clamp(24px,10dvh,90px)}
.topic-intro>p{font-size:25px;font-weight:650;letter-spacing:-.7px}
.topic-choices{display:grid;gap:12px;margin-top:22px}
.topic-choice{display:flex;align-items:center;gap:13px;width:100%;min-height:64px;padding:14px 16px;border:1px solid #e5e5ea;border-radius:18px;background:#fff;color:#1d1d1f;font:inherit;text-align:left;cursor:pointer}
.topic-number{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#f2f2f7;color:#007aff;font-size:15px;font-weight:600;flex-shrink:0}
.topic-choice:active{background:#eef5ff}.topic-choice:focus-visible{outline:2px solid #007aff;outline-offset:3px}.topic-choice:disabled{opacity:.5;cursor:default}

/* CHATBTN001: inline conversational quick replies */
.topic-intro{margin-top:0}.topic-intro>p{font-size:inherit;font-weight:500;letter-spacing:normal}
.reply .topic-choices{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.reply .topic-choice{width:auto;min-height:44px;padding:10px 16px;border-radius:22px;border-color:#d6e6ff;color:#007aff;font-size:15px;background:#f8fbff}
.reply .topic-choice[aria-pressed=true]{background:#e5efff;border-color:#007aff;opacity:1}
.reply .topic-choice:disabled:not([aria-pressed=true]){opacity:.5}

nav.with-md-library{grid-template-columns:repeat(4,minmax(0,1fr))}.md-document{mask-image:url(folder.svg)}

nav.with-output-library{grid-template-columns:repeat(5,minmax(0,1fr))}nav.with-output-library button{font-size:11px;white-space:nowrap}.output-icon{-webkit-mask-image:url(output.svg);mask-image:url(output.svg)}.preview-icon{-webkit-mask-image:url(preview.svg);mask-image:url(preview.svg)}.icon{-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:contain}

@font-face{font-family:'SB AggroOTF Bold';src:url('/api/workshop/fonts/SB_AggroOTF_B.otf')}@font-face{font-family:'Pretendard Black';src:url('/api/workshop/fonts/Pretendard-Black.ttf')}
nav.with-preview{grid-template-columns:repeat(6,minmax(0,1fr))}nav.with-preview button{font-size:10px}.format-preview{max-height:90dvh;overflow:auto}.format-preview .preview-close{border:0;background:transparent;color:#087aff;min-height:44px}.preview-tabs{display:flex;gap:6px;margin:12px 0}.preview-tabs button{flex:1;min-height:44px;border:0;border-radius:12px;background:#f1f2f5;color:#555}.preview-tabs [aria-selected=true]{background:#e7f0ff;color:#087aff}.preview-pane[hidden]{display:none}.canonical-canvas{position:relative;width:100%;aspect-ratio:9/16;container-type:inline-size;overflow:hidden;border:1px solid #e4e5e8;border-radius:2px}.canonical-media{display:flex;align-items:center;justify-content:center;background:#e8e9eb;color:#626874;font-size:4cqw;text-align:center;padding:12px;box-sizing:border-box}.preview-pager{display:flex;align-items:center;justify-content:space-between;margin:8px 0}.preview-pager button{min-width:44px;min-height:44px;border:0;border-radius:12px;background:#f2f3f5;font-size:24px}.preview-pager button:disabled{opacity:.3}.format-preview .preview-state{font-size:12px;color:#626874}.format-preview .preview-note{font-size:12px;line-height:1.5;text-align:left}.preview-script article{border-bottom:1px solid #e5e7eb;padding:8px 0}.preview-script p,.preview-title{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.format-preview a{color:#087aff;font-size:13px}

.title-recommend,.title-save,.title-candidates button{min-height:44px;border:0;border-radius:12px;background:#e7f0ff;color:#087aff;padding:10px 12px;margin:8px 0;font:inherit}.title-candidates article{border:1px solid #e4e7ed;border-radius:14px;padding:12px;margin:12px 0}.title-candidates label,.title-editor-label{display:block;font-size:14px;font-weight:600}.title-candidates textarea,.title-editor{box-sizing:border-box;width:100%;font:inherit;font-size:16px;line-height:1.5;padding:10px;border:1px solid #d9dee6;border-radius:10px;background:#fff;color:#1d1d1f;margin:8px 0}.title-candidates small{display:block;color:#626874;line-height:1.5}.title-status{font-size:13px;line-height:1.5}.title-save:disabled,.title-recommend:disabled{opacity:.5}
