/* Conversation page: "← 내 작업" on its own above the content, a notice only when saving needs attention,
   and the conversation's name (with a pencil to rename it) in the chat header. */
#work-controls{margin:0;color:#34392f;font:14px/1.6 -apple-system,BlinkMacSystemFont,"Noto Sans KR",sans-serif}
.entry-hero>#work-controls{grid-column:1/-1}
.work-home{display:inline-flex;align-items:center;min-height:40px;padding:8px 14px;border:1px solid #576348;border-radius:9px;background:#576348;color:#fff;text-decoration:none;white-space:nowrap}
.work-notice{margin-top:12px;padding:12px 16px;border:1px solid #e3cfc4;border-radius:14px;background:#fff8f3}
.work-notice[hidden]{display:none}
#work-controls .work-status{margin:0;font-size:13px}
#work-controls .work-actions{margin-top:10px}
.entry-room-title{flex:1}
.work-title-row{display:flex;align-items:center;gap:4px;min-width:0}
.work-title-row[hidden]{display:none}
.work-title-row h2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.work-title-edit{flex:none;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:8px;background:transparent;color:#7a8270;cursor:pointer}
.work-title-edit:hover{background:#eef0e7;color:#576348}
.work-title-edit[hidden]{display:none}
#work-title{box-sizing:border-box;width:100%;max-width:440px;padding:6px 10px;border:1px solid #c9cebf;border-radius:9px;background:#fff;font:inherit;font-size:15px;font-weight:600;color:inherit}
#work-title[hidden]{display:none}
#work-controls a:focus-visible,#work-controls button:focus-visible,.work-title-edit:focus-visible,#work-title:focus-visible{outline:3px solid #a47956;outline-offset:3px}
/* Shared with 내 작업 (index.html) */
.work-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
.work-actions button,.work-actions a{background:#f5f6ef;border:1px solid #c7cebc;border-radius:9px;color:#535e46;padding:9px 14px;text-decoration:none;font:inherit;cursor:pointer}
.work-actions button:first-child{background:#576348;color:#fff}
.work-actions button:disabled{opacity:.5;cursor:wait}
.work-actions[hidden],.work-actions [hidden]{display:none!important}
.work-status{font-size:14px;margin:12px 0 0;color:#5d6851}
.work-status[data-error="true"]{color:#8d4b37}
.work-scope{font-size:12px;line-height:1.7;color:#777d70;max-width:780px;margin:8px 0 0}
@media(max-width:600px){.work-notice{padding:12px}#work-title{font-size:16px}.work-actions{gap:7px}.work-actions button{padding:9px 10px;font-size:13px}}
/* Start screen (design.html?new): name + "새로 시작하기" on top, story examples below, no chat yet. */
body.work-starting .entry-conversation,body.work-starting .entry-sidebar,body.work-starting .entry-return-chat{display:none!important}
.work-start{grid-column:1/-1;max-width:640px;color:#34392f;font:14px/1.6 -apple-system,BlinkMacSystemFont,"Noto Sans KR",sans-serif}
.work-start[hidden]{display:none}
.work-start label{display:block;margin-bottom:8px;font-size:13px;font-weight:600}
.work-start-row{display:flex;gap:10px}
#work-start-title{flex:1;min-width:0;box-sizing:border-box;min-height:48px;padding:10px 14px;border:1px solid #c9cebf;border-radius:10px;background:#fff;font:inherit;font-size:16px;color:inherit}
.work-start-row button{flex:none;min-height:48px;padding:10px 20px;border:1px solid #576348;border-radius:10px;background:#576348;color:#fff;font:inherit;font-size:15px;cursor:pointer}
.work-start-row button:disabled{opacity:.6;cursor:wait}
#work-start-title:focus-visible,.work-start-row button:focus-visible{outline:3px solid #a47956;outline-offset:3px}
body.work-starting .entry-example-ideas article{cursor:pointer;transition:border-color .15s,background-color .15s}
body.work-starting .entry-example-ideas article:hover{border-color:#8d9879;background:#f6f7ef}
@media(max-width:400px){.work-start-row{flex-direction:column}.work-start-row button{width:100%}}
/* The story examples belong to the start screen only; the header's "시안 예시" link goes with them. */
body:not(.work-starting) #story-examples,body:not(.work-starting) .entry-header a[href="#story-examples"]{display:none}
@media(max-width:760px){
 /* "← 내 작업" takes the first row, so the page heading stays above the chat instead of dropping below it. */
 .entry-hero>#work-controls{grid-row:1}
 .entry-hero>.entry-copy{grid-row:2}
 .entry-hero>.entry-sidebar{grid-row:3}
 .entry-hero>.entry-conversation{grid-row:4}
}
/* In a conversation the chat is the page. The welcome heading stays for screen readers only (the AI-connection
   notice in the same block still shows), and on wide screens the chat fits the window so the input never drops
   below the fold. The design-studio size (story-start.css) still wins once designs are in the chat. */
body:not(.work-starting) .entry-copy>:not(.entry-capability-note){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
body:not(.work-starting) .entry-copy:has(>.entry-capability-note[hidden]){display:contents}
body:not(.work-starting) .entry-hero{padding-top:18px}
@media(min-width:761px){body:not(.work-starting) .entry-conversation:not(:has(.entry-design-message)){height:clamp(520px,calc(100vh - 190px),780px);height:clamp(520px,calc(100dvh - 190px),780px)}}
/* Korean lines break between words, not in the middle of one ("스카이블/루"). A word longer than the whole line
   still wraps, so nothing overflows. */
body.story-entry,.work-library{word-break:keep-all;overflow-wrap:break-word}
/* Summary rows (story-journey.js): one line per part, the object above its colour with a swatch, notes smaller,
   and parts still to be settled lighter than decided ones. */
.entry-summary-line{display:block;line-height:1.6}
.entry-summary-line+.entry-summary-line{margin-top:2px}
.entry-summary-line.is-open{color:#8a8f84}
.entry-summary-line.is-note{font-size:11px;color:#7d8476}
.entry-summary-line .entry-color-dot{margin:0 6px 0 0;width:12px;height:12px;vertical-align:-1px}
/* What is left before designs: one chip per item, so an item never splits across lines. */
.entry-missing{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.entry-missing>span{white-space:nowrap;padding:1px 9px;border:1px solid #d4d9c8;border-radius:11px;background:#f4f5ee;color:#55604a;font-size:11.5px;line-height:1.7}
/* The starter questions are for an empty chat; once the customer has written, they would only interrupt. */
.entry-conversation:has(.entry-message.user) .entry-prompts{display:none}
/* The hidden "나" label on the customer's messages is absolutely positioned. Without a positioned message around it,
   it escaped the scrolling chat box and stretched the page far below the footer once the chat started to scroll. */
.entry-message.user{position:relative}
