/* Kubernetes Network Diagnostics + last outstanding Dark/Light UI refinements.
 * Loaded after legacy layers, scoped to distinct components and theme tokens.
 */
:root .network-diagnostics-editor{
  display:flex!important;flex-direction:column;gap:13px;
  min-width:0;max-width:100%;padding:8px 0;
  background:transparent!important;color:var(--utu-text);
}
:root .network-diagnostics-editor .net-panel{
  display:flex;flex-direction:column;gap:12px;
  padding:17px 19px;border-radius:15px;
  background:var(--utu-panel)!important;
  border:1px solid var(--utu-stroke)!important;
  box-shadow:none!important;
  color:var(--utu-text)!important;
}
:root .network-diagnostics-editor .net-heading{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;flex-wrap:wrap;font-size:14px;
  color:var(--utu-text)!important;
}
:root .network-diagnostics-editor .net-heading strong{color:var(--utu-text)!important}
:root .network-diagnostics-editor .net-mode-pill{
  padding:4px 8px;border-radius:10px;
  border:1px solid var(--utu-stroke);
  background:var(--utu-panel-soft);
  color:var(--utu-highlight);
  font-size:10px;font-weight:650;
}
:root .network-diagnostics-editor .net-mode-help{
  margin:0;max-width:92ch;
  color:var(--utu-subtext)!important;
  font-size:12px;line-height:1.6;
}
:root .network-diagnostics-editor .net-mode-help strong{color:var(--utu-text)!important}
:root .network-diagnostics-editor .net-standard-options,
:root .network-diagnostics-editor .net-deep-options,
:root .network-diagnostics-editor .net-deep-fields,
:root .network-diagnostics-editor .net-timeout,
:root .network-diagnostics-editor .net-sync-controls{
  display:flex;flex-direction:column;gap:10px;
  min-width:0;max-width:100%;
}
:root .network-diagnostics-editor .net-standard-options[hidden],
:root .network-diagnostics-editor .net-deep-options[hidden],
:root .network-diagnostics-editor .net-deep-fields[hidden],
:root .network-diagnostics-editor .net-sync-controls[hidden],
:root .network-diagnostics-editor button[hidden],
:root .network-diagnostics-editor .net-deep-status[hidden]{
  display:none!important;
}
:root .network-diagnostics-editor .net-standard-options,
:root .network-diagnostics-editor .net-deep-fields{
  padding:11px 0 0;border-top:1px solid var(--utu-stroke-soft);
}
:root .network-diagnostics-editor .net-sync-controls>label,
:root .network-diagnostics-editor .net-timeout>label,
:root .network-diagnostics-editor .net-deep-fields>label{
  max-width:410px;display:flex;flex-direction:column;
  gap:6px;color:var(--utu-text)!important;font-size:12px;
}
:root .network-diagnostics-editor .net-sync-controls select,
:root .network-diagnostics-editor .net-timeout input,
:root .network-diagnostics-editor .net-deep-fields input{
  width:100%;max-width:100%;min-height:36px;
  background:var(--utu-panel-soft)!important;
  border:1px solid var(--utu-stroke)!important;
  color:var(--utu-text)!important;
  border-radius:9px;box-shadow:none!important;
}
:root .network-diagnostics-editor .network-compact-check{
  display:inline-flex!important;
  width:max-content;max-width:100%;
  flex-direction:row!important;
  align-items:center!important;
  gap:9px;min-height:25px;
  margin:0;padding:0 3px;
  font-size:13px;font-weight:650;
  color:var(--utu-text)!important;
  background:transparent!important;border:0!important;
  box-shadow:none!important;
}
:root .network-diagnostics-editor .network-compact-check>input[type="checkbox"]{
  appearance:auto!important;
  width:16px!important;height:16px!important;
  min-width:16px!important;min-height:16px!important;
  max-width:16px!important;max-height:16px!important;
  margin:0!important;padding:0!important;
  flex:none!important;transform:none!important;
  accent-color:#14bbca;
  box-shadow:none!important;
}
:root .network-diagnostics-editor .net-action-row{
  display:flex;align-items:center;flex-wrap:wrap;gap:10px 13px;
}
:root .network-diagnostics-editor :is(.net-sync-button,.net-test-deep,.net-smoke-deep){
  width:auto!important;max-width:100%;
  padding:8px 12px!important;
  font-size:12px!important;font-weight:650;
  white-space:normal;
}
:root .network-diagnostics-editor .net-sync-status,
:root .network-diagnostics-editor .net-deep-status{
  display:block;
  flex:1 1 250px;min-width:0;
  border:1px solid var(--utu-stroke)!important;
  border-radius:10px!important;
  padding:9px 11px!important;
  font-size:11px;line-height:1.55;
  color:var(--utu-subtext)!important;
  background:var(--utu-panel-soft)!important;
  overflow-wrap:anywhere;
}
:root .network-diagnostics-editor .net-ready{
  border-color:rgba(48,171,135,.54)!important;
  color:var(--utu-text)!important;
}
:root .network-diagnostics-editor .net-blocked{
  border-color:rgba(206,100,108,.65)!important;
  color:var(--utu-text)!important;
}
:root[data-theme="dark"] .network-diagnostics-editor :is(.net-panel,.net-standard-options,.net-deep-options){
  background-color:#162e42!important;
}
:root[data-theme="dark"] .network-diagnostics-editor .net-standard-options,
:root[data-theme="dark"] .network-diagnostics-editor .net-deep-fields{
  background:transparent!important;
}

/* Cross-App Manual Verification: nested light cards overridden explicitly. */
:root[data-theme="dark"] :is(
 .cross-app-manual-verification,.cross-app-verification-group,
 .cross-app-verification-group-head,.cross-app-verification-group-body,
 .cross-app-manual-verification .manual-verification-list,
 .cross-app-manual-verification .manual-verification-step,
 .cross-app-manual-verification .manual-verification-expected,
 .cross-app-manual-verification .manual-verification-instruction,
 .cross-app-manual-verification .manual-verification-path,
 .cross-app-manual-verification .manual-verification-code
){
  background:#0d1722!important;
  background-color:#0d1722!important;
  background-image:none!important;
  border-color:#263e50!important;
  box-shadow:none!important;
  color:#edf5fa!important;
}
:root[data-theme="dark"] :is(.cross-app-manual-verification,.cross-app-verification-group)
:is(h2,h3,h4,strong,summary,label,.manual-verification-step-title){
  color:#eef7fc!important;
}
:root[data-theme="dark"] .cross-app-manual-verification :is(
 .manual-verification-expected p,.manual-verification-instruction p,
 .manual-verification-path span,.manual-verification-hint,
 .manual-verification-evidence,.cross-app-verification-group-head p
){
  color:#b9cddc!important;
}
:root[data-theme="dark"] .cross-app-manual-verification :is(pre,code){
  background:#0d1722!important;color:#d9f2f8!important;
}
:root[data-theme="light"] .cross-app-manual-verification .manual-verification-step{
  background:var(--utu-panel-soft)!important;color:var(--utu-text)!important;
}
:root .cross-app-manual-verification :is(.manual-verification-step,.manual-verification-expected){
  border-radius:12px!important;padding:12px 14px!important;
}

/* Git Tool: repository checkbox/name and scope/purpose controls form one row. */
:root .tool-modal-dialog .git-repository{
  border-radius:13px!important;padding:13px 15px!important;
  background:var(--utu-panel-soft)!important;
  border:1px solid var(--utu-stroke)!important;
  color:var(--utu-text)!important;
}
:root .tool-modal-dialog .git-repo-header{
  display:flex!important;flex-direction:row!important;
  gap:10px!important;align-items:center!important;justify-content:flex-start!important;
}
:root .tool-modal-dialog .git-repo-header label{
  display:inline-flex!important;flex-direction:row!important;
  align-items:center!important;gap:9px!important;
  margin:0!important;color:var(--utu-text)!important;
}
:root .tool-modal-dialog .git-repo-header input[type="checkbox"],
:root .tool-modal-dialog .git-resource-choices input[type="checkbox"]{
  appearance:auto!important;width:16px!important;height:16px!important;
  min-width:16px!important;min-height:16px!important;
  margin:0!important;padding:0!important;flex:0 0 16px!important;
  transform:none!important;accent-color:#14bbca;
}
:root .tool-modal-dialog .git-repo-scope{
  display:grid!important;
  grid-template-columns:minmax(155px,.75fr) minmax(160px,1.1fr) auto!important;
  gap:12px!important;align-items:end!important;margin-top:9px!important;
}
:root .tool-modal-dialog .git-repo-scope>label{
  min-width:0;max-width:100%;color:var(--utu-text)!important;
}
:root .tool-modal-dialog .git-repo-scope :is(input,select){
  width:100%;max-width:100%;
  background:var(--utu-panel)!important;
  border-color:var(--utu-stroke)!important;
  color:var(--utu-text)!important;
}
:root .tool-modal-dialog .git-resource-choices label{
  display:inline-flex!important;align-items:center!important;gap:7px!important;
  color:var(--utu-subtext)!important;
}
@media(max-width:780px){
 :root .tool-modal-dialog .git-repo-scope{grid-template-columns:minmax(0,1fr)!important}
 :root .network-diagnostics-editor .net-panel{padding:13px}
}

/* Blocking, cancellable Deep Probe smoke-test modal. */
.net-test-overlay{position:fixed;inset:0;z-index:2147483000;background:rgba(10,17,29,.72);display:flex;align-items:center;justify-content:center;padding:20px}
.net-test-dialog{width:min(560px,100%);max-height:90vh;overflow:auto;background:var(--surface,#172131);color:var(--text,#f2f5fa);border:1px solid var(--border,#48505a);border-radius:14px;padding:24px;box-shadow:0 18px 55px rgba(0,0,0,.3)}
.net-test-dialog h3{margin:0 0 14px;font-size:18px}
.net-test-progress{display:flex;gap:12px;align-items:center;margin:12px 0;padding:12px;border-radius:8px;background:rgba(120,140,160,.12)}
.net-test-spinner{width:20px;height:20px;border:2px solid #64748b;border-top-color:#38bdf8;border-radius:50%;animation:net-test-spin .8s linear infinite}
@keyframes net-test-spin{to{transform:rotate(360deg)}}
.net-test-results{list-style:none;margin:12px 0;padding:0;max-height:300px;overflow:auto}
.net-test-results li{margin:5px 0;padding:8px 10px;border-radius:6px;background:rgba(120,140,160,.1);font-size:13px;overflow-wrap:anywhere}
.net-test-results .passed{border-left:3px solid #22c55e}
.net-test-results .failed{border-left:3px solid #ef4444}
.net-test-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.net-test-dialog button[disabled]{opacity:.5;cursor:not-allowed}
