:root {
  color-scheme: light;
  --bg: #f7f0e7;
  --ink: #25150f;
  --muted: #7a6a5f;
  --line: #dfd2c2;
  --panel: #fffaf3;
  --accent: #7b3f1d;
  --accent-2: #0f766e;
  --danger: #9f1239;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: white;
  color: var(--ink);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.topbar h1,
.panel h2,
.guest h2,
.history h3 {
  margin: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status {
  max-width: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
}

.workspace {
  display: grid;
  grid-template-columns: 340px 340px 1fr;
  gap: 16px;
  align-items: start;
}

.panel,
.guest {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.panel {
  display: grid;
  gap: 16px;
}

.guest {
  display: grid;
  gap: 18px;
}

.guestHeader {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 18px;
  align-items: start;
}

.guestHeader img {
  width: 220px;
  aspect-ratio: 5 / 3;
  border-radius: 8px;
  object-fit: cover;
  background: #2c160c;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0;
}

.stats div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}

.stats dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.stats dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 24px;
  font-weight: 900;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.actions form {
  display: grid;
  gap: 10px;
}

.actions form:first-child button {
  background: var(--accent-2);
}

.actions form:last-child button {
  background: var(--danger);
}

.history {
  display: grid;
  gap: 10px;
}

.historyRow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--muted);
}

.historyRow strong {
  color: var(--ink);
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .guestHeader,
  .actions {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
