:root {
  color-scheme: dark;
  --bg: #000;
  --card: #16161d;
  --line: #2a2a33;
  --text: #f4f4f6;
  --muted: #9a9aa6;
  --bad: #ff5c7a;
  --accent: #22e07a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

p {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.bad {
  color: var(--bad);
  font-weight: 700;
}

.brand {
  font-weight: 900;
  letter-spacing: 0.6px;
}

button {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 14px;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

button.primary {
  background: var(--text);
  color: #111;
  padding: 12px 14px;
}

button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

button.danger {
  background: transparent;
  border-color: var(--bad);
  color: var(--bad);
}

button.link {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  text-decoration: underline;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

input {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #0f0f15;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}

/* Getting in */
.blank {
  position: fixed;
  inset: 0;
  height: 100%;
  font-size: 16px;
  opacity: 0;
  cursor: default;
}

.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.error {
  min-height: 20px;
  color: var(--bad);
  font-weight: 600;
}

.qr {
  width: 200px;
  height: 200px;
  align-self: center;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
}

.secret {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  word-break: break-all;
  text-align: center;
  color: var(--muted);
}

/* The panel */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.spacer {
  flex: 1;
}

.tab {
  font-weight: 700;
  color: var(--muted);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}

.tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.who {
  overflow-wrap: anywhere;
}

.content {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 16px;
}

.heading button {
  margin-left: auto;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 48px 0;
}

.queue {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.card.critical {
  border: 2px solid var(--bad);
}

.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.time {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
}

.question {
  font-size: 13.5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.photo {
  display: block;
  max-width: 100%;
  max-height: 420px;
  border-radius: 10px;
}

.covered {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: #0f0f15;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 14px;
}

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

.chip {
  font-size: 13px;
  font-weight: 600;
  background: #24242d;
  border-radius: 8px;
  padding: 3px 8px;
}
