/* Shared private workspace geometry; render artwork and client intake are untouched. */
:root{color-scheme:dark;--line:#30353b;--muted:#9ca4ad}
body[data-gacha-workspace],body[data-usage-service=model],body[data-usage-service=cad],body.cad-workspace{background:#0c0d0f!important;color:#e8ebed!important}
body[data-gacha-workspace]>.masthead,body[data-gacha-workspace]>footer,.workspace-logout{display:none!important}
body[data-gacha-workspace] .gacha-workspace-switch{background:#101214!important;display:flex;gap:6px;height:60px;padding:6px 0;isolation:isolate}
.gacha-workspace-switch>button:not(.workspace-model-refresh){flex:0 1 125px;min-width:0;min-height:42px;color:#b7c0c8!important;background:transparent!important;font-size:12px!important}
.gacha-workspace-switch>button[aria-pressed=true],.gacha-workspace-switch>button[data-selected=true]{background:#303840!important;color:#fff!important}
.gacha-workspace-switch .workspace-room-slot{margin-left:auto;flex:none}.workspace-cad-mark{color:#c9f3df!important;font-size:10px!important;border:1px solid #637b6c;border-radius:50%;width:34px;height:34px;place-content:center;text-align:center}
.gacha-model-panel,.gacha-cad-panel,.gacha-model-panel iframe,.gacha-cad-panel iframe{background:#0c0d0f!important}
body[data-gacha-workspace] .admin-tabs{display:flex;overflow-x:auto;gap:3px;scrollbar-width:none;border-radius:9px;background:#181c20;padding:4px}
body[data-gacha-workspace] .admin-tabs button{flex:1 0 auto;padding:7px 12px;min-height:36px}
body[data-gacha-workspace] #dashboard{max-width:1440px;padding-inline:12px}
#detail>.list-heading{justify-content:flex-start;gap:10px}#close-detail{order:-1;flex:none;width:40px;height:40px;padding:0;border:0;background:transparent;font-size:26px}#detail-title{font-size:17px!important;margin:0;overflow-wrap:anywhere}#detail-id{font-size:10px;opacity:.55;overflow-wrap:anywhere}
#detail .detail-maximize,#detail [data-detail-maximize]{display:none!important}
#detail .order-form-grid,#detail .order-fields{gap:8px!important}#detail .detail-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr));font-size:12px}#detail .detail-grid>*{min-width:0;overflow-wrap:anywhere}
body[data-usage-service=model] #app-header,body[data-usage-service=model] .model-tabs,body[data-usage-service=model] .library-heading{background:#101214!important;color:#e8ebed!important;border-color:#30353b!important}
body[data-usage-service=model] button,body[data-usage-service=model] input,body[data-usage-service=model] textarea,body[data-usage-service=model] select,body[data-usage-service=model] dialog{background:#191d22;color:#eef0f3;border-color:#343b43}
body[data-usage-service=model] button.primary{background:#ceeada;color:#10261b}
body[data-usage-service=model] .model-tabs [aria-selected=true]{background:#303840!important;color:white!important}
body[data-usage-service=model] .models{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body[data-usage-service=model] .model-card{display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px;align-items:center;padding:10px;border:1px solid #30353b;border-radius:10px;background:#14171a!important;color:#e8ebed;min-width:0;text-align:left}
body[data-usage-service=model] .model-art{aspect-ratio:1;background:#20252a;border:0;width:88px;border-radius:7px}
body[data-usage-service=model] .model-copy{padding:0;min-width:0}body[data-usage-service=model] .model-copy strong{font-size:13px;line-height:1.5;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}body[data-usage-service=model] .model-copy small{color:#a5adb5;line-height:1.5}
body[data-usage-service=model] .request-notice{display:none}body[data-usage-service=model] .request-card,body[data-usage-service=model] .request-panel{background:#15191d!important;border-color:#30353b;color:#e8ebed}body[data-usage-service=model] .request-brief-label{font-size:11px}body[data-usage-service=model] .modal-heading{background:#15191d;color:#e8ebed}body[data-usage-service=model] .modal-heading [data-close]{order:-1;border:0;background:transparent}
body[data-usage-service=cad] header,body[data-usage-service=cad] .tabs{background:#15191d;border-color:#30353b}body[data-usage-service=cad] button,body[data-usage-service=cad] select,body[data-usage-service=cad] textarea,body[data-usage-service=cad] dialog,body[data-usage-service=cad] .detail-head{background:#191d22;color:#e8ebed;border-color:#343b43}
body[data-usage-service=cad] .tabs [aria-pressed=true]{background:#303840;color:#fff}body[data-usage-service=cad] #list{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-usage-service=cad] .trial{display:grid;grid-template-columns:88px minmax(0,1fr);gap:7px 12px;align-items:center;padding:10px;border-radius:10px;background:#14171a;border-color:#30353b}body[data-usage-service=cad] .trial img{grid-column:1;grid-row:1/5;width:88px;aspect-ratio:1;object-fit:contain}body[data-usage-service=cad] .trial>:not(img){grid-column:2;min-width:0}body[data-usage-service=cad] .trial strong{font-size:13px}body[data-usage-service=cad] .numbers,body[data-usage-service=cad] .review-label{color:#a5adb5}body[data-usage-service=cad] .trial b{color:#b8ecd0}body[data-usage-service=cad] .downloads a,body[data-usage-service=cad] pre{background:#20262b;color:#dce4ea;border-color:#343b43}
@media(max-width:600px){.gacha-workspace-switch{gap:2px!important}.gacha-workspace-switch>button:not(.workspace-model-refresh){font-size:10px!important;padding:5px 3px!important;flex:1;min-height:40px}.gacha-workspace-switch .workspace-model-refresh{width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:7px!important}.workspace-room-slot{display:none!important}body[data-gacha-workspace] #dashboard{padding-inline:8px}.gacha-workspace-switch{height:54px!important}body[data-usage-service=model] .models,body[data-usage-service=cad] #list{grid-template-columns:minmax(0,1fr)}body[data-usage-service=model] .model-card{min-height:104px}.library-heading{height:48px!important;padding-inline:12px!important}.library-heading h1{font-size:16px!important}#library-scroll{padding-inline:8px!important}.model-tabs{padding:4px!important;gap:3px!important}#detail-title{font-size:14px!important}#detail .detail-grid{font-size:11px}.gacha-model-panel,.gacha-cad-panel{border-radius:0!important}}
@media(prefers-reduced-motion:no-preference){.model-card,.trial{transition:border-color .2s,transform .2s}.model-card:active,.trial:active{transform:scale(.99)}}

body[data-usage-service=cad] .tabs{grid-template-columns:repeat(4,minmax(0,1fr))}#drawing-jobs{display:grid;gap:8px}.drawing-job{padding:14px;border:1px solid #303b40;border-radius:10px;background:#14191d}.drawing-job h2{font-size:14px;margin:0 0 8px}.drawing-job p{font-size:11px;color:#9aa8af}.drawing-job .actions{display:flex;gap:8px;flex-wrap:wrap}.drawing-job a{border:1px solid #39464c;padding:8px 12px;border-radius:7px;font-size:12px}.drawing-job button{font-size:12px}.drawing-flow{display:flex;gap:5px;margin-block:10px}.drawing-flow span{height:3px;flex:1;background:#37423e}.drawing-flow span[data-active=true]{background:#a9dfbf}#detail .detail-expand{display:none!important}

.gallery-button-group button{font-size:10px!important;min-height:32px!important;padding:6px 9px!important}.gallery-button-group{gap:2px!important}#detail .ops-order{display:grid;grid-template-columns:minmax(90px,.3fr) minmax(0,1fr);gap:8px 14px;font-size:12px}#detail dd{margin:0;overflow-wrap:anywhere}#detail dt{color:#98a4ae;font-size:11px}.workspace-cad-mark img{margin:auto}
body[data-usage-service=model] .model-title-line{flex-wrap:wrap;gap:4px 9px}body[data-usage-service=model] .model-title-line>.model-work-time{font-size:14px;color:#b4e5ca}body[data-usage-service=model] #request-preview,body[data-usage-service=model] #request-file-summary{background:#20262b;color:#c0cbd0}body[data-usage-service=model] #request-brief::placeholder{font-size:13px;color:#88979f}body[data-usage-service=model] .request-copy p.request-state{background:#26322c;color:#b6deca}.gacha-workspace-switch .workspace-model-refresh{flex:none}body[data-gacha-workspace] .workspace-shortcut{display:block!important}

#order-form .order-form-fields{display:grid;grid-template-columns:minmax(76px,100px) minmax(0,1fr);column-gap:14px;row-gap:9px;margin-block:12px;font-size:12px;line-height:1.6}#order-form .order-form-fields dt{font-size:11px}#order-form .order-form-fields dd{margin:0;overflow-wrap:anywhere}#order-form h3{font-size:14px}#detail .order-form-raw{margin-top:12px;font-size:11px}

/* Mobile review: compact navigation and two-up model cards. */
@media(max-width:600px){
 body[data-usage-service=model] .models{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body[data-usage-service=model] .model-card{display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:8px;min-height:0}
 body[data-usage-service=model] .model-art{width:100%;aspect-ratio:1.2}
 body[data-usage-service=model] .model-copy strong{font-size:12px}
 body[data-gacha-workspace] .admin-tabs button{flex:1 0 auto;padding:6px 5px;font-size:10px;white-space:nowrap}
 .gallery-button-menu{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:4px!important;scrollbar-width:thin}
 .gallery-button-group{flex:0 0 auto;display:flex;flex-wrap:nowrap!important}
 .gallery-button-group button{white-space:nowrap;padding:5px 5px!important;font-size:10px!important}
}
body[data-usage-service=model] #connection-status{background:#252c31;color:#e9f1ed;border:1px solid #48554f;line-height:1.5}
.export-orientation{border:0;padding:0;margin:16px 0 0;min-width:0}.export-orientation legend{font-size:11px;margin-bottom:7px}.export-orientation-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.export-orientation-options label{min-width:0;margin:0}.export-orientation-options input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}.export-orientation-options span{min-height:58px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #515960;border-radius:7px;background:#252a2e;color:#ecf0ef;font-size:11px}.export-orientation-options input:checked+span{background:#e7f4ec;color:#16241b;border-color:#e7f4ec}.export-orientation-options input:focus-visible+span{outline:2px solid #fff;outline-offset:2px}.export-orientation-options i{display:block;border:1.5px solid currentColor;border-radius:2px;width:15px;height:21px}.export-orientation-options .landscape-icon{width:21px;height:15px}.export-orientation-options .mix-icon{width:18px;height:14px;position:relative}.export-orientation-options .mix-icon:after{content:'';position:absolute;width:11px;height:16px;border:1.5px solid currentColor;border-radius:2px;left:6px;top:-5px;background:inherit}

#jobs tr.compact-order[data-status=processing]{border-color:#efff32!important}
#jobs tr.compact-order.is-new[data-status=waiting],#jobs tr.compact-order.is-new.is-owner[data-status=waiting]{border-color:#39ff88!important}
#jobs tr.compact-order[data-status=complete]:not(.is-owner){border-color:#f44bdb!important}
#jobs tr.compact-order.is-owner[data-status=complete]{border-color:#bb67ff!important}
#jobs tr[data-status=processing] .job-state-icon{color:#efff32!important}
#jobs tr.is-new[data-status=waiting] .job-state-icon{color:#39ff88!important}
#jobs tr[data-status=complete]:not(.is-owner) .job-state-icon{color:#f44bdb!important}
#jobs tr.is-owner[data-status=complete] .job-state-icon{color:#bb67ff!important}
#jobs .compact-order-receipt{font:500 10px/1.5 system-ui;color:#b8c3c9;margin:3px 0}
