:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #666;
  --line: #d9d9d9;
  --page: #f5f5f2;
  --panel: #fff;
  --accent: #121212;
  --error: #a01616;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

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

.panel {
  width: min(100%, 440px);
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.masthead {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
  text-align: center;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.1;
}

h2 {
  font-size: 22px;
}

.masthead p,
.blank-state p {
  color: var(--muted);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 20px;
  border: 1px solid var(--line);
}

.tab {
  min-height: 42px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.tab:last-child {
  border-right: 0;
}

.tab:hover,
.tab:focus-visible {
  background: #f2f2f2;
}

.tab.active {
  background: var(--accent);
  color: #fff;
}

.tab.active:hover,
.tab.active:focus-visible {
  background: var(--accent);
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 1px solid #999;
  border-radius: 0;
  background: #fff;
}

button,
.button-link {
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0 16px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.blank-state {
  display: grid;
  gap: 14px;
  text-align: center;
}

.message {
  min-height: 20px;
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
}

.message.error {
  color: var(--error);
}

.hidden {
  display: none !important;
}
