/* Compact workspace layout, October 2026. Shared by studio and administration. */
html body.glass-app{--ui-bg:#0b1424;--ui-panel:#142238;--ui-line:#9fc8ef28;--ui-muted:#bbcadb;--ui-accent:#a7f2de;background:var(--ui-bg);color:#fff}
html body.glass-app::before{background:radial-gradient(ellipse at 20% 0,#23556938,transparent 60%),radial-gradient(ellipse at 100% 70%,#4f387325,transparent 55%)}
html body.glass-app main{max-width:1600px}
html body.glass-app main>header{min-height:60px;height:auto;padding:10px 18px;border-radius:16px;background:#142338;border:1px solid var(--ui-line);box-shadow:none}
html body.glass-app :is(.panel,.provider-card,.job-card,.library-card,.stat-card){background:var(--ui-panel);border:1px solid var(--ui-line);box-shadow:none;border-radius:16px;backdrop-filter:none}
html body.glass-app :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--ui-accent)!important;outline-offset:3px}
html body.glass-app :is(button,a){touch-action:manipulation}
html body.glass-app :is(.primary,.secondary,.text-button,.danger,.wallet,.nav,.console-shortcut,.mobile-nav-toggle,#console-section-select){min-height:44px;border-radius:10px;box-shadow:none!important;text-shadow:none!important;backdrop-filter:none!important;transition:background .15s,border-color .15s,filter .15s;transform:none!important}
html body.glass-app :is(.secondary,.text-button,.mobile-nav-toggle){background:#233a54!important;color:#fff!important;border:1px solid #a4cbe34d!important;padding:10px 14px;font-size:13px}
html body.glass-app .primary{background:var(--ui-accent)!important;border:1px solid #d5fff0!important;color:#0b2830!important;padding:12px 20px;font-size:14px;font-weight:750}
html body.glass-app .primary:hover:not(:disabled){background:#c2ffec!important}
html body.glass-app :is(.danger,.delete-link){background:#442737!important;color:#ffd9e1!important;border:1px solid #e393aa66!important}
html body.glass-app :is(.wallet,.topup-package){box-shadow:none!important}
html body.glass-app aside .nav{background:transparent!important;border:1px solid transparent!important;color:#e5edf8!important;min-height:46px;padding:11px 13px;margin:4px 0;font-size:14px;gap:10px;text-align:left}
html body.glass-app aside .nav:hover{background:#ffffff0c!important;border-color:var(--ui-line)!important}
html body.glass-app aside .nav.active{background:#a7f2de15!important;border-color:#a7f2de55!important;box-shadow:inset 3px 0 var(--ui-accent)!important;color:#fff!important}
html body.glass-app aside .section-label,html body.glass-app .console-nav-group{font-size:10px;letter-spacing:1.6px;color:var(--ui-muted);margin-top:18px}
html body.glass-app :is(select,textarea,input:not([type=checkbox]):not([type=range]):not([type=file])){background:#0d1b2e!important;color:#fff!important;border:1px solid #a4cbe34d!important;border-radius:10px;font-size:14px;min-height:44px}
html body.glass-app label{font-size:13px;font-weight:600;color:#e2ecf8}
html body.glass-app :is(.fine-print,.admin-note,.provider-choice small,.reference-drop small){color:var(--ui-muted);font-size:12px;line-height:1.55}
html body.glass-app .page-heading{padding:22px 0 18px;gap:16px}
html body.glass-app .page-heading h1,html body.admin-body .console-heading h1{font-size:clamp(24px,2.7vw,32px);letter-spacing:-.8px;line-height:1.2}
html body.glass-app .page-heading p{font-size:14px;margin-top:8px;line-height:1.5}
html body.glass-app #demo-banner{font-size:11px;line-height:1.5;padding:8px 12px;background:#203448;border-color:var(--ui-line)}
html body.glass-app .studio-grid{grid-template-columns:minmax(360px,.94fr) minmax(340px,1.06fr);gap:20px;align-items:start}
html body.glass-app :is(.composer,.preview){padding:20px}
html body.glass-app .panel-heading{margin-bottom:16px}
html body.glass-app .panel-heading h2{font-size:17px}
html body.glass-app .panel-heading>span{font-size:10px;letter-spacing:1px}
html body.glass-app .provider-choice{margin-bottom:14px}
html body.glass-app .provider-choice small{margin-top:8px;font-weight:400}
html body.glass-app .model-picker-trigger{min-height:48px;padding:12px 14px;background:#0d1b2e;border:1px solid #a4cbe34d;border-radius:10px;font-size:14px}
html body.glass-app .model-picker-option{min-height:48px;padding:12px 14px;font-size:14px}
html body.glass-app .model-picker-options{background:#122239;border:1px solid #a4cbe35e;box-shadow:0 16px 40px #0006;border-radius:12px;max-height:320px;z-index:25}
html body.glass-app .reference-inputs{grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
html body.glass-app .reference-group{min-width:0}
html body.glass-app .field-heading{gap:8px;flex-wrap:wrap;margin-bottom:8px}
html body.glass-app .reference-group .field-heading label{font-size:12px}
html body.glass-app .reference-group .field-heading label span{display:inline-block;margin-left:4px;font-size:11px}
html body.glass-app .reference-group .text-button{min-height:36px;padding:7px 10px;font-size:12px}
html body.glass-app .reference-drop{min-height:112px;padding:12px 10px;gap:4px;background:#0f2034;border:1px dashed #8ab8d56b;border-radius:12px}
html body.glass-app .reference-drop strong{font-size:13px}
html body.glass-app .reference-drop>span:not(.upload-icon){font-size:11px}
html body.glass-app .reference-drop .upload-icon{height:26px;width:26px;font-size:19px;line-height:26px;margin:0;background:#a7f2de16;border-radius:7px}
html body.glass-app .reference-drop small{font-size:10px;margin-top:3px}
html body.glass-app .prompt-heading{margin-top:18px}
html body.glass-app #prompt{min-height:110px;padding:12px;line-height:1.6;font-size:14px}
html body.glass-app #example{font-size:12px;min-height:36px;margin-top:8px;padding:7px 12px}
html body.glass-app .settings{margin-top:16px;gap:12px}
html body.glass-app .duration-slider-panel{padding:12px;border-radius:12px;margin-top:7px}
html body.glass-app .duration-slider-heading{margin-bottom:6px}
html body.glass-app #duration-value{font-size:22px}
html body.glass-app #duration-slider{min-height:32px;cursor:pointer}
html body.glass-app .audio-row{padding:14px 0}
html body.glass-app .audio-row strong{font-size:13px}
html body.glass-app .audio-row small{font-size:11px;color:var(--ui-muted)}
html body.glass-app .generate-footer{margin-top:16px;gap:14px}
html body.glass-app .generate-footer .primary{min-width:174px;min-height:48px}
html body.glass-app .cost-label{font-size:10px;letter-spacing:1px}
html body.glass-app .generate-footer strong{font-size:20px;color:#fff}
html body.glass-app .fine-print{font-size:11px;margin-top:12px}
html body.glass-app .canvas{min-height:260px;padding:18px;border-radius:12px;background:#0d1b2e}
html body.glass-app .canvas video{max-height:320px;width:100%;object-fit:contain}
html body.glass-app .canvas .orbit{width:56px;height:56px;margin:16px 0 8px;box-shadow:none;border-radius:16px}
html body.glass-app .canvas h3{font-size:22px;margin:12px 0 8px}
html body.glass-app .canvas p{font-size:13px}
html body.glass-app .canvas-tag{margin-top:16px}
html body.glass-app .tip{padding:14px;margin-top:14px;background:#122137;border:1px solid var(--ui-line)}
html body.glass-app .recent-heading{align-items:center;gap:12px;margin-top:20px}
html body.glass-app .job-card{padding:16px}
html body.glass-app .job-card p{font-size:13px;line-height:1.6}
html body.glass-app dialog{padding:24px;max-height:90dvh;overflow:auto;background:#14243a;border-radius:18px}
html body.glass-app dialog .close{width:44px;height:44px;top:7px;right:8px;color:#fff}
html body.admin-body .console-heading{padding:24px 0 18px}
html body.admin-body .console-view .provider-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:16px}
html body.admin-body .console-view .provider-card{padding:20px;display:flex;flex-direction:column}
html body.admin-body .provider-card h2{font-size:18px;line-height:1.4;margin-top:4px}
html body.admin-body .provider-model{font-size:13px;line-height:1.5;margin-top:10px;color:#e4f2fa}
html body.admin-body .provider-endpoint{font-size:12px;line-height:1.5;min-height:0}
html body.admin-body .provider-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:14px;margin-top:auto}
html body.admin-body .provider-actions button{width:100%;margin:0;padding:10px 12px;font-size:13px;min-height:44px}
html body.admin-body .connection-result{background:#0e1d30;border-color:var(--ui-line);border-radius:12px;padding:12px}
html body.admin-body .connection-result p{font-size:12px;line-height:1.6}
html body.admin-body .connection-result small{font-size:11px;line-height:1.6}
html body.admin-body .status-pill{font-size:10px;letter-spacing:.6px;padding:5px 8px;border-radius:6px}
html body.admin-body .stat-card{padding:18px}
html body.admin-body .stat-card>span{font-size:11px;letter-spacing:.8px}
html body.admin-body .stat-card strong{font-size:28px}
html body.admin-body .console-shortcut{background:#1b3048!important;border:1px solid var(--ui-line)!important;box-shadow:none!important;color:#fff!important;min-height:110px;padding:20px}
html body.admin-body .console-shortcut :is(strong,span){color:#fff!important}
html body.admin-body .console-shortcut p{font-size:13px;line-height:1.5;color:var(--ui-muted)}
html body.admin-body .admin-table{font-size:13px}
html body.admin-body .admin-table th{font-size:11px;padding:14px;background:#1c304a}
html body.admin-body .admin-table td{padding:12px 14px}
html body.admin-body .preset-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html body.admin-body .preset-buttons button{font-size:12px;min-height:44px;padding:8px}
html body.admin-body #console-section-select{background:#1b3048!important;color:#fff!important;border:1px solid var(--ui-line)!important}
.workspace-quicknav{display:none}
@media(min-width:901px){
 html body.glass-app aside{inset:16px auto 16px 16px;width:212px;padding:20px 14px;border-radius:18px;background:#101f32;border:1px solid var(--ui-line)}
 html body.glass-app aside .brand-image img{width:108px;height:108px;object-fit:contain}
 html body.glass-app aside .brand-image{margin-bottom:12px}
 html body.glass-app main{margin-left:240px;padding:0 24px}
 html body.glass-app .workspace-menu{gap:2px}
}
@media(min-width:901px) and (max-width:1180px){html body.glass-app .studio-grid{grid-template-columns:minmax(0,1fr)}html body.glass-app .preview-column{display:grid;grid-template-columns:1fr;gap:0}}
@media(max-width:900px){
 html body.glass-app{padding-bottom:88px}
 html body.glass-app aside{background:#101f32f5;border-bottom:1px solid var(--ui-line);padding:8px 16px;box-shadow:none}
 html body.glass-app main{padding:0 16px;margin-left:0;width:100%}
 html body.glass-app main>header{margin-top:12px;min-height:54px;padding:8px 12px;gap:8px}
 html body.glass-app .breadcrumb{font-size:12px}
 html body.glass-app .wallet{min-height:42px;padding:9px 12px;font-size:12px}
 html body.glass-app .page-heading{padding:20px 0 16px}
 html body.glass-app .page-heading h1{font-size:27px}
 html body.glass-app .model-badge{display:none}
 html body.glass-app .studio-grid{grid-template-columns:minmax(0,1fr);gap:18px}
 html body.glass-app :is(.composer,.preview){padding:18px}
 html body.glass-app .reference-inputs{grid-template-columns:1fr 1fr}
 html body.glass-app .canvas{min-height:230px}
 html body.glass-app .workspace-quicknav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;z-index:40;bottom:0;left:0;right:0;gap:6px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:#0e1c2ff5;border-top:1px solid #aacbe538;box-shadow:0 -8px 28px #0003;backdrop-filter:blur(12px)}
 html body.glass-app .workspace-quicknav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:50px;padding:6px 4px;border:1px solid transparent;border-radius:10px;background:transparent;color:#c4d3e6;font:600 11px/1.2 'Segoe UI',sans-serif;cursor:pointer}
 html body.glass-app .workspace-quicknav button[aria-current=page]{background:#a7f2de18;border-color:#a7f2de45;color:#fff}
 html body.glass-app .workspace-quicknav svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 html body.admin-body .console-mobile-section{padding-bottom:16px}
 html body.admin-body .console-heading{padding:20px 0 12px}
 html body.admin-body .console-heading p{font-size:13px}
 html body.admin-body .console-shortcuts{gap:12px}
 html body.admin-body .console-view .provider-card{padding:18px}
 html body.glass-app #toast{bottom:90px}
}
@media(max-width:520px){
 html body.glass-app main{padding:0 12px}
 html body.glass-app .page-heading h1{font-size:25px}
 html body.glass-app .page-heading p{font-size:13px}
 html body.glass-app :is(.composer,.preview){padding:16px}
 html body.glass-app .reference-inputs{gap:10px}
 html body.glass-app .reference-drop{min-height:112px;padding:10px 8px}
 html body.glass-app .reference-drop strong{font-size:12px}
 html body.glass-app .reference-drop>span:not(.upload-icon){display:none}
 html body.glass-app .reference-group .field-heading{align-items:flex-start;flex-direction:column;gap:6px}
 html body.glass-app .reference-group .text-button{min-height:40px;width:100%;font-size:11px}
 html body.glass-app .settings{gap:12px;grid-template-columns:1fr 1fr}
 html body.glass-app .duration-field.has-slider{grid-column:1/-1;order:3}
 html body.glass-app .settings select,html body.glass-app #prompt,html body.glass-app dialog input,html body.glass-app dialog select{font-size:16px}
 html body.glass-app #prompt{min-height:106px}
 html body.glass-app .generate-footer .primary{min-width:0;flex:1;padding:12px;font-size:13px}
 html body.glass-app .generate-footer strong{font-size:18px}
 html body.glass-app .generate-footer .primary span{margin-left:8px}
 html body.glass-app .canvas{min-height:220px}
 html body.admin-body .preset-buttons{grid-template-columns:1fr 1fr}
 html body.admin-body .admin-stats{gap:10px}
 html body.admin-body .stat-card{padding:14px}
 html body.admin-body .stat-card>span{font-size:10px}
 html body.glass-app dialog{padding:22px 16px;max-width:calc(100vw - 20px)}
}
@media(prefers-reduced-motion:reduce){html body.glass-app *{scroll-behavior:auto!important;transition:none!important}}

/* Compact reference rows: every selected file remains visible without an inner scroller. */
html body.glass-app :is(#selected-images,#selected-videos){display:grid;grid-template-columns:minmax(0,1fr);grid-auto-flow:row;grid-auto-columns:auto;align-items:start;gap:8px;max-width:100%;margin-top:10px;padding:0;overflow:visible}
html body.glass-app :is(#selected-images,#selected-videos):empty{display:none}
html body.glass-app :is(#selected-images,#selected-videos) .reference-card{display:grid;grid-template-columns:56px minmax(0,1fr) 44px;gap:7px;align-items:start;grid-column:auto;min-width:0;width:100%;max-width:100%;padding:7px;margin:0;border-radius:10px}
html body.glass-app :is(#selected-images,#selected-videos) .reference-preview{display:block;width:56px;height:56px;min-height:56px;max-height:56px;object-fit:contain;background:#081522;border-radius:7px}
html body.glass-app .reference-card-info{min-width:0;padding:0;gap:2px}
html body.glass-app .reference-card-info strong{font-size:12px;line-height:16px;letter-spacing:0}
html body.glass-app .reference-name{display:block;max-width:100%;font-size:11px;line-height:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.glass-app .reference-card-info small{font-size:10px;line-height:14px;white-space:nowrap}
html body.glass-app .reference-position{display:block;margin:3px 0 0;min-width:0}
html body.glass-app .reference-position>span{display:none}
html body.glass-app .reference-position select{width:100%;min-width:0;min-height:44px;margin:0;padding:6px;font-size:12px;line-height:18px;border-radius:7px}
html body.glass-app .reference-remove{position:static;grid-column:3;grid-row:1;display:grid;place-items:center;top:auto;right:auto;width:44px;height:44px;min-height:44px;padding:0;font-size:24px;line-height:1;background:#0a1725e8}
html body.glass-app .upload-queue{max-height:none;overflow:visible}
html body.glass-app .upload-item{display:grid;grid-template-columns:44px minmax(0,1fr);gap:7px;padding:8px;align-items:center;min-width:0}
html body.glass-app .upload-item>.reference-preview{width:44px;height:44px;min-height:44px;max-height:44px;object-fit:contain;border-radius:6px}
html body.glass-app .upload-info{min-width:0;gap:3px}
html body.glass-app .upload-info strong{font-size:11px;line-height:15px}
html body.glass-app .upload-info>span{font-size:10px;line-height:14px;overflow-wrap:anywhere}
html body.glass-app .upload-item>.text-button{grid-column:2;justify-self:end;min-height:36px;padding:4px 8px;margin:0;font-size:11px}
html body.glass-app .library-card>.reference-preview{width:100%;height:112px;min-height:112px;max-height:112px;object-fit:contain;margin-bottom:8px}
html body.glass-app .library-card h2{font-size:13px;line-height:18px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere;margin:6px 0}
@media(max-width:650px){
 html body.glass-app .reference-inputs{grid-template-columns:minmax(0,1fr)}
 html body.glass-app .reference-group .field-heading{flex-direction:row;align-items:center;justify-content:space-between}
 html body.glass-app .reference-group .field-heading .text-button{width:auto}
 html body.glass-app .reference-position select{font-size:16px;padding:5px 3px}
 html body.glass-app .library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 html body.glass-app .library-card{min-width:0;padding:10px;margin:0}
 html body.glass-app .library-card>.reference-preview{height:96px;min-height:96px;max-height:96px}
 html body.glass-app .library-card .text-button{min-height:44px;font-size:12px;padding:6px 0}
}
