/* ── SYSTEM LOG & LOWER FRAME WORKSPACES ─────────────────────── */
#l-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px var(--pad);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  color: var(--text3);
}
#l-header h3 { font-size: 14px; }
#log-clear { font-size: 12px; }
#log-clear:hover { color: var(--accent); }
#system-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  background: #060608;
  padding: var(--gap) 0;
  scrollbar-width: thin;
  scrollbar-color: var(--bg3) transparent;
}
.log-line {
  padding: 2px var(--pad);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.35;
  color: var(--text3);
  white-space: pre-wrap;
  word-break: break-word;
}
.log-line:hover { background: var(--bg2); color: var(--text2); }
.log-line.pass { color: var(--greenb); }
.log-line.fail { color: #ff6a70; }
.log-line.chat-out { color: var(--chat-out); font-weight: bold; text-shadow: 0 0 6px rgba(239,220,101,0.35); }
.log-line.chat-in { color: var(--chat-in); font-weight: bold; text-shadow: 0 0 6px rgba(106,189,245,0.35); }
#log-wrap.Lowerframe-Cx {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  background: var(--bg1);
}
#l-header.Header.Dx {
  padding: 6px 14px;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--text3);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
#l-header h3 { font-family: "Courier New", Courier, monospace; font-size: 13px; font-weight: 400; letter-spacing: 3px; }
#log-clear { font-family: "Courier New", Courier, monospace; font-size: 14px; color: var(--text3); padding: 0 2px; }
#log-clear:hover { color: var(--accent); }
#system-log.Display.Dx {
  min-height: 0;
  overflow-y: auto;
  padding: 4px 0;
  background: #060608;
  scrollbar-width: thin;
  scrollbar-color: var(--bg3) transparent;
  font-family: "Courier New", Courier, monospace;
}
#log-window { min-height: 100%; font-family: "Courier New", Courier, monospace; }
#system-log.inactive .log-line { transition: opacity .8s ease; }
#system-log .log-line {
  padding: 2px 12px;
  line-height: 1.4;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  color: var(--text3);
  white-space: pre-wrap;
  word-break: break-word;
  border-left: 2px solid transparent;
  opacity: .78;
}
#system-log .log-line:hover { background: var(--bg2); opacity: 1; }
#system-log .log-line.pass { color: var(--greenb); border-left-color: var(--greenb); opacity: .86; }
#system-log .log-line.fail { color: var(--red); border-left-color: var(--red); opacity: .9; }
#system-log .log-line.neutral { color: var(--text3); }
#system-log .log-line.chat-out { color: var(--chat-out); border-left-color: var(--chat-out); opacity: 1; font-weight: 700; text-shadow: 0 0 8px rgba(255,231,74,.28); }
#system-log .log-line.chat-in { color: var(--chat-in); border-left-color: var(--chat-in); opacity: 1; font-weight: 700; text-shadow: 0 0 8px rgba(41,168,255,.3); }
#system-log .log-line.task-log-line { color: var(--text2); opacity: 1; font-weight: 700; }
#system-log .log-task-prefix { color: var(--text); font-weight: 900; letter-spacing: 1px; }
#system-log .log-task-name { color: #fff; font-weight: 900; text-shadow: 0 0 8px rgba(255,255,255,.18); }
#system-log .log-file-path { color: var(--greenb); font-weight: 900; text-shadow: 0 0 8px rgba(43,240,96,.22); }
#system-log .log-line.fail .log-file-path, #system-log .log-error-detail { color: var(--red); text-shadow: 0 0 8px rgba(255,70,76,.25); }
#system-log .log-line.pass .log-task-prefix { color: var(--greenb); }
#system-log .log-task-at { color: var(--text3); }
#log-placeholder { padding: 12px 14px; color: var(--text3); font-family: "Courier New", Courier, monospace; font-size: 14px; }