:root { --fg:#1c1c1c; --muted:#666; --line:#ddd; --bg:#f7f7f8; --accent:#1f4fd8; --warn:#b23c17; }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif; color:var(--fg); background:var(--bg); }
main { max-width:960px; margin:0 auto; padding:24px 16px; }
.topbar { display:flex; gap:16px; align-items:center; justify-content:space-between; padding:12px 16px; background:#fff; border-bottom:1px solid var(--line); }
.topbar nav { display:flex; gap:14px; align-items:center; }
.brand { font-weight:600; text-decoration:none; color:var(--fg); }
.card { background:#fff; border:1px solid var(--line); border-radius:6px; padding:20px; margin-bottom:20px; }
.narrow { max-width:380px; margin:48px auto; }
label { display:block; margin-bottom:12px; }
input, select, textarea { width:100%; padding:8px; border:1px solid var(--line); border-radius:4px; font:inherit; }
textarea { min-height:220px; font-family:ui-monospace,Consolas,monospace; }
button { padding:8px 14px; border:0; border-radius:4px; background:var(--accent); color:#fff; font:inherit; cursor:pointer; }
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:8px; border-bottom:1px solid var(--line); }
th { color:var(--muted); font-size:13px; text-transform:uppercase; letter-spacing:.03em; }
.alert { padding:10px 12px; border-radius:4px; }
.alert-error { background:#fdecea; color:#8a1c12; }
.alert-ok { background:#e8f5e9; color:#1b5e20; }
.alert-warn { background:#fff8e1; color:#8a6d1c; }
.inline { display:inline; }
.linklike { background:none; color:var(--accent); padding:0; text-decoration:underline; }
.muted { color:var(--muted); }
.overdue { color:var(--warn); font-weight:600; }
.inline-check { display:flex; align-items:center; gap:8px; }
.inline-check input { width:auto; }
.employee-nav { display:flex; gap:16px; margin-bottom:20px; }
.employee-nav a { color:var(--accent); text-decoration:none; font-weight:600; }
.employee-nav a:hover { text-decoration:underline; }
.meeting { border-top:1px solid var(--line); padding-top:14px; margin-top:14px; }
.meeting h3 { margin:0 0 4px; font-size:16px; }
.meeting-actions { display:flex; gap:10px; align-items:center; margin:0 0 8px; }
.notes-block { margin-top:10px; }
.notes-block h4 { margin:0 0 4px; font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.03em; }
.notes-private { border-left:3px solid var(--warn); padding-left:10px; }
.private-badge { display:inline-block; margin-left:6px; padding:1px 7px; border-radius:10px; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.03em; color:#fff; background:var(--warn); vertical-align:middle; }
label .helper { display:block; font-weight:normal; margin:2px 0 4px; }
.notes h1, .notes h2, .notes h3 { margin:12px 0 6px; font-size:17px; }
.notes pre { background:var(--bg); padding:10px; border-radius:4px; overflow-x:auto; }
.notes blockquote { margin:8px 0; padding-left:12px; border-left:3px solid var(--line); color:var(--muted); }
.digest-body h1, .digest-body h2, .digest-body h3 { margin:12px 0 6px; font-size:17px; }
.digest-body pre { background:var(--bg); padding:10px; border-radius:4px; overflow-x:auto; }
.digest-body blockquote { margin:8px 0; padding-left:12px; border-left:3px solid var(--line); color:var(--muted); }
.trend { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0 18px; }
.trend-cell { display:flex; flex-direction:column; gap:2px; padding:6px 10px; border-radius:4px; border:1px solid var(--line); font-size:13px; }
.trend-week { color:var(--muted); font-size:11px; }
.trend-too-light { background:#eef4ff; }
.trend-about-right { background:#e8f5e9; }
.trend-stretched { background:#fff4e5; }
.trend-too-much { background:#fdecea; }
.checkin-week { border-top:1px solid var(--line); padding-top:12px; margin-top:12px; }
.checkin-week dt { font-weight:600; margin-top:8px; }
.checkin-week dd { margin:2px 0 0; white-space:pre-wrap; }
.followup-tag { display:inline-block; margin-left:8px; padding:1px 7px; border-radius:10px; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.03em; color:var(--accent); background:#eef2ff; vertical-align:middle; }
.followup-panel td { white-space:pre-wrap; }
.schedule-sentence { font-size: 16px; margin: 0 0 8px; }
.armed { color: #1b5e20; }
.schedule-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 12px 0 18px; }
.schedule-facts dt { color: var(--muted); font-size: 13px; }
.schedule-facts dd { margin: 0; }
.schedule-form fieldset { border: 1px solid var(--line); border-radius: 4px; margin: 0 0 10px; padding: 8px 12px; }
.schedule-form legend { color: var(--muted); font-size: 12px; padding: 0 4px; }
.schedule-form input[type="number"] { width: 4.5em; display: inline-block; }
.schedule-form select { width: auto; display: inline-block; }
.commitments-capture { border:1px solid var(--line); border-radius:4px; margin:0 0 14px; padding:8px 12px 2px; }
.commitments-capture legend { color:var(--muted); font-size:12px; padding:0 4px; }
.commitment-row { border-top:1px solid var(--line); padding-top:10px; margin-top:10px; }
.commitment-row:first-child { border-top:0; padding-top:0; margin-top:0; }
.commitment { border-top:1px solid var(--line); padding-top:10px; margin-top:10px; }
.commitment-actions { display:flex; gap:10px; align-items:center; margin-top:6px; }
/* Structurally identical to .commitment/.commitment-actions today (border,
   spacing, flex layout only -- no colour or status semantics on either), but
   kept as its own pair of classes rather than reused: these style project
   rows (views/employees/_projects.ejs), a different domain object from
   commitments, and sharing the commitment classes would mean a future
   commitment-specific style (e.g. a coloured "done" state) silently bleeds
   onto project rows with nothing connecting the two at the point of change. */
.project { border-top:1px solid var(--line); padding-top:10px; margin-top:10px; }
.project-actions { display:flex; gap:10px; align-items:center; margin-top:6px; }

/* Destructive action: visually distinct from Save/Send so it is never the
   button you press by muscle memory. */
button.danger {
  background: #8a1c1c;
  border-color: #8a1c1c;
  color: #fff;
}
.testing-aid {
  margin-top: 1rem;
  padding: 0.6rem 0.75rem;
  border: 1px dashed #b08a3a;
  border-radius: 4px;
  font-size: 0.9rem;
}

.prompt-rails { margin: 0 0 18px; }
.prompt-rails h3 { margin: 0 0 6px; font-size: 15px; }
.prompt-rails-text {
  background: var(--bg); padding: 12px; border-radius: 4px; overflow-x: auto;
  white-space: pre-wrap; font-size: 13px; color: var(--muted);
}
.prompt-template { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.prompt-template h3 { margin: 0 0 6px; font-size: 15px; }
.prompt-form textarea { min-height: 160px; }
.prompt-form .prompt-model, .prompt-form .prompt-tokens { display: inline-block; width: auto; margin-right: 12px; }
.prompt-form input[type="number"] { width: 8em; }
.usage-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 12px 0 18px; }
.usage-facts dt { color: var(--muted); font-size: 13px; }
.usage-facts dd { margin: 0; }

#up-next { margin: 0 0 20px; }
.up-next-name { font-size: 22px; font-weight: 600; margin: 4px 0 0; }
#rotation-order { margin: 0 0 24px; }
.rotation-actions { display: flex; gap: 10px; }
#log-presentation { margin: 0 0 24px; padding-top: 4px; border-top: 1px solid var(--line); }
#presentation-history { padding-top: 4px; border-top: 1px solid var(--line); }
