/* Compact visual refinement. All original form controls and handlers retained. */
.m-image-scroll{flex:1 1 auto}
/* Compact work thumbnails and a single material/prompt editing surface. */
#works .r-works{grid-template-columns:repeat(auto-fill,minmax(185px,220px));gap:14px;align-items:start}
#works .r-work{padding:0!important;border-radius:14px!important;overflow:hidden;min-width:0}
#works .r-work>video,#works .r-work>img{display:block;width:100%;height:142px;max-height:142px;object-fit:contain;background:var(--yx-surface-strong)}
#works .r-work-content{padding:12px}
#works .r-work h3{font-size:12px;line-height:1.5;margin-bottom:6px}
#works .r-work p,#works .r-status,#works .r-caption{font-size:10px;line-height:1.6}
#works .r-work .r-note{font-size:10px;padding:8px;margin-top:8px}
#works .r-work .r-actions{gap:5px;margin-top:10px}
#works .r-work .r-actions button,#works .r-work .r-actions a{font-size:10px;padding:5px 7px}
.m-r-scroll{flex:1 1 auto}
.m-r-prompt{margin:14px 0 18px;padding:14px;background:var(--yx-surface-strong);border:1px solid var(--line);border-radius:16px;min-width:0}
.m-r-prompt .mat-ai-heading{margin:0 0 8px}
.m-r-prompt .mat-ai-heading label{font-size:12px;margin:0}
.m-r-prompt .mat-ai-heading button{font-size:11px;padding:5px 10px}
#rForm .m-r-prompt #rDescription{background:var(--yx-surface-strong)!important;border:1px solid var(--line)!important;border-radius:12px!important;font-size:12px;padding:12px;min-height:115px;height:135px;max-height:240px;resize:vertical}
.m-r-prompt .mat-ai-note,.m-r-prompt .mat-status{font-size:10px;line-height:1.6;margin:6px 0 0}
.m-r-prompt .mat-observations{font-size:11px;margin-top:8px}
.m-r-dock .m-r-tools{border-top:0;padding-top:0}
.m-r-tools .r-grid{flex:1;gap:10px}
.m-r-tools select{max-width:none!important;width:100%}
@media(min-width:1101px){#restaurant .r-layout{grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr)}#restaurant .r-summary{padding:18px}#restaurant .r-summary ul{font-size:12px}}
@media(max-width:700px){#works .r-works{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#works .r-work>video,#works .r-work>img{height:112px;max-height:112px}#works .r-work-content{padding:9px}#works .r-work h3{font-size:11px}.m-r-prompt{padding:12px}#rForm .m-r-prompt #rDescription{height:120px;min-height:100px}}
body{font-size:12px;line-height:1.55}button,input,select,textarea{font-size:12px}label,.r-card label{font-size:12px}h2{font-size:16px}h3{font-size:14px}.muted,.r-caption,.mat-ai-note,.r-help{font-size:11px}.layout{grid-template-columns:176px minmax(0,1fr)}.sidebar{padding:12px 8px;gap:5px}.sidebar .brand{margin:0 8px 22px;min-height:46px;gap:8px;letter-spacing:0}.sidebar .nav,.r-nav-advanced .nav{font-size:12px!important;gap:9px;min-height:40px;padding:9px 10px;border-radius:12px}.m-nav-icon{width:17px;height:17px;flex-basis:17px}.r-nav-advanced{margin-top:16px;padding-top:10px}.r-nav-advanced summary{font-size:11px;padding:6px 10px}.sidebar #adminNav{margin-top:6px}
.brand .m-brand-logo{display:block;height:40px;width:auto;object-fit:contain;flex:0 0 auto}.intro .brand .m-brand-logo{height:40px;width:auto;flex-basis:auto}.yx-brand-mark .m-brand-logo{width:30px;height:26px;display:block}.brand .m-brand-logo{color:var(--text);--accent:var(--accent)}.brand .m-brand-name{display:flex;flex-direction:column;gap:1px;color:var(--yx-text);letter-spacing:0;min-width:0}.m-brand-name b{font-size:17px;font-weight:550;letter-spacing:2px;white-space:nowrap}.m-brand-name small{font-family:Arial,sans-serif;font-size:8px;font-weight:400;letter-spacing:.7px;white-space:nowrap}.intro .brand{display:flex;align-items:center;gap:12px}
main.content{padding:0 24px 20px!important}main.content>.top{min-height:64px;margin:0 -24px;padding:10px 24px}#pageTitle{font-size:19px;font-weight:600}.top .pill{font-size:11px}.top .pill b{font-size:18px}.top .pill::before{font-size:17px}.top-account{gap:12px}.avatar{width:30px;height:30px;font-size:12px}.m-creative-tabs{top:64px;min-height:50px;margin-bottom:16px;gap:12px}.m-creative-tab{font-size:13px;padding:14px 12px 12px}.m-creative-tab.active::after{height:2px}.r-intro{margin-bottom:10px}.r-intro h2{font-size:14px;margin-bottom:3px}.r-intro p{font-size:11px}.r-alert{font-size:11px;padding:8px 12px;margin-bottom:12px}.r-layout,.m-image-layout,#studio .workspace{gap:18px;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}.r-card,.card{padding:16px;border-radius:18px!important}.r-card h3{font-size:14px;margin-bottom:12px}.r-card input,.r-card select{min-height:35px;padding:7px 10px}.r-card label{margin-top:12px}.r-grid{gap:0 10px}.r-caption{line-height:1.6}
#rForm{padding:14px;display:flex;flex-direction:column;overflow:hidden;max-height:none;min-width:0}.m-r-scroll{min-height:0;overflow-y:auto;scrollbar-gutter:stable;padding:2px 6px 14px 0}.m-r-dock{flex-shrink:0;background:var(--yx-surface-strong);border:1px solid var(--yx-hairline-strong);border-radius:18px;box-shadow:0 0 0 1px var(--yx-highlight);padding:12px 14px;margin-top:12px}.m-r-dock .mat-ai-heading{margin:0 0 5px}.m-r-dock .mat-ai-heading button{font-size:11px;padding:4px 9px}.m-r-dock .mat-ai-heading label{font-size:11px;margin:0}#rDescription{border:0!important;outline-offset:0;box-shadow:none;min-height:64px;max-height:100px;height:64px;padding:6px 0;font-size:12px;border-radius:0!important}.m-r-dock .mat-status,.m-r-dock .mat-ai-note{font-size:10px;margin:4px 0}.m-r-dock .mat-observations{font-size:10px;max-height:65px;overflow:auto}.m-r-tools{border-top:1px solid var(--line);padding-top:10px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.m-r-tools .r-grid{display:flex;gap:6px;flex:1}.m-r-tools .r-grid>div{flex:1;min-width:0}.m-r-tools .r-grid label{font-size:10px;margin:0 0 3px}.m-r-tools select{font-size:11px;min-height:32px;max-width:150px;padding:5px 8px}.m-r-tools #rPrice{font-size:16px;font-weight:600;margin:14px 0 0;white-space:nowrap}.m-r-tools #rSubmit{width:auto;min-height:34px;padding:7px 12px;font-size:12px;margin:14px 0 0;border-radius:10px}.m-r-dock .r-inline-check{font-size:10px!important;margin:9px 0 0;font-weight:400;gap:7px;line-height:1.5}.m-r-dock #rBlock{font-size:10px;padding:0;background:transparent;line-height:1.45;margin:6px 0 0;border:0}.r-summary{position:static;max-height:none;padding:20px;background:var(--yx-surface-strong)}.r-summary ul{font-size:12px;margin:16px 0;padding-top:14px;padding-bottom:14px}.r-summary li{margin-bottom:10px}.r-summary .r-caption,.r-summary .r-balance{font-size:11px}.r-summary>h3{font-size:14px}.r-actions button{font-size:11px;padding:6px 9px}.r-inline-check input{min-height:0}.r-card #rSpeech{min-height:70px;font-size:12px;padding:10px}
#rMaterials{gap:12px}.mat-group{padding:14px;border-radius:16px}.mat-heading h3{font-size:14px!important}.mat-count{font-size:10px}.mat-group>.r-caption{font-size:10px;margin:7px 0 10px}.mat-group>.mat-btn:has(+input[type=file]){min-height:86px;font-size:12px;padding:12px 8px;gap:6px}.mat-group>.mat-btn:has(+input[type=file])::before{font-size:26px}.mat-thumb img{height:66px}.mat-thumb,.mat-thumb .mat-btn{font-size:10px}.mat-thumb .mat-btn{padding:2px 6px;min-height:22px}.mat-person-list{margin:10px 0}.mat-person{flex-basis:68px}.mat-person>button:first-child{width:68px;padding:4px}.mat-person img{width:58px;height:68px}.mat-person span{font-size:10px;max-height:30px}.mat-group>.mat-btn{font-size:10px;padding:6px 9px}.mat-group[data-material=person_asset_id]>.mat-btn:has(+input[type=file]){min-height:56px}.mat-ai-heading button{font-size:11px;padding:5px 9px}
.m-image-editor{padding:14px;display:flex;flex-direction:column;overflow:hidden;min-height:0}.m-image-scroll{overflow-y:auto;min-height:0;padding-right:5px;scrollbar-gutter:stable}.m-image-dock{flex-shrink:0;margin-top:12px;min-width:0}#imageStudio .fi-hero h2{font-size:15px;margin-bottom:3px}.fi-hero p{font-size:11px;margin-bottom:14px}#imageStudio .ref-panel{background:var(--yx-surface-strong);border:1px solid var(--yx-hairline-strong);border-radius:16px;padding:14px}#imageStudio .ref-heading strong{font-size:14px}#imageStudio #refAdd-image{min-height:104px;height:104px;font-size:12px!important}#imageStudio #refAdd-image::before{font-size:26px}#imageStudio .ref-grid{gap:8px;padding-top:10px}#imageStudio .ref-item img{height:70px}.ref-item span{font-size:10px}#imageStudio .m-image-dock>label{display:none}#imageStudio #fiPrompt{min-height:76px;height:76px;font-size:12px;padding:14px;border-radius:18px 18px 0 0!important}#imageStudio .fi-tools{padding:10px;gap:6px}#imageStudio .fi-option{min-height:32px;padding:3px 6px!important;border-radius:8px!important}#imageStudio .fi-option select{font-size:11px!important;min-height:22px;max-width:140px}#imageStudio .fi-option>span{font-size:10px}#imageStudio .fi-tools #fiGenerate{font-size:11px!important;min-height:32px;height:32px;min-width:98px;padding:6px 10px}.fi-output-count,#fiCount{font-size:10px}.m-image-dock .ref-help{font-size:10px;margin:6px 0 0;max-height:36px;overflow-y:auto}.fi-fineprint{font-size:10px;margin:10px 0}.fi-presets{margin:10px 0;gap:5px}.fi-presets button{font-size:10px;padding:5px 8px}.fi-presets .muted{font-size:10px}.fi-status{font-size:11px}.fi-gallery-head{padding:14px 16px}.fi-gallery-head h2{font-size:14px}.fi-gallery-head p{font-size:10px}.fi-gallery-head button{font-size:11px;padding:8px 12px}.fi-gallery{padding:16px;gap:12px}.fi-work-info p{font-size:11px}.fi-work-actions button,.fi-work-actions a{font-size:10px;padding:5px 7px}.light-history-top h2{font-size:10px}.light-history-toggle{font-size:10px}.light-history-item span{font-size:10px}.light-history-item time{font-size:9px}
#studio .workspace>.card{min-width:0}#studio .workspace>.card:first-child{padding:16px}#studio .card-title{margin-bottom:12px}#studio h2{font-size:15px}#studio label{font-size:12px;margin:10px 0 5px}#studio input,#studio select,#studio textarea{font-size:12px;padding:8px 10px}#studio .ref-panel{padding:14px;border-radius:16px}#studio .ref-heading strong{font-size:14px}#studio #refAdd-video{min-height:90px;font-size:12px}#studio .ref-help{font-size:10px}#studio textarea{min-height:110px}#studio .badge{font-size:10px}.video-task{font-size:12px}.video-task p{font-size:11px}.balance-card strong{font-size:30px}.r-work h3{font-size:14px}#templateLibrary h2{font-size:17px}
.m-r-scroll,.m-image-scroll,.m-video-scroll,.r-summary{scrollbar-width:thin;scrollbar-color:var(--yx-hairline-strong) var(--yx-hairline-strong);overscroll-behavior:contain}.m-r-scroll::-webkit-scrollbar,.m-image-scroll::-webkit-scrollbar,.m-video-scroll::-webkit-scrollbar,.r-summary::-webkit-scrollbar{width:7px}.m-r-scroll::-webkit-scrollbar-thumb,.m-image-scroll::-webkit-scrollbar-thumb,.m-video-scroll::-webkit-scrollbar-thumb,.r-summary::-webkit-scrollbar-thumb{background:var(--yx-surface-strong);border-radius:9px;border:1px solid var(--yx-hairline-strong)}
@media(min-width:1101px){#rForm{height:calc(100dvh - 232px);min-height:390px;max-height:none}.r-summary{height:calc(100dvh - 232px);min-height:390px;overflow-y:auto}.m-image-editor{height:calc(100dvh - 154px);min-height:440px}.m-image-results{height:calc(100dvh - 154px);max-height:none;min-height:440px}.m-video-scroll{height:calc(100dvh - 210px);min-height:390px;overflow-y:auto;scrollbar-gutter:stable}#studio .workspace>.card:last-child{height:calc(100dvh - 210px);min-height:390px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--yx-hairline-strong) var(--yx-hairline-strong)}}
@media(min-width:1600px){.layout{grid-template-columns:184px minmax(0,1fr)}.sidebar .nav{font-size:13px!important}.m-creative-tab{font-size:14px}.r-layout,.m-image-layout,#studio .workspace{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}}
@media(min-width:701px) and (max-width:1100px){.layout{grid-template-columns:164px minmax(0,1fr)}.sidebar .brand{margin:0 4px 20px}.m-brand-name b{font-size:15px}.m-brand-name small{font-size:7px}.r-layout,.m-image-layout,#studio .workspace{grid-template-columns:minmax(0,1fr)}.m-image-scroll{max-height:440px}.m-video-scroll{max-height:630px;overflow-y:auto}.r-summary{position:static}main.content{padding:0 18px 20px!important}main.content>.top{margin-left:-18px;margin-right:-18px;padding:10px 18px}}
@media(max-width:700px){body{font-size:12px}.layout{grid-template-columns:minmax(0,1fr)}.sidebar{padding:10px;gap:4px}.sidebar .brand{width:100%;margin:0 4px 8px;min-height:32px}.sidebar .nav{font-size:11px!important;min-height:34px;padding:7px 8px;gap:5px}.m-nav-icon{width:15px;height:15px;flex-basis:15px}.r-nav-advanced summary{font-size:11px;padding:7px}.r-nav-advanced{margin:0;padding:0}main.content{padding:0 12px 20px!important}main.content>.top{min-height:58px;margin:0 -12px;padding:9px 12px}#pageTitle{font-size:16px}.top .pill b{font-size:14px}.top .pill{font-size:10px}.m-creative-tabs{top:58px;min-height:45px;gap:0;margin-bottom:12px}.m-creative-tab{font-size:12px;padding:12px 9px}.r-layout,.m-image-layout,#studio .workspace{grid-template-columns:minmax(0,1fr);gap:14px}.r-intro h2{font-size:13px}.r-intro p{font-size:10px}#rForm{padding:12px}.m-r-scroll{max-height:440px}.m-r-dock{padding:10px;margin-top:10px}.m-r-tools .r-grid{flex-basis:100%}.m-r-tools #rPrice{margin:2px 0 0;font-size:16px}.m-r-tools #rSubmit{margin:2px 0 0;flex:1}.m-r-tools select{max-width:none;width:100%;font-size:11px}.m-r-dock .r-inline-check{font-size:10px!important}.r-summary{padding:16px}.m-image-editor{padding:12px}.m-image-scroll{max-height:390px}.m-image-results{min-height:300px}.m-video-scroll{max-height:600px;overflow-y:auto}#rMaterials{grid-template-columns:minmax(0,1fr)}#imageStudio .fi-tools .fi-option{flex:1 1 42%}#imageStudio .fi-tools .fi-option select{font-size:11px!important;max-width:140px;min-width:0;width:auto}#imageStudio .fi-tools #fiGenerate{flex:1;min-width:100px}.mat-thumb img{height:72px}.r-card label{font-size:12px}.r-card input,.r-card select,input,select,textarea{font-size:12px}.r-grid{grid-template-columns:minmax(0,1fr)}.m-r-tools .r-grid{display:flex}.fi-gallery{grid-template-columns:minmax(0,1fr)}.fi-gallery-head h2{font-size:14px}.fi-gallery-head p{font-size:10px}}
