@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@700;800&family=Figtree:wght@400;500;600;700&family=Spline+Sans+Mono:wght@400;500&display=swap");

/* Coach Soft parts. Every value comes from tokens.css; nothing here is a literal colour. */
.cs-page { background: var(--ground); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.cs-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.cs-stack { display: flex; flex-direction: column; gap: var(--space-3); }
.cs-meta { font-size: 13px; line-height: 1.45; color: var(--ink-muted); }
.cs-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.cs-title { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.15; margin: 0; text-wrap: balance; }
.cs-heading { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.25; margin: 0; }

.cs-btn { height: 46px; padding: 0 var(--space-5); border-radius: var(--radius-md); border: 1.5px solid transparent; font: 700 15px/1 var(--font-body); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); cursor: pointer; text-decoration: none; box-sizing: border-box; }
.cs-btn--primary { background: var(--accent); color: var(--on-accent); }
.cs-btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--ink-muted); }
.cs-btn--quiet { background: transparent; color: var(--accent); padding: 0 var(--space-3); }
.cs-btn[disabled], .cs-btn[aria-disabled="true"] { background: var(--surface); color: var(--ink-muted); border: 1.5px dashed var(--ink-muted); cursor: not-allowed; }
.cs-btn--block { width: 100%; }
.cs-why { font-size: 13px; color: var(--ink-muted); }
:where(.cs-btn, .cs-copy, .cs-input, a):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.cs-who { display: inline-flex; align-items: center; gap: var(--space-1); font-size: 13px; font-weight: 700; color: var(--ink); }
.cs-who i { width: 10px; height: 10px; border-radius: 5px; display: inline-block; background: var(--you); }
.cs-who--owner i { background: var(--owner); }
.cs-who--computer i { background: var(--computer); }

.cs-todo { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--you-soft); }
.cs-todo--owner { background: var(--owner-soft); }
.cs-todo--computer { background: var(--computer-soft); }
.cs-todo .cs-who { padding-top: 5px; }
.cs-todo b { display: block; font-weight: 700; }

.cs-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 var(--space-3); border-radius: var(--radius-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.cs-pill i { width: 8px; height: 8px; border-radius: 4px; display: inline-block; background: var(--done); }
.cs-pill--needs i { background: var(--needs); }
.cs-pill--blocked i { background: var(--blocked); }
.cs-pill--off i { background: var(--off); }

.cs-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.cs-card--you { background: var(--you-soft); box-shadow: none; }
.cs-card--owner { background: var(--owner-soft); box-shadow: none; }
.cs-card--computer { background: var(--computer-soft); box-shadow: none; }

.cs-cmd { display: flex; flex-direction: column; gap: var(--space-1); }
.cs-cmd__box { background: var(--terminal); color: var(--on-terminal); border-radius: var(--radius-md); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font: 400 14px/1.5 var(--font-mono); }
.cs-cmd__box code { min-width: 0; overflow-wrap: anywhere; font: inherit; }
.cs-copy { flex: none; height: 32px; padding: 0 var(--space-3); border-radius: var(--radius-sm); border: 1px solid var(--on-terminal); background: transparent; color: var(--on-terminal); font: 600 13px/1 var(--font-body); cursor: pointer; }

.cs-goal { display: flex; flex-direction: column; gap: var(--space-2); }
.cs-goal__top { display: flex; justify-content: space-between; gap: var(--space-3); font-weight: 700; }
.cs-goal__num { font: 400 14px/1.4 var(--font-mono); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.cs-bar { height: 10px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.cs-bar span { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--done); }
.cs-bar--needs span { background: var(--needs); }

.cs-empty { border: 1.5px dashed var(--ink-muted); border-radius: var(--radius-lg); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }

.cs-field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.cs-input { height: 46px; border-radius: var(--radius-md); border: 1.5px solid var(--ink-muted); background: var(--surface); color: var(--ink); padding: 0 var(--space-3); font: 400 15px var(--font-body); box-sizing: border-box; }
.cs-field--error .cs-input { border-color: var(--blocked); }
.cs-error { font-size: 13px; font-weight: 600; color: var(--blocked); }

.cs-doctor { background: var(--terminal); color: var(--on-terminal); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); font: 400 13px/1.7 var(--font-mono); }
.cs-doctor .ok { color: var(--done); } .cs-doctor .need { color: var(--needs); } .cs-doctor .skip { color: var(--off); }
.cs-doctor .dim { opacity: .75; }
