.topbar{gap:28px}.top-navigation{gap:24px}.bottom-nav{grid-template-columns:repeat(var(--nav-count,5),minmax(0,1fr))}
.factory-layout{display:grid;grid-template-columns:minmax(270px,.85fr) minmax(0,1.65fr);gap:24px;align-items:start}.factory-source-column{min-width:0;display:grid;gap:24px}.factory-source-panel,.factory-result{padding:24px;background:var(--surface);border:1px solid var(--border);border-radius:12px;min-width:0}.factory-panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.factory-panel-heading h2{font-size:16px}.factory-panel-heading .text-btn{font-size:12px}.factory-upload-zone{width:100%;min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border:1px dashed var(--control);border-radius:8px;background:var(--ground);text-align:center}.factory-upload-zone .icon{height:26px;width:26px;color:var(--muted)}.factory-upload-zone strong{font-weight:500;font-size:14px}.factory-upload-zone span{font-size:12px;color:var(--muted)}.factory-source-image{background:var(--raised);border-radius:8px;overflow:hidden}.factory-source-image img{width:100%;max-height:340px;object-fit:contain}.factory-source-meta{display:flex;flex-direction:column;gap:4px;margin-top:12px;font-size:12px}.factory-source-meta strong{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.factory-source-meta span{color:var(--muted)}.factory-upload-hint{font-size:12px;color:var(--muted);line-height:1.7;margin:10px 0 0}.factory-source-panel .form-field{margin-top:22px}.factory-source-panel .form-field label{display:flex;align-items:center;justify-content:space-between;font-size:13px}.factory-source-panel label>span{color:var(--muted);font-size:12px;font-weight:400}.factory-source-panel .form-field textarea{width:100%;border:1px solid var(--border);border-radius:6px;resize:vertical;padding:10px 12px;line-height:1.7;min-height:90px}.factory-analysis-model{display:flex;align-items:center;gap:10px;margin:22px 0 16px;color:var(--muted);font-size:12px}.factory-analysis-model .icon{width:17px;height:17px}.factory-analysis-model small{display:block;font-size:11px;margin-top:2px}.factory-source-panel>.btn{height:44px}.factory-result{padding:28px}.factory-result-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.factory-result-heading h2{font-size:21px;line-height:1.5;margin-top:4px;overflow-wrap:anywhere}.factory-result-heading .btn{font-size:12px;flex:none}.factory-kicker{font-size:12px;color:var(--muted)}.factory-prompt-label{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;margin-bottom:10px}.factory-prompt-label>span{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}#factory-prompt{width:100%;min-height:260px;max-height:600px;resize:vertical;border:1px solid var(--border);border-radius:8px;padding:16px;background:var(--ground);font-size:14px;line-height:1.9}.factory-result-note{font-size:12px;color:var(--muted);line-height:1.8;margin-top:10px}.factory-generation-settings{margin-top:26px;border-top:1px solid var(--border);padding-top:22px}.factory-settings-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:12px}.factory-settings-heading h3{font-size:15px}.factory-settings-heading>span{font-size:12px;color:var(--muted)}.factory-generation-settings>label:not(.factory-reference-choice){display:block;font-size:13px;margin-bottom:8px}.factory-settings-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;margin:20px 0}.factory-settings-list>div{display:flex;justify-content:space-between;gap:12px;font-size:12px}.factory-settings-list dt{color:var(--muted);flex:none}.factory-settings-list dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}.factory-reference-choice{display:flex;align-items:center;gap:8px;font-size:13px;margin:20px 0 18px;cursor:pointer;min-height:28px}.factory-reference-choice input{accent-color:var(--accent);width:16px;height:16px;margin:0}.factory-result-actions{display:flex;gap:10px;justify-content:flex-end}.factory-result-actions .btn{height:42px}.factory-empty{min-height:560px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:48px;gap:18px}.factory-empty h2{font-size:20px;font-weight:500}.factory-empty>p{font-size:13px;color:var(--muted);line-height:1.9;max-width:390px}.factory-empty-mark .icon{width:28px;height:28px;color:var(--muted)}.factory-outline{width:100%;max-width:430px;list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:12px 24px;padding:24px 0 0;margin:8px 0 0;border-top:1px solid var(--border);font-size:12px;color:var(--muted);text-align:left}.factory-outline li:last-child{grid-column:1 / -1}.factory-history .section-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px}.factory-history h2{font-size:14px}.factory-history .text-btn{font-size:12px}.factory-history-list{display:grid;gap:8px}.factory-history-list>button{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:center;background:transparent;border:1px solid transparent;border-radius:7px;padding:7px;text-align:left}.factory-history-list>button:hover{background:var(--raised)}.factory-history-list>button[aria-pressed=true]{border-color:var(--border);background:var(--surface)}.factory-history-list img{width:44px;height:44px;object-fit:cover;border-radius:4px}.factory-history-list span{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.factory-history-list small{font-size:11px;color:var(--muted)}.factory-admin form{margin-top:24px}.factory-admin .form-field+.form-field{margin-top:22px}.factory-admin .dialog-actions{justify-content:flex-start}
@media(min-width:701px) and (max-width:1099px){.topbar{gap:20px}.top-navigation{gap:16px}.top-navigation a{font-size:13px}.account-menu-name{display:none}.factory-layout{grid-template-columns:minmax(250px,1fr) minmax(0,1.65fr);gap:18px}.factory-source-panel,.factory-result{padding:20px}.factory-empty{padding:28px;min-height:520px}.factory-empty h2{font-size:18px}.factory-outline{grid-template-columns:1fr}.factory-settings-list{grid-template-columns:1fr;gap:12px}.factory-result-heading{align-items:start;flex-direction:column;gap:12px}.factory-result-heading h2{font-size:19px}.factory-source-image img{max-height:300px}}
@media(max-width:700px){.topbar{gap:12px}.bottom-nav{padding-left:8px;padding-right:8px}.bottom-nav a{font-size:11px}.factory-layout{grid-template-columns:1fr;gap:20px}.factory-source-column{gap:20px}.factory-source-panel,.factory-result{padding:20px 16px}.factory-source-image img{max-height:300px}.factory-source-panel .form-field input,.factory-source-panel .form-field textarea{font-size:16px}.factory-source-panel .form-field{margin-top:20px}.factory-upload-zone{min-height:190px}.factory-empty{min-height:400px;padding:30px 20px}.factory-empty h2{font-size:18px}.factory-outline{grid-template-columns:1fr;gap:12px;padding-top:18px}.factory-result-heading{align-items:start;flex-direction:column;gap:12px}.factory-result-heading h2{font-size:20px}.factory-result-heading .btn{min-height:44px}.factory-prompt-label{font-size:12px}.factory-prompt-label>span{font-size:11px}#factory-prompt{font-size:14px;padding:12px;min-height:240px}.factory-settings-list{grid-template-columns:1fr;gap:14px}.factory-result-actions{flex-wrap:wrap}.factory-result-actions .btn{flex:1;min-height:46px;padding:0 12px}.factory-reference-choice{min-height:44px}.factory-history-list>button{min-height:60px}.factory-admin .dialog-actions{flex-wrap:wrap}}

@media(min-width:701px) and (max-width:800px){.topbar{gap:12px;padding-inline:16px}.topbar .brand strong{font-size:18px}.top-navigation{gap:10px}.topbar-actions{gap:10px}.task-count small{display:none}}
@media(max-width:360px){.task-center-button>span:first-of-type,.auth-bar>span{display:none}}

.factory-heading-actions{display:flex;gap:8px;flex:none}.factory-heading-actions .btn{height:40px}@media(max-width:700px){.factory-heading-actions{width:100%}.factory-heading-actions .btn{min-height:44px}.factory-heading-actions .primary{flex:1}}
