:root {
  --ground: #f7f6f3;
  --surface: #ffffff;
  --ink: #37352f;
  --muted: #787774;
  --line: #e9e9e7;
  --accent: #2f6fde;
  --accent-ink: #ffffff;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #191919;
    --surface: #202020;
    --ink: #e6e6e4;
    --muted: #9b9a97;
    --line: #2f2f2f;
    --accent: #5b8def;
    --accent-ink: #0b0b0b;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

a {
  color: var(--accent);
}

.shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.back {
  flex: 0 0 auto;
  text-decoration: none;
  font-size: 14px;
}

.heading {
  flex: 1 1 240px;
  min-width: 0;
}

.heading h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.version {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.history summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
}

.history ol {
  position: absolute;
  margin: 6px 0 0;
  padding: 8px 12px 8px 32px;
  max-height: 50vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
}

.signout {
  margin: 0;
}

.signout button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 4px 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.page {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: var(--surface);
}

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

.card {
  width: 100%;
  max-width: 420px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.brand {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.card h1 {
  margin: 0 0 8px;
  font-size: 20px;
}

.action {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
