@font-face {
  font-family: Inter;
  src: url("/assets/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.025em;
  color: #e3e3e3;
  background: #09090b;
  --accent: #d65000;
  --muted: #717279;
  --border: #1c1c20;
  --raised: #171718;
  --motion: 180ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding: 24px;
}
button,
input,
select {
  font: inherit;
  letter-spacing: inherit;
}
button,
a,
input {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #e87421;
}
button {
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--raised);
  cursor: pointer;
  transition:
    background var(--motion),
    border-color var(--motion),
    color var(--motion),
    transform var(--motion);
}
button:hover {
  background: #1e1e20;
  border-color: #303034;
}
button:active {
  transform: translateY(1px);
}
button:disabled,
input:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 14px;
  font-weight: 550;
}
h2 {
  font-size: 16px;
  font-weight: 600;
}
i {
  flex-shrink: 0;
}
button .icon {
  pointer-events: none;
}
.icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: currentColor;
  mask: var(--icon) center/contain no-repeat;
}
.combat {
  --icon: url("/assets/combat.svg");
}
.display {
  --icon: url("/assets/display.svg");
}
.bindings {
  --icon: url("/assets/bindings.svg");
}
.session {
  --icon: url("/assets/session.svg");
}
.search {
  --icon: url("/assets/search.svg");
}
.collapse {
  --icon: url("/assets/collapse.svg");
}
.layout {
  --icon: url("/assets/layout.svg");
}
.chevron {
  --icon: url("/assets/chevron.svg");
}
.menu {
  width: 850px;
  height: 500px;
  max-width: 100%;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  background: #101011;
  border: 1px solid #222124;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 80px #0005;
  animation: open-menu 320ms var(--ease) both;
}
.sidebar {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.brand {
  height: 43px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: url("/assets/brand-pattern.png") center/180px auto no-repeat;
}
.profile {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 16px 11px 7px;
  font-size: 12px;
  white-space: nowrap;
}
.avatar {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: #222124;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #61636b;
  margin-left: auto;
  transition: background 250ms;
}
.dot.active {
  background: #4ca765;
  box-shadow: 0 0 7px #4ca76544;
}
nav {
  padding: 0 11px;
  overflow-y: auto;
}
.category {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin: 11px 0 6px;
}
.category span {
  font-size: 10px;
  padding-left: 2px;
}
nav a {
  height: 27px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  margin: 3px 0;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 600;
  transition:
    background var(--motion),
    color var(--motion);
}
nav a:hover {
  color: #a7a8ae;
  background: #141416;
}
nav a.active {
  color: #e3e3e3;
  background: #171718;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 23px;
  background: transparent;
  color: var(--muted);
}
#phase-label {
  font-size: 10px;
  letter-spacing: -0.01em;
  color: var(--muted);
  max-width: 114px;
}
.content {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
.toolbar {
  height: 43px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  gap: 8px;
  flex-shrink: 0;
  font-size: 12px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.breadcrumb > span {
  color: var(--muted);
}
.breadcrumb strong {
  font-weight: 600;
}
.breadcrumb .icon {
  width: 12px;
  height: 12px;
}
.toolbar-actions {
  display: flex;
  gap: 6px;
}
.toolbar-actions button {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: var(--muted);
  padding: 3px 6px;
  height: 24px;
}
.toolbar-actions .icon {
  width: 12px;
  height: 12px;
}
kbd {
  font: inherit;
  font-size: 10px;
  border: 1px solid #242428;
  border-radius: 3px;
  min-width: 14px;
  text-align: center;
}
.viewport {
  padding: 16px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #29292e transparent;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.cards.single {
  grid-template-columns: minmax(0, 1fr);
}
.view {
  animation: enter-view 200ms var(--ease);
}
.view[hidden],
[hidden] {
  display: none !important;
}
.module {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #101011;
  transition: border-color var(--motion);
  overflow: clip;
}
.module:hover {
  border-color: #26262a;
}
.module-heading {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
}
.module-heading h1 {
  margin-right: auto;
}
.module-heading .fold {
  width: 25px;
  height: 21px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--muted);
}
.fold .icon {
  width: 10px;
  height: 10px;
  transition: transform 220ms var(--ease);
}
.module.collapsed .fold .icon {
  transform: rotate(-90deg);
}
.module-body {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition:
    grid-template-rows 240ms var(--ease),
    opacity 180ms;
}
.module.collapsed .module-body {
  grid-template-rows: 0fr;
  opacity: 0;
}
.module-body > div {
  overflow: hidden;
  min-height: 0;
}
.module-inner {
  padding: 0 13px 12px;
}
.setting-wrap {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition:
    grid-template-rows 200ms var(--ease),
    opacity 160ms;
}
.setting-wrap.unavailable {
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
}
.setting-wrap > div {
  overflow: hidden;
  min-height: 0;
}
.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  min-height: 47px;
}
.setting-wrap:first-child .setting {
  border-top: 0;
  padding-top: 4px;
}
.setting-label {
  min-width: 0;
  flex: 1;
  font-size: 14px;
  line-height: 18px;
  font-weight: 550;
}
.description {
  display: block;
  font-size: 13px;
  line-height: 17px;
  color: var(--muted);
  margin-top: 2px;
}
.switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 30px;
  height: 20px;
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: inherit;
}
.switch span {
  width: 30px;
  height: 20px;
  background: #1e1e20;
  border-radius: 20px;
  pointer-events: none;
  transition: background 180ms;
}
.switch span:after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background: #717279;
  border-radius: 50%;
  margin: 3px;
  transform: translateX(0);
  transition:
    transform 220ms var(--ease),
    background 180ms;
}
.switch input:checked + span {
  background: var(--accent);
}
.switch input:checked + span:after {
  transform: translateX(10px);
  background: #fff;
}
.switch input:focus-visible + span {
  outline: 2px solid #e87421;
  outline-offset: 3px;
}
.switch input:disabled + span {
  opacity: 0.45;
}
.value-button,
.key-button {
  font-size: 12px;
  font-weight: 650;
  color: #a7a8ae;
  min-height: 27px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 160px;
  white-space: nowrap;
}
.value-button .icon {
  width: 9px;
  height: 9px;
}
.setting.range {
  display: block;
}
.range-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.number-value {
  display: flex;
  align-items: baseline;
  color: var(--accent);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.number-value input {
  color: inherit;
  background: transparent;
  border: 0;
  text-align: right;
  width: 48px;
  padding: 0;
  font-weight: 650;
  appearance: textfield;
}
.number-value input::-webkit-inner-spin-button {
  appearance: none;
}
.range input[type="range"] {
  appearance: none;
  width: 100%;
  display: block;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--accent) var(--fill),
    #202023 var(--fill)
  );
  border-radius: 9px;
  margin: 14px 0 6px;
  cursor: pointer;
}
.range input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: #e3e3e3;
  border: 3px solid var(--accent);
  border-radius: 50%;
  transition: box-shadow 150ms;
}
.range input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 4px #d6500026;
}
.range input[type="range"]::-moz-range-thumb {
  width: 7px;
  height: 7px;
  background: #e3e3e3;
  border: 3px solid var(--accent);
  border-radius: 50%;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 12px 0 0;
}
.module-inner > .hint:first-child {
  margin-top: 0;
}
.session-data {
  margin: 0;
}
.session-data > div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
}
.status-pill {
  font-size: 11px;
  color: var(--muted);
}
.danger {
  color: #ff7375;
  border-color: #502b2f;
  background: #211416;
  padding: 7px 12px;
}
.danger:hover {
  background: #351b1e;
  border-color: #834047;
}
#stop-button {
  width: 100%;
  margin-top: 15px;
}
.popup {
  background: #171718;
  border: 1px solid #2b2b30;
  color: #e3e3e3;
  border-radius: 8px;
  padding: 4px;
  min-width: 140px;
  max-height: 290px;
  overflow: auto;
  box-shadow: 0 12px 32px #0009;
  margin: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 140ms,
    transform 140ms,
    display 140ms allow-discrete,
    overlay 140ms allow-discrete;
}
.popup:popover-open {
  opacity: 1;
  transform: translateY(0);
}
.popup button {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 7px 8px;
  text-align: left;
  border: 0;
  background: transparent;
  font-size: 12px;
}
.popup button[aria-selected="true"],
.popup button[aria-checked="true"] {
  color: #e87421;
  background: #d6500010;
}
.popup button:hover {
  background: #222124;
}
.popup .check {
  width: 12px;
  font-size: 12px;
}
dialog {
  width: 330px;
  max-width: calc(100vw - 32px);
  padding: 21px;
  border: 1px solid #303034;
  border-radius: 10px;
  background: #141416;
  color: #e3e3e3;
  box-shadow: 0 24px 100px #000a;
  animation: enter-view 180ms var(--ease);
}
dialog::backdrop {
  background: #0009;
  backdrop-filter: blur(3px);
}
dialog p {
  color: #a7a8ae;
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 20px;
}
dialog button {
  padding: 7px 14px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
#notice {
  position: absolute;
  bottom: 10px;
  left: 16px;
  right: 16px;
  padding: 8px 12px;
  border: 1px solid #442d29;
  border-radius: 7px;
  background: #231a17;
  color: #e8b9a6;
  font-size: 12px;
  box-shadow: 0 4px 20px #0006;
  animation: enter-view 160ms;
}
#search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 16px 0;
  padding: 4px 8px;
  background: var(--raised);
  border: 1px solid #29292e;
  border-radius: 7px;
  color: var(--muted);
}
#search {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  color: #e3e3e3;
  padding: 4px;
  outline: 0;
}
#no-results {
  padding: 30px;
  text-align: center;
  color: var(--muted);
}
.binding-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid var(--border);
}
.binding-row:first-child {
  border: 0;
}
.bind-actions {
  display: flex;
  gap: 5px;
}
.clear-key {
  width: 27px;
  color: var(--muted);
}
@keyframes enter-view {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes open-menu {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@starting-style {
  .popup:popover-open {
    opacity: 0;
    transform: translateY(-4px);
  }
}
@media (max-width: 700px) {
  body {
    padding: 12px;
  }
  .menu {
    height: min(680px, calc(100dvh - 24px));
    grid-template-columns: 145px minmax(0, 1fr);
  }
  .brand {
    background-size: 145px;
  }
  .profile {
    font-size: 10px;
    gap: 4px;
  }
  .toolbar {
    padding: 0 11px;
  }
  .toolbar-actions button > span {
    display: none;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .viewport {
    padding: 12px;
  }
  .sidebar-bottom {
    gap: 5px;
  }
  #phase-label {
    font-size: 9px;
  }
  .breadcrumb {
    font-size: 11px;
  }
  nav {
    padding: 0 8px;
  }
  nav a {
    font-size: 12px;
    padding-left: 6px;
  }
  .module-heading,
  .module-inner {
    padding-left: 11px;
    padding-right: 11px;
  }
}
@media (max-width: 440px) {
  body {
    padding: 6px;
  }
  .menu {
    height: calc(100dvh - 12px);
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .profile,
  .category,
  .sidebar-bottom #phase-label {
    display: none;
  }
  nav {
    padding: 8px 6px;
  }
  nav a {
    font-size: 0;
    height: 32px;
    padding: 0;
    justify-content: center;
    margin: 6px 0;
  }
  nav a .icon {
    width: 16px;
    height: 16px;
  }
  .sidebar-bottom {
    padding: 9px 7px;
  }
  .brand {
    background: none;
  }
  .toolbar-actions {
    gap: 3px;
  }
  .toolbar {
    padding: 0 10px;
  }
  .viewport {
    padding: 10px;
  }
  .setting-label {
    font-size: 13px;
  }
  .description {
    font-size: 12px;
  }
  .value-button {
    max-width: 135px;
  }
  .brand img {
    width: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Account gate uses the same palette as the control menu. */
.account-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #101114;
  padding: 20px;
}
.account-screen[hidden] {
  display: none;
}
.account-card {
  width: min(380px, 100%);
  display: grid;
  gap: 14px;
  background: #1a1b20;
  border: 1px solid #303238;
  border-radius: 16px;
  padding: 28px;
}
.account-card h1,
.account-card p {
  margin: 0;
}
.account-card label {
  display: grid;
  gap: 7px;
}
.account-card input {
  width: 100%;
  padding: 10px;
  color: #eee;
  background: #101114;
  border: 1px solid #444;
  border-radius: 7px;
}
.account-card button {
  padding: 11px;
  border-radius: 7px;
  cursor: pointer;
}
#account-error {
  color: #f99;
  font-size: 13px;
}
