:root {
  --terracotta: #b5602f;
  --terracotta-dark: #8f4a23;
  --ink: #2b2622;
  --muted: #6b615a;
  --line: #e6ddd4;
  --bg: #faf7f4;
  --card: #ffffff;
  --ok: #4a7a5c;
  --lock: #9a6b3f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Pretendard", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 24px 18px 60px; }
h1 { font-size: 1.4rem; margin: 0 0 4px; }
h2 { font-size: 1.1rem; margin: 28px 0 10px; }
h3 { font-size: 1rem; margin: 0 0 6px; }
.muted { color: var(--muted); font-size: 0.9rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.badge {
  display: inline-block;
  font-size: 0.78rem;
  padding: 2px 9px;
  border-radius: 100px;
  font-weight: 600;
}
.badge.public { background: #eaf3ec; color: var(--ok); }
.badge.locked { background: #f4ece1; color: var(--lock); }
.bar-track { background: #f0ece7; border-radius: 100px; height: 10px; overflow: hidden; }
.bar-fill { background: var(--terracotta); height: 100%; border-radius: 100px; transition: width .3s; }
.phase-row { margin-bottom: 14px; }
.phase-row-head { display: flex; justify-content: space-between; font-size: 0.92rem; margin-bottom: 4px; }
.percent { font-weight: 700; color: var(--terracotta-dark); }
.log-item { border-top: 1px solid var(--line); padding: 10px 0; }
.log-item:first-child { border-top: none; padding-top: 0; }
.log-date { font-weight: 600; font-size: 0.92rem; }
.log-field { margin-top: 4px; font-size: 0.9rem; }
.log-field b { color: var(--muted); font-weight: 600; margin-right: 4px; }
button, input, select, textarea {
  font-family: inherit;
  font-size: 0.94rem;
}
input, select, textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}
label { display: block; font-size: 0.85rem; color: var(--muted); margin: 10px 0 4px; }
.btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 7px;
  border: none;
  background: var(--terracotta);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--terracotta-dark); }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: #fff; color: #a44; border: 1px solid #e6c9c9; }
.btn.small { padding: 5px 11px; font-size: 0.85rem; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tab { padding: 8px 14px; cursor: pointer; border-bottom: 2px solid transparent; color: var(--muted); font-size: 0.92rem; }
.tab.active { color: var(--terracotta-dark); border-color: var(--terracotta); font-weight: 600; }
.proj-list-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.proj-list-item:first-child { border-top: none; }
.proj-list-item:hover { color: var(--terracotta-dark); }
.empty { color: var(--muted); font-size: 0.9rem; padding: 8px 0; }
.err { color: #a44; font-size: 0.88rem; margin-top: 6px; }
.top-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.link-btn { background: none; border: none; color: var(--terracotta-dark); cursor: pointer; font-size: 0.88rem; padding: 0; }
