/* 原控制台设备设置：紧凑分栏、固定入口、可靠滚动。 */
.phone-card .settings-outline{flex-basis:100%;border-color:#b8cef6;background:#f4f7ff;color:#2458bd}.phone-card .settings-outline:hover{background:#e9f0ff}
.device-settings-dialog{border:0;border-radius:12px;padding:0;width:min(1040px,calc(100vw - 32px));height:auto;max-height:calc(100dvh - 32px);color:#17243a;background:#fff;box-shadow:0 24px 80px #0b1d3780;overflow:auto;overscroll-behavior:contain;margin:auto}.device-settings-dialog::backdrop{background:#08172dbd}.ds-shell{display:flex;flex-direction:column;max-height:calc(100dvh - 32px);min-height:0;overflow:hidden}.ds-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:15px;padding:16px 22px;background:#101e35;color:#fff}.ds-header h2{margin:0;font-size:19px;line-height:1.3}.ds-subtitle{margin:4px 0 0;color:#b6c6dc;font-size:11px}.ds-close{border-color:#49617f;background:transparent;color:#fff;padding:7px 11px;font-size:12px}.ds-close:hover{background:#203b60}.ds-error,.ds-status{flex:none;margin:10px 22px 0;padding:7px 10px;border-radius:6px;font-size:12px;line-height:1.5}.ds-error{border:1px solid #f3c6c1;background:#fff3f1;color:#a22b23}.ds-status{background:#edf4ff;color:#365274}.ds-status.bad{background:#fff3f1;color:#a22b23}.ds-tabs{display:flex;flex:none;gap:6px;padding:9px 22px 0;border-bottom:1px solid #e3e8f0}.ds-tab{border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;padding:9px 16px;color:#62738b;font-size:13px}.ds-tab:hover{background:#f2f6fc}.ds-tab[aria-selected="true"]{border-bottom-color:#2563eb;color:#1d4ed8}.ds-panels{min-height:0;flex:1 1 auto;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch}.ds-panel{padding:18px 22px 16px;overflow:visible}.ds-panel[hidden]{display:none}.ds-section{max-width:none}.ds-section h3{font-size:17px;margin:0 0 7px}.ds-section h4{font-size:14px;margin:0 0 6px}.ds-copy{margin:0 0 12px;color:#64758d;font-size:12px;line-height:1.7}.ds-radio-group{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.ds-radio{display:inline-flex;align-items:center;gap:7px;border:1px solid #d7e0eb;border-radius:7px;padding:9px 10px;background:#fff;color:#344861;font-size:12px;cursor:pointer;line-height:1.5;min-width:0}.ds-radio:has(input:checked){border-color:#78a2f7;background:#f0f5ff;color:#1d4ed8}.ds-radio input{accent-color:#2563eb;margin:0;flex-shrink:0;width:14px;height:14px}.ds-fieldset{margin:0;padding:12px 14px;border:1px solid #dce4ef;border-radius:9px;min-width:0}.ds-fieldset[disabled]{opacity:.66}.ds-fieldset legend{padding:0 6px;color:#536781;font-size:12px;font-weight:700}.ds-field{display:block;margin:7px 0;color:#344861;font-size:12px;font-weight:600;min-width:0}.ds-field-title{display:block}.ds-field input,.ds-field select{display:block;box-sizing:border-box;width:100%;min-width:0;margin-top:4px;border:1px solid #cfd9e7;border-radius:6px;background:#fff;padding:7px 9px;color:#26364d;font:inherit;font-weight:400;min-height:33px}.ds-field input:focus,.ds-field select:focus,.ds-tab:focus-visible,.ds-close:focus-visible,.ds-actions button:focus-visible,.ds-address-choice:focus-visible{outline:2px solid #93b6ff;outline-offset:2px}.ds-field input:disabled,.ds-field select:disabled{background:#f4f6f9;color:#8794a7}.ds-hint{display:block;margin:4px 0 0;color:#6e7f95;font-size:11px;font-weight:400;line-height:1.5}.ds-hint-bad{color:#a22b23}.ds-inline-actions{display:flex;justify-content:flex-end;margin:0}.ds-secondary{background:#fff;border-color:#cbd7e6;color:#39536f}.ds-secondary:hover{background:#eef4fb}.ds-grid{display:grid;gap:10px}.ds-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}.ds-check{display:flex;align-items:flex-start;gap:8px;margin:12px 0;color:#445870;font-size:12px;line-height:1.6}.ds-check input{accent-color:#2563eb;margin-top:3px;flex-shrink:0;width:14px;height:14px}.ds-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:14px;padding-top:12px;border-top:1px solid #e4eaf2}.ds-actions button,.ds-inline-actions button{padding:8px 12px;font-size:12px;min-height:34px}.ds-test-result{margin-top:10px;padding:9px 11px;border:1px solid #bcd6ff;border-radius:7px;background:#f1f6ff;color:#264b78;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.ds-test-result.bad{border-color:#f3c6c1;background:#fff3f1;color:#a22b23}.ds-address-results{display:grid;gap:5px;margin-top:8px;max-height:108px;overflow:auto;overscroll-behavior:contain}.ds-address-choice{width:100%;border-color:#d9e2ef;border-radius:6px;padding:7px 9px;text-align:left;background:#f9fbfe;color:#38506c;font-size:11px;font-weight:500;line-height:1.5}.ds-address-choice:hover{background:#edf4ff}.ds-map-mock{position:relative;display:flex;flex-direction:column;gap:4px;margin-top:9px;border:1px solid #dce5f0;border-radius:7px;padding:9px 11px;background:#f5f9fe;color:#39536f;min-height:0}.ds-map-label{font-size:10px;font-weight:700;color:#718198}.ds-map-marker{display:none}.ds-map-mock strong{font-size:12px}.ds-map-mock small{font-size:10px;line-height:1.5}.ds-fixed-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0}.ds-fixed-settings div{border:1px solid #dce5f0;border-radius:7px;padding:10px;background:#f8faff}.ds-fixed-settings span{display:block;color:#718198;font-size:11px}.ds-fixed-settings strong{display:block;margin-top:4px;color:#2b4563;font-size:12px}.ds-runtime{margin-top:15px;padding-top:12px;border-top:1px solid #e4eaf2}.ds-runtime-rows{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px;margin:7px 0 0}.ds-runtime-rows div{display:flex;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1px solid #edf1f5;font-size:11px;min-width:0}.ds-runtime-rows dt{color:#718198;flex-shrink:0}.ds-runtime-rows dd{margin:0;max-width:70%;color:#2c4561;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;text-align:right;overflow-wrap:anywhere}.ds-confirm{position:absolute;z-index:5;right:18px;bottom:18px;left:18px;max-width:560px;margin-left:auto;border:1px solid #a9c5f1;border-radius:9px;padding:15px;background:#fff;box-shadow:0 12px 38px #122c4a33}.ds-confirm h3{margin:0 0 7px;color:#203d60;font-size:15px}.ds-confirm p{margin:0;color:#506783;font-size:12px;line-height:1.6}.ds-confirm .ds-actions{margin-top:11px}
@media(min-width:801px){#ds-panel-network .ds-section,#ds-panel-location .ds-section{display:grid;grid-template-columns:260px minmax(0,1fr);column-gap:24px;row-gap:0;align-items:start}#ds-panel-network h3,#ds-panel-location h3{grid-column:1;grid-row:1}#ds-panel-network .ds-copy,#ds-panel-location .ds-copy{grid-column:1;grid-row:2}#ds-panel-network>.ds-section>.ds-radio-group,#ds-panel-location>.ds-section>.ds-radio-group{grid-column:1;grid-row:3;display:flex;flex-direction:column;align-items:stretch;margin:0}#dsProxyFields,#dsManualLocationFields{grid-column:2;grid-row:1 / span 5}#ds-panel-network>.ds-section>.ds-check{grid-column:1;grid-row:4;margin-top:14px}#ds-panel-network>.ds-section>.ds-actions,#ds-panel-location>.ds-section>.ds-actions{grid-column:1 / -1;grid-row:6}#ds-panel-network>.ds-section>.ds-test-result{grid-column:1 / -1;grid-row:7}.ds-fieldset>.ds-grid{margin:0}.ds-fieldset>.ds-grid .ds-field{margin:4px 0}}
@media(max-width:800px){.device-settings-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.ds-shell{max-height:calc(100dvh - 16px)}.ds-header{padding:13px 16px}.ds-header h2{font-size:17px}.ds-tabs{padding:8px 16px 0}.ds-error,.ds-status{margin:8px 16px 0}.ds-panel{padding:14px 16px}.ds-copy{margin-bottom:9px}.ds-fieldset{margin-top:10px}.ds-runtime-rows{grid-template-columns:repeat(2,minmax(0,1fr))}.ds-actions{position:sticky;bottom:-14px;z-index:3;padding:10px 0 5px;background:#fff;box-shadow:0 -7px 12px #fff}.ds-confirm{right:12px;bottom:12px;left:12px}.ds-actions button{flex:1}.ds-radio-group{gap:6px}.ds-radio{padding:7px 8px}.ds-check{margin:10px 0}}
@media(max-width:450px){.ds-grid-two{grid-template-columns:1fr;gap:0}.ds-fixed-settings{grid-template-columns:1fr;gap:5px}.ds-fixed-settings div{display:flex;justify-content:space-between;gap:8px;padding:8px 10px}.ds-fixed-settings strong{margin:0}.ds-runtime-rows{grid-template-columns:1fr}.ds-radio-group{display:grid;grid-template-columns:1fr}.ds-fieldset .ds-grid-two{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ds-field input,.ds-field select{font-size:12px}.ds-header{padding:12px 14px}}

.device-rename-dialog{border:1px solid #cbd5e4;border-radius:10px;width:min(420px,calc(100vw - 32px));padding:22px;color:#233956}.device-rename-dialog::backdrop{background:#08172dbd}.device-rename-dialog h3{margin:0 0 10px}.device-rename-dialog p{font-size:12px;line-height:1.7;color:#66768d}.device-rename-dialog input{width:100%;padding:10px;margin:10px 0;border:1px solid #cbd5e4;border-radius:6px}.device-rename-dialog .actions{display:flex;justify-content:flex-end;gap:8px}

@media(max-width:800px){.ds-actions{bottom:0;padding:10px 0 14px}.ds-panel{padding-bottom:20px}}

.trash-confirm-dialog{border:1px solid #cbd5e4;border-radius:12px;width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:22px;overflow:auto;color:#233956}.trash-confirm-dialog::backdrop{background:#08172dbd}.trash-confirm-dialog h2{font-size:20px;margin:0 0 12px}.trash-confirm-dialog .actions{display:flex;justify-content:flex-end;gap:9px;margin-top:15px}.trash-confirm-payload{font-size:11px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;max-height:190px;overflow:auto;background:#f4f7fb;padding:12px;border-radius:7px}.trash-confirm-status,.trash-operation-status{font-size:12px;line-height:1.7}.trash-confirm-status.bad{color:#b23d30}.trash-confirm-dialog .danger{background:#b94439;color:white;border-color:#b94439}

.editable-device-name{cursor:text;min-width:0;max-width:100%;overflow-wrap:anywhere;border-radius:4px}.editable-device-name:hover{color:#2563eb}.editable-device-name:focus-visible{outline:2px solid #93b6ff;outline-offset:3px}.editable-device-name.is-editing{flex:1}.device-name-inline-input{box-sizing:border-box;width:100%;min-width:75px;max-width:100%;border:1px solid #93b6ff;border-radius:5px;background:#fff;color:#233956;padding:4px 6px;font:inherit;line-height:1.3}.phone-window-title .device-name-inline-input{max-width:180px}.phone-window-title .editable-device-name{max-width:180px}.trash-list{display:flex!important;flex-direction:column;gap:10px}.trash-list>.actions{justify-content:flex-end}.trash-operation-status:empty{display:none}.trash-row{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box}.trash-row>span:first-child{flex:1;min-width:0;overflow-wrap:anywhere}.trash-row>button{flex:none}
