:root{color-scheme:dark;--bg:#0b111a;--panel:#111b28;--border:#263448;--text:#e1e9f3;--muted:#8fa0b7;--accent:#57d4b0}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.45 system-ui,-apple-system,Segoe UI,sans-serif}header{min-height:62px;padding:12px 22px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:12px;background:#101925}a{color:inherit;text-decoration:none}.brand{font-size:22px;display:flex;align-items:center;gap:9px}.brand>b{letter-spacing:2px}.brand>small{font-size:10px;letter-spacing:1.4px;margin-left:15px;color:var(--muted)}nav,.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}button,input,select,textarea{font:inherit;border:1px solid #33445b;border-radius:6px;background:#142133;color:var(--text);padding:8px 10px;min-width:0;max-width:100%}button{cursor:pointer;transition:border-color .15s,background .15s}button:hover{border-color:var(--accent);background:#1c3042}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button:disabled{opacity:.4;cursor:default}.primary{background:#65dfb9;color:#072820;font-weight:650;border-color:#65dfb9}.danger{color:#ff9f9f;border-color:#813e46}main{padding:18px 22px;max-width:2200px;margin:auto}h1,h2,p{margin-top:0}h1{font-size:25px;letter-spacing:-.5px;margin-bottom:0}h2{font-size:15px;font-weight:650;margin-bottom:0}.selectors{display:flex;gap:12px;align-items:end;margin-bottom:22px;flex-wrap:wrap}.selectors label{flex:1;min-width:140px}.selectors label:last-of-type{flex:.45}label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:12px}label input,label select,label textarea{width:100%;color:var(--text)}.heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}.breadcrumbs{display:flex;gap:5px;flex-wrap:wrap;color:var(--muted);margin-bottom:5px}.breadcrumbs button{border:0;padding:1px 5px;background:transparent;color:#9db2cb;font-size:12px}.panel{background:var(--panel);border:1px solid var(--border);border-radius:9px;padding:16px}.mapPanel{margin-bottom:16px}.mapHeading,.tableHead{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.stats{display:flex;gap:18px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.stats b{color:var(--text);font-variant-numeric:tabular-nums;margin-left:5px}.legend{display:flex;gap:18px;flex-wrap:wrap;margin:13px 0;font-size:11px;color:var(--muted)}.Reserved{--c:#d9b464}.Unavailable{--c:#ed8897}.Free{--c:#7d91ab}.Container{--c:#91a4c0}.legend span{color:var(--c,var(--muted))}#map{border:1px solid #435773;padding:10px;border-radius:6px;background:#0b1420}.mapRootLabel{font-size:12px;margin-bottom:8px;display:flex;justify-content:space-between;color:#adbed3}.cidrGrid{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:5px}.cidrNode{min-width:0;border:1px solid var(--c,#657c98);background:#152338;border-radius:5px;overflow:hidden;grid-column:span 4}.span1{grid-column:span 1}.span2{grid-column:span 2}.span4{grid-column:span 4}.span8{grid-column:span 8}.span16{grid-column:span 16}.cidrNode.Free{border-style:dashed;background:repeating-linear-gradient(135deg,#14202e,#14202e 5px,#172433 5px,#172433 6px)}.cidrNode>button{width:100%;height:100%;min-height:52px;display:flex;flex-direction:column;align-items:start;justify-content:center;border:0;border-radius:0;background:transparent;padding:7px;color:var(--c)}.cidrNode b{font-size:12px;overflow-wrap:anywhere}.cidrNode small{font-size:10px;color:#b2c0d3;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nested{padding:6px;border-top:1px solid #34465f;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.nested button{font-size:10px;padding:5px;min-height:32px;color:var(--c);overflow-wrap:anywhere}.hint{font-size:11px;color:var(--muted);margin:10px 0 0}.tableHead{margin-bottom:12px}#rowCount{font-weight:400;color:var(--muted);margin-left:8px}.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.filters input{flex:1;min-width:200px}table{width:100%;border-collapse:collapse;table-layout:fixed}th{color:var(--muted);font-size:11px;font-weight:500;text-align:left}th,td{padding:9px 8px;border-bottom:1px solid #223145;overflow-wrap:anywhere}td{font-size:12px}td:first-child{font-family:ui-monospace,monospace;color:#9fc7fa}tbody tr:hover{background:#172539;cursor:pointer}th:nth-child(1){width:17%}th:nth-child(5){width:5%}.badge{display:inline-block;color:var(--c);border:1px solid var(--c);padding:2px 5px;font-size:10px;border-radius:4px}.pagination{display:flex;justify-content:flex-end;gap:14px;align-items:center;margin-top:12px;font-size:12px;color:var(--muted)}dialog{width:min(820px,calc(100% - 24px));max-height:90vh;border:1px solid #425672;background:var(--panel);color:var(--text);border-radius:10px;padding:20px}dialog::backdrop{background:#020811be;backdrop-filter:blur(3px)}.dialogHead{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:10px}.formGrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.formGrid .wide{grid-column:1/-1}.formGrid textarea{min-height:70px;resize:vertical}.formGrid .actions{margin-top:8px}.check{flex-direction:row;align-items:center}.check input{width:auto}.details{display:grid;grid-template-columns:140px 1fr;gap:9px;overflow-wrap:anywhere;margin-bottom:20px}.details dt{color:var(--muted)}.details dd{margin:0}.login{max-width:430px;margin:70px auto;padding:30px;display:flex;flex-direction:column;gap:18px}.login h1{font-size:25px}.login p{color:var(--muted);margin-bottom:0}.eyebrow{color:var(--accent);font-size:10px;letter-spacing:2px}#notice:empty{display:none}#notice{position:fixed;right:20px;bottom:20px;max-width:min(540px,calc(100% - 40px));padding:12px 18px;background:#203a37;border:1px solid #63b498;z-index:20;border-radius:7px;white-space:pre-wrap}#notice.error{background:#442632;border-color:#d68090}.readonly{padding:10px;border:1px solid #95793f;background:#392e1a;margin-bottom:12px}.adminTabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.adminRow{display:flex;gap:8px;padding:8px;border-bottom:1px solid var(--border);align-items:center;flex-wrap:wrap}.adminRow span{flex:1;min-width:180px;overflow-wrap:anywhere}.importPreview{max-height:300px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:12px ui-monospace,monospace;background:#0b1420;padding:12px}.auditEntry{padding:12px;border-bottom:1px solid var(--border)}.auditEntry summary{cursor:pointer;font-size:12px}.auditEntry pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}[hidden]{display:none!important}@media(max-width:900px){header,main{padding:12px}.brand>small{display:none}.cidrGrid{grid-template-columns:repeat(8,minmax(0,1fr))}.span16{grid-column:span 8}.nested{grid-template-columns:repeat(2,minmax(0,1fr))}.stats{gap:10px}table thead{display:none}table,tbody,tr,td{display:block;width:100%}tbody tr{display:grid;grid-template-columns:1fr 1fr;padding:8px 0;border-bottom:1px solid var(--border)}td{border:0;padding:4px;min-width:0}td:before{content:attr(data-label) ': ';font:10px system-ui;color:var(--muted)}.heading .actions{width:100%}}@media(max-width:520px){header{align-items:start}.brand{font-size:18px}nav{justify-content:flex-end;font-size:11px}nav button{font-size:11px;padding:5px}.selectors{gap:8px}.selectors label{min-width:calc(50% - 8px)}.panel{padding:10px}.cidrGrid{grid-template-columns:repeat(4,minmax(0,1fr))}.span8,.span16{grid-column:span 4}.cidrNode>button{padding:5px}.formGrid{grid-template-columns:1fr}.details{grid-template-columns:100px 1fr}.legend{gap:10px}.actions button{font-size:12px}h1{font-size:20px}.stats{font-size:10px}.filters input{min-width:100%;width:100%}}
.cidrNode.selected{outline:none;box-shadow:inset 4px 0 0 var(--accent);background:#203c3b}.cidrNode>button:focus:not(:focus-visible),.nested button:focus:not(:focus-visible){outline:none}.cidrNode>button:focus-visible,.nested button:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
/* Full CIDR first. Only measured narrow IPv4 labels use compact text. */
.cidrNode > button{height:auto;min-height:60px;padding:7px 6px;text-align:left}
.cidrNode .cidrLabel{text-align:left;display:block;width:100%;min-width:0;max-width:100%;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.35;white-space:normal;overflow-wrap:anywhere;word-break:normal}
.nested{grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr))}
.nested button{min-height:44px;padding:7px 5px;text-align:left}
.nested .cidrLabel{font-size:11px}
#dialogTitle{min-width:0;overflow-wrap:anywhere}
.mapRootLabel{gap:8px;flex-wrap:wrap;overflow-wrap:anywhere}
@media(max-width:520px){.cidrNode .cidrLabel{font-size:11px}.cidrNode>button{padding:6px 4px}.nested{grid-template-columns:repeat(auto-fit,minmax(min(100%,135px),1fr))}}
/* A notice inside modal dialog participates in the same top layer as the form. */
#notice.dialogNotice{position:sticky;top:0;right:auto;bottom:auto;max-width:100%;width:100%;margin:0 0 12px;z-index:2;white-space:pre-wrap}
.subnetControls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0}
.subnetControls label{display:flex;flex-direction:row;align-items:center;gap:8px;flex:1;min-width:200px}
.subnetControls input[type=range]{width:100%;max-width:330px;accent-color:var(--accent);padding:0}
.subnetControls output{font:600 15px ui-monospace,monospace;color:var(--text);min-width:42px}
.assignments th:nth-child(1){width:17%}.assignments th:nth-child(2),.assignments th:nth-child(3){width:8%}.assignments th:nth-child(5){width:auto}.assignments th:nth-child(7){width:5%}
@media(max-width:900px){.assignments th{width:auto}#notice.dialogNotice{font-size:12px}.subnetControls label{min-width:100%}}

/* One CIDR grid: selectable free subnet, too-small remainder, deferred region. */
.cidrNode.candidateChoice{border:2px dashed #65dfb9;background:#17342f}
.cidrNode.candidateChoice>button{color:#8ceacb}
.cidrNode.freeUnfit{border-color:#46546a;background:#15202c}
.cidrNode.freeUnfit>button{color:#8fa0b7;cursor:help}
.cidrNode.freeDeferred{border-color:#71a5cc}.cidrNode.freeDeferred>button{color:#a6cfee}
.cidrNode.freeUnfit small,.cidrNode.freeDeferred small{white-space:normal}

.devicePicker{position:relative;min-width:0;display:flex;flex-direction:column;gap:5px}
.deviceInputWrap{position:relative}.devicePicker input{width:100%;padding-right:30px}.deviceArrow{position:absolute;right:12px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--muted)}
.deviceMenu{position:absolute;top:100%;left:0;right:0;z-index:5;margin-top:4px;padding:5px;border:1px solid #536b88;border-radius:7px;background:#101d2d;box-shadow:0 8px 22px #0009;max-height:min(270px,35vh);overflow:auto;overscroll-behavior:contain}
.deviceOption{display:flex;align-items:stretch;gap:5px;border-bottom:1px solid var(--border)}
.deviceName{flex:1;min-width:0;text-align:left;overflow-wrap:anywhere;background:transparent;border:0;min-height:44px}
.deviceMenu .deviceDelete{flex:none;min-width:44px;min-height:44px;color:#ff7777;font-size:18px;padding:4px 9px;align-self:center}
.deviceCreate{width:100%;text-align:left;min-height:44px;color:var(--accent);white-space:normal;overflow-wrap:anywhere}
.deviceMenu .hint{padding:8px;margin:0}

.Managment{--c:#b69cff}.Client{--c:#64a9fd}
.cidrNode.isContainer{border:2px solid var(--c);background:transparent;border-radius:8px;padding:3px}
.cidrNode.isContainer>button{min-height:46px;border-bottom:1px solid var(--c)}
.cidrNode.isContainer>.nested{border:0;background:#0b1420;margin-top:3px}
.subnetControls .check{flex:none;min-width:0}.subnetControls .check input{width:auto}
.assignments th:nth-child(1){width:17%}.assignments th:nth-child(7){width:auto}.assignments th:nth-child(8){width:5%}

.nested button.isContainer{border:2px solid var(--c);background:transparent;border-radius:8px}.nested button small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.cidrNode small.mapRange,.nested small.mapRange{white-space:normal;overflow-wrap:anywhere;overflow:visible;font-family:ui-monospace,monospace;color:#b8c9dc}.cidrNode.span1 .mapRange,.cidrNode.span2 .mapRange{display:none}.mapPool{color:var(--muted)}

.managementDialog{width:min(1060px,calc(100% - 24px))}.adminTabs{border-bottom:1px solid var(--border);padding-bottom:12px}.adminTabs button.active{border-color:var(--accent);background:#203c3b;color:var(--accent)}.adminIntro{margin:10px 0 16px;max-width:850px;line-height:1.6}.adminToolbar{display:flex;gap:10px;margin-bottom:16px;flex-wrap:wrap}.adminToolbar input{flex:1;min-width:min(100%,260px)}.adminList{display:grid;gap:8px}.adminRow{background:#0f1926;border:1px solid var(--border);border-radius:8px;padding:12px}.adminInfo{flex:1;min-width:180px;overflow-wrap:anywhere}.adminInfo strong{color:var(--text);font-size:14px}.adminInfo p{color:var(--muted);font-size:12px;margin:5px 0 0}.adminRow .actions{flex:none}.managementDialog h3{margin:8px 0;font-size:17px}
@media(max-width:600px){.adminTabs{display:grid;grid-template-columns:1fr 1fr;gap:6px}.adminTabs button{min-height:44px;font-size:12px;white-space:normal}.adminRow{display:block}.adminRow .actions{margin-top:12px}.adminRow .actions button{min-height:44px}.adminToolbar input{min-width:100%}.managementDialog{padding:12px}}
/* Thirteen assignment columns; full start/end addresses retain useful width. */
.assignments table th:nth-child(1){width:16%}.assignments table th:nth-child(2),.assignments table th:nth-child(3){width:11%}.assignments table th:nth-child(4),.assignments table th:nth-child(5){width:6%}.assignments table th:nth-child(6){width:8%}.assignments table th:nth-child(7){width:7%}.assignments table th:nth-child(8){width:5%}.assignments table th:nth-child(9){width:8%}.assignments table th:nth-child(10){width:4%}.assignments table th:nth-child(11),.assignments table th:nth-child(12),.assignments table th:nth-child(13){width:6%}

.connectionType{border:1px solid var(--border);border-radius:7px;padding:12px;display:flex;gap:24px;flex-wrap:wrap}.connectionType legend{color:var(--muted);font-size:12px}.connectionType .check{color:var(--text);font-size:14px}.connectionType input{accent-color:var(--accent);min-width:20px;min-height:20px}
/* Readable full addresses and wider postal address/connection columns. */
#table{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.assignments table{min-width:1545px;table-layout:fixed}.assignments table th:nth-child(1){width:140px}.assignments table th:nth-child(2),.assignments table th:nth-child(3){width:115px}.assignments table th:nth-child(4),.assignments table th:nth-child(5){width:65px}.assignments table th:nth-child(6){width:95px}.assignments table th:nth-child(7){width:210px}.assignments table th:nth-child(8){width:65px}.assignments table th:nth-child(9){width:100px}.assignments table th:nth-child(10){width:260px}.assignments table th:nth-child(11){width:100px}.assignments table th:nth-child(12){width:80px}.assignments table th:nth-child(13){width:140px}
.assignments .addressCell{white-space:normal;word-break:normal;overflow-wrap:break-word;text-overflow:clip}.assignments .connectionCell{white-space:normal;word-break:normal;line-height:1.6}.connectionCell div:first-child{font-weight:600;color:var(--text)}
@media(max-width:900px){.assignments table{min-width:0;width:100%}.assignments .addressCell,.assignments .connectionCell{grid-column:1/-1}.assignments .connectionCell{padding-top:8px;padding-bottom:8px;border-top:1px solid var(--border)}}
.providerInputWrap{position:relative}

/* Read-only catalog choices: search is not a new parent value. */
.parentOption{display:block;width:100%;min-height:44px;white-space:normal;word-break:normal;text-align:left}.parentOption.active{background:#203c3b;color:var(--accent);box-shadow:inset 3px 0 var(--accent)}.parentMenu{max-height:min(320px,40vh)}.parentPicker>.hint:empty{display:none}

/* Server-backed history: wide dialog, calm action tags and readable differences. */
.historyDialog{width:min(1280px,calc(100% - 24px))}.historyFilters{margin:16px 0}.historyMainFilters,.historyFilterGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.historyMainFilters>label:first-child{grid-column:1/-1}.historyExtraFilters{margin:14px 0;padding:12px;border:1px solid var(--border);border-radius:8px}.historyExtraFilters>summary{cursor:pointer;color:var(--muted);margin-bottom:8px}.historyCount{margin:18px 0 10px;color:var(--muted)}.historyActive{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}.historyChip{font-size:11px;background:#1b2c3d;border-radius:5px;padding:4px 8px;overflow-wrap:anywhere}.historyList{display:grid;gap:10px}.historyRow{border:1px solid var(--border);border-radius:8px;background:#0e1825;overflow:hidden}.historyRow>summary{cursor:pointer;padding:14px;list-style:none;display:grid;gap:6px}.historyRow>summary::after{content:'Подробности ▾';color:var(--muted);font-size:11px}.historyRow[open]>summary::after{content:'Свернуть ▴'}.historyRowTop{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.historyActor{color:var(--text)}.historyAction{font-size:11px;padding:2px 7px;border-radius:4px;background:#243346;color:#bad0e8}.historyAction.action-create{background:#203c35;color:#99d7bd}.historyAction.action-delete,.historyAction.action-release{background:#3c2933;color:#e5acba}.historyAction.action-move,.historyAction.action-container_adopt{background:#383047;color:#c9b7e6}.historyTitle{font-size:14px;font-weight:600;overflow-wrap:anywhere}.historySummary{font-size:13px;overflow-wrap:anywhere}.historyContext{color:var(--muted);font-size:11px;overflow-wrap:anywhere}.historyEventBody{padding:0 14px 14px;border-top:1px solid var(--border)}.historyLink{margin:12px 0}.historyChanges{overflow-x:auto;margin-top:12px}.historyChanges table{min-width:560px;table-layout:fixed}.historyChanges th,.historyChanges td{width:33.33%;white-space:pre-wrap;overflow-wrap:anywhere}.historyChanges th:first-child{width:24%}.historyChanges tbody tr:hover{cursor:default}.historyAffected,.historyTechnical{margin-top:14px;border:1px solid var(--border);border-radius:6px;padding:10px}.historyAffected>summary,.historyTechnical>summary,.historyAffectedItem>summary{cursor:pointer;font-size:12px;overflow-wrap:anywhere}.historyAffectedItem{margin-top:10px}.historyTechnical pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;font-size:11px;color:var(--muted)}.historyPagination{display:flex;gap:14px;align-items:center;justify-content:center;margin-top:18px}.historyEmpty{padding:24px;border:1px dashed var(--border);border-radius:8px;color:var(--muted)}
@media(max-width:900px){.historyChanges table,.historyChanges thead,.historyChanges tbody,.historyChanges tr{display:table;width:100%}.historyChanges thead{display:table-header-group}.historyChanges tbody{display:table-row-group}.historyChanges tr{display:table-row;padding:0}.historyChanges th,.historyChanges td{display:table-cell;width:auto;border-bottom:1px solid var(--border);padding:8px}.historyChanges td::before{content:none}.historyMainFilters,.historyFilterGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.historyDialog{padding:12px}.historyMainFilters,.historyFilterGrid{grid-template-columns:1fr}.historyFilters button,.historyPagination button{min-height:44px}.historyRow>summary{padding:12px}.historyRowTop{gap:8px}.historyEventBody{padding:0 10px 10px}.historyPagination{gap:8px;font-size:12px}}

/* A closed notice has no contents and no hit-testing surface. */
#notice{display:flex;align-items:flex-start;gap:12px;padding:12px}.noticeText{flex:1;min-width:0;overflow-wrap:anywhere}.noticeClose{flex:none;min-height:36px;min-width:36px;padding:4px;background:transparent;border-color:transparent}.noticeClose:focus-visible{outline:2px solid var(--accent)}
.hostsPanel{margin-top:16px}.hostSearch{margin:14px 0;max-width:600px}.hostRow{padding:14px 0;border-bottom:1px solid var(--border);overflow-wrap:anywhere}.hostName{font-weight:600}.hostAddresses{margin-top:10px;color:#9fc7fa;font-family:ui-monospace,monospace;overflow-wrap:anywhere}.hostWarning{margin:8px 0 0;font-size:12px;color:#e5bd75;overflow-wrap:anywhere}.hostIpCard{padding:12px 0;border-bottom:1px solid var(--border);display:flex;flex-wrap:wrap;align-items:center;gap:10px}.hostIpCard .hostWarning{width:100%}.relatedHosts{margin-top:20px}.relatedHosts button{display:block;margin-top:10px;text-align:left}.hostIpEditor{border:1px solid var(--border);border-radius:8px;padding:12px}.hostIpEditRow{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:10px;align-items:end;margin:12px 0}.hostIpInfo{grid-column:1/-1}.hostIpEditor button,.hostsPanel button{min-height:44px}.fieldError{display:block;font-size:12px;color:#ffacac;white-space:pre-wrap;overflow-wrap:anywhere}[aria-invalid="true"]{border-color:#d68090}
@media(max-width:520px){.hostIpCard{align-items:stretch;flex-direction:column}.hostIpCard button{width:100%;text-align:left}.hostIpEditor{padding:10px}.noticeClose{min-height:44px;min-width:44px}.hostRow{padding:12px 0}}

/* Hosts belong to Assignments; cards and editors stay in the same panel. */
.assignmentTabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.assignmentTabs button{min-height:44px}.assignmentTabs [aria-selected="true"]{background:#203e61;border-color:#689ed1;color:#e9f3ff}.assignmentTabs button:focus-visible,.hostEditor button:focus-visible{outline:2px solid #78aef0;outline-offset:3px}.assignmentObjectFilters{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.assignments .hostsPanel{margin-top:12px}.hostEditor{padding:16px;margin-top:14px;border:1px solid var(--border);border-radius:10px;background:#101e2e}.hostEditor .tableHead{gap:12px;margin-bottom:16px}.hostEditor .tableHead h3{margin:0;overflow-wrap:anywhere}.hostEditor button{min-height:44px}.hostEditor .formGrid{max-width:100%;}.hostEditor .details{overflow-wrap:anywhere}@media(max-width:520px){.hostEditor{padding:10px}.hostEditor .tableHead{align-items:flex-start;flex-direction:column}.assignmentTabs{width:100%}.assignmentTabs button{flex:1}}

/* Compact mixed hierarchy: one set of headings; host pool_id remains authoritative. */
#table{overflow:visible;min-width:0}.hierarchyRoot{min-width:0}.hierarchyRoot>summary{cursor:pointer;font-size:14px;font-weight:600;padding:9px 4px;border-bottom:1px solid var(--border);overflow-wrap:anywhere}.hierarchyChildren{min-width:0;overflow:visible}
#table .hierarchyTable{width:100%;min-width:0!important;table-layout:fixed}#table .hierarchyTable th,#table .hierarchyTable td{padding:7px 6px;overflow-wrap:normal;vertical-align:middle}#table .hierarchyTable td{font-size:12px}#table .hierarchyTable th{white-space:nowrap}#table .hierarchyTable td:first-child{font-family:inherit;color:var(--muted)}
#table .hierarchyTable .treeCol-entry_type{width:112px}#table .hierarchyTable .treeCol-cidr{width:160px}#table .hierarchyTable .treeCol-start_ip,#table .hierarchyTable .treeCol-end_ip{width:118px}#table .hierarchyTable .treeCol-total_ip,#table .hierarchyTable .treeCol-usable_ip{width:72px}#table .hierarchyTable .treeCol-name{width:auto}#table .hierarchyTable .treeCol-address{width:210px}#table .hierarchyTable .treeCol-shaper{width:65px}#table .hierarchyTable .treeCol-device{width:110px}#table .hierarchyTable .treeCol-connection{width:230px}#table .hierarchyTable .treeCol-site_name{width:100px}#table .hierarchyTable .treeCol-status{width:100px}#table .hierarchyTable .treeCol-actions{width:108px}
#table .hierarchyTable .treeCol-cidr,#table .hierarchyTable .treeCol-start_ip,#table .hierarchyTable .treeCol-end_ip,#table .hierarchyTable .treeCol-total_ip,#table .hierarchyTable .treeCol-usable_ip,#table .hierarchyTable .treeCol-status,.entryType{white-space:nowrap}#table .hierarchyTable .treeCol-cidr{font-family:ui-monospace,monospace;color:#9fc7fa;overflow:hidden;text-overflow:ellipsis}.treeName{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}#table .hierarchyTable .treeCol-name{min-width:0}#table .hierarchyTable .treeCol-device,#table .hierarchyTable .treeCol-site_name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#table .hierarchyTable .connectionCell{line-height:1.45}.hierarchyHost{background:#122637}
#table .hierarchyTable td:first-child .treeChevron{border:0;border-radius:0;background:transparent;min-width:24px;min-height:28px;padding:2px;margin:0 3px 0 0;color:var(--accent);font-size:16px}.treeChevron:focus-visible,.treeName:focus-visible,.hierarchyRoot>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.hierarchyBranch>td{padding:0 0 0 12px;border-left:2px solid #426789}.hierarchyBranch:hover{background:transparent;cursor:default}.hierarchyBranch .hierarchyChildren{padding:0}.hierarchyBranch #table .hierarchyTable{margin:0}.treeActions{display:flex;align-items:center;gap:2px;white-space:nowrap}.treeActions>button{padding:4px;min-height:30px;font-size:11px}.treeMenu{position:relative}.treeMenu>summary{list-style:none;cursor:pointer;font-size:20px;padding:0 7px;line-height:30px}.treeMenu>summary::-webkit-details-marker{display:none}.treeMenuBody{position:absolute;right:0;top:100%;z-index:4;width:min(280px,70vw);border:1px solid var(--border);border-radius:6px;background:#152338;padding:10px;box-shadow:0 8px 20px #0008;white-space:normal}.treeMenuBody button{display:block;margin-top:8px;width:100%;font-size:12px}.treeFullName{display:block;overflow-wrap:anywhere;user-select:text}.treeMenu>summary:focus-visible{outline:2px solid var(--accent)}
/* Preserve columns in the card rather than squeezing the main name column. */
@media(max-width:1800px){#table .hierarchyTable .treeCol-start_ip,#table .hierarchyTable .treeCol-end_ip,#table .hierarchyTable .treeCol-shaper,#table .hierarchyTable .treeCol-site_name{display:none}#table .hierarchyTable .treeCol-address{width:180px}#table .hierarchyTable .treeCol-connection{width:215px}}
@media(max-width:1200px){#table .hierarchyTable .treeCol-address,#table .hierarchyTable .treeCol-device,#table .hierarchyTable .treeCol-total_ip,#table .hierarchyTable .treeCol-usable_ip{display:none}}
@media(max-width:900px){#table .hierarchyTable,#table .hierarchyTable tbody{display:table;width:100%}#table .hierarchyTable thead{display:table-header-group}#table .hierarchyTable tbody{display:table-row-group}#table .hierarchyTable tr{display:table-row;padding:0}#table .hierarchyTable td,#table .hierarchyTable th{display:table-cell}#table .hierarchyTable td:before{content:none}#table .hierarchyTable .treeCol-connection,#table .hierarchyTable .treeCol-status{display:none}#table .hierarchyTable .treeCol-entry_type{width:90px}#table .hierarchyTable .treeCol-cidr{width:150px}#table .hierarchyTable .treeCol-actions{width:92px}}
@media(max-width:600px){main{padding:10px}.panel{padding:8px}#table .hierarchyTable .treeCol-entry_type{display:none}#table .hierarchyTable .treeCol-name{display:table-cell}#table .hierarchyTable .treeCol-cidr{width:130px}#table .hierarchyTable .treeCol-actions{width:34px}.treeActions>button{display:none}.treeMenu>summary{padding:0 6px;line-height:44px}#table .hierarchyTable .treeCol-name .treeChevron{display:inline-block}.hierarchyBranch>td{padding-left:5px}.treeName{font-size:12px}.historyRowTop time,.historyAction{white-space:nowrap}}
.historyRowTop time,.historyAction,.historyActor{white-space:nowrap}
#table .hierarchyTable .treeNameCell{position:relative}.treeNameCell .treeChevron{float:left;border:0;border-radius:0;background:transparent;min-width:24px;min-height:28px;margin:0 3px 0 0;padding:2px;color:var(--accent);font-size:16px}.treeNameCell .treeName{line-height:28px}#table .hierarchyTable .treeCol-address{width:180px}#table .hierarchyTable .treeCol-connection{width:190px}#table .hierarchyTable .treeCol-device{width:95px}#table .hierarchyTable .treeCol-total_ip,#table .hierarchyTable .treeCol-usable_ip{width:62px}
@media(max-width:600px){.treeNameCell .treeChevron{min-height:36px;width:24px}.treeNameCell .treeName{line-height:36px}}
@media(min-width:1201px) and (max-width:1500px){#table .hierarchyTable .treeCol-total_ip,#table .hierarchyTable .treeCol-usable_ip{display:none}}
