/* 系统设置 page (static/js/system.js). Layout comes from layout.css (grid, kpis, split/subnav); this adds the small
   pieces the sections need. */
.st-pad{padding:0 22px 14px}.st-pad:first-child{padding-top:4px}
.st-gap{height:14px}
.st-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.st-result{margin-top:12px;min-height:4px}.st-result p{margin:6px 0 0}
.panel-body:not(.flush)>.st-pad{padding-left:0;padding-right:0}
.panel-body.flush>.st-pad>.gauge{padding-left:0;padding-right:0}
.panel-body .codebox{margin:4px 0 10px}
.panel-body>.field-grid:first-child{margin-top:4px}
.panel-body>.prose{margin-bottom:6px;font-size:13px}
.panel-body>.muted{margin:8px 0 2px}
.panel-body>.hint:last-child{margin-bottom:2px}

/* health checks: one compact row per check */
.st-checks{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:6px}
.st-check{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:center;padding:7px 10px;border:1px solid var(--line-soft);border-radius:9px;background:#fafbfe;text-align:left;font-size:13px;color:#33435b}
button.st-check{cursor:pointer}button.st-check:hover{border-color:#b9cbf3;background:#f4f7ff}
.st-check .id{font:600 11.5px ui-monospace,Consolas,monospace;color:#8a97ab}
.st-check .name{display:flex;flex-direction:column;gap:1px;min-width:0}.st-check .name small{font-size:11.5px;color:var(--bad);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* storage and retention */
.st-policy{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:6px 0 4px}
.st-days{display:inline-flex;align-items:center;gap:10px;font-size:13px;font-weight:600;color:#33435b}.st-days input{width:110px}
.st-below{margin-top:12px;padding:12px 14px;border-radius:10px;background:var(--warn-soft);border:1px solid #f3dfb4;display:grid;gap:10px}
.st-below strong{color:var(--warn);font-size:13px}.st-below .toggle{white-space:normal}.st-below textarea{background:#fff}

/* platform audit filters */
.st-filter{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:4px 22px 14px}
.st-filter select{min-width:120px;max-width:200px}.st-filter input[type=search]{flex:1;min-width:220px}
.st-filter .st-push{margin-left:auto}
.st-range{display:inline-flex;gap:8px;align-items:center}.st-range input{width:190px}

/* about */
.st-modules{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}
.st-modules li{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid var(--line-soft);border-radius:10px;background:#fafbfe;font-size:13px}

/* tables inside cards */
.data-table tr.st-bad-row td{background:#fff7f7}
.st-page .table-note{margin:0}
.st-page .area-chart svg{height:210px}
.st-page .gauge{padding-bottom:6px}
.st-page .col-stack{display:flex;flex-direction:column;gap:16px;min-width:0}

/* log forwarding */
.st-targets .actions{justify-content:flex-end}
.st-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.st-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:#3a4a62}
.st-form .wide{grid-column:1/-1}.st-form .toggle{flex-direction:row;font-weight:500}
.st-form .cats{display:flex;flex-wrap:wrap;gap:6px 14px;font-weight:500}
.st-sample{margin:0;max-height:220px}
.st-err{max-width:280px;white-space:normal;word-break:break-word;margin-top:4px}
.st-legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:8px;font-size:12px;color:var(--ink-3)}
.st-legend span{display:inline-flex;align-items:center;gap:6px}.st-legend i{width:9px;height:9px;border-radius:3px;display:inline-block}
.st-sub{font-size:13px;color:#1d2940;margin:16px 0 0}
.panel-body .st-pad>.field-grid{margin-top:8px}
.st-targets td:first-child{min-width:220px}.st-targets td .muted.small{line-height:1.5}
