/* system/apps/console-log/styles.css -- Console Log
 *
 * Sept 23 2026. A raw, legible dev tool, not a polished screen -- its
 * whole job is showing exactly what happened, in order, copyable.
 */

.console-log {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  color: var(--shell-ink, var(--ink));
}

.cl-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cl-toolbar button {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
  font: inherit;
}
.cl-inline { display: inline-flex; gap: 6px; align-items: center; color: var(--slate); font-size: var(--fs-xs); }
.cl-count { color: var(--slate); font-size: var(--fs-xs); margin-left: auto; }
.cl-copy-status { color: var(--slate); margin: 0; font-size: var(--fs-xs); }

.cl-output {
  flex: 1;
  min-height: 40vh;
  margin: 0;
  overflow: auto;
  background: color-mix(in srgb, var(--ink) 6%, var(--paper));
  border-radius: 8px;
  padding: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  white-space: pre-wrap;
  word-break: break-word;
}
.cl-line { padding: 1px 0; }
.cl-time { color: var(--slate); }
.cl-level { font-weight: 700; text-transform: uppercase; margin-right: 2px; }
.cl-log .cl-level { color: var(--slate); }
.cl-info .cl-level { color: #2a6f4a; }
.cl-warn .cl-level { color: #b5652a; }
.cl-warn { background: color-mix(in srgb, #b5652a 8%, transparent); }
.cl-error .cl-level { color: #c0392b; }
.cl-error { background: color-mix(in srgb, #c0392b 10%, transparent); }

/* NewShell (Oct 16 2026): the same view inside a shell area. Colours come from the shell's --shell-* tokens with the old
   studio values as fallbacks, so night and felt stay readable. In-content buttons are gone (they are tools now). */
.console-log--shell { flex: 1; min-height: 0; }
.console-log--shell .cl-meta { display: flex; align-items: baseline; gap: 10px; }
.console-log--shell .cl-copy-status { color: var(--shell-muted, var(--slate)); }
.console-log--shell .cl-count { color: var(--shell-muted, var(--slate)); margin-left: auto; }
.console-log--shell .cl-output {
  min-height: 0;
  color: var(--shell-ink, var(--ink));
  background: color-mix(in srgb, var(--shell-ink, var(--ink)) 5%, var(--shell-paper, var(--paper)));
}
.console-log--shell .cl-time,
.console-log--shell .cl-log .cl-level { color: var(--shell-muted, var(--slate)); }
.console-log--shell .cl-info .cl-level { color: color-mix(in srgb, #2a6f4a 55%, var(--shell-ink, var(--ink))); }
.console-log--shell .cl-warn .cl-level { color: color-mix(in srgb, #b5652a 55%, var(--shell-ink, var(--ink))); }
.console-log--shell .cl-error .cl-level { color: color-mix(in srgb, #c0392b 55%, var(--shell-ink, var(--ink))); }
