:root {
  --bg: #14161a;
  --panel: #1c2026;
  --panel2: #232830;
  --ink: #e7e9ee;
  --muted: #8b93a1;
  --line: #2c323c;
  --accent: #d98a4e;     /* warm amber */
  --accent2: #5b9bd5;
  --warn: #d9824e;
  --good: #6bbf7b;
  --danger: #c75c5c;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); font-size: .88em; }
.error { color: var(--danger); }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px; background: var(--panel); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.topbar nav a { margin-left: 18px; color: var(--ink); font-size: .92rem; }
.topbar nav a.muted { color: var(--muted); }

main { max-width: 880px; margin: 0 auto; padding: 26px 22px 80px; }
h2 { font-size: 1.25rem; margin: 0 0 4px; }
h3 { font-size: 1.02rem; margin: 0 0 10px; }

section { background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; }

textarea, input[type=text], input[type=password] {
  width: 100%; background: var(--panel2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px;
  font: inherit; resize: vertical;
}
textarea:focus, input:focus { outline: none; border-color: var(--accent); }
button {
  background: var(--accent); color: #1a1205; border: none; border-radius: 8px;
  padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer;
}
button:hover { filter: brightness(1.08); }
button:disabled { opacity: .35; cursor: default; }
button.danger { background: transparent; color: var(--danger); border: 1px solid var(--line); }
button.muted { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 400; }

.tag { display: inline-block; font-size: .72rem; padding: 1px 7px; border-radius: 20px;
  background: var(--panel2); color: var(--muted); border: 1px solid var(--line);
  vertical-align: middle; }
.tag.warn { color: var(--warn); border-color: var(--warn); }

/* Front Burner */
.frontburner { border-left: 3px solid var(--accent); }
.fb-head { display: flex; align-items: baseline; gap: 10px; }
.fb-list { margin: 8px 0 0; padding-left: 22px; }
.fb-list li { padding: 5px 0; }
.fb-name { font-weight: 600; }
.bench { margin-top: 10px; }

/* Convene */
.convene .row { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 10px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid2 section { margin-bottom: 0; }
@media (max-width: 680px) { .grid2 { grid-template-columns: 1fr; } }

.metric { margin: 0 0 8px; }
.metric.big { font-size: 1.05rem; }
.metric strong { color: var(--good); }
.commits, .sessions { list-style: none; padding: 0; margin: 0; }
.commits li, .sessions li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.commits li:last-child, .sessions li:last-child { border: none; }

/* Session round table */
.situation .muted { display: block; margin-top: 6px; }
.take { border-left: 3px solid var(--line); padding: 4px 0 4px 14px; margin-bottom: 14px; }
.advisor { font-weight: 700; color: var(--accent); margin-bottom: 2px; font-size: .95rem; }
.advisor.chair { color: var(--accent2); }
.take p { margin: 0; }
.synthesis { background: var(--panel2); border-color: var(--accent2); }
.syn-body { white-space: pre-wrap; margin: 6px 0 0; }
.commitment-box { border-left: 3px solid var(--good); }
.commit-line { margin: 4px 0; }
.deeper { background: transparent; border-style: dashed; }
.deeper textarea { margin-bottom: 8px; }

/* Projects */
.proj-list { list-style: none; padding: 0; margin: 0; }
.proj-list li { display: flex; align-items: center; gap: 12px;
  padding: 10px; border-bottom: 1px solid var(--line); }
.proj-list li.fb { background: rgba(217,138,78,.07); border-radius: 8px; }
.rank { width: 26px; height: 26px; flex: none; display: grid; place-items: center;
  background: var(--panel2); border-radius: 50%; font-weight: 700; font-size: .85rem; }
.proj-main { flex: 1; }
.proj-actions { display: flex; gap: 5px; }
.proj-actions form { display: inline; }
.proj-actions button { padding: 4px 9px; font-size: .8rem; background: var(--panel2);
  color: var(--ink); font-weight: 400; }
.parked .proj-main { opacity: .75; }
.addproj form { display: flex; gap: 8px; flex-wrap: wrap; }
.addproj input { flex: 1; min-width: 140px; }
.addproj button { flex: none; }

/* Charter */
.charter-form textarea { font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px; line-height: 1.5; }
.charter-form button { margin-top: 10px; }
.advisor-cards { display: block; }
.advisor-card { padding: 8px 0; border-bottom: 1px solid var(--line); }
.advisor-card:last-child { border: none; }

/* Commitments table */
.commit-table { width: 100%; border-collapse: collapse; }
.commit-table th { text-align: left; color: var(--muted); font-weight: 600;
  font-size: .82rem; border-bottom: 1px solid var(--line); padding: 6px 8px; }
.commit-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.commit-table tr.done td { opacity: .6; }
.commit-table tr.overdue td:first-child { border-left: 2px solid var(--warn); }
.commit-actions { display: flex; gap: 5px; }
.commit-actions form { display: inline; }
.commit-actions button { padding: 4px 9px; font-size: .8rem; }

/* Login */
.login-body { display: grid; place-items: center; min-height: 100vh; }
.login-card { background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 34px 30px; width: 320px; text-align: center; }
.login-card h1 { margin: 0 0 4px; }
.login-card input { margin: 16px 0 12px; }
.login-card button { width: 100%; }
