:root {
  color-scheme: dark;
  --bg: #0b0f17;
  --bg-soft: #111725;
  --panel: #131a29;
  --panel-2: #18202f;
  --line: #232c3f;
  --line-soft: #1b2333;
  --text: #e7ecf5;
  --muted: #97a3b8;
  --accent: #7c9cff;
  --accent-2: #a78bfa;
  --green: #37d39b;
  --red: #f4677a;
  --code-bg: #0d1320;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(124, 156, 255, .10), transparent 60%),
    radial-gradient(700px 420px at 95% 0%, rgba(167, 139, 250, .08), transparent 55%),
    var(--bg);
  color: var(--text);
  font: 15px/1.65 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  background: rgba(11, 15, 23, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0f18;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-weight: 650;
  font-size: 14px;
}

.brand-text small {
  color: var(--muted);
  font-weight: 400;
  font-size: 11.5px;
}

.topnav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.topnav a {
  padding: 7px 13px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 550;
  border: 1px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
  white-space: nowrap;
}

.topnav a:hover { color: var(--text); background: var(--panel); }

.topnav a.is-active {
  color: var(--text);
  background: rgba(124, 156, 255, .10);
  border-color: rgba(124, 156, 255, .25);
}

.room-box {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.room-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.room-input {
  width: 150px;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 12.5px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.room-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 156, 255, .16);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--panel);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5c677c;
}

.status[data-state="on"] { color: var(--green); border-color: rgba(55, 211, 155, .35); }
.status[data-state="on"]::before { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status[data-state="err"] { color: var(--red); border-color: rgba(244, 103, 122, .35); }
.status[data-state="err"]::before { background: var(--red); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .06s;
  white-space: nowrap;
}

.btn:hover { background: #1f2839; border-color: #2e3a52; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, #6d8dff, #8f7bff);
  border-color: transparent;
  color: #0a0f18;
  font-weight: 700;
}

.btn-primary:hover { filter: brightness(1.08); background: linear-gradient(135deg, #6d8dff, #8f7bff); }

.btn-danger {
  background: rgba(244, 103, 122, .14);
  border-color: rgba(244, 103, 122, .4);
  color: #ff96a4;
}

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--panel-2); }
.btn[hidden] { display: none; }

/* ---------- layout ---------- */

.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  max-width: 1500px;
  margin: 0 auto;
  min-height: calc(100vh - 63px);
}

.sidebar {
  position: sticky;
  top: 63px;
  height: calc(100vh - 63px);
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  border-right: 1px solid var(--line-soft);
  overflow-y: auto;
}

.nav { display: flex; flex-direction: column; gap: 2px; }

.nav-group { margin-bottom: 14px; }

.nav-group-title {
  padding: 4px 12px 6px;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #5f6b80;
}

.nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  border-left: 2px solid transparent;
  transition: color .15s, background .15s;
}

.nav a:hover { color: var(--text); background: var(--panel); }

.nav a.is-active {
  color: var(--text);
  background: rgba(124, 156, 255, .10);
  border-left-color: var(--accent);
  font-weight: 600;
}

.sidebar-foot {
  margin-top: auto;
  padding: 14px 12px 0;
  font-size: 11.5px;
  color: #5f6b80;
  border-top: 1px solid var(--line-soft);
}

/* ---------- article ---------- */

.doc {
  padding: 34px 46px 90px;
  max-width: 900px;
  width: 100%;
  min-width: 0;
}

.doc h1 {
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}

.doc h2 {
  font-size: 20px;
  margin: 38px 0 12px;
  padding-top: 6px;
  letter-spacing: -.01em;
}

.doc h3 { font-size: 16px; margin: 26px 0 8px; color: #cfd8e8; }

.doc p, .doc li { color: #c7d0e0; }

.doc a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(124, 156, 255, .3); }
.doc a:hover { border-bottom-color: var(--accent); }

.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }

.doc code {
  font-family: var(--mono);
  font-size: 12.8px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(124, 156, 255, .10);
  color: #cfe0ff;
  border: 1px solid rgba(124, 156, 255, .12);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13.5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.doc th, .doc td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.doc th { background: var(--panel); font-weight: 600; color: #dbe3f1; }
.doc tr:last-child td { border-bottom: 0; }

.doc blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(124, 156, 255, .07);
  border-radius: 0 10px 10px 0;
  color: #c2cee2;
}

.doc blockquote p { margin: 0; }

.doc details {
  margin: 14px 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.doc summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 13.5px; }
.doc details[open] summary { margin-bottom: 8px; }

.doc hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }

/* code blocks */

.code {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--code-bg);
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 6px 14px;
  background: rgba(255, 255, 255, .025);
  border-bottom: 1px solid var(--line-soft);
}

.code-head .lang {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6d7a90;
}

.code-head .copy {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.code-head .copy:hover { background: var(--panel-2); color: var(--text); border-color: var(--line); }

.code pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
}

.code pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  line-height: 1.6;
  color: #d6e0f0;
}

.tok-kw { color: #ff9db2; font-weight: 600; }
.tok-str { color: #a5e8a5; }
.tok-num { color: #ffd08a; }
.tok-com { color: #61708a; font-style: italic; }
.tok-op { color: #9cc8ff; }

/* skeleton */

.sk {
  height: 14px;
  border-radius: 6px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #131a29 25%, #1a2334 50%, #131a29 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
}

.sk-title { height: 30px; width: 55%; margin-bottom: 22px; }
.sk-short { width: 70%; }

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ---------- панель связи (drawer) ---------- */

.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #18202f;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .45);
  transition: background .15s, border-color .15s, transform .1s;
}

.fab:hover { background: #202a3d; border-color: #33405a; }
.fab:active { transform: translateY(1px); }
.fab-icon { display: grid; place-items: center; color: var(--accent); }

.fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--red);
  color: #12100f;
  font-size: 10.5px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}

.fab-badge[hidden] { display: none; }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(4, 7, 12, .55);
  backdrop-filter: blur(2px);
}

.drawer-backdrop[hidden] { display: none; }

.dock {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: #0e1422;
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 70px rgba(0, 0, 0, .5);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .24s ease, visibility .24s;
  overflow: hidden;
}

.dock.is-open {
  transform: translateX(0);
  visibility: visible;
}

.dock-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 12px 13px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.dock-title { font-weight: 650; font-size: 14px; }

.dock-head .status { margin-left: auto; }

.dock-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
}

.dock-close:hover { background: var(--panel-2); color: var(--text); border-color: var(--line); }

.dock-room { margin-left: 0; flex-wrap: wrap; }
.dock-room .room-input { flex: 1; min-width: 110px; width: auto; }

.dock-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.tab {
  flex: 1;
  padding: 9px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tab:hover { color: var(--text); background: rgba(255, 255, 255, .03); }

.tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
  background: rgba(124, 156, 255, .07);
}

.badge {
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--red);
  color: #12100f;
  font-size: 10.5px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}

.badge[hidden] { display: none; }

.pane {
  display: none;
  flex: 1;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
}

.pane.is-active { display: flex; flex-direction: column; gap: 12px; }

.hint { color: var(--muted); font-size: 12.5px; margin: 0; }
.hint.small { font-size: 11.5px; color: #72809a; }

.field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.field input {
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel);
  outline: none;
}
.field input:focus { border-color: var(--accent); }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; }

.link-row { display: flex; gap: 6px; }
.link-row .room-input { flex: 1; width: auto; }

/* stage */

.stage {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #05080e;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage video { width: 100%; height: 100%; object-fit: contain; background: #05080e; }

.stage[hidden] { display: none; }

.stage-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.pill {
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(55, 211, 155, .16);
  color: var(--green);
  border: 1px solid rgba(55, 211, 155, .35);
  backdrop-filter: blur(6px);
}

.pill-muted {
  background: rgba(255, 255, 255, .07);
  color: var(--muted);
  border-color: var(--line);
}

.stage-empty {
  position: absolute;
  color: #55617a;
  font-size: 12.5px;
}

.stage-actions {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

/* chat */

.messages {
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.messages-empty { color: #5d6a80; font-size: 12.5px; text-align: center; margin: auto 0; }

.msg {
  border: 1px solid var(--line-soft);
  background: var(--panel);
  border-radius: 11px;
  padding: 9px 11px;
  font-size: 13px;
}

.msg-head {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 5px;
}

.msg-nick { font-weight: 650; font-size: 12px; color: #cfd9ea; }
.msg-role { font-size: 10px; color: #6f7d95; text-transform: uppercase; letter-spacing: .06em; }
.msg-time { margin-left: auto; font-size: 10.5px; color: #5f6b80; font-variant-numeric: tabular-nums; }

.msg-text { white-space: pre-wrap; word-break: break-word; color: #c4cfe0; }
.msg-text:empty { display: none; }

.msg pre {
  margin: 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--code-bg);
  border: 1px solid var(--line-soft);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.2px;
  line-height: 1.55;
}

.msg pre code { padding: 0; background: none; border: 0; font-size: inherit; }

.msg.is-mine { border-color: rgba(124, 156, 255, .28); background: rgba(124, 156, 255, .06); }

.composer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.composer textarea {
  width: 100%;
  resize: vertical;
  min-height: 62px;
  max-height: 220px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  outline: none;
}

.composer textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 156, 255, .12); }

.composer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.check input { accent-color: var(--accent); }

/* toast */

.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #1b2436;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 200;
}

.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- карточки шпаргалок ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.doc a.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  text-decoration: none;
  transition: transform .12s, border-color .12s, background .12s;
}

.doc a.card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 156, 255, .5);
  background: var(--panel-2);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124, 156, 255, .28), rgba(167, 139, 250, .22));
  color: #cfe0ff;
  font-weight: 800;
  font-size: 13px;
}

.card-title { font-weight: 650; font-size: 14.5px; color: var(--text); }
.card-text { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---------- компилятор ---------- */

.compiler {
  grid-column: 2;
  max-width: 1020px;
  padding-top: 30px;
}

.compiler[hidden] { display: none; }

.compiler-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.compiler-head h1 { margin: 0 0 6px; font-size: 28px; }

.compiler .lead {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 13.5px;
}

.compiler-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.compiler kbd {
  margin-left: 4px;
  padding: 1px 5px;
  border: 1px solid rgba(10, 15, 24, .35);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  opacity: .7;
}

.editor-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--code-bg);
  overflow: hidden;
}

#codeInput {
  display: block;
  width: 100%;
  min-height: 360px;
  padding: 16px;
  border: 0;
  outline: none;
  resize: vertical;
  background: transparent;
  color: #dbe6f7;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  tab-size: 4;
}

#codeInput::selection { background: rgba(124, 156, 255, .3); }

.run-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.stdin-box {
  flex: 1;
  min-width: 240px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.stdin-box summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--muted);
}

.stdin-box textarea {
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--code-bg);
  font-family: var(--mono);
  font-size: 12.5px;
  resize: vertical;
  outline: none;
}

.stdin-box textarea:focus { border-color: var(--accent); }

.run-status {
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.run-status.is-busy { color: var(--accent); border-color: rgba(124, 156, 255, .4); }
.run-status.is-ok { color: var(--green); border-color: rgba(55, 211, 155, .35); }
.run-status.is-err { color: var(--red); border-color: rgba(244, 103, 122, .4); }

.output {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--code-bg);
  overflow: hidden;
}

.output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #6d7a90;
}

.run-output {
  margin: 0;
  padding: 14px 16px;
  min-height: 96px;
  max-height: 380px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: #d6e0f0;
}

.run-output.is-error { color: #ffb3bd; }
.run-output.is-muted { color: #6f7d95; }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .layout { grid-template-columns: 220px minmax(0, 1fr); }
  .doc { padding: 28px 30px 80px; }
  .compiler { padding-top: 24px; }
}

@media (max-width: 980px) {
  .layout { grid-template-columns: 190px minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .topbar { gap: 10px; padding: 10px 12px; flex-wrap: wrap; }
  .brand-text small { display: none; }
  .topnav { width: 100%; overflow-x: auto; }
  .topnav a { padding: 6px 10px; font-size: 12.5px; }
  .room-label { display: none; }
  .room-input { width: 110px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding: 12px;
    flex-direction: row;
    overflow-x: auto;
  }
  .nav { flex-direction: row; }
  .nav-group { display: contents; }
  .nav-group-title { display: none; }
  .nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
  .nav a.is-active { border-left: 0; border-bottom-color: var(--accent); }
  .sidebar-foot { display: none; }
  .doc { padding: 20px 16px 70px; }
  .doc h1 { font-size: 24px; }
  .compiler { grid-column: 1; padding: 20px 16px 90px; }
  .compiler-head h1 { font-size: 24px; }
  #codeInput { min-height: 300px; font-size: 13px; }
  .fab { right: 12px; bottom: 12px; }
}

