/* Authored media workspace: data and controls remain real DOM. */
body.storyworld[data-workspace=welcome] #thought-field,body.storyworld[data-workspace=media] #thought-field{display:none}
body.storyworld[data-workspace=welcome] .conversation-stage{width:min(590px,calc(100vw - 48px));top:49%}
body.storyworld[data-workspace] .workspace-demo[hidden],.workspace-clouds[hidden]{display:none}
body.storyworld[data-workspace=welcome] .timon-avatar,body.storyworld[data-workspace=media] .timon-avatar{width:38px;height:38px;filter:none;margin-bottom:20px}
body.storyworld[data-workspace=welcome] .greeting{font-size:27px;line-height:1.5}
body.storyworld[data-workspace=welcome] .composer,body.storyworld[data-workspace=media] .composer{width:100%;margin-left:0;margin-right:0}
body.storyworld[data-workspace=welcome] .visitor-backdrop,body.storyworld[data-workspace=media] .visitor-backdrop,body.storyworld[data-workspace=welcome] .case-orbit,body.storyworld[data-workspace=media] .case-orbit{display:none!important}
.workspace-clouds{position:absolute;inset:0;pointer-events:none;z-index:5}
.workspace-cloud{position:absolute;width:245px;height:116px;pointer-events:auto;background:url('/assets/storyworld/thought-cloud-v1.svg') center/100% 100% no-repeat;padding:28px 35px;color:#284c3a;font-size:17px;line-height:1.35;transition:transform .2s}
.workspace-cloud:hover{transform:translateY(-3px)}.workspace-cloud[data-slot="0"]{left:10%;top:22%}.workspace-cloud[data-slot="1"]{right:8%;top:31%}.workspace-cloud[data-slot="2"]{left:16%;bottom:12%}
.workspace-demo{position:absolute;inset:155px 350px 24px 32px;z-index:2;display:flex;flex-direction:column;gap:10px;min-width:0}
.workspace-models{position:absolute;top:-70px;left:35%;display:flex;width:320px;padding:4px;border:1px solid #b9dfcb;background:#ffffffd9;border-radius:28px}.workspace-models button{flex:1;padding:11px 15px;font-size:14px;border-radius:24px;color:#577264}.workspace-models button[aria-pressed=true]{background:#17784a;color:#fff;box-shadow:0 3px 8px #17784a24}
.workspace-board{flex:1;min-height:0;padding:16px 16px 14px;background:#ffffffbf;border:1px solid #bce2ce;border-radius:20px;display:flex;flex-direction:column;gap:12px;box-shadow:0 12px 45px #34815b08}
.workspace-board>header,.workspace-timeline>header{display:flex;align-items:center;gap:14px;flex-shrink:0}.workspace-board h2,.workspace-timeline h2{font-size:20px;font-weight:500;line-height:1.25}.workspace-badge{font-size:11px;padding:6px 13px;border-radius:18px;background:#e5f4eb;color:#47745a}
.workspace-media{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(220px,1fr);gap:12px;flex:1;min-height:0}.workspace-document,.workspace-photo,.workspace-audio,.workspace-result{background:#fff;border:1px solid #e0ece5;border-radius:10px;overflow:hidden;min-width:0}.workspace-document{display:flex;flex-direction:column;min-height:0}.workspace-document header,.workspace-side header{display:flex;justify-content:space-between;align-items:center;min-height:36px;padding:7px 10px;gap:5px}.workspace-document header strong,.workspace-side header strong{font-size:11px;font-weight:500;overflow-wrap:anywhere}.workspace-document-tools{display:flex;align-items:center;gap:5px;white-space:nowrap;color:#5f7869;font-size:11px}.workspace-document-tools button{width:24px;height:24px;background:#f4f8f6;border-radius:50%;font-size:15px}.workspace-document-tools a{padding:3px;font-size:10px}.workspace-document-body{display:flex;flex:1;min-height:0}.workspace-pages{width:63px;flex-shrink:0;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:6px;background:#f6f9f7;border-right:1px solid #e4ece7}.workspace-pages button{background:#fff;border:1px solid #dde8e1;border-radius:5px;padding:3px;height:68px;flex-shrink:0}.workspace-pages button[aria-current=page]{border:2px solid #17784a}.workspace-pages img{width:100%;height:100%;object-fit:contain}.workspace-plan-scroll{flex:1;overflow:auto;min-width:0;display:flex;align-items:flex-start;background:#fff}.workspace-plan{width:100%;min-width:100%;height:100%;object-fit:contain;object-position:center;flex-shrink:0}.workspace-side{display:flex;flex-direction:column;gap:10px;min-height:0;overflow:auto}.workspace-photo{flex:1;min-height:0;flex-shrink:0}.workspace-photo-open{display:block;width:100%;height:calc(100% - 36px);min-height:145px;padding:0}.workspace-photo img{display:block;width:100%;height:100%;object-fit:cover}.workspace-audio,.workspace-result{flex-shrink:0}.workspace-audio audio{display:block;width:100%;height:40px;padding:0 4px 6px}.workspace-result-open{display:flex;align-items:center;gap:10px;width:100%;padding:4px 8px 9px;text-align:left;font-size:12px;line-height:1.4}.workspace-result-open img{width:40%;height:75px;object-fit:contain;background:#f8faf9;border:1px solid #e4ece7;border-radius:5px}.workspace-result-open small{display:block;color:#5c7b69;font-size:9px;margin-top:6px}.workspace-next-hint{font-size:12px;color:#779082;line-height:1.5;padding:14px 3px}.workspace-side button:hover{background:#f3faf6}
.workspace-timeline{flex:0 0 136px;padding:12px 16px;border:1px solid #bce2ce;border-radius:20px;background:#ffffffb3;overflow:hidden}.workspace-timeline>header{justify-content:space-between;margin-bottom:10px}.workspace-timeline h2{font-size:17px}.workspace-timeline>header button{font-size:12px;color:#17784a}.workspace-history{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.workspace-history-item{display:flex;align-items:center;gap:7px;min-width:0;text-align:left;border:1px solid #e0ece5;border-radius:10px;background:#fff;padding:7px;height:73px}.workspace-history-item[aria-current=true]{border-color:#87c6a4;background:#f5fcf8}.workspace-history-item img{width:50%;height:54px;object-fit:contain}.workspace-history-item>span:last-child{font-size:10px;line-height:1.4;overflow-wrap:anywhere}.workspace-wave{color:#17784a;font-size:19px;letter-spacing:-2px;width:45%;overflow:hidden;white-space:nowrap}
body.storyworld[data-workspace=media] .conversation-layout{min-height:800px;height:100svh}
body.storyworld[data-workspace=media] .conversation-stage{top:auto;left:auto;right:26px;bottom:34px;transform:none;width:298px;background:#ffffffc9;border:1px solid #bce2ce;border-radius:20px;padding:22px 18px 10px;z-index:6}
body.storyworld[data-workspace=media] .conversation::before{display:none}body.storyworld[data-workspace=media] .message{font-size:14px;line-height:1.55}body.storyworld[data-workspace=media] .message.user{font-size:13px;padding:9px 12px}body.storyworld[data-workspace=media] .composer{min-height:48px;padding-left:13px;margin-top:22px;box-shadow:0 4px 15px #17784a0d}body.storyworld[data-workspace=media] .composer textarea{font-size:13px}body.storyworld[data-workspace=media] .send-button{width:32px;height:36px}body.storyworld[data-workspace=media] .timon-avatar{width:30px;height:30px;margin-bottom:14px}body.storyworld[data-workspace=media] .conversation-back{display:none}
body.storyworld[data-workspace=media] .workspace-cloud[data-slot="0"]{left:2%;top:10px;width:215px;height:108px}body.storyworld[data-workspace=media] .workspace-cloud[data-slot="1"]{right:12px;top:105px;width:280px;height:120px}body.storyworld[data-workspace=media] .workspace-cloud[data-slot="2"]{left:auto;right:22px;top:245px;bottom:auto;width:265px;height:118px}
.workspace-viewer{width:min(1080px,calc(100vw - 30px));max-height:94svh;padding:20px;border:1px solid #c3dfce;border-radius:18px;background:#fff;color:#284c3a}.workspace-viewer::backdrop{background:#244a374a;backdrop-filter:blur(4px)}.workspace-viewer>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.workspace-viewer h2{font-size:18px;font-weight:500}.workspace-viewer header button{font-size:28px;width:38px;height:38px;border-radius:50%;background:#f1f8f4}.workspace-viewer-content img{display:block;width:100%;height:auto;max-height:76svh;object-fit:contain}.workspace-viewer-content p{font-size:19px;line-height:1.7;padding:15px 5px}.workspace-viewer-content small{display:block;font-size:12px;color:#64816f;margin-top:15px}
@media(max-width:1100px){.workspace-demo{inset:155px 322px 24px 20px}.workspace-media{grid-template-columns:minmax(0,1.4fr) minmax(190px,1fr)}body.storyworld[data-workspace=media] .conversation-stage{right:15px;width:290px}.workspace-board{padding:12px}.workspace-document header{align-items:flex-start;flex-direction:column}.workspace-document header strong{font-size:10px}.workspace-document-tools{width:100%;justify-content:flex-end}.workspace-models{left:15%;width:290px}.workspace-history-item>span:last-child{font-size:9px}.workspace-timeline{padding:12px}.workspace-board h2{font-size:18px}.workspace-badge{font-size:10px;padding:5px 9px}}
@media(max-width:859px),(max-height:599px){body.storyworld[data-workspace=welcome] .conversation-layout,body.storyworld[data-workspace=media] .conversation-layout{height:auto;min-height:calc(100svh - 85px);padding:105px 18px 35px;display:flex;flex-direction:column;gap:24px;align-items:center}.workspace-demo{position:relative;inset:auto;width:100%;display:flex;order:1;gap:14px;margin-top:65px}.workspace-models{top:-54px;left:50%;transform:translateX(-50%);width:280px}.workspace-board{min-height:450px}.workspace-media{grid-template-columns:minmax(0,1.6fr) minmax(180px,1fr)}.workspace-timeline{flex-basis:auto;min-height:130px}.workspace-history{overflow-x:auto;grid-template-columns:repeat(4,150px);padding-bottom:6px}.workspace-clouds{position:static;display:flex;flex-wrap:wrap;justify-content:center;gap:10px;width:100%;order:3}.workspace-cloud,body.storyworld[data-workspace=media] .workspace-cloud[data-slot]{position:static;inset:auto;width:220px;height:105px;font-size:15px;padding:24px 32px}.workspace-cloud{flex-shrink:0}body.storyworld[data-workspace=welcome] .conversation-stage,body.storyworld[data-workspace=media] .conversation-stage{position:relative;inset:auto;transform:none;width:100%;max-width:590px;order:2}body.storyworld[data-workspace=welcome] .conversation-stage{order:0;padding:30px 5px 0}body.storyworld[data-workspace=media] .conversation-stage{padding:20px;max-width:none}.workspace-photo{min-height:170px}.workspace-photo-open{height:145px}.workspace-next-hint{padding:12px 0}.workspace-document-body{min-height:300px}.workspace-plan{height:100%}.workspace-document{min-height:350px}}
@media(max-width:580px){.workspace-board{padding:12px;min-height:0}.workspace-board>header{flex-wrap:wrap;gap:8px}.workspace-board h2{font-size:20px}.workspace-media{grid-template-columns:1fr}.workspace-document{height:330px;min-height:330px}.workspace-document header{flex-direction:row;align-items:center}.workspace-document-tools{width:auto;gap:3px}.workspace-document-tools a{font-size:9px}.workspace-document-body{min-height:0}.workspace-side{overflow:visible;gap:12px}.workspace-photo{height:220px;min-height:0;flex-basis:auto}.workspace-photo-open{height:calc(100% - 36px)}.workspace-pages{width:54px}.workspace-timeline h2{font-size:15px}.workspace-timeline>header button{font-size:11px}.workspace-timeline{padding:12px 10px}.workspace-badge{font-size:10px}.workspace-history-item>span:last-child{font-size:10px}.workspace-clouds{flex-direction:column;align-items:center}.workspace-cloud{width:245px!important;height:115px!important}.workspace-demo{margin-top:55px}body.storyworld[data-workspace=media] .conversation-layout{padding-left:12px;padding-right:12px}body.storyworld[data-workspace=media] .conversation-stage{padding:18px 15px 10px}.workspace-models{width:270px}.workspace-models button{font-size:13px}body.storyworld[data-workspace=welcome] .greeting{font-size:25px}}
@media(prefers-reduced-motion:reduce){.workspace-cloud{transition:none}}

.workspace-history-tools{display:flex;gap:12px;align-items:center}.workspace-history-tools button{font-size:11px;color:#17784a}.workspace-side header svg,.workspace-document-tools svg{width:16px;height:16px}.workspace-history-tools button:first-child{color:#607b69}
@media(max-width:580px){.workspace-timeline>header{align-items:flex-start}.workspace-history-tools{gap:4px;flex-direction:column;align-items:flex-end;white-space:nowrap}.workspace-history-tools button{font-size:9px}}

@media(max-width:580px){.workspace-timeline>header{flex-direction:column;align-items:stretch;gap:7px}.workspace-history-tools{flex-direction:row;justify-content:space-between;align-items:center}.workspace-history-tools button{font-size:12px}.workspace-timeline{padding-bottom:13px}}
