:root {
  --bg: #f5f2ed;
  --card: #ffffff;
  --text: #26221d;
  --sub: #7a7268;
  --line: #e7e1d8;
  --accent: #8a6a3f;
  --accent-soft: #efe6d8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.loading { text-align: center; color: var(--sub); padding: 80px 0; }

.top { padding: 8px 4px 20px; }
.company { margin: 0; font-size: 13px; letter-spacing: 0.04em; color: var(--accent); font-weight: 600; }
.top h1 { margin: 6px 0 8px; font-size: 24px; line-height: 1.3; }
.greeting { margin: 0; color: var(--sub); font-size: 14px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 14px;
}

.label { margin: 0 0 6px; font-size: 13px; color: var(--sub); }
.today h2 { margin: 0; font-size: 21px; line-height: 1.35; }
.detail { margin: 8px 0 0; font-size: 15px; color: var(--accent); font-weight: 600; }

.overall { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.overall-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--sub); }
.overall-top strong { font-size: 22px; color: var(--text); }
.end { margin: 8px 0 0; font-size: 13px; color: var(--sub); }

.bar { height: 6px; background: var(--accent-soft); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.bar.big { height: 10px; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 99px; }

.section-title { margin: 0 0 14px; font-size: 16px; }

.phases { list-style: none; margin: 0; padding: 0; }
.phase { padding: 12px 0; border-top: 1px solid var(--line); }
.phase:first-child { border-top: 0; padding-top: 0; }
.phase:last-child { padding-bottom: 0; }
.phase-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.phase-name { font-weight: 600; font-size: 15px; }
.phase-state { font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--bg); color: var(--sub); white-space: nowrap; }
.phase.doing .phase-state { background: var(--accent); color: #fff; }
.phase.todo .phase-name { color: var(--sub); font-weight: 500; }
.phase-date { margin-top: 6px; font-size: 12px; color: var(--sub); }

.photo-date { margin: 18px 0 8px; font-size: 13px; color: var(--sub); font-weight: 600; }
.photo-date:first-of-type { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.photo { position: relative; padding: 0; border: 0; background: var(--bg); border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font-size: 12px; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); }
.empty { margin: 0; color: var(--sub); font-size: 14px; }

footer { text-align: center; color: var(--sub); font-size: 13px; padding: 16px 0 0; }
footer p { margin: 0; }
footer a { color: inherit; }
.note { margin-top: 4px; font-size: 12px; }

.viewer { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.9); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; z-index: 10; }
.viewer[hidden] { display: none; }
.viewer img { max-width: 100%; max-height: 85vh; border-radius: 6px; }
.viewer p { color: #fff; font-size: 14px; margin: 12px 0 0; }
