/* Cx38 — Systems tracker refinements for phones and tablets.
   Layout only; keep three engineer-controlled Yes/No selects and their original data bindings. */
.main.cx15-view.cx15-view-systems .cx13-system-tree{
 border-radius:16px!important;overflow:hidden;
}
.main.cx15-view.cx15-view-systems .cx13-system-tree>summary{
 display:grid!important;grid-template-columns:36px minmax(0,1fr) 20px!important;
 gap:11px!important;align-items:center!important;padding:12px 16px!important;
 min-height:65px!important;box-sizing:border-box;
}
.main.cx15-view.cx15-view-systems .cx13-system-tree>summary .cx13-tree-mark{
 width:34px;height:34px;border-radius:10px;font-size:19px;
}
.main.cx15-view.cx15-view-systems .cx38-tree-heading{
 min-width:0;display:flex;flex-direction:column;gap:2px;align-items:flex-start;
}
.main.cx15-view.cx15-view-systems .cx38-tree-heading b{
 font-size:15px!important;font-weight:760!important;line-height:1.28!important;
 letter-spacing:-.02em!important;overflow-wrap:normal;
}
.main.cx15-view.cx15-view-systems .cx38-tree-heading small{
 font-size:11px!important;line-height:1.3;color:var(--cx15-muted)!important;
 white-space:nowrap;
}
.main.cx15-view.cx15-view-systems .cx13-tree-arrow{
 margin:0!important;justify-self:end;text-align:center;font-size:21px;
}
.main.cx15-view.cx15-view-systems .cx13-system-mobile-list{
 gap:8px;padding:10px!important;
}
.main.cx15-view.cx15-view-systems .cx13-system-card{
 padding:14px!important;margin:0!important;border-radius:14px!important;
}
.main.cx15-view.cx15-view-systems .cx13-system-card-top{
 align-items:center!important;gap:12px!important;
}
.main.cx15-view.cx15-view-systems .cx13-system-card-top>div{min-width:0;flex:1}
.main.cx15-view.cx15-view-systems .cx13-system-card-top h4{
 font-size:17px!important;font-weight:780;letter-spacing:-.02em;
 line-height:1.28!important;margin:0 0 4px!important;overflow-wrap:break-word;
}
.main.cx15-view.cx15-view-systems .cx13-system-card-top small{
 display:block;font-size:11px!important;line-height:1.4;
}
.main.cx15-view.cx15-view-systems .cx13-open-system{
 width:34px;height:34px;border-radius:10px;font-size:19px;
}
.main.cx15-view.cx15-view-systems .cx13-system-card-foot{
 display:flex;justify-content:flex-start;gap:8px 13px!important;
 padding-top:12px!important;font-size:11px!important;line-height:1.5;
}
.main.cx15-view.cx15-view-systems .cx13-system-card-foot button.btn{
 margin-left:auto;min-height:36px;padding:7px 13px;
}
.main.cx15-view.cx15-view-systems .cx13-system-controls label>span{
 min-height:0!important;line-height:1.3;font-size:11px!important;
}
.main.cx15-view.cx15-view-systems .cx13-system-controls .system-yn-select{
 height:43px!important;font-size:14px!important;min-width:0;
 border-radius:10px!important;
}
@media(max-width:700px){
 .main.cx15-view.cx15-view-systems .cx13-system-tree>summary{
  grid-template-columns:36px minmax(0,1fr) 18px!important;
  gap:10px!important;padding:13px!important;min-height:67px!important;
 }
 .main.cx15-view.cx15-view-systems .cx38-tree-heading b{font-size:16px!important}
 .main.cx15-view.cx15-view-systems .cx13-system-mobile-list{padding:9px!important}
 .main.cx15-view.cx15-view-systems .cx13-system-card{padding:14px!important}
 /* One clear control per row. No squeezed dropdowns or wrapped headings. */
 .main.cx15-view.cx15-view-systems .cx13-system-controls{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  gap:0!important;margin:16px 0 13px!important;
  padding:1px 12px;border:1px solid var(--cx15-border);
  border-radius:12px;background:var(--cx15-faint);
 }
 .main.cx15-view.cx15-view-systems .cx13-system-controls label{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(98px,38%)!important;
  align-items:center!important;gap:10px!important;min-height:52px;
  padding:5px 0!important;margin:0!important;
 }
 .main.cx15-view.cx15-view-systems .cx13-system-controls label+label{
  border-top:1px solid var(--cx15-border);
 }
 .main.cx15-view.cx15-view-systems .cx13-system-controls label>span{
  font-size:12px!important;white-space:normal!important;overflow-wrap:normal;
 }
 .main.cx15-view.cx15-view-systems .cx13-system-controls .system-yn-select{
  width:100%!important;height:38px!important;padding-inline:11px!important;
  font-size:13px!important;
 }
 .main.cx15-view.cx15-view-systems .cx13-system-card-foot{
  gap:6px 12px!important;align-items:center!important;
 }
}
@media(max-width:350px){
 .main.cx15-view.cx15-view-systems .cx38-tree-heading b{font-size:14px!important}
 .main.cx15-view.cx15-view-systems .cx13-system-card{padding:11px!important}
 .main.cx15-view.cx15-view-systems .cx13-system-controls{padding:0 9px}
 .main.cx15-view.cx15-view-systems .cx13-system-controls label{grid-template-columns:minmax(0,1fr) minmax(86px,37%)!important}
 .main.cx15-view.cx15-view-systems .cx13-system-card-foot button.btn{margin-left:0}
}
html[data-theme="light"] .main.cx15-view.cx15-view-systems .cx13-system-controls{background:#f5f9fe;border-color:#d5e1ef}
html[data-theme="light"] .main.cx15-view.cx15-view-systems .cx13-system-controls label+label{border-color:#d5e1ef}
