/* Settings → System. Uses the Settings palette (--set-*) so Day/Night follow the rest of the panel. */
#view-settings .sys-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:16px}
#view-settings .sys-metric{gap:10px;padding:18px 20px}
#view-settings .sys-metric-head{display:flex;align-items:center;gap:9px;color:var(--set-muted);font-size:12px;font-weight:600}
#view-settings .sys-metric-head .set-icon{width:24px;height:24px;color:#11bdeb}
html[data-theme="day"] #view-settings .sys-metric-head .set-icon{color:#096b89}
#view-settings .sys-value{font-size:28px;line-height:1.1;font-weight:700;color:var(--set-text);letter-spacing:-.5px}
#view-settings .sys-metric small{font-size:11px;color:var(--set-muted);line-height:1.5}
#view-settings .sys-bar{height:7px;border-radius:5px;background:var(--set-line);overflow:hidden}
#view-settings .sys-bar span{display:block;height:100%;border-radius:5px;background:var(--set-accent);transition:width .4s ease}
#view-settings .sys-bar span.sys-warn{background:#f2b33d}
#view-settings .sys-bar span.sys-bad{background:#ef5b5b}
#view-settings .sys-value.sys-ok{color:var(--set-text)}
#view-settings .sys-value.sys-warn{color:#f2b33d}
#view-settings .sys-value.sys-bad{color:#ff8a8a}
html[data-theme="day"] #view-settings .sys-value.sys-warn{color:#a8670a}
html[data-theme="day"] #view-settings .sys-value.sys-bad{color:#b4232f}
#view-settings .sys-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px;align-items:stretch}
#view-settings .sys-side{display:flex;flex-direction:column;gap:16px;min-width:0}
#view-settings .sys-side .set-card{flex:1}
#view-settings .sys-table-wrap{overflow-x:auto}
#view-settings .sys-table{width:100%;border-collapse:collapse;font-size:12px}
#view-settings .sys-table thead th{text-align:left;font-size:11px;font-weight:600;color:var(--set-muted);padding:0 10px 10px;border-bottom:1px solid var(--set-line)}
#view-settings .sys-table td,#view-settings .sys-table tbody th{padding:11px 10px;border-bottom:1px solid var(--set-line);vertical-align:middle;text-align:left}
#view-settings .sys-table tbody tr:last-child td,#view-settings .sys-table tbody tr:last-child th{border-bottom:0}
#view-settings .sys-table tbody th{font-weight:600;color:var(--set-text);min-width:170px}
#view-settings .sys-table tbody th small{display:block;font-weight:400;font-size:10.5px;color:var(--set-muted);margin-top:2px}
#view-settings .sys-table td:nth-child(2){white-space:nowrap;width:1%}
#view-settings .sys-table td:nth-child(3){width:48%}
#view-settings .sys-table td:last-child{text-align:center;width:1%}
#view-settings .sys-table thead th:last-child{text-align:center}
#view-settings .sys-table input{margin-top:0;min-height:36px;padding:8px 10px;font-size:12px}
#view-settings .sys-switch{position:relative;display:inline-block;vertical-align:middle;width:40px;height:22px;border-radius:12px;border:1px solid var(--set-line);background:var(--set-input);cursor:pointer;padding:0;margin-right:8px;transition:background .2s,border-color .2s}
#view-settings .sys-switch span{position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--set-muted);transition:transform .2s,background .2s}
#view-settings .sys-switch[aria-checked="true"]{background:rgba(242,179,61,.22);border-color:#f2b33d}
#view-settings .sys-switch[aria-checked="true"] span{transform:translateX(18px);background:#f2b33d}
#view-settings .sys-switch:disabled{opacity:.5;cursor:default}
#view-settings .sys-switch-label{font-size:11.5px;font-weight:600;vertical-align:middle}
#view-settings .sys-switch-label.sys-ok{color:var(--set-accent)}
#view-settings .sys-switch-label.sys-warn{color:#f2b33d}
html[data-theme="day"] #view-settings .sys-switch-label.sys-warn{color:#a8670a}
#view-settings .sys-open{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid var(--set-line);border-radius:7px;color:var(--set-accent)}
#view-settings .sys-open .set-icon{width:16px;height:16px}
#view-settings .sys-open:hover,#view-settings .sys-open:focus-visible{background:rgba(23,221,167,.08);outline:2px solid var(--set-accent);outline-offset:1px}
#view-settings .sys-list{list-style:none;margin:0;padding:0}
#view-settings .sys-list li{display:flex;align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid var(--set-line)}
#view-settings .sys-list li:first-child{padding-top:0}
#view-settings .sys-list li:last-child{border-bottom:0;padding-bottom:0}
#view-settings .sys-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0;background:var(--set-muted)}
#view-settings .sys-dot.sys-ok{background:var(--set-accent);box-shadow:0 0 0 3px rgba(23,221,167,.15)}
#view-settings .sys-dot.sys-warn{background:#f2b33d}
#view-settings .sys-dot.sys-bad{background:#ef5b5b}
#view-settings .sys-row-main{flex:1;min-width:0}
#view-settings .sys-row-main strong{display:block;font-size:12.5px;color:var(--set-text);overflow-wrap:anywhere}
#view-settings .sys-row-main small{display:block;font-size:11px;color:var(--set-muted);margin-top:2px;overflow-wrap:anywhere}
#view-settings .sys-row-side{display:flex;flex-direction:column;align-items:flex-end;gap:3px;text-align:right}
#view-settings .sys-row-side small{font-size:10.5px;color:var(--set-muted);white-space:nowrap}
#view-settings .sys-badge{font-size:10.5px;font-weight:700;padding:3px 9px;border-radius:999px;border:1px solid currentColor;white-space:nowrap}
#view-settings .sys-badge.sys-ok{color:var(--set-accent);background:rgba(23,221,167,.08)}
#view-settings .sys-badge.sys-warn{color:#f2b33d;background:rgba(242,179,61,.08)}
#view-settings .sys-badge.sys-bad{color:#ff8a8a;background:rgba(239,91,91,.08)}
html[data-theme="day"] #view-settings .sys-badge.sys-warn{color:#a8670a}
html[data-theme="day"] #view-settings .sys-badge.sys-bad{color:#b4232f}
#view-settings .sys-refresh,#view-settings .sys-save{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#view-settings .sys-save{margin-left:auto}
#view-settings .sys-refresh .set-button{display:inline-flex;align-items:center;gap:7px}
#view-settings .sys-refresh .set-icon{width:16px;height:16px}
#view-settings .set-muted{color:var(--set-muted);font-size:12px}
@media(max-width:1200px){#view-settings .sys-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}#view-settings .sys-grid{grid-template-columns:1fr}#view-settings .sys-side{flex-direction:row}}
@media(max-width:760px){
 #view-settings .sys-metrics{grid-template-columns:1fr 1fr;gap:10px}
 #view-settings .sys-metric{padding:14px}
 #view-settings .sys-value{font-size:22px}
 #view-settings .sys-side{flex-direction:column}
 #view-settings .sys-table thead{display:none}
 #view-settings .sys-table,#view-settings .sys-table tbody,#view-settings .sys-table tr,#view-settings .sys-table td,#view-settings .sys-table tbody th{display:block;width:auto}
 #view-settings .sys-table tr{border-bottom:1px solid var(--set-line);padding:10px 0;display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
 #view-settings .sys-table tbody tr:last-child{border-bottom:0}
 #view-settings .sys-table td,#view-settings .sys-table tbody th{border:0;padding:0}
 #view-settings .sys-table td:nth-child(3){grid-column:1/-1;width:auto}
 #view-settings .sys-table td:last-child{grid-row:1;grid-column:2}
 #view-settings .sys-table td:nth-child(2){grid-column:1/-1}
 #view-settings .sys-save{margin-left:0}
}
@media(max-width:420px){#view-settings .sys-metrics{grid-template-columns:1fr}}
