/* Constrain controls to the dialog instead of inheriting chart-panel widths. */
#setup, #setup * {box-sizing:border-box}
#setup [hidden],.detail-panel [hidden],#bundle-summary[hidden],#open-fixed[hidden]{display:none!important}
#setup{width:min(1120px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:20px;scroll-padding:90px 0 100px}
#setup label{min-width:0}
#setup input:not([type=checkbox]),#setup select{max-width:100%;min-width:0}
#setup .inline{display:flex;align-items:center;gap:8px;white-space:normal}
#setup .inline input[type=checkbox]{width:16px;min-width:16px;height:16px;flex:none;margin:0}
#setup .dialog-title{top:-20px}
#setup .wizard-footer{bottom:-20px;padding:15px 0;background:#101e2b;z-index:8}
#setup .sensor-card{min-width:0}
#setup .sensor-card-top{flex-wrap:wrap}
#setup .sensor-fields label{display:flex;flex-direction:column;gap:5px}
#setup .sensor-fields select,#setup .sensor-fields input{height:36px}
#setup .mapping-actions{flex-wrap:wrap}
#setup .field-error{outline:2px solid #f3978b;outline-offset:4px;border-radius:4px}
.bundle-toolbar{display:flex;justify-content:flex-end;gap:12px;margin:15px 0}
#bundle-files{display:grid;gap:10px;margin-top:15px}
.file-card{border:1px solid #2b4355;border-radius:9px;background:#0c1c29;padding:13px 16px;min-width:0}
.file-card.primary-file{border-color:#438677;background:#102a2e}
.file-row{display:flex;align-items:center;gap:12px}
.file-icon{display:grid;place-items:center;width:33px;height:33px;flex:none;border:1px solid #416574;border-radius:7px;font-size:12px;color:#81d9c0}
.file-title{flex:1;min-width:0}.file-title strong{font-size:13px;overflow-wrap:anywhere;display:block}
.file-title small{display:block;color:#8ba6b7;margin-top:5px;font-size:11px}
.file-controls{display:flex;align-items:center;flex-wrap:wrap;gap:15px;margin-top:12px}
.file-controls>label{font-size:11px;flex:1;min-width:190px!important}
.file-controls select{width:100%;margin-top:4px}
.file-card details{margin-top:10px}.file-card summary{font-size:11px;color:#8da5b7}
.file-card .table-scroll{max-height:230px;overflow:auto}
#recommend-note:empty{display:none}
.fixed-shortcut{display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin-top:22px;padding:14px 18px;background:#122734;border:1px solid #345363;border-radius:10px;max-width:100%}
.fixed-shortcut>span{font-size:10px;letter-spacing:1px;color:#85d2be}.fixed-shortcut strong{font-size:15px}.fixed-shortcut small{font-size:11px;color:#8faaba}
.saved-item[data-run=project_fixed]{border-color:#5ba58e;background:#143335}
#linked-reference{border:1px solid #344e60;background:#122735;padding:12px;border-radius:9px;margin:12px 0;min-width:0}
#linked-reference h3{font-size:14px}#linked-reference summary{font-size:12px;color:#abd5cd;overflow-wrap:anywhere}
#linked-reference table{font-size:11px;table-layout:fixed;width:100%;word-break:break-word}
#linked-reference .table-scroll{max-width:100%;overflow:auto}#linked-reference details{margin-bottom:10px}
#bundle-summary{margin:25px 0;overflow:auto}#bundle-summary h3{font-size:17px}
@media(max-width:750px){#setup{padding:14px}#setup .dialog-title{top:-14px}#setup .wizard-footer{bottom:-14px}.file-row{flex-wrap:wrap}.file-row>button{margin-left:auto}.sensor-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.bundle-toolbar{flex-wrap:wrap}}
