:root {
  --bg: #0b0d12;
  --bg-2: #10131a;
  --bg-3: #161a24;
  --border: #232838;
  --border-2: #2c3246;
  --text: #d6dae4;
  --text-dim: #8b91a3;
  --text-faint: #5b6172;
  --accent: #6c8cff;
  --accent-2: #9fb4ff;
  --green: #3fb968;
  --amber: #e0a63c;
  --red: #e5626b;
  --purple: #b48cff;
  --cyan: #56c8d8;
  --chat-bg: #0e1118;
  --radius: 10px;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-ui: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body,
#app {
  height: 100%;
}

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  overflow: hidden;
}

.material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 20px;
  user-select: none;
}

#app {
  display: flex;
  flex-direction: column;
}

/* ---------- Topbar ---------- */
#topbar {
  height: 46px;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.topbar-left,
.topbar-right,
.topbar-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.brand-icon {
  color: var(--accent);
  font-size: 22px;
}

.brand-dot {
  color: var(--accent);
  animation: blink 1.4s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

.project-name {
  font-size: 13px;
  color: var(--text-dim);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* ---------- Buttons ---------- */
.icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.icon-btn:hover {
  background: var(--bg-3);
  color: var(--text);
}

.icon-btn.active {
  background: var(--bg-3);
  color: var(--accent);
}

.icon-btn.small {
  width: 26px;
  height: 26px;
}

.icon-btn.small .material-symbols-rounded {
  font-size: 17px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  background: var(--bg-3);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover {
  background: #1d2331;
  border-color: var(--accent);
}

.btn .material-symbols-rounded {
  font-size: 17px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-color: transparent;
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-2), var(--purple));
  color: #fff;
  border-color: transparent;
}

/* ---------- Main layout ---------- */
#main {
  flex: 1;
  display: flex;
  min-height: 0;
}

/* ---------- Explorer ---------- */
#explorer {
  width: 260px;
  flex: 0 0 260px;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: margin 0.2s ease;
}

#explorer.collapsed {
  margin-left: -260px;
}

.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 10px;
  border-bottom: 1px solid var(--border);
  flex: 0 0 40px;
}

.pane-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pane-title .material-symbols-rounded {
  font-size: 16px;
  color: var(--accent);
}

.pane-actions {
  display: flex;
  gap: 2px;
}

#tree {
  flex: 1;
  overflow: auto;
  padding: 6px 6px 12px;
}

/* Tree nodes */
.node {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 13px;
  white-space: nowrap;
  position: relative;
}

.node:hover {
  background: var(--bg-3);
  color: var(--text);
}

.node.selected {
  background: #1e2436;
  color: var(--text);
}

.node .caret {
  font-size: 16px;
  width: 16px;
  flex: 0 0 16px;
  color: var(--text-faint);
  transition: transform 0.15s;
}

.node .caret.open {
  transform: rotate(90deg);
}

.node .file-icon {
  font-size: 16px;
  flex: 0 0 16px;
}

.node .twisty {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.node-children {
  margin-left: 14px;
  border-left: 1px solid var(--border);
  padding-left: 4px;
  display: none;
}

.node-children.open {
  display: block;
}

.node .node-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.node .node-menu {
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.12s;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.node:hover .node-menu {
  opacity: 1;
}

.node .node-menu .material-symbols-rounded {
  font-size: 15px;
}

/* ---------- Workspace / editor ---------- */
#workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

#tabs {
  height: 38px;
  flex: 0 0 38px;
  display: flex;
  align-items: flex-end;
  background: var(--bg-2);
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  scrollbar-width: thin;
}

.tab {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px 0 8px;
  border-right: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-dim);
  cursor: pointer;
  max-width: 180px;
  white-space: nowrap;
  user-select: none;
}

.tab.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: inset 0 2px 0 var(--accent);
}

.tab .tab-icon {
  font-size: 15px;
}

.tab .tab-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab .tab-close {
  font-size: 14px;
  color: var(--text-faint);
  border-radius: 4px;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.tab .tab-close:hover {
  color: var(--red);
  background: rgba(229, 98, 107, 0.12);
}

.tab.dirty::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  margin-left: 2px;
  flex: 0 0 7px;
}

#editor-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

#filename {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  outline: none;
}

#filename:focus {
  border-color: var(--accent);
}

#editor-wrap {
  flex: 1;
  display: flex;
  min-height: 0;
  position: relative;
  background: var(--bg);
}

#linenos {
  width: 48px;
  flex: 0 0 48px;
  text-align: right;
  padding: 8px 10px 8px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-faint);
  background: var(--bg-2);
  overflow: hidden;
  user-select: none;
  border-right: 1px solid var(--border);
}

#editor {
  flex: 1;
  background: var(--bg);
  border: none;
  outline: none;
  resize: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  padding: 8px 14px;
  white-space: pre;
  overflow: auto;
  tab-size: 2;
}

#empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-faint);
}

.empty-icon {
  font-size: 56px;
  color: var(--border-2);
}

#empty p {
  font-size: 14px;
}

.fab {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  box-shadow: 0 6px 18px rgba(108, 140, 255, 0.4);
  font-size: 20px;
}

.fab:hover {
  background: linear-gradient(135deg, var(--accent-2), var(--purple));
  color: #fff;
  transform: translateY(-1px);
}

/* Selected line highlight */
#editor-wrap .sel::selection {
  background: rgba(108, 140, 255, 0.35);
}

/* · TODO keep lines clickable via manual highlight */
.line-flash {
  background: rgba(108, 140, 255, 0.25) !important;
}

/* ---------- Chat ---------- */
#chat {
  width: 340px;
  flex: 0 0 340px;
  background: var(--chat-bg);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: margin 0.2s ease;
}

#chat.collapsed {
  margin-right: -340px;
}

.chat-head .pane-title .material-symbols-rounded {
  color: var(--green);
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  display: flex;
  gap: 8px;
  max-width: 100%;
}

.msg .avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.msg.user {
  flex-direction: row-reverse;
}

.msg.user .avatar {
  background: #2a3150;
  color: var(--accent);
}

.msg.ai .avatar {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
}

.bubble {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg.user .bubble {
  background: #263049;
  border-bottom-right-radius: 4px;
  max-width: 85%;
}

.msg.ai .bubble {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  max-width: 92%;
}

.msg.ai .bubble.with-actions {
  border-color: rgba(108, 140, 255, 0.4);
}

.bubble code {
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 4px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.bubble pre {
  background: #0a0c12;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  overflow-x: auto;
  margin: 6px 0;
  font-family: var(--font-mono);
  font-size: 12px;
}

.bubble h4 {
  font-size: 12px;
  margin: 6px 0 2px;
  color: var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.actions .btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid var(--border-2);
  background: #1b2030;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 12px;
  cursor: pointer;
}

.actions .btn-mini:hover {
  border-color: var(--accent);
}

.actions .btn-mini.approve {
  border-color: var(--green);
  color: var(--green);
}

.actions .btn-mini.reject {
  border-color: var(--red);
  color: var(--red);
}

.actions .btn-mini .material-symbols-rounded {
  font-size: 14px;
}

#chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  align-items: flex-end;
}

#chat-input {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  color: var(--text);
  padding: 9px 11px;
  font-family: var(--font-ui);
  font-size: 13px;
  resize: none;
  outline: none;
  max-height: 120px;
  line-height: 1.4;
}

#chat-input:focus {
  border-color: var(--accent);
}

#chat-input::placeholder {
  color: var(--text-faint);
}

#chat-send {
  color: var(--accent);
}

#chat-send:hover {
  background: rgba(108, 140, 255, 0.12);
  color: var(--accent-2);
}

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 4px 2px;
}

.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.2s infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* ---------- Modal ---------- */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  z-index: 100;
}

#modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  max-width: 92vw;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  z-index: 101;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
}

#modal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#modal-body .modal-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

#modal-body input,
#modal-body textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  padding: 9px 11px;
  outline: none;
  resize: vertical;
}

#modal-body textarea {
  min-height: 64px;
}

#modal-body input:focus,
#modal-body textarea:focus {
  border-color: var(--accent);
}

#modal-body .modal-row {
  display: flex;
  gap: 8px;
}

#modal-body .modal-row .btn {
  flex: 1;
  justify-content: center;
}

.modal-hint {
  font-size: 12px;
  color: var(--text-faint);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  line-height: 1.5;
}

.modal-hint .file-chip {
  color: var(--accent);
  font-family: var(--font-mono);
}

.modal-hint .line-chip {
  color: var(--green);
  font-family: var(--font-mono);
}

/* ---------- Explorer footer / settings ---------- */
#explorer-footer {
  flex: 0 0 auto;
  padding: 10px;
  border-top: 1px solid var(--border);
}

.btn-footer {
  width: 100%;
  justify-content: center;
  background: var(--bg-3);
}

#explorer-footer .btn .material-symbols-rounded {
  font-size: 16px;
}

/* ---------- Model selector ---------- */
#model-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  gap: 8px;
  background: var(--bg-2);
}

.model-row-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

.model-row-label .material-symbols-rounded {
  font-size: 15px;
  color: var(--purple);
}

.model-pick {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

#model-select {
  appearance: none;
  background: var(--bg-3)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%238b91a3'><path d='M7 10l5 5 5-5z'/></svg>")
    no-repeat right 8px center;
  background-size: 14px;
  border: 1px solid var(--border-2);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 26px 6px 10px;
  border-radius: 7px;
  outline: none;
  cursor: pointer;
}

#model-select:hover {
  border-color: var(--accent);
}

#model-select option {
  background: var(--bg-3);
  color: var(--text);
}

/* ---------- Question cards (Advanced) ---------- */
.q-card {
  width: 100%;
}

.q-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  margin-bottom: 6px;
}

.q-text {
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.45;
}

.q-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.q-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: #1b2030;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  padding: 8px 10px;
  cursor: pointer;
}

.q-opt:hover {
  border-color: var(--accent);
  background: #222941;
}

.q-opt.chosen {
  border-color: var(--green);
  background: rgba(63, 185, 104, 0.12);
  color: var(--green);
}

.q-other {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.q-opt-label {
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
}

.q-other-inp {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 12px;
  padding: 6px 8px;
  outline: none;
}

.q-other-inp:focus {
  border-color: var(--accent);
}

.q-other-ok {
  background: var(--accent);
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.q-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.q-skip,
.q-auto {
  flex: 1;
  padding: 7px 8px;
  border-radius: 7px;
  font-family: var(--font-ui);
  font-size: 12px;
  cursor: pointer;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-2);
  white-space: nowrap;
}

.q-skip:hover {
  color: var(--text);
  border-color: var(--border-2);
}

.q-auto {
  color: var(--accent);
  border-color: rgba(108, 140, 255, 0.4);
}

.q-auto:hover {
  background: rgba(108, 140, 255, 0.1);
}

.q-answered-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--green);
  border-top: 1px dashed var(--border);
  padding-top: 6px;
}

/* ---------- Reasoning / thinking ---------- */
.think-block {
  margin-bottom: 8px;
  border-left: 2px solid var(--purple);
  padding-left: 10px;
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(180, 140, 255, 0.05);
  border-radius: 0 6px 6px 0;
  padding: 8px 10px;
}

.think-block summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--purple);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.think-block p {
  margin-top: 6px;
  white-space: pre-wrap;
}

/* ---------- Settings modal ---------- */
.settings-section {
  margin-bottom: 16px;
}

.settings-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.settings-title .material-symbols-rounded {
  font-size: 15px;
}

.settings-set {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}

.settings-set:first-of-type {
  border-top: none;
}

.set-label {
  font-size: 13px;
}

.set-label small {
  display: block;
  color: var(--text-faint);
  font-size: 11px;
  margin-top: 2px;
}

.set-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* toggle switch */
.switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex: 0 0 40px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background: var(--border-2);
  border-radius: 22px;
  transition: 0.2s;
  cursor: pointer;
}

.slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: var(--text-dim);
  border-radius: 50%;
  transition: 0.2s;
}

.switch input:checked + .slider {
  background: var(--accent);
}

.switch input:checked + .slider::before {
  transform: translateX(18px);
  background: #fff;
}

select.set-select,
input.set-num {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: 6px;
  padding: 5px 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  outline: none;
}

.set-num {
  width: 56px;
}

/* model tag chips */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-2);
  font-size: 12px;
  cursor: pointer;
  background: var(--bg-3);
  color: var(--text-dim);
  user-select: none;
}

.tag.on {
  border-color: var(--accent);
  background: rgba(108, 140, 255, 0.15);
  color: var(--text);
}

.tag .check {
  display: none;
}

.tag.on .check {
  display: inline;
}

.settings-hint {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 6px;
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 120;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s;
}

#toast.show {
  opacity: 1;
}

.hidden {
  display: none !important;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a4260;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 720px) {
  #chat {
    position: fixed;
    right: 0;
    top: 46px;
    bottom: 0;
    width: 100%;
    z-index: 50;
  }

  #explorer {
    position: fixed;
    left: 0;
    top: 46px;
    bottom: 0;
    z-index: 50;
  }
}
