/* app.css — shared base. Brand colors injected per-page via brand.css. */
:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --text: #1C1C1C;
  --text-muted: #6B6B6B;
  --accent: #628395;
  --accent-strong: #4A6877;
  --border: #E6E1D8;
  --done-bg: #F3EFE6;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.4;
  padding-bottom: 4rem;
}

header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 0.75rem;
  z-index: 10;
}

.brand-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

#brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-strong);
  text-transform: uppercase;
}

#refresh {
  background: transparent;
  border: 0;
  font-size: 1.1rem;
  color: var(--accent);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

#date {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.progress-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}

#status {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.25rem 0 0;
}

main {
  padding: 0.5rem 1.25rem 2rem;
}

.section {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.item {
  border-bottom: 1px solid var(--border);
}

.item:last-child {
  border-bottom: none;
}

.item label {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1rem;
  cursor: pointer;
  min-height: 56px;
}

.item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  margin: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: var(--surface);
}

.item input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.item input[type="checkbox"]:checked::after {
  content: '✓';
  color: white;
  font-size: 18px;
  font-weight: 700;
}

.item .text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.item-title {
  font-size: 1.0625rem;
  font-weight: 500;
}

.item-notes {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.item.done {
  background: var(--done-bg);
}

.item.done .item-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
}
