/* Private workspaces share a single viewport and a single scrolling surface. */
html:has(body[data-usage-service=model]),html:has(body[data-usage-service=cad]){background:#0c0d0f!important;color-scheme:dark}
body[data-usage-service=model],body[data-usage-service=cad]{min-height:100dvh;background:#0c0d0f!important;color:#edf2f5!important;--line:#3d4750;--muted:#b0bdc5}
body:is([data-gacha-workspace=model],[data-gacha-workspace=cad])>main{height:100dvh;min-height:0;overflow:hidden}
body:is([data-gacha-workspace=model],[data-gacha-workspace=cad]) #dashboard{height:100%;display:flex;flex-direction:column;min-height:0}
body:is([data-gacha-workspace=model],[data-gacha-workspace=cad]) .gacha-workspace-switch{flex:none;margin:0;box-sizing:border-box}
.gacha-model-panel:not([hidden]),.gacha-cad-panel:not([hidden]){flex:1;min-height:0;height:auto!important;display:flex;border-radius:0;overflow:hidden}
.gacha-model-panel iframe,.gacha-cad-panel iframe{flex:1;min-width:0;min-height:0;height:100%;background:#0c0d0f!important}
body[data-usage-service=cad]{height:100dvh;overflow:hidden}
body[data-usage-service=cad]>main{height:calc(100dvh - 54px);overflow-y:auto;overscroll-behavior:contain;background:#0c0d0f;padding-bottom:20px}
body[data-usage-service=cad].embedded>main{height:100dvh}
body[data-usage-service=cad] .tabs{grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #36434c}
body[data-usage-service=cad] .tabs button[aria-pressed=true],body[data-usage-service=model] .model-tabs button[aria-selected=true]{color:#fff!important;background:#30443d!important;box-shadow:inset 0 0 0 1px #8cebc69c,0 0 9px #6de8be35}
body[data-usage-service=cad] #drawing-status,body[data-usage-service=cad] .fine{color:#bdc8ce;font-size:13px;line-height:1.7}
body[data-usage-service=cad] .tabs button{min-width:0;padding:6px 3px;font-size:11px}
body[data-usage-service=model] #library{height:100%;min-height:0;display:flex;flex-direction:column}
body[data-usage-service=model] #library[hidden]{display:none!important}
body[data-usage-service=model] .library-heading{flex:none;height:auto!important;min-height:48px;padding:6px 10px!important;gap:8px}
body[data-usage-service=model] #library-scroll{flex:1;min-height:0;height:auto!important;overflow-y:auto;overflow-x:hidden;padding:8px 8px 24px;overscroll-behavior:contain}
body[data-usage-service=model] #request-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body[data-usage-service=model] .request-row{display:grid;grid-template-columns:40px minmax(0,1fr);gap:7px;padding:10px;align-content:start;align-items:start;color:#edf2f5}
body[data-usage-service=model] .request-reference{width:40px;height:40px;grid-column:1;grid-row:1;object-fit:cover}
body[data-usage-service=model] .request-copy{grid-column:2;min-width:0}
body[data-usage-service=model] .request-copy strong{font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
body[data-usage-service=model] .request-copy p{font-size:10px;line-height:1.5;color:#c1cdc7;margin-top:4px}
body[data-usage-service=model] .request-state{color:#eafff4!important;background:none!important;padding:0!important}
body[data-usage-service=model] .request-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;width:100%}
body[data-usage-service=model] .request-actions :is(a,button){min-width:0;min-height:36px;padding:5px 3px;font-size:11px}
body[data-usage-service=model] .request-extra{grid-column:1/-1;order:5;margin:0;color:#b8c5bf;font:11px/1.6 system-ui;overflow-wrap:anywhere}
.request-extra summary{cursor:pointer;min-height:32px;display:flex;align-items:center;gap:5px}.request-extra summary::before{content:'＋'}.request-extra[open] summary::before{content:'−'}.request-extra summary::-webkit-details-marker{display:none}.request-extra p{margin:6px 0}.request-extra button,.request-extra a{min-height:36px;padding:5px 7px;margin:3px 4px 0 0;background:#202b29;border:1px solid #5b7068;color:#e1ece7;font-size:11px}
body[data-usage-service=model] .request-row>.rg-job-progress{grid-column:1/-1;order:4;margin:3px 0;--rg-green:#a9f5cd;--rg-muted:#becac4;--rg-track:#35453e}
body[data-usage-service=model] .request-row .rg-progress-number{font-size:15px}.request-row .rg-progress-metric>.rg-progress-caption{display:none}
body[data-usage-service=model] .models{align-items:start}.model-card .model-title-line strong{line-height:1.5}
@media(max-width:700px){body[data-usage-service=model] #request-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}body[data-usage-service=model] .request-row{grid-template-columns:32px minmax(0,1fr);padding:8px;gap:6px}body[data-usage-service=model] .request-reference{width:32px;height:32px}.request-row .rg-progress-metrics{grid-template-columns:1fr;gap:3px}body[data-usage-service=model] .request-actions :is(a,button){font-size:10px}body[data-usage-service=model] .request-copy strong{font-size:11px}}
@media(max-width:350px){body[data-usage-service=model] #request-list{grid-template-columns:minmax(0,1fr)!important}}

body[data-usage-service=model] .request-row:not(:has(.request-reference)) .request-copy{grid-column:1/-1}
