:root {
  --bg-transparent: #000000;
  --surface: #101217;
  --surface-strong: #1c1e21;
  --surface-soft: #171a20;
  --text-primary: #ffffff;
  --text-secondary: #e4e6eb;
  --text-muted: #b0b3b8;
  --accent: #35d6ff;
  --accent-strong: #70e7ff;
  --warm: #ffd166;
  --danger: #ff6b6b;
  --success: #4ade80;
  --focus-glow: rgba(53, 214, 255, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 600px;
  height: 600px;
  margin: 0;
  overflow: hidden;
  background: var(--bg-transparent);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  line-height: 1.25;
}

button {
  font: inherit;
}

.app-root {
  width: 600px;
  height: 600px;
  padding: 8px;
  overflow: hidden;
}

.screen {
  width: 584px;
  height: 584px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.screen.hidden,
.hidden {
  display: none !important;
}

.topbar {
  height: 64px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.title-group {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.05;
}

h2 {
  font-size: 22px;
  line-height: 1.1;
}

.meta {
  color: var(--text-muted);
  font-size: 12px;
}

.focusable {
  border: 2px solid transparent;
  outline: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.focusable:focus {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--focus-glow);
  opacity: 1;
}

.focusable:active {
  transform: scale(0.96);
}

.icon-button {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--surface-strong);
  color: var(--text-primary);
  font-size: 24px;
}

.nav-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.nav-button {
  min-height: 88px;
  border-radius: 24px;
  background: var(--surface-strong);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 800;
}

.nav-button.secondary {
  color: var(--text-secondary);
  background: var(--surface-soft);
}

.toast {
  position: absolute;
  top: 24px;
  left: 50%;
  width: min(536px, calc(100% - 48px));
  padding: 12px 18px;
  border-radius: 24px;
  background: rgba(28, 30, 33, 0.96);
  color: var(--text-primary);
  text-align: center;
  font-size: 14px;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
  z-index: 10;
}

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