/* Shared look for the editor, remote and login. Dark on purpose: these are
   operated from the back of a dark room. The display has its own sheet. */

:root {
  --bg: #111317;
  --panel: #1a1d23;
  --panel-2: #22262e;
  --line: #2e333d;
  --text: #e8eaee;
  --muted: #9097a3;
  --accent: #4f8cff;
  --accent-text: #ffffff;
  --live: #e5484d;
  --ok: #30a46c;
  --radius: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}
button:hover { border-color: #3f4652; }
button:active { transform: translateY(1px); }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
button.danger { color: #ff8a8d; }
button.live { background: var(--live); border-color: var(--live); color: #fff; }
button:disabled { opacity: .5; cursor: default; }

input, select, textarea {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  width: 100%;
}
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 4px; }

a { color: var(--accent); }

.muted { color: var(--muted); }
.hidden { display: none !important; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.dot.on { background: var(--ok); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 16px; z-index: 50; box-shadow: 0 6px 24px rgba(0,0,0,.4);
}
.toast.error { border-color: var(--live); }

/* A miniature of the big screen: same text, same footer rule. */
.mini {
  aspect-ratio: 16 / 9;
  background: #000;
  color: #fff;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  white-space: pre-line;
  overflow: hidden;
  padding: 6%;
  font-size: 11px;
  line-height: 1.25;
  position: relative;
}
.mini.blank::after {
  content: "SVART"; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; background: #000;
  color: #555; font-weight: 700; letter-spacing: .1em;
}
