@font-face{font-family:Workshop;src:local('Segoe UI')}*{box-sizing:border-box}html{color:#252d28;background:#f7f5f0;font-family:Workshop,system-ui,sans-serif;font-size:15px}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #d29e56;outline-offset:4px}input:focus,textarea:focus,select:focus{outline:2px solid #79936a;outline-offset:1px}button{border:0;background:none;color:inherit}h1,h2,h3,p{margin:0}svg{width:21px;height:21px;vertical-align:middle;flex-shrink:0}.shell{min-height:100vh;padding-left:242px}.sidebar{position:fixed;inset:0 auto 0 0;width:242px;border-right:1px solid #e5e3db;background:#fdfcf9;display:flex;flex-direction:column;padding:34px 22px;z-index:20}.brand{display:flex;align-items:center;gap:11px;margin-bottom:44px}.brand img{width:37px;height:37px}.brand strong{font-family:Georgia,serif;font-size:19px;font-weight:500;line-height:1.1}.brand small{display:block;font:10px Workshop,system-ui;letter-spacing:1.9px;text-transform:uppercase;margin-top:7px;color:#7c8276}.nav{display:flex;flex-direction:column;gap:7px}.nav button{text-align:left;display:flex;align-items:center;gap:12px;padding:13px 15px;border-radius:10px;color:#70766c;font-size:14px}.nav button.active{background:#eaf0e5;color:#40573e;font-weight:600}.sidebar-foot{margin-top:auto;border-top:1px solid #e7e7de;padding-top:22px}.pilot{font-size:11px;letter-spacing:1.5px;color:#747c6c;text-transform:uppercase;margin-bottom:14px}.balance{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#7a8076}.balance strong{font-size:17px;color:#40573e}.budget-track{height:4px;background:#e6e8de;border-radius:9px;margin:12px 0}.profile{display:flex;align-items:center;gap:10px;margin-top:22px}.avatar{display:grid;place-items:center;width:33px;height:33px;border-radius:50%;background:#e9e0d4;color:#79634a;font:16px Georgia}.profile-name{flex:1;font-size:13px;overflow:hidden;text-overflow:ellipsis}.profile button{color:#7b8175;padding:6px}.main{max-width:1320px;margin:auto;padding:0 54px 60px}.topbar{height:86px;border-bottom:1px solid #e4e3da;display:flex;align-items:center;justify-content:space-between;gap:15px}.breadcrumb{font-size:12px;color:#777d72;display:flex;gap:9px;align-items:center}.top-note{color:#8b8e83;font-size:11px;display:flex;align-items:center;gap:7px}.dot{width:6px;height:6px;border-radius:50%;background:#7f956d}.mobile-brand{display:none}.eyebrow{font-size:10px;letter-spacing:2px;text-transform:uppercase;color:#75816a;margin-bottom:16px}.hero{padding:48px 0 36px;display:grid;grid-template-columns:1fr 240px;gap:35px;align-items:center}.hero h1{font:normal 48px/1.12 Georgia,serif;letter-spacing:-1.5px;max-width:620px}.hero h1 em{color:#61734f;font-weight:normal}.hero p{font-size:14px;line-height:1.8;color:#7d8277;max-width:480px;margin-top:20px}.hero-art{position:relative;height:188px;display:flex;align-items:center;justify-content:center}.hero-art img{width:150px;height:168px;object-fit:cover;border-radius:12px;box-shadow:0 12px 24px #3c462918;border:5px solid white;transform:rotate(-7deg)}.hero-art img+img{width:112px;height:132px;position:absolute;right:0;bottom:0;transform:rotate(10deg)}.caption{font-size:10px;letter-spacing:.5px;color:#959888}.section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:30px 0 17px}.section-title h2{font:normal 23px Georgia,serif}.text-button{font-size:12px;color:#6b785e;display:inline-flex;align-items:center;gap:6px;padding:6px}.actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.action-card{text-align:left;background:#fffefa;border:1px solid #e2e3d8;border-radius:15px;padding:23px;min-height:191px;position:relative;transition:transform .15s,box-shadow .15s}.action-card:hover{transform:translateY(-3px);box-shadow:0 8px 20px #303b2410}.action-card:first-child{background:#edf1e7;border-color:#dce3d1}.action-card:nth-child(2){background:#f2ecf4;border-color:#e5dce8}.action-card:nth-child(3){background:#f7f0e6;border-color:#eadecd}.action-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:12px;background:#ffffffa6;color:#677654;margin-bottom:22px}.action-card:nth-child(2) .action-icon{color:#8c7397}.action-card:nth-child(3) .action-icon{color:#a5875e}.action-card h3{font-size:15px;font-weight:600;margin-bottom:8px}.action-card p{font-size:12px;line-height:1.6;color:#878a7c;max-width:180px}.action-arrow{position:absolute;right:20px;top:27px;color:#839071}.muted{color:#858b7e;font-size:13px;line-height:1.65}.empty-story{border:1px dashed #d9ddcf;border-radius:13px;background:#f9f8f3;padding:24px;display:flex;gap:15px;align-items:center}.empty-story>svg{color:#9aa78b;width:30px;height:30px}.empty-story strong{display:block;font-size:13px;font-weight:500;margin-bottom:5px}.empty-story p{font-size:12px;color:#8d9184}.tabs{display:flex;gap:8px;flex-wrap:wrap}.tab{font-size:12px;padding:8px 14px;border-radius:20px;color:#7c8473;border:1px solid transparent}.tab.active{background:#fffefa;border-color:#dfe3d6;color:#536645}.asset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.asset-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr))}.asset{border:1px solid #e1e3d8;background:#fffefa;border-radius:13px;overflow:hidden;position:relative}.asset-view{width:100%;padding:0;text-align:left;display:block}.asset img,.asset video{width:100%;height:auto;aspect-ratio:1;object-fit:cover;display:block;background:#ebece4}.asset-info{padding:13px 14px}.asset-info strong{display:block;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.asset-info small{display:block;font-size:10px;color:#8b9182;margin-top:5px}.badge{background:#fffcf2e8;padding:4px 7px;border-radius:6px;font-size:9px;color:#6f7f5f;position:absolute;top:10px;left:10px;pointer-events:none}.variant-count{position:absolute;top:10px;right:10px;background:#fffcf2ed;border-radius:5px;padding:4px 7px;font-size:10px}.add-card{border:1px dashed #ced6c2;border-radius:13px;background:transparent;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:11px;min-height:180px;color:#8b987c;font-size:12px}.add-card svg{width:30px;height:30px}.section-foot{margin-top:36px;border-top:1px solid #e3e4d8;padding-top:18px;display:flex;gap:8px;font-size:11px;color:#939889;align-items:center}.page-head{margin:35px 0 25px;display:flex;justify-content:space-between;gap:20px;align-items:center}.page-head h1{font:normal 34px Georgia,serif;letter-spacing:-.5px}.page-head p{margin-top:10px}.button{background:#526b48;color:#fffdf7;border:1px solid #526b48;padding:12px 20px;min-height:44px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:13px;font-weight:500}.button:hover{background:#435b3a}.button.secondary{background:#fffefa;border-color:#dce1d2;color:#59694a}.button.secondary:hover{background:#eff1e9}.button.danger{background:#fff7f3;color:#a65645;border-color:#ead2ca}.button.small{font-size:11px;padding:8px 12px;min-height:35px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;flex-wrap:wrap}.toolbar select{max-width:210px}.story-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.story-card{background:#fffefa;border:1px solid #e2e4d7;border-radius:14px;overflow:hidden;text-align:left;padding:0}.story-cover{height:135px;background:#e9eddf;display:flex;align-items:center;justify-content:center;color:#93a17d;overflow:hidden}.story-cover img{width:100%;height:100%;object-fit:cover}.story-cover svg{width:42px;height:42px}.story-content{padding:19px}.story-content h3{font:20px Georgia}.story-content p{font-size:12px;color:#878e7e;margin:10px 0;line-height:1.6}.story-content small{font-size:10px;color:#969c8d}.work-layout{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:25px;align-items:start}.panel{border:1px solid #e0e3d6;border-radius:15px;background:#fffefa;padding:25px}.panel+.panel{margin-top:20px}.panel h2{font:23px Georgia;margin-bottom:15px}.step-label{font-size:10px;text-transform:uppercase;letter-spacing:1.5px;color:#8c967f;margin-bottom:13px}.steps{display:flex;gap:17px;margin:26px 0;color:#9a9f91;font-size:11px;align-items:center}.steps span{display:flex;align-items:center;gap:7px}.steps b{font-size:10px;border:1px solid #d8ddcd;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;font-weight:500}.steps .active{color:#526b48}.steps .active b{background:#526b48;border-color:#526b48;color:white}label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#69745e;margin:14px 0}input,textarea,select{background:#fcfcf7;border:1px solid #dce1d2;border-radius:8px;padding:11px 12px;color:#333c2e;width:100%;min-height:42px}textarea{resize:vertical;line-height:1.75;min-height:135px}textarea.large{font-size:15px;min-height:185px;background:#fdfcf8}.input-hint{font-size:11px;line-height:1.65;color:#909787}.voice-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}.voice-button{background:#edf1e5;border:1px solid #dce4ce;border-radius:25px;padding:10px 16px;color:#587044;font-size:12px;display:flex;align-items:center;gap:7px}.voice-button.recording{background:#f9e3df;color:#a65244}.voice-button.recording svg{animation:pulse 1s infinite}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-row label{min-width:0}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.row.between{justify-content:space-between}.divider{height:1px;background:#e4e6da;margin:22px 0}.reference-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.reference{position:relative;border:2px solid transparent;border-radius:10px;padding:0;overflow:hidden}.reference img{display:block;width:64px;height:64px;object-fit:cover}.reference.chosen{border-color:#5e7a4d}.reference small{display:block;font-size:9px;max-width:75px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:4px}.notice{background:#f0f2e8;border:1px solid #dfe5d2;border-radius:9px;padding:13px 15px;font-size:12px;line-height:1.7;color:#738164;margin:15px 0}.notice.warning{background:#faf0df;color:#937546;border-color:#edddbe}.notice.error{background:#f9eae5;color:#9e5847;border-color:#efd4ca}.aside-title{font:20px Georgia;margin-bottom:13px}.tip{font-size:12px;line-height:1.85;color:#8a9280}.cost-box{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px 0}.cost-box strong{font-size:18px;font-weight:500;color:#526b48}.cost-box small{display:block;font-size:10px;color:#969d8c;margin-top:4px}.job{display:flex;gap:14px;align-items:center;border:1px solid #e0e5d3;padding:17px;border-radius:10px;background:#f8faf1;margin:12px 0}.spinner{width:22px;height:22px;border:2px solid #dbe4cc;border-top-color:#617a4a;border-radius:50%;animation:spin 1s linear infinite;flex-shrink:0}.job strong{font-size:12px;font-weight:500}.job p{font-size:11px;color:#8b947e;margin-top:6px}.job.failed,.job.unknown{background:#faf1e9;border-color:#eadbc9}.job .job-copy{flex:1}.elapsed{font-size:11px;color:#859276}.wide-image{width:100%;max-height:60vh;object-fit:contain;background:#f1f2e9;border-radius:10px;display:block}.result-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.rating{display:flex;gap:5px;margin-left:auto}.rating button{border:1px solid #e0e4d4;border-radius:8px;padding:9px;color:#869274;min-width:40px;min-height:40px}.rating button.active{background:#e7efdc;color:#4e6a36}.delete-link{color:#ad7669;font-size:11px;padding:10px}.auth-page{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr}.auth-art{background:#e8eddc;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:50px}.auth-art img{width:230px;height:230px;border-radius:30px;transform:rotate(-6deg);box-shadow:0 20px 40px #5c704828}.auth-art h1{font:40px Georgia;text-align:center;margin-top:40px;color:#526445}.auth-art p{font-size:13px;color:#7a8669;margin-top:16px;max-width:330px;text-align:center;line-height:1.8}.auth-form{display:flex;align-items:center;justify-content:center;padding:35px}.auth-box{width:340px}.auth-box h2{font:31px Georgia;margin-bottom:12px}.auth-box .button{width:100%;margin-top:10px}.auth-brand{display:flex;gap:10px;align-items:center;font:17px Georgia;color:#65764f;margin-bottom:48px}.auth-brand img{width:32px;height:32px}.auth-box .muted{margin-bottom:23px}.auth-box label{margin:19px 0}.initial{display:grid;place-items:center;min-height:100vh;color:#7b8b6c;font:22px Georgia}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#35472e;color:white;border-radius:10px;box-shadow:0 7px 25px #20301830;padding:14px 20px;max-width:90vw;z-index:100;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s}#toast.visible{opacity:1}dialog{border:1px solid #dce3cf;border-radius:17px;padding:26px;background:#fffef9;color:#333d2c;max-width:750px;width:calc(100% - 32px);max-height:90vh;box-shadow:0 20px 80px #24311a30}dialog::backdrop{background:#25361c70;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-head h2{font:25px Georgia}.modal-head button{padding:10px}.modal-body{overflow:auto}.modal-body .asset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.check{display:flex;flex-direction:row;gap:9px;align-items:center;line-height:1.6}.check input{width:17px;min-height:17px;height:17px;accent-color:#526b48}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.settings-grid .panel{margin:0}.settings-grid .full{grid-column:1/-1}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px}td,th{text-align:left;border-bottom:1px solid #e5e8db;padding:12px 9px;vertical-align:top;white-space:nowrap}th{font-size:10px;color:#8b947e;font-weight:500}td input,td select{min-width:110px;font-size:11px;padding:8px}details summary{cursor:pointer;color:#7f8c70;font-size:12px;padding:10px 0}pre{white-space:pre-wrap;font-size:11px;font-family:inherit;line-height:1.6}.status-badge{display:inline-flex;gap:5px;align-items:center;background:#eef1e5;padding:4px 8px;border-radius:15px;font-size:10px;color:#73845e}.file-input{display:none}.feedback-item{padding:15px 0;border-bottom:1px solid #e4e6d9}.feedback-item p{font-size:12px;line-height:1.7;margin:8px 0;white-space:pre-wrap}.feedback-item small{color:#8d9780;font-size:10px}.mobile-nav{display:none}.field-error{color:#a35342;font-size:12px;line-height:1.7;margin-top:14px;min-height:20px}.style-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.style-choice{padding:0;border:1px solid #dfe4d3;border-radius:11px;overflow:hidden;text-align:left}.style-choice img{width:100%;display:block;aspect-ratio:1;object-fit:cover}.style-choice span{display:block;padding:12px;font-size:12px}.style-choice small{display:block;color:#8a937f;font-size:10px;margin-top:5px}.noir{filter:grayscale(1) contrast(1.5)}.warm{filter:sepia(.3) saturate(.8)}.story-meta{max-width:650px}.search-field{max-width:230px}.list-note{white-space:pre-wrap;font-size:12px;line-height:1.7;color:#7e8874;margin-bottom:20px}.version-list{display:flex;gap:8px;overflow:auto;margin-top:16px}.version-list button{padding:3px;border:2px solid transparent;border-radius:9px}.version-list button.active{border-color:#5f7c4c}.version-list img{width:65px;height:65px;object-fit:cover;border-radius:5px}.version-list small{display:block;font-size:9px;margin-top:4px}.sticky-save{margin-top:20px;display:flex;justify-content:flex-end;gap:10px}.quiet{font-size:11px;color:#87927a}.link{color:#60784b;text-decoration:underline;text-underline-offset:3px}.admin-row{border-bottom:1px solid #e2e6d7;padding:12px 0;display:flex;justify-content:space-between;align-items:center;gap:10px}.admin-row strong{font-size:13px}.admin-row small{font-size:11px;color:#8e987f}.limit{font-variant-numeric:tabular-nums}.fullwidth{width:100%}#modal .reference-row{max-height:55vh;overflow:auto}.view-description{font-size:12px;color:#7f8a72;line-height:1.8;margin:15px 0;white-space:pre-wrap}.empty-large{text-align:center;padding:55px 25px}.empty-large svg{color:#a3af94;width:40px;height:40px;margin-bottom:15px}.empty-large h2{font:25px Georgia;margin:0 0 10px}.empty-large .button{margin-top:20px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.3}}@media(min-width:1500px){.main{padding-left:75px;padding-right:75px}}@media(max-width:1150px){.main{padding-left:30px;padding-right:30px}.shell{padding-left:205px}.sidebar{width:205px;padding-left:17px;padding-right:17px}.hero h1{font-size:40px}.hero{grid-template-columns:1fr 175px}.hero-art img{width:125px;height:145px}.hero-art img+img{width:95px;height:110px}.action-card{padding:19px;min-height:190px}.asset-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))}.work-layout{grid-template-columns:minmax(0,1fr) 220px;gap:18px}.panel{padding:20px}.settings-grid{grid-template-columns:1fr}.settings-grid .full{grid-column:auto}}@media(max-width:850px){.work-layout{grid-template-columns:1fr}.work-aside{display:none}.hero{grid-template-columns:1fr}.hero-art{display:none}.hero h1{max-width:500px}.actions{gap:10px}.action-card{padding:17px;min-height:185px}.action-card h3{font-size:13px}.action-card p{font-size:11px}.action-arrow{right:12px}.top-note{display:none}}@media(max-width:650px){.shell{padding-left:0;padding-bottom:78px}.sidebar{display:none}.main{padding:0 20px 30px}.topbar{height:73px}.breadcrumb{display:none}.mobile-brand{display:flex;align-items:center;gap:10px;font:18px Georgia}.mobile-brand img{width:30px;height:30px}.top-note{display:flex;font-size:10px}.top-note .dot{display:none}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;justify-content:space-around;align-items:center;border-top:1px solid #dfe3d3;background:#fdfcf9f7;backdrop-filter:blur(10px);padding:9px 5px max(10px,env(safe-area-inset-bottom));z-index:20}.mobile-nav button{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:9px;min-width:60px;min-height:43px;color:#8c9681}.mobile-nav button.active{color:#4d693e}.mobile-nav svg{width:22px;height:22px}.hero{padding:30px 0 22px;gap:0}.hero h1{font-size:37px;line-height:1.13;letter-spacing:-1px}.hero p{font-size:12px;line-height:1.8;margin-top:15px;max-width:320px}.eyebrow{font-size:9px;margin-bottom:12px}.section-title{margin-top:25px}.section-title h2{font-size:22px}.actions{grid-template-columns:1fr;gap:10px}.action-card{min-height:99px;padding:19px 43px 19px 73px}.action-icon{position:absolute;left:17px;top:23px;margin:0;width:39px;height:39px}.action-card h3{font-size:14px}.action-card p{max-width:none;font-size:11px;margin-top:6px}.action-arrow{top:36px;right:15px}.asset-grid,.asset-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.asset-info{padding:12px}.asset-info strong{font-size:12px}.asset-info small{font-size:9px}.add-card{min-height:170px}.empty-story{padding:18px;gap:12px}.empty-story p{font-size:11px}.section-foot{font-size:10px;line-height:1.6}.page-head{margin:27px 0 22px;align-items:flex-start}.page-head h1{font-size:29px}.page-head .button{padding:10px 13px;font-size:11px}.page-head p{font-size:11px}.story-grid{grid-template-columns:1fr}.toolbar{gap:10px}.tabs{gap:0}.tab{font-size:11px;padding:8px 10px}.panel{padding:19px}.panel h2{font-size:22px}.steps{gap:13px;font-size:10px;margin-top:20px}.steps b{width:20px;height:20px}.form-row{gap:10px}.button{padding:12px 15px;font-size:12px}.cost-box strong{font-size:16px}textarea.large{min-height:170px;font-size:14px}.auth-page{grid-template-columns:1fr}.auth-art{display:none}.auth-form{min-height:100vh;padding:30px}.auth-brand{margin-bottom:40px}.modal-body .asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}dialog{padding:20px}.modal-head h2{font-size:22px}.style-grid{grid-template-columns:1fr 1fr}.settings-grid{gap:15px}.top-note .limit{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#toast{bottom:95px;width:max-content;max-width:90vw}.search-field{max-width:none;width:100%}.hero .caption{display:none}.result-actions .button{flex:1}.rating{margin-left:0}.profile-mobile{margin-top:20px}.sticky-save{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*{animation-duration:2s!important;transition:none!important}.action-card:hover{transform:none}}

.admin-tabs{margin-bottom:24px}.competencies{border:1px solid #dce1d2;border-radius:10px;margin:20px 0;padding:5px 15px 12px}.competencies legend{font-size:12px;color:#69745e;padding:0 7px}.assignment-form{border-top:1px solid #e4e6da;padding-top:15px;margin-top:15px}.assignment-form textarea[name="system_prompt"]{min-height:180px}
.models-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}.model-card{border:1px solid #d5e1cf;border-left:4px solid #6c8d59;border-radius:12px;padding:18px;background:#f6f9f0;min-width:0}.model-card.disabled{border-color:#dedfd7;background:#f4f3ee;opacity:.8}.model-card h3{font-size:15px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}.model-code{font-size:10px;color:#6f7c65;margin:8px 0;overflow-wrap:anywhere}.model-competencies{font-size:11px;color:#6c7a61;line-height:1.7}.model-health{font-size:10px;line-height:1.7;margin:12px 0;color:#6b765f;overflow-wrap:anywhere}.health-available{color:#3d723c;background-color:#e7f2df}.health-error{color:#a14737;background-color:#f8e4dd}.health-warning{color:#8b672c;background-color:#fbefd7}.health-checking{color:#466d8d;background-color:#e9f2f9}.model-health.health-available,.model-health.health-error,.model-health.health-warning,.model-health.health-checking{padding:7px 9px;border-radius:6px}.model-actions{display:flex;flex-wrap:wrap;gap:6px}.model-actions .button{font-size:10px;min-height:34px;padding:7px 10px}.operation-workbench{display:grid;grid-template-columns:235px minmax(0,1fr);gap:24px;align-items:start}.operation-list{display:flex;flex-direction:column;gap:7px;position:sticky;top:20px}.operation-link{text-align:left;padding:14px;border:1px solid #e0e5d6;border-left:3px solid #d7dfcd;border-radius:9px;background:#f6f6ef;min-height:66px}.operation-link strong{font-size:12px;font-weight:650;line-height:1.5;display:block}.operation-link small{display:block;font-size:10px;color:#7b8870;margin-top:6px;line-height:1.5;overflow-wrap:anywhere}.operation-link.connected{border-left-color:#8ca276;background:#f0f5e8}.operation-link.active{background:#e3edda;border-color:#a5ba90;border-left-color:#4b7039;color:#345026;box-shadow:0 3px 12px #445c2110}.operation-editor{min-width:0}.operation-form{margin:0;padding:0;border:0}.operation-form h2{font-size:24px}.operation-form h3{font-size:15px;font-weight:600;margin:12px 0}.operation-form>label{margin:20px 0}.save-indicator{font-size:10px;color:#577847;white-space:nowrap}.save-indicator.error{color:#a94f3b}.parameter-group{border:1px solid #dce3d1;border-radius:11px;padding:14px;margin:18px 0}.parameter-group legend{font-size:12px;color:#506640;font-weight:600;padding:0 6px}.parameter-options{display:flex;gap:8px;flex-wrap:wrap;margin:13px 0}.parameter-option{display:flex;flex-direction:row;align-items:center;gap:7px;border:1px solid #dce2d3;border-radius:8px;padding:8px 10px;background:#fafbf6;cursor:pointer;margin:0;font-size:12px}.parameter-option:has(input:checked){background:#e8f0de;border-color:#9db589;color:#3c5d2b}.parameter-option input{width:15px;height:15px;min-height:15px;padding:0;accent-color:#587b42}.parameter-option.format-option{flex-direction:column;position:relative;min-width:66px;gap:3px}.format-option input{position:absolute;left:5px;top:5px;width:12px;height:12px;min-height:12px}.ratio-icon{width:43px;height:40px}.parameter-group>label{max-width:210px;margin-bottom:0}.formats{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.format-choice{border:1px solid #d8e1cd;background:#fbfcf7;border-radius:9px;padding:8px;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:62px;color:#75886a;font-size:10px}.format-choice.active{background:#e3edda;border-color:#76965f;color:#365629}.format-choice small{font-size:9px}.user-tuning{margin-top:16px;border-top:1px solid #e1e7d6;padding-top:12px}.style-chips{display:flex;gap:6px;flex-wrap:wrap}.style-chips button{border:1px solid #dce3d1;background:#f6f8ef;border-radius:20px;font-size:11px;padding:7px 12px}.style-chips button.active{background:#e4edda;border-color:#93ad7d}.operation-form textarea{min-height:110px}.operation-form textarea[name=system_prompt]{min-height:190px}@media(max-width:1050px){.models-grid{grid-template-columns:1fr}.operation-workbench{grid-template-columns:190px minmax(0,1fr);gap:16px}}@media(max-width:760px){.operation-workbench{grid-template-columns:1fr}.operation-list{position:static;flex-direction:row;overflow:auto;padding-bottom:8px}.operation-link{min-width:170px;max-width:190px;flex-shrink:0}.operation-link strong{font-size:11px}.operations-panel{padding:15px}.operation-form h2{font-size:23px}.models-grid{grid-template-columns:1fr}.model-card{padding:15px}.operation-form .row.between{align-items:flex-start}}
.process-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;align-items:start}.process-main{min-width:0}.process-entry{background:#e3eddf;border-color:#9aaf91}.process-caption{font-size:13px;color:var(--muted);margin-bottom:12px}.process-media{background:#eeede7;border-radius:16px;overflow:hidden;display:flex;justify-content:center}.process-media img,.process-media video{display:block;width:100%;height:auto;max-height:65vh;object-fit:contain}.process-image-actions{display:flex;gap:16px;flex-wrap:wrap;margin:12px 0}.process-empty{width:100%;min-height:240px;border:2px dashed #b9c6b1;border-radius:18px;background:#f4f7ef;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;color:#466447}.process-empty svg{width:42px;height:42px}.process-empty strong{font-size:22px}.process-show{margin:20px 0}.process-request{display:block;margin:18px 0 8px}.process-request textarea{margin-top:10px}.process-settings{margin:18px 0}.process-settings .check{margin:14px 0}.process-run{margin-top:12px}.process-progress{margin-top:26px;padding-top:24px;border-top:1px solid #ddd}.process-progress progress{width:100%;height:8px;accent-color:#496a43}.process-plan{list-style:none;padding:0;margin:20px 0}.process-stage{display:flex;gap:12px;align-items:center;margin:14px 0}.stage-symbol{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#e9e9e1;flex-shrink:0}.process-stage small{display:block;margin-top:5px;color:#6a7167}.process-stage.completed .stage-symbol{background:#deecd6;color:#375b2a}.process-stage.running .stage-symbol{background:#efdfb9;animation:pulse 1.5s infinite}.process-totals{display:flex;flex-wrap:wrap;gap:10px 20px;font-size:13px;color:#66705f;margin:20px 0}.process-strip{display:flex;overflow-x:auto;gap:10px;padding:8px 0 18px}.process-strip>button:not(.process-step-revise){flex:0 0 135px;padding:0;border:1px solid #ddd;background:#f6f6ee;border-radius:10px;overflow:hidden;text-align:left}.process-strip img,.process-strip video{width:135px;height:95px;object-fit:contain;background:#eeede7}.process-strip span{font-size:12px;display:block;padding:8px}.process-step-revise{align-self:center;flex-shrink:0}.process-feedback{margin:24px 0;padding:20px;background:#f3f5ed;border-radius:14px}.process-feedback textarea{width:100%;min-height:95px}.process-details{margin:22px 0}.process-details details{margin:12px 0}.process-details pre{white-space:pre-wrap;word-break:break-word;font-size:12px;max-height:280px;overflow:auto}.process-origin-thumb{padding:0;border:0;background:none;margin:12px 0}.process-origin-thumb img{max-width:150px;max-height:120px}.workflow-card{width:100%;display:grid;grid-template-columns:1fr auto;text-align:left;margin:16px 0;gap:10px}.workflow-card span{font-size:13px;color:#69745f;grid-column:1}.workflow-card svg{grid-column:2;grid-row:1/3;width:22px;height:22px;align-self:center}.picker-item img{width:100%;height:130px;object-fit:contain}.picker-item{overflow:hidden;min-width:0}.picker-item span{display:block;overflow-wrap:anywhere}.process-main> .text-button{margin:12px 16px 0 0}@media(max-width:1000px){.process-layout{grid-template-columns:minmax(0,1fr)}.process-layout .work-aside{display:none}}@media(max-width:600px){.process-feedback{padding:14px}.process-main{padding:18px}.process-empty{min-height:190px}.process-media img,.process-media video{max-height:55vh}.process-feedback .row{flex-wrap:wrap}}
.image-viewer{width:100%;min-width:0}.zoom-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px}.zoom-tools button{border:1px solid #cbd2c3;background:#f4f6ee;border-radius:8px;min-width:42px;min-height:42px;padding:8px 12px}.zoom-tools output{min-width:55px;text-align:center;font-size:13px}.zoom-scroll{height:min(62vh,600px);min-height:240px;width:100%;overflow:auto;background:#e9ebe4;touch-action:none;cursor:grab;border-radius:12px;overscroll-behavior:contain}.zoom-scroll:active{cursor:grabbing}.zoom-stage{width:max-content;min-width:100%;min-height:100%;display:grid;place-items:center}.zoom-stage img{display:block;max-width:none;max-height:none;user-select:none;pointer-events:none}.process-strip [aria-pressed="true"]{outline:2px solid #597849;outline-offset:-2px}.process-caption{line-height:1.6}@media(max-width:600px){.zoom-scroll{height:52vh}.zoom-tools{gap:6px}.zoom-tools button{padding:8px}.zoom-tools output{min-width:45px}}
.composer{position:relative;margin:12px 0}.composer textarea{display:block;width:100%;box-sizing:border-box;min-height:74px;max-height:230px;line-height:24px;padding:12px 64px 12px 14px;resize:none;font-size:15px}.composer .composer-mic{position:absolute;right:8px;top:8px;min-width:42px;min-height:42px;width:42px;height:42px;padding:9px;border-radius:10px;display:grid;place-items:center}.composer-mic svg{width:22px;height:22px}.process-feedback>summary{font-size:16px;font-weight:600;cursor:pointer}.process-feedback>h3{margin-top:16px}.process-feedback textarea{min-height:74px}.process-full-request{white-space:pre-wrap;overflow-wrap:anywhere;margin:14px 0;line-height:1.65}.process-wish{margin:20px 0}.process-materials{display:flex;overflow-x:auto;gap:12px;padding:8px 0}.material-chip{position:relative;flex:0 0 160px;border:1px solid #d9dfd2;border-radius:12px;overflow:hidden;background:#f5f7f0}.material-preview{width:100%;padding:0;background:none;border:0}.material-preview img{width:100%;height:100px;object-fit:contain}.material-chip>span{display:block;font-size:12px;padding:6px 10px;overflow-wrap:anywhere}.material-chip select{font-size:11px;margin:0 6px 8px;width:calc(100% - 12px);padding:6px}.material-remove{position:absolute;top:4px;right:4px;background:#fff;border:1px solid #ddd;border-radius:50%;width:30px;height:30px;font-size:20px}.process-development{margin:20px 0;padding:18px;background:#f3f5ed;border-radius:14px}.process-finish{margin-top:24px;flex-wrap:wrap}.process-request>strong{display:block}.process-feedback .composer textarea{min-height:74px}
.material-choice{display:block;cursor:pointer;border:1px solid #d9dfd2;border-radius:10px;padding:8px}.material-choice:has(input:checked){outline:2px solid #597849}.material-choice span{display:flex;gap:8px;align-items:center}.material-choice input{width:18px;height:18px;flex-shrink:0}.picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
dialog.library-picker{padding:0;width:min(840px,calc(100% - 24px));height:min(88vh,860px);height:min(88dvh,860px);max-height:calc(100dvh - 24px);overflow:hidden}.library-picker-body{height:100%;display:flex;flex-direction:column;min-height:0}.library-picker-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px}.library-picker-panel{flex-shrink:0;border-top:1px solid #dce1d2;background:#fffef9;padding:14px 20px max(14px,env(safe-area-inset-bottom));box-shadow:0 -8px 22px #2b3e2210}.library-picker-panel h2{font:22px Georgia,serif;margin:0}.library-picker-panel .row>button{min-width:42px;min-height:42px}.library-picker-tabs{gap:4px;margin:8px 0 12px}.library-picker-confirm{display:flex;flex-direction:column;align-items:stretch;gap:8px}.library-picker-confirm>span{font-size:13px;color:#65735a}.library-picker-confirm>.button{width:100%}.library-picker-panel .input-hint{margin-top:8px}.library-choice{display:block;margin:0;padding:8px;border:1px solid #dce1d2;border-radius:11px;cursor:pointer;min-width:0;background:#f7f8f1}.library-choice.chosen{outline:2px solid #597849;outline-offset:-2px}.library-choice:has(input:disabled){opacity:.6;cursor:default}.library-choice img,.library-choice video{width:100%;height:130px;object-fit:contain;display:block;background:#eeeee7;border-radius:6px}.library-choice>span{display:flex;align-items:flex-start;gap:8px;padding-top:8px;font-size:12px;overflow-wrap:anywhere}.library-choice input{width:18px;min-width:18px;height:18px;min-height:18px;padding:0;accent-color:#526b48}.library-choice small{display:block;margin-top:5px;color:#87927a}.library-picker-empty{padding:32px 8px;color:#7f8975;line-height:1.6}@media(max-width:600px){dialog.library-picker{width:calc(100% - 16px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);border-radius:13px}.library-picker-content{padding:12px}.library-picker-panel{padding-left:14px;padding-right:14px}.library-picker-panel h2{font-size:20px}.library-picker-tabs .tab{font-size:11px;padding:7px 10px}.library-picker-content .picker-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.library-choice img,.library-choice video{height:110px}}
.process-dream{margin-top:18px;padding:18px;border:1px solid #c9d3bf;border-radius:14px;background:#f5f5ee}.process-dream h3{margin-top:0}.process-dream label{margin:12px 0}.process-experiments{margin:16px 0}.asset>.text-button{margin:0 12px 10px}.media-preview .zoom-scroll{height:min(60dvh,700px)}dialog.preview-expanded{width:calc(100vw - 16px);max-width:none;height:calc(100dvh - 16px);max-height:none}.preview-expanded .zoom-scroll{height:calc(100dvh - 210px)}.preview-expanded video{max-height:calc(100dvh - 180px)}
.process-run[hidden]{display:none}
.fantasy-ticks{display:flex;justify-content:space-between;color:#7b7185;font-size:11px;padding:0 5px;margin-top:-5px}.fantasy-help{display:block;margin-top:7px;line-height:1.5}.fantasy-cost{margin:18px 0 12px;padding:13px;border-radius:10px;border:1px solid #d5c4e1;background:#fffdfd}.fantasy-cost strong{display:block;font-size:14px;line-height:1.6}.fantasy-cost .input-hint{margin-top:7px}
.fantasy-tuning{margin:16px 0}.fantasy-tuning label{display:block;margin:14px 0}.fantasy-tuning input[type=range]{width:100%;accent-color:#70528b;min-height:36px;padding:0}.fantasy-tuning output{float:right;color:#70528b}.creative-brief{padding:16px;margin:18px 0;background:#faf4ff;border:1px solid #d6c6e1;border-radius:12px}.creative-brief summary{font-weight:600;cursor:pointer}.creative-brief p{margin-top:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.process-conversation{padding:12px 16px;border-radius:12px;background:#f3f4ed;white-space:pre-wrap;overflow-wrap:anywhere}.process-comment{margin-top:12px;padding:10px 14px;background:#fffdf6;border-left:3px solid #73866b;border-radius:6px}.process-comment p{margin-bottom:0}.process-progress>[data-action="process-rework"]{margin-left:8px}.process-settings{margin:12px 0 18px}
.fantasy-entry{background:#f1e9fa!important;border-color:#b6a3cf!important}.fantasy-launch{background:#70528b;color:white;border-color:#70528b}.fantasy-panel{margin:18px 0;padding:20px;border:1px solid #bdaacb;border-radius:16px;background:#faf4ff}.fantasy-panel h3{margin-top:0}.fantasy-source{display:flex;align-items:center;gap:12px;margin:16px 0;overflow-wrap:anywhere}.fantasy-source img{width:72px;height:72px;object-fit:contain;border-radius:8px;background:#f0e9f4}.fantasy-panel .fantasy-launch{width:100%}
.material-download{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;color:#435e37;text-decoration:none}.material-download svg{width:20px;height:20px;flex-shrink:0}.material-download.icon-button{width:44px;height:44px;border:1px solid #ccd7c2;background:#fffef9;border-radius:9px}.material-download:focus-visible{outline:3px solid #597849;outline-offset:2px}.asset-tools{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:0 8px 8px}.asset-tools>.text-button{margin:0;font-size:12px}.asset-grid,.asset-grid.compact{grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:12px}.asset-view img,.asset-view video{height:120px;max-height:120px;object-fit:contain}.asset-info{padding:9px}.asset-info strong{font-size:13px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.asset-info small{font-size:11px}.library-choice-tile{position:relative;min-width:0}.library-choice-tile>.material-download{position:absolute;right:5px;top:5px}.process-strip-item{position:relative;flex:0 0 135px;min-width:0}.process-strip-item>button[data-process-preview]{display:block;width:135px;padding:0;border:1px solid #ddd;background:#f6f6ee;border-radius:10px;overflow:hidden;text-align:left}.process-strip-item>.material-download{position:absolute;top:3px;right:3px}.process-strip-item>.process-step-revise{margin-top:4px}.material-chip>.material-download{margin:0 8px 6px}.material-chip{flex-basis:140px}.material-preview img{height:90px}.library-picker-content .picker-grid{grid-template-columns:repeat(auto-fill,minmax(135px,1fr))}.library-choice img,.library-choice video{height:100px}@media(max-width:600px){.asset-grid,.asset-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.asset-view img,.asset-view video{height:105px}.library-picker-content .picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.duration-range{appearance:none;-webkit-appearance:none;width:100%;height:8px;border-radius:5px;background:linear-gradient(to right,#75936b 0%,#75936b var(--recommended-end),#d4a45e var(--recommended-end),#d4a45e 100%);margin:16px 0}.duration-range::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:21px;height:21px;border-radius:50%;background:#405b3a;border:2px solid #fff;box-shadow:0 1px 4px #0003}.duration-range.long-duration::-webkit-slider-thumb{background:#a66b20}.duration-range::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#405b3a;border:2px solid #fff}.fantasy-ticks{gap:8px}.fantasy-ticks span{font-size:11px;max-width:110px;text-align:center}
.fantasy-tuning input.duration-range[type=range]{height:36px;min-height:36px;border:0;background:linear-gradient(to right,#75936b 0%,#75936b var(--recommended-end),#d4a45e var(--recommended-end),#d4a45e 100%) center/100% 7px no-repeat}
.fantasy-ticks span{flex:1;min-width:0;overflow-wrap:anywhere}

.reference-card{padding:8px;font-size:12px;overflow-wrap:anywhere}.reference-card summary{cursor:pointer;font-weight:600}.reference-thumbs{display:flex;gap:6px;flex-wrap:wrap}.reference-thumb{width:56px;height:64px;padding:2px;background:transparent;border:1px solid #ddd;border-radius:6px}.reference-thumb img{width:100%;height:100%;object-fit:contain}

.character-editor{margin-bottom:16px}.character-editor>label{display:block;margin:12px 0}.character-views{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}.character-view{padding:12px;border:1px solid #ddd;border-radius:12px;min-width:0}.character-source{display:flex;flex-direction:column;gap:5px;max-width:155px;font-size:12px}.character-candidate{border-top:1px solid #ddd;padding-top:10px;margin-top:12px}.character-candidate img{max-height:220px;width:100%;object-fit:contain}.character-summary{padding:10px;display:flex;flex-direction:column;gap:8px;text-align:left}.character-summary img{height:110px;width:100%;object-fit:contain}.character-summary small{font-size:12px}

.character-header{display:grid;grid-template-columns:minmax(120px,1fr) minmax(180px,2fr) minmax(120px,1fr) auto;gap:10px;align-items:end;margin-bottom:12px;padding:14px}.character-header label{margin:0;font-size:12px}.character-header textarea{min-height:56px;resize:vertical;overflow:hidden}.character-views{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.character-view{padding:9px}.character-view h3{font-size:15px;margin:0 0 8px}.character-candidate{margin-top:0;border-top:0;padding-top:0}.character-candidate img{height:145px;max-height:145px;object-fit:contain}.character-alternatives{margin-top:10px;font-size:12px}.character-alternatives .character-candidate{border-top:1px solid #ddd;margin-top:8px;padding-top:8px}.character-batch{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.character-batch>p{flex-basis:100%;margin:0 0 10px}.character-footer{margin-top:12px}.character-footer button{margin:4px}.character-source{max-width:130px}.character-source .reference-thumb{width:70px;height:75px}@media(max-width:1000px){.character-header{grid-template-columns:1fr 1fr}.character-views{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.character-header{grid-template-columns:1fr}.character-views{grid-template-columns:repeat(2,minmax(0,1fr))}.character-view .button{white-space:normal;width:100%;font-size:12px}.character-candidate img{height:115px}}

.character-records{font-size:11px;line-height:1.55;margin-top:10px;color:#697263;overflow-wrap:anywhere}.character-records p{margin:7px 0}#modal[data-character-concept] .composer{margin:12px 0}#modal[data-character-concept] label{margin:12px 0;display:block}#modal[data-character-concept] .check{display:flex}

.character-titlebar{align-items:start;gap:10px;margin-bottom:12px}.character-caption{font-size:12px;color:#78806f;margin-bottom:4px}.character-titlebar h1{font-size:32px;line-height:1.15;margin:0 0 7px;overflow-wrap:anywhere}.character-note{white-space:pre-wrap;margin:4px 0;font-size:14px;max-width:760px}.character-meta{font-size:12px;color:#77816d;margin:5px 0}.character-titlebar>.row{flex-shrink:0}.character-gallery{padding:12px;margin-bottom:12px}.character-views{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.character-view{border:0;background:#f7f8f2;border-radius:9px;padding:9px}.character-view h3{font-size:13px;line-height:1.25;min-height:2.5em;margin:0 0 5px;display:flex;align-items:center}.character-picture{display:flex;align-items:center;justify-content:center;width:100%;height:155px;border:0;padding:0;background:#eeefe7;border-radius:7px;overflow:hidden}.character-picture img{width:100%;height:100%;object-fit:contain}.character-placeholder{flex-direction:column;gap:7px;color:#8b9481;font-size:12px}.character-placeholder svg{width:26px;height:26px}.character-image-actions{display:flex;align-items:center;justify-content:center;gap:5px;margin:6px 0;min-height:32px}.character-icon,.character-image-actions .material-download.icon-button{display:inline-flex;width:32px;height:32px;align-items:center;justify-content:center;border:1px solid #d7dccf;border-radius:7px;background:#fffef9;padding:5px;flex-shrink:0;cursor:pointer}.character-icon svg,.character-image-actions .material-download svg{width:18px;height:18px}.character-icon:disabled{opacity:.4;cursor:default}.character-icon:focus-visible{outline:2px solid #597849;outline-offset:2px}.character-result-state{min-height:25px;font-size:11px;text-align:center}.accepted-mark{color:#557243}.character-result-state .text-button{font-size:12px;padding:2px;margin:0}.character-batch{border-top:1px solid #e1e4d9;margin-top:12px;padding-top:12px}.character-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}.character-input{padding:14px;min-width:0}.character-input h2{font-size:17px;margin:0 0 8px}.character-input input[type=file]{width:100%;max-width:100%;font-size:12px;margin-bottom:8px}.character-input .button{max-width:100%;white-space:normal}.character-footer{padding:12px;margin-top:12px}.character-footer .text-button{font-size:12px;display:inline-flex;align-items:center;gap:4px;padding:3px;margin:0}.character-footer .text-button svg{width:15px;height:15px}.character-footer .input-hint{margin:4px 0}.character-source{max-width:112px}.character-source .reference-thumb{width:65px;height:70px}.character-source .character-image-actions{gap:3px}.character-source .character-icon,.character-source .material-download.icon-button{width:28px;height:28px}@media(max-width:640px){.character-views{grid-template-columns:repeat(2,minmax(0,1fr))}.character-inputs{grid-template-columns:1fr}.character-titlebar h1{font-size:27px}.character-titlebar{flex-wrap:wrap}.character-picture{height:135px}}@media(max-width:340px){.character-views{grid-template-columns:1fr}}

.character-titlebar .character-note{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.character-inputs>.panel{margin-top:0;margin-bottom:0}
.process-action-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 8px}.process-action-toolbar .button,.process-action-toolbar .text-button{margin:0}
.cleanup-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 0}.cleanup-toolbar strong{font-size:13px}.cleanup-choice{display:flex;align-items:center;gap:7px;padding:9px 11px;font-size:12px;cursor:pointer}.cleanup-selected{outline:2px solid #657e52;outline-offset:1px}.cleanup-list{max-height:42vh;overflow:auto;padding-left:22px;margin:15px 0}.cleanup-list li{margin:10px 0;font-size:13px}.cleanup-list small{display:block;font-size:11px;margin-top:4px}

/* Character card V1.5 · 2026-11-26 */
.character-gallery{max-width:820px;padding:9px}.character-views{gap:7px}.character-view{padding:6px}.character-view h3{min-height:0;font-size:12px;margin:0 0 4px;line-height:1.25}.character-titlebar{margin-bottom:8px}.character-titlebar h1{font-size:27px;margin-bottom:3px}.character-caption{font-size:11px;margin-bottom:2px}.character-titlebar .character-note{font-size:12px;margin:2px 0}.character-meta{margin:2px 0}.character-header{padding:10px;gap:8px}.character-batch{margin-top:7px;padding-top:8px;gap:8px}.character-batch>p{display:none}.character-sources{max-width:820px;padding:10px;margin:8px 0}.character-sources>summary,.character-details>summary{cursor:pointer;font-size:12px;color:#66735d}.character-sources .character-inputs{margin-top:9px}.character-sources .character-input{padding:0}.character-sources .character-inputs:has(>.character-input:only-child){grid-template-columns:1fr}.character-footer{max-width:820px;padding:4px 0;display:flex;justify-content:space-between;gap:12px;align-items:start}.character-details{font-size:12px;flex:1;text-align:right}.character-details[open]{text-align:left}.character-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px}.character-compare figure{margin:0;min-width:0}.character-compare img{width:100%;height:240px;object-fit:contain;background:#f0f1e9}.character-compare figcaption{font-size:12px;text-align:center}.character-inputs .reference-thumbs{margin-top:8px}@media(max-width:640px){.character-titlebar h1{font-size:24px}.character-compare img{height:180px}.character-footer{flex-wrap:wrap}}

/* Return to unfinished work · 2026-11-26 */
.work-in-progress{margin:18px 0 12px;min-width:0}.work-in-progress h2{font:600 12px/1.3 inherit;font-size:12px;margin:0 0 8px;color:#66735a}.work-item{display:flex;align-items:start;gap:3px;margin:4px 0}.work-item .work-open{flex:1;min-width:0;padding:8px;text-align:left;background:#f1f3ea;border:1px solid transparent;border-radius:7px}.work-open.active{border-color:#9aaf88;background:#e7eddf}.work-open strong{display:block;font-size:12px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.work-open small{display:block;font-size:10px;line-height:1.4;margin-top:3px;color:#6a785f}.work-item>[data-work-dismiss]{border:0;background:transparent;padding:7px 3px;color:#86917c;cursor:pointer}.work-in-progress details{font-size:11px}.work-in-progress details[open]{max-height:240px;overflow:auto}.mobile-work{display:none}.character-next{max-width:820px;margin:8px 0 12px;padding:12px}.character-next p{font-size:12px;line-height:1.5;margin:5px 0 9px}.character-next strong{font-size:14px}.character-next .button{font-size:12px;min-height:36px}@media(max-width:900px){.mobile-work{display:block;margin:0 0 12px;font-size:12px}.mobile-work>summary{cursor:pointer;color:#536b45;padding:7px 0}.mobile-work .work-in-progress{margin:5px 0}.mobile-work .work-in-progress h2{display:none}}

/* Three responsive layouts · 2026-12-03: phone <600, tablet 600–1199, desktop >=1200. */
.main{min-width:0}.sidebar{overflow-y:auto}.nav button{min-height:44px}.nav button svg{flex-shrink:0}.mobile-nav button{min-width:0;min-height:48px}.photo-actions{grid-template-columns:1fr;max-width:760px}.photo-actions .action-card{min-height:140px}.workbench-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.workbench-link{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 28px;color:#66735d;font-size:13px}.workbench-link .button{flex-shrink:0}.photo-home{padding-top:32px;padding-bottom:24px}.photo-home .hero-art{display:none}.photo-home{grid-template-columns:1fr}.photo-home h1{font-size:44px}.photo-home p{max-width:620px}.photo-home h1 br{display:none}
@media(min-width:1200px){.main{padding-left:46px;padding-right:46px}.mobile-work{display:none}}
@media(min-width:900px) and (max-width:1199px){.shell{padding-left:190px}.sidebar{display:flex;width:190px;padding:24px 12px}.main{padding-left:24px;padding-right:24px}.nav button{padding:10px;gap:9px}.brand strong{font-size:16px}.workbench-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-work{display:none}}
@media(max-width:899px){.shell{padding-left:0;padding-bottom:calc(86px + env(safe-area-inset-bottom))}.sidebar{display:none}.main{padding:0 24px 28px}.topbar{height:64px}.breadcrumb{display:none}.mobile-brand{display:flex;align-items:center;gap:10px;font:18px Georgia}.mobile-brand img{width:30px;height:30px}.top-note{display:flex;font-size:10px}.mobile-nav{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);position:fixed;inset:auto 0 0;border-top:1px solid #dfe3d3;background:#fdfcf9f7;backdrop-filter:blur(10px);padding:8px 4px max(8px,env(safe-area-inset-bottom));z-index:20}.mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:10px;line-height:1.2;color:#77836d;padding:4px 1px;min-width:0}.mobile-nav button.active{color:#405c35;background:#edf1e6;border-radius:8px}.mobile-nav svg{width:22px;height:22px}.mobile-work{display:block}.workbench-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:600px) and (max-width:899px){.main{max-width:850px;padding-left:30px;padding-right:30px}.story-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.asset-grid,.asset-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))}.character-views{grid-template-columns:repeat(3,minmax(0,1fr))}.mobile-nav{padding-left:30px;padding-right:30px}.photo-home h1{font-size:38px}}
@media(max-width:599px){.main{padding-left:16px;padding-right:16px}.photo-home h1{font-size:32px;line-height:1.2}.photo-home h1 br{display:block}.photo-home p{font-size:13px}.photo-actions .action-card{min-height:120px}.workbench-actions{grid-template-columns:1fr}.workbench-link{align-items:flex-start;flex-direction:column;gap:10px}.mobile-nav button{font-size:9px}.top-note .limit{max-width:90px}.page-head{flex-wrap:wrap;gap:12px}.toolbar{flex-wrap:wrap}.form-row{flex-wrap:wrap}.panel{min-width:0}.character-views{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Photo restoration workspace · 2026-12-03 */
.photo-back{margin:12px 0 8px}.photo-back .text-button{min-height:32px}.photo-process{display:block;max-width:900px;margin:0 auto}.photo-process .process-main{padding:14px}.photo-process .process-empty,.photo-process .process-media{height:240px;min-height:0;width:100%;margin:0;border-radius:12px;overflow:hidden}.photo-process .process-media{display:flex;align-items:center;justify-content:center;background:#efefe8}.photo-process .process-media img,.photo-process .process-media video{width:100%;height:100%;max-height:100%;object-fit:contain}.photo-process .process-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px}.photo-process .process-empty span{font-size:12px}.photo-process .process-caption{font-size:11px;margin:0 0 6px}.photo-process .process-image-actions{margin:5px 0}.photo-add-material{margin-top:8px}.photo-add-material>.text-button{min-height:36px}.photo-quick-commands{height:36px;flex-shrink:0}.photo-process .composer{margin:0 0 12px}.photo-process .composer textarea{min-height:80px}.photo-process .process-run{width:100%;margin-top:0}.photo-process .process-run:disabled{opacity:.45;cursor:not-allowed}.photo-process .work-aside{display:none}
@media(max-width:599px){.photo-back{margin:4px 0}.photo-process .process-main{padding:10px}.photo-process .process-empty,.photo-process .process-media{height:210px}.photo-process .process-empty strong{font-size:14px}.photo-quick-commands{height:30px}}

/* MFrame photo workspace · 2026-12-03 */
.brand .mframe-logo{width:196px;height:70px;object-fit:cover;mix-blend-mode:multiply;max-width:100%}.mobile-brand .mframe-logo{width:190px;height:54px;object-fit:cover;mix-blend-mode:multiply}.brand{margin-bottom:20px}.photo-back{margin-top:0}.photo-process .process-main{border:0;background:transparent;padding:0}.photo-process .process-empty,.photo-process .process-media{height:240px;background:#eeefe9}.photo-preview{position:relative}.photo-view-tools{position:absolute;top:7px;right:7px;display:flex;gap:4px;padding:3px;border-radius:8px;background:#fdfcf9e8;z-index:5}.photo-view-tools button,.photo-view-tools a{display:flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:0;padding:5px;border-radius:5px;color:#42593a}.photo-view-tools svg{width:20px;height:20px}.photo-view-tools [aria-pressed="true"]{background:#dce7d1}.photo-ribbon{display:flex;align-items:flex-start;gap:8px;min-height:122px;padding:10px 2px;overflow-x:auto;margin:0 0 3px}.photo-ribbon-item{width:100px;flex-shrink:0;border:1px solid #d6ddcd;border-radius:8px;overflow:hidden;background:#fdfcf9;position:relative}.photo-ribbon-item>button{display:block;width:100%;padding:4px;position:relative}.photo-ribbon-item img,.photo-ribbon-item video{display:block;width:100%;height:52px;object-fit:contain;background:#eeefe9;border-radius:4px}.photo-ribbon-item small{display:block;font-size:10px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.photo-ribbon-item.latest-result{border:2px solid #3971a7}.photo-ribbon-item [aria-pressed="true"]{background:#e8efdf}.ribbon-latest{display:block;font-size:8px;color:#2e679c;line-height:1.4}.ribbon-tools{display:flex;justify-content:flex-end;gap:4px;padding:0 4px 2px}.ribbon-tools button,.ribbon-tools a{width:22px;height:22px;min-height:0;padding:2px;display:flex;align-items:center;justify-content:center}.ribbon-tools svg{width:15px;height:15px}.ribbon-play{position:absolute;top:20px;left:40px;color:white;text-shadow:0 1px 5px #000}.photo-ribbon-add{width:64px;height:82px;flex-shrink:0;border:1px dashed #adbca1;border-radius:8px;display:grid;place-items:center}.photo-ribbon-add svg{width:24px;height:24px}.photo-add-reference{min-height:30px;font-size:12px;margin:0 0 5px}.photo-reference-list{display:flex;flex-wrap:wrap;gap:5px}.photo-reference-list>span{display:flex;gap:5px;align-items:center;font-size:11px;background:#edf0e7;padding:3px 6px;border-radius:5px}.photo-reference-list button{font-size:16px;padding:0 4px}.photo-quick-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:6px 0 9px}.photo-quick-buttons button{border:1px solid #cbd6c0;border-radius:8px;padding:9px 3px;min-height:40px;font-size:12px;background:#fdfcf9}.photo-quick-buttons button[aria-pressed="true"]{background:#e5efdc;border-color:#789564;color:#38552b}.photo-request-box{border:1px solid #c4cfb9;border-radius:12px;background:#fdfcf9;overflow:hidden;margin-bottom:8px}.photo-request-box:focus-within{border-color:#7797b7;box-shadow:0 0 0 3px #4e8bc312;transition:border-color .2s,box-shadow .2s}.photo-selected-actions{display:flex;flex-direction:column;gap:4px;padding:7px 9px 0}.photo-selected-actions:empty{padding:0}.photo-selected-actions>span{display:flex;justify-content:space-between;align-items:center;background:#edf2e8;border:1px solid #d4dfcb;border-radius:6px;padding:3px 8px;font-size:12px}.photo-selected-actions button{padding:0 3px;font-size:18px;line-height:24px;min-width:28px}.photo-request-box .composer{margin:0;border:0;background:transparent;box-shadow:none}.photo-request-box .composer textarea{min-height:65px;border:0;background:transparent;box-shadow:none}.photo-request-box textarea::placeholder{font-style:italic}.photo-start{display:flex;justify-content:center;width:55%;margin:0 auto;min-height:40px}.photo-start:disabled{opacity:.45;cursor:not-allowed}.photo-start-hint{font-size:10px;text-align:center;line-height:1.4;margin-top:6px}.photo-comparison{position:relative;width:100%;height:100%;overflow:hidden;--compare-split:50%}.photo-comparison img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.photo-comparison .comparison-after{clip-path:inset(0 0 0 var(--compare-split))}.comparison-line{position:absolute;top:0;bottom:0;left:var(--compare-split);border-left:2px solid white;filter:drop-shadow(0 0 2px #333);z-index:2;pointer-events:none}.comparison-line:after{content:'↔';position:absolute;top:50%;left:-14px;background:white;color:#36532c;border-radius:50%;width:26px;height:26px;display:grid;place-items:center;font-size:16px}.photo-comparison input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;z-index:3;touch-action:pan-y}.photo-comparison:focus-within{outline:2px solid #4e79a7;outline-offset:-2px}.compare-before,.compare-after{position:absolute;bottom:7px;padding:2px 6px;border-radius:4px;background:#fff9;font-size:11px;z-index:2;pointer-events:none}.compare-before{left:8px}.compare-after{right:8px}
@media(max-width:899px){.main{padding-bottom:72px}.mobile-work{position:fixed;bottom:66px;left:0;right:0;margin:0;padding:0 16px;background:#fdfcf9f5;border-top:1px solid #e0e4d7;z-index:19;font-size:11px}.mobile-work>summary{padding:6px 0}.mobile-work[open]{max-height:42vh;overflow-y:auto}.mobile-work .work-in-progress{margin:0 0 8px}.photo-process .process-media,.photo-process .process-empty{height:205px}}
@media(prefers-reduced-motion:reduce){.photo-request-box:focus-within{transition:none}}

.process-recovery{border:1px solid #d5bd85;border-radius:12px;background:#fff9eb;padding:12px;margin:0 0 14px}.process-recovery h2{font-size:17px;margin:0 0 6px}.process-recovery p{font-size:12px;line-height:1.55;margin:5px 0}.process-recovery .process-action-toolbar{margin:10px 0 5px}.process-recovery>.text-button{font-size:11px}.process-recovery .button{min-height:40px}

/* Compact photo work area · 2026-12-03 */
.brand .mframe-logo{width:172px;height:58px}.brand{margin-left:-10px}.mobile-brand{margin-left:-16px}.mobile-brand .mframe-logo{width:160px;height:46px}.photo-view-tools{position:static;justify-content:flex-end;gap:4px;padding:2px 0;background:none;border-radius:0;min-height:30px}.photo-view-tools button,.photo-view-tools a{width:28px;height:28px;padding:4px}.photo-view-tools svg{width:18px;height:18px}.photo-ribbon{min-height:0;height:88px;padding:4px 0;gap:6px;scroll-snap-type:x proximity;overscroll-behavior-x:contain;scrollbar-width:thin}.photo-ribbon-item{width:84px;scroll-snap-align:start}.photo-ribbon-item img,.photo-ribbon-item video{height:44px}.photo-ribbon-item small{font-size:9px;line-height:13px;margin-top:1px}.ribbon-latest{position:absolute;top:2px;right:2px;line-height:10px;font-size:10px;background:#fff;border-radius:50%;padding:1px}.ribbon-tools{position:absolute;bottom:15px;right:2px;padding:0;background:#fdfcf9e8;border-radius:4px}.ribbon-tools:empty{display:none}.ribbon-tools button{width:22px;height:22px}.photo-ribbon-add{height:68px;width:54px}.ribbon-play{left:33px;top:17px}.photo-process .process-progress{margin-top:5px;padding-top:6px}.compact-plan-head{display:flex;align-items:center;justify-content:space-between;font-size:12px;line-height:20px}.compact-plan-head>span{font-size:10px;color:#7a8471}.photo-process .process-wish{font-size:11px;margin:2px 0 5px}.photo-process .process-wish>summary{font-size:10px;color:#74806b;padding:2px 0}.process-plan.compact-plan{margin:4px 0;padding:0}.compact-plan .process-stage{display:flex;gap:6px;align-items:flex-start;padding:5px 0;margin:0;border-bottom:1px solid #e6e9df}.compact-plan .stage-symbol{width:18px;height:18px;min-width:18px;font-size:10px;line-height:18px}.compact-operation{min-width:0;flex:1}.compact-operation>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;align-items:start;list-style:none;cursor:pointer;line-height:18px}.compact-operation>summary::-webkit-details-marker{display:none}.operation-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:500}.operation-name:before{content:'›';color:#85917a;margin-right:4px}.operation-name small{font-size:10px;font-weight:400}.operation-metrics{font-size:10px;white-space:nowrap;color:#727d68;text-align:right}.compact-operation p{font-size:10px;line-height:1.5;margin:4px 0;color:#6d7962}.compact-total{font-size:10px;color:#75816b;margin:5px 0 7px}.process-recovery{padding:8px 10px;margin:8px 0;background:#fffaf0}.process-recovery p{font-size:12px;line-height:1.4;margin:0 0 5px}.process-recovery .process-action-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:6px 0 0}.process-recovery .button{padding:7px 4px;min-height:36px;font-size:12px}.photo-process .process-feedback{margin:8px 0;padding:10px;border:1px solid #dfe5d6;border-radius:10px}.photo-process .process-feedback h3{font-size:14px;margin:4px 0 8px}.feedback-close{float:right;font-size:11px}.process-conversation:empty{display:none}.photo-process .process-finish{margin:10px 0 0;gap:8px}.photo-process .process-finish+.input-hint{font-size:11px}.photo-process .process-details{font-size:11px;margin-top:10px}.photo-process #save-status{font-size:10px}
@media(max-width:899px){.topbar{height:50px}.photo-back .text-button{min-height:26px;font-size:12px}.photo-back{margin:0 0 4px}}

/* Keep the preview in place while reading or editing the lower panels. */
.photo-preview{position:sticky;top:0;z-index:10;background:#f7f5f0}.compact-operation>summary{padding:0}.compact-plan .operation-name small{display:inline;margin:0;font-size:10px;line-height:inherit}.photo-view-tools .material-download{background:transparent;border:0;box-shadow:none}
.photo-ribbon-item [aria-pressed="true"]{background:#c9def3;box-shadow:inset 0 0 0 2px #6699cb;color:#173f69}.photo-ribbon-item [aria-pressed="true"] img,.photo-ribbon-item [aria-pressed="true"] video{background:#b9d1eb}.section-back{margin:0 0 8px}.section-back .text-button{font-size:12px;min-height:28px}.work-detail-head{margin-bottom:10px}.work-detail-head h1{font-size:clamp(18px,3vw,26px);line-height:1.2}.work-materials{max-width:760px;margin:0 auto 10px}.work-materials .process-media{height:clamp(220px,40vh,440px)}.work-details,.work-more{margin-top:12px}.work-details>summary,.work-more>summary{font-size:12px;color:#516453;cursor:pointer;padding:7px 0}.work-more .row{max-width:480px}.story-content p{display:none}.story-content h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.asset.storage-saved,.photo-ribbon-item.storage-saved,.reference.storage-saved{border-color:#468564}.asset.storage-favorite,.photo-ribbon-item.storage-favorite,.reference.storage-favorite{border-color:#b78a13}.asset.storage-trash,.photo-ribbon-item.storage-trash,.reference.storage-trash{border-color:#9573b4}.storage-mark{position:absolute;right:4px;top:3px;background:#fcfaf1e8;border-radius:4px;padding:1px 3px;font-size:12px;line-height:1.2;color:#42634f;pointer-events:none}.storage-favorite>.storage-mark{color:#8e690a}.storage-trash>.storage-mark{color:#775091}.asset,.reference{position:relative}.storage-controls{display:flex;justify-content:center;gap:4px;padding:4px 0 7px;flex-wrap:wrap}.storage-controls button{font-size:11px;padding:5px 7px;border:1px solid #d5dacd;border-radius:6px;min-height:30px}.storage-controls .storage-saved[aria-pressed=true]{background:#dfefe4;border-color:#468564}.storage-controls .storage-favorite[aria-pressed=true]{background:#fff0bb;border-color:#b78a13}.storage-controls .storage-trash[aria-pressed=true]{background:#eee3f7;border-color:#9573b4}.storage-meter{margin:8px 0 14px}.storage-meter-title{display:flex;align-items:center;justify-content:space-between;font-size:11px;gap:6px;flex-wrap:wrap}.storage-meter-title button{font-size:11px;min-height:25px}.storage-bar{display:flex;background:#e7e7e0;border-radius:6px;height:9px;overflow:hidden}.storage-bar .storage-saved{background:#468564}.storage-bar .storage-favorite{background:#dfb742}.storage-bar .storage-trash{background:#9573b4}.storage-scopes{margin:7px 0;overflow-x:auto;flex-wrap:nowrap}.library-preview{max-width:760px;margin:0 auto 10px}.library-preview .process-media{height:clamp(200px,35vh,360px)}.deleted-material{padding:16px;color:#786589;background:#eee8f2;text-align:center;font-size:12px}.photo-ribbon-item.latest-result{border-width:2px}.ribbon-latest{font-size:9px;line-height:1.2;color:#42634f}.cleanup-toolbar{flex-wrap:wrap}
.process-strip-item{position:relative;border:2px solid transparent;border-radius:8px}.process-strip-item.storage-saved{border-color:#468564}.process-strip-item.storage-favorite{border-color:#b78a13}.process-strip-item.storage-trash{border-color:#9573b4}.storage-controls button:focus-visible{outline:2px solid #386da5;outline-offset:2px}.storage-controls button[aria-pressed=true]{font-weight:600}
.storage-bar{display:block;width:100%}.storage-bar .storage-saved{fill:#468564}.storage-bar .storage-favorite{fill:#dfb742}.storage-bar .storage-trash{fill:#9573b4}
.funnyframe-wordmark{display:inline-block;font-size:23px;font-weight:500;letter-spacing:-.7px;line-height:1.1;color:#2464a2}.funnyframe-wordmark strong{font-weight:750}.mobile-brand .funnyframe-wordmark{font-size:20px;margin-left:12px}.brand .funnyframe-wordmark{margin-left:10px}
