:root {
  --bg: #f5f0e8;
  --ink: #152019;
  --muted: #57645c;
  --card: #fffaf3;
  --line: #d5ccb8;
  --accent: #c0502f;
  --accent-2: #2f7f4f;
  --danger: #b63131;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: radial-gradient(circle at top right, #ffe6bf, var(--bg) 40%), var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.45;
}
.bg-shape.one { width: 220px; height: 220px; background: #ffd98f; top: -40px; right: -60px; }
.bg-shape.two { width: 260px; height: 260px; background: #a5d5b6; bottom: -120px; left: -80px; }

.app { max-width: 760px; margin: 0 auto; padding: 16px; }
.page { display: none; animation: rise .24s ease; }
.page.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(8px);} to {opacity:1;transform:none;} }

h1 { margin: 8px 0; font-size: 30px; }
.subtitle { color: var(--muted); margin-top: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
}

label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff;
  margin-bottom: 10px;
  font: inherit;
}

.btn {
  border: 0; border-radius: 10px; padding: 10px 14px; font-weight: 700; cursor: pointer;
  background: #ece3d2; color: var(--ink);
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { background: #efe7d8; }
.btn.danger { background: var(--danger); color: #fff; }

.message { min-height: 20px; color: var(--danger); }
.hidden { display: none; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.date { color: var(--muted); font-size: 13px; }
.time { font-size: 28px; font-weight: 800; line-height: 1; }

.grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.card-btn {
  background: linear-gradient(135deg, #fffdf8, #fff5e6);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 88px;
  text-align: left;
  font-weight: 700;
  padding: 12px;
}

.module-content { margin-top: 10px; display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.log-red { color: #c1272d; }
.log-green { color: #2f7f4f; }
.small { font-size: 12px; color: var(--muted); }
.sticker {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff;
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr; }
}
