/* Management workspace */
.sidebar nav{overflow:auto;scrollbar-width:thin;min-height:0}.sidebar .server-pill{margin-bottom:16px}.sidebar .nav-label{margin-bottom:7px}.sidebar .nav-button{padding:9px 12px;margin:2px 0}.sidebar-bottom{padding-top:14px}.privilege{padding:8px 10px;margin-bottom:10px}.sidebar{padding-top:24px}.sidebar .brand{margin-bottom:20px}.toolbar{display:flex;align-items:center;gap:9px;margin-bottom:15px}.toolbar.wrap{flex-wrap:wrap}.toolbar input:not([type=checkbox]),.toolbar select{width:auto;max-width:100%;padding:10px 12px;font-size:12px;background:#101721;color:var(--text);border:1px solid var(--border);border-radius:6px}.toolbar select{min-width:130px}.toolbar input[type=checkbox],table input[type=checkbox]{width:15px;height:15px;accent-color:var(--accent);vertical-align:middle;cursor:pointer}.toolbar .secondary{white-space:nowrap}.inline-form{display:flex;align-items:center;gap:8px;flex:1;min-width:180px}.inline-form input{flex:1;min-width:100px;width:100%!important}.inline-label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px}.path-toolbar #path-form{display:flex;gap:8px;flex:1;min-width:200px}.path-toolbar #path-form input{flex:1;min-width:100px;font-family:monospace}.path-toolbar #file-filter{width:180px}.selection-label{font-size:11px;color:var(--muted);white-space:nowrap;margin-right:5px}.selection-label b{font-weight:400;color:var(--accent)}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 17px;border-top:1px solid var(--border);font-size:10px;color:var(--muted)}.pagination>span{margin-right:auto}.row-selected{background:#1d342d}.files-table td{height:40px;font-size:11px}.files-table td:first-child,.files-table th:first-child{width:42px;padding-right:5px}.files-table tr[data-path]{cursor:default}.files-table tr[data-path]:hover{background:#1a252d}.files-table tr.row-selected:hover{background:#243c32}.file-icon{color:var(--accent);display:inline-block;margin-right:9px;width:16px}.file-name{color:#d3dfe6;word-break:break-all}.files-table td:nth-child(4){color:#8fa5b6}.files-table td:nth-child(5){white-space:nowrap;color:#8097a9;font-size:9px}.files-workspace{display:flex;gap:15px;align-items:stretch}.file-browser{min-width:0;flex:1;position:relative;align-self:flex-start;max-height:75vh;overflow:auto}.file-browser .table-scroll{max-height:65vh}.file-browser.drag-over{outline:2px dashed var(--accent);outline-offset:4px;background:#20372f}.drop-hint{font-size:9px;line-height:1.6;padding:10px 17px;color:#6a8393;background:#0f151d;border-top:1px solid var(--border)}.editor-panel{flex:1.2;min-width:0;height:68vh;display:flex;flex-direction:column}.editor-head{display:flex;align-items:center;gap:8px;padding:12px;border-bottom:1px solid var(--border)}.editor-head strong{font-family:monospace;font-size:10px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.editor-head #editor-dirty{color:var(--orange)}.editor-options{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;font-size:9px;color:var(--muted);border-bottom:1px solid var(--border)}.editor-options select{font:inherit;background:#131e29;color:#b5c5d2;border:1px solid var(--border);border-radius:4px;padding:5px}.editor-panel #code-editor{flex:1;min-height:0;overflow:hidden}.editor-panel .cm-editor{height:100%}.work-dialog{width:min(94vw,860px);max-height:90vh}.work-dialog #work-body{font-size:12px;line-height:1.7}.work-dialog pre{white-space:pre-wrap;word-break:break-word;background:#0a1119;color:#b5c9c1;border:1px solid #293746;border-radius:6px;padding:15px;max-height:55vh;overflow:auto;font:11px/1.65 monospace}.work-dialog .dialog-head{position:sticky;top:-24px;z-index:2;background:#141c25;padding:8px 0}.work-dialog h3{font-size:12px;font-weight:500;margin:19px 0 9px}.manager-form .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid>label{font-size:11px;color:#a8bbc9}.form-grid input,.form-grid select,.form-grid textarea{display:block;margin-top:8px;width:100%;font:12px/1.5 inherit}.form-grid select{padding:11px;border:1px solid var(--border);background:#0d1219;color:var(--text);border-radius:6px}.form-grid textarea,textarea{padding:12px;border:1px solid var(--border);background:#0b121a;color:#c1d2df;border-radius:6px;resize:vertical;min-height:90px;font:12px/1.6 monospace;width:100%}.form-grid textarea:focus{outline:1px solid var(--accent)}.span-all{grid-column:1/-1}.check-label{display:flex!important;align-items:center;gap:8px;font-size:11px;line-height:1.6;color:var(--muted)}.check-label input[type=checkbox]{display:inline-block!important;width:15px!important;height:15px;margin:0;accent-color:var(--accent);flex-shrink:0}.form-grid .check-label{align-self:center}.property-info{background:#0e161f;border:1px solid var(--border);padding:15px;border-radius:6px;font-size:11px;word-break:break-word}.property-info p{margin:10px 0 0;color:var(--muted)}.cell-small{display:block;font-size:9px;color:#758d9f;margin-top:5px;line-height:1.6}.row-actions{min-width:150px}.row-actions button{margin:3px}.details-pad{padding:17px;margin-top:16px;font-size:11px}.details-pad pre{white-space:pre-wrap;color:var(--muted);font-size:11px;line-height:1.7}.command-preview{display:block;padding:12px;background:#0b151b;color:var(--accent);border-radius:6px;font-size:10px;margin-bottom:18px;overflow-wrap:anywhere}.job-log{min-height:230px;max-height:55vh!important}.badge.failed,.badge.cancelled,.badge.interrupted{color:var(--red);background:#342329}.badge.queued{color:var(--orange);background:#332c24}.badge.running{color:#a9c9f0;background:#203147}.badge.succeeded{color:var(--accent);background:#203a2c}.env-value{max-width:450px;white-space:pre-wrap;word-break:break-all;font-size:10px;line-height:1.6}.container-head .container-select{width:15px;height:15px;accent-color:var(--accent);flex-shrink:0}.project-card{border:1px solid var(--border);background:#101923;border-radius:7px;padding:18px;margin-bottom:12px}.project-card strong{font-size:14px;font-weight:500;margin-right:10px}.project-card p{font-size:10px;overflow-wrap:anywhere;color:var(--muted);margin-top:10px}.project-card .toolbar{margin-bottom:0}.work-dialog details summary{cursor:pointer;color:var(--accent);font-size:11px;margin:12px 0}.work-dialog details>p{font-size:10px}.cm-editor .cm-content{white-space:pre!important}.terminal-tab{min-height:40px}
@media(min-width:1450px){.files-workspace:has(.editor-panel:not([hidden])) .files-table th:nth-child(4),.files-workspace:has(.editor-panel:not([hidden])) .files-table td:nth-child(4){display:none}}
@media(max-width:1150px){.files-workspace{flex-direction:column}.editor-panel{flex:none;width:100%;height:65vh}.file-browser{width:100%;max-height:55vh}.file-browser .table-scroll{max-height:44vh}.row-actions{min-width:130px}}
@media(max-width:640px){.sidebar{height:78px;padding:3px 5px}.sidebar nav{display:grid;grid-template-columns:repeat(6,1fr);gap:0;width:100%;overflow-y:auto}.sidebar .nav-button{font-size:7px;padding:3px 1px;margin:0;gap:0;min-height:33px}.sidebar .nav-icon{font-size:14px;line-height:15px}.sidebar .nav-button.selected{border-radius:4px}main{padding-bottom:80px}.toolbar{gap:7px}.toolbar.wrap{gap:7px}.toolbar .small-button{padding:8px 9px;font-size:9px}.toolbar input:not([type=checkbox]),.toolbar select{font-size:11px;max-width:100%}.path-toolbar{flex-wrap:wrap}.path-toolbar #file-filter{width:100%}.path-toolbar #path-form{min-width:0;width:calc(100% - 50px)}.files-table td:nth-child(4),.files-table th:nth-child(4),.files-table td:nth-child(5),.files-table th:nth-child(5){display:none}.files-table td{font-size:10px}.files-table th{font-size:8px}.file-name{word-break:break-word}.work-dialog{padding:17px;width:96vw}.manager-form .form-grid{grid-template-columns:1fr;gap:12px}.work-dialog .dialog-head{top:-17px}.check-label{font-size:10px}.row-actions{min-width:100px}.env-value{min-width:170px;max-width:270px}.file-browser .table-scroll{max-height:42vh}.editor-panel{height:65vh}.selection-label{font-size:10px}.inline-label{font-size:10px}.toolbar #env-pid{width:100px}.container-head .container-select{margin-right:0}.project-card{padding:13px}}

.file-preview{display:block;max-width:100%;max-height:65vh;margin:0 auto}
