.bulk-operations-log-output {
    background: #050505;
    color: #fff;
    min-height: 220px;
    max-height: 420px;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem;
    text-align: left;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    line-height: 1.45;
    white-space: pre-wrap;
}

.bulk-operations-log-time {
    color: #fff;
    opacity: 0.3;
}

.bulk-operations-log-line--success {
    color: #31d158;
}

.bulk-operations-log-line--error {
    color: #ff453a;
}

.bulk-operations-log-line--started .bulk-operations-log-message {
    color: var(--accent-color);
}

.bulk-operations-log-line--running .bulk-operations-log-message {
    color: #b87945;
}

body.console-page { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body.console-page > main {
    flex: 1; min-height: 0; max-width: none; margin: 0; padding: 1rem;
    box-sizing: border-box; overflow: hidden;
}
.tnx-console-page { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tnx-console-page > h1 { text-align: center; flex: none; margin: 0 0 1rem; }
.tnx-console-page > .bulk-operations-log-output {
    flex: 1; min-height: 0; max-height: none; width: 100%; box-sizing: border-box;
}

/* The sidebar console only. A head line with time, file and kind, then the output below it.
   Its label and output share the colours of the Bulk Operations log. */
.tnx-console-entry { overflow-wrap: anywhere; }
.tnx-console-entry + .tnx-console-entry { margin-top: 0.75rem; }
.tnx-console-entry-head { display: flex; align-items: baseline; gap: 1ch; }
.tnx-console-entry-head > * { flex: none; }
.tnx-console-entry-head > .tnx-console-entry-file {
    flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.5;
}
.tnx-console-entry-level { margin-inline-start: auto; opacity: 0.5; }
.tnx-console-entry-level, .tnx-console-entry-message { color: var(--tnx-console-kind); }
.tnx-console-entry--log { --tnx-console-kind: #31d158; }
.tnx-console-entry--info { --tnx-console-kind: var(--accent-color); }
.tnx-console-entry--debug { --tnx-console-kind: #64d2ff; }
.tnx-console-entry--warn { --tnx-console-kind: #b87945; }
.tnx-console-entry--error { --tnx-console-kind: #ff453a; }

