/* Shared compact production layout. Existing forms and actions stay intact. */
.production-result-viewer{position:relative;display:flex;flex-direction:column;min-height:0;min-width:0;flex:1;gap:10px;outline-offset:2px}
.production-delivery-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;flex:none;font-size:12px;color:var(--muted)}
.production-delivery-toolbar .upscale-result-tabs{margin:0}
.production-delivery-toolbar .upscale-result-tabs>button{min-height:32px;padding:5px 10px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--muted);font-size:12px;box-shadow:none}
.production-delivery-toolbar .upscale-result-tabs>button[aria-pressed=true]{color:var(--blue,#1764ff);border-color:var(--blue,#1764ff);background:color-mix(in srgb,var(--blue,#1764ff) 6%,var(--surface))}
.production-viewer-heading{display:flex;align-items:center;gap:10px;min-height:42px;flex:none}
.production-viewer-caption{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.production-viewer-caption strong{font-size:16px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.production-viewer-title-row{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.production-viewer-caption .production-viewer-version-select{flex:0 1 auto;width:auto;max-width:100%;min-height:32px;margin:0;padding:4px 28px 4px 10px;border:1px solid var(--line-strong,var(--line));border-radius:6px;background:var(--surface);color:var(--ink);font-family:inherit;font-size:14px;font-weight:600;line-height:22px;cursor:pointer}
.production-viewer-version-select:disabled{opacity:1;cursor:default}
.production-viewer-version-select:focus-visible{outline:2px solid var(--blue,#1764ff);outline-offset:2px}
.production-viewer-title-row strong{flex:1;min-width:0}
.production-viewer-caption>span{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.production-viewer-counter{font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--muted)}
.production-viewer-heading .button,.production-viewer-heading button{padding:6px 10px;min-height:34px;white-space:nowrap;font-size:12px}
.production-viewer-media{position:relative;flex:1;min-height:0;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--panel-soft,#181818)}
.production-viewer-preview{width:100%;height:100%;display:block!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;cursor:zoom-in}
.production-viewer-preview img{display:block;width:100%;height:100%;object-fit:contain}
.production-viewer-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:42px;height:48px;padding:0;display:flex;align-items:center;justify-content:center;background:rgba(15,15,15,.76);color:#fff;border:1px solid rgba(255,255,255,.24);box-shadow:0 2px 10px #0003;border-radius:8px}
.production-viewer-arrow.previous{left:12px}.production-viewer-arrow.next{right:12px}
.production-viewer-arrow:disabled{opacity:.3;cursor:default}.production-viewer-arrow:not(:disabled):hover{border-color:var(--accent,#ff7900);background:#262626}
.production-viewer-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--muted)}
.production-thumbnail-shell{flex:none;min-width:0;height:136px;padding-top:2px}
.production-thumbnail-track{position:relative;max-width:1030px;margin-inline:auto;overflow-x:auto;overflow-y:hidden;padding-bottom:6px;scrollbar-width:auto;color-scheme:dark;touch-action:pan-x}
[data-theme="light"] .production-thumbnail-track{color-scheme:light}
.production-thumbnail-list{display:flex;gap:10px;width:100%;justify-content:center;padding:2px 0}
.production-thumbnail-list.overflowing{justify-content:flex-start;width:max-content;min-width:100%}
.production-thumbnail{width:var(--thumbnail-width);flex:0 0 var(--thumbnail-width);height:104px;padding:5px!important;display:flex!important;flex-direction:column;align-items:center;gap:4px;border-radius:7px;overflow:hidden;background:var(--panel-soft,#1b1b1b);border:1px solid var(--line);user-select:none}
.production-thumbnail img{width:100%;height:72px;object-fit:contain;border-radius:3px;pointer-events:none}
.production-thumbnail>svg{height:72px;flex-shrink:0}.production-thumbnail span{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px;line-height:16px;color:var(--muted)}
.production-thumbnail[aria-current="true"]{border-color:var(--accent,#ff7900);box-shadow:inset 0 0 0 1px var(--accent,#ff7900)}
.production-thumbnail[aria-current="true"] span{color:var(--text)}
.production-viewer-details{position:absolute;top:52px;left:0;right:0;z-index:4;max-height:180px;overflow:auto;padding:12px;border:1px solid var(--line);border-radius:6px;background:var(--surface,#191919);box-shadow:0 8px 24px #0004}
.production-viewer-details article{border:0!important;padding:0!important;background:transparent!important}
.production-viewer-details .suite-result-info,.production-viewer-details .sku-result-info{padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.production-viewer-details h3,.production-viewer-details p{margin:0;font-size:12px}
.production-viewer-details label{display:flex;align-items:center;gap:8px;font-size:12px}.production-viewer-details select{min-height:30px;padding:4px 8px;width:auto}
.production-workspace .suite-results,.production-workspace .sku-results{display:flex;flex-direction:column;min-height:0;flex:1;gap:8px;padding:0;border:0;background:transparent}
.production-workspace .production-stage-body>:is(.suite-results,.sku-results){padding:0!important;margin:0!important;border:0!important;min-height:0!important}
.production-workspace .suite-results-heading,.production-workspace .sku-results-heading{flex:none;justify-content:flex-end;min-height:32px;margin:0}
.production-workspace .suite-results-heading>div:first-child,.production-workspace .sku-results-heading>div:first-child,.production-workspace .suite-results>p.suite-help,.production-workspace .sku-results>p.muted{display:none}
.production-workspace .suite-results>.suite-actions,.production-workspace .sku-results>.sku-actions{flex:none;max-height:64px;overflow:auto}
.production-workspace .suite-results>.suite-actions:has(:not(:empty)),.production-workspace .sku-results>.sku-actions:has(:not(:empty)){padding-block:2px}
.production-workspace .suite-results>.suite-actions:empty,.production-workspace .sku-results>.sku-actions:empty{display:none}
.production-workspace .sku-results-heading button[aria-pressed]{display:none}
.production-workspace .production-result-status{flex:none;font-size:12px;gap:8px;margin:0;padding:4px 0}
.production-workspace .production-result-status>span:last-child{display:none}
.production-gallery-pending{flex:none;margin:0;font-size:12px;color:var(--muted)}
.production-workspace .production-result-notice{flex:none;max-height:64px;overflow:auto;margin:0;font-size:12px}
.production-header-actions{display:flex;gap:8px;align-items:center;margin-left:auto}
.production-header-actions button{min-height:34px;padding:6px 12px;font-size:13px;white-space:nowrap}
.main-shell:has(.production-workspace) .topbar-left{flex:1;min-width:0;gap:12px}
.production-footer-actions{width:100%}.production-footer-actions .primary{width:100%;min-height:44px;justify-content:center;font-size:15px;background:#ff7900!important;border-color:#ff7900!important;color:#fff!important}
.production-footer-actions .primary:hover:not(:disabled){background:#eb6f00!important}
.production-workspace .production-rail .production-clear-row>label.production-template-field{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:center;flex:1 1 200px;min-width:0;margin:0}
.production-workspace .production-rail .production-template-field>span{font-size:12px;line-height:1.4;color:var(--muted);white-space:nowrap}
.production-workspace .production-rail .production-template-field>select.production-template-select{display:block;flex:none;width:100%;max-width:none;min-width:0;min-height:32px;height:32px;padding:5px 8px;font-size:13px}
.production-workspace .production-rail .suite-fields.suite-specs{grid-template-columns:minmax(0,1fr)!important;gap:12px!important;align-content:start}
.production-workspace .production-rail .suite-specs>div{min-width:0;padding-inline:0!important;border-left:0!important}
.production-workspace .production-rail .suite-specs>div+div{padding-top:12px;border-top:1px solid var(--line)}
.production-workspace .production-rail .suite-output-basics{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
.production-workspace .production-rail .suite-output-basics>label,.production-workspace .production-rail .suite-size-policy{display:grid!important;grid-template-columns:76px minmax(0,1fr)!important;align-items:center;gap:6px}
.production-workspace .production-rail .suite-size-policy{grid-column:auto!important;margin:0!important;padding-top:12px;padding-inline:0!important;border-top:1px solid var(--line);border-inline:0!important}
.production-workspace .production-rail .suite-specs :is(input,select){min-width:0;min-height:32px!important;height:32px!important}
@media(min-width:900px){
 .production-workspace{height:calc(100dvh - 98px)!important;min-height:0!important;display:flex!important;flex-direction:column;overflow:hidden}
 .main-shell:has(.production-workspace) .page-content{padding-bottom:24px}
 .production-workspace .production-split{height:100%!important;max-height:100%;flex:1 1 auto;min-height:0!important;display:grid!important;grid-template-columns:220px minmax(0,1fr) 320px!important;grid-template-rows:minmax(0,1fr)!important;grid-template-areas:"history stage rail"!important;gap:14px!important;align-items:stretch}
 .production-workspace .production-history,.production-workspace .production-rail,.production-workspace .production-stage-body{grid-row:1!important;min-height:0!important;height:100%!important}
 .production-workspace .production-split:has(.production-history.collapsed){grid-template-columns:40px minmax(0,1fr) 320px!important;grid-template-areas:"history stage rail"!important}
 .production-stage,.production-stage-content{display:contents!important}
 .production-history{grid-area:history!important;height:100%;min-height:0;overflow:auto;padding:10px!important;position:relative!important;border-radius:8px}
 .production-history.collapsed{width:auto!important;padding:4px 0!important;border:0!important;background:transparent!important;overflow:visible}
 .production-history.collapsed .production-history-open{position:static!important;margin:0!important;width:36px;height:36px}
 .production-stage-body{grid-area:stage!important;min-height:0;min-width:0;height:100%;display:flex;flex-direction:column;gap:8px;padding:0!important;overflow:hidden!important;border:0!important;background:transparent!important}
 .production-rail{grid-area:rail!important;min-height:0;height:100%;overflow:hidden!important;border-radius:8px}
 .production-rail-scroll{padding:12px!important;overflow:auto!important;min-height:0!important;max-height:none!important}
 .production-rail-scroll::before{content:"制作参数";display:block;font-size:15px;font-weight:600;margin:2px 0 12px}
 .production-workspace .production-input-grid,.production-workspace .suite-input-grid,.production-workspace .sku-inputs,.production-workspace .suite-grid{grid-template-columns:minmax(0,1fr)!important}
 .production-workspace .production-form,.production-workspace .white-production-form,.production-workspace .suite-controls{display:flex!important;flex-direction:column;gap:0!important}
 .production-workspace .production-rail .production-panel{height:auto!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;background:transparent!important}
 .production-workspace .production-rail .production-panel>summary{min-height:36px;padding:8px 0!important;font-size:13px}
 .production-workspace .production-rail .production-panel-body{padding:4px 0 12px!important;gap:10px!important}
 .production-workspace .production-rail .production-reference-strip{display:flex;flex-direction:column;gap:8px}
 .production-workspace .production-rail .production-reference-thumbnails{display:flex;flex-wrap:wrap;gap:8px}
 .production-workspace .production-rail .fields{display:flex;flex-direction:column;gap:8px}
 .production-workspace .production-rail .fields>label{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;font-size:12px!important}
 .production-workspace .production-rail .fields>label:has(textarea){display:flex;flex-direction:column;align-items:stretch}
 .production-workspace .production-rail .production-submit{padding:12px;display:flex;flex-direction:column;align-items:stretch;gap:8px}
 .production-workspace .production-rail .suite-confirm-bar,.production-workspace .production-rail .sku-confirm-bar,.production-workspace .production-rail .sku-submit,.production-workspace .production-rail .sku-submit-bar{flex:none;padding:12px;display:flex;flex-direction:column;align-items:stretch;gap:8px;border-top:1px solid var(--line)}
 .production-workspace .production-rail .production-submit p{margin:0}
 .production-workspace .production-rail input:not([type=checkbox]):not([type=radio]),.production-workspace .production-rail select{min-height:32px;height:32px;padding:5px 8px;font-size:13px}
 .production-workspace .production-rail textarea{min-height:64px;height:80px;font-size:13px;padding:8px}
 .production-workspace .production-rail label{font-size:12px;gap:6px}
 .production-workspace .production-rail h2,.production-workspace .production-rail h3{font-size:14px;margin:0 0 8px}
 .production-workspace .production-rail p{font-size:12px;line-height:1.5}
 .production-workspace .production-rail fieldset{min-width:0;gap:10px;padding:0;border:0}
 .production-workspace .production-accordion{margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
 .production-workspace .production-accordion-summary{min-height:34px;padding:6px 0;font-size:13px}
 .production-workspace .production-accordion-body{padding:4px 0 12px;gap:10px}
 .production-workspace .production-reference-strip{gap:6px}
 .production-workspace .production-reference-thumbnails{gap:6px!important}
 .production-workspace .production-reference-thumb{width:64px;height:auto!important;min-height:94px}
 .production-workspace .production-reference-thumb img{width:62px;height:56px;object-fit:cover}
 .production-workspace .production-rail .production-reference-thumb>select{position:static!important;margin-top:4px;width:64px;height:32px;min-height:32px;font-size:12px;padding:4px 16px 4px 5px}
 .production-workspace .production-reference-thumbnails>button{width:44px;min-width:44px;height:56px;min-height:0;padding:0}
 .production-workspace .production-rail .sku-mode-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .production-workspace .production-rail .sku-mode-options button{min-width:0;padding:7px 5px;font-size:12px}
 .production-workspace .production-rail .sku-mode-options strong{font-size:12px}
 .production-workspace .production-rail .sku-mode-options small{font-size:10px;line-height:1.4}
 .production-workspace .production-history-thumb{width:48px;height:48px;flex-basis:48px}
 .production-workspace .production-history-item{gap:8px;padding:8px}
 .production-workspace .production-history-item .production-history-open{padding:0!important;gap:8px!important;min-width:0}
 .production-workspace .production-history-open>span{min-width:0;flex:1;padding-right:6px}
 .production-workspace .production-history-open strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;line-height:1.5}
 .production-workspace .production-history-item strong{font-size:12px;line-height:1.4}
 .production-workspace .production-history-item small{font-size:11px}
 .production-workspace .production-rail .production-clear-row{justify-content:flex-start;gap:8px;flex-wrap:nowrap;margin:0 0 10px;padding:0}
 .production-workspace .production-rail .production-clear-row>label.production-template-field{flex:1 1 0%}
 .production-workspace .production-rail .production-clear-row>button{flex:0 0 36px;width:36px;min-height:32px;margin:0;padding:4px 0;white-space:nowrap}
 .production-workspace .production-clear-row button{min-height:30px;padding:4px 8px;font-size:12px}
 .production-workspace .production-rail .production-submit{margin-top:10px}
}
@media(min-width:900px) and (max-width:1150px){.production-workspace .production-split{grid-template-columns:156px minmax(0,1fr) 256px!important;gap:10px!important}.production-workspace .production-split:has(.production-history.collapsed){grid-template-columns:40px minmax(0,1fr) 256px!important}}
@media(max-width:899px){
 .production-split{display:flex!important;flex-direction:column;gap:12px}.production-stage{order:0;min-width:0}.production-rail{order:1}
 .production-stage-content{display:flex!important;flex-direction:column!important;gap:10px}
 .production-history{max-height:150px!important;overflow:auto;width:100%!important}.production-history.collapsed{height:36px;padding:0;border:0}
 .production-stage-body{height:70dvh;min-height:330px;display:flex;flex-direction:column;gap:8px;padding:0!important;overflow:hidden!important}
 .production-viewer-heading{gap:6px}.production-viewer-caption strong{font-size:14px}.production-viewer-heading .button,.production-viewer-heading button{padding:6px}
 .production-thumbnail{height:88px}.production-thumbnail img{height:56px}
 .production-thumbnail-shell{height:120px}
}
@media(max-width:520px){.production-viewer-download{font-size:0!important;gap:0!important}.production-viewer-info-toggle{font-size:11px!important}.production-viewer-caption>span{font-size:11px}.production-viewer-arrow{width:36px;height:44px}.production-viewer-arrow.previous{left:6px}.production-viewer-arrow.next{right:6px}}

/* Main output count and aspect ratio share one compact row. */
.production-workspace .production-rail .fields.production-output-basics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.production-workspace .production-rail .fields.production-output-basics>label{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0}
.production-workspace .production-rail .production-output-basics :is(input,select){width:100%;min-width:0;min-height:34px!important;height:34px!important;box-sizing:border-box}
