:root {
  --bg: oklch(0.958 0.004 250);
  --card: #ffffff;
  --ink: oklch(0.27 0.014 250);
  --muted: oklch(0.5 0.015 250);
  --faint: oklch(0.6 0.012 250);
  --hairline: oklch(0.92 0.005 250);
  --blue: oklch(0.62 0.11 250);
  --blue-deep: oklch(0.42 0.1 250);
  --amber: oklch(0.62 0.11 85);
  --green: oklch(0.62 0.11 140);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.board {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 26px;
}

/* ---------- header ---------- */

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

.header-date { display: flex; align-items: baseline; gap: 12px; }
.date-main { font-size: 44px; font-weight: 700; line-height: 1; white-space: nowrap; letter-spacing: 0.01em; }
.date-dow {
  font-size: 18px; font-weight: 700; color: oklch(0.48 0.11 250);
  background: oklch(0.93 0.03 250); padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.date-dow.sat { color: oklch(0.52 0.11 250); }
.date-dow.sun { color: oklch(0.53 0.15 25); background: oklch(0.94 0.03 25); }
.date-year { font-size: 14px; font-weight: 500; color: var(--muted); }

.countdowns { flex: 1; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; min-width: 0; }
.countdown {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border-radius: 999px; padding: 8px 16px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.countdown b { font-weight: 700; }

.clock {
  font-size: 44px; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--blue-deep); white-space: nowrap;
  letter-spacing: 0.01em;
  margin: 0 4px 0 8px;
}

/* ---------- layout ---------- */

.body { display: flex; gap: 16px; flex: 1; min-height: 0; }
.left { width: 336px; flex: none; display: flex; flex-direction: column; gap: 13px; min-height: 0; }

.card { background: var(--card); border-radius: 12px; padding: 15px 18px; }

.card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.card-head h2 { font-size: 15px; font-weight: 700; margin: 0; letter-spacing: 0.02em; }
.card-side { margin-left: auto; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }

.dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dot-blue { background: var(--blue); }
.dot-amber { background: var(--amber); }
.dot-green { background: var(--green); }

.hr { height: 1px; background: var(--hairline); margin: 11px 0; }

.chip {
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}

/* ---------- gomi banner ---------- */

.gomi-banner {
  display: flex; align-items: center; gap: 13px;
  background: oklch(0.93 0.03 40); padding: 14px 18px;
}
.gomi-banner.none { background: oklch(0.94 0.008 250); }
.gomi-banner-icon { color: oklch(0.5 0.11 40); display: flex; }
.gomi-banner.none .gomi-banner-icon { color: var(--faint); }
.card-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: oklch(0.48 0.08 40); }
.gomi-banner.none .card-label { color: var(--muted); }
.gomi-today { font-size: 23px; font-weight: 700; color: oklch(0.33 0.06 40); }
.gomi-banner.none .gomi-today { color: var(--muted); font-weight: 500; }
.gomi-next { margin-left: auto; font-size: 13px; color: oklch(0.48 0.06 40); text-align: right; line-height: 1.45; white-space: nowrap; flex: none; }
.gomi-banner.none .gomi-next { color: var(--muted); }

/* ---------- today events ---------- */

.today-events { display: flex; flex-direction: column; gap: 11px; }
.event-row { display: flex; align-items: center; gap: 10px; }
.event-time {
  width: 50px; flex: none; font-size: 14px; font-weight: 700;
  font-variant-numeric: tabular-nums; color: oklch(0.47 0.03 250);
}
.event-dot { width: 9px; height: 9px; border-radius: 999px; flex: none; }
.event-title { flex: 1; font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.no-events { font-size: 14px; color: var(--faint); }

/* ---------- weather ---------- */

.weather-3days { display: flex; flex-direction: column; gap: 11px; }
.wx-row { display: flex; align-items: center; gap: 10px; }
.wx-day { width: 58px; flex: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.wx-icon { display: flex; flex: none; }
.wx-desc { flex: 1; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-temp { font-size: 16px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wx-temp small { font-weight: 400; font-size: 14px; color: var(--muted); }
.wx-pop { width: 42px; flex: none; font-size: 13px; text-align: right; color: oklch(0.48 0.1 250); font-variant-numeric: tabular-nums; }

.cond-row { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.cond-row:first-of-type { margin-top: 0; }
.cond-label { width: 58px; flex: none; font-size: 14px; font-weight: 700; }
.cond-note { flex: 1; font-size: 13px; color: var(--muted); }

/* ---------- checklist ---------- */

.checklist-card { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.checklist { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.check-item { display: flex; align-items: center; gap: 9px; min-height: 28px; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; }
.check-item svg { flex: none; }
.check-item .label { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-item.done .label { color: var(--faint); text-decoration: line-through; font-weight: 400; }

.checklist-form { display: flex; gap: 8px; margin-top: 10px; }
.checklist-form input {
  flex: 1; min-width: 0; font: inherit; font-size: 14px; color: var(--ink);
  border: 1px solid var(--hairline); border-radius: 8px; padding: 6px 10px; background: var(--bg);
}
.checklist-form input:focus { outline: 2px solid var(--blue); border-color: transparent; }
.checklist-form button {
  width: 34px; flex: none; border: 0; border-radius: 8px; background: oklch(0.93 0.03 250);
  color: oklch(0.45 0.09 250); font-size: 18px; font-weight: 700; cursor: pointer;
}

/* ---------- week board ---------- */

.week-card { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 16px 20px; }

.legend { margin-left: auto; display: flex; align-items: center; gap: 13px; font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 999px; }

.week { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; }

.week-row {
  display: grid; grid-template-columns: 62px 84px 96px minmax(0, 1fr);
  align-items: center; gap: 10px; padding: 9px 12px;
  border-bottom: 1px solid var(--hairline);
}
.week-row:last-child { border-bottom: 0; }
.week-row.today { background: oklch(0.94 0.02 250); border-radius: 10px; border-bottom: 0; }

.wr-day { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.wr-dow { font-size: 11px; font-weight: 700; color: oklch(0.48 0.015 250); white-space: nowrap; }
.wr-num { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
.week-row.today .wr-num { font-size: 23px; }
.wr-day.sat .wr-dow, .wr-day.sat .wr-num { color: oklch(0.52 0.11 250); }
.wr-day.sun .wr-dow, .wr-day.sun .wr-num { color: oklch(0.53 0.15 25); }
.week-row.today .wr-dow { color: oklch(0.43 0.09 250); }

.wr-wx { display: flex; align-items: center; gap: 6px; }
.wr-wx .t { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wr-wx .t small { font-size: 13px; font-weight: 400; color: var(--muted); }

.wr-gomi { font-size: 12px; text-align: center; }
.wr-gomi .chip { display: inline-block; padding: 3px 7px; }
.wr-gomi.none { color: var(--faint); }

.wr-events { display: flex; flex-wrap: wrap; gap: 6px 12px; min-width: 0; }
.wr-event { display: flex; align-items: center; gap: 6px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wr-event i { width: 8px; height: 8px; border-radius: 999px; flex: none; }
.wr-event b { font-weight: 700; font-variant-numeric: tabular-nums; }
.wr-more { font-size: 12px; color: var(--muted); align-self: center; }
.wr-none { font-size: 13px; color: var(--faint); }

.week-foot { display: flex; justify-content: flex-end; font-size: 12px; color: var(--muted); padding-top: 4px; }
