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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #101114;
  color: #f2f2f2;
  height: 100vh;
  overflow: hidden;
}

/* ---------- Display (tablet) ---------- */

.display-body { display: flex; flex-direction: column; padding: 24px 32px; }

.display-header {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.clock-time { font-size: 3rem; font-weight: 600; line-height: 1; }
.clock-date { font-size: 1.1rem; color: #9aa0a6; margin-top: 4px; }

.view-tabs { display: flex; gap: 8px; margin-left: auto; }
.view-tabs .tab {
  background: #1c1e22; color: #ccc; border: none; border-radius: 999px;
  padding: 10px 20px; font-size: 1rem; cursor: pointer;
}
.view-tabs .tab.active { background: #3f74e0; color: #fff; }

.person-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.person-chip {
  display: flex; align-items: center; gap: 6px;
  background: #1c1e22; border-radius: 999px; padding: 6px 14px;
  font-size: 0.95rem; cursor: pointer; opacity: 0.55;
}
.person-chip.active { opacity: 1; }
.person-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

.up-next {
  margin-top: 18px; padding: 14px 18px; background: #17181c; border-radius: 14px;
  display: flex; gap: 24px; overflow-x: auto;
}
.up-next-item { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 1.05rem; }
.up-next-empty { color: #777; font-size: 1rem; }

.view-root { flex: 1; margin-top: 20px; overflow: auto; }

/* Agenda / day list */
.agenda-day { margin-bottom: 22px; }
.agenda-day-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; color: #cfd3d8; }
.agenda-event {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px; border-radius: 10px; background: #17181c; margin-bottom: 6px;
}
.agenda-time { width: 110px; color: #9aa0a6; font-size: 0.95rem; flex-shrink: 0; }
.agenda-title { font-size: 1.05rem; }
.agenda-empty { color: #666; padding: 20px 0; font-size: 1.1rem; }

/* Week view */
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 100%; }
.week-col { background: #17181c; border-radius: 12px; padding: 10px; overflow-y: auto; }
.week-col-header { font-weight: 600; margin-bottom: 8px; color: #cfd3d8; }
.week-event {
  font-size: 0.85rem; border-radius: 6px; padding: 4px 8px; margin-bottom: 5px;
  color: #101114; font-weight: 600;
}

/* Month view */
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; gap: 6px; height: 100%; }
.month-cell { background: #17181c; border-radius: 10px; padding: 6px; overflow: hidden; }
.month-cell.other-month { opacity: 0.35; }
.month-cell-date { font-size: 0.9rem; color: #cfd3d8; margin-bottom: 4px; }
.month-event {
  font-size: 0.72rem; border-radius: 4px; padding: 2px 5px; margin-bottom: 2px;
  color: #101114; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Lists view */
.lists-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.list-card { background: #17181c; border-radius: 14px; padding: 16px; }
.list-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.list-aisle-header { font-size: 0.8rem; text-transform: uppercase; color: #7f8a99; margin: 10px 0 4px; }
.list-item { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 1rem; }
.list-item.checked { color: #666; text-decoration: line-through; }
.checkbox-dot {
  width: 16px; height: 16px; border-radius: 4px; border: 2px solid #555; flex-shrink: 0;
}
.checkbox-dot.checked { background: #3f74e0; border-color: #3f74e0; }

/* ---------- Phone page ---------- */

.phone-body { overflow-y: auto; padding: 20px; max-width: 480px; margin: 0 auto; }
.card { background: #17181c; border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.btn {
  background: #3f74e0; color: #fff; border: none; border-radius: 10px;
  padding: 12px 18px; font-size: 1rem; cursor: pointer; width: 100%;
}
.btn.secondary { background: #2a2d33; }
.btn.danger { background: #c0392b; }
input, select, textarea {
  width: 100%; padding: 12px; margin: 6px 0 14px; border-radius: 8px;
  border: 1px solid #333; background: #101114; color: #fff; font-size: 1rem;
}
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.pin-pad button {
  padding: 18px; font-size: 1.4rem; border-radius: 10px; border: none;
  background: #1c1e22; color: #fff;
}
.pin-display { text-align: center; font-size: 2rem; letter-spacing: 10px; margin: 16px 0; }
.person-picker { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 20px 0; }
.person-avatar {
  width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; font-weight: 700; cursor: pointer; color: #101114;
}
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.error-msg { color: #ff6b6b; text-align: center; margin-top: 10px; }
.nav-tabs { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; }
.nav-tabs button { flex-shrink: 0; padding: 10px 16px; border-radius: 999px; border: none; background: #1c1e22; color: #ccc; }
.nav-tabs button.active { background: #3f74e0; color: #fff; }
