* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #faf6ef;
  color: #222;
}
body.loading .loader { display: flex; }
.loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #faf6ef;
  color: #6b5b48;
}
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e3dccb;
  border-top-color: #6b4f2a;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#appMain { padding: 16px 16px 32px; max-width: 480px; margin: 0 auto; }
.app-head h1 { margin: 0 0 4px; font-size: 1.25rem; }
.muted { color: #6b5b48; margin: 0 0 12px; }
.grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.wd {
  text-align: center;
  font-size: .75rem;
  color: #8a7a60;
  padding: 4px 0;
}
.cell {
  min-height: 44px;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.cell.other { background: transparent; box-shadow: none; }
.cell.today { outline: 2px solid #007aff; }
.cell .num { font-weight: 600; }
.ios-foot { margin-top: 16px; font-size: .85rem; color: #8a7a60; }
