/* 客户工厂：后台管理 + 前台工厂页 */

/* ---------- 后台列表 ---------- */
.fc-panel{background:#fff;border:1px solid #e8ecef;border-radius:10px;overflow:hidden}
.fc-panel .fc-hero{display:flex;gap:24px;align-items:flex-start;justify-content:space-between;padding:20px 22px;background:linear-gradient(180deg,#fffdfb,#fff);border-bottom:1px solid #f0f3f5}
.fc-hero-copy{min-width:0}
.fc-eyebrow{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#ef7523}
.fc-hero-copy h2{font-size:17px;margin:7px 0 6px;color:#2f3a42;font-weight:600}
.fc-hero-copy p{font-size:12px;line-height:1.75;color:#5f6b76;margin:0;max-width:560px}
.fc-hero-stats{display:grid;grid-template-columns:repeat(4,minmax(74px,1fr));gap:8px;flex-shrink:0}
.fc-hero-stats>div{background:#fafbfc;border:1px solid #eef1f3;border-radius:7px;padding:9px 12px;min-width:0}
.fc-hero-stats span{display:block;font-size:12px;color:#5f6b76;margin-bottom:3px;white-space:nowrap}
.fc-hero-stats b{font-size:17px;color:#2f3a42;font-weight:600;white-space:nowrap}
.fc-toolbar{display:flex;gap:10px;align-items:center;padding:12px 16px;border-bottom:1px solid #f0f3f5;flex-wrap:wrap}
.fc-search{display:flex;align-items:center;gap:0;flex:0 1 380px;border:1px solid #e6eaed;border-radius:6px;background:#fff;overflow:hidden}
.fc-search span{padding:0 9px;color:#5f6b76;font-size:12px}
.fc-search input{flex:1;border:0;padding:8px 0;font-size:12px;color:#4d5a62;min-width:0;background:transparent}
.fc-search input:focus{outline:0}
.fc-search button{border:0;border-left:1px solid #eef1f3;background:#fafbfc;padding:8px 14px;font-size:12px;color:#6b7880}
.fc-toolbar-right{margin-left:auto;display:flex;gap:8px;align-items:center}
.fc-toolbar-right select{border:1px solid #e6eaed;border-radius:6px;padding:8px 9px;font-size:12px;color:#5f6d76;background:#fff}
.fc-table-wrap{overflow:auto;max-height:min(64vh,720px)}
.fc-table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px}
.fc-table thead th{position:sticky;top:0;z-index:2;background:#fafbfc;font-size:12px;font-weight:500;color:#5f6b76;text-align:left;padding:9px 12px;border-bottom:1px solid #eef1f3;white-space:nowrap}
.fc-table tbody td{padding:10px 12px;border-bottom:1px solid #f3f6f7;color:#5b6870;vertical-align:middle}
.fc-table tbody tr:hover td{background:#fffdfb}
.fc-table td b{display:block;font-size:12px;color:#37434b;font-weight:500}
.fc-table td small{display:block;font-size:12px;color:#5f6b76;margin-top:2px}
.fc-table .fc-ops{white-space:nowrap;text-align:right}
.fc-table .fc-ops button{font-size:12px;padding:4px 7px;border:1px solid #e6eaed;background:#fff;border-radius:4px;color:#6b7880;margin-left:3px}
.fc-table .fc-ops button:hover:not(:disabled){border-color:#f2b184;color:#ef7523}
.fc-table .fc-ops button.danger-link{color:#b42318;border-color:#f0e3e1}
.fc-table td[data-label^="合同金额"],.fc-table td[data-label="设备金额"]{white-space:nowrap;font-variant-numeric:tabular-nums}
.fc-state-tag{display:inline-block;font-size:12px;padding:2px 7px;border-radius:3px;white-space:nowrap}
.fc-state-tag.on{background:#f0f7f2;color:#4a7c5c}
.fc-state-tag.off{background:#f5f6f7;color:#5f6b76}
.fc-warn{color:#b42318;font-style:normal;font-size:12px}
.fc-state{text-align:center;color:#5f6b76;font-size:12px;padding:40px 16px;margin:0}
.fc-empty-line{color:#5f6b76;font-size:12px;margin:8px 0}

/* ---------- 后台配置页 ---------- */
.fc-config{display:block}
.fc-config-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 16px;background:#fff;border:1px solid #e8ecef;border-radius:10px;margin-bottom:12px}
.fc-back{border:1px solid #e6eaed;background:#fff;border-radius:6px;padding:7px 12px;font-size:12px;color:#6b7880}
.fc-back:hover{border-color:#f2b184;color:#ef7523}
.fc-config-title{min-width:0}
.fc-config-title h2{font-size:16px;margin:0 0 3px;color:#2f3a42;font-weight:600}
.fc-config-title p{font-size:12px;color:#5f6b76;margin:0}
.fc-config-stats{margin-left:auto;display:grid;grid-template-columns:repeat(4,minmax(80px,1fr));gap:8px}
.fc-config-stats>div{background:#fafbfc;border:1px solid #eef1f3;border-radius:7px;padding:8px 11px;min-width:0}
.fc-config-stats span{display:block;font-size:12px;color:#5f6b76;white-space:nowrap}
.fc-config-stats b{font-size:15px;color:#2f3a42;font-weight:600;white-space:nowrap}
.fc-card{background:#fff;border:1px solid #e8ecef;border-radius:10px;padding:16px 18px;margin-bottom:12px}
.fc-card>h3{font-size:13.5px;margin:0 0 12px;color:#2f3a42;font-weight:600}
.fc-tip{font-size:12px;color:#5f6b76;line-height:1.7;margin:0 0 12px}
.fc-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.fc-fields label{display:flex;flex-direction:column;gap:5px;min-width:0}
.fc-label{font-size:12px;color:#5f6b76;display:block}
.fc-label b{color:#ef7523;font-weight:600}
.fc-fields input,.fc-fields select,.fc-fields textarea{border:1px solid #e6eaed;border-radius:6px;padding:8px 9px;font-size:12px;color:#4d5a62;background:#fff;min-width:0;width:100%}
.fc-fields input:focus,.fc-fields select:focus,.fc-fields textarea:focus{border-color:#f0b183;outline:0}
.fc-fields textarea{resize:vertical;line-height:1.7}
.fc-fields .fc-wide{grid-column:1 / -1}
.fc-fields .fc-switch{grid-column:1 / -1;flex-direction:row;align-items:center;gap:8px;font-size:12px;color:#5f6d76}
.fc-fields .fc-switch input{width:auto;flex-shrink:0;margin:0;padding:0;accent-color:#ef7523;cursor:pointer}
.fc-files-edit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.fc-file-block{border:1px solid #eef1f3;border-radius:8px;padding:11px 12px;background:#fcfdfe}
.fc-file-block header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.fc-file-block header b{font-size:12px;color:#4d5a62;font-weight:600}
.fc-file-block ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.fc-file-block li{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #eef1f3;border-radius:6px;padding:6px 8px}
.fc-file-block li div{min-width:0;flex:1}
.fc-file-block li b{display:block;font-size:12px;color:#4d5a62;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fc-file-block li small{font-size:12px;color:#5f6b76}
.fc-file-block li button{font-size:12px;border:1px solid #f0e3e1;color:#b42318;background:#fff;border-radius:4px;padding:3px 7px}
.fc-file-ext{flex-shrink:0;width:34px;height:26px;border-radius:4px;background:#f4f7f8;color:#5f6b76;font-size:12px;display:flex;align-items:center;justify-content:center;letter-spacing:.02em}
.fc-upload-btn{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:#ef7523;border:1px dashed #f0c9a8;background:#fff8f2;border-radius:5px;padding:4px 9px;cursor:pointer}
.fc-upload-btn:hover{background:#fff1e6}
.fc-scenes-edit{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.fc-scene-row{display:grid;grid-template-columns:96px minmax(0,1fr) minmax(0,1.2fr) auto auto;gap:8px;align-items:center}
.fc-scene-kind{font-size:12px;color:#5f6b76;background:#f4f7f8;border-radius:4px;padding:4px 6px;text-align:center;white-space:nowrap}
.fc-scene-row input[type=text],.fc-scene-row input:not([type]){border:1px solid #e6eaed;border-radius:6px;padding:7px 8px;font-size:12px;color:#4d5a62;min-width:0}
.fc-inline-check{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:#6b7880;white-space:nowrap}
.fc-scene-add{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.fc-hot-editor{border-top:1px dashed #eef1f3;padding-top:12px}
.fc-hot-head{display:flex;align-items:center;gap:10px;font-size:12px;color:#5f6b76;margin-bottom:8px;flex-wrap:wrap}
.fc-hot-head b{font-size:12px;color:#4d5a62}
.fc-hot-head button{font-size:12px;border:1px solid #e6eaed;background:#fff;border-radius:4px;padding:3px 8px;color:#6b7880}
.fc-hot-map{position:relative;display:inline-block;max-width:100%;border:1px solid #eef1f3;border-radius:8px;overflow:hidden;cursor:crosshair}
.fc-hot-map img{display:block;max-width:100%;max-height:420px;width:auto;height:auto}
.fc-hot-mark{position:absolute;transform:translate(-50%,-50%);width:22px;height:22px;border-radius:50%;border:2px solid #fff;background:#ef7523;color:#fff;font-size:12px;line-height:1;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 6px rgba(180,80,20,.35);padding:0}
.fc-split{display:flex;flex-direction:column;gap:12px}
.fc-stages-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.fc-stages-head b{font-size:12px;color:#4d5a62;font-weight:600}
.fc-stages-head button{font-size:12px;border:1px solid #e6eaed;background:#fff;border-radius:5px;padding:4px 9px;color:#6b7880}
.fc-stages-head button:hover:not(:disabled){border-color:#f2b184;color:#ef7523}
.fc-stages-head button:disabled{color:#5f6b76}
.fc-stage-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:8px}
.fc-stage-item{border:1px solid #eef1f3;border-radius:7px;padding:7px 8px;background:#fff}
.fc-stage-item.on{border-color:#f0b183;background:#fffaf5}
.fc-stage-top{display:flex;align-items:center;gap:6px}
.fc-stage-name{flex:1;border:1px solid transparent;background:transparent;font-size:12px;color:#37434b;font-weight:500;padding:3px 5px;min-width:0;border-radius:4px}
.fc-stage-name:hover{border-color:#eef1f3;background:#fff}
.fc-stage-name:focus{border-color:#f0b183;background:#fff;outline:0}
.fc-stage-top span{font-size:12px;color:#5f6b76;white-space:nowrap}
.fc-stage-top button:not(.fc-stage-name){border:1px solid #eef1f3;background:#fafbfc;border-radius:4px;font-size:12px;color:#5f6b76;padding:2px 5px}
.fc-stage-top button:disabled{color:#5f6b76}
.fc-stage-top button.danger-link{color:#b42318;border-color:#f0e3e1}
.fc-stage-fields{display:grid;grid-template-columns:52px minmax(0,1fr);gap:5px;margin-top:5px}
.fc-stage-fields input{border:1px solid #eef1f3;border-radius:5px;padding:5px 6px;font-size:12px;color:#5f6d76;min-width:0}

.fc-stage-foot{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:5px}
.fc-stage-foot button{border:1px solid #eef1f3;background:#fafbfc;border-radius:4px;font-size:12px;color:#5f6b76;padding:2px 6px}
.fc-stage-item.on .fc-stage-foot button{border-color:#f0c9a8;background:#fff5ec;color:#ef7523}
.fc-stage-hot{font-size:12px;color:#5f6b76;white-space:nowrap}
.fc-device-table .fc-ops button{white-space:nowrap}
.fc-device-table input[type=text],.fc-device-table input:not([type]),.fc-device-table input[type=number]{border:1px solid #e6eaed;border-radius:5px;padding:5px 6px;font-size:12px;color:#5f6d76;width:100%;min-width:0}
.fc-device-table input[type=number]{width:66px}
.fc-device-table select{border:1px solid #e6eaed;border-radius:5px;font-size:12px;padding:4px 5px;color:#5f6d76;background:#fff}
.fc-device-table td[data-label="金额"]{white-space:nowrap}
.fc-device-table td[data-label="操作"] button{white-space:nowrap}
.fc-device-table td[data-label="操作"]{white-space:nowrap;min-width:104px}
.fc-device-table td[data-label="操作"] button+button{margin-left:4px}
@media(min-width:761px){.fc-device-table{min-width:900px}}
.fc-savebar{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid #e8ecef;border-radius:10px;padding:11px 16px;margin-top:4px;box-shadow:0 -6px 16px -12px rgba(30,50,60,.35)}
.fc-save-state{font-size:12px;color:#5f6b76}
.fc-save-state b{color:#ef7523}
.fc-savebar>div{display:flex;gap:8px}
.fc-savebar button{font-size:12px;border-radius:6px;padding:8px 16px}
.fc-dialog-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:14px}

/* ---------- 机械设备选择器 ---------- */
.fc-picker{border:0;padding:0;background:transparent;max-width:min(680px,92vw);width:100%}
.fc-picker::backdrop{background:rgba(24,34,40,.42)}
.fc-pick-box{background:#fff;border-radius:10px;overflow:hidden;display:flex;flex-direction:column;max-height:min(78vh,720px)}
.fc-pick-box header{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;border-bottom:1px solid #f0f3f5}
.fc-pick-box header h3{font-size:13.5px;margin:0;color:#2f3a42;font-weight:600}
.fc-pick-box header button{border:0;background:transparent;font-size:18px;color:#5f6b76;line-height:1}
.fc-pick-search{padding:10px 16px;border-bottom:1px solid #f3f6f7}
.fc-pick-search input{width:100%;border:1px solid #e6eaed;border-radius:6px;padding:8px 10px;font-size:12px;color:#4d5a62}
.fc-pick-body{overflow:auto;padding:8px 12px;flex:1}
.fc-pick-row{display:flex;align-items:center;gap:10px;padding:8px 6px;border-bottom:1px solid #f5f7f8;cursor:pointer}
.fc-pick-row:hover{background:#fffaf5}
.fc-pick-row input{flex-shrink:0}
.fc-pick-row span{min-width:0;flex:1}
.fc-pick-row b{display:block;font-size:12px;color:#37434b;font-weight:500}
.fc-pick-row small{font-size:12px;color:#5f6b76}
.fc-pick-box footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 16px;border-top:1px solid #f0f3f5;font-size:12px;color:#5f6b76}
.fc-pick-box footer div{display:flex;gap:8px}
.fc-pick-box footer button{font-size:12px;border-radius:6px;padding:7px 14px}

/* ---------- 前台工厂页 ---------- */
.fc-front{max-width:1180px;margin:0 auto;padding:26px 20px 60px}
.fc-front .fc-hero{display:flex;gap:24px;align-items:flex-end;justify-content:space-between;padding:24px 26px;border-radius:12px;background:linear-gradient(135deg,#fffaf5,#fff 60%);border:1px solid #f2e7dc;flex-wrap:wrap}
.fc-front .fc-hero h1{font-size:24px;margin:8px 0 6px;color:#243038}
.fc-front .fc-hero p{margin:0;font-size:12.5px;color:#5f6b76}
.fc-front .fc-eyebrow{font-size:12px;letter-spacing:.14em;color:#ef7523;text-transform:uppercase}
.fc-stats{display:grid;grid-template-columns:repeat(4,minmax(74px,1fr));gap:10px}
.fc-stats>div{background:#fff;border:1px solid #f0e7de;border-radius:8px;padding:9px 13px;min-width:0}
.fc-stats span{display:block;font-size:12px;color:#5f6b76;white-space:nowrap}
.fc-stats b{font-size:16px;color:#2f3a42;font-weight:600;white-space:nowrap}
.fc-block{margin-top:18px;background:#fff;border:1px solid #edf0f2;border-radius:12px;padding:20px 22px}
.fc-block>h2{font-size:15px;margin:0 0 14px;color:#2f3a42;font-weight:600}
.fc-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 20px;margin:0}
.fc-info-grid div{min-width:0}
.fc-info-grid dt{font-size:12px;color:#5f6b76;margin-bottom:3px}
.fc-info-grid dd{margin:0;font-size:12.5px;color:#3f4c55;overflow-wrap:anywhere}
.fc-summary{margin:14px 0 0;font-size:12px;color:#5f6b76;line-height:1.8;border-top:1px dashed #eef1f3;padding-top:12px}
.fc-scene-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.fc-scene-tabs button{border:1px solid #e6eaed;background:#fff;border-radius:6px;padding:6px 12px;font-size:12px;color:#6b7880}
.fc-scene-tabs button.on{border-color:#ef7523;color:#ef7523;background:#fff8f2}
.fc-stage-map{position:relative;border-radius:10px;overflow:hidden;background:#f7f9fa;line-height:0}
.fc-stage-map img{width:100%;height:auto;display:block}
.fc-hot{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;gap:5px;border:1px solid rgba(239,117,35,.5);background:rgba(255,255,255,.94);border-radius:14px;padding:3px 9px 3px 4px;font-size:12px;color:#ef7523;box-shadow:0 3px 10px rgba(120,70,30,.18);white-space:nowrap}
.fc-hot span{width:17px;height:17px;border-radius:50%;background:#ef7523;color:#fff;font-size:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.fc-hot em{font-style:normal}
.fc-hot.on{background:#ef7523;color:#fff;border-color:#ef7523}
.fc-hot.on span{background:#fff;color:#ef7523}
.fc-viewer{position:relative;border-radius:10px;overflow:hidden;background:#f5f8fa;border:1px solid #eef1f3}
.fc-viewer iframe{width:100%;height:min(62vh,560px);border:0;display:block}
.fc-viewer-note{margin:0;padding:7px 12px;font-size:12px;color:#5f6b76;background:#fafbfc;border-top:1px solid #eef1f3}
.fc-viewer-note a{color:#ef7523}
.fc-scene-caption{margin:8px 0 0;font-size:12px;color:#5f6b76}
.fc-scene-empty{border:1px dashed #e2e7ea;border-radius:10px;padding:36px 16px;text-align:center;font-size:12px;color:#5f6b76}
.fc-stage-bar{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid #f2f5f6}
.fc-stage-bar button{border:1px solid #e6eaed;background:#fff;border-radius:20px;padding:6px 13px;font-size:12px;color:#5f6d76}
.fc-stage-bar button b{font-weight:500;color:#5f6b76;margin-left:4px}
.fc-stage-bar button.on{border-color:#ef7523;background:#fff5ec;color:#ef7523}
.fc-stage-bar button.on b{color:#ef7523}
.fc-dev-hint{font-size:12px;line-height:1.75;color:#5f6b76;margin:-6px 0 14px}
.fc-stage-group{margin-top:16px}
.fc-stage-group>header{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;margin-bottom:10px}
.fc-stage-group>header span{font-size:12px;color:#ef7523;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.fc-stage-group>header h2{font-size:14px;margin:0;color:#2f3a42;font-weight:600}
.fc-stage-group>header p{margin:0;font-size:12px;color:#5f6b76}
.fc-devs{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px}
.fc-dev{border:1px solid #edf0f2;border-radius:10px;padding:13px 14px;background:#fff;display:flex;flex-direction:column;gap:6px}
.fc-dev.optional{border-style:dashed}
.fc-dev-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.fc-dev-code{font-size:12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#5f6b76;background:#f4f7f8;border-radius:3px;padding:2px 6px}
.fc-dev-stage{font-size:12px;color:#5f6b76}
.fc-dev-flag{font-size:12px;color:#ef7523;background:#fdf1e7;border-radius:3px;padding:2px 6px}
.fc-dev h3{font-size:13px;margin:0;color:#2f3a42;font-weight:600;line-height:1.45}
.fc-dev-model{font-size:12px;color:#5f6b76;margin:0;overflow-wrap:anywhere}
.fc-dev-config{font-size:12px;color:#5f6b76;margin:0}
.fc-dev-note{font-size:12px;color:#5f6b76;margin:0;background:#fafbfc;border-radius:5px;padding:5px 7px}
.fc-dev-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:9px;border-top:1px solid #f4f7f8}
.fc-dev-foot b{font-size:14px;color:#ef7523;font-weight:600;white-space:nowrap}
.fc-dev-actions{display:flex;gap:6px;flex-wrap:wrap}
.fc-dev-actions button{font-size:12px;border-radius:6px;padding:6px 11px}
.fc-dev-actions button:disabled{color:#5f6b76;background:#fafbfc;border-color:#eef1f3}
.fc-empty-dev{font-size:12px;color:#5f6b76;padding:18px 0;margin:0}
.fc-files{margin-top:18px;background:#fff;border:1px solid #edf0f2;border-radius:12px;padding:20px 22px}
.fc-files>h1{font-size:15px;margin:0 0 14px;color:#2f3a42;font-weight:600}
.fc-file-group{margin-bottom:14px}
.fc-file-group h2{font-size:12px;margin:0 0 8px;color:#4d5a62;font-weight:600}
.fc-file-group h2 small{font-size:12px;color:#5f6b76;margin-left:6px;font-weight:400}
.fc-file-group ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}
.fc-file-group li{display:flex;align-items:center;gap:9px;border:1px solid #eef1f3;border-radius:7px;padding:7px 9px;background:#fcfdfe}
.fc-file-group li div{min-width:0;flex:1}
.fc-file-group li b{display:block;font-size:12px;color:#4d5a62;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fc-file-group li small{font-size:12px;color:#5f6b76}
.fc-file-dl{flex-shrink:0;font-size:12px;color:#ef7523;border:1px solid #f0c9a8;background:#fff8f2;border-radius:5px;padding:4px 9px;text-decoration:none}
.fc-gate{max-width:520px;margin:60px auto;text-align:center;background:#fff;border:1px solid #edf0f2;border-radius:12px;padding:36px 28px}
.fc-gate h1{font-size:18px;margin:0 0 10px;color:#2f3a42}
.fc-gate p{font-size:12px;color:#5f6b76;line-height:1.8;margin:0 0 18px}
.fc-list-title{font-size:20px;color:#243038;margin:0 0 16px}
.fc-mine{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.fc-mine-card{text-align:left;border:1px solid #edf0f2;border-radius:10px;padding:15px 16px;background:#fff;display:flex;flex-direction:column;gap:5px}
.fc-mine-card:hover{border-color:#f0b183;box-shadow:0 6px 18px -12px rgba(180,90,30,.4)}
.fc-mine-code{font-size:12px;color:#ef7523;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.fc-mine-card b{font-size:14px;color:#2f3a42}
.fc-mine-card small{font-size:12px;color:#5f6b76}

/* ---------- 前台：工厂设备资产列表 ---------- */
.fc-assets{max-width:1180px;margin:0 auto;padding:34px 20px 64px}
.fc-assets-head h1{font-size:26px;margin:0 0 10px;color:#243038;font-weight:700;letter-spacing:-.01em}
.fc-assets-head p{margin:0 0 22px;font-size:13px;color:#5f6b76}
.fc-assets-search{display:flex;gap:10px;margin-bottom:22px}
.fc-assets-search input{flex:1;min-width:0;border:1px solid #e2e7ea;border-radius:8px;padding:12px 15px;font-size:13px;color:#3f4c55;background:#fff}
.fc-assets-search input:focus{outline:0;border-color:#f0b183;box-shadow:0 0 0 3px rgba(239,117,35,.08)}
.fc-assets-query{border:1px solid #ef7523;color:#ef7523;background:#fff;border-radius:8px;padding:0 22px;font-size:13px;font-weight:500;white-space:nowrap}
.fc-assets-query:hover{background:#fff7f0}
.fc-assets-empty{border:1px dashed #e2e7ea;border-radius:12px;padding:56px 20px;text-align:center;font-size:13px;color:#5f6b76}
.fc-assets-empty p{margin:0}
.fc-asset-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:20px}
.fc-asset{border:1px solid #eceff2;border-radius:12px;background:#fff;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .18s}
.fc-asset:hover{box-shadow:0 14px 32px -24px rgba(40,50,60,.55)}
.fc-asset-cover{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;height:300px;border:0;border-bottom:1px solid #eef1f3;background:linear-gradient(170deg,#fafbfc,#f5f8f9);padding:16px}
.fc-asset-cover.has-img{padding:0;background:#f2f5f6}
.fc-asset-cover img{width:100%;height:100%;object-fit:cover;display:block}
.fc-cover-mark svg{width:56px;height:30px;display:block}
.fc-asset-cover b{font-size:20px;color:#5e6a73;font-weight:600;letter-spacing:.01em;text-align:center;line-height:1.4}
.fc-asset-cover small{font-size:12.5px;color:#5f6b76;letter-spacing:.05em}
.fc-asset-body{padding:18px 20px 20px;display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}
.fc-asset-tag{font-size:12px;color:#ef7523;letter-spacing:.04em}
.fc-asset-body h2{font-size:19px;margin:0;color:#243038;font-weight:650;line-height:1.4}
.fc-asset-body p{margin:0;font-size:13px;color:#5f6b76}
.fc-asset-meta{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap;margin:8px 0 14px}
.fc-asset-meta span{font-size:12px;color:#5f6b76}
.fc-asset-meta b{font-size:17px;color:#2f3a42;font-weight:600;margin-right:4px}
.fc-asset-meta em{font-style:normal;font-size:12px;color:#5f6b76}
.fc-asset-enter{margin-top:auto;align-self:flex-start;border:1px solid #f5b98c;background:#fff;color:#ef7523;border-radius:8px;padding:11px 26px;font-size:13.5px;font-weight:500}
.fc-asset-enter:hover{background:#fff7f0;border-color:#ef7523}

/* ---------- 前台：工厂详情 ---------- */
.fc-fd{display:block}
.fc-fd-back{border:0;background:none;color:#5f6b76;font-size:12.5px;padding:4px 0;margin-bottom:12px}
.fc-fd-back:hover{color:#ef7523}
.fc-fd-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:18px}
.fc-fd-title{min-width:0}
.fc-fd-meta{font-size:12px;color:#5f6b76;display:block;margin-bottom:7px}
.fc-fd-title h1{font-size:27px;margin:0 0 8px;color:#1f2b33;font-weight:700;letter-spacing:-.01em}
.fc-fd-tag{font-size:12px;color:#ef7523}
.fc-fd-cart{border:1px solid #f5b98c;color:#ef7523;background:#fff;border-radius:8px;padding:9px 16px;font-size:12.5px;white-space:nowrap}
.fc-fd-cart:hover{background:#fff7f0}
.fc-fd-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}
.fc-fd-stats>div{border:1px solid #eceff2;border-radius:10px;background:#fff;padding:14px 16px;min-width:0}
.fc-fd-stats span{display:flex;align-items:center;gap:6px;font-size:12px;color:#5f6b76;margin-bottom:7px}
.fc-fd-stats b{font-size:22px;color:#2f3a42;font-weight:650;margin-right:3px;line-height:1.1}
.fc-fd-stats i{font-style:normal;font-size:12px;color:#5f6b76}
.fc-fd-stats .run span em{width:6px;height:6px;border-radius:50%;background:#4a9d6a;display:inline-block}
.fc-fd-stats .run b{color:#166534}
.fc-fd-stats .alert{border-color:#f6e3cf;background:#fffdfa;display:block}
.fc-fd-stats .alert button{display:block;width:100%;border:0;background:none;padding:0;margin-bottom:7px;font-size:12px;color:#ef7523;text-decoration:underline;text-underline-offset:2px;cursor:pointer;white-space:nowrap;text-align:left}
.fc-fd-stats .alert b{color:#ef7523;margin-top:0}
.fc-fd-tabs{display:flex;gap:26px;border-bottom:1px solid #eceff2;margin-bottom:20px;overflow-x:auto}
.fc-fd-tabs button{border:0;background:none;padding:0 0 12px;font-size:13.5px;color:#5f6b76;white-space:nowrap;position:relative}
.fc-fd-tabs button:hover{color:#ef7523}
.fc-fd-tabs button.on{color:#1f2b33;font-weight:600}
.fc-fd-tabs button.on::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:#ef7523;border-radius:2px}
.fc-fd-body{display:block}
.fc-fd-body .fc-block{margin-top:0}
.fc-info-block .fc-info-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 32px}
.fc-info-block .fc-info-grid div{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid #f4f7f8}
.fc-info-block .fc-info-grid dt{margin:0;font-size:12px;color:#5f6b76}
.fc-info-block .fc-info-grid dd{font-size:12.5px;color:#3f4c55;text-align:right}
.fc-overview-stages>.fc-stage-bar{margin-top:0;padding-top:0;border-top:0;margin-bottom:0}

/* ---------- 全屏 ---------- */
.fc-scene-box{position:relative;border-radius:10px;overflow:hidden;background:#f7f9fa}
.fc-scene-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;background:#fcfdfe;border-bottom:1px solid #eef1f3}
.fc-scene-bar>span{font-size:12px;color:#5f6b76;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fc-full-btn{border:1px solid #e6eaed;background:#fff;border-radius:6px;padding:5px 11px;font-size:12px;color:#6b7880;white-space:nowrap;flex-shrink:0}
.fc-full-btn:hover{border-color:#f2b184;color:#ef7523}
.fc-scene-box .fc-viewer,.fc-scene-box .fc-stage-map{border-radius:0}
.fc-scene-box:is(:fullscreen,.fc-pseudo-full){display:flex;flex-direction:column;background:#0d1318;border-radius:0;width:100vw;height:100vh}
.fc-scene-box:is(:fullscreen,.fc-pseudo-full) .fc-scene-bar{background:#131b21;border-color:#1d262d;flex-shrink:0}
.fc-scene-box:is(:fullscreen,.fc-pseudo-full) .fc-scene-bar>span{color:#5f6b76}
.fc-scene-box:is(:fullscreen,.fc-pseudo-full) .fc-full-btn{background:#1d262d;border-color:#2b353d;color:#e6eef3}
.fc-scene-box:is(:fullscreen,.fc-pseudo-full) .fc-stage-map,
.fc-scene-box:is(:fullscreen,.fc-pseudo-full) .fc-viewer{flex:1;display:flex;align-items:center;justify-content:center;min-height:0;background:#0d1318;border:0;border-radius:0}
.fc-scene-box:is(:fullscreen,.fc-pseudo-full) img{width:auto;height:auto;max-width:100vw;max-height:calc(100vh - 40px);object-fit:contain;margin:0 auto}
.fc-scene-box:is(:fullscreen,.fc-pseudo-full) iframe{width:100%;height:calc(100vh - 40px)}
.fc-scene-box:is(:fullscreen,.fc-pseudo-full) .fc-hot em{display:inline}
.fc-pseudo-full{position:fixed;inset:0;z-index:9000}

/* ---------- 问题预警 ---------- */
.fc-alerts{border:1px solid #f6e3cf;background:#fffdf9;border-radius:10px;padding:14px 16px;margin-bottom:14px}
.fc-alerts>header{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.fc-alerts>header h3{font-size:13.5px;margin:0;color:#ef7523;font-weight:600}
.fc-alerts>header span{font-size:12px;color:#5f6b76}
.fc-alerts ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.fc-alerts li button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #f2e5d7;background:#fff;border-radius:7px;padding:9px 12px;text-align:left}
.fc-alerts li button:hover{border-color:#f0c9a8;background:#fffaf5}
.fc-alert-main{min-width:0}
.fc-alert-main b{display:block;font-size:12px;color:#3f4c55;font-weight:500}
.fc-alert-main small{display:block;font-size:12px;color:#5f6b76;margin-top:2px}
.fc-alerts em{font-style:normal;font-size:12px;color:#ef7523;white-space:nowrap}
.fc-alerts em.near{color:#b42318}
.fc-alerts em.over{color:#b23b2e;font-weight:600}

/* ---------- 前台：设备卡片可点击 ---------- */
.fc-dev-hit{display:block;width:100%;text-align:left;border:0;background:none;padding:0;cursor:pointer}
.fc-dev-hit:hover h3{color:#ef7523}
.fc-dev-flag.alert{color:#ef7523;background:#fdeee0}

/* ---------- 前台：设备详情 ---------- */
.fc-fdv{display:block}
.fc-fdv-head{display:flex;gap:18px;align-items:flex-start;border:1px solid #eceff2;border-radius:12px;background:#fff;padding:18px 20px}
.fc-fdv-thumb{width:118px;height:118px;border-radius:10px;background:#f4f7f8;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}
.fc-fdv-thumb img{width:100%;height:100%;object-fit:cover}
.fc-fdv-gear svg{width:52px;height:52px;display:block}
.fc-fdv-main{min-width:0;flex:1}
.fc-fdv-code{font-size:12px;color:#5f6b76;letter-spacing:.03em}
.fc-fdv-main h1{font-size:21px;margin:5px 0 6px;color:#1f2b33;display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-weight:650}
.fc-run-tag{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:400;border-radius:20px;padding:3px 9px;background:#eef6f1;color:#166534}
.fc-run-tag i{width:5px;height:5px;border-radius:50%;background:#4a9d6a}
.fc-run-tag.idle{background:#f3f6f8;color:#5f6b76}
.fc-run-tag.idle i{background:#a4adb3}
.fc-run-tag.maintenance{background:#fdf3e6;color:#ef7523}
.fc-run-tag.maintenance i{background:#e09343}
.fc-run-tag.offline{background:#f5f2f2;color:#5f6b76}
.fc-run-tag.offline i{background:#b3a5a3}
.fc-fdv-spec{margin:0 0 8px;font-size:12px;color:#5f6b76}
.fc-fdv-hint{margin:0;font-size:12px;color:#5f6b76;line-height:1.7}
.fc-fdv-actions{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0}
.fc-fdv-actions b{font-size:17px;color:#ef7523;white-space:nowrap}
.fc-fdv-cols{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
.fc-fdv-card{border:1px solid #eceff2;border-radius:12px;background:#fff;padding:16px 18px}
.fc-fdv-card>h2{font-size:13.5px;margin:0 0 12px;color:#2f3a42;font-weight:600}
.fc-fdv-dl{margin:0;display:flex;flex-direction:column}
.fc-fdv-dl div{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid #f4f7f8;font-size:12px}
.fc-fdv-dl div:last-child{border-bottom:0}
.fc-fdv-dl dt{color:#5f6b76;flex-shrink:0}
.fc-fdv-dl dd{margin:0;color:#3f4c55;text-align:right;overflow-wrap:anywhere}
.fc-remind{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.fc-remind li{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border:1px solid #f6e6d3;background:#fffaf3;border-radius:8px;padding:10px 12px;font-size:12px;color:#8a6b4e}
.fc-remind li>span{color:#ef7523}
.fc-remind em{font-style:normal;margin-left:auto;color:#5f6b76;font-size:12px}
.fc-remind small{font-size:12px;color:#5f6b76;width:100%}
.fc-remind li.over{border-color:#f0d3ce;background:#fef6f5}
.fc-remind li.over em{color:#b23b2e;font-weight:600}
.fc-parts{margin-top:14px}
.fc-parts>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.fc-parts>header h2{font-size:17px;margin:0;color:#1f2b33;font-weight:650}
.fc-parts-cart{border:1px solid #f5b98c;background:#fff;color:#ef7523;border-radius:8px;padding:7px 13px;font-size:12px;white-space:nowrap}
.fc-parts-cart:hover{background:#fff7f0}
.fc-parts-hint{margin:0 0 14px;font-size:12px;color:#5f6b76}
.fc-part-list{display:flex;flex-direction:column;gap:10px}
.fc-part{display:flex;gap:14px;align-items:center;border:1px solid #f0f3f5;border-radius:10px;padding:11px 13px;background:#fff}
.fc-part-thumb{width:62px;height:62px;border-radius:8px;background:#f5f7f8;overflow:hidden;flex-shrink:0}
.fc-part-thumb img{width:100%;height:100%;object-fit:cover}
.fc-part-main{min-width:0;flex:1}
.fc-part-tag{font-size:12px;color:#ef7523}
.fc-part-main h4{margin:2px 0 3px;font-size:13.5px;color:#2f3a42;font-weight:600}
.fc-part-main p{margin:0;font-size:12px;color:#5f6b76}
.fc-part-main small{font-size:12px;color:#5f6b76}
.fc-part-buy{display:flex;align-items:center;gap:10px;flex-shrink:0}
.fc-part-buy b{font-size:14px;color:#ef7523;white-space:nowrap}
.fc-part-qty{display:flex;align-items:center;gap:5px;font-size:12px;color:#5f6b76}
.fc-part-qty input{width:52px;border:1px solid #e6eaed;border-radius:6px;padding:5px 6px;font-size:12px;color:#4d5a62;text-align:center}
.fc-part-buy button{font-size:12px;border-radius:6px;padding:7px 12px}

/* ---------- 前台：设备维保 ---------- */
.fc-tab-badge{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;margin-left:5px;border-radius:9px;background:#fdeee0;color:#ef7523;font-size:12px;font-weight:600;vertical-align:1px}
.fc-maint-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.fc-maint-head h2{margin:0 0 8px;font-size:15px;color:#2f3a42;font-weight:600}
.fc-maint-head .fc-dev-hint{margin:0}
.fc-maint-new{border-radius:8px;padding:8px 15px;font-size:12.5px;white-space:nowrap}
.fc-maint-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.fc-maint-stats>div{border:1px solid #eceff2;border-radius:10px;background:#fff;padding:11px 14px;display:flex;align-items:baseline;gap:6px}
.fc-maint-stats b{font-size:19px;color:#2f3a42;font-weight:650;line-height:1.1}
.fc-maint-stats span{font-size:12px;color:#5f6b76}
.fc-maint-stats .over{border-color:#f0d3ce;background:#fefaf9}
.fc-maint-stats .over b{color:#b23b2e}
.fc-maint-filter{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.fc-maint-filter button{border:1px solid #e6eaed;background:#fff;border-radius:16px;padding:5px 12px;font-size:12px;color:#6b7880;display:inline-flex;align-items:center;gap:5px}
.fc-maint-filter button b{font-weight:600;color:#5f6b76}
.fc-maint-filter button:hover{border-color:#f2b184;color:#ef7523}
.fc-maint-filter button.on{border-color:#f5b98c;background:#fff7f0;color:#ef7523}
.fc-maint-filter button.on b{color:#ef7523}
.fc-maint-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.fc-mnt{display:flex;align-items:center;gap:16px;border:1px solid #eef1f3;border-radius:10px;background:#fff;padding:12px 15px}
.fc-mnt.over{border-color:#f0d3ce;background:#fefaf9}
.fc-mnt.done,.fc-mnt.skip{background:#fafbfc;opacity:.86}
.fc-mnt-main{min-width:0;flex:1}
.fc-mnt-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.fc-mnt-title b{font-size:13.5px;color:#2f3a42;font-weight:600}
.fc-src{font-size:12px;border-radius:4px;padding:2px 6px;white-space:nowrap}
.fc-src.admin{background:#eef2f6;color:#5f7286}
.fc-src.member{background:#fdf1e6;color:#ef7523}
.fc-mnt-main small{display:block;margin-top:4px;font-size:12px;color:#5f6b76;overflow-wrap:anywhere}
.fc-mnt-due{display:flex;flex-direction:column;align-items:flex-end;gap:3px;min-width:96px;flex-shrink:0}
.fc-mnt-due b{font-size:12.5px;color:#3f4c55;font-variant-numeric:tabular-nums}
.fc-mnt-due em{font-style:normal;font-size:12px;color:#ef7523;white-space:nowrap}
.fc-mnt.over .fc-mnt-due em{color:#b23b2e;font-weight:600}
.fc-mnt.done .fc-mnt-due em{color:#166534}
.fc-mnt.skip .fc-mnt-due em{color:#5f6b76}
.fc-mnt-ops{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end;flex-shrink:0}
.fc-mnt-btn{border:1px solid #e6eaed;background:#fff;border-radius:6px;padding:5px 10px;font-size:12px;color:#6b7880;white-space:nowrap}
.fc-mnt-btn:hover{border-color:#f2b184;color:#ef7523}
.fc-mnt-btn.ok{border-color:#f5b98c;background:#fff7f0;color:#ef7523}
.fc-mnt-btn.danger{color:#b42318;border-color:#f0e3e1}
.fc-mnt-btn.danger:hover{border-color:#e2c6c2;background:#fdf6f5;color:#b23b2e}
.fc-maint-empty{margin:0;border:1px dashed #e3e8ec;border-radius:10px;padding:26px 18px;text-align:center;font-size:12px;color:#5f6b76;background:#fcfdfe}
.fc-alerts-goto{margin-left:auto;border:1px solid #f5b98c;background:#fff;color:#ef7523;border-radius:6px;padding:4px 10px;font-size:12px;white-space:nowrap}
.fc-remind-more{margin-top:10px;border:0;background:none;padding:0;font-size:12px;color:#ef7523;text-decoration:underline;text-underline-offset:2px}
.fc-remind li.done{border-color:#e2efe7;background:#f7fbf8}
.fc-remind li.done>span{color:#166534}
.fc-remind li.done em{color:#166534}
.fc-remind li.skip{background:#fafbfc;color:#5f6b76}
.fc-remind li.skip>span{color:#5f6b76}

/* ---------- 后台：封面与设备档案 ---------- */
.fc-cover-edit{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.fc-cover-preview{width:260px;height:146px;border-radius:8px;border:1px dashed #dfe5e9;background:#fafbfc;display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:12px;color:#5f6b76;text-align:center;padding:8px;line-height:1.6}
.fc-cover-preview img{width:100%;height:100%;object-fit:cover;border-radius:6px}
.fc-cover-ops{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.fc-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.fc-form-grid label{display:flex;flex-direction:column;gap:5px;min-width:0}
.fc-form-grid input,.fc-form-grid select{border:1px solid #e6eaed;border-radius:6px;padding:8px 9px;font-size:12px;color:#4d5a62;background:#fff;min-width:0;width:100%}
.fc-form-grid input:focus,.fc-form-grid select:focus{border-color:#f0b183;outline:0}
.fc-remind-edit{margin-top:16px;border-top:1px dashed #eef1f3;padding-top:14px}
.fc-remind-edit>b{font-size:12.5px;color:#2f3a42}
.fc-remind-row{display:grid;grid-template-columns:1fr 150px;gap:8px;margin-bottom:8px}
.fc-remind-row input{border:1px solid #e6eaed;border-radius:6px;padding:8px 9px;font-size:12px;color:#4d5a62;min-width:0}

/* ---------- 响应式 ---------- */
@media(max-width:1280px){
  .fc-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fc-scene-row{grid-template-columns:88px minmax(0,1fr) minmax(0,1fr) auto auto}
}
@media(max-width:1100px){
  .fc-panel .fc-hero{flex-direction:column;gap:14px}
  .fc-hero-stats{width:100%;grid-template-columns:repeat(4,minmax(0,1fr))}
  .fc-config-stats{margin-left:0;width:100%;grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:900px){
  .fc-fields{grid-template-columns:1fr}
  .fc-files-edit{grid-template-columns:1fr}
  .fc-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fc-scene-row{grid-template-columns:1fr 1fr;gap:6px}
  .fc-scene-kind{grid-column:1 / -1}
  .fc-front .fc-hero{flex-direction:column;align-items:flex-start}
  .fc-stats{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}
  .fc-fd-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .fc-fdv-cols{grid-template-columns:1fr}
  .fc-fdv-head{flex-wrap:wrap}
}
@media(max-width:760px){
  .fc-front{padding:16px 12px 44px}
  .fc-block,.fc-files{padding:15px 14px}
  .fc-front .fc-hero{padding:16px 14px}
  .fc-front .fc-hero h1{font-size:19px}
  .fc-table thead{display:none}
  .fc-table tbody tr{display:block;border-bottom:1px solid #f0f3f5;padding:8px 0}
  .fc-table tbody td{display:flex;justify-content:space-between;gap:10px;border:0;padding:4px 10px}
  .fc-table tbody td::before{content:attr(data-label);color:#5f6b76;font-size:12px;flex-shrink:0}
  .fc-table .fc-ops{justify-content:flex-start;flex-wrap:wrap}
  .fc-config-head{padding:12px}
  .fc-hero-stats,.fc-config-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fc-savebar{padding:10px 12px;flex-wrap:wrap}
  .fc-savebar>div{width:100%;display:flex;gap:8px}
  .fc-savebar button{flex:1}
  .fc-devs{grid-template-columns:1fr}
  .fc-hot span{width:15px;height:15px}
  .fc-hot em{display:none}
  .fc-viewer iframe{height:min(50vh,380px)}
  .fc-assets{padding:22px 12px 48px}
  .fc-assets-head h1{font-size:21px}
  .fc-assets-head p{font-size:12px}
  .fc-assets-search{flex-wrap:nowrap}
  .fc-assets-query{padding:0 14px}
  .fc-asset-grid{grid-template-columns:1fr;gap:14px}
  .fc-asset-cover{height:186px}
  .fc-asset-body h2{font-size:16.5px}
  .fc-fd-title h1{font-size:21px}
  .fc-fd-tabs{gap:18px}
  .fc-fd-tabs button{font-size:12.5px}
  .fc-fd-cart{padding:8px 13px;font-size:12px}
  .fc-fdv-head{flex-wrap:wrap;padding:14px}
  .fc-fdv-thumb{width:82px;height:82px}
  .fc-fdv-main h1{font-size:18px}
  .fc-fdv-actions{margin-left:0;align-items:flex-start;width:100%;flex-direction:row;align-items:center;gap:12px}
  .fc-fdv-cols{grid-template-columns:1fr}
  .fc-part{flex-wrap:wrap}
  .fc-part-buy{width:100%;justify-content:space-between;border-top:1px solid #f4f7f8;padding-top:9px}
  .fc-parts>header{flex-wrap:wrap}
  .fc-parts>header h2{font-size:15px}
  .fc-cover-preview{width:100%;height:150px}
  .fc-form-grid{grid-template-columns:1fr}
  .fc-remind-row{grid-template-columns:1fr}
  .fc-info-block .fc-info-grid{grid-template-columns:1fr}
  .fc-scene-bar{padding:7px 9px}
  .fc-full-btn{font-size:12px;padding:4px 9px}
  .fc-maint-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .fc-maint-head .fc-maint-new{width:100%}
  .fc-mnt{flex-wrap:wrap;gap:9px;padding:11px 12px}
  .fc-mnt-main{flex:1 1 100%}
  .fc-mnt-due{flex-direction:row;align-items:center;gap:8px;min-width:0}
  .fc-mnt-ops{width:100%;justify-content:flex-start}
  .fc-mnt-btn{flex:1}
}

/* Customer factory workspace — shared navigation and page width. */
@font-face{font-family:FactoryInter;src:local('Inter'),local('Arial');font-display:swap}
body[data-page=factory]:has(.fc-workspace){background:#f5f7fa;color:#233044}
body[data-page=factory]:has(.fc-workspace)>.utility,
body[data-page=factory]:has(.fc-workspace)>.masthead,
body[data-page=factory]:has(.fc-workspace)>.nav,
body[data-page=factory]:has(.fc-workspace)>.footer,
body[data-page=factory]:has(.fc-workspace)>#mobile-header,
body[data-page=factory]:has(.fc-workspace)>#mobile-navigation{display:none!important}
body[data-page=factory]:has(.fc-workspace)>#app{width:100%;max-width:none!important;padding:0!important;margin:0!important;min-height:100dvh}
.fc-front:has(.fc-workspace){width:100%;max-width:none;margin:0;padding:0}
.fc-workspace{font-family:FactoryInter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#233044;font-size:13px;min-height:100dvh}
.fc-workspace button{font-family:inherit;line-height:1.4;cursor:pointer}
.fc-workspace button:focus-visible{outline:2px solid #ef7523;outline-offset:3px}
.fc-ws-icon{display:inline-block;width:18px;height:18px;flex-shrink:0;vertical-align:middle;object-fit:contain}
.fc-workspace-top{height:65px;background:#fff;border-bottom:1px solid #e5e9ee}
.fc-workspace-top-inner{display:flex;align-items:center;gap:28px;height:100%;max-width:2100px;margin:0 auto;padding:0 28px}
.fc-workspace-brand{display:flex;align-items:center;flex-shrink:0;padding:0;border:0;background:none}
.fc-workspace-brand>img{display:block;width:155px;height:auto;max-height:53px;object-fit:contain}
.fc-workspace-return{display:flex;align-items:center;gap:6px;padding:0 0 0 23px;border:0;border-left:1px solid #e2e7ed;background:none;white-space:nowrap;font-size:14px;font-weight:600;color:#233044}
.fc-workspace-return .fc-ws-icon{width:15px;height:15px}
.fc-workspace-nav{display:flex;align-items:stretch;gap:25px;height:100%;min-width:0;overflow:auto;scrollbar-width:none}
.fc-workspace-nav::-webkit-scrollbar{display:none}
.fc-workspace-nav>button{position:relative;flex-shrink:0;padding:0 1px;background:none;border:0;color:#5f6b76;font-size:14px;font-weight:500;white-space:nowrap}
.fc-workspace-nav>button:hover,.fc-workspace-nav>button.on{color:#ef7523}
.fc-workspace-nav>button.on:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:#ef7523}
.fc-ws-badge{font-size:12px;background:#fff0e6;color:#ef7523;border-radius:5px;padding:1px 5px;margin-left:5px}
.fc-workspace-content{max-width:2100px;padding:20px 26px 0;margin:0 auto}
.fc-workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 20px}
.fc-workspace-crumb{display:flex;align-items:center;gap:12px;color:#5f6b76;font-size:12px;margin-bottom:10px;line-height:1.5}
.fc-workspace-crumb>button{padding:0;border:0;background:none;font-size:inherit;color:inherit}
.fc-workspace-crumb>span{color:#5f6b76}
.fc-workspace-title{display:flex;align-items:center;gap:13px}
.fc-workspace-title h1{font-size:25px;line-height:1.3;font-weight:650;letter-spacing:-.8px;margin:0;color:#1c2a3c}
.fc-workspace-title>span{padding:3px 7px;font-size:12px;color:#5f6b76;background:#eaf0f5;border:1px solid #e0e7ee;border-radius:4px;letter-spacing:.4px;white-space:nowrap}
.fc-workspace-heading p{font-size:12px;color:#5f6b76;margin:9px 0 0;line-height:1.5}
.fc-workspace-actions{display:flex;align-items:center;gap:22px;align-self:flex-end}
.fc-workspace-factory{display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap}
.fc-workspace-factory .fc-ws-icon{width:16px;height:16px}
.fc-ws-button{height:34px;background:#fff;border:1px solid #dce2e9;border-radius:6px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:500;font-size:12px;white-space:nowrap;color:#233044}
.fc-ws-button:hover{border-color:#f4ad7c;background:#fff9f4}
.fc-ws-button .fc-ws-icon{width:15px;height:15px}
.fc-workspace-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}
.fc-ws-stat{height:85px;background:#fff;border:1px solid #e6ebf0;border-radius:8px;padding:15px 18px;text-align:left;display:flex;align-items:center;gap:14px;box-shadow:0 2px 4px #253b5603;min-width:0;color:#233044}
.fc-ws-stat:hover{border-color:#f5b88e;box-shadow:0 3px 12px #5e41220b}
.fc-ws-stat-icon{width:42px;height:42px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:11px;background:#f0f4f9}
.fc-ws-stat-icon .fc-ws-icon{width:23px;height:23px}
.fc-ws-stat.green .fc-ws-stat-icon{background:#edf8f1}.fc-ws-stat.gray .fc-ws-stat-icon{background:#f1f4f7}.fc-ws-stat.orange .fc-ws-stat-icon{background:#fff5e8}.fc-ws-stat.blue .fc-ws-stat-icon{background:#eef4fa}
.fc-ws-stat.green .fc-ws-stat-icon img{filter:invert(51%) sepia(38%) saturate(634%) hue-rotate(103deg) brightness(96%) contrast(88%)}
.fc-ws-stat.orange .fc-ws-stat-icon img{filter:invert(55%) sepia(90%) saturate(1175%) hue-rotate(350deg) brightness(102%) contrast(93%)}
.fc-ws-stat-data{min-width:0}.fc-ws-stat-data>span{display:block;color:#5f6b76;font-size:12px;white-space:nowrap}
.fc-ws-stat-data strong{font-size:27px;line-height:1.4;font-weight:600;display:block;font-variant-numeric:tabular-nums;letter-spacing:-.7px;color:#233044}
.fc-ws-stat-data small{color:#5f6b76;font-size:12px;margin-left:6px;font-weight:400;letter-spacing:0}
.fc-ws-stat-note{margin-left:auto;font-size:12px;color:#5f6b76;align-self:flex-end;white-space:nowrap}
.fc-ws-stat.green .fc-ws-stat-note{color:#166534}.fc-ws-stat.orange .fc-ws-stat-note,.fc-ws-stat.orange strong{color:#ef7523}
.fc-explorer-frame{width:100%;height:clamp(550px,calc(100dvh - 338px),920px);position:relative;border-radius:10px;overflow:hidden}
.fc-explorer-frame>iframe{width:100%;height:100%;border:0;display:block;background:#fff}
.fc-explorer-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;background:#fff;border:1px solid #dfe5ec;border-radius:10px;color:#5f6b76;font-size:13px;pointer-events:none}
.fc-explorer-loading button{pointer-events:auto}
.fc-workspace-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:12px;color:#5f6b76;padding:15px 0 12px}
.fc-workspace .fc-block{border-color:#e1e7ee;border-radius:10px;padding:24px;background:#fff}
.fc-workspace .fc-devs{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.fc-workspace .fc-info-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.fc-workspace .fc-fdv{max-width:none}
@media(min-width:1700px){.fc-workspace-content{padding:24px 32px 0}.fc-workspace-top-inner{padding:0 32px}.fc-ws-stat{height:94px}.fc-explorer-frame{height:clamp(550px,calc(100dvh - 359px),920px)}}
@media(max-width:1250px){.fc-workspace-top-inner{gap:20px;padding:0 20px}.fc-workspace-nav{gap:18px}.fc-workspace-nav>button{font-size:13px}.fc-workspace-return{font-size:13px;padding-left:16px}.fc-workspace-brand>img{width:140px}.fc-workspace-content{padding:18px 18px 0}.fc-ws-stat-note{display:none}.fc-ws-stat{padding:14px}.fc-workspace-actions{gap:12px}}
@media(max-width:1000px){.fc-workspace-top{height:auto;min-height:65px}.fc-workspace-top-inner{flex-wrap:wrap;gap:0 22px;padding-top:9px}.fc-workspace-brand>img{width:132px;max-height:40px}.fc-workspace-nav{flex-basis:100%;height:48px;margin-top:5px;gap:28px}.fc-workspace-factory{display:none}.fc-workspace .fc-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fc-explorer-frame{height:650px}}
@media(max-width:750px){.fc-workspace-content{padding:15px 12px 0}.fc-workspace-top-inner{padding:8px 14px 0}.fc-workspace-nav{gap:24px;height:45px}.fc-workspace-heading{align-items:flex-start;gap:12px;margin-bottom:16px}.fc-workspace-title h1{font-size:21px}.fc-workspace-title>span{display:none}.fc-workspace-heading p{font-size:12px}.fc-workspace-actions{align-self:flex-end}.fc-workspace-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}.fc-ws-stat{height:76px;padding:10px 12px;gap:8px}.fc-ws-stat-icon{display:none}.fc-ws-stat-data>span{font-size:12px}.fc-ws-stat-data strong{font-size:25px}.fc-ws-stat-data small{font-size:12px}.fc-explorer-frame{height:620px;min-height:0}.fc-workspace-footer{flex-wrap:wrap;gap:6px;font-size:12px}.fc-workspace-footer>span:last-child{display:none}.fc-workspace .fc-block{padding:18px 14px}.fc-workspace .fc-info-grid{grid-template-columns:minmax(0,1fr)}.fc-workspace .fc-devs{grid-template-columns:minmax(0,1fr)}.fc-workspace-crumb{flex-wrap:wrap;font-size:12px;gap:8px}.fc-workspace-heading .fc-ws-button{padding:0 8px;font-size:12px}}

/* Factory ownership, switching, and the shared My factories directory. */
.fc-workspace-actions{flex-direction:column;align-items:flex-end;gap:10px;max-width:52%}
.fc-workspace-ownership{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;font-size:12px;line-height:1.5;color:#52647a}
.fc-ownership-group{font-weight:600;color:#3b4e65}.fc-ownership-separator{color:#5f6b76}.fc-ownership-company{min-width:0;overflow-wrap:anywhere}
.fc-workspace-factory-actions{display:flex;align-items:center;gap:18px;min-width:0}
.fc-factory-switch{display:flex;position:relative;align-items:center;gap:8px;min-width:0;border:1px solid transparent;border-radius:6px;padding:0 3px 0 7px}
.fc-factory-switch:hover,.fc-factory-switch:focus-within{background:#fff;border-color:#dce2e9}
.fc-factory-switch>.fc-ws-icon:first-child{width:16px;height:16px}
.fc-factory-switch>.fc-ws-icon:last-child{position:absolute;right:7px;width:13px;height:13px;pointer-events:none}
.fc-factory-switch select{appearance:none;-webkit-appearance:none;border:0;background:transparent;color:#233044;font:inherit;font-size:12px;padding:7px 24px 7px 0;max-width:270px;text-overflow:ellipsis;cursor:pointer;outline-offset:3px}
.fc-workspace-nav>button:disabled{opacity:.45;cursor:default}
.fc-workspace-nav>button:disabled:hover{color:#5f6b76}
.fc-mine-heading{margin-bottom:22px}.fc-mine-account{display:flex;align-items:center;gap:8px;color:#5f6b76;font-size:12px;max-width:40%;line-height:1.7}
.fc-mine-account>.fc-ws-icon{width:16px;height:16px}.fc-mine-account span{overflow-wrap:anywhere}
.fc-workspace-stats.fc-mine-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:24px}
.fc-mine-stats .fc-ws-stat:hover{border-color:#e6ebf0;box-shadow:0 2px 4px #253b5603}
.fc-mine-directory{min-height:380px;background:#fff;border:1px solid #e1e7ee;border-radius:10px;padding:20px}
.fc-mine-directory-head{display:flex;align-items:center;gap:16px;margin-bottom:22px;flex-wrap:wrap}
.fc-mine-directory-head>div:first-child{display:flex;align-items:baseline;gap:12px;min-width:140px;margin-right:auto}
.fc-mine-directory-head h2{font-size:16px;font-weight:600;color:#233044;margin:0;line-height:1.5}
.fc-mine-directory-head>div>span{font-size:12px;color:#5f6b76;white-space:nowrap}
.fc-mine-search{display:flex;align-items:center;gap:9px;height:36px;width:min(350px,100%);border:1px solid #e0e6ed;border-radius:6px;padding-left:11px;background:#fafbfd}
.fc-mine-search>.fc-ws-icon{width:15px;height:15px}.fc-mine-search input{min-width:0;flex:1;width:100%;padding:0;font:inherit;font-size:12px;border:0;background:transparent;color:#3c4d63;outline:none}
.fc-mine-search input::placeholder{color:#5f6b76}.fc-mine-search:focus-within{border-color:#ecac7f}
.fc-mine-search>button{border:0;border-left:1px solid #e4e9ef;padding:0 13px;align-self:stretch;background:#fff;color:#ef7523;font-size:12px;border-radius:0 6px 6px 0;white-space:nowrap}
.fc-mine-filters{display:flex;align-items:center;gap:8px}.fc-mine-filters select{font:inherit;font-size:12px;color:#5f6b76;border:1px solid #e1e7ee;background:#fff;padding:8px 10px;border-radius:6px;max-width:190px;height:36px}
.fc-mine-filters button{font-size:12px;color:#ef7523;padding:7px;border:0;background:none}
.fc-mine-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.fc-mine-card{display:grid;grid-template-columns:minmax(150px,36%) minmax(0,1fr);border:1px solid #e2e8ef;border-radius:10px;overflow:hidden;background:#fff;min-width:0;transition:border-color .18s,box-shadow .18s}
.fc-mine-card:hover{border-color:#edc5a8;box-shadow:0 7px 22px #203a5310}
.fc-mine-cover{position:relative;border:0;border-right:1px solid #edf1f5;background:#f1f5f9;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;padding:24px 14px;min-height:270px;color:#5f6b76;overflow:hidden;width:100%}
.fc-mine-cover.has-image{padding:0}.fc-mine-cover>img{display:block;width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.fc-mine-cover-icon>.fc-ws-icon{width:54px;height:54px;opacity:.75}.fc-mine-cover-name{font-size:13px;font-weight:500;line-height:1.8;text-align:center;color:#5f6b76}
.fc-mine-cover-badge{position:absolute;top:12px;left:12px;background:#ffffffed;border:1px solid #e8edf3;color:#5f6b76;padding:4px 7px;border-radius:5px;font-size:12px;line-height:1.4}
.fc-mine-card-content{padding:20px;min-width:0;display:flex;flex-direction:column}
.fc-mine-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#5f6b76;letter-spacing:.4px;margin-bottom:12px}
.fc-mine-status{display:inline-flex;align-items:center;gap:5px;color:#166534;letter-spacing:0;white-space:nowrap}
.fc-mine-status:before{content:"";width:5px;height:5px;border-radius:50%;background:#42b385}.fc-mine-status.inactive{color:#5f6b76}.fc-mine-status.inactive:before{background:#a9b4c0}
.fc-mine-company{display:flex;align-items:center;gap:6px;color:#5f6b76;font-size:12px;line-height:1.5;white-space:nowrap;overflow:hidden;margin-bottom:7px;min-height:15px}
.fc-mine-company .fc-ownership-group,.fc-mine-company .fc-ownership-company{overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;font-weight:400}
.fc-mine-company .fc-ownership-group{flex:0 1 auto;max-width:45%;color:#5f6b76}.fc-mine-company .fc-ownership-company{flex:1}
.fc-mine-card-content h2{font-size:20px;font-weight:600;line-height:1.5;margin:0 0 6px;letter-spacing:-.3px;overflow-wrap:anywhere;color:#233044}
.fc-mine-location{display:flex;align-items:center;gap:6px;font-size:12px;line-height:1.5;color:#5f6b76;margin:0 0 20px}.fc-mine-location>.fc-ws-icon{width:13px;height:13px;opacity:.8}
.fc-mine-card-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:14px 0;margin-top:auto;border-top:1px solid #edf1f6;border-bottom:1px solid #edf1f6;gap:8px}
.fc-mine-card-stats>div{display:flex;flex-direction:column;gap:3px}.fc-mine-card-stats strong{font-size:21px;font-weight:550;line-height:1.3;color:#35475d;font-variant-numeric:tabular-nums}.fc-mine-card-stats span{font-size:12px;color:#5f6b76;line-height:1.5}.fc-mine-card-stats .has-alerts strong{color:#ef7523}
.fc-mine-card-actions{display:flex;align-items:center;gap:13px;padding-top:15px;flex-wrap:wrap}
.fc-mine-card-actions>button{border:0;background:none;color:#5f6b76;padding:4px 0;font-size:12px;white-space:nowrap}
.fc-mine-card-actions>button:hover{color:#ef7523}
.fc-mine-card-actions>button.fc-mine-enter{display:flex;align-items:center;justify-content:center;gap:10px;padding:8px 12px;border-radius:6px;background:#ef7523;color:#fff;margin-right:auto;font-size:12px;font-weight:500}
.fc-mine-enter>.fc-ws-icon{width:14px;height:14px;filter:brightness(0) invert(1)}
.fc-mine-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;min-height:300px;padding:30px 16px;color:#5f6b76;text-align:center}
.fc-mine-empty>.fc-ws-icon{width:39px;height:39px;opacity:.6}.fc-mine-empty h2{font-size:17px;font-weight:500;color:#5f6b76;margin:0}.fc-mine-empty p{font-size:12px;line-height:1.8;margin:0;max-width:440px}

/* Group customers: existing factories, one parent group per factory. */
.fc-group-panel .fc-hero-stats{grid-template-columns:repeat(2,minmax(90px,1fr))}
.fc-group-panel .fc-search{padding-left:12px}.fc-group-panel>.fc-toolbar>select{border:1px solid #e1e7ee;background:#fff;padding:8px 10px;border-radius:6px;font-size:12px;color:#5f6b76}
.fcg-factory-tags{display:flex;flex-wrap:wrap;gap:6px;max-width:340px}.fcg-factory-tags>span{background:#f4f7fa;border:1px solid #e5ebf1;border-radius:4px;font-size:12px;padding:3px 6px;color:#5f6b76}.fcg-factory-tags>em{font-style:normal;color:#5f6b76;font-size:12px}
dialog:has(.fc-group-editor){width:min(820px,calc(100vw - 32px));max-width:820px}
.fc-group-editor .mg-form-grid{margin-bottom:16px}.fc-group-editor textarea{width:100%;border:1px solid #dce3eb;padding:9px 11px;border-radius:6px;font:inherit;resize:vertical}
.fcg-pick-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 12px}.fcg-pick-head h3{font-size:14px;margin:0 0 5px;color:#34475d;font-weight:600}.fcg-pick-head p{font-size:12px;color:#5f6b76;line-height:1.8;margin:0}.fcg-pick-head>span{font-size:12px;color:#ef7523;white-space:nowrap}
.fcg-pick-search{display:flex;align-items:center;gap:8px;height:36px;padding:0 10px;border:1px solid #e0e7ee;background:#f9fbfd;border-radius:6px;margin-bottom:10px}.fcg-pick-search>.fc-ws-icon{width:15px;height:15px}.fcg-pick-search input{flex:1;min-width:0;border:0;outline:none;background:transparent;font:inherit;font-size:12px}
.fcg-pick-list{border:1px solid #e4eaf1;border-radius:7px;max-height:315px;overflow:auto}.fcg-pick-row{display:flex;align-items:center;gap:12px;padding:13px 14px;border-bottom:1px solid #edf1f5;cursor:pointer}.fcg-pick-row:last-child{border-bottom:0}.fcg-pick-row.selected{background:#fff8f1}.fcg-pick-row.unavailable{background:#fafbfd;color:#5f6b76;cursor:default}.fcg-pick-row[hidden]{display:none!important}
.fcg-pick-row input{width:15px;height:15px;accent-color:#ef7523;margin:0;flex-shrink:0}.fcg-pick-icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;background:#f1f5f9;border-radius:7px;flex-shrink:0}.fcg-pick-icon>.fc-ws-icon{width:18px;height:18px}
.fcg-pick-row>span:not(.fcg-pick-icon){min-width:0;flex:1}.fcg-pick-row b{display:block;font-size:12px;font-weight:500;color:#3c4e63;line-height:1.6}.fcg-pick-row small{display:block;font-size:12px;color:#5f6b76;margin-top:3px;line-height:1.6}.fcg-pick-row em{font-style:normal;color:#5f6b76;font-size:12px;line-height:1.6;max-width:160px}.fcg-pick-row.selected em{color:#ef7523}
.fcg-pick-empty{font-size:12px;color:#5f6b76;text-align:center;padding:14px;margin:0}.fcg-active{margin-top:16px;font-size:12px;color:#5f6b76}.fcg-readonly{display:block;border:1px solid #e6ebf1;background:#f8fafc;color:#5f6b76;border-radius:6px;padding:9px 11px;font-size:12px;min-height:37px}
@media(min-width:1850px){.fc-mine-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1250px){.fc-mine-card{grid-template-columns:1fr}.fc-mine-cover{min-height:190px;border-right:0;border-bottom:1px solid #edf1f5}.fc-mine-card-content{padding:18px}.fc-mine-card-content h2{font-size:19px}.fc-mine-account{max-width:35%}.fc-workspace-factory-actions{gap:9px}}
@media(max-width:850px){.fc-workspace-actions{max-width:50%}.fc-workspace-ownership{font-size:12px;gap:6px}.fc-factory-switch select{max-width:180px}.fc-mine-directory-head{gap:12px}.fc-mine-search{flex:1;min-width:240px}.fc-mine-filters{margin-left:auto}.fc-mine-grid{gap:14px}.fc-mine-directory{padding:16px}}
@media(max-width:750px){.fc-workspace-heading{flex-wrap:wrap}.fc-workspace-actions{max-width:100%;width:100%;align-items:flex-start;gap:7px}.fc-workspace-ownership{justify-content:flex-start}.fc-workspace-factory-actions{width:100%;justify-content:space-between}.fc-factory-switch{padding-left:0}.fc-factory-switch select{max-width:220px}.fc-mine-account{max-width:100%;font-size:12px}.fc-workspace-stats.fc-mine-stats{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:16px}.fc-mine-stats .fc-ws-stat-icon{display:flex;width:34px;height:34px}.fc-mine-stats .fc-ws-stat-icon>.fc-ws-icon{width:20px;height:20px}.fc-mine-grid{grid-template-columns:minmax(0,1fr)}.fc-mine-directory{padding:14px}.fc-mine-search{flex-basis:100%;width:100%;min-width:0;order:2}.fc-mine-filters{flex-wrap:wrap;max-width:100%}.fc-mine-filters select{max-width:155px}.fc-mine-card{grid-template-columns:1fr}.fc-mine-cover{min-height:190px}.fc-mine-card-stats{padding:13px 0}.fc-mine-company{font-size:12px}.fc-group-panel .fc-hero{flex-direction:column}.fc-group-panel .fc-hero-stats{width:100%}.fcg-pick-row{gap:9px;padding:11px}.fcg-pick-row em{max-width:90px;font-size:12px}.fcg-pick-icon{display:none}}
.fcg-company-tree{display:flex;flex-direction:column;gap:10px;max-width:440px}.fcg-company-tree>div{padding-left:12px;border-left:2px solid #edf0f4}.fcg-company-tree b{font-size:12px}.fcg-company-tree small{line-height:1.7}
.fc-equipment-browser{display:grid;grid-template-columns:210px minmax(0,1fr);border:1px solid #e0e6ed;border-radius:12px;background:#fff;overflow:hidden;color:#253247}
.fc-equipment-stages{border-right:1px solid #e5eaf0;background:#fbfcfe;display:flex;flex-direction:column;min-width:0}.fc-equipment-stages>header{display:flex;align-items:center;gap:10px;padding:22px 18px;border-bottom:1px solid #e8edf2}.fc-equipment-stages h2{font-size:14px;margin:0 0 5px}.fc-equipment-stages header span{font-size:12px;color:#5f6b76}.fc-equipment-stages nav{padding:12px 10px;max-height:515px;overflow:auto}.fc-equipment-stages nav button{display:flex;justify-content:space-between;align-items:center;gap:8px;text-align:left;width:100%;padding:12px 10px;border:0;border-radius:6px;background:none;color:#5f6b76;font-size:12px;margin-bottom:3px}.fc-equipment-stages nav button>span{display:flex;align-items:center;gap:7px;min-width:0;overflow-wrap:anywhere}.fc-equipment-stages nav small{font-size:12px;opacity:.7}.fc-equipment-stages nav b{font-size:12px;font-weight:500;color:#5f6b76}.fc-equipment-stages nav button:hover{background:#f0f3f7}.fc-equipment-stages nav button.on{background:#fff0e5;color:#ef7523;font-weight:600}.fc-equipment-stages nav button.on b{color:#ef7523}.fc-equipment-stages>footer{display:flex;flex-direction:column;gap:9px;border-top:1px solid #e8edf2;padding:17px 20px;margin-top:auto;font-size:12px;color:#5f6b76}
.fc-equipment-main{min-width:0}.fc-register-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 24px 16px}.fc-register-eyebrow{font-size:12px;letter-spacing:1px;color:#5f6b76}.fc-register-heading h2{font-size:20px;margin:8px 0;color:#263347}.fc-register-heading h2 small{font-size:12px;font-weight:400;color:#5f6b76;margin-left:12px}.fc-register-heading p{font-size:12px;color:#5f6b76;margin:0;line-height:1.7}.fc-register-alert{display:flex;gap:6px;align-items:center;padding:8px 11px;white-space:nowrap;border:1px solid #ffe1c8;border-radius:6px;background:#fff8f1;color:#ef7523;font-size:12px}
.fc-register-toolbar{padding:0 24px 18px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.fc-register-search{display:flex;align-items:center;gap:8px;border:1px solid #e3e8ef;border-radius:6px;min-width:220px;flex:1;background:#fafbfd;height:38px;padding-left:10px}.fc-register-search .fc-ws-icon{width:15px;height:15px}.fc-register-search input{border:0;outline:none;background:none;min-width:0;width:100%;font-size:12px;color:#34445a}.fc-register-search button{height:100%;padding:0 14px;background:#fff;border:0;border-left:1px solid #e3e8ef;color:#ef7523;font-size:12px;border-radius:0 6px 6px 0}.fc-register-toolbar>select{height:38px;border:1px solid #e3e8ef;border-radius:6px;background:#fff;padding:0 10px;color:#5f6b76;font-size:12px;max-width:160px}.fc-register-reset{border:0;background:none;font-size:12px;color:#ef7523;padding:8px}
.fc-register-table-wrap{max-height:430px;overflow:auto;border-top:1px solid #ebeff3;border-bottom:1px solid #ebeff3}.fc-register-table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px;min-width:800px}.fc-register-table th{text-align:left;position:sticky;top:0;z-index:1;background:#f8fafc;color:#5f6b76;font-weight:500;font-size:12px;padding:12px 16px;border-bottom:1px solid #e9eef4;white-space:nowrap}.fc-register-table th:first-child,.fc-register-table td:first-child{padding-left:24px}.fc-register-table th:last-child,.fc-register-table td:last-child{padding-right:24px}.fc-register-table td{padding:13px 16px;border-bottom:1px solid #edf0f5;vertical-align:middle;color:#63758a}.fc-register-table tr:last-child td{border-bottom:0}.fc-register-table tr:hover td{background:#fdfaf7}.fc-register-table td:first-child{width:30%;min-width:240px}.fc-register-table td>small{display:block;margin-top:6px;font-size:12px;line-height:1.6;color:#5f6b76}.fc-register-name{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:none;border:0;text-align:left;padding:0;color:#27354a}.fc-register-name b{font-size:12px;font-weight:600}.fc-process-code{font-size:12px;color:#ef7523;background:#fff4e9;border:1px solid #f8e6d5;border-radius:4px;padding:3px 5px;white-space:nowrap}.fc-sku-link{border:0;padding:0;background:none;color:#355b83;font-size:12px;text-align:left}.fc-sku-link:hover{text-decoration:underline}.fc-register-table .fc-rebuy-status{color:#166534}.fc-register-unlinked{font-size:12px;color:#5f6b76}.fc-register-ops{display:flex;align-items:center;gap:8px;white-space:nowrap}.fc-register-ops .fc-ws-button{font-size:12px;padding:6px 8px}.fc-register-rebuy{border:1px solid #f38a41;background:#f58b41;color:#fff;border-radius:5px;padding:6px 12px;font-size:12px}.fc-register-rebuy:hover{background:#e77b31}.fc-register-row .fc-run-tag{font-size:12px;padding:4px 7px;white-space:nowrap}.fc-register-pager{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:14px 24px;font-size:12px;color:#5f6b76}.fc-register-pager>div{display:flex;align-items:center;gap:10px}.fc-register-pager label{display:flex;align-items:center;gap:6px;white-space:nowrap}.fc-register-pager select{border:1px solid #e4e9ef;border-radius:4px;background:#fff;padding:5px;font-size:12px;color:#5f6b76}.fc-register-pager button{border:1px solid #e3e8ef;border-radius:4px;padding:6px 9px;background:#fff;color:#5f6b76;font-size:12px}.fc-register-pager button:disabled{color:#355b83;cursor:default}.fc-register-empty{text-align:center;padding:70px 20px;color:#5f6b76}.fc-register-empty>.fc-ws-icon{width:32px;height:32px;opacity:.65}.fc-register-empty h3{font-size:16px;color:#63758a;font-weight:500}.fc-register-empty p{font-size:12px;margin-bottom:20px;line-height:1.8}
.fc-detail-rebuy-qty{display:flex;align-items:center;justify-content:flex-end;gap:10px;font-size:12px;color:#5f6b76}.fc-detail-rebuy-qty input{width:65px;border:1px solid #dfe6ed;border-radius:5px;padding:8px;font:inherit;color:#3d4e65}.fc-fdv-actions>b small{font-size:12px;font-weight:400;color:#5f6b76}.fc-fdv-gear .fc-ws-icon{width:44px;height:44px;opacity:.55}
.fc-equipment-edit-title{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}.fc-equipment-edit-title h3{margin-bottom:6px}.fc-equipment-edit-title .fc-tip{margin:0}.fc-equipment-edit-title>button{white-space:nowrap;font-size:12px}.fc-edit-device-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.fc-admin-device-scroll{max-height:530px;overflow:auto}.fc-admin-device-scroll th{position:sticky;top:0;z-index:1}.fc-admin-device-pager,.fc-contract-pages{display:flex;align-items:center;justify-content:flex-end;gap:10px;font-size:12px;color:#5f6b76;margin-top:14px}.fc-admin-device-pager>span:first-child,.fc-contract-pages>span:first-child{margin-right:auto}.fc-admin-device-pager button,.fc-contract-pages button{border:1px solid #e0e6ec;border-radius:4px;background:#fff;padding:6px 10px;color:#5f6b76;font-size:12px}.fc-admin-device-pager button:disabled,.fc-contract-pages button:disabled{opacity:.4}
#detail:has(.fc-contract-import){width:min(1100px,calc(100vw - 48px));max-width:1100px}.fc-contract-import{color:#3d4e65}.fc-contract-intro{font-size:12px;color:#5f6b76;line-height:1.9;margin:0 0 22px}.fc-contract-source{display:flex;gap:14px;align-items:center}.fc-contract-upload{display:flex;gap:14px;align-items:center;border:1px dashed #e0c5ad;border-radius:7px;background:#fffaf6;padding:17px;flex:1;position:relative;cursor:pointer;min-width:0}.fc-contract-upload input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.fc-contract-upload b,.fc-contract-upload small{display:block}.fc-contract-upload b{font-size:13px}.fc-contract-upload small{font-size:12px;color:#5f6b76;margin-top:6px;overflow-wrap:anywhere}.fc-contract-paste{font-size:12px;color:#5f6b76;margin:18px 0}.fc-contract-paste summary{cursor:pointer}.fc-contract-paste textarea{display:block;box-sizing:border-box;width:100%;border:1px solid #dfe6ed;border-radius:6px;padding:10px;margin:12px 0;font-size:12px;resize:vertical}.fc-contract-options{display:grid;grid-template-columns:1fr .65fr 1.2fr 1.2fr;gap:14px;padding-top:17px;border-top:1px solid #edf0f4}.fc-contract-options label,.fc-contract-mapping label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#5f6b76;min-width:0}.fc-contract-options select,.fc-contract-options input,.fc-contract-mapping select{height:36px;border:1px solid #dfe6ed;border-radius:5px;padding:7px;background:#fff;color:#52667e;font-size:12px;width:100%;box-sizing:border-box}.fc-contract-mapping{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:20px 0}.fc-contract-check{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;background:#f7f9fb;border-radius:6px}.fc-contract-check p{font-size:12px;color:#5f6b76;line-height:1.9;margin:0;max-width:75%}.fc-contract-check button{white-space:nowrap;font-size:12px}.fc-contract-error{padding:12px;background:#fff2eb;border:1px solid #f7d5bd;border-radius:6px;color:#ef7523;font-size:12px;line-height:1.8}.fc-contract-totals{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:20px}.fc-contract-totals>span{background:#f7f9fb;border:1px solid #e8edf2;border-radius:6px;padding:12px;font-size:12px;color:#5f6b76}.fc-contract-totals b{display:block;font-size:22px;color:#374960;margin-top:7px;font-weight:500}.fc-contract-valid{font-size:12px;color:#166534;margin:16px 0}.fc-contract-errors{padding:13px 16px;background:#fff6f0;color:#ef7523;font-size:12px;line-height:1.9;margin:15px 0;border-radius:5px}.fc-contract-errors ul{margin:7px 0 0;max-height:160px;overflow:auto;padding-left:20px}.fc-contract-preview-table{max-height:280px;overflow:auto;border:1px solid #e5eaf0;border-radius:6px}.fc-contract-preview-table th{position:sticky;top:0;z-index:1}.fc-contract-preview-table .fc-table{min-width:750px}.fc-contract-save-note{margin-right:auto;max-width:50%;font-size:12px;color:#5f6b76;line-height:1.8}.fc-contract-import .mg-form-actions{display:flex;align-items:center;gap:12px}
@media(max-width:1100px){.fc-register-heading{padding:18px}.fc-register-toolbar{padding:0 18px 16px}.fc-register-pager{padding:14px 18px}.fc-equipment-browser{grid-template-columns:180px minmax(0,1fr)}.fc-contract-mapping{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.fc-equipment-browser{display:block}.fc-equipment-stages{border-right:0;border-bottom:1px solid #e5eaf0}.fc-equipment-stages>header{padding:16px}.fc-equipment-stages nav{display:flex;gap:5px;overflow:auto;padding:5px 12px 12px;max-height:none}.fc-equipment-stages nav button{width:auto;flex-shrink:0;padding:9px 12px;gap:12px;margin:0}.fc-equipment-stages nav>button>span{white-space:nowrap}.fc-equipment-stages>footer{display:none}.fc-register-heading{padding:18px 16px}.fc-register-heading h2{font-size:18px}.fc-register-heading p{font-size:12px;max-width:100%}.fc-register-toolbar{padding:0 16px 16px;gap:8px}.fc-register-search{flex-basis:100%;height:40px}.fc-register-toolbar>select{max-width:none;flex:1;font-size:12px}.fc-register-table-wrap{max-height:590px}.fc-register-table,.fc-register-table tbody{display:block;min-width:0}.fc-register-table thead{display:none}.fc-register-table tr{display:grid;grid-template-columns:1fr 1fr;padding:16px;gap:12px;border-bottom:1px solid #e9eef4}.fc-register-table td{display:block;padding:0!important;border:0;min-width:0;font-size:12px}.fc-register-table td:first-child{grid-column:1/-1;width:100%;min-width:0}.fc-register-table td:last-child{grid-column:1/-1}.fc-register-table td:not(:first-child)::before{content:attr(data-label);display:block;font-size:12px;color:#5f6b76;margin-bottom:7px}.fc-register-table td:last-child::before{display:none}.fc-register-name b{font-size:13px}.fc-register-table td>small{margin-top:5px}.fc-register-ops{justify-content:flex-end}.fc-register-pager{align-items:flex-start;flex-direction:column;padding:14px 16px;gap:12px}.fc-register-pager>div{width:100%;gap:8px;justify-content:space-between}.fc-register-alert{max-width:92px;font-size:12px;padding:7px}.fc-register-alert .fc-ws-icon{display:none}.fc-equipment-edit-title{align-items:flex-start;flex-direction:column}.fc-admin-device-pager{flex-wrap:wrap}.fc-contract-source{align-items:stretch;flex-direction:column}.fc-contract-options,.fc-contract-mapping{grid-template-columns:repeat(2,minmax(0,1fr))}.fc-contract-totals{grid-template-columns:repeat(3,1fr)}.fc-contract-check{flex-direction:column;align-items:flex-start}.fc-contract-check p{max-width:none}.fc-contract-import .mg-form-actions{flex-wrap:wrap}.fc-contract-save-note{max-width:100%;flex-basis:100%}.fc-contract-import .mg-form-actions button{flex:1}#detail:has(.fc-contract-import){width:calc(100vw - 28px);padding:18px;box-sizing:border-box}.fc-detail-rebuy-qty{justify-content:flex-start}}
.fc-register-search button{white-space:nowrap;flex-shrink:0}
#detail:has(.fc-contract-import) .dialog-head{position:sticky;top:-28px;z-index:4;background:#fff;padding:12px 0;margin-top:-12px}
.fc-contract-import .mg-form-actions{position:sticky;bottom:-28px;background:#fff;padding:14px 0 12px;z-index:3;border-top:1px solid #edf0f4}
@media(max-width:760px){#detail:has(.fc-contract-import) .dialog-head{top:-18px}.fc-contract-import .mg-form-actions{bottom:-18px}}

.fc-projects { margin: 0 0 20px; padding: 20px; border: 1px solid #e6e9ec; border-radius: 8px; background: #fff; }
.fc-projects>header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.fc-projects h2 { margin:0; font-size:17px; }
.fc-projects>header>a { color:#ef7523; font-size:13px; padding:10px 0; }
.fc-projects-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.fc-project-item { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px; border:1px solid #e6e9ec; border-radius:7px; text-decoration:none; color:#2e3435; min-width:0; }
.fc-project-item b { display:block; overflow-wrap:anywhere; }
.fc-project-item small { display:block; margin-top:6px; color:#5f6b76; font-size:12px; }
.fc-project-item>span { flex-shrink:0; text-align:right; font-size:13px; }
.fc-projects>p { margin:0; font-size:13px; color:#68757e; line-height:1.7; }
@media(max-width:640px) { .fc-projects{padding:15px;} .fc-projects-list{grid-template-columns:minmax(0,1fr);} .fc-project-item{align-items:flex-start;} }

.fc-batch-entry{padding:13px 14px;border:1px solid #e4e8ed;border-radius:7px;margin:12px 0;overflow-wrap:anywhere}.fc-batch-entry p{font-size:12px;line-height:1.7;margin:8px 0}.fc-batch-entry small{color:#5f6b76}
.fc-project-actions{display:flex;flex-wrap:wrap;gap:12px 18px;align-items:center}.fc-project-actions a{display:inline-flex;align-items:center;min-height:44px}
@media(max-width:640px){.fc-projects>header{align-items:flex-start;flex-wrap:wrap}.fc-project-actions{gap:6px 14px}}
.fo-workbench,.fo-operations{margin:20px 0}.fo-workbench>header,.fo-operations>header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:18px}.fo-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.fo-stats>div{padding:16px;border:1px solid #e7e9ed;border-radius:8px}.fo-stats span{display:block;color:#687582;font-size:13px}.fo-stats strong{display:block;font-size:26px;margin-top:8px}.fo-workbench-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px}.fo-workbench-columns section{min-width:0}.fo-workbench-columns a,.fo-workbench-columns button{display:block;padding:12px 0;line-height:1.6;text-align:left;white-space:normal;overflow-wrap:anywhere;color:#ef7523}.fo-workbench-columns h3,.fo-operations h3{margin:18px 0 12px}.fo-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.fo-actions button{min-height:44px}.fo-records{display:grid;gap:12px}.fo-records article{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;border:1px solid #e3e7eb;border-radius:8px;padding:16px}.fo-records article>div{min-width:0}.fo-records p,.fo-device-history p{line-height:1.8;margin:8px 0;overflow-wrap:anywhere}.fo-records .fo-actions{flex-shrink:0}.fo-form{display:grid;gap:16px}.fo-form label{display:grid;gap:7px}.fo-form input,.fo-form select,.fo-form textarea{width:100%;min-height:44px}.fo-form input[type=checkbox]{width:18px;min-height:18px}.fo-form textarea{min-height:90px}.fo-form .form-error{color:#b32e25}.fo-device-history{padding:18px 0;border-top:1px solid #eceef1;border-bottom:1px solid #eceef1;margin:20px 0}
@media(max-width:800px){.fo-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.fo-workbench-columns{grid-template-columns:1fr;gap:12px}.fo-records article{display:block}.fo-operations>header label{display:grid;gap:8px;width:100%}.fo-operations select{max-width:100%;min-height:44px}}@media(max-width:440px){.fo-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.fo-stats>div{padding:12px}.fo-form input,.fo-form select,.fo-form textarea{font-size:16px}.fo-workbench>header h2{font-size:20px}}

/* 工厂工作台：模型对象与台账绑定检查 */
.fc-binding-check{margin:-8px 0 18px;font-size:12px;color:#5f6b76;line-height:1.7}

/* 工厂工作台：统计卡进入队列 + 全厂待办队列 */
.fo-stats>button{display:flex;flex-direction:column;align-items:flex-start;padding:16px;border:1px solid #e7e9ed;border-radius:8px;background:#fff;text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.fo-stats>button:hover{border-color:#f5b88e;box-shadow:0 3px 12px #5e41220b}
.fo-stats>button span{display:block;color:#687582;font-size:13px}
.fo-stats>button strong{display:block;font-size:26px;margin-top:6px;color:#233044}
.fo-stats>button i{font-style:normal;font-size:12px;color:#5f6b76;margin-top:4px}
.fo-stats>button.is-alert strong{color:#ef7523}
.fo-queue-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}
.fo-queue-tabs>button{border:1px solid #e7e9ed;background:#fff;border-radius:999px;padding:5px 11px;font-size:12px;color:#5c666e;cursor:pointer}
.fo-queue-tabs>button.on{border-color:#f5b88e;background:#fff4e9;color:#ef7523}
.fo-queue-tabs>button b{font-weight:600;margin-left:3px}
.fo-queue{border:1px solid #eef1f4;border-radius:8px;background:#fbfcfd;padding:12px 14px;margin:10px 0 14px}
.fo-queue>header{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.fo-queue>header h3{margin:0;font-size:13px}
.fo-queue>header h3 span{font-weight:400;color:#5f6b76;font-size:12px;margin-left:6px}
.fo-queue>header .text-btn{margin-left:auto;font-size:12px}
.fo-queue-hint{font-size:12px;color:#5f6b76}

/* PR3 factory overview, archive navigation and independent scene view. */
.fc-quantity-summary{margin:-5px 0 20px;color:#657382;font-size:13px;line-height:1.7}
.fc-pr3-workbench .fo-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.fo-stat{display:block;padding:16px;border:1px solid #e3e7ed;border-radius:8px;text-decoration:none;color:#25344a;background:#fff}
.fo-stat:hover{border-color:#edb38b;background:#fffaf6}.fo-stat small{display:block;margin-top:8px;color:#69788b}
.fc-pr3-workbench .fo-workbench-columns{margin-top:20px;gap:28px}.fc-pr3-workbench h2{margin:0 0 8px;font-size:17px}
.fc-pr3-workbench .fo-workbench-columns p{color:#69788b;font-size:13px;line-height:1.7}
.fc-workspace .fc-ws-button.primary{background:#ef7523;color:#fff;border-color:#ef7523}
.fc-workspace .fc-ws-button.primary:hover{background:#d9641a}.fc-workspace .fc-ws-button.primary .fc-ws-icon{filter:brightness(0) invert(1)}
.fc-scene-preview{border:1px solid #dfe5ed;border-radius:10px;background:#fff;overflow:hidden;margin:20px 0}
.fc-scene-preview>header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 20px;border-bottom:1px solid #e8ecf1}
.fc-scene-preview>header>div{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.fc-scene-preview h2{font-size:17px;margin:0}
.fc-scene-modes{display:flex;gap:4px;padding:4px;border:1px solid #e1e7ee;border-radius:7px;background:#f7f8fa}
.fc-scene-modes button{border:0;background:none;padding:8px 12px;color:#67778b;border-radius:4px;font:inherit;font-size:13px;min-height:36px}
.fc-scene-modes button[aria-pressed=true]{background:#fff;color:#ef7523;box-shadow:0 1px 5px #23344a10}
.fc-binding-check{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;margin:0;padding:12px 20px;border-bottom:1px solid #e9edf2;color:#627184;font-size:12px;line-height:1.7}
.fc-binding-check button{border:0;background:#f5f7fa;padding:8px 10px;border-radius:5px;color:#465a70;font:inherit;min-height:36px}.fc-binding-check button:hover{color:#ef7523;background:#fff3e9}
.fc-explorer-frame{height:620px;min-height:560px;max-height:680px;border:0;border-radius:0}
.fc-scene-preview .fc-scene-box{margin:0;border:0;border-radius:0}.fc-scene-preview .fc-stage-map{height:560px;min-height:0}
.fc-scene-preview .fc-viewer-note,.fc-scene-preview .fc-scene-caption{padding:0 20px}
.fc-scene-mobile-preview{display:none}.fc-scene-files{padding:20px;overflow:auto;max-height:620px;min-height:240px}
body.fc-scene-open{overflow:hidden}
dialog.fc-scene-dialog{position:fixed;inset:0;margin:0;padding:0;width:100vw;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;background:#f7f8fa;overflow:hidden;color:#25344a}
dialog.fc-scene-dialog[open]{display:flex;flex-direction:column}
.fc-scene-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;background:#fff;border-bottom:1px solid #dfe5ed;flex-shrink:0}
.fc-scene-dialog>header h2{font-size:18px;margin:0 0 4px}.fc-scene-dialog>header span{font-size:12px;color:#657382}
.fc-scene-dialog>header button{min-height:44px;border:1px solid #d9e1eb;border-radius:6px;background:#fff;padding:8px 14px;color:#25344a;font:inherit;flex-shrink:0}
.fc-scene-dialog-body{flex:1;min-height:0;overflow:auto}.fc-scene-dialog .fc-explorer-frame{height:100%;min-height:0;max-height:none}.fc-scene-dialog .fc-scene-box,.fc-scene-dialog .fc-stage-map{height:100%;min-height:0;margin:0}.fc-scene-dialog .fc-stage-map img{object-fit:contain}
.fc-scene-dialog .fc-scene-files{max-height:none;height:100%}
.fc-binding-list{display:grid;gap:10px;max-height:60dvh;overflow:auto}.fc-binding-list article{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px;border:1px solid #dfe5ed;border-radius:7px}.fc-binding-list small{display:block;color:#657382;margin-top:7px}
.fc-card-more{position:relative;font-size:12px}.fc-card-more summary{cursor:pointer;min-height:44px;display:flex;align-items:center;padding:0 8px;color:#657382}
.fc-card-more[open]{z-index:2}.fc-card-more a,.fc-card-more button{display:block;min-height:44px;padding:12px;background:#fff;border:1px solid #e3e7ed;white-space:nowrap;text-decoration:none;color:#41556c;font:inherit}
/* 更多菜单绝对定位，展开不撑高卡片（1.83.41） */
.fc-card-more-menu{position:absolute;right:0;top:calc(100% + 4px);z-index:30;min-width:118px;display:flex;flex-direction:column;background:#fff;border:1px solid #e3e7ed;border-radius:8px;box-shadow:0 10px 26px #1f25281f;overflow:hidden}
.fc-card-more-menu a,.fc-card-more-menu button{position:static;display:block;width:100%;min-height:0;padding:9px 14px;border:0;border-bottom:1px solid #f0f3f5;border-radius:0;text-align:left;background:#fff;color:#41556c;font-size:12px;line-height:1.6;white-space:nowrap}
.fc-card-more-menu>:last-child{border-bottom:0}
.fc-card-more-menu a:hover,.fc-card-more-menu button:hover{background:#fff7f0;color:#ef7523}
.fc-mine-card{overflow:visible}
.fc-mine-cover{border-radius:10px 0 0 10px;overflow:hidden}
@media(max-width:1250px){.fc-mine-cover{border-radius:10px 10px 0 0}}
.fc-mine-card-content h2 a{color:inherit;text-decoration:none}.fc-mine-card-content h2 a:hover{color:#ef7523}
.fc-equipment-browser{grid-template-columns:220px minmax(0,1fr)}
.fc-register-name{text-decoration:none}.fc-register-ops a{text-decoration:none;min-height:44px}.fc-register-toolbar{flex-wrap:wrap}
.fc-alert-filter{display:flex;align-items:center;gap:8px;min-height:44px;color:#53667c;font-size:13px;white-space:nowrap}.fc-alert-filter input{width:18px;height:18px;accent-color:#ef7523}
.fc-register-table td{white-space:normal;overflow-wrap:anywhere}.fc-register-table td:nth-child(3){white-space:nowrap}
.fc-device-tabs{display:flex;gap:22px;overflow:auto;border-bottom:1px solid #dfe5ed;margin:20px 0}
.fc-device-tabs a{display:flex;align-items:center;min-height:48px;flex-shrink:0;border-bottom:3px solid transparent;text-decoration:none;color:#637287;font-size:14px;font-weight:600}
.fc-device-tabs a[aria-current=page]{color:#ef7523;border-bottom-color:#ef7523}
.fc-device-panel{display:grid;gap:16px}.fc-device-panel>.fc-fdv-card{min-width:0}.fc-device-panel .fc-fdv-card>h2{font-size:17px;color:#25344a}.fc-device-panel p{font-size:13px;line-height:1.8;color:#53667c}
.fc-fdv-head{align-items:flex-start}.fc-fdv-actions{flex-wrap:wrap}.fc-fdv-hint{color:#69788b;font-size:12px}.fc-fdv-spec{font-size:13px;color:#53667c;line-height:1.8}
.fc-group-notice{display:inline-block;background:#fff3e9;color:#ef7523;padding:5px 9px;border-radius:5px;margin:0 0 8px;font-size:12px}
.fc-device-panel .fc-fdv-dl{display:grid;grid-template-columns:1fr 1fr;gap:0 32px}.fc-device-panel .fc-fdv-dl div{font-size:13px;min-width:0}.fc-device-panel .fc-fdv-dl dt{color:#69788b}.fc-document-links{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:1000px){.fc-ws-stat{padding:12px}.fc-ws-stat-icon{display:none}.fc-equipment-browser{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:767px){
  .fc-workspace-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.fc-workspace-stats>.fc-ws-stat:last-child{grid-column:1/-1}.fc-workspace-stats.fc-mine-stats>.fc-ws-stat:last-child{grid-column:auto}
  .fc-ws-stat{height:84px}.fc-ws-stat-data>span{font-size:12px}.fc-ws-stat-data strong{font-size:28px}
  .fc-quantity-summary{font-size:12px}.fc-pr3-workbench .fo-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.fo-stat{padding:12px}.fo-stat span,.fo-stat small{font-size:12px}
  .fc-pr3-workbench .fo-workbench-columns{grid-template-columns:1fr;gap:20px}.fc-pr3-workbench .fo-workbench-columns a,.fc-pr3-workbench .fo-workbench-columns button{min-height:44px}
  .fc-scene-preview>header{padding:14px}.fc-scene-preview>header>div{gap:10px}.fc-scene-preview>header>button{min-height:44px}
  .fc-binding-check{padding:10px 14px;gap:6px 10px}.fc-binding-check button{min-height:44px}.fc-scene-desktop{display:none}
  .fc-scene-mobile-preview{display:flex;height:250px;position:relative;align-items:center;justify-content:center;background:#edf2f6;overflow:hidden}
  .fc-scene-mobile-preview>img{position:absolute;width:100%;height:100%;object-fit:cover;filter:brightness(.72)}
  .fc-scene-mobile-preview>div{display:flex;flex-direction:column;align-items:center;gap:12px;padding-bottom:55px;color:#53667c}.fc-scene-mobile-preview .fc-ws-icon{width:42px;height:42px}
  .fc-scene-mobile-preview>button{position:absolute;bottom:24px;min-height:44px;max-width:90%;padding:10px 20px}
  .fc-scene-dialog>header{padding:10px 12px}.fc-scene-dialog>header h2{font-size:16px;overflow-wrap:anywhere}.fc-scene-dialog>header span{font-size:12px}.fc-scene-dialog-body{overflow:hidden}
  .fc-scene-dialog .fc-scene-box{height:calc(100% - 55px)}.fc-scene-dialog .fc-viewer-note{display:none}
  .fc-equipment-browser{display:block}.fc-register-toolbar>select{flex-basis:calc(50% - 8px);min-height:44px;min-width:0}.fc-register-toolbar input{font-size:16px}
  .fc-register-table-wrap{max-height:none;overflow:visible}.fc-register-table{width:100%}.fc-register-table tr{padding:16px;gap:12px}.fc-register-table td{overflow-wrap:anywhere;white-space:normal}.fc-register-table td:first-child{max-width:none}
  .fc-register-ops{justify-content:flex-start}.fc-register-ops a,.fc-register-ops button,.fc-register-reset,.fc-register-pager button,.fc-register-pager select{min-height:44px}.fc-register-pager>div{flex-wrap:wrap;justify-content:flex-start}
  .fc-fdv-head{padding:16px;display:block}.fc-fdv-main h1{font-size:21px}.fc-fdv-actions{display:flex;flex-direction:row;margin:14px 0 0;gap:10px;align-items:center}.fc-fdv-actions>button{min-height:44px}.fc-fdv-actions input{min-height:44px;font-size:16px}
  .fc-device-tabs{gap:20px}.fc-device-panel .fc-fdv-dl{grid-template-columns:1fr}.fc-device-panel .fc-fdv-card{padding:16px}.fc-part{flex-wrap:wrap}.fc-part-buy{width:100%;flex-direction:row;flex-wrap:wrap;align-items:center}.fc-part-buy button{min-height:44px}
  .fc-projects-list{grid-template-columns:1fr}.fc-project-item{min-width:0}.fc-project-item>span{flex-shrink:1}.fc-card-more a,.fc-card-more button{min-height:44px}
}

/* Override the storefront mobile dialog sizing for the independent scene. */
body.hm-mobile dialog.fc-scene-dialog{width:100vw!important;max-width:none!important;height:100dvh;max-height:none;padding:0;border-radius:0;overflow:hidden;box-sizing:border-box}
.fc-workspace-stats.has-model{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:1000px){.fc-workspace-stats.has-model{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.fc-workspace-stats.has-model{grid-template-columns:repeat(2,minmax(0,1fr))}.fc-workspace-stats.has-model>.fc-ws-stat:last-child{grid-column:auto}}

/* PR4 运行巡检：队列与设备工作区 */
.fo-pr4 .fo-queue-tabs{flex-wrap:wrap;gap:8px;margin:0 0 20px}.fo-pr4 .fo-queue-tabs a,.sp-filter-nav a{display:inline-flex;align-items:center;gap:8px;min-height:44px;border:1px solid #e2e6ea;border-radius:8px;padding:8px 14px;background:#fff;color:#43515f;text-decoration:none;font-size:13px}.fo-pr4 .fo-queue-tabs a[aria-current],.sp-filter-nav a[aria-current]{color:#ef7523;border-color:#edbb9d;background:#fff3e9}.fo-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:24px;align-items:start}.fo-pr4 .fo-queue{margin:0;padding:16px;background:#f7f8fa;min-width:0}.fo-queue-list{display:grid;gap:10px;max-height:70vh;overflow:auto;overscroll-behavior:contain}.fo-queue-item{border:1px solid #e2e6ea;border-radius:8px;background:#fff;padding:14px;overflow-wrap:anywhere}.fo-queue-item.on{border-color:#ef7523;box-shadow:inset 3px 0 #ef7523}.fo-queue-item a:not(.outline){display:block;color:#263743;font-size:14px;font-weight:600;text-decoration:none;min-height:28px}.fo-queue-item p,.fo-empty{color:#5f6b76;font-size:13px;line-height:1.6;margin:8px 0}.fo-queue-item .fo-actions{margin:10px 0 0}.fo-queue-item .outline{display:inline-flex;align-items:center;min-height:44px}.fo-device-workspace{min-width:0}.fo-device-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #e2e6ea;padding-bottom:16px}.fo-device-summary h3{margin:8px 0;font-size:20px}.fo-device-summary p{font-size:14px;color:#5f6b76}.fo-device-summary span{font-size:13px;color:#5f6b76}.fo-device-summary>a{flex-shrink:0;color:#ef7523}.fo-workspace-empty{padding:32px 16px;text-align:center;color:#5f6b76;line-height:1.8}.fo-pr4>header label{display:grid;gap:6px;max-width:420px;min-width:200px;font-size:13px;color:#5f6b76}.fo-pr4>header select{min-height:44px;border:1px solid #dce2e8;background:#fff;border-radius:6px;max-width:100%;padding:6px 10px}.fo-pr4 h2{font-size:20px}.fo-pr4 .fo-records article{font-size:14px}.fo-pr4 .fo-records{margin-bottom:24px}.fo-pr4 .fo-form{min-width:0}
/* PR4 后台配置：章节目录 + 单一编辑区 */
.fc-pr4-config{padding-bottom:90px;min-width:0;color:#202426}.fc-config-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:20px;align-items:start}.fc-config-sections{position:sticky;top:20px;display:grid;gap:6px;border:1px solid #e2e6ea;border-radius:10px;padding:8px;background:#fff}.fc-config-sections button{border:0;background:#fff;border-radius:6px;min-height:46px;padding:10px 14px;text-align:left;color:#43515f;font-size:14px}.fc-config-sections button[aria-pressed=true]{color:#ef7523;background:#fff3e9;font-weight:600}.fc-config-editor{min-width:0}.fc-pr4-config [data-config-panel]{display:none}.fc-pr4-config[data-config-section=basic] [data-config-panel=basic],.fc-pr4-config[data-config-section=views] [data-config-panel=views],.fc-pr4-config[data-config-section=equipment] [data-config-panel=equipment],.fc-pr4-config[data-config-section=files] [data-config-panel=files]{display:block}.fc-pr4-config .fc-savebar{position:sticky;bottom:0;z-index:25;margin-top:16px;padding:14px 18px;background:#fff;border:1px solid #dce2e8;box-shadow:0 -4px 16px #182b4110}.fc-pr4-config .fc-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.fc-pr4-config .fc-tip,.fc-pr4-config .fc-label{font-size:13px;color:#5f6b76}.fc-pr4-config .fc-card>h3{font-size:17px}.fc-pr4-config input,.fc-pr4-config select,.fc-pr4-config button:not(.fc-hot-mark){min-height:44px;font-size:13px}.fc-pr4-config input[type=checkbox]{min-height:18px}.fc-pr4-config .fc-stage-item{padding:12px}.fc-pr4-config .fc-stage-top{flex-wrap:wrap}.fc-pr4-config .fc-stage-name{flex-basis:100%}.fc-pr4-config .fc-stage-top button{min-width:44px}.fc-pr4-config .fc-split{grid-template-columns:240px minmax(0,1fr)}.fc-pr4-config .fc-stages-edit,.fc-pr4-config .fc-devices-edit{min-width:0}.fc-pr4-config .fc-admin-device-scroll{overflow:auto;max-width:100%}.fc-pr4-config .fc-table input,.fc-pr4-config .fc-table select{max-width:160px}.fc-pr4-config .fc-config-head p{font-size:13px;color:#5f6b76}.fc-pr4-config .fc-table th,.fc-pr4-config .fc-table td,.fc-pr4-config .fc-table td small{font-size:12px;color:#5f6b76}.fc-hotspot-fields{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:14px 0}.fc-hotspot-fields label{display:grid;gap:6px;font-size:13px;color:#5f6b76;flex:1 1 110px}.fc-hotspot-fields input,.fc-hotspot-fields select{width:100%;border:1px solid #dce2e8;border-radius:6px;padding:8px}.fc-hotspot-fields .form-error{flex-basis:100%;margin:0}.fc-config-feedback:empty{display:none}.fc-config-feedback{margin-bottom:16px}.fc-draft-notice,.fc-config-conflict{padding:16px;background:#fff9f2;border:1px solid #efc6a3;border-radius:8px;line-height:1.7;color:#754323;font-size:14px}.fc-config-conflict h3{font-size:17px;margin:0 0 8px}.fc-conflict-scroll{overflow:auto;margin:12px 0}.fc-conflict-scroll table{width:100%;border-collapse:collapse;min-width:560px}.fc-conflict-scroll th,.fc-conflict-scroll td{text-align:left;vertical-align:top;padding:10px;border-bottom:1px solid #eaded3;font-size:13px;min-width:100px;overflow-wrap:anywhere}.fc-import-steps{list-style:none;padding:0;margin:0 0 16px;display:flex;gap:8px;flex-wrap:wrap}.fc-import-steps li{border:1px solid #e2e6ea;border-radius:6px;padding:8px 12px;font-size:13px;color:#5f6b76;background:#fff}.fc-import-steps li[aria-current]{border-color:#edbb9d;background:#fff3e9;color:#ef7523}.fc-leave-actions{display:flex;gap:10px;flex-wrap:wrap}.fc-pr4-config :is(button,input,select,textarea,a):focus-visible,.fo-pr4 :is(button,input,select,textarea,a):focus-visible{outline:3px solid #2258ad;outline-offset:2px}
@media(max-width:1200px){.fc-config-layout{grid-template-columns:160px minmax(0,1fr)}.fc-pr4-config .fc-split{grid-template-columns:minmax(0,1fr)}.fo-layout{grid-template-columns:290px minmax(0,1fr)}}
@media(max-width:1023px){.fo-layout{grid-template-columns:minmax(0,1fr)}.fo-queue-list{max-height:360px}.fc-config-layout{grid-template-columns:minmax(0,1fr)}.fc-config-sections{position:static;display:flex;overflow:auto}.fc-config-sections button{flex-shrink:0}.fc-pr4-config .fc-config-stats{display:none}}
@media(max-width:767px){.fo-pr4 .fo-queue-tabs{flex-wrap:nowrap;overflow:auto;padding-bottom:6px}.fo-pr4 .fo-queue-tabs a{flex-shrink:0}.fo-pr4>header label{width:100%;max-width:100%;min-width:0}.fo-pr4 .fo-queue{padding:12px}.fo-layout{gap:20px}.fo-queue-list{max-height:300px}.fo-device-summary{display:block}.fo-device-summary>a{display:inline-block;min-height:44px;padding-top:10px}.fo-device-summary h3{font-size:19px}.fc-pr4-config .fc-fields{grid-template-columns:minmax(0,1fr)}.fc-pr4-config .fc-savebar{bottom:0;display:flex;flex-wrap:wrap;gap:10px;padding-bottom:calc(14px + env(safe-area-inset-bottom))}.fc-pr4-config .fc-savebar>div{display:flex;gap:8px;width:100%}.fc-pr4-config .fc-savebar button{flex:1;padding:8px}.fc-pr4-config .fc-device-table{display:block;min-width:0}.fc-pr4-config .fc-device-table thead{display:none}.fc-pr4-config .fc-device-table tbody{display:grid;gap:14px}.fc-pr4-config .fc-device-table tr{display:block;border:1px solid #e2e6ea;border-radius:8px;padding:10px}.fc-pr4-config .fc-device-table td{display:grid;grid-template-columns:78px minmax(0,1fr);gap:8px;padding:7px 0}.fc-pr4-config .fc-device-table td:before{content:attr(data-label);font-size:12px;color:#5f6b76}.fc-pr4-config .fc-device-table td small{grid-column:2}.fc-pr4-config .fc-table input,.fc-pr4-config .fc-table select{width:100%;max-width:none;min-width:0}.fc-pr4-config .fc-card{padding:14px}.fc-pr4-config .fc-stages-head,.fc-pr4-config .fc-equipment-edit-title{flex-wrap:wrap;gap:12px}.fc-hotspot-fields{gap:10px}.fc-pr4-config input,.fc-pr4-config select,.fc-pr4-config textarea{font-size:16px}.fc-pr4-config{padding-bottom:100px}}
.wu-source-return{padding:14px 0;max-width:1600px;margin:auto}.wu-source-return a{display:inline-flex;align-items:center;min-height:44px;color:#ef7523;text-decoration:none}

/* 配置保存条随视口固定；clip 不创建额外滚动容器。 */
.management-shell:has(.fc-pr4-config){overflow:clip}
@media(max-width:767px){.hm-mobile .fc-pr4-config .fc-savebar{bottom:calc(var(--m-nav,64px) + env(safe-area-inset-bottom,0px));z-index:26}.hm-mobile .fc-pr4-config{padding-bottom:120px}}
.fo-pr4>header label{width:420px;min-width:0;grid-template-columns:minmax(0,1fr)}.fo-pr4>header select{width:100%;min-width:0}
@media(max-width:767px){.fo-pr4>header label{width:100%}}

/* PR5 工厂工作区的操作和文字对比度。 */
.fc-workspace,.fc-pr4-config,.fo-form { --orange:#ef7523; }
.fc-workspace .primary,
.fc-pr4-config .primary,
dialog:has(.fo-form,.sp-form,.sp-detail,.sp-lifecycle,.fc-contract-import,.fc-leave-actions) .primary {
  background:#ef7523;
  border-color:#ef7523;
  color:#fff;
}
.fc-workspace :is(button,a,input,select,textarea,summary):focus-visible {
  outline:3px solid #2258ad;
  outline-offset:2px;
}
.fc-workspace .fc-ws-button.primary { background:#ef7523; border-color:#ef7523; color:#fff; }
.fc-workspace .fc-ws-button.primary:hover { background:#ef7523; }
.fc-workspace .fc-ws-stat-note { color:#5f6b76; }
.fc-workspace .fc-ws-stat.green .fc-ws-stat-note { color:#166534; }
.fc-workspace .fc-ws-stat.orange .fc-ws-stat-note { color:#ef7523; }
.fc-workspace .fc-equipment-stages nav button.on b,
.fc-workspace .fc-register-search button,
.fc-workspace .fc-register-reset,
.fc-workspace .fc-process-code { color:#ef7523; }
.fc-workspace .fc-sku-link { color:#355b83; }
.fc-workspace .fc-rebuy-status { color:#166534; }
.fc-workspace .fc-register-rebuy { background:#ef7523; border-color:#ef7523; color:#fff; }
.fc-workspace .outline,
.fc-pr4-config .outline,
dialog:has(.fo-form,.sp-form,.sp-detail,.sp-lifecycle,.fc-contract-import,.fc-leave-actions) .outline { color:#ef7523; }

.fc-workspace :is(.pm-card-label,.pm-card-foot,.pm-card-go) { font-size:12px; color:#5f6b76; }
.fc-workspace .pm-card-value { color:#344254; }
.fc-workspace .pm-btn { font-size:12px; min-height:32px; }
.fc-workspace .pm-btn.ok { color:#ef7523; }
.fc-workspace .pm-btn.danger { color:#b42318; }
.fc-workspace .fc-src.admin { color:#355b83; }

.fc-workspace .pm-desk-cards .pm-card.is-link .pm-card-foot.pm-card-go { color:#5f6b76; }
.fc-workspace .pm-desk-cards .pm-card .pm-card-value { color:#344254; }

/* PR5 这两个运维入口沿用后台壳，并满足辅助文字可读性。 */
.management-shell:has(.eg-body,.fc-pr4-config) :is(.management-brand small,.mg-sidebar-footer b,.mg-sidebar-footer small,.mg-sidebar-footer button,.management-top span,.mg-top-actions button,.mg-demo-note) { font-size:12px; color:#5f6b76; }
.management-shell:has(.eg-body,.fc-pr4-config) .mg-brand-mark { background:#ef7523; }
.management-shell:has(.eg-body,.fc-pr4-config) .mg-demo-note span { color:#ef7523; }
.management-shell:has(.eg-body,.fc-pr4-config) .mg-top-actions .outline { min-height:44px; }


.management-shell:has(.eg-body,.fc-pr4-config) .mg-todo-btn.has-todo b { font-size:12px; background:#ef7523; color:#fff; }

.fc-pr4-config .fc-hot-mark { background:#ef7523; }

.fc-mine-card .fc-mine-card-actions .fc-mine-enter { background:#ef7523; border-color:#ef7523; color:#fff; }
.fc-mine-card .fc-mine-card-actions .fc-mine-enter:hover { background:#ef7523; }

@media(max-width:767px){
  body:has(.eg-body) .hm-bot { bottom:calc(78px + env(safe-area-inset-bottom,0px)); }
  body:has(.fc-pr4-config) .hm-bot { bottom:calc(178px + env(safe-area-inset-bottom,0px)); }
}

/* 浏览器原生全屏时的场景弹窗：铺满屏幕，保留顶部标题与关闭按钮 */
dialog.fc-scene-dialog:fullscreen{width:100vw;height:100vh;max-width:none;max-height:none;border-radius:0}
dialog.fc-scene-dialog::backdrop{background:#0d1318}


/* 中间 3D 展示区全屏：三维交互框铺满整个屏幕（含降级满屏） */
.fc-explorer-frame:fullscreen,
.fc-explorer-frame.fc-pseudo-full{width:100vw;height:100vh;max-height:none;min-height:0;border-radius:0;background:#0d1318}
.fc-explorer-frame.fc-pseudo-full{position:fixed;inset:0;z-index:9000}
.fc-explorer-frame:fullscreen>iframe,
.fc-explorer-frame.fc-pseudo-full>iframe{width:100%;height:100%}
.fc-scene-box.fc-pseudo-full{width:100vw;height:100vh;max-height:none;position:fixed;inset:0;z-index:9000}

/* 原生全屏时隐藏 3D 框内的场景标题条与说明，只留画面（Esc 退出） */
.fc-scene-box:fullscreen .fc-scene-bar,
.fc-scene-box:fullscreen .fc-viewer-note{display:none}
.fc-scene-box:fullscreen .fc-stage-map,
.fc-scene-box:fullscreen .fc-viewer{height:100vh}
.fc-scene-box:fullscreen img{max-height:100vh}
.fc-scene-box:fullscreen iframe{height:100vh}

/* 设备来源与资产边界 */
.fc-source-row{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:12px;padding:10px 0;border-bottom:1px solid #eef1f3;font-size:12px}
.fc-source-row:last-of-type{border-bottom:0}
.fc-source-row small{display:block;color:#8a959d;font-size:10px;margin-top:3px;line-height:1.5}
.fc-source-row a{color:#397ac8;text-decoration:none}
.fc-source-row a:hover{text-decoration:underline}
.fc-source-boundary{margin:12px 0 0;padding:9px 11px;background:#f5f7f9;border-radius:6px;color:#66747d;font-size:11px;line-height:1.7}
@media(max-width:760px){.fc-source-row{grid-template-columns:1fr;gap:5px}}
.fc-source-actions{display:flex;align-items:center;gap:10px;margin-top:12px;padding-top:10px;border-top:1px dashed #e3e8eb;font-size:11px;color:#8a959d}
.fc-source-actions .danger{color:#c94d45;border-color:#edc4bf;background:#fff6f4}
