:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#302d35;background:#f6f5f2;font-synthesis:none;font-size:14px;--purple:#7761ac;--muted:#96929c;--line:#e9e6e1}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed}a{color:inherit;text-decoration:none}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;background:none;color:inherit}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:3px solid #c4b3e4;outline-offset:3px}button:disabled{opacity:.45}[hidden]{display:none!important}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.topbar{height:76px;display:flex;align-items:center;padding:0 32px;border-bottom:1px solid var(--line);background:#fbfaf8;gap:72px}.brand{display:flex;align-items:center;gap:12px;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:36px;height:36px;background:var(--purple);border-radius:11px;color:white}.brand-mark svg{width:24px;height:24px;stroke-width:1.4}.brand strong{font-size:24px;letter-spacing:3px}.brand-en{font-size:9px;letter-spacing:2px;color:#99929f;border-left:1px solid #dcd7df;padding-left:13px}.main-nav{display:flex;align-self:stretch;gap:34px}.main-nav button{position:relative;padding:0 1px;color:#96909b;font-size:13px}.main-nav .nav-active{color:#54436e;font-weight:600}.nav-active:after{content:"";position:absolute;bottom:0;height:3px;background:var(--purple);left:0;right:0;border-radius:2px}.main-nav button span{font-size:10px;background:#ece9e9;border-radius:4px;padding:1px 5px}.header-right{margin-left:auto;display:flex;align-items:center;gap:24px}.connection{font-size:11px;color:#8c888f;display:flex;gap:7px;align-items:center}.connection i{width:6px;height:6px;background:#b7b1b1;border-radius:50%}.connection i.online{background:#84a18b;box-shadow:0 0 0 3px #84a18b12}.avatar{height:31px;width:31px;display:grid;place-items:center;border:1px solid #dfd7e8;border-radius:50%;color:var(--purple);background:#f1edf6;font-size:12px}.mobile-menu{display:none}.app-shell{display:flex;min-height:calc(100vh - 76px)}.sidebar{width:224px;flex-shrink:0;border-right:1px solid var(--line);padding:28px 18px 0;background:#f3f2ee;display:flex;flex-direction:column}.new-button{width:100%;background:#faf9f7;border:1px solid #dfd9e5;border-radius:8px;padding:12px;color:#6c568d;font-size:13px;justify-content:flex-start}.new-button span{margin-left:auto;color:#aaa1b5}.new-button svg{width:16px}.new-button:hover{background:#efeaf6}.sidebar-label{display:flex;justify-content:space-between;font-size:11px;letter-spacing:1px;color:#8d8793;padding:28px 8px 17px}.sidebar-label span:last-child{font-size:10px;letter-spacing:0}.history-list{flex:1;max-height:calc(100vh - 370px);overflow:auto;min-height:160px}.history-empty{text-align:center;padding:50px 0;color:#a29ba8}.history-empty svg{width:30px;height:30px;stroke:#c2b8ca}.history-empty p{font-size:11px;margin:16px 0 7px}.history-empty span{font-size:10px;color:#b1aab4}.history-item{display:flex;justify-content:flex-start;gap:10px;text-align:left;width:100%;padding:9px;border-radius:7px;border:1px solid transparent;margin-bottom:6px}.history-item.active{border-color:#ddd2e8;background:#eae4f0}.history-item:hover{background:#eeebe9}.history-item img{width:40px;height:40px;object-fit:cover;border-radius:5px;background:#ddd}.history-item div{min-width:0}.history-item strong{display:block;font-size:11px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:120px}.history-item small{display:block;color:#a098a6;font-size:10px;margin-top:6px}.sidebar-bottom{margin-top:auto;padding:24px 8px}.saved-note{font-size:11px;color:#8c8493;display:flex;gap:6px;align-items:center}.saved-note svg{width:13px;height:13px}.sidebar-bottom>p{font-size:9px;color:#aaa3ae;margin:8px 0 26px}.sidebar-signature{border-top:1px solid #e5e1e7;padding-top:23px;font-family:serif;color:#807685;font-size:13px;letter-spacing:1px}.sidebar-signature span{font-family:sans-serif;display:block;font-size:7px;letter-spacing:1.3px;color:#b2a8ba;margin-top:9px}main{padding:39px 38px 0;flex:1;min-width:0;max-width:1600px;margin:0 auto}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.eyebrow{font-size:9px;color:#9c8cab;letter-spacing:2.2px;display:flex;align-items:center;gap:8px;margin:0 0 14px}.eyebrow span{width:5px;height:5px;background:#bba6cb;transform:rotate(45deg)}h1{font-size:clamp(23px,2.2vw,33px);font-weight:550;letter-spacing:1px;margin:0 0 12px}h1>span{color:#a48dbb}.intro-subtitle{font-size:12px;color:#9b949e;margin:0;line-height:1.7}.intro-number{align-self:flex-end;color:#b5acbc;font-size:9px;letter-spacing:1.2px;padding-bottom:3px}.studio-grid{display:grid;grid-template-columns:minmax(0,1fr) 326px;gap:22px}.canvas-panel,.edit-panel{background:#fdfcfb;border:1px solid #e8e4e8;border-radius:12px;overflow:hidden}.panel-heading{height:62px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid #efebee;gap:8px}.panel-heading>div{display:flex;align-items:center;gap:10px;min-width:0}.step{font-size:10px;color:#b4a9be}.panel-heading h2{font-size:13px;font-weight:550;margin:0;white-space:nowrap;max-width:230px;text-overflow:ellipsis;overflow:hidden}.badge{font-size:9px;color:#aaa1b1;background:#f1edf4;border:1px solid #ebe5f0;border-radius:4px;padding:3px 6px;white-space:nowrap}.heading-spark{width:17px;color:#a993bf}.quiet-button{font-size:10px;color:#99909f;padding:5px 0}.quiet-button svg{width:13px;height:13px}.canvas{position:relative;min-height:402px;background-color:#f9f8f6;background-image:radial-gradient(#d8d3dd65 .7px,transparent .7px);background-size:14px 14px;display:flex;justify-content:center;align-items:center;overflow:hidden}.empty-canvas{display:flex;align-items:center;flex-direction:column;padding:30px 15px}.artwork{width:230px;height:156px;position:relative;margin-bottom:19px;display:grid;place-items:center}.art-photo{position:absolute;width:133px;height:109px;border-radius:9px;border:1px solid #cfc1dd;background:#f4eff7;box-shadow:0 8px 18px #78609308}.art-photo.rear{transform:rotate(-12deg) translate(-12px,-2px);background:#ebe3f0;border-color:#d5c7e0}.art-photo.front{transform:rotate(9deg) translate(11px,-2px);padding:9px;background:#fcfaff}.art-photo.front svg{width:100%;height:76px;stroke:none;border-radius:4px;background:#eee8f4}.art-photo.front svg circle{fill:#c9b5dd}.art-photo.front svg path{fill:#baa4cf}.art-photo.front span{font-size:4.4px;letter-spacing:1.5px;display:block;text-align:center;color:#b7a7c4;margin-top:5px}.art-orbit{position:absolute;border:1px solid #e6dfee;border-radius:50%;width:210px;height:92px;transform:rotate(-30deg)}.orbit-two{transform:rotate(30deg);height:120px;width:196px;border-style:dashed}.art-spark{position:absolute;right:19px;top:11px;color:#a78bbc;font-size:25px}.art-dot{position:absolute;left:24px;bottom:18px;width:7px;height:7px;border-radius:50%;background:#d6c7e2}.empty-canvas h3{font-size:17px;letter-spacing:1px;font-weight:500;margin:0 0 10px}.empty-canvas p{font-size:11px;color:#a49ba9;margin:0 0 23px}.upload-button{border:1px solid #d1c4de;background:#f0eaf6;color:#7e6598;padding:11px 22px;border-radius:7px;font-size:12px}.upload-button svg{width:16px;height:16px}.upload-button:hover{background:#e8dff0}.file-hint{font-size:9px;color:#b0a7b5;margin-top:13px;letter-spacing:.2px}.canvas-toolbar{height:59px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;gap:10px}.canvas-toolbar>span{font-size:9px;color:#b0a6b7;display:flex;align-items:center;gap:7px;min-width:0}.canvas-toolbar>span svg{width:13px;height:13px}.canvas-toolbar>div{display:flex;gap:17px;align-items:center}.download-button{display:flex;align-items:center;gap:5px;font-size:10px;color:#776388}.download-button svg{width:14px;height:14px}.download-button.disabled{pointer-events:none;color:#b9b1c0}.image-stage{position:relative;width:100%;height:402px;display:flex;justify-content:center;align-items:center;padding:18px}.image-stage>img{max-height:100%;max-width:100%;object-fit:contain;border-radius:4px;box-shadow:0 3px 18px #30203912}.preview-label{position:absolute;top:15px;left:16px;background:#fffdf8e8;color:#695b75;font-size:10px;border-radius:4px;padding:5px 9px;border:1px solid #ddd4e3}.processing{position:absolute;inset:0;background:#fcf9ffe0;backdrop-filter:blur(8px);display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--purple)}.spinner{width:31px;height:31px;border:2px solid #ded5e8;border-top-color:#80629d;border-radius:50%;animation:spin 1.1s linear infinite;margin-bottom:21px}@keyframes spin{to{transform:rotate(360deg)}}.processing strong{font-size:18px;font-weight:500;letter-spacing:2px}.processing p{font-size:12px;margin-top:14px}.processing>span:last-child{font-size:10px;color:#a393b0;margin-top:8px}.drag-overlay{position:absolute;inset:10px;background:#eee5faed;border:2px dashed #a48abc;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#776090;z-index:4}.drag-overlay svg{width:40px;height:40px}.edit-panel{padding-bottom:20px}.edit-panel .panel-heading{border:0;height:62px}form{padding:0 22px}form>label{display:block;font-size:11px;color:#8c8097;margin:2px 0 11px}.prompt-wrap{border:1px solid #e0d7e7;background:#fcfafc;border-radius:8px;padding:13px 13px 10px;transition:border-color .2s}.prompt-wrap:focus-within{border-color:#a58bbb;box-shadow:0 0 0 3px #d8c8e41a}textarea{display:block;border:0;background:none;outline:none!important;width:100%;resize:vertical;min-height:108px;max-height:260px;font-size:12px;line-height:1.9;color:#5e4c6e;padding:0}textarea::placeholder{color:#b3a9ba}.prompt-bottom{font-size:8px;color:#b5aabd;display:flex;justify-content:space-between;gap:5px;margin-top:7px}.suggestion-label{font-size:10px;color:#aaa0b3;margin:20px 0 11px;display:flex;align-items:center;justify-content:space-between}.suggestion-label span{font-size:14px}.suggestions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.suggestions button{border:1px solid #e9e3ed;border-radius:6px;font-size:10px;color:#90809e;justify-content:flex-start;padding:8px 10px;background:#fdfbfe;white-space:nowrap}.suggestions button:hover{background:#f0e9f6;border-color:#d3c3e1}.suggestions button span,.suggestions button svg{color:#ab93bf;width:14px;height:14px;font-size:15px;line-height:14px}.source-note{font-size:9px;color:#b1a4bb;display:flex;align-items:center;gap:6px;margin:18px 0 12px}.source-note svg{width:12px;height:12px}.generate-button{width:100%;padding:13px 15px;border-radius:7px;background:#8065a0;color:white;font-size:12px;gap:9px;box-shadow:0 4px 10px #8065a01c}.generate-button:disabled{background:#b7a6c9;opacity:.8}.generate-button>svg{width:16px;height:16px}.generate-button .arrow{margin-left:auto;width:15px}.generate-button:hover:not(:disabled){background:#6f548f}.cancel-button{display:flex;font-size:10px;color:#897394;margin:10px auto 0;text-decoration:underline}.edit-footnote{font-size:8px;text-align:center;color:#b8afbf;margin:10px 0 0;letter-spacing:.1px}.tip-card{display:flex;gap:10px;border-top:1px solid #eee8f1;margin:20px 22px 0;padding-top:15px}.tip-card>span{color:#b6a0c8;margin-top:1px}.tip-card strong{font-size:10px;font-weight:500;color:#9b8aa7}.tip-card p{font-size:9px;line-height:1.9;color:#b2a7ba;margin:5px 0 0}.how-it-works{margin:29px 0;display:flex;align-items:center;justify-content:space-around;background:#eeece74f;border:1px solid #e9e5df;border-radius:9px;padding:23px 15px}.how-it-works>div{position:relative;padding-left:32px}.how-it-works>div>span{position:absolute;left:0;top:1px;color:#baaebf;font-size:11px;font-family:serif;font-style:italic}.how-it-works h3{font-size:11px;font-weight:500;color:#8f8199;margin:0 0 7px}.how-it-works p{font-size:9px;color:#b1a6b9;margin:0}.how-arrow{color:#c7bdce;font-size:16px}.versions-section{margin:26px 0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.section-heading>div{display:flex;align-items:center;gap:8px}.section-heading svg{width:16px;height:16px;color:#9a85a9}.section-heading h2{font-size:12px;margin:0;font-weight:500}.section-heading span{font-size:10px;color:#a89baf}.versions{display:flex;gap:12px;overflow:auto;padding:3px 2px 8px}.version-card{width:116px;flex:0 0 116px;display:block;text-align:left;padding:6px;border:1px solid #e6dfe9;border-radius:8px;background:#fcfafc}.version-card.selected{border-color:#9a7db3;box-shadow:0 0 0 2px #ad93c71a}.version-card img{width:102px;height:76px;object-fit:cover;border-radius:4px}.version-card strong{display:block;font-size:10px;font-weight:500;margin:7px 3px 4px;color:#806b90}.version-card small{font-size:9px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#b0a2b8;margin:0 3px 4px}.status{font-size:12px;color:#7e6a90;background:#eee7f4;border:1px solid #e0d2ea;border-radius:7px;padding:13px 17px;line-height:1.7;margin:20px 0;overflow-wrap:anywhere}.status.error{color:#9b5f57;background:#fff0ea;border-color:#ecd9d2}footer{display:flex;justify-content:space-between;font-size:9px;color:#b6adb9;border-top:1px solid #e7e3e9;padding:20px 0 22px;letter-spacing:.6px}footer>span:last-child{display:flex;align-items:center;gap:9px}footer svg{width:12px;height:12px;color:#b5a3c3}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);z-index:20;max-width:90vw;padding:14px 22px;color:white;background:#574662;border-radius:9px;box-shadow:0 8px 30px #30203924;font-size:12px}.icon-button{padding:5px}.busy #replace-button,.busy .suggestions button{pointer-events:none;opacity:.5}.busy .version-card{pointer-events:none;opacity:.6}
@media(min-width:1600px){.canvas,.image-stage{min-height:490px;height:490px}.edit-panel .prompt-wrap textarea{min-height:170px}.suggestions button{padding:11px}.tip-card{margin-top:24px}}
@media(max-width:1200px){.topbar{gap:35px;padding:0 23px}.brand-en{display:none}.sidebar{width:193px;padding:24px 14px 0}main{padding:30px 24px 0}.studio-grid{grid-template-columns:minmax(0,1fr) 294px;gap:16px}form{padding:0 18px}.panel-heading{padding:0 18px}.canvas-toolbar{padding:0 14px}.canvas-toolbar>span{max-width:130px;overflow:hidden;white-space:nowrap}.canvas-toolbar>div{gap:12px}.how-it-works{padding:22px 11px}.how-it-works>div{padding-left:24px}.how-it-works p{font-size:8px}.intro-number{display:none}.panel-heading h2{max-width:140px}}
@media(max-width:1000px){.sidebar{width:175px}.studio-grid{grid-template-columns:minmax(0,1fr)}.edit-panel{display:block}.edit-panel .panel-heading{height:55px}textarea{min-height:85px}.suggestions{grid-template-columns:repeat(3,1fr)}.tip-card{display:none}.how-it-works{gap:10px}.how-it-works p{display:none}.how-arrow{display:none}.canvas,.image-stage{min-height:370px;height:370px}.edit-footnote{font-size:10px}.prompt-bottom{font-size:10px}.suggestions button{font-size:11px}.source-note{font-size:11px}.generate-button{font-size:13px}main{max-width:840px}.topbar .main-nav{gap:25px}}
@media(max-width:680px){.topbar{height:64px;padding:0 18px;gap:18px}.brand{gap:8px}.brand-mark{height:31px;width:31px;border-radius:9px}.brand strong{font-size:21px}.main-nav{margin-left:auto;gap:18px!important}.main-nav button{font-size:11px}.header-right{gap:10px;margin-left:0}.avatar{display:none}.connection{display:none}.mobile-menu{display:inline-flex}.sidebar{display:none;position:fixed;top:64px;left:0;bottom:0;z-index:15;width:250px;box-shadow:15px 0 30px #39294c15}.sidebar.open{display:flex}.sidebar .history-list{max-height:none}.app-shell{min-height:calc(100vh - 64px)}main{padding:27px 17px 0}.intro{margin-bottom:23px}.eyebrow{font-size:8px;margin-bottom:12px}h1{font-size:23px;letter-spacing:.3px;line-height:1.5;margin-bottom:7px}.intro-subtitle{font-size:11px;max-width:310px;line-height:1.8}.studio-grid{gap:15px}.panel-heading{height:54px;padding:0 16px}.panel-heading h2{font-size:12px}.canvas,.image-stage{min-height:340px;height:340px}.empty-canvas{padding:20px 10px}.artwork{height:134px;margin-bottom:10px;transform:scale(.9)}.empty-canvas h3{font-size:16px}.empty-canvas p{font-size:11px;margin-bottom:19px}.file-hint{font-size:10px}.upload-button{padding:11px 21px}.canvas-toolbar{padding:0 14px;height:55px}.canvas-toolbar>span{font-size:9px;max-width:125px}.canvas-toolbar>div{gap:13px}.quiet-button,.download-button{font-size:10px}.edit-panel{padding-bottom:19px}form{padding:0 16px}form>label{font-size:12px}.suggestions{gap:7px}.suggestions button{padding:9px 8px;font-size:10px;gap:5px}.suggestion-label{font-size:11px;margin-top:17px}.generate-button{padding:14px}.source-note{font-size:10px}.edit-footnote{font-size:9px}.how-it-works{padding:18px 8px;margin:20px 0;gap:4px}.how-it-works>div{padding-left:0;text-align:center;flex:1}.how-it-works>div>span{position:static;font-size:10px;display:block;margin-bottom:7px}.how-it-works h3{font-size:10px;margin:0}.section-heading>span{font-size:9px}.versions-section{margin:22px 0}.status{font-size:11px;padding:12px}footer{font-size:8px;padding:19px 0;letter-spacing:0}footer>span:last-child{gap:4px}.processing strong{font-size:17px}}
@media(prefers-reduced-motion:reduce){*{animation-duration:0s!important;transition:none!important}}
.works-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));gap:20px;margin-bottom:28px;align-items:start}.work-card{display:block;padding:0;background:#fdfcfb;border-color:#e8e4e8}.work-card img{display:block;width:100%;height:auto;max-height:none;margin:0;border-radius:0;background:transparent}.work-card div{padding:12px 16px}.work-card strong{max-width:none;font-size:14px}.work-card small{font-size:11px;margin:0}.canvas-panel{position:relative}.drag-overlay{pointer-events:none}.drag-overlay>span{font-size:11px;color:#9680a8}
.version-menu{position:fixed;z-index:30;min-width:146px;padding:5px;border:1px solid #e3dbe9;border-radius:8px;background:#fdfbfe;box-shadow:0 6px 24px #39294c24}.version-menu button{display:flex;justify-content:flex-start;width:100%;padding:10px 13px;border-radius:5px;font-size:12px;color:#705b83}.version-menu button:hover:not(:disabled),.version-menu button:focus-visible{background:#eee7f5;outline:none}.version-menu .danger{color:#b06262}.version-menu .danger:hover:not(:disabled),.version-menu .danger:focus-visible{background:#faecec}

.mode-switch{display:flex;align-items:center;gap:6px;margin:0 0 18px;flex-wrap:wrap}.mode-switch button{padding:10px 18px;border:1px solid #e0d7e7;border-radius:7px;font-size:12px}.mode-switch button[aria-pressed="true"]{background:#eee7f5;color:#70528f;border-color:#b5a0c9}.mode-switch>span{font-size:11px;color:#96879e;margin-left:8px}.materials-panel{min-width:0;background:#fdfcfb;border:1px solid #e8e4e8;border-radius:12px;padding-bottom:18px}.material-help{font-size:11px;color:#988b9f;line-height:1.8;margin:14px 16px}.materials-panel>.upload-button{margin:0 16px;max-width:calc(100% - 32px)}#materials-list{padding:0 14px}.material-card{padding:10px;border:1px solid #e9e1ed;border-radius:8px;margin-bottom:12px}.material-card>img{display:block;width:100%;height:120px;object-fit:contain;background:#f4f1f6;border-radius:5px}.material-card>strong,.material-card>small{display:block;margin-top:9px;overflow-wrap:anywhere}.material-card>strong{font-size:11px;font-weight:500}.material-card>small{font-size:10px;color:#9a8ba6}.material-actions{display:flex;justify-content:space-between;gap:4px;margin-top:8px}.material-actions button{font-size:11px;color:#80639a;padding:7px 0}.material-actions button:last-child{color:#a77979}.target-tools{padding:12px 16px;background:#f7f3fa;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.target-tools strong{font-size:11px;font-weight:500;color:#816795}.target-tools button{font-size:11px;color:#80639a;padding:6px;border:1px solid #ded1e8;border-radius:5px}.target-tools>span{width:100%;font-size:10px;color:#9a8ba6}
#region-dialog{border:1px solid #d9cde3;border-radius:12px;width:min(850px,94vw);max-height:92vh;padding:20px;color:#5f4c70;background:#fdfbfe}#region-dialog::backdrop{background:#30203980}.region-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.region-heading h2{font-size:16px;margin:0}.region-heading button{padding:8px}#region-dialog>p{font-size:12px;line-height:1.8;color:#93829f}.region-viewport{display:flex;justify-content:center;align-items:center;background:#eeeaf1;border-radius:6px;overflow:hidden;min-height:60px}.region-surface{position:relative;display:inline-block;max-width:100%;touch-action:none;cursor:crosshair;line-height:0;user-select:none}.region-surface img{display:block;max-width:100%;max-height:55vh;width:auto;height:auto;pointer-events:none}#region-box{position:absolute;border:2px solid #9162bf;background:#a47dc540;pointer-events:none;box-shadow:0 0 0 1px white inset}#region-detail{font-size:12px;margin:14px 0;color:#93829f}.region-actions{display:flex;justify-content:flex-end;gap:14px}
@media(min-width:1300px){.multi-mode .studio-grid{grid-template-columns:220px minmax(0,1fr) 290px;gap:16px}.multi-mode .panel-heading{padding:0 14px}.multi-mode .canvas-toolbar{height:auto;min-height:59px;flex-wrap:wrap;padding:12px}.multi-mode .panel-heading .badge{display:none}.multi-mode #material-count{display:inline}.multi-mode .panel-heading h2{max-width:120px}}
@media(max-width:1299px){.multi-mode .materials-panel{grid-column:1/-1}.multi-mode #materials-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.multi-mode .materials-panel .panel-heading{height:48px}.multi-mode .material-card>img{height:100px}}
@media(max-width:680px){.mode-switch>span{width:100%;margin:6px 0 0;font-size:10px}.multi-mode #materials-list{grid-template-columns:1fr}.material-card{display:grid;grid-template-columns:85px minmax(0,1fr);gap:0 12px;margin:0}.material-card>img{grid-row:1/4;width:85px;height:85px!important}.material-card>strong{margin-top:3px}.material-actions{flex-wrap:wrap}.multi-mode .studio-grid .canvas-panel{grid-row:1}.multi-mode .materials-panel{grid-row:2}.target-tools{gap:6px}#region-dialog{padding:14px}}

.multi-suggestions{display:none}.multi-mode .single-suggestions{display:none}.multi-mode .multi-suggestions{display:grid}.multi-mode .studio-grid{align-items:start}@media(min-width:1300px){.multi-mode #materials-list{max-height:450px;overflow-y:auto}.multi-mode .material-card>img{height:100px}}
.speech-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #ece4f0;padding-top:10px;margin-top:10px}.speech-controls button{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;min-height:38px;padding:7px 10px;border:1px solid #d9cbe4;border-radius:6px;background:#f3edf8;color:#806298;font-size:12px}.speech-controls button svg{width:16px;height:16px}.speech-controls button[aria-pressed="true"]{background:#f9e9ed;color:#af536b;border-color:#dfafbe}.speech-controls button:focus-visible{outline:2px solid #a58bbb;outline-offset:2px}.speech-controls>span{font-size:10px;color:#a295ac;line-height:1.6}.speech-status{margin:8px 0 0;font-size:10px;line-height:1.7;color:#97879f;overflow-wrap:anywhere}.speech-status.error{color:#af6572}

.work-entry,.shared-card{min-width:0;border:1px solid #e8e4e8;border-radius:10px;background:#fdfcfb;overflow:hidden}.work-entry .work-card{width:100%;margin:0;border:0;border-radius:0;text-align:left}.share-action{font-size:12px;color:#806298;padding:12px 16px;min-height:42px}.share-action:hover{background:#f0eaf6}.shared-card>a{display:block;padding:0;margin:0;background:transparent}#square-list{align-items:start}.shared-card img{display:block;width:100%;height:auto;max-height:none;margin:0;padding:0}.shared-card>strong,.shared-card>small{display:block;margin:14px 16px;overflow-wrap:anywhere}.shared-card>strong{font-size:14px;font-weight:500}.shared-card>small,.share-note{font-size:11px;color:#96879e;line-height:1.8}.share-note{margin-bottom:20px}.canvas-toolbar{height:auto;min-height:59px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}.canvas-toolbar>div{flex-wrap:wrap}
@media(max-width:680px){.topbar{gap:8px;padding:0 10px}.main-nav{gap:10px!important}.topbar .brand strong{font-size:18px}.brand-mark{height:27px;width:27px}.main-nav button{font-size:10px;white-space:nowrap}.header-right{gap:0}#square-view .intro{align-items:flex-start;gap:10px}#refresh-square{padding:9px 10px;white-space:nowrap;font-size:11px}}

#share-dialog{border:1px solid #d9cde3;border-radius:12px;width:min(680px,94vw);height:min(820px,92vh);max-height:92vh;overflow:hidden;padding:20px;color:#5f4c70;background:#fdfbfe}#share-dialog[open]{display:flex;flex-direction:column}#share-dialog>.region-heading,#share-dialog>.share-note,#share-dialog>.share-caption-field,#share-dialog>.region-actions{flex-shrink:0}.share-photo-picker{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:3px 3px 0;margin:0 -3px}#share-dialog::backdrop{background:#30203980}#share-preview{display:block;width:100%;height: min(32vh,280px);object-fit:contain;background:#eeeaf1;border-radius:8px}.share-choices{border:0;padding:0;margin:18px 0 0;min-width:0}.share-choices legend{font-size:12px;margin-bottom:10px}#share-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}.share-option{position:relative;display:flex;flex-direction:column;gap:8px;padding:8px;border:1px solid #e0d7e7;border-radius:8px;cursor:pointer;min-width:0}.share-option:has(input:checked){border-color:#9473b2;background:#eee7f5;box-shadow:0 0 0 1px #9473b2}.share-option:focus-within{outline:2px solid #9473b2;outline-offset:2px}.share-option input{position:absolute;top:12px;left:12px;accent-color:#806298}.share-option img{width:100%;height:90px;object-fit:contain;background:#f3f0f5;border-radius:4px}.share-option span{font-size:11px;line-height:1.6}#share-error{color:#af6572}#share-dialog .region-actions{background:#fdfbfe;padding:10px 0 0;margin-top:0;border-top:1px solid #ece4f0}@media(max-width:680px){#share-dialog{padding:14px}#share-options{grid-template-columns:repeat(2,minmax(0,1fr))}#share-dialog>.share-note{margin:8px 0}#share-dialog .share-caption-field{margin:10px 0}#share-confirm{padding:11px 14px}}

.share-caption-field{margin:16px 0;border:1px solid #e0d7e7;border-radius:8px;padding:12px}.share-caption-field:focus-within{border-color:#9473b2}.share-caption-field label{display:block;font-size:12px;margin-bottom:8px}.share-caption-field label span{color:#a295aa;font-size:10px;margin-left:6px}#share-caption{min-height:76px;max-height:110px;resize:none;font-size:12px;line-height:1.8}#share-caption-count{display:block;text-align:right;color:#a295aa;font-size:10px;margin-top:6px}.shared-caption{font-size:12px;line-height:1.9;color:#7d6e87;margin:12px 16px;white-space:pre-wrap;overflow-wrap:anywhere}

.batch-share-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 20px;padding:14px;background:#f0eaf6;border-radius:10px;font-size:12px}.batch-share-toolbar[hidden]{display:none}.batch-share-toolbar label,.work-select{display:flex;align-items:center;gap:8px;cursor:pointer}.batch-share-toolbar input,.work-select input{accent-color:#806298;width:16px;height:16px}.work-select{padding:12px 16px;font-size:12px;border-bottom:1px solid #e8e4e8}.work-entry.batch-selected{border-color:#9473b2;box-shadow:0 0 0 1px #9473b2}.work-entry.batch-selected .work-select{background:#eee7f5}#share-options.batch-options{display:block}.share-group{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;min-width:0;border:1px solid #e0d7e7;border-radius:8px;margin:0 0 16px;padding:10px}.share-group legend{max-width:100%;overflow-wrap:anywhere;padding:0 4px}@media(max-width:680px){.share-group{grid-template-columns:repeat(2,minmax(0,1fr))}.batch-share-toolbar .upload-button{flex:1;min-width:160px}}

.work-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px;border-top:1px solid var(--line)}
.delete-work{font-size:12px;color:#a65353;padding:12px 16px;min-height:44px}
.delete-work:hover:not(:disabled){background:#fff0ea}
/* A post keeps its photos together in a swipeable gallery. */
#square-list{display:flex;flex-direction:column;gap:28px;width:100%;max-width:680px;margin:0 auto 32px}
#square-list .shared-card{width:100%;background:#fff;border-color:#e8e4e8;border-radius:14px}
.shared-author{display:flex;align-items:center;gap:10px;padding:16px 18px;color:#44394c;font-size:14px}
.shared-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#eee7f5;color:#806298;font-size:14px}
.shared-gallery{position:relative;min-width:0;background:#f3f1f4}
.shared-slides{display:flex;width:100%;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;border-radius:0;outline-offset:-3px}
.shared-slides::-webkit-scrollbar{display:none}
.shared-slides:focus-visible{outline:2px solid #9473b2}
.shared-slide{display:flex;align-items:center;justify-content:center;flex:0 0 100%;min-width:0;aspect-ratio:3/4;scroll-snap-align:start;scroll-snap-stop:always;-webkit-user-drag:none}
#square-list .shared-slide img{display:block;width:100%;height:100%;object-fit:contain;max-height:none;user-select:none;-webkit-user-drag:none}
.shared-counter{position:absolute;top:14px;right:14px;padding:5px 11px;border-radius:20px;background:#0009;color:white;font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums;pointer-events:none}
#square-list .shared-title{font-size:18px;font-weight:600;color:#352d3b;margin:20px 20px 10px;line-height:1.5}
#square-list .shared-caption{font-size:14px;line-height:1.9;color:#64586d;margin:10px 20px 16px}
#square-list .shared-card>small{margin:14px 20px 18px}
@media(max-width:680px){#square-list{gap:20px}.shared-author{padding:12px 14px}#square-list .shared-title{font-size:16px;margin:16px 16px 8px}#square-list .shared-caption{font-size:13px;margin:8px 16px 12px}.shared-counter{top:12px;right:12px}}

.work-photo-picker{border-top:1px solid #e8e4e8;padding:12px;font-size:12px}.work-photo-picker summary{cursor:pointer;color:#806298}.work-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.work-photo-grid .share-option img{height:80px}#share-preview[hidden]{display:none}

.shared-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #ffffff70;border-radius:50%;background:#0008;color:#fff;font:32px/1 Arial,sans-serif;box-shadow:0 2px 10px #0002;z-index:1;cursor:pointer;touch-action:manipulation}
.shared-gallery-previous{left:12px}.shared-gallery-next{right:12px}
.shared-gallery-arrow:hover:not(:disabled){background:#000b}.shared-gallery-arrow:focus-visible{outline:3px solid #fff;outline-offset:2px}
.shared-gallery-arrow:disabled{opacity:.35;cursor:default}
.share-photo-option{display:flex;flex-direction:column;gap:6px;min-width:0}.share-cover-button{width:100%;min-height:34px;border:1px solid #e0d7e7;border-radius:6px;color:#806298;font-size:11px;background:#fdfbfe}.share-cover-button[aria-pressed="true"]{background:#806298;border-color:#806298;color:white}.share-cover-button:hover{box-shadow:0 0 0 2px #ad93c730}

.avatar,.shared-avatar{overflow:hidden;flex-shrink:0}.avatar img,.shared-avatar img{width:100%;height:100%;object-fit:cover}.avatar{padding:0}
#profile-dialog{width:min(520px,94vw);max-height:92vh;overflow:auto;border:1px solid #d9cde3;border-radius:12px;padding:22px;background:#fdfbfe;color:#5f4c70}#profile-dialog::backdrop{background:#30203980}#profile-form>label{display:block;margin:16px 0 8px}#profile-form>input,#profile-form>textarea{display:block;width:100%;padding:10px;border:1px solid #d9cde3;border-radius:6px;background:white;color:inherit}#creator-id{font-size:11px}#profile-form textarea{resize:vertical}.profile-avatar-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.profile-avatar-row input{max-width:100%;min-width:0}#profile-error{color:#af6572}#profile-form .region-actions{margin-top:18px}#creator-avatar-preview{width:56px;height:56px}#profile-form input:focus-visible{outline:3px solid #c4b3e4}

.shared-author-info{min-width:0;display:grid;gap:4px}.shared-author-info strong{overflow-wrap:anywhere}.shared-author-info small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;white-space:pre-line;color:var(--muted);font-size:12px;line-height:1.5}

#account-dialog{width:min(520px,94vw);max-height:92vh;overflow:auto;border:1px solid #d9cde3;border-radius:12px;padding:22px;background:#fdfbfe;color:#5f4c70}#account-dialog::backdrop{background:#30203980}#account-fields>label{display:block;margin:16px 0 8px}#account-fields>input{display:block;width:100%;padding:10px;border:1px solid #d9cde3;border-radius:6px;background:white;color:inherit}#account-error{color:#af6572}#account-open{margin:10px 0;padding:8px 12px;border:1px solid #d9cde3;border-radius:6px}#account-form .region-actions{flex-wrap:wrap}

#login-entry{font-size:12px;white-space:nowrap;color:#806298;border:1px solid #d9cde3;border-radius:6px;padding:8px 10px}#usage-status{margin:14px 0 8px;line-height:1.7} @media(max-width:680px){.header-right{gap:8px}#login-entry{font-size:11px;padding:7px}.header-right .connection{display:none}}
@media(max-width:680px){.header-right .avatar{display:grid}.header-right #login-entry{display:inline-block}}

#account-dialog{width:min(460px,94vw);padding:30px;border-radius:20px;box-shadow:0 24px 80px #30203933}#account-dialog [hidden]{display:none!important}.login-brand{color:var(--purple);font-size:11px;letter-spacing:2px;margin:0 0 22px}#account-title{font-size:24px;line-height:1.4;margin:0}.login-methods{display:flex;gap:20px;margin:22px 0 8px;border-bottom:1px solid var(--line)}.login-methods button{padding:10px 0;color:var(--muted);border-bottom:2px solid transparent}.login-methods button[aria-pressed=true]{color:var(--purple);border-color:var(--purple)}#account-fields>input{padding:13px;border-radius:9px}#account-form .region-actions{display:grid;gap:10px;margin-top:22px}#account-form .region-actions button{width:100%;padding:12px;border-radius:9px;border:1px solid #d9cde3}#account-form .region-actions .upload-button{background:var(--purple);color:white;border-color:var(--purple)}#account-guest{margin-top:8px;color:var(--purple)}#account-form button:disabled{opacity:.5;cursor:not-allowed}#account-status{line-height:1.8;margin-top:16px}@media(max-width:680px){#account-dialog{padding:24px}#account-title{font-size:22px}}
#account-form .region-actions{justify-content:stretch;grid-template-columns:minmax(0,1fr)}@media(max-width:680px){.topbar{height:auto;min-height:64px;flex-wrap:wrap;padding-top:10px;gap:8px}.topbar .header-right{margin-left:auto;flex-shrink:0}.topbar .main-nav{order:3;width:100%;height:38px;margin:0;justify-content:center;gap:28px!important}.header-right>button{flex-shrink:0}.header-right .icon-button svg{width:20px;height:20px}}

#sms-fields>label{display:block;margin:16px 0 8px}.sms-code-row{display:flex;gap:10px;align-items:stretch}.sms-code-row input{min-width:0;flex:1;width:0;padding:13px;border:1px solid #d9cde3;border-radius:9px;background:white;color:inherit;font:inherit}.sms-code-row button{flex-shrink:0;padding:0 12px;border:1px solid #d9cde3;border-radius:9px;color:var(--purple);font-size:13px}

.speech-controls #generate-button{width:auto;flex:1;min-width:0;padding:7px 8px;border-color:transparent;background:#8065a0;color:#fff;gap:5px;font-size:12px}.speech-controls #generate-button:disabled{background:#b7a6c9;opacity:.8}.speech-controls #generate-button:hover:not(:disabled){background:#6f548f}.speech-controls #generate-button .arrow{display:none}.speech-badge{font-size:9px;line-height:1.5;padding:1px 4px;border-radius:4px;background:#e8dff0;color:#8c769e;white-space:nowrap}

/* Compact inspiration feed on phones; each post stays together in its column. */
@media(max-width:680px){
  body:has(#square-view:not([hidden])){background:#fff}
  main:has(#square-view:not([hidden])){padding:0 8px;max-width:100%}
  #square-view .intro{align-items:center;margin:0;padding:12px 8px;gap:12px}
  #square-view .eyebrow,#square-view .intro-subtitle,#square-view>.share-note:not(#square-status){display:none}
  #square-title{font-size:18px;margin:0;line-height:1.5}
  #refresh-square{font-size:12px;padding:8px 12px;border-radius:16px}
  #square-status{font-size:11px;margin:0 8px 10px;line-height:1.5}
  #square-status:empty{display:none}
  #square-list{display:block;columns:2;column-gap:8px;max-width:none;margin:0 0 24px}
  #square-list .shared-card{display:flex;flex-direction:column;break-inside:avoid;width:100%;margin:0 0 12px;border:0;border-radius:0;background:#fff}
  .shared-gallery{order:0;border-radius:8px;overflow:hidden}
  .shared-slide{aspect-ratio:var(--cover-ratio,.75)}
  #square-list .shared-slide img{object-fit:cover}
  .shared-counter{top:7px;right:7px;padding:2px 6px;font-size:10px}
  .shared-gallery-single .shared-counter{display:none}
  #square-list .shared-title{order:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.5;font-weight:600;margin:9px 6px 0}
  #square-list .shared-caption{order:2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:12px;line-height:1.5;margin:4px 6px 0}
  .shared-author{order:3;gap:6px;padding:9px 6px 5px;font-size:11px;color:#8b8690;min-width:0}
  .shared-avatar{width:20px;height:20px;font-size:10px}
  #square-list .shared-avatar img{width:100%;height:100%;object-fit:cover}
  .shared-author-info{display:block;flex:1;min-width:0}
  .shared-author-info strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}
  .shared-author-info small,#square-list .shared-card>small{display:none}
  #square-list .share-action{order:4;align-self:flex-start;font-size:11px;min-height:32px;padding:5px 6px}
  .shared-gallery-arrow{width:28px;height:32px;font-size:24px}
  .shared-gallery-previous{left:4px}.shared-gallery-next{right:4px}
}

/* Keep primary navigation reachable below every view. */
:root{--bottom-nav-height:56px;--bottom-nav-space:calc(var(--bottom-nav-height) + env(safe-area-inset-bottom,0px))}
body{padding-bottom:var(--bottom-nav-space)}
.app-shell{min-height:calc(100dvh - 76px - var(--bottom-nav-space))}
.main-nav.bottom-nav{position:fixed;inset:auto 0 0;z-index:16;display:flex;justify-content:center;align-items:stretch;gap:0!important;height:var(--bottom-nav-space);padding:0 max(16px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(16px,env(safe-area-inset-left,0px));margin:0;background:#fbfaf8;border-top:1px solid var(--line);box-shadow:0 -3px 14px #30203908}
.bottom-nav button{flex:1;max-width:220px;min-width:0;min-height:var(--bottom-nav-height);font-size:13px;white-space:nowrap}
.bottom-nav .nav-active:after{bottom:auto;top:0;left:20%;right:20%}
.toast{bottom:calc(var(--bottom-nav-space) + 16px)}
@media(max-width:680px){.topbar{height:64px;flex-wrap:nowrap;padding-top:0}.app-shell{min-height:calc(100dvh - 64px - var(--bottom-nav-space))}.sidebar{bottom:var(--bottom-nav-space)}.bottom-nav button{font-size:12px}}

/* Community room entry, shared by desktop and mobile. */
.workspace-intro{display:block}.intro-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.intro-topline .eyebrow{margin:0;min-width:0}.community-entry{flex-shrink:0;gap:6px;padding:8px 13px;border:1px solid #d9cce9;border-radius:20px;background:#f0eaf7;color:var(--purple);font-size:12px;white-space:nowrap}.community-entry svg{width:15px;height:15px}.community-entry:hover{background:#e8dff2}
@media(max-width:680px){.intro-topline{gap:8px;margin-bottom:18px}.intro-topline .eyebrow{font-size:7px;letter-spacing:1px;gap:5px}.community-entry{font-size:11px;padding:8px 10px;gap:4px}.community-entry svg{width:13px;height:13px}}
@media(max-width:350px){.intro-topline{flex-wrap:wrap}.community-entry{margin-left:auto}}
.preview-delete{position:absolute;top:15px;right:16px;min-height:36px;padding:7px 13px;border:1px solid #ecd2d2;border-radius:5px;background:#fffdf8f2;color:#a54f4f;font-size:12px;box-shadow:0 2px 8px #3020390d}.preview-delete:hover:not(:disabled){background:#faecec}.preview-delete:disabled{opacity:.5}
.community-unread{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:10px;background:var(--purple);color:white;font-size:10px}
.shared-social{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 14px;order:4}
.shared-social button{min-height:38px;padding:6px 10px;border-radius:20px;background:#f5f0f9;color:#695180;font-size:13px}
.shared-like[aria-pressed=true]{background:#fce9ef;color:#b84269}
#comments-dialog{width:min(560px,94vw);max-height:88dvh;overflow:auto;border:1px solid #d9cde3;border-radius:16px;padding:20px;background:#fdfbfe;color:#5f4c70}
#comments-dialog::backdrop{background:#30203980}
#comments-title{font-size:18px;margin:0}
#comments-photo{display:block;max-width:100%;height:120px;margin:12px auto;object-fit:contain;border-radius:8px}
#comments-status{font-size:12px;line-height:1.6}
.photo-comment{padding:14px 0;border-bottom:1px solid #e9e1ee;overflow-wrap:anywhere}
.photo-comment strong{font-size:13px}.photo-comment p{margin:8px 0;white-space:pre-wrap;line-height:1.8}.photo-comment small{font-size:11px;color:#96879e}.photo-comment button{font-size:12px;min-height:36px;padding:6px 12px;color:var(--purple)}
#comments-form{margin-top:18px}#comments-form label{display:block;font-size:13px;margin-bottom:8px}
#comments-text{display:block;width:100%;resize:vertical;max-height:180px;min-height:76px;padding:10px;border:1px solid #d9cde3;border-radius:8px;background:#fff;color:inherit}
#comments-error{font-size:12px;color:#b04861;line-height:1.6}#comments-send{padding:10px 16px}#comments-more{min-height:40px;font-size:12px;color:var(--purple)}
#comments-reply{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;font-size:12px;overflow-wrap:anywhere}#comments-reply-cancel{flex-shrink:0;min-height:36px}
@media(max-width:680px){.shared-social{padding:6px;gap:4px}.shared-social button{padding:5px 8px;font-size:11px;min-height:34px}#comments-dialog{padding:16px}.photo-comment{font-size:13px}}

#share-post-title{display:block;width:100%;box-sizing:border-box;margin:0 0 12px;font:inherit;font-size:12px}#square-list .shared-title:empty{display:none}

@media(max-height:600px){#share-dialog{padding:10px 14px;height:96vh;max-height:96vh}#share-dialog>.share-note{margin:5px 0}#share-dialog .share-caption-field{margin:6px 0;padding:8px}#share-dialog .share-caption-field label{margin-bottom:4px}#share-post-title{margin-bottom:6px}#share-caption{min-height:40px;height:40px}#share-dialog .region-actions{padding-top:6px}}

/* Public work detail: continuous photos, author bar and persistent actions. */
body.detail-open{overflow:hidden}
#share-detail{width:min(640px,100%);height:min(960px,96dvh);max-width:100%;max-height:100dvh;padding:0;border:0;border-radius:14px;background:#fff;color:#222;overflow:hidden}
#share-detail[open]{display:flex;flex-direction:column}
#share-detail::backdrop{background:#17121bb3}
.detail-header{display:flex;align-items:center;gap:10px;flex-shrink:0;padding:8px 14px;border-bottom:1px solid #f0eef1;background:#fff;min-height:58px}
#detail-back,#detail-share{width:36px;min-height:40px;padding:0;font-size:34px;flex-shrink:0}
#detail-author{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
#share-detail .shared-avatar{width:36px;height:36px;font-size:14px}
#detail-follow{border:1px solid #ccc;border-radius:5px;padding:5px 12px;min-height:32px;white-space:nowrap;font-size:13px}
#detail-follow[aria-pressed=true]{color:#7761ac;border-color:#bcb0d0}
#detail-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
#detail-photos figure{position:relative;margin:0;background:#f3f1f4}
#detail-photos img{display:block;width:100%;height:auto;min-height:80px;object-fit:contain}
#detail-photos figure>span{position:absolute;right:12px;top:12px;background:#0008;color:#fff;border-radius:20px;padding:3px 9px;font-size:11px;pointer-events:none}
.detail-copy{padding:20px 18px 24px;overflow-wrap:anywhere}
#detail-title{font-size:20px;line-height:1.5;margin:0 0 10px;font-weight:600}
#detail-title:empty,#detail-caption:empty{display:none}
#detail-caption{white-space:pre-wrap;font-size:16px;line-height:1.8;margin:0 0 14px;color:#444}
#detail-date{color:#999;font-size:11px}
#share-detail .detail-actions{display:flex;align-items:center;gap:12px;padding:10px 18px max(10px,env(safe-area-inset-bottom));margin:0;background:#fff;border-top:1px solid #eee;flex-shrink:0}
.detail-actions button{flex-direction:column;gap:0;min-width:42px;min-height:48px;padding:0}
.detail-actions button>span{font:32px/1.1 Arial,sans-serif}
.detail-actions button>small{font-size:11px;line-height:1.6}
.detail-actions button[aria-pressed=true]{color:#bc466c}
.detail-actions #detail-remix{flex:1;min-width:0;background:#171419;border-radius:5px;color:#fff;font-size:15px;margin-left:8px;padding:8px}
.shared-title[role=link]{cursor:pointer}
@media(max-width:680px){#share-detail{width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.detail-header{padding:5px 10px;gap:8px;min-height:52px}#share-detail .detail-actions{gap:8px;padding-left:12px;padding-right:12px}.detail-copy{padding:18px 16px}#detail-caption{font-size:16px}}
.detail-actions button>span{display:flex;align-items:center;justify-content:center;height:32px}.detail-actions button>span svg{width:28px;height:28px;stroke-width:1.7}
#share-detail .detail-actions{color:#222;letter-spacing:0}.detail-actions button>span svg{color:inherit}

/* Personal page: profile first, then the creator's saved content. */
.my-profile{position:relative;padding:16px 0 28px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px}
.my-profile-main{display:flex;align-items:center;gap:22px;min-width:0}
#my-avatar-button{padding:0;border-radius:50%;flex-shrink:0}
#my-avatar{width:92px;height:92px;font-size:34px;border:1px solid #e4dce9;background:#ece5f2}
.my-profile-info{min-width:0}.my-profile-info h1{margin:0 0 10px;font-size:27px;letter-spacing:0;overflow-wrap:anywhere}
#my-creator-id{color:var(--muted);font-size:12px;margin:0;overflow-wrap:anywhere;line-height:1.6}
.my-edit-profile{border:1px solid #ded8e3;border-radius:7px;padding:11px 22px;background:#fdfcfb;white-space:nowrap}
.my-edit-profile:hover{background:#eee8f5}
.my-bio{grid-column:1/-1;justify-content:flex-start;text-align:left;padding:0;color:var(--muted);line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}
.my-bio.has-bio{color:#62596c}
.my-tabs{display:flex;border-bottom:1px solid var(--line);margin-bottom:26px;gap:0}
.my-tabs button{flex:1;position:relative;padding:19px 8px;color:var(--muted);font-size:16px}
.my-tabs button[aria-selected=true]{color:#44334f;font-weight:600}
.my-tabs button[aria-selected=true]:after{content:"";position:absolute;bottom:-1px;left:calc(50% - 17px);width:34px;height:3px;background:var(--purple);border-radius:3px}
.my-tabs button span{font-size:11px;background:#ece9ef;padding:2px 6px;border-radius:5px;color:#8b7b9a;font-weight:400}
.my-empty{min-height:290px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 16px;text-align:center}
.my-empty>svg{width:40px;height:40px;color:#c4b8cf;margin-bottom:20px}.my-empty strong{font-size:19px;font-weight:500}
.my-empty p{font-size:13px;color:var(--muted);line-height:1.8}.my-empty button{color:var(--purple);padding:10px}.my-empty button span{font-size:22px}
#my-social-list .shared-card{min-width:0}
@media(max-width:680px){.my-profile{padding:8px 0 22px;gap:20px 12px}.my-profile-main{gap:14px;grid-column:1/-1;padding-right:0}#my-avatar{width:76px;height:76px;font-size:28px}.my-profile-info h1{font-size:23px}#my-creator-id{font-size:10px}.my-edit-profile{grid-column:2;padding:9px 18px;grid-row:2}.my-bio{grid-row:3;font-size:13px}.my-tabs{margin-bottom:20px}.my-tabs button{font-size:15px;padding:16px 5px}.my-empty{min-height:310px}}

/* Personal collections follow the compact photo grids. */
#history-view .my-tabs{margin-bottom:0}
.my-works-tools{display:flex;justify-content:flex-end;padding:8px 0}
#manage-works{font-size:12px;color:var(--purple);padding:6px 10px;min-height:32px}
#my-works-panel:not(.managing) #batch-share-toolbar,#my-works-panel:not(.managing) .work-photo-picker,#my-works-panel:not(.managing) .work-actions{display:none}
#my-works-panel:not(.managing) #works-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;align-items:start}
#my-works-panel:not(.managing) .work-entry{border:0;border-radius:0;background:transparent}
#my-works-panel:not(.managing) .work-card{position:relative;display:block;aspect-ratio:1;padding:0;border:0;border-radius:0}
#my-works-panel:not(.managing) .work-card img{display:block;width:100%;height:100%;object-fit:cover}
#my-works-panel:not(.managing) .work-card>div{display:none}
#my-works-panel:not(.managing) .work-card:after{content:"⛶";position:absolute;right:7px;bottom:7px;display:grid;place-items:center;width:25px;height:25px;color:#fff;background:#0005;border-radius:50%;font-size:20px;line-height:1;text-shadow:0 1px 3px #0006}
#my-works-panel.managing #works-list{grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));gap:16px}
#my-social-status:empty{display:none}
#my-social-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start;margin-top:14px}
#my-social-list .shared-card{display:flex;flex-direction:column;min-width:0;border:0;border-radius:8px;background:#fff}
#my-social-list .shared-gallery{order:0;overflow:hidden;border-radius:8px 8px 0 0}
#my-social-list .shared-slide{aspect-ratio:3/4}
#my-social-list .shared-slide img{width:100%;height:100%;object-fit:cover;user-select:none}
#my-social-list .shared-counter{top:8px;right:8px;padding:2px 7px;font-size:10px}
#my-social-list .shared-gallery-single .shared-counter{display:none}
#my-social-list .shared-title{order:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:10px 10px 0;font-size:14px;line-height:1.5;font-weight:600}
#my-social-list .shared-title:empty{display:none}
#my-social-list .shared-author{order:2;display:flex;align-items:center;gap:6px;padding:10px;font-size:12px;min-width:0;color:#8b8690}
#my-social-list .shared-avatar{width:23px;height:23px;font-size:11px}
#my-social-list .shared-author-info{display:block;flex:1;min-width:0}
#my-social-list .shared-author-info strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}
#my-social-list .shared-author-info small{display:none}
#my-social-list .shared-like{flex-shrink:0;gap:3px;padding:4px 0;min-height:30px;font-size:13px;color:#929096;white-space:nowrap}
#my-social-list .shared-like[aria-pressed=true]{background:transparent;color:#b66b86}
#my-social-list .share-action{order:3;align-self:flex-start;min-height:32px;padding:4px 10px 10px;font-size:11px}
@media(max-width:680px){
  #my-social-list{gap:8px;margin-top:10px}
  #my-social-list .shared-title{font-size:13px;margin:9px 8px 0}
  #my-social-list .shared-author{padding:8px;gap:5px;font-size:11px}
  #my-social-list .shared-like{font-size:12px}
  #my-social-list .shared-avatar{width:20px;height:20px}
  #history-view .my-tabs{margin-left:-17px;margin-right:-17px}
  #my-works-panel:not(.managing) #works-list{margin-left:-17px;margin-right:-17px}
  #my-social-list{margin-left:-9px;margin-right:-9px}
}
