:root {
  color-scheme: dark;
  --bg: #151515;
  --page: #101010;
  --panel: #151515;
  --row: #000000;
  --row-alt: #242424;
  --text: #ffffff;
  --muted: #97a0a8;
  --line: #585858;
  --line-soft: #3c3c3c;
  --accent: #1e9bff;
}

* {
  box-sizing: border-box;
}

html {
  background: #050505;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

body.auth-pending .shell {
  visibility: hidden;
}

button,
input {
  font: inherit;
}

button {
  align-self: end;
  background: #050505;
  border: 1px solid #a9a9a9;
  border-radius: 0;
  color: var(--text);
  cursor: pointer;
  min-height: 34px;
  padding: 7px 12px;
}

button:hover:not(:disabled) {
  border-color: var(--text);
  background: #111111;
}

button:disabled {
  color: #6f767c;
  cursor: not-allowed;
}

.shell {
  background: var(--page);
  margin: 0 auto;
  max-width: 1000px;
  min-height: 100vh;
  padding: 52px 48px;
}

.topbar,
.list-header {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
}

.lead {
  color: var(--text);
  font-size: 16px;
  margin-top: 28px;
}

h2,
h3,
label {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  font-size: 15px;
  margin-bottom: 18px;
}

h3 {
  font-size: 14px;
  margin: 0 0 10px;
}

.hint {
  color: #d6dbe0;
  line-height: 1.45;
  margin: 0 0 14px;
}

#session {
  color: #d6dbe0;
  line-height: 1.45;
}

.actions {
  display: flex;
  gap: 12px;
  padding-top: 2px;
}

.panel {
  background: transparent;
  margin-top: 34px;
  max-width: 800px;
  padding: 0;
}

.grid {
  display: grid;
  gap: 18px 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  font-size: 14px;
  gap: 8px;
}

input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  min-height: 30px;
  min-width: 0;
  outline: 0;
  padding: 4px 0 8px;
}

input:focus {
  border-bottom-color: var(--accent);
  color: var(--text);
}

.wide {
  grid-column: span 2;
}

.columns {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  margin-top: 22px;
}

.table-host {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th {
  color: #c6d0d8;
  font-weight: 400;
  padding: 0 14px 14px;
  text-align: left;
  text-transform: uppercase;
}

td {
  border-left: 2px solid var(--line-soft);
  color: var(--text);
  font-weight: 700;
  padding: 14px;
  vertical-align: middle;
}

td:first-child,
th:first-child {
  border-left: 0;
}

tbody tr:nth-child(odd) {
  background: var(--row);
}

tbody tr:nth-child(even) {
  background: var(--row-alt);
}

td .muted {
  color: var(--muted);
  font-weight: 400;
  overflow-wrap: anywhere;
}

td.actions-cell {
  white-space: nowrap;
}

td.actions-cell button {
  min-height: 30px;
  padding: 5px 10px;
}

.empty {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 12px 0;
}

.access {
  margin-top: 34px;
}

#output {
  background: #030303;
  border: 0;
  color: #dce7ee;
  margin-top: 28px;
  min-height: 78px;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .shell {
    padding: 32px 20px;
  }

  .topbar,
  .list-header {
    display: grid;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }
}
