/* Shared design tokens and chrome used by both pages. */

:root {
  --ink: #201f1e;
  --muted: #605e5c;
  --line: #edebe9;
  --fill: #f5f5f5;
  --accent: #26303f;
  --required: #c50f1f;
  --success-bg: #f1faf1;
  --success-ink: #0b5a0b;
  --error-bg: #fdf3f4;
  --error-ink: #8c0c17;
  --warn-bg: #fff8e1;
  --warn-ink: #493b00;
  --warn-accent: #d9a300;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: #eceae8;
  color: var(--ink);
  padding: 24px 8px;
  line-height: 1.4;
}

.sheet {
  background: #fff;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(32, 31, 30, 0.06),
    0 12px 32px -16px rgba(32, 31, 30, 0.18);
}

#user-bar {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 24, 32, 0.55);
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
}

#user-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

#signin {
  font-size: 15px;
  color: var(--ink);
}

#signin p {
  margin-bottom: 20px;
}

#signin-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--required);
}

button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 26px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

button:hover:not(:disabled) {
  background: #1b232e;
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:disabled {
  background: #c8c6c4;
  cursor: not-allowed;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  body {
    padding: 0;
  }

  .sheet {
    border-radius: 0;
    box-shadow: none;
  }
}
