:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  background: #f4f1ea;
  color: #1d241f;
}
* { box-sizing: border-box; }
body {
  margin: 0 auto;
  max-width: 480px;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) 0 calc(72px + env(safe-area-inset-bottom));
}
header, main { padding: 16px; }
header h1 { margin: 0; font-size: 1.25rem; }
#sync-status { margin: 6px 0 0; color: #3e5348; font-size: 0.92rem; }
button, textarea, input {
  font: inherit;
  font-size: 1rem;
}
textarea, input {
  width: 100%;
  border: 1px solid #cfc6b8;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
textarea { min-height: 96px; resize: vertical; }
.send, .time-form button {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  padding: 14px;
  background: #1f3a2e;
  color: #fff;
}
pre {
  white-space: pre-wrap;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  overflow: auto;
}
.card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin: 0 0 10px;
}
.card strong { display: block; margin-bottom: 4px; }
.failed, .conflict { color: #8d2b2b; }
nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e4ddd2;
}
nav button {
  border: 0;
  background: transparent;
  padding: 8px 0;
  color: #5c675f;
}
nav button.active { color: #1f3a2e; font-weight: 700; }
.time-form { display: grid; gap: 8px; }
