/* V6.7 Theme integration: V6.5/V6.6 features rendered through the original
   Admin components. All colors, fonts, buttons, cards and borders inherit
   static/style.css; this file is scoped to feature-specific layout only.
   NO rules for body, sidebar, topbar, .panel, .metric, buttons or global theme. */

/* V7.2.2: Scroll-free, accessible pages for VM, Node and Job details.
   The global VPS CONTROL theme remains locked in style.css. All rules are scoped
   to #detail-modal only, never Sidebar, Topbar, Billing or Customer pages. */
html:has(#detail-modal.v65-structured-detail:not(.hidden)){overflow:hidden}
#detail-modal.v65-structured-detail{padding:clamp(6px,1.5vh,16px);overflow:hidden}
#detail-modal.v65-structured-detail .detail-panel{
  width:min(900px,100%);max-height:calc(100dvh - 2 * clamp(6px,1.5vh,16px));
  min-height:0;overflow:hidden;display:flex;flex-direction:column;gap:0;
  padding:clamp(11px,2.3vh,23px) clamp(12px,2.5vw,26px);
}
#detail-modal.v65-structured-detail .detail-panel > .panel-top{
  flex:none;padding:6px 4px clamp(9px,1.3vh,15px);margin-bottom:clamp(6px,1vh,12px)
}
#detail-modal.v65-structured-detail #detail-content{
  display:flex;flex:1 1 auto;min-height:0;min-width:0;overflow:hidden!important;
}
#detail-modal.v65-structured-detail .v65-detail{display:flex;flex-direction:column;min-width:0;min-height:0;gap:clamp(6px,1.05vh,12px);width:100%;overflow:hidden}
#detail-modal.v65-structured-detail .v65-summary{display:flex;align-items:center;gap:12px;min-height:0;flex:none;flex-wrap:nowrap}
#detail-modal.v65-structured-detail .v65-summary>div:nth-child(2){flex:1;min-width:0}
#detail-modal.v65-structured-detail .v65-summary h3{font-size:17px;margin:2px 0}
#detail-modal.v65-structured-detail .v65-summary p{line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#detail-modal.v65-structured-detail .v65-round-icon{width:34px;height:34px}
#detail-modal.v65-structured-detail .v65-specs.cards{margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;flex:none}
#detail-modal.v65-structured-detail .v65-spec.metric{padding:10px 12px;min-height:65px;box-shadow:none}
#detail-modal.v65-structured-detail .v65-spec .metric-value{margin-top:3px;font-size:19px;line-height:1.15}
#detail-modal.v65-structured-detail .v65-page-tabs{display:flex;gap:5px;flex:none;min-width:0}
#detail-modal.v65-structured-detail .v65-page-tab{flex:1 1 0;min-width:0;white-space:normal;line-height:1.25;font-size:13px;padding:9px 5px;border-radius:8px;text-align:center}
#detail-modal.v65-structured-detail .v65-page-tab.is-active{color:var(--blue);background:#edf4ff;border-color:#a9c8f7;box-shadow:inset 0 -2px var(--blue)}
#detail-modal.v65-structured-detail .v65-panel-stack{display:flex;flex:1 1 auto;min-width:0;min-height:0;overflow:hidden}
#detail-modal.v65-structured-detail .v65-section.panel{width:100%;min-height:0;height:100%;margin:0;overflow:hidden;flex-direction:column;box-shadow:none}
#detail-modal.v65-structured-detail .v65-section[hidden],#detail-modal.v65-structured-detail .v65-info-row[hidden]{display:none!important}
#detail-modal.v65-structured-detail .v65-section.is-active{display:flex}
#detail-modal.v65-structured-detail .v65-section .panel-top{flex:none;padding:8px 13px}
#detail-modal.v65-structured-detail .v65-info-list{padding:5px 14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;align-content:start;column-gap:20px;min-height:0;overflow:hidden}
#detail-modal.v65-structured-detail .v65-info-row.info-line{font-size:13px;padding:7px 0;min-height:0;gap:7px}
#detail-modal.v65-structured-detail .v65-info-row strong{max-width:62%;font-size:13px}
#detail-modal.v65-structured-detail .v65-section-pager{display:flex;gap:11px;align-items:center;justify-content:center;flex:none;margin-top:auto;padding:6px 9px;color:var(--muted);font-size:12px}
#detail-modal.v65-structured-detail .v65-section-pager.hidden{display:none!important}
#detail-modal.v65-structured-detail .v65-section-pager button{padding:3px 11px;min-width:35px}
#detail-modal.v65-structured-detail .v65-detail-actions{flex:none;display:flex;align-items:center;gap:10px;flex-wrap:nowrap}
#detail-modal.v65-structured-detail .v65-detail-actions button{padding:8px 12px}
#detail-modal.v65-structured-detail .v65-detail-actions span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#detail-modal.v65-structured-detail .v65-raw-panel .panel-inner{flex:1;min-height:0;overflow:hidden;padding:7px 11px}
#detail-modal.v65-structured-detail .v65-raw-data{display:block;height:100%;max-height:none;min-height:0;overflow:hidden!important;white-space:pre;word-break:normal;overflow-wrap:normal;padding:10px 12px;margin:0;font-size:12.5px;line-height:17px}
#detail-modal.v65-structured-detail .v65-raw-data.hidden{display:none!important}
#detail-modal.v65-structured-detail .v65-raw-only .v65-panel-stack{min-height:200px}
/* Legacy selectors remain for non-structured modals; they are not overridden. */
#detail-modal:not(.v65-structured-detail) #detail-content{min-width:0}
.v65-detail{display:grid;gap:15px;min-width:0}
.v65-summary{display:flex;align-items:center;gap:12px;min-width:0;flex-wrap:wrap}
.v65-summary>div:nth-child(2){min-width:160px;flex:1}
.v65-summary h3{font-size:18px;margin:3px 0 5px;font-weight:780;color:var(--ink)}
.v65-summary p{color:var(--muted);font-size:13px;margin:0;line-height:1.6}
.v65-round-icon{width:38px;height:38px;flex-shrink:0;display:grid;place-items:center;border:1px solid var(--line);background:var(--bg);color:var(--blue);border-radius:9px;font-size:20px}
.v65-eyebrow{font-size:12px;color:var(--muted);font-weight:750;letter-spacing:.65px}
.v65-summary .tag{margin-left:auto}
.v65-specs.cards{margin-bottom:0;gap:10px}
.v65-spec.metric{min-height:98px;padding:12px 13px}
.v65-spec .metric-value{font-size:19px;letter-spacing:-.3px;overflow-wrap:anywhere}
.v65-section.panel{margin:0;min-width:0}
.v65-section .panel-top{padding:12px 15px}
.v65-section .panel-inner{padding:7px 15px}
.v65-info-row.info-line{font-size:13px;gap:9px;padding:9px 0;min-width:0}
.v65-info-row>span{color:var(--muted);min-width:0}
.v65-info-row strong{font-weight:700;max-width:60%;overflow-wrap:anywhere;word-break:break-word}
.v65-detail-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.v65-detail-actions span{font-size:12px;color:var(--muted)}
.v65-raw-data,.v65-json-fallback{max-height:310px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg);color:var(--ink);border:1px solid var(--line);padding:14px;border-radius:9px;font:13px/1.7 ui-monospace,Consolas,monospace}
@media(max-width:650px){
  #detail-modal.v65-structured-detail .v65-specs.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  #detail-modal.v65-structured-detail .v65-spec.metric{min-height:43px;padding:5px 9px}
  #detail-modal.v65-structured-detail .v65-spec .metric-value{font-size:16px;margin-top:2px}
  #detail-modal.v65-structured-detail .v65-spec .metric-title{font-size:12px}
  #detail-modal.v65-structured-detail .v65-page-tab{font-size:11px;padding:7px 2px}
  #detail-modal.v65-structured-detail .v65-info-list{grid-template-columns:1fr;padding:3px 11px}
  #detail-modal.v65-structured-detail .v65-detail-actions span{font-size:11px}
  #detail-modal.v65-structured-detail .v65-detail-actions button{padding:6px 9px}
}
@media(max-height:650px){
  #detail-modal.v65-structured-detail .detail-panel{padding:9px 14px}
  #detail-modal.v65-structured-detail .detail-panel>.panel-top{padding:4px 1px 7px;margin-bottom:4px}
  #detail-modal.v65-structured-detail .v65-spec.metric{min-height:43px;padding:5px 9px}
  #detail-modal.v65-structured-detail .v65-summary h3{font-size:14px}
  #detail-modal.v65-structured-detail .v65-spec .metric-value{font-size:15px;margin-top:1px}
  #detail-modal.v65-structured-detail .v65-page-tab{padding:5px 3px}
  #detail-modal.v65-structured-detail .v65-info-row.info-line{padding:4px 0;font-size:12px}
  #detail-modal.v65-structured-detail .v65-info-row strong{font-size:12px}
  #detail-modal.v65-structured-detail .v65-section .panel-top{padding:5px 9px}
  #detail-modal.v65-structured-detail .v65-section-pager{padding:3px}
  #detail-modal.v65-structured-detail .v65-detail-actions span{display:none}
}
@media(max-height:450px){
  #detail-modal.v65-structured-detail .v65-summary{display:none}
  #detail-modal.v65-structured-detail .v65-specs.cards{display:none}
}

/* Node discovery: existing .panel, .cards, .metric, .notice, .tag and .form-grid. */
.v65-node-page .v65-nodes-top .panel-top{flex-wrap:wrap}
.v65-node-page .v65-nodes-top .panel-inner{padding-top:10px}
.v65-node-page .v65-nodes-top p{margin:0}
.v65-node-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.v65-node-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(295px,1fr));gap:15px;margin-bottom:16px}
.v65-node-card.panel{margin:0;min-width:0}
.v65-node-head{display:flex;gap:10px;align-items:center}
.v65-node-head>div:nth-child(2){flex:1;min-width:0}
.v65-node-head h2{margin:0;font-size:14px}
.v65-node-head small{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.v65-node-symbol{width:26px;height:26px;font-size:18px}
.v65-node-kpis.panel-inner{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding-bottom:10px}
.v65-node-kpis>div{min-width:0}
.v65-node-kpis small{display:block;color:var(--muted);font-size:12px}
.v65-node-kpis b{display:block;font-size:16px;margin-top:5px;overflow-wrap:anywhere}
.v65-node-card>.v65-node-actions.panel-inner{padding-top:5px}
.v65-node-result.notice{margin:0 15px 15px;white-space:pre-line;font-size:13px;overflow-wrap:anywhere}
.v65-node-result[hidden]{display:none!important}
.v65-node-result.is-success{background:#e7f8f0;border-color:#c4ebdb;color:var(--ok)}
.v65-dim{font-size:13px;color:var(--muted)}
.v65-node-toolbar{display:flex;align-items:end;justify-content:space-between;gap:14px;flex-wrap:wrap}
.v65-node-toolbar label{width:min(360px,100%)}
.v65-node-toolbar>span{padding-bottom:8px;font-size:13px}
.v65-node-notice.notice{margin-top:0}
.v65-node-notice p{margin:5px 0 0;line-height:1.6}

/* Placement policy: original form styles; layout only, no alternate theme. */
.v66-placement-policy .panel-top{align-items:center;flex-wrap:wrap}
.v66-placement-heading p{margin:4px 0 0}
.v66-placement-fields.form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.v66-placement-policy .form-footer small{flex:1;min-width:220px;line-height:1.6}

/* Existing Sweet Modal appearance, with only extra space for the existing monitor. */
.sweet-modal.sweet-metrics-modal{width:min(1100px,96vw);max-width:none;max-height:94vh}
.sweet-metrics-frame{display:block;width:100%;height:min(71vh,760px);background:var(--bg);
 border:1px solid var(--line);border-radius:9px}
.sweet-metrics-modal .sweet-head{flex-wrap:wrap}
.sweet-metrics-modal .sweet-head h2{flex:1}
.sweet-metrics-modal .sweet-actions{flex-wrap:wrap}

@media(max-width:900px){
  .v66-placement-fields.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .v65-specs.cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v65-node-grid{grid-template-columns:1fr}
  .v66-placement-fields.form-grid{grid-template-columns:1fr}
  .sweet-metrics-frame{height:61vh}
}


/* V6.8 Dashboard layout only. The locked original VPS CONTROL theme remains in style.css.
   Scoped selectors below apply ONLY to Overview and Node Servers content. */
.v68-overview,.v68-nodes{--v68-ink:var(--ink,#132640);--v68-line:var(--line,#dce6f1);--v68-blue:var(--blue,#347cf6);color:var(--v68-ink)}
.v68-hero,.v68-nodes-intro{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #d8e6f8;border-radius:15px;background:linear-gradient(112deg,#f7fbff 0%,#edf5ff 51%,#dcecff 100%);box-shadow:0 7px 20px #173f8b08;margin-bottom:17px;padding:23px 28px}
.v68-hero{min-height:149px}
.v68-overline{font-size:12px;font-weight:850;letter-spacing:1.8px;color:#3472d7;margin-bottom:9px}
.v68-hero h2,.v68-nodes-intro h2{font-size:24px;font-weight:850;letter-spacing:-.6px;margin:0 0 7px;color:#162d4e}
.v68-hero p,.v68-nodes-intro p{font-size:14px;color:#58708e;margin:0;line-height:1.8}
.v68-hero-foot{margin-top:16px;font-size:13px;color:#4e7099;display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.v68-live-dot,.v68-status i{width:8px;height:8px;border-radius:50%;background:#10b99f;box-shadow:0 0 0 4px #10b99f19;display:inline-block;flex-shrink:0}
.v68-dot-separator{color:#91a6bf}
.v68-hero-art{position:absolute;right:6%;top:0;bottom:0;width:30%;pointer-events:none;opacity:.85}
.v68-hero-art:before{content:"";position:absolute;inset:-90px 0 0;border:1px solid #7cb2ff40;border-radius:50%;box-shadow:0 0 0 36px #7cb2ff16,0 0 0 72px #7cb2ff0d;transform:rotate(-20deg)}
.v68-server-stack{position:absolute;width:92px;height:45px;border:1px solid #94bfff;background:linear-gradient(135deg,#ffffffde,#b7d9ff);border-radius:10px;display:grid;place-items:center;color:#2c75db;box-shadow:0 12px 28px #2b64af21;transform:skewY(-8deg)}
.v68-server-a{top:22px;left:32%}.v68-server-b{top:65px;left:37%}.v68-server-c{top:108px;left:42%}
.v68-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:15px}
.v68-kpi{min-height:120px;border:1px solid var(--v68-line);border-radius:13px;background:#fff;display:flex;align-items:flex-start;gap:14px;padding:18px;box-shadow:var(--shadow,0 5px 16px #16365a08);position:relative;overflow:hidden;min-width:0}
.v68-kpi:before{content:"";width:105px;height:105px;position:absolute;right:-52px;top:-55px;border-radius:50%;background:#e5f0ff95;pointer-events:none}
.v68-kpi-icon{height:43px;width:43px;flex:0 0 43px;display:grid;place-items:center;border-radius:12px;background:#ebf3ff;color:#2d74da;border:1px solid #dbe9fa}
.v68-kpi-copy{min-width:0;position:relative;display:grid;gap:4px}
.v68-kpi-title{font-size:13px;font-weight:750;color:#607792}
.v68-kpi-value{font-size:28px;line-height:1.12;letter-spacing:-.7px;overflow-wrap:anywhere;color:#172d4b}
.v68-kpi small{font-size:12px;color:#8091a6}
.v68-kpi-green:before{background:#e7f9f1}.v68-kpi-green .v68-kpi-icon{background:#e6f8f0;color:#0b9d70;border-color:#d0f0e1}
.v68-kpi-amber:before{background:#fff6e4}.v68-kpi-amber .v68-kpi-icon{background:#fff5e2;color:#c58c2e;border-color:#fae5bd}
.v68-kpi-violet:before{background:#f0efff}.v68-kpi-violet .v68-kpi-icon{background:#eeecff;color:#7266cc;border-color:#ddd9fa}
.v68-overview>.v68-kpi-grid>.v68-kpi:nth-child(n+5){grid-column:span 2;min-height:105px}
.v68-quick-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:17px 0 23px}
.v68-quick-actions button{display:flex;align-items:center;gap:9px;justify-content:center;min-width:133px;padding:11px 16px;font-weight:750}
.v68-quick-actions button svg{width:17px;height:17px}
.v68-heading-row,.v68-nodes-list-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:4px 0 14px}
.v68-heading-row h2,.v68-nodes-list-heading h2{margin:0 0 4px;font-size:18px;font-weight:800}
.v68-heading-row p,.v68-nodes-list-heading p{font-size:13px;color:#8395a9;margin:0;line-height:1.6}
.v68-data-chip{border:1px solid #d8e7f9;border-radius:24px;padding:8px 12px;background:#fff;color:#3b76bd;font-size:13px;display:flex;align-items:center;gap:7px;white-space:nowrap}
.v68-data-chip svg{width:15px;height:15px}
.v68-overview .telemetry-grid{margin-bottom:18px;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr)}
.v68-overview .telemetry-grid .panel{box-shadow:0 5px 22px #1c4e8b0b}
.v68-overview .chart-shell{min-height:275px}
.v68-overview #usage-chart{height:230px}
.v68-overview .live-resource{padding-top:22px}
.v68-overview .resource-row{margin-bottom:27px}
.v68-panel{box-shadow:0 5px 20px #193d7509;margin-bottom:18px}
.v68-panel .panel-top h2,.v68-node-history .panel-top h2{display:flex;align-items:center;gap:9px;font-size:14px}
.v68-panel .panel-top h2 svg,.v68-node-history .panel-top h2 svg{color:#377af1;width:19px;height:19px}
.v68-panel-detail{font-size:12px;color:#8395a9}
.v68-order-link{font-weight:800;color:#285ec1;background:#f0f6ff;border-color:#d8e7f7}
.v68-mono{font:13px ui-monospace,Consolas,monospace;color:#385577}
.v68-kvm-notice,.v68-footnote{border:1px solid #cfe2f8;background:#f0f7ff;border-radius:11px;color:#2f6497;padding:13px 16px;display:flex;align-items:flex-start;gap:11px;font-size:13px;margin-bottom:18px;line-height:1.6}
.v68-kvm-notice svg,.v68-footnote svg{flex-shrink:0;color:#327af4}
.v68-kvm-notice b{display:block;font-size:14px}.v68-kvm-notice p{margin:1px 0 0;font-size:13px;overflow-wrap:anywhere}
.v68-empty{padding:22px!important;text-align:center;color:#8091a6}
/* Node Servers: enhanced content uses existing Panel, Tag, Button and Form components. */
.v68-nodes-intro{min-height:122px;background:linear-gradient(110deg,#f8fbff,#edf5ff)}
.v68-intro-actions{display:flex;gap:9px;flex-wrap:wrap}
.v68-intro-actions button{display:flex;align-items:center;gap:7px;white-space:nowrap}
.v68-intro-actions svg{height:16px;width:16px}
.v68-nodes .v68-kpi-grid{margin-bottom:18px}
.v68-node-history{margin-bottom:23px}
.v68-node-history .panel-top{align-items:center;gap:15px;flex-wrap:wrap}
.v68-node-history .panel-top>div:first-child{min-width:220px;flex:1}
.v68-panel-sub{font-size:13px;color:#8395a9;margin:5px 0 0}
.v68-graph-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.v68-graph-controls label{display:flex;align-items:center;gap:7px;font-size:12px}
.v68-graph-controls select{max-width:185px;min-width:125px;padding:8px 11px}
.v68-trend-main{padding:18px 22px}
.v68-trend-legends{display:flex;gap:20px;justify-content:flex-end;color:#637b99;font-size:13px;margin-bottom:10px;flex-wrap:wrap}
.v68-trend-legends span{display:flex;align-items:center;gap:6px}
.v68-dot{height:8px;width:8px;border-radius:50%;display:inline-block}.v68-dot.blue{background:#397cf7}.v68-dot.teal{background:#10b99f}.v68-dot.amber{background:#e5a64f}
.v68-node-chart{height:250px;width:100%;display:flex;align-items:center;justify-content:center;min-width:0}
.v68-node-chart svg{display:block;width:100%;height:100%;max-height:260px}
.v68-chart-empty{color:#7388a1;font-size:14px;background:#f7faff;border:1px dashed #d8e5f7;border-radius:12px;padding:30px;width:100%;text-align:center}
.v68-data-caption{color:#889ab0;font-size:12px;margin:9px 0 0}
.v68-nodes-list-heading h2 span{font-size:13px;color:#276cdf;background:#e9f1ff;padding:4px 8px;border-radius:8px;margin-left:7px}
.v68-node-search{position:relative;width:min(315px,100%);display:block}
.v68-node-search svg{position:absolute;top:50%;left:12px;transform:translateY(-50%);width:16px;height:16px;color:#7489a6}
.v68-node-search input{padding-left:38px}
.v68-node-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));margin-bottom:19px}
.v68-node-card{padding:18px;box-shadow:0 6px 25px #213b6a09;border-color:#dbe6f3;overflow:visible}
.v68-node-top{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.v68-node-symbol{width:43px;height:43px;border-radius:12px;display:grid;place-items:center;background:#edf5ff;color:#2777de;border:1px solid #d7e8ff;flex-shrink:0}
.v68-node-name{min-width:0;flex:1}.v68-node-name h3{font-size:17px;margin:0 0 5px}.v68-node-name small{font-size:12px;color:#7e92a9}
.v68-status{display:inline-flex;align-items:center;gap:7px;border-radius:20px;border:1px solid #dce6f1;padding:7px 10px;background:#f5f8fc;color:#73849b;font-size:12px;font-weight:800;text-transform:capitalize;white-space:nowrap}
.v68-status.online{background:#eafaf2;border-color:#c9efd9;color:#0d9868}.v68-status.offline{background:#fff0f1;border-color:#f4d7db;color:#c0525e}
.v68-status.offline i{background:#da626a;box-shadow:0 0 0 4px #da626a1c}
.v68-node-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;justify-items:center;background:#f8fbff;border:1px solid #eaf1f9;border-radius:12px;padding:12px 6px;margin-bottom:13px}
.v68-gauge{width:90px;max-width:100%;position:relative;aspect-ratio:1;display:grid;place-items:center}
.v68-gauge svg{width:100%;height:100%;transform:rotate(-90deg)}
.v68-gauge circle{fill:none;stroke-width:8}.v68-gauge-track{stroke:#e8eff7}.v68-gauge-fill{stroke-linecap:round;transition:stroke-dashoffset .6s}
.v68-gauge-center{position:absolute;display:grid;justify-items:center;gap:1px}.v68-gauge-center strong{font-size:17px;color:#15304e}.v68-gauge-center small{font-size:12px;color:#8192a8}
.v68-node-details{display:flex;gap:11px;flex-wrap:wrap;margin-bottom:13px;color:#7187a0;font-size:12px}
.v68-node-details span{display:flex;align-items:center;gap:6px}.v68-node-details svg{width:14px;height:14px}
.v68-node-progress{display:grid;gap:11px;margin-bottom:15px}
.v68-resource-bar>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:#627a95}.v68-resource-bar strong{color:#253f5e}
.v68-meter{height:7px;border-radius:10px;background:#e9eff7;overflow:hidden;margin:7px 0 4px}
.v68-meter i{height:100%;border-radius:10px;display:block;transition:width .6s}
.v68-resource-bar small{font-size:12px;color:#95a4b6}
.v68-node-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:14px;border-top:1px solid #eef2f8}
.v68-node-actions button{display:flex;align-items:center;gap:6px;justify-content:center;font-size:13px}
.v68-node-actions svg{width:15px;height:15px}
.v68-node-actions .v68-btn-strong{color:#286fce;border-color:#bfd8f8;background:#f1f7ff}
.v68-node-restricted{display:flex;align-items:center;gap:6px;color:#a2732e;font-size:12px}
.v68-node-restricted svg{width:14px;height:14px}
.v68-nodes .v65-node-result{margin:12px 0 0}
.v68-policy{margin-bottom:15px}.v68-policy>summary{display:flex;align-items:center;justify-content:space-between;gap:15px;cursor:pointer;padding:17px 20px;list-style:none}
.v68-policy>summary::-webkit-details-marker{display:none}
.v68-policy>summary>span:first-child{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.v68-policy>summary svg{color:#3678d2;width:18px;height:18px}
.v68-policy>summary b{font-size:14px}.v68-policy>summary small{font-size:12px;color:#8192a8}
.v68-policy[open]>summary{border-bottom:1px solid #eef2f7}
.v68-policy .panel-inner{border:0;background:transparent}
.v68-policy .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.v68-footnote{margin-top:10px}
@media(max-width:1230px){.v68-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v68-overview .telemetry-grid{grid-template-columns:1fr}.v68-hero-art{opacity:.45}}
@media(max-width:850px){.v68-hero-art{display:none}.v68-hero,.v68-nodes-intro{padding:20px}.v68-policy .form-grid{grid-template-columns:1fr}.v68-nodes-intro{flex-wrap:wrap}.v68-intro-actions{width:100%}.v68-overview .v68-kpi-grid>.v68-kpi:nth-child(n+5){grid-column:span 1}}
@media(max-width:620px){.v68-kpi-grid{grid-template-columns:1fr 1fr;gap:9px}.v68-kpi{padding:12px;min-height:100px;gap:8px}.v68-kpi-icon{width:33px;height:33px;flex-basis:33px}.v68-kpi-icon svg{width:16px;height:16px}.v68-kpi-value{font-size:23px}.v68-kpi-title{font-size:12px}.v68-hero h2{font-size:21px}.v68-heading-row,.v68-nodes-list-heading{align-items:start;flex-direction:column}.v68-data-chip{white-space:normal}.v68-node-search{width:100%}.v68-graph-controls{width:100%}.v68-graph-controls label{flex:1}.v68-graph-controls select{min-width:0;width:100%}.v68-node-grid{grid-template-columns:1fr}.v68-node-card{padding:14px}.v68-nodes-intro h2{font-size:21px}.v68-kvm-notice p{overflow-wrap:anywhere}.v68-overview .chart-shell{padding:12px}.v68-policy>summary{align-items:flex-start;flex-direction:column}}

/* V6.8 Connection probe is distinct from Proxmox-reported online state. */
.v68-node-probe{display:flex;align-items:center;gap:7px;color:#7c8eaa;font-size:12px;margin-bottom:11px;line-height:1.5}
.v68-node-probe svg{height:14px;width:14px;flex-shrink:0}
.v68-node-probe.verified{color:#0c9769}.v68-node-probe.failed{color:#bc545e}
@media(max-width:620px){.v68-node-kpis .v68-kpi{flex-direction:column;align-items:flex-start;gap:7px;min-height:120px}.v68-node-kpis .v68-kpi-value{font-size:21px;letter-spacing:-.5px;overflow-wrap:anywhere}}

/* V7.2.3 · One chart engine for VM Details and Metrics Modal.
   All rules scoped to the existing admin dialogs; original style.css untouched. */
#detail-modal.v65-structured-detail .v723-vm-metrics-panel{width:100%;height:100%;min-height:0;flex:1;overflow:hidden;display:flex;flex-direction:column;}
#detail-modal.v65-structured-detail .v723-vm-metrics-panel[hidden]{display:none!important}
.v723-live-monitor{display:flex;flex-direction:column;gap:8px;min-width:0;min-height:0;flex:1;color:var(--ink,#142943)}
.v723-monitor-top{display:flex;align-items:center;gap:10px;min-height:28px;justify-content:space-between;flex:none;flex-wrap:nowrap}
.v723-monitor-state{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:650;color:var(--muted,#6a819b);min-width:0;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.v723-monitor-state [data-v723-status]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v723-fetched{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;flex:none}
.v723-live-dot{width:8px;height:8px;border-radius:50%;background:#16b997;box-shadow:0 0 0 4px #16b99716;flex:none}
.v723-period-label,.v723-chart-selector{display:flex;gap:5px;align-items:center;white-space:nowrap;font-size:12px;color:var(--muted,#6a819b)}
.v723-period-label select,.v723-chart-selector select{font:inherit;color:var(--ink,#142943);border:1px solid var(--line,#dce7f4);background:#fff;border-radius:7px;max-width:145px;padding:5px 6px}
.v723-chart-selector{display:none}
.v723-live-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;flex:none}
.v723-live-stats>div{border:1px solid #e0eafa;background:linear-gradient(150deg,#fff,#f5f9ff);border-radius:10px;padding:8px 12px;min-width:0;overflow:hidden}
.v723-live-stats small{font-size:12px;display:block;color:#7186a2;margin-bottom:3px}
.v723-live-stats b{display:block;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#142c51;font-variant-numeric:tabular-nums}
.v723-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;flex:1;min-height:0;overflow:hidden}
.v723-chart-card{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;border:1px solid #dfebf9;border-radius:11px;background:linear-gradient(165deg,#fff,#f9fbff);padding:7px 11px 5px}
.v723-chart-title{display:flex;justify-content:space-between;align-items:center;gap:5px;color:#183a64;flex:none}
.v723-chart-title strong{font-size:13px;font-weight:800}.v723-chart-title>span{font-size:12px;color:#8394ad}
.v723-chart-visual{flex:1;min-height:0;width:100%;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}
.v723-chart-visual svg{width:100%;height:100%;display:block;overflow:hidden}
.v723-chart-legend{display:flex;gap:12px;justify-content:center;flex:none;min-height:14px;font-size:11px;color:#6680a0}
.v723-chart-legend>span{display:flex;align-items:center;gap:4px}.v723-chart-legend i{display:inline-block;width:7px;height:7px;border-radius:50%}
.v723-empty{display:grid;place-items:center;text-align:center;color:#8597af;font-size:13px;background:#f5f9ff;border:1px dashed #d5e2f4;border-radius:8px;width:100%;height:100%;min-height:35px;padding:6px}
.v723-note{font-size:11px;color:#788ca6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:none;text-align:center}
/* Metrics modal: no iframe, no inner scrollbar, no second header, fixed footer. */
.sweet-shade:has(.sweet-metrics-modal){padding:clamp(4px,1vh,12px);overflow:hidden;}
.sweet-modal.sweet-metrics-modal{width:min(1130px,97vw);height:min(91dvh,880px);max-height:calc(100dvh - 10px);max-width:none;overflow:hidden!important;display:flex;flex-direction:column;min-height:0;padding:clamp(11px,1.5vh,22px) clamp(12px,2vw,26px);gap:8px}
.sweet-metrics-modal .sweet-head{margin:0;flex:none;gap:9px}.sweet-metrics-modal .sweet-symbol{width:32px;height:32px;font-size:18px;flex:none}
.sweet-metrics-modal h2{font-size:clamp(14px,1.8vw,20px)}
.sweet-metrics-modal .sweet-desc{margin:0;color:#7388a3;font-size:13px;flex:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sweet-metrics-modal .v723-metrics-host{display:flex;flex:1;min-height:0;min-width:0;overflow:hidden}
.sweet-metrics-modal .sweet-actions{margin:0;flex:none;justify-content:flex-end;gap:8px;flex-wrap:nowrap}
.sweet-metrics-modal .sweet-actions button{padding:7px 11px;white-space:nowrap;font-size:13px}
/* Compact layout uses a chart chooser; preserves all 4 charts without any scrollbar. */
@media(max-width:700px),(max-height:690px){
 .v723-chart-selector{display:flex}
 .v723-chart-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
 .v723-chart-card{display:none}
 .v723-chart-card.is-selected{display:flex}
 .v723-live-stats>div{padding:5px 7px}
 .v723-live-stats b{font-size:14px}
 .v723-live-stats small{font-size:11px}
 .v723-note{display:none}
 .sweet-modal.sweet-metrics-modal{height:calc(100dvh - 10px);gap:5px}
}
@media(max-width:450px){
 .v723-live-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
 .v723-monitor-top{flex-wrap:wrap;gap:3px}
 .v723-monitor-state{flex:1 1 100%;min-height:19px}
 .v723-period-label,.v723-chart-selector{flex:1;justify-content:space-between}
 .v723-period-label select,.v723-chart-selector select{width:100%;min-width:0}
 .v723-live-stats b{font-size:14px}
 .v723-live-monitor{gap:4px}
 .v723-chart-card{padding:5px}
 .sweet-metrics-modal .sweet-actions button{font-size:12px;padding:6px 7px}
 .sweet-metrics-modal .sweet-desc{display:none}
}
@media(max-height:490px){
 .sweet-metrics-modal .sweet-desc,.sweet-metrics-modal .v723-live-stats,#detail-modal.v65-structured-detail .v723-live-stats{display:none}
 .v723-monitor-top{min-height:22px}.v723-live-monitor{gap:3px}
}

.v723-chart-legend .v723-legend-cpu-0,.v723-chart-legend .v723-legend-network-0{background:#397cff}
.v723-chart-legend .v723-legend-ram-0,.v723-chart-legend .v723-legend-network-1{background:#0caaa0}
.v723-chart-legend .v723-legend-disk-0{background:#a679eb}
.v723-chart-legend .v723-legend-disk-1{background:#eba44a}


/* V7.2.4: single non-scrolling, version-synchronized Admin detail dialog.
   Every VM/Node/Job section remains available through the existing tabs and
   pagers. Do not hide the scrollbar of an overflowing content pane as a fix. */
html.v724-detail-open,html.v724-detail-open body {overflow:hidden!important}
#detail-modal.v65-structured-detail:not(.hidden) {
  box-sizing:border-box;
  overflow:hidden!important;
  overscroll-behavior:contain;
}
#detail-modal.v65-structured-detail .detail-panel {
  box-sizing:border-box;
  height:min(745px,calc(100dvh - 24px));
  max-height:calc(100dvh - 12px);
  min-height:0;
  overflow:hidden!important;
  overscroll-behavior:contain;
}
#detail-modal.v65-structured-detail #detail-content,
#detail-modal.v65-structured-detail .v65-detail,
#detail-modal.v65-structured-detail .v65-panel-stack,
#detail-modal.v65-structured-detail .v65-section,
#detail-modal.v65-structured-detail .v65-section .panel-inner,
#detail-modal.v65-structured-detail .v723-live-monitor,
#detail-modal.v65-structured-detail .v723-chart-grid,
#detail-modal.v65-structured-detail .v723-chart-card {
  min-height:0;
  overflow:hidden!important;
  overscroll-behavior:contain;
}
#detail-modal.v65-structured-detail .v65-page-tabs,
#detail-modal.v65-structured-detail .v65-section-pager { flex-shrink:0 }
#detail-modal.v65-structured-detail .v65-info-row strong { overflow-wrap:anywhere }
#detail-modal.v65-structured-detail .v724-asset-notice {
  align-self:center;
  width:min(520px,100%);
  border:1px solid #d5e5fb;
  background:#f5f9ff;
  border-radius:12px;
  padding:20px;
  color:var(--ink,#152b4b);
  font-size:14px;
}
#detail-modal.v65-structured-detail .v724-asset-notice p {line-height:1.6;color:var(--muted,#71849b)}
#detail-modal.v65-structured-detail .v724-asset-notice button {margin-top:12px}
@media(max-width:650px){
  #detail-modal.v65-structured-detail .detail-panel {
    height:calc(100dvh - 12px);
    padding:10px;
  }
}
@media(max-height:530px){
  #detail-modal.v65-structured-detail .detail-panel { height:calc(100dvh - 8px) }
  #detail-modal.v65-structured-detail .v65-summary,
  #detail-modal.v65-structured-detail .v65-specs.cards {display:none}
}

/* V7.2.7: list controls within the existing VPS CONTROL admin palette. */
.v727-list-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:14px 20px 12px;background:#fafcff;border-bottom:1px solid #e9eef6}
.v727-list-toolbar label{font-size:12px;min-width:125px}
.v727-list-toolbar label:first-child{flex:1 1 250px;max-width:470px}
.v727-list-toolbar input,.v727-list-toolbar select{height:40px;font-size:13.5px}
.v727-list-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 20px;color:#61738b;font-size:13px;border-top:1px solid #e9eef6;flex-wrap:wrap}
.v727-list-nav{display:flex;align-items:center;gap:10px}
.v727-list-nav button{border:1px solid #dce6f3;border-radius:8px;padding:8px 12px;background:white;color:#174a8b;font-weight:700}
.v727-list-nav button:disabled{opacity:.42;cursor:not-allowed}
.v727-plan-actions{flex-wrap:nowrap;white-space:nowrap;gap:5px}
.v727-plan-actions button{white-space:nowrap;min-height:34px;font-size:13px}
.v727-upid{display:block;max-width:290px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;cursor:text}
.v727-task-more{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 20px;color:#73839c;font-size:12px;flex-wrap:wrap}
.v727-task-more button{padding:9px 13px;background:white;border:1px solid #cedef3;color:#2455a0;border-radius:8px;font-weight:700}
.table-wrap tbody tr[hidden]{display:none!important}
@media(max-width:640px){.v727-list-toolbar{padding:12px}.v727-list-toolbar label:first-child{max-width:none}.v727-list-footer{padding:12px}.v727-task-more{padding:12px}}

/* V7.2.8 Delivery Audit: scoped to the existing Node Servers panel; original theme untouched. */
.v728-delivery-report{margin-top:16px;border:1px solid #dce8f5;border-radius:14px;padding:18px;background:#fff;color:#142b4c}
.v728-audit-head{display:flex;align-items:start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.v728-audit-head h3{margin:0 0 4px;font-size:17px;color:#163a6b}
.v728-audit-summary{display:flex;gap:16px;flex-wrap:wrap;padding:12px 14px;background:#f2f7ff;border-radius:10px;margin:12px 0}
.v728-audit-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),1fr));gap:9px}
.v728-audit-check{display:flex;gap:10px;align-items:start;padding:12px;border:1px solid #e2eaf6;border-radius:10px;background:#fcfdff;min-width:0}
.v728-audit-check>div{min-width:0;flex:1;overflow-wrap:anywhere}
.v728-audit-check b{font-size:14px}.v728-audit-check p{margin:5px 0;color:#4e6380;font-size:13px;line-height:1.5}
.v728-audit-check small{color:#215a9e;font-size:12px;line-height:1.5;display:block}
.v728-audit-state{border-radius:7px;padding:4px 7px;font-weight:700;white-space:normal;font-size:11px;max-width:125px;flex-shrink:0}
.v728-pass{color:#086f51;background:#e2f9ef}.v728-blocked,.v728-action_required{color:#a43b22;background:#ffebe5}
.v728-unknown,.v728-awaiting_external_verification{color:#75520e;background:#fff4d9}
.v728-audit-note{margin-top:13px;padding:12px;border-radius:10px;background:#fff7e7;color:#795318;line-height:1.6;font-size:13px}
@media(max-width:600px){.v728-delivery-report{padding:12px}.v728-audit-check{padding:10px}.v728-audit-state{max-width:105px}}
