
:root{color-scheme:dark;--canvas:#0e1622;--surface:#152131;--ink:#e7edf5;--muted:#afbed1;--line:#304359;--accent:#80d4ca;--soft:#203d3c;--danger:#ffb3b3;font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}
:root[data-theme=light]{color-scheme:light;--canvas:#f4f6f9;--surface:#fff;--ink:#18253b;--muted:#58667a;--line:#dce3eb;--accent:#166a65;--soft:#e9f4f1;--danger:#a8323a}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--canvas);color:var(--ink)}h1,h2,h3,p{margin:0}h1{font-size:1.75rem;letter-spacing:-.035em}h2{font-size:1.1rem}h3{font-size:.95rem}p+p{margin-top:.7rem}.muted,small{color:var(--muted)}small{font-size:.78rem}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button{border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);padding:.5rem .8rem;font-weight:600;cursor:pointer;white-space:nowrap}button:hover{background:var(--soft)}button:disabled{opacity:.5;cursor:default}.primary{background:var(--soft);border-color:var(--accent)}.danger{color:var(--danger)}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.sidebar{position:fixed;inset:0 auto 0 0;width:220px;display:flex;flex-direction:column;padding:1.8rem 1rem;background:#132236;color:#d9e4f0}.brand{display:flex;align-items:center;gap:.65rem;color:#fff;font-size:1.2rem;font-weight:700;padding:0 .3rem 1.6rem}.brand img{object-fit:contain;border-radius:8px}.brand small{display:block;font-weight:400}.sidebar nav{display:grid;gap:.35rem;border-top:1px solid #2a394c;padding-top:1rem}.nav-link{padding:.75rem .85rem;border-radius:7px;color:#c1cede;font-size:.92rem;font-weight:550}.nav-link:hover,.nav-link[aria-current=page]{background:#29453f;color:#baf0df;text-decoration:none}.sidebar-note{margin-top:auto;padding:.8rem;font-size:.75rem;color:#afbed1}.workspace{margin-left:220px;max-width:1700px;padding:2rem 2.4rem 3rem}.topbar,.toolbar,.panel-heading,.view-heading{display:flex;justify-content:space-between;align-items:center;gap:.8rem}.toolbar{flex-wrap:wrap;font-size:.85rem}.topbar{margin-bottom:1.5rem}.topbar p,.view-heading p{font-size:.85rem;color:var(--muted)}.view-heading{margin-bottom:1rem}.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:1.2rem}.panel-heading{padding:1rem 1.3rem;border-bottom:1px solid var(--line)}.panel-body{padding:1.3rem}.panel-body p{font-size:.88rem}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1.2rem}.metric{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:1.1rem}.metric span{font-size:.8rem;color:var(--muted)}.metric strong{display:block;margin-top:.3rem;font-size:1.45rem}.table-scroll{overflow-x:auto;max-width:100%}table{border-collapse:collapse;width:100%;text-align:left;font-size:.82rem}th{font-size:.73rem;color:var(--muted);font-weight:650;white-space:nowrap;background:var(--canvas)}td,th{padding:.8rem 1rem;border-bottom:1px solid var(--line);vertical-align:top}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:var(--canvas)}td button{font-size:.78rem;padding:.35rem .6rem}td small{display:block;margin-top:.2rem}.badge{display:inline-block;padding:.18rem .55rem;border-radius:99px;background:var(--canvas);border:1px solid var(--line);font-size:.74rem;white-space:nowrap}.badge[data-state=enrolled]{background:var(--soft);color:var(--accent)}.empty{padding:1.4rem;color:var(--muted);font-size:.85rem}label{display:flex;flex-direction:column;gap:.4rem;font-size:.82rem;font-weight:600;margin-bottom:1rem}input,select,textarea{width:100%;min-width:0;background:var(--canvas);border:1px solid var(--line);border-radius:7px;color:var(--ink);padding:.6rem .7rem}input[readonly]{font-family:monospace;font-size:.82rem}textarea,pre{font:12px/1.6 ui-monospace,Consolas,monospace}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--canvas);padding:1rem;border:1px solid var(--line);border-radius:7px}summary{cursor:pointer;padding:.8rem 0}details{margin-top:.8rem}dl{display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,3fr);gap:.65rem;font-size:.85rem}dt{color:var(--muted)}dd{margin:0;overflow-wrap:anywhere}.operation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1rem;margin-top:1rem}.operation-grid button{justify-self:start}#notice:empty{display:none}#notice{background:var(--soft);border:1px solid var(--line);border-radius:8px;padding:.8rem 1rem;margin-bottom:1rem;font-size:.88rem;overflow-wrap:anywhere}.login{max-width:480px;margin:10vh auto;padding:1rem}.login-brand{color:var(--ink);padding:0 0 1.5rem}.login form{margin:1.5rem 0}.login form button{width:100%}dialog{max-width:920px;width:calc(100% - 2rem);max-height:85vh;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:0}dialog::backdrop{background:#0009}dialog .panel-heading{position:sticky;top:0;background:var(--surface)}.history-entry{padding:.9rem 0;border-bottom:1px solid var(--line)}.history-entry button{margin-left:.7rem}.detail-actions{display:flex;gap:.6rem;margin-top:1rem}
#learning-destination-choices label{flex-direction:row;align-items:center}#learning-destination-choices input{width:16px;min-width:16px}#register-learning-unit input[type=checkbox]{width:16px;min-width:16px}#device-capability-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin:1rem 0}#device-capability-choices label{flex-direction:row;align-items:center;margin:0}#device-capability-choices input{width:16px;min-width:16px}#device-capability-choices p{grid-column:1/-1}@media(max-width:950px){.workspace{padding:1.5rem}.topbar{align-items:flex-start;flex-wrap:wrap}.metrics{grid-template-columns:1fr}.metric strong{font-size:1.2rem}}@media(max-width:680px){.sidebar{position:static;width:auto;padding:1rem}.sidebar nav{display:flex;flex-wrap:wrap;gap:.15rem}.nav-link{font-size:.8rem;padding:.5rem}.sidebar-note{display:none}.brand{padding-bottom:.7rem}.workspace{margin:0;padding:1rem}.view-heading,.panel-heading{flex-wrap:wrap}.operation-grid{grid-template-columns:1fr}dl{grid-template-columns:1fr}dd{margin-bottom:.7rem}}

.gate-terminal{max-width:100%;overflow:auto;min-height:28em}.gate-terminal .xterm{padding:8px}

.archiver-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4rem;margin:1rem 0}
.archiver-overview strong{display:block;font-size:1.65rem;margin:.25rem 0}.archiver-overview p{margin:0;color:var(--muted)}
.archiver-distribution-row{margin:1rem 0}.archiver-distribution-row>div{display:flex;justify-content:space-between;gap:1rem}
.archiver-distribution-row progress{display:block;width:100%;height:.65rem;accent-color:var(--accent)}
.archiver-distribution-row[data-classification=deferred] progress{accent-color:#d98b22}
.archiver-distribution-row[data-classification=retain] progress{accent-color:#7a8ba5}
#archiver-catalog input[type=checkbox]{width:auto;min-width:0}
@media(max-width:550px){.archiver-overview{grid-template-columns:1fr}}

#lxd-host-info{display:flex;align-items:center;justify-content:space-between}#lxd-health dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.3rem 1rem;border-block:1px solid var(--line);padding:1rem 0;margin:1rem 0}#lxd-health dt{grid-row:1}#lxd-health dd{margin:0;font-weight:600;overflow-wrap:anywhere}#lxd-host-actions{order:2}.lxd-host-connection[data-state=connected]{color:#24bd79}.lxd-host-more{margin-left:auto;position:relative}.lxd-host-more summary{cursor:pointer;list-style:none;border:1px solid var(--line);border-radius:8px;padding:.5rem .8rem}.lxd-host-more[open]>div{position:absolute;right:0;z-index:5;min-width:160px;background:var(--surface);padding:.7rem;border:1px solid var(--line);border-radius:8px}#lxd-detail>.panel:first-child{display:flex;flex-direction:column}#record-content .gate-terminal{min-height:240px;margin-top:1rem;padding:.8rem;border:1px solid var(--line);border-radius:10px;background:#0e1622}#record-content .gate-terminal pre{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:560px){#lxd-health dl{grid-template-columns:1fr}#lxd-health dt{grid-row:auto}}
.remote-console .toolbar{justify-content:flex-start;gap:.5rem}.remote-console-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.remote-console-heading>p:first-child{font-weight:600}.remote-console-heading>p+p{margin-top:0}.remote-console .gate-terminal pre{border:0;background:transparent;margin:0;padding:0;min-height:200px}.remote-console [role=status]{font-size:.9rem}#lxd-detail>.panel:first-child:has(.lxd-host-more[open]){overflow:visible;position:relative;z-index:2}.lxd-host-more[open]{z-index:3}.lxd-host-connection[data-state=disconnected],.remote-console-heading [data-state=disconnected]{color:#ed7777}.remote-console-heading [data-state=connected]{color:#24bd79}
#record-content [data-nginx-configurations]:not(:empty){margin-block:1rem;padding-block:1rem;border-block:1px solid var(--line)}#record-content .gate-terminal{min-height:240px;margin-top:1rem;padding:.8rem;border:1px solid var(--line);border-radius:10px;background:#0e1622}#record-content .gate-terminal pre{white-space:pre-wrap;overflow-wrap:anywhere}
.nginx-form{display:grid;gap:18px}.nginx-form label{display:grid;gap:8px}.nginx-form .nginx-file{border-top:1px solid var(--line);padding-top:18px}.nginx-editor{min-height:320px;resize:vertical;font-family:monospace}.maintenance-progress{display:grid;gap:8px}.maintenance-progress progress{width:100%}
#deployment-error-toast{position:fixed;right:20px;bottom:20px;z-index:10000;display:flex;align-items:start;gap:16px;width:min(560px,calc(100vw - 40px));box-sizing:border-box;padding:16px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 30px #0006;overflow-wrap:anywhere;max-height:50vh;overflow:auto}#deployment-error-toast span{min-width:0;flex:1}#deployment-error-toast button{flex:none}#deployment-origin-help{font-weight:400;color:var(--muted)}

#record-dialog[data-connection-migration]{max-width:768px}.migration-form{display:grid;gap:16px}.migration-selection-heading{display:flex;justify-content:space-between;gap:16px}.migration-system-list{border:1px solid var(--line);border-radius:8px;max-height:50vh;overflow:auto}.migration-system-row{display:flex!important;align-items:center;gap:10px;padding:10px;margin:0!important}.migration-system-row:has(input:checked){background:var(--surface)}.migration-system-row input,.migration-update-choice input{width:auto!important;flex:none}.migration-update-choice{display:flex!important;align-items:center;gap:10px}.migration-form-actions{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--line);padding-top:20px}.migration-form-actions button{width:auto}

.migration-progress{display:block;width:100%;height:.7rem;margin:.8rem 0;accent-color:var(--accent)}

.nexus-deployment-stages{list-style:none;padding:0;margin:18px 0}.nexus-deployment-stages li{display:grid;grid-template-columns:20px 1fr auto;gap:8px;align-items:center;padding:10px 0}.nexus-deployment-stages li>span:last-child{color:var(--muted);font-size:.9em}.nexus-deployment-stages li[data-state=complete]>span:first-child{color:#24bd79}.nexus-deployment-stages li[data-state=active]>span:first-child,.nexus-deployment-stages li[data-state=active]>span:last-child{color:var(--accent)}.nexus-deployment-stages li[data-state=active]>span:nth-child(2){font-weight:600}.nexus-deployment-stages li[data-state=failed]>span:first-child,.nexus-deployment-stages li[data-state=failed]>span:last-child{color:#ef7777}

#notice{position:fixed;inset:auto 20px 20px auto;margin:0;width:min(560px,calc(100vw - 40px));max-height:45vh;overflow:auto;z-index:10010;display:flex;align-items:flex-start;gap:16px;box-shadow:0 8px 30px #0006;background:var(--surface);color:var(--ink);border-left:4px solid var(--accent)}#notice:empty,#notice[hidden],#notice[popover]:not(:popover-open){display:none}#notice span{flex:1;min-width:0}#notice button{flex:none;padding:0 .4rem;line-height:1.4;font-size:1.2rem}#notice[data-kind=error]{border-left-color:var(--danger)}#notice::backdrop{background:transparent;pointer-events:none}
