/* LabelServer: quiet surfaces, clear typography, and generous spacing. */
:root{--blue:#0071e3;--blue-dark:#0064cc}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}
[hidden]{display:none!important}
.wordmark{display:inline-flex;align-items:center;gap:10px;font-size:22px;font-weight:650;letter-spacing:-.8px;color:#1d1d1f;line-height:1}
.wordmark-icon{display:flex;flex-direction:column;justify-content:center;gap:3px;width:25px;height:29px;border:1.7px solid currentColor;border-radius:5px;padding:4px}
.wordmark-icon i{display:block;height:3px;border:1px solid currentColor;border-radius:1px}
.admin-entry{font-size:12px;color:#6e6e73;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.admin-entry:hover{color:#0071e3}
.entry-page{min-height:100svh;background:#fafafa;color:#1d1d1f;display:flex;flex-direction:column}
.entry-nav{width:min(1120px,calc(100% - 80px));margin:0 auto;min-height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8e8ed}
.entry-layout{width:min(1056px,calc(100% - 80px));margin:auto;display:grid;grid-template-columns:1.1fr 1fr;gap:100px;align-items:center;padding:72px 0 80px}
.entry-eyebrow{display:block;font-size:12px;font-weight:500;letter-spacing:1.8px;color:#86868b;margin-bottom:22px}
.entry-intro h1{font-size:56px;line-height:1.16;letter-spacing:-2px;font-weight:650;margin:0 0 24px;color:#1d1d1f}
.entry-intro>p{font-size:16px;line-height:1.9;color:#86868b;margin:0}
.entry-illustration{display:flex;align-items:center;margin:50px 0 30px;height:135px;width:320px}
.entry-rack{height:136px;width:92px;flex-shrink:0;border:1px solid #d6d6dc;border-radius:12px;padding:14px 12px;background:linear-gradient(135deg,#fff,#f2f2f5);box-shadow:5px 8px 22px #1d1d1f06;position:relative}
.entry-rack>span{display:block;width:24px;height:3px;background:#d2d2d7;border-radius:3px;margin-bottom:13px}
.entry-rack>i{display:block;height:17px;border:1px solid #d5d5db;border-radius:4px;margin:6px 0;background:#ffffffa8;position:relative}
.entry-rack>i:after{content:"";width:3px;height:3px;border-radius:50%;background:#9bbce3;position:absolute;right:6px;top:6px}
.entry-rack>b{width:4px;height:4px;background:#8cb8d5;border-radius:50%;position:absolute;bottom:10px;right:14px}
.secondary-rack{height:120px;transform:translateY(8px);opacity:.7}
.secondary-rack>i{height:14px}
.entry-wire{height:36px;width:94px;border-bottom:1.5px solid #7caee1;border-right:1.5px solid #7caee1;border-radius:0 0 15px 0;position:relative;margin-right:18px}
.entry-wire:after{content:"";height:1.5px;width:18px;position:absolute;right:-18px;top:0;background:#7caee1}
.entry-wire i{display:block;height:7px;width:7px;background:#0071e3;border:2px solid #fafafa;box-shadow:0 0 0 1px #99bde7;border-radius:50%;position:absolute;left:-3px;bottom:-4px}
.entry-detail{display:flex;align-items:center;gap:16px;font-size:11px;color:#86868b}
.entry-detail>i{width:3px;height:3px;border-radius:50%;background:#c7c7cc}
.entry-card{background:#fff;border:1px solid #e9e9ee;border-radius:24px;padding:38px 36px 28px;box-shadow:0 18px 65px #1d1d1f05;min-width:0}
.entry-card-kicker{display:block;font-size:11px;color:#86868b;margin-bottom:12px;letter-spacing:.4px}
.entry-card h1,.entry-card h2{font-size:29px;line-height:1.3;letter-spacing:-1px;font-weight:600;margin:0 0 12px;color:#1d1d1f}
.entry-card-description{font-size:12px;color:#86868b;line-height:1.7;margin:0 0 27px}
.entry-form{gap:17px}
.entry-field>label{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;font-size:12px;color:#4a4a4f;font-weight:500}
.entry-field>label>span{color:#a1a1a6;font-size:10px;font-weight:400}
.entry-form input:not([type=hidden]){min-height:49px;border-radius:10px;border-color:#dcdce1;padding:12px 14px;font-size:15px;color:#1d1d1f;letter-spacing:.6px;box-shadow:none}
.entry-form input::placeholder{font-size:13px;letter-spacing:0;color:#a1a1a6}
.entry-form input:focus{outline:3px solid #0071e31b;border-color:#0071e3}
.entry-case-note{font-size:10px;color:#a1a1a6;margin:-6px 0 1px}
.entry-submit{min-height:48px;border-radius:10px;font-size:13px;font-weight:500;padding:12px 17px;box-shadow:none!important}
.entry-submit:hover{background:#0077ed!important}
.entry-divider{display:flex;align-items:center;gap:13px;margin:22px 0;color:#b0b0b5;font-size:10px}
.entry-divider:before,.entry-divider:after{content:"";height:1px;background:#eeeef2;flex:1}
.scan-trigger{min-height:47px;border-radius:10px;justify-content:center!important;gap:10px;background:#fff!important;border-color:#dedee4!important;color:#515158!important;font-size:12px;font-weight:500}
.scan-trigger:hover{background:#f8f8fa!important}
.scan-trigger svg{width:18px;height:18px}
.entry-scan-note{font-size:10px;color:#a1a1a6;text-align:center;line-height:1.7;margin:12px 0 0}
.scanner-result:empty{display:none}
.scanner-result{font-size:12px;color:#0071e3;line-height:1.6;margin:15px 0 0}
.entry-footer{width:min(1120px,calc(100% - 80px));margin:0 auto;min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #e8e8ed;color:#a1a1a6;font-size:10px}
.entry-footer>span:first-child{color:#86868b;font-size:11px;letter-spacing:-.2px}
.single-entry{display:grid;place-items:center;flex:1;padding:64px 20px 80px}
.single-entry .entry-card{width:100%;max-width:424px}
.entry-back{display:block;text-align:center;font-size:11px;color:#86868b;margin-top:25px}
.entry-back:hover{color:#0071e3}
.entry-cabinet-code{display:flex;align-items:center;gap:12px;margin:18px 0;color:#86868b;font-size:11px}
.entry-cabinet-code code{color:#1d1d1f;font-size:16px;letter-spacing:2px}
.scanner-dialog{width:min(460px,calc(100% - 32px));max-height:90svh;overflow:auto;border:1px solid #e5e5ea;border-radius:24px;padding:28px;color:#1d1d1f;box-shadow:0 25px 100px #0002}
.scanner-dialog::backdrop{background:#1d1d1f70;backdrop-filter:blur(5px)}
.scanner-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.scanner-heading .entry-eyebrow{font-size:10px;margin-bottom:7px}
.scanner-heading h2{margin:0;font-size:21px;font-weight:600;letter-spacing:-.5px}
.scanner-view{background:#161618;aspect-ratio:1;position:relative;border-radius:14px;overflow:hidden}
.scanner-view video{width:100%;height:100%;object-fit:cover}
.scanner-guide{position:absolute;width:64%;height:64%;border:1.5px solid #ffffffb3;border-radius:14px;left:18%;top:18%;box-shadow:0 0 0 60px #0002;pointer-events:none}
.scanner-status{color:#86868b;font-size:12px;line-height:1.7;margin:16px 0}
.scanner-file-label{display:flex;flex-direction:column;gap:10px;font-size:12px;color:#0071e3}
.scanner-file-label input{font-size:11px!important;border-color:#e5e5ea!important;letter-spacing:0}
.sidebar .brand{font-size:20px;letter-spacing:-.5px;gap:10px;margin-left:3px}
.sidebar .brand small{font-size:8px;letter-spacing:.5px;margin-top:2px}
.public-header .brand{font-size:20px;letter-spacing:-.5px}
.public-header .brand small{letter-spacing:.5px}
.public-body{background:#f7f8fa}
.cabinet-code-badge{display:inline-flex;align-items:center;gap:9px;color:#86868b;font-size:11px;margin-top:12px}
.cabinet-code-badge code{font-size:13px;color:#45454c;letter-spacing:1.5px}
.row-actions{white-space:nowrap;background:#fff}
.notes-cell,.mobile-note{white-space:pre-wrap}
.row-actions .text-link{font-size:11px;margin-right:12px}
.row-actions .remove-link{color:#a16b6b}
.mobile-row-actions{display:flex;justify-content:flex-end;gap:20px;border-top:1px solid #edf0f4;margin-top:12px;padding-top:12px}
.connection-edit-form{padding:30px}
.edit-shell{max-width:1000px}
.endpoint-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.endpoint-edit{border:1px solid #dce5f0;padding:22px;border-radius:12px;min-width:0;background:var(--local)}
.endpoint-edit.remote{background:var(--remote);border-color:#d8e9df}
.endpoint-edit legend{font-size:13px;color:var(--blue-dark);font-weight:600;padding:0 8px}
.endpoint-edit.remote legend{color:var(--green)}
.endpoint-edit label{display:block;margin:15px 0 7px;font-size:12px}
.endpoint-edit label:first-of-type{margin-top:0}
.endpoint-edit input[readonly]{color:#6e7d91;background:#ffffff8c}
.edit-notes{margin-top:24px}
.edit-notes>label{display:block;font-size:12px;margin-bottom:8px}
.edit-notes>label>span{font-size:11px;margin-left:6px}
.edit-notes textarea{width:100%;resize:vertical;border:1px solid #d7e0eb;border-radius:9px;padding:13px;font:inherit;color:var(--ink);min-height:90px;background:white}
.edit-notes textarea:focus{outline:3px solid #0071e31b;border-color:#0071e3}
.edit-form-actions{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:26px;padding-top:22px;border-top:1px solid #e8edf3}
.delete-confirm-form{padding:25px;margin-top:24px;display:flex;flex-direction:column;align-items:flex-start;gap:18px}
.confirm-check{display:flex;align-items:center;gap:10px;font-size:13px}
.button.danger{background:#b24040;border-color:#b24040;color:white}
.query-code{display:block;font:18px/1.7 Consolas,monospace;letter-spacing:2px;color:#435870;margin:1px 0 8px}
.errorlist{list-style:none;padding:10px 12px;margin:5px 0;color:#b74343;background:#fff4f3;border-radius:7px;font-size:12px;line-height:1.7}
@media(min-width:1450px){.entry-layout{padding:90px 0 110px}}
@media(max-width:1050px){.entry-layout{gap:55px}.entry-intro h1{font-size:46px}.entry-card{padding:32px 28px 25px}}
@media(max-width:760px){.entry-nav{width:calc(100% - 40px);min-height:72px}.wordmark{font-size:20px}.admin-entry{font-size:11px}.entry-layout{display:block;width:min(440px,calc(100% - 40px));padding:35px 0 40px}.entry-intro{text-align:center}.entry-eyebrow{font-size:10px;letter-spacing:1px;margin-bottom:13px}.entry-intro h1{font-size:34px;letter-spacing:-1px;line-height:1.25;margin-bottom:14px}.entry-intro>p{font-size:12px;line-height:1.8}.entry-illustration,.entry-detail{display:none}.entry-card{margin-top:30px;padding:28px 24px 24px;border-radius:20px}.entry-card h1,.entry-card h2{font-size:26px}.entry-card-kicker{font-size:10px}.entry-card-description{font-size:11px;margin-bottom:23px}.entry-footer{width:calc(100% - 40px);min-height:65px;font-size:9px;gap:10px}.entry-footer>span:nth-child(2){max-width:180px;text-align:center}.single-entry{padding:35px 20px 50px}.single-entry .entry-card{margin:0}.scanner-dialog{padding:22px}.endpoint-edit-grid{grid-template-columns:1fr;gap:22px}.connection-edit-form{padding:20px}.endpoint-edit{padding:18px}.edit-form-actions{flex-direction:column;align-items:stretch}.edit-form-actions .button-row{justify-content:flex-end}.entry-form input:not([type=hidden]){font-size:16px!important}.entry-field>label>span{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(min-width:761px) and (max-height:820px){.entry-nav{min-height:72px}.entry-layout{padding:32px 0}.entry-card{padding:28px 32px 22px}.entry-card-kicker{margin-bottom:8px}.entry-card-description{margin-bottom:20px}.entry-form{gap:13px}.entry-divider{margin:16px 0}.entry-footer{min-height:60px}.entry-illustration{margin:32px 0 24px;height:120px}.entry-intro h1{font-size:50px}}
@media(max-width:760px){.entry-intro>p{display:none}.entry-layout{padding-top:28px}}
@media print{.row-actions,.mobile-row-actions,.public-header form{display:none}.entry-page{background:white}.entry-nav,.entry-footer{border:0}}

.registration-entry{padding-top:40px;padding-bottom:48px}.registration-entry .entry-card{max-width:480px}.entry-field-help{display:block;color:#86868b;font-size:11px;line-height:1.7;margin:7px 0 0}.entry-back.secondary-back{margin-top:12px;color:#86868b}.sidebar-footer small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:135px}
@media(max-width:760px){.registration-entry{padding-top:25px}.registration-entry .entry-card{padding:28px 24px}.entry-field-help{font-size:11px}}

/* Connection table and on-demand path. */
.connection-table .number-head,.connection-table .number-cell{width:66px;text-align:center;background:#f7f8fa;color:#86868b;padding-left:18px;padding-right:18px}
.number-cell a{display:inline-block;font:500 13px/2 Consolas,monospace;letter-spacing:1px;color:#0071e3;padding:4px}
[data-connection-path]{cursor:pointer}[data-connection-path]:hover>td{filter:brightness(.98)}[data-path-trigger]:focus-visible{outline:2px solid #0071e3;outline-offset:4px;border-radius:3px}
.mobile-connection-number{display:flex;align-items:center;justify-content:space-between;padding:10px 15px;color:#86868b;font-size:11px;border-bottom:1px solid #e8edf2;background:#fff}
.mobile-connection-number a{font:500 13px/1.5 Consolas,monospace;letter-spacing:1px;color:#0071e3}.mobile-connection-number a span{margin-left:8px}
.connection-path-dialog{width:min(680px,calc(100% - 40px));max-height:calc(100svh - 64px);border:1px solid #e8e8ed;border-radius:20px;padding:0;color:#1d1d1f;background:#fff;box-shadow:0 30px 100px #0003}
.connection-path-dialog::backdrop{background:#16191f66;backdrop-filter:blur(5px)}
.path-dialog-header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:20px 26px;border-bottom:1px solid #eeeef2;background:#fff}
.path-dialog-header h2{font-size:17px;font-weight:600;margin:0;letter-spacing:-.3px}.path-dialog-header h2>span{font-size:13px;color:#86868b;font-weight:400;letter-spacing:0}
.path-dialog-header .icon-button{font-size:26px;width:36px;height:36px;color:#86868b}.path-dialog-body,.path-page-content{padding:24px 26px 28px}
.path-summary{display:flex;align-items:center;gap:12px;color:#86868b;font-size:12px;margin-bottom:20px}.path-steps,.path-branches{list-style:none;padding:0;margin:0}
.path-hop{display:flex;align-items:center;gap:12px;min-height:38px;padding:7px 16px;color:#a1a1a6;font-size:11px;overflow-wrap:anywhere}.path-hop>span:first-child{font-size:20px;flex-shrink:0}.path-hop.selected{color:#0071e3}.path-hop b{font-size:10px;font-weight:500;white-space:nowrap;background:#eef6ff;border-radius:5px;padding:3px 7px}
.path-branches>li{padding:18px 0;border-top:1px solid #eeeef2}.path-branches>li:first-child{padding-top:0;border-top:0}.path-branches .selected-segment .trace-endpoint{border-color:#70b2f5}
.path-dialog-body .trace-endpoint,.path-page .trace-endpoint{border-radius:10px;min-width:0}.path-dialog-body .trace-endpoint>b,.path-page .trace-endpoint>b{min-width:0;overflow-wrap:anywhere}.path-hop>span:last-child{white-space:pre-wrap}
.path-page{max-width:780px}.path-dialog-open{overflow:hidden}.path-retry{margin-left:12px}
.edit-form-actions{justify-content:flex-end}
@media(max-width:680px){.connection-path-dialog{width:calc(100% - 24px);max-height:calc(100svh - 32px);border-radius:16px}.path-dialog-header{padding:15px 18px}.path-dialog-header h2{font-size:16px}.path-dialog-header h2>span{display:block;margin-bottom:4px;font-size:11px}.path-dialog-body,.path-page-content{padding:18px}.path-dialog-body .trace-endpoint,.path-page .trace-endpoint{gap:8px}.path-hop{gap:8px;padding:6px 12px}.path-hop b{font-size:10px}.path-summary{margin-bottom:16px}}
@media print{.connection-path-dialog{display:none}.number-cell a{color:inherit}}

/* Separate endpoint blocks joined by a physical connection. */
.connection-diagram-table{table-layout:fixed}
.connection-diagram-table th{padding:12px 20px;background:#fafbfc!important;color:#86868b!important;border:0;border-bottom:1px solid #e8edf2;font-size:11px}
.connection-diagram-table td{min-width:0;border:0;border-bottom:1px solid #e8edf2;padding:18px 20px;background:#fff;vertical-align:middle}
.connection-diagram-table tr:last-child td{border-bottom:0}.connection-diagram-table .number-head,.connection-diagram-table .number-cell{width:76px;min-width:0;background:#fff;padding:14px 12px}
.connection-diagram-table .notes-head:not(:last-child),.connection-diagram-table .notes-cell{width:18%;min-width:0;background:#fff;color:#86868b;font-size:12px;overflow-wrap:anywhere;white-space:pre-wrap}
.connection-diagram-table .row-actions,.connection-diagram-table th:last-child:not(.diagram-head){width:112px}.connection-diagram-table .row-actions .text-link{margin-right:10px}.connection-diagram-table .row-actions .text-link:last-child{margin:0}
.connection-diagram-table .diagram-cell{padding-left:16px;padding-right:16px}.connection-diagram-table .diagram-head{padding-left:16px}
.connection-pair{display:grid;grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr);align-items:center;min-width:0}
.connection-endpoint{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:4px 12px;align-items:center;min-width:0;min-height:76px;border:1px solid #dce7f6;border-radius:10px;background:var(--local);padding:12px 16px;color:#3b5e86}
.connection-endpoint.endpoint-b{background:var(--remote);border-color:#dceade;color:#416a50}.endpoint-cabinet{font-size:11px;line-height:1.5;overflow-wrap:anywhere;color:#6d85a0}.endpoint-b .endpoint-cabinet{color:#77917e}.endpoint-device{grid-column:1;grid-row:2;font-size:13px;line-height:1.6;overflow-wrap:anywhere;font-weight:600}
.connection-endpoint .endpoint-port{grid-column:2;grid-row:1/3;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center;font-size:11px;letter-spacing:.2px}
.pair-connector{display:flex;align-items:center;justify-content:center;position:relative;color:#95a4b5;min-width:0}.pair-connector::before{content:'';position:absolute;left:0;right:0;height:1px;background:#cbd7e2}.pair-connector>span{position:relative;background:#fff;padding:0 5px;font:19px/1.5 system-ui,sans-serif}
.connection-diagram-list .connection-pair{padding:16px}.connection-diagram-list .mobile-row-actions{padding:12px 16px;margin:0;border-top:1px solid #edf0f4}.connection-diagram-list .mobile-note{font-size:12px;padding:12px 16px}
[data-connection-path]:hover .connection-endpoint{border-color:#9cbbdf}[data-connection-path]:hover .endpoint-b{border-color:#a3c8af}
@media(min-width:681px) and (max-width:1050px){.connection-diagram-table .notes-cell,.connection-diagram-table .notes-head:not(:last-child){width:15%}.connection-diagram-table td{padding:15px 12px}.connection-diagram-table .number-head,.connection-diagram-table .number-cell{width:60px}.connection-diagram-table .row-actions,.connection-diagram-table th:last-child:not(.diagram-head){width:90px}.connection-pair{grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr)}.connection-endpoint{padding:10px 12px;gap:4px 8px}.connection-endpoint .endpoint-port{grid-column:1;grid-row:3;justify-self:start}.endpoint-device{font-size:12px}}
@media(max-width:680px){.connection-diagram-list .connection-pair{grid-template-columns:minmax(0,1fr);gap:0}.connection-endpoint{min-height:74px;padding:12px 15px}.endpoint-device{font-size:14px}.connection-endpoint .endpoint-port{font-size:12px}.pair-connector{height:34px}.pair-connector::before{left:50%;right:auto;width:1px;height:100%}.pair-connector>span{transform:rotate(90deg);padding:0 5px;line-height:1;background:#fff}.connection-diagram-list{padding-top:0}.connection-diagram-list .connection-mobile-card{border-color:#e0e5ec;border-radius:12px}}
@media print{.connection-diagram-table{table-layout:auto}.connection-diagram-table .row-actions{display:none}.connection-endpoint{break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}.connection-diagram-table td{padding:12px}}
