:root { --fg:#1c1c1c; --muted:#6b6b6b; --bg:#f7f7f5; --card:#fff; --line:#e3e3df; --accent:#2f6fed; --ok:#1f8a4c; --warn:#b7791f; --bad:#c0392b; }
* { box-sizing: border-box; }
body { margin:0; font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", sans-serif; color:var(--fg); background:var(--bg); }
a { color:var(--accent); text-decoration:none; } a:hover { text-decoration:underline; }
.muted { color:var(--muted); font-weight:normal; } .small { font-size:12px; }
header.top { display:flex; flex-wrap:wrap; gap:16px; justify-content:space-between; align-items:flex-start; padding:20px 24px 8px; }
h1 { margin:0 0 4px; font-size:22px; } h1 .muted { font-size:14px; }
h2 { font-size:16px; margin:0 0 10px; } h3 { font-size:14px; margin:18px 0 6px; }
.lead { margin:0; max-width:760px; }
nav.links { display:flex; gap:14px; padding-top:6px; }
.howto { margin:0 24px; padding:10px 16px; background:var(--card); border:1px solid var(--line); border-radius:8px; }
.howto ol { margin:0; padding-left:20px; } .howto li { margin:2px 0; }
main.grid { display:grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr); gap:16px; padding:16px 24px 40px; }
@media (max-width: 900px) { main.grid { grid-template-columns: 1fr; } }
.col { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:14px 16px; min-width:0; }
form#goal-form { display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
.examples { display:flex; flex-wrap:wrap; gap:6px; }
.examples button { font-size:12px; background:#eef3ff; border:1px solid #cfdcff; color:#1d3f9e; padding:4px 8px; border-radius:12px; cursor:pointer; }
input { padding:8px 10px; border:1px solid var(--line); border-radius:6px; font:inherit; width:100%; }
button { padding:8px 12px; border:0; border-radius:6px; background:var(--accent); color:#fff; font:inherit; cursor:pointer; }
button.secondary { background:#eee; color:var(--fg); } button:disabled { opacity:.5; cursor:default; }
ul.list { list-style:none; margin:0; padding:0; }
ul.list li { padding:8px 10px; border:1px solid var(--line); border-radius:6px; margin-bottom:6px; cursor:pointer; display:flex; justify-content:space-between; gap:8px; align-items:center; }
ul.list li.active { border-color:var(--accent); background:#f3f7ff; }
ul.list li.showcase { border-left:4px solid var(--ok); }
ul.list .t { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.badge { display:inline-block; padding:2px 8px; border-radius:10px; font-size:12px; background:#eee; white-space:nowrap; }
.badge.awaiting_plan_approval { background:#fff3d6; color:var(--warn); }
.badge.active, .badge.running, .badge.in_review { background:#e3efff; color:#1d4ed8; }
.badge.done { background:#dff5e6; color:var(--ok); }
.badge.blocked, .badge.cancelled, .badge.failed { background:#fde3e0; color:var(--bad); }
.detail-head { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.actions { display:flex; gap:8px; align-items:center; margin:10px 0; padding:10px; background:#fff8e6; border:1px solid #f0dca3; border-radius:6px; }
.actions input { width:auto; flex:1; }
details summary { cursor:pointer; font-weight:600; margin:8px 0; }
.plan { max-height:420px; overflow:auto; padding:10px 12px; background:#fafaf8; border:1px solid var(--line); border-radius:6px; }
.plan h1,.plan h2,.plan h3 { font-size:14px; margin:10px 0 4px; } .plan ul { margin:2px 0 6px 18px; padding:0; } .plan p { margin:4px 0; }
.plan code, .events code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; background:#eee; padding:0 4px; border-radius:3px; }
table { width:100%; border-collapse:collapse; font-size:13px; }
th, td { text-align:left; padding:6px 6px; border-bottom:1px solid var(--line); vertical-align:top; }
td.spec { color:var(--muted); font-size:12px; white-space:pre-wrap; }
tr.spec-row { display:none; } tr.spec-row.open { display:table-row; }
ul.events { list-style:none; margin:0; padding:0; max-height:280px; overflow:auto; font-size:12px; }
ul.events li { padding:3px 0; border-bottom:1px dashed var(--line); } ul.events .ts { color:var(--muted); margin-right:6px; }
.toast { position:fixed; right:16px; bottom:16px; max-width:420px; padding:10px 14px; background:#222; color:#fff; border-radius:6px; box-shadow:0 4px 16px rgba(0,0,0,.25); }
