body{margin:0;background:#f0f0f0;color:#323232;font:15px system-ui,sans-serif} .stage-header{background:#323232;color:white;display:flex;gap:18px;align-items:center;padding:18px 28px}.stage-header img{width:90px;max-height:48px}.stage-header strong{font-size:22px}.stage-header small{display:block;color:#ffb48f}.stage-panel{background:white;border:1px solid #ddd;border-radius:10px;padding:20px;margin:16px 0}.stage-toolbar,nav{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0}.stage-toolbar{justify-content:space-between}#stage-root{max-width:1200px;padding:12px 24px;margin:auto}button,#demo-links a{padding:9px 14px;border:1px solid #d14200;border-radius:6px;background:white;color:#a83800;font:inherit;cursor:pointer;text-decoration:none}button.active,button[type=submit]{background:#d14200;color:white}button:disabled{opacity:.6;cursor:default}form{display:grid;gap:12px;max-width:460px}label{display:grid;gap:5px}input{padding:10px;border:1px solid #aaa;border-radius:6px;font:inherit}.stage-table{overflow:auto;max-height:65vh}table{border-collapse:collapse;width:100%;font-size:13px}th,td{padding:8px;border-bottom:1px solid #ddd;text-align:left;vertical-align:top;overflow-wrap:anywhere}th{background:#f3f3f3;position:sticky;top:0}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;margin:6px 0}details{max-width:600px}summary{cursor:pointer}.stage-empty{color:#6b4e40} [hidden]{display:none!important}
.stage-warning{background:#fff5e9;border-left:4px solid #d14200;padding:10px}.stage-operation-form{max-width:none}.stage-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.stage-fields fieldset{grid-column:1/-1}fieldset{border:1px solid #d8d8d8;border-radius:8px;padding:12px;margin:4px 0}legend{font-weight:600}select,textarea{font:inherit;padding:9px;border:1px solid #aaa;border-radius:6px;max-width:100%}.stage-line{border:1px solid #ddd;padding:12px;border-radius:6px;margin-bottom:8px}.stage-line button{margin-top:8px}#operations-panel>button{margin-top:12px}#mfa-panel>*{margin-right:8px;margin-bottom:8px}
.stage-picker{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:4px}.stage-picker select{max-width:100%;width:100%}.stage-picker small{font-size:11px;color:#666}.stage-picker button{padding:5px 9px;font-size:12px}#sync-status{font-size:12px;color:#555}
.stage-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}.stage-metric{border:1px solid #dedede;border-radius:8px;padding:14px;background:#f8f8f8;display:grid;gap:6px}.stage-metric strong{font-size:23px;color:#b83b00}.stage-metric small{color:#555}.stage-list-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}.stage-list-toolbar input{min-width:180px;flex:1}.stage-row-actions{display:flex;gap:5px;flex-wrap:wrap;max-width:330px}.stage-row-actions button{font-size:12px;padding:5px 8px}.stage-row-actions:empty{display:none}