:root {
  --bg: #eef2f7;
  --card: #ffffff;
  --text: #18212f;
  --muted: #5e6979;
  --line: #dbe3ee;
  --primary: #304d7d;
  --primary-soft: #e8eef8;
  --shadow: 0 12px 30px rgba(24, 33, 47, 0.08);
  --radius: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, #f7f9fc 0%, var(--bg) 100%);
  color: var(--text);
}

body { min-height: 100vh; }
button, input, a { font: inherit; }
a { color: inherit; text-decoration: none; }

.app-shell {
  width: min(960px, calc(100% - 24px));
  margin: 0 auto;
  padding: 20px 0 40px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow, .hero-label, .summary-title, .time-label, .section-kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
}

h1, h2, h3, p { margin: 0; }

h1 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
  margin-bottom: 8px;
}

h2 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
  margin-bottom: 8px;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.subtitle, .hero-text, .card-text {
  color: var(--muted);
  line-height: 1.6;
}

.hero-card, .summary-card, .notice-card, .time-block, .content-card, .menu-bar {
  background: var(--card);
  border: 1px solid rgba(219, 227, 238, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.menu-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  margin-bottom: 16px;
}

.menu-link {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.menu-link:hover { transform: translateY(-1px); }

.menu-link.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.hero-card {
  padding: 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.primary-btn, .secondary-btn, .ghost-btn, .inline-link {
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 12px 16px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn:hover, .secondary-btn:hover, .ghost-btn:hover, .inline-link:hover {
  transform: translateY(-1px);
}

.primary-btn {
  background: var(--primary);
  color: #fff;
}

.secondary-btn {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: #d7e2f4;
}

.ghost-btn {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

.inline-link {
  background: #fff;
  color: var(--primary);
  border-color: var(--line);
  width: fit-content;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.summary-card { padding: 18px; }

.summary-number {
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 700;
}

.notice-card, .content-card {
  padding: 16px 18px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.schedule-list, .content-grid {
  display: grid;
  gap: 14px;
}

.content-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.time-block { padding: 18px; }

.time-block-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.time-title { font-size: 22px; }

.time-progress {
  color: var(--muted);
  font-size: 14px;
}

.items-list {
  display: grid;
  gap: 10px;
}

.item-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfe;
}

.checkbox-wrap {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin-top: 2px;
}

.item-checkbox {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.custom-checkbox {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 2px solid #b9c5d8;
  background: #fff;
}

.item-checkbox:checked + .custom-checkbox {
  background: var(--primary);
  border-color: var(--primary);
}

.item-checkbox:checked + .custom-checkbox::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 5px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-name {
  font-weight: 600;
  line-height: 1.4;
}

.item-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.item-row.done {
  background: #f5f9ff;
  border-color: #cddcf4;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.list-clean {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.7;
}

@media (max-width: 820px) {
  .topbar, .hero-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .summary-grid, .content-grid.two-col {
    grid-template-columns: 1fr;
  }

  .topbar { gap: 12px; }
  .ghost-btn { width: 100%; }
  .time-block-header { flex-direction: column; }
}
