
:root{font-family:Arial,Helvetica,sans-serif;color:#252525;background:#f3f3f3;font-size:13px}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}
button:disabled{opacity:.48;cursor:not-allowed}a{color:#2771a7}
.hidden{display:none!important}.simulation-strip{padding:6px 13px;background:#fff1d6;color:#7d5304;border-bottom:1px solid #e2be78;font-size:12px;z-index:10}
.simulation-strip a{color:inherit}.top{height:48px;display:flex;align-items:center;background:#fff;border-bottom:1px solid #c8c8c8;padding:0 14px;gap:12px}
.logo{font-weight:800;font-size:20px;letter-spacing:-.6px;color:#3d4145;white-space:nowrap}.logo em{color:#e46d16;font-style:normal}.logo small{font-size:10px;font-weight:normal;margin-left:7px;color:#888}
.grow{flex:1}.top button,.toolbar button,.tree button,.tabs button,.item-actions button{border:0;border-radius:2px;background:transparent;color:#444;padding:8px}
.top button:hover,.toolbar button:hover,.tree button:hover,.tabs button:hover,.item-actions button:hover{background:#e7e7e7}
.btn{border:1px solid #bbb!important;background:#fafafa!important;padding:7px 11px!important;border-radius:2px;box-shadow:0 1px 1px #ddd;color:#333}
.primary{background:#e56b13!important;color:white!important;border-color:#c45908!important}.danger{color:#a62e25!important}.warning{color:#c27c0c}
.workspace{display:flex;height:calc(100vh - 79px);min-height:520px}
.treepane{width:234px;flex:none;background:#f9f9f9;border-right:1px solid #c4c4c4;overflow:auto}
.treebar{padding:9px;border-bottom:1px solid #ccc;background:#e9e9e9;font-weight:bold}
.tree{padding:7px 2px}.tree button{display:block;width:100%;text-align:left;padding:5px 7px;white-space:nowrap;font-size:12px}
.tree button.selected{background:#d6e9f7;color:#174d73;font-weight:bold}
.tree .node{padding-left:20px}.tree .guest{padding-left:35px}.tree .storage{padding-left:34px}.tree .net{padding-left:35px}
.good{color:#38a64c}.stopped{color:#888}.icon{display:inline-block;width:19px;text-align:center;font-size:14px}
.leftnav{width:175px;flex:none;background:#f7f7f7;border-right:1px solid #c6c6c6;overflow:auto;padding-top:12px}
.leftnav button{display:block;border:0;background:none;width:100%;text-align:left;padding:9px 14px;color:#333}.leftnav button.active{background:#e0ebf3;border-left:3px solid #2b80af}
.main{flex:1;min-width:0;overflow:auto;background:#fff}.toolbar{min-height:43px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:5px 12px;border-bottom:1px solid #d6d6d6;background:#f8f8f8}
.toolbar .separator{width:1px;background:#ccc;height:24px;margin:0 3px}.toolbar button{border:1px solid #c4c4c4;background:white;padding:7px 11px}
.content{padding:18px 22px}.content h2{font-size:20px;font-weight:500;margin:0 0 14px;color:#333}
.card{border:1px solid #cfcfcf;border-radius:2px;margin:0 0 16px;overflow:hidden}.card h3{margin:0;background:#ebebeb;padding:9px 12px;font-size:13px;font-weight:bold;border-bottom:1px solid #ccc}.card-body{padding:12px}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:13px;margin:8px 0 20px}
.stat{border:1px solid #ddd;padding:14px;background:#fff}.stat strong{display:block;font-size:21px;padding-top:5px}.stat span{color:#666}
.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
table{border-collapse:collapse;width:100%;font-size:12px}th{background:#ebebeb;text-align:left;font-weight:600;color:#555}td,th{padding:9px 10px;border-bottom:1px solid #e3e3e3}tr:hover td{background:#f7faff}
.status{font-size:12px;padding:2px 6px}.status.running{color:#238a39}.status.stopped{color:#777}.status.paused{color:#ba7c13}
.meter{height:13px;background:#ddd;border:1px solid #ccc;position:relative;border-radius:2px;overflow:hidden}.meter span{display:block;background:#4e9ec9;height:100%}
.detail{display:grid;grid-template-columns:180px 1fr;border-bottom:1px solid #eee;padding:11px 6px}.detail label{color:#666}
.tabs{display:flex;flex-wrap:wrap;background:#f6f6f6;border-bottom:1px solid #ccc;padding:0 10px}.tabs button{padding:12px 15px}.tabs button.active{background:#fff;border-top:2px solid #e57116;border-left:1px solid #ddd;border-right:1px solid #ddd;font-weight:bold}
.field{display:block;margin:0 0 12px}.field>span{display:block;font-weight:600;margin-bottom:5px}.field input,.field select,.field textarea{width:100%;border:1px solid #aaa;border-radius:2px;padding:7px 8px;background:white;color:#222}
.field input[type=checkbox]{width:auto}.field textarea{min-height:78px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}
.modal-backdrop{position:fixed;inset:0;background:#0008;z-index:20;display:flex;align-items:center;justify-content:center;padding:14px}
.modal{background:#fff;width:min(670px,100%);max-height:92vh;overflow:auto;box-shadow:0 10px 40px #0004}
.modal h2{font-size:17px;background:#eee;margin:0;padding:13px 17px;border-bottom:1px solid #ccc}
.modal-content{padding:20px}.steps{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px;border-bottom:1px solid #ddd;padding-bottom:15px}
.steps span{padding:7px 10px;background:#f0f0f0}.steps .on{background:#e97820;color:#fff}
.install-screen{min-height:100vh;background:#171b20;color:#ddd;padding:20px;display:grid;place-items:center}
.install-window{max-width:890px;width:100%;background:#fafafa;color:#222;border:1px solid #b5b5b5;box-shadow:0 12px 65px #0009}
.install-banner{background:#30363d;color:white;padding:19px 25px;font-size:23px}.install-banner span{color:#e77a1c}
.install-window .inner{padding:24px 30px}.install-window h2{font-size:18px}.install-window p{line-height:1.65}
.install-window .actions{display:flex;gap:12px;justify-content:flex-end;padding-top:15px}
.boot{width:100%;max-width:700px;font-family:monospace;padding:35px;background:#101218;border:1px solid #747474;line-height:2;font-size:14px}
.boot h1{color:#e57b20;font-size:18px;font-weight:normal}.boot button{display:block;width:100%;text-align:left;font-family:monospace;color:#eee;background:#385d96;border:0;padding:7px 12px}
.login-page{min-height:100vh;background:#eee;display:grid;place-items:center}
.login-card{background:white;width:min(410px,95vw);padding:25px;box-shadow:0 4px 24px #0002;border-top:4px solid #eb771b}
.login-card h1{font-size:23px}.login-card p{color:#666}.login-card .btn{width:100%}
pre.console{background:#161a1e;color:#dfdfdf;border:1px solid #333;padding:15px;min-height:235px;overflow:auto;white-space:pre-wrap;line-height:1.65}
pre.console .prompt{color:#6ed392}.terminal-input{display:flex;background:#181b1f;color:#ddd;padding:8px}
.terminal-input input{flex:1;color:#fff;background:none;border:0;outline:0;font-family:monospace}
.empty{padding:30px;text-align:center;color:#777}.hint{padding:12px;background:#eef6fb;color:#385467;border-left:3px solid #66a5c7;margin:12px 0}
.toast{position:fixed;right:18px;bottom:18px;background:#313c45;color:white;padding:13px 20px;z-index:40;box-shadow:0 4px 20px #0004}.toast.error{background:#a92b24}
.mobile-menu{display:none}
@media(max-width:850px){.workspace{height:calc(100dvh - 79px)}.treepane{width:185px}.leftnav{width:125px}.content{padding:12px}.two{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}}
@media(max-width:640px){.top{gap:5px}.top .logo{font-size:16px}.top .btn{padding:5px!important}.treepane{display:none}.leftnav{width:115px}.leftnav button{font-size:11px;padding:9px 5px}.content{padding:8px}.workspace{min-height:430px}.toolbar{padding:4px}.toolbar button{font-size:11px}.stat-grid{grid-template-columns:1fr 1fr}.mobile-menu{display:block}}


/* 2026 realism pass: align layout with the resource tree, task log and
   Datacenter Summary structure of the actual PVE 9.x Web UI. */
.pm-desktop{display:flex;flex-direction:column;height:calc(100dvh - 79px);min-height:470px}
.pm-desktop .workspace{height:auto;min-height:0;flex:1}
.pm-task-dock{flex:none;height:158px;background:#fff;border-top:4px solid #c5c5c5;display:flex;flex-direction:column;min-height:0}
.pm-task-dock.closed{height:34px}
.pm-taskbar{height:33px;display:flex;align-items:center;gap:10px;background:#e8e8e8;border-bottom:1px solid #c5c5c5;padding:2px 10px}
.pm-taskbar button{border:0;background:none;padding:5px 11px;color:#343c44;font-size:12px;cursor:pointer}
.pm-taskbar button:first-child{background:#f9f9f9;font-weight:bold;border:1px solid #d0d0d0;border-bottom:0}
.pm-taskbar small{color:#667077}
.pm-taskrows{flex:1;overflow:auto}
.pm-taskrows th{position:sticky;top:0;z-index:1}
.pm-taskrows td,.pm-taskrows th{padding:5px 9px}
.pm-global-search{display:flex;align-items:center;height:27px;width:min(260px,23vw);border:1px solid #bfc4ca;background:#fff;border-radius:2px;margin-left:25px}
.pm-global-search span{color:#888;padding:2px 8px;font-size:15px}
.pm-global-search input{border:0!important;outline:none!important;min-width:0;width:100%;padding:3px 5px;background:transparent!important;font-size:12px}
.tree button[hidden]{display:none!important}
.pm-datacenter-heading{font-size:19px;margin-bottom:10px}
.pm-overview-layout{border:1px solid #d5d5d5;max-width:1280px}
.pm-summary-panel{background:#fff;border-bottom:1px solid #ccc}
.pm-summary-panel:last-child{border-bottom:0}
.pm-summary-title{padding:7px 14px;font-size:12px;font-weight:600;background:#fafafa;border-bottom:1px solid #ddd;color:#3d4c58}
.pm-summary-content{padding:12px 18px}
.pm-health{display:grid;grid-template-columns:1fr 1fr;min-height:128px;text-align:center;align-items:center}
.pm-health-check{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#21bb4e;color:white;font-size:27px;font-weight:bold;margin:0 auto 6px}
.pm-health small{display:block;color:#667;margin-top:7px;font-size:11px}
.pm-health-nodes{font-size:12px}
.pm-health-nodes p{margin:6px 0}
.pm-dot{display:inline-block;width:9px;height:9px;margin-right:7px;border-radius:50%;background:#a1a1a1}
.pm-dot.good{background:#20bf54}.pm-dot.bad{background:#e14e55}.pm-dot.muted{background:#aaa}.pm-dot.warn{background:#f0a32e}
.pm-guest-summary{display:grid;grid-template-columns:1fr 1fr;text-align:center}
.pm-guest-type{padding:4px 10px}
.pm-guest-type:first-child{border-right:1px solid #e2e2e2}
.pm-guest-type b{display:block;margin-bottom:7px}
.pm-guest-type div{padding:4px}
.pm-resource-gauges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;text-align:center}
.pm-gauge{display:flex;flex-direction:column;align-items:center;min-height:138px;justify-content:center}
.pm-gauge-ring{width:95px;height:95px;background:conic-gradient(#8fc4e2 var(--gauge),#e8eaed 0);border-radius:50%;display:grid;place-items:center}
.pm-gauge-value{width:72px;height:72px;border-radius:50%;background:white;display:grid;place-items:center;font-size:20px;font-weight:700;color:#343434}
.pm-gauge-caption{margin-top:7px;font-size:11px;color:#616a71;max-width:210px}
.pm-nodes-table{width:100%}.pm-nodes-table th{font-weight:600}
.pm-ok{color:#159b42;font-weight:800}.pm-fail{color:#b72c36}
.pm-summary-note{color:#76808b;font-size:11px;margin:11px 0}
.wizard-track{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:2px;margin-bottom:22px;overflow:hidden}
.wizard-track span{background:#e6e6e6;padding:9px 2px;text-align:center;font-size:11px;color:#747474;white-space:nowrap}
.wizard-track span.done{background:#dcebd9;color:#30633c}
.wizard-track span.on{background:#e87722;color:#fff;font-weight:bold}
.wizard-heading{font-size:16px;font-weight:600;color:#444;margin:6px 0 16px}
.wizard-check{display:inline-flex;align-items:center;gap:7px;margin:8px 0 14px}
.field-help{font-size:11px;color:#818892;display:block;margin-top:5px;line-height:1.45}
.wizard-review{max-width:100%;margin:0 0 15px}.wizard-review td:first-child{width:31%;font-weight:bold;background:#fafafa}
.modal:has(.wizard-track){width:min(850px,98vw)}
.modal:has(.wizard-track) .modal-content{padding:20px 25px}
.modal:has(.wizard-track) .form-actions{border-top:1px solid #e4e4e4;padding-top:14px}
.top{background:#fcfcfc}
.toolbar{background:#f3f3f3}
.leftnav{background:#f5f5f5}.leftnav button{padding:8px 13px;font-size:12px}
.leftnav button.active{border-left:0;border-top:1px solid #abc8e1;border-bottom:1px solid #abc8e1}
.main{background:#fff}
.treepane{background:#f5f5f5}
.treebar{background:linear-gradient(#f7f7f7,#e7e7e7)}
@media(max-width:950px){
 .pm-desktop{height:calc(100dvh - 79px)}
 .pm-global-search{margin-left:4px;width:145px}
 .pm-taskbar small{display:none}
 .pm-gauge-ring{width:74px;height:74px}.pm-gauge-value{width:56px;height:56px;font-size:16px}
 .wizard-track span{font-size:9px}
}
@media(max-width:650px){
 .pm-global-search{display:none}
 .pm-task-dock{height:130px}
 .pm-task-dock.closed{height:34px}
 .pm-overview-layout{overflow-x:auto}
 .pm-resource-gauges{grid-template-columns:1fr}
 .pm-guest-summary{grid-template-columns:1fr}
 .pm-guest-type:first-child{border:0;border-bottom:1px solid #eee}
 .pm-health{grid-template-columns:1fr}
 .wizard-track{grid-template-columns:repeat(4,1fr)}
}

/* Text-mode installer shares the educational workflow but visibly differs. */
.tui-install{background:#10161c!important;color:#e4ecf5!important;border:1px solid #848d96!important;box-shadow:0 12px 70px #0009}
.tui-install .install-banner{background:#0d1115!important;border-bottom:1px solid #515b64;color:#c8d9e4;font-family:Consolas,Monaco,monospace}
.tui-install .inner{background:#10161c;color:#dde5ed;font-family:Consolas,Monaco,monospace}
.tui-install .inner h2{color:#efb461}
.tui-install .inner .hint{background:#263343;color:#d9e7ef}
.tui-install .steps span{background:#25313a;color:#d5e0e8}
.tui-install .steps span.on{background:#4f6a9d;color:white}
.tui-install .field input,.tui-install .field select{background:#18212a;color:white;border:1px solid #687786}


/* Editable guest Hardware, Options, Cloud-Init and Installer */
.guest-toolbar{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:10px 0 14px}
.guest-toolbar .btn{min-width:90px}
.guest-actions{min-width:290px;display:flex;gap:5px;flex-wrap:wrap;align-items:center}
.guest-actions .btn{font-size:11px;padding:5px 8px!important}
.content table td{vertical-align:middle}
.guest-console{min-height:210px;line-height:1.75;background:#14181f;color:#cfe5ef;border:1px solid #2a3540;padding:20px;font-family:Consolas,Monaco,monospace;white-space:pre-wrap}
.guest-install-wizard{margin-top:16px;border:1px solid #cad0d5;padding:18px 20px;background:#fbfbfb;max-width:940px}
.guest-install-wizard h3{font-size:16px;margin:0 0 14px}
.guest-install-wizard .wizard-track{grid-template-columns:repeat(4,1fr)}
.guest-install-wizard .btn.primary{margin-top:10px}
.guest-install-wizard .form-grid{max-width:800px}
.guest-install-wizard .field input,.guest-install-wizard .field select{min-height:34px}
@media(max-width:720px){.guest-actions{min-width:0}.guest-actions .btn{font-size:10px}.guest-install-wizard .form-grid{grid-template-columns:1fr}.guest-toolbar .btn{min-width:0}}

/* Guest usage and console, Proxmox-style. */
.guest-metrics{border:1px solid #ccc;padding:12px;margin:12px 0;background:#fff}.guest-metrics h3{margin:0 0 12px}.metric-row{display:grid;grid-template-columns: minmax(160px,1fr) minmax(100px,1.1fr);align-items:center;gap:8px 18px}.metric-row .meter{min-width:80px;margin:0}.guest-shell{display:flex;gap:8px;align-items:center;margin:10px 0;flex-wrap:wrap}.guest-shell label{font:12px Consolas,monospace}.guest-shell input{flex:1;min-width:120px;padding:8px;font:12px Consolas,monospace;border:1px solid #aaa}.guest-install-wizard .wizard-track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.guest-install-wizard{padding:14px;border:1px solid #ccc;background:#fff}.guest-console{max-height:340px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:600px){.metric-row{grid-template-columns:1fr}.guest-install-wizard .wizard-track{font-size:10px}}
