@charset 'UTF-8';

*, *::before, *::after {
  box-sizing: border-box;
}

/*
<div id="console_box">
  <div id="console_output">
    <div id="console_out"></div>
  </div>
  <div id="console_input">
    <input id="console_in" type="text" autocapitalize="none" autocomplete="off" placeholder="Code ...">
  </div>
</div>
*/

#console_box {
  --ff-mono: "Fira Mono", "Consolas", "Menlo", "Monaco", "Liberation Mono", monospace;
  --bg-dark: #222;
  --bg-dark_2: #181c20;
  --bg-dark_3: #2c313a;
  --bg-dark_4: #23272e;
  --bg-theme: coral;
  --br-dark: #333;
  --fg-dark: #eee;
  --fg-dark_2: #fff;
  --fg-dark_3: #8ecae6;
  --fg-dark_4:  #bdb2ff;
  --fg-dark_5: #adb5bd;
  --fg-dark_6: #ffd166;
  --fg-log: var(--fg-dark);
  --fg-info: var(--fg-dark_3);
  --fg-warn: var(--fg-dark_6);
  --fg-error: #ef476f;
  --fg-debug: #06d6a0;
  --fg-assert: #ffb703;
  --fg-trace: var(--fg-dark_5);
  --fg-time: var(--fg-dark_4);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: hidden;
  font-family: var(--ff-mono);
  color: var(--fg-dark);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  }
  #console_output {
    background-color: var(--bg-dark_2);
    height: calc(100% - 5.5em);
    color: var(--fg-dark);
    flex: 1;
    }
    #console_out {
      z-index: 1;
      box-sizing: border-box;
      background: var(--bg-dark_2);
      padding: 1em;
      width: 100%;
      height: 100%;
      min-height: 0;
      overflow-y: auto;
      font-size: 1em;
      font-family: inherit;
      white-space: pre-wrap;
      word-break: break-word;
      }
      #console_out > [class] {
        margin-bottom: 0.5em;
        line-height: 1.5;
        }
        .log {
          color: var(--fg-log);
          }
        .info {
          color: var(--fg-info);
          }
        .warn {
          color: var(--fg-warn);
          }
        .error {
          color: var(--fg-error);
          }
        .debug {
          color: var(--fg-debug);
          }
        .assert {
          color: var(--fg-assert);
          }
        .trace {
          color: var(--fg-trace);
          }
        .count,
        .time,
        .timeLog {
          color: var(--fg-time);
          }
        .dir-tree,
        .dir-tree-entry,
        .dir-collapsed-line {
          transition: background 0.2s;
          margin: 2px 0;
          border-radius: 4px;
          background: var(--bg-dark_4);
          padding: 2px 8px 2px 4px;
          font-size: 1em;
          font-family: inherit;
          }
        .dir-tree-entry:hover,
        .dir-collapsed-line:hover {
          background: var(--bg-dark_3);
          }
        .dir-key {
          color: var(--fg-dark_3);
          font-weight: bold;
          }
        .dir-value {
          color: var(--fg-dark_6);
          }
        .dir-type {
          color: var(--fg-dark_5);
          font-style: italic;
          }
        .dir-toggle {
          transition: color 0.2s;
          cursor: pointer;
          margin-right: 6px;
          margin-left: 0;
          color: var(--fg-dark_4);
          font-size: 1.1em;
          user-select: none;
          }
        .dir-toggle:hover {
          color: var(--fg-dark_2);
          }
        [class*="dir-indent-"] {
          margin-left: 4px;
          }
        .dir-tree.dir-indent-0,
        .dir-tree-entry.dir-indent-0 {
          margin: 0;
          padding: 0;
          }
        .dir-hidden {
          display: none !important;
          }
        .dir-expanded {
          display: block !important;
          }
        .console-table {
          margin: 8px 0;
          border-radius: 4px;
          border-collapse: collapse;
          background: var(--bg-dark_4);
          width: auto;
          min-width: 200px;
          overflow: hidden;
          font-size: 1em;
          font-family: inherit;
          }
        .console-table th,
        .console-table td {
          border: 1px solid var(--br-dark);
          padding: 4px 12px;
          text-align: left;
          }
        .console-table th {
          background: var(--bg-dark_3);
          color: var(--fg-dark_3);
          font-weight: bold;
          }
        .console-table tr:nth-child(even) td {
          background: var(--bg-dark_3);
          }
        .console-table tr:nth-child(odd) td {
          background: var(--bg-dark_4);
          }
        .console-group {
          margin-bottom: 0.5em;
          }
        .console-group-header {
          display: flex;
          align-items: center;
          transition: background 0.2s;
          cursor: pointer;
          padding: 2px 0;
          color: var(--fg-dark_3);
          font-weight: bold;
          }
        .console-group-header:hover {
          border-radius: 4px;
          background: var(--bg-dark_3);
          }
        .console-group-label {
          margin-left: 0;
          }
        .console-group-content {
          margin-left: 16px;
          border-left: 1px solid var(--br-dark);
          padding-left: 8px;
          }
          .js-string,
          .js-number,
          .js-boolean,
          .js-null,
          .js-undefined,
          .js-object,
          .js-array,
          .js-function,
          .js-symbol,
          .js-bigint {
            color: inherit;
            font-weight: inherit;
            }
  #console_input {
    background-color: var(--bg-dark_2);
    height: 2.5em;
    color: var(--fg-dark);
    }
    #console_in {
      display: block;
      z-index: 2;
      box-sizing: border-box;
      outline: none;
      border: none;
      border-top: 1px solid var(--br-dark);
      background: var(--bg-dark);
      padding: 0 1em;
      width: 100%;
      height: 100%;
      color: var(--fg-dark);
      font-size: 1em;
      font-family: inherit;
      }
