:root {
  --primary: #054638;
  --accent: #EDA735;
  --bg: #f7f4ed;
  --card: #ffffff;
  --text: #17211d;
  --muted: #6d7772;
  --danger: #9b2c2c;
  --shadow: 0 16px 40px rgba(5, 70, 56, 0.12);
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 16px 96px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-size: 1.05rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.small-link {
  font-size: 0.9rem;
}

.hero h1,
.card h1,
.card h2 {
  margin: 0 0 12px;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.2rem, 12vw, 4rem);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card {
  margin: 16px 0;
  padding: 22px;
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.auth-card {
  margin-top: 14vh;
}

.now-card {
  text-align: center;
}

.now-card h2 {
  font-size: clamp(2rem, 10vw, 3.2rem);
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 2px solid #e5e1d7;
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.primary {
  background: var(--primary);
  color: #fff;
}

.accent {
  background: var(--accent);
  color: #261a00;
}

.ghost {
  margin-top: 12px;
  background: #ecf2ef;
  color: var(--primary);
}

.small-button {
  width: auto;
  min-height: 42px;
  padding: 0 16px;
  background: var(--primary);
  color: #fff;
}

.pill {
  display: inline-flex;
  margin: 0 auto 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ecf2ef;
  color: var(--primary);
  font-weight: 900;
  text-transform: uppercase;
}

.pill.urgent {
  background: #ffe6d9;
  color: #8a2d0b;
}

.muted,
.task-row span,
.stat-line {
  color: var(--muted);
}

.alert {
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffecec;
  color: var(--danger);
  font-weight: 800;
}

.secret-box {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 16px;
  overflow-wrap: anywhere;
  border-radius: 18px;
  background: #ecf2ef;
}

.totp-qr-card {
  display: flex;
  justify-content: center;
  margin: 18px 0;
}

.totp-qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 208px;
  min-height: 208px;
  padding: 8px;
  border-radius: 24px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e5e1d7;
}

.totp-qr img,
.totp-qr canvas,
.totp-qr table {
  display: block;
}

.list-card h2 {
  font-size: 1.2rem;
}

.task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #eee8dc;
}

.task-row div {
  display: grid;
  gap: 4px;
}

.timer {
  margin: 22px 0;
  color: var(--primary);
  font-size: clamp(3rem, 18vw, 5rem);
  font-weight: 950;
  letter-spacing: -0.06em;
}

.voice-fab {
  position: fixed;
  right: calc(50% - min(244px, 46vw));
  bottom: 84px;
  width: 72px;
  min-height: 72px;
  background: var(--accent);
  color: #261a00;
  box-shadow: var(--shadow);
}

.voice-status {
  min-height: 24px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid #eee8dc;
  backdrop-filter: blur(16px);
}

.bottom-nav a {
  padding: 12px 8px;
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
}

.bottom-nav a.active {
  background: var(--primary);
  color: #fff;
}
