.system-log-filters {align-items:flex-end;gap:12px;flex-wrap:wrap}
.system-log-filters label {display:inline-flex;gap:6px;align-items:center;flex-wrap:wrap}
.system-log-filters fieldset {display:flex;flex-wrap:wrap;gap:12px;border:1px solid var(--line,#ddd);border-radius:8px;padding:10px;width:100%}
.system-log-filters legend {font-size:12px;color:var(--muted)}
.system-log-filters input[type=datetime-local] {min-width:230px;font-variant-numeric:tabular-nums}
.system-log-associations {width:100%}.system-log-associations label {margin:8px 12px 0 0}
.system-logs {--sys-log-bg:#fff;--sys-log-text:#182230;--sys-log-line:#dfe7f1}
.system-logs .system-log-box {height:52vh;min-height:260px;overflow:auto;white-space:normal;padding:8px;overflow-anchor:none;background:var(--sys-log-bg);color:var(--sys-log-text);border:1px solid var(--sys-log-line)}
.system-log-row {border-bottom:1px solid var(--line,#ddd);padding:7px 8px;font:13px/1.6 ui-monospace,Consolas,monospace;border-left:3px solid currentColor}
.system-log-row summary {cursor:pointer;overflow-wrap:anywhere;white-space:pre-wrap}
.system-log-row pre {white-space:pre-wrap;overflow-wrap:anywhere;color:var(--sys-log-text);margin:12px 0 4px;padding:12px;background:var(--sys-log-bg);border:1px solid var(--sys-log-line);border-radius:6px;font:13px/1.7 ui-monospace,Consolas,monospace}
.system-log-level {display:inline-block;min-width:76px;font-size:12px}
.system-logs .level-debug {color:#687182;background:#8080800a}
.system-logs .level-info {color:#205b9f;background:#2080ff08}
.system-logs .level-warning {color:#985600;background:#ff990014}
.system-logs .level-error,.system-log-error {color:#bd2525;background:#ff00000b}
.system-logs .level-critical {color:#9a1230;background:#ff00401a;font-weight:600}
.system-log-settings {margin-top:16px;padding:16px}.system-log-settings summary {cursor:pointer;font-weight:600}
.system-logs .panel-title {display:flex;gap:14px;flex-wrap:wrap;align-items:center;justify-content:flex-start}
.system-logs .panel-title h2 {margin-right:auto}
.system-logs .hint {line-height:1.6;margin:8px 0;color:#52627a}
.system-logs .filterbar {gap:12px;align-items:center}
.system-logs .system-level-choice {padding:5px 9px;border:1px solid var(--sys-log-line);border-radius:6px;cursor:pointer}
.system-logs input[type=checkbox] {appearance:auto;width:13px;height:13px;min-height:13px;margin:0;accent-color:#4f82ee;cursor:pointer;flex:none}
.system-logs input[type=checkbox]:focus-visible {outline:2px solid #1677ff;outline-offset:3px}
.system-log-associations summary,.system-log-settings summary {padding:8px 0;color:var(--text);cursor:pointer}
.system-logs [hidden] {display:none!important}
body[data-theme=dark] .system-logs {--sys-log-bg:#101828;--sys-log-text:#e4e7ec;--sys-log-line:#475467}
body[data-theme=dark] .system-logs .level-debug{color:#b0b8c5}
body[data-theme=dark] .system-logs .level-info{color:#80baff}
body[data-theme=dark] .system-logs .level-warning{color:#ffc266}
body[data-theme=dark] .system-logs .level-error{color:#ff9393}
body[data-theme=dark] .system-logs .level-critical{color:#ffacc0}
body[data-theme=dark] .system-logs .system-level-choice{background:var(--sys-log-bg)}
@media(max-width:700px){.system-log-filters>label{width:100%;justify-content:space-between}.system-logs .panel-title h2{width:100%;margin:0}.system-logs .filterbar button{max-width:100%;white-space:normal}}

.system-logs .system-log-time-row {display:grid;grid-template-columns:minmax(280px,1fr) minmax(280px,1fr) 180px;gap:12px;width:100%;align-items:end}
.system-logs .system-log-time-row>label {display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:6px;min-width:0}
.system-logs .system-log-time-row .styled-field {width:100%;min-width:0}
.system-logs .system-log-time-row .sfield-date-text {min-width:0;width:100%}
.system-logs .system-log-diagnostic {margin-top:16px;padding:16px}
.system-logs .system-log-diagnostic h3 {font-size:15px;margin:0 0 12px}
.system-logs .system-log-settings .filterbar label {display:flex;align-items:center;gap:8px}
.system-logs .system-log-settings input[type=number] {width:110px}
.system-logs input[type=checkbox]:disabled {opacity:.55;cursor:wait}
.system-logs .system-level-choice {display:inline-flex;align-items:center;gap:7px;flex-wrap:nowrap;white-space:nowrap;min-height:30px;box-sizing:border-box}
.system-logs .system-fault-settings {margin-top:16px;padding:16px}
.system-logs .system-fault-settings h3 {font-size:15px;margin:0 0 12px}
.system-logs .fault-channel-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.system-logs .fault-channel {min-width:0;padding:16px;border:1px solid var(--sys-log-line);border-radius:10px;background:var(--sys-log-bg)}
.system-logs .fault-channel>.log-scroll-toggle {font-weight:600;margin-bottom:8px;white-space:normal}
.system-logs .fault-channel input:not([type=checkbox]) {width:100%;min-width:0;box-sizing:border-box}
@media(max-width:760px){.system-logs .fault-channel-grid{grid-template-columns:1fr}}
@media(max-width:850px){.system-logs .system-log-time-row{grid-template-columns:1fr}.system-logs .system-log-time-row>label{width:100%}}

.system-logs .system-log-match-row {display:flex;gap:16px;align-items:center;flex-wrap:wrap;width:100%}
.system-logs .system-log-keyword {flex:0 1 220px;flex-wrap:nowrap;white-space:nowrap}
.system-logs .system-log-keyword input {flex:1;min-width:100px;width:0}
.system-logs .system-log-match-row fieldset {width:auto;flex:1 1 520px;margin:0;padding:6px 10px;gap:8px}
.system-logs .system-log-actions {width:100%;margin:0;gap:16px;flex-wrap:wrap}
.system-logs .system-log-action-group {display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.system-logs .system-log-export-actions {border-left:1px solid var(--line);padding-left:16px}
.system-logs .system-log-associations summary {padding:2px 0}
.system-logs .system-log-filters {gap:10px;margin-bottom:0}
@media(max-width:700px){.system-logs .system-log-export-actions{border-left:0;padding-left:0}.system-logs .system-log-match-row fieldset{flex-basis:100%}}

.system-logs .system-log-read-progress {display:flex;align-items:center;gap:12px;min-height:24px;margin:4px 0 8px}
.system-logs .system-log-read-progress .hint {margin:0;min-width:0;font-size:12px}
.system-logs .system-log-read-progress progress {flex:0 0 160px;max-width:30%;height:8px;accent-color:#4f82ee}
.system-logs .system-log-mode {display:inline-block;vertical-align:middle;margin-left:8px;padding:3px 9px;border-radius:12px;font-size:12px;font-weight:500;color:#40618b;background:#e7effb}
body[data-theme=dark] .system-logs .system-log-mode {color:#b8d6ff;background:#203753}
@media(max-width:700px){.system-logs .system-log-read-progress{align-items:flex-start}.system-logs .system-log-read-progress progress{margin-top:6px;flex-basis:90px}}

.system-logs #sys-status {white-space:pre-line;overflow-wrap:anywhere;font-size:12px}
