:root {
  --background: #14161a;
  --surface: #1c1f25;
  --border: #2e333c;
  --text: #d8dce3;
  --muted: #8b93a1;
  --accent: #7fb2ff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font:
    13px/1.5 ui-monospace,
    "SF Mono",
    Menlo,
    Consolas,
    monospace;
}

label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}

button,
select,
input,
textarea {
  font: inherit;
  color: var(--text);
  background: #23272f;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 3px 7px;
}

button {
  cursor: pointer;
}

@media (hover: hover) {
  button:enabled:hover {
    border-color: var(--accent);
  }
}

button:disabled {
  color: var(--muted);
  opacity: 0.45;
  cursor: default;
}

button.selected {
  border-color: var(--accent);
  color: var(--accent);
}

input[type="checkbox"] {
  padding: 0;
  accent-color: var(--accent);
}

main {
  flex: 1;
  display: flex;
  min-height: 0;
}

#notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #3a2326;
  border-bottom: 1px solid #7c3b40;
  color: #ffc9c9;
}

#notice span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

#missing {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

#missing button {
  padding: 10px 18px;
}

@media (max-width: 820px) {
  body {
    height: 100dvh;
  }

  button,
  select,
  input {
    min-height: 32px;
    padding: 5px 9px;
  }

  input[type="checkbox"] {
    min-height: 0;
    width: 17px;
    height: 17px;
  }

  main {
    flex-direction: column;
  }
}

@media (max-width: 820px) and (max-height: 520px) {
  main {
    flex-direction: row;
  }
}
