/* Boost Bison CRM — inherits the bisonboost.com artist-page identity:
   paper #f4efe7 · ink #171717 · brand #255ea8 · good #2f7b53 · Inter. Product register: restrained. */
:root {
  --bg: #f4efe7;
  --panel: #ebe4d9;          /* second neutral layer: header, side panels */
  --card: #fffdf9;
  --ink: #171717;
  --ink-2: #4a463f;          /* 7.6:1 on paper — readable "muted" */
  --line: rgba(23, 23, 23, .14);
  --brand: #255ea8;
  --brand-ink: #1a4a86;
  --good: #2f7b53;
  --warn: #9a5b12;
  --ring: 0 0 0 3px rgba(37, 94, 168, .28);
  --r: 10px;
  --r-lg: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --z-sticky: 10;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
}
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h2 { font-size: .95rem; font-weight: 600; margin: 0 0 .6rem; display: flex; align-items: baseline; gap: .5rem; }
code { font: 500 .85em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--panel); padding: .1em .4em; border-radius: 5px; }
.empty { color: var(--ink-2); font-size: .9rem; margin: .25rem 0 .75rem; }

/* ---- chrome */
.top {
  position: sticky; top: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; gap: 1.5rem; padding: .7rem 1.25rem;
  background: color-mix(in oklab, var(--panel) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.wordmark { font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.wordmark span { color: var(--brand); font-weight: 600; }
.top nav { display: flex; gap: .25rem; }
.top nav a { color: var(--ink-2); padding: .3rem .65rem; border-radius: 999px; }
.top nav a[aria-current] { color: var(--ink); background: var(--card); box-shadow: 0 1px 0 var(--line); }
.top nav a:hover { text-decoration: none; color: var(--ink); }
.who { margin-left: auto; color: var(--ink-2); font-size: .85rem; }
.logout { padding: .3rem .65rem; font-size: .85rem; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 1.25rem; }
.crumb { color: var(--ink-2); font-size: .85rem; margin: 0 0 .5rem; }

/* ---- controls (one vocabulary) */
input, select, textarea, button {
  font: inherit; color: inherit; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--card); padding: .5rem .7rem; transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: #6b665e; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
textarea { resize: vertical; width: 100%; }
button { cursor: pointer; font-weight: 600; background: var(--brand); color: #fff; border-color: var(--brand); }
button:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: default; }
button.quiet { background: var(--card); color: var(--ink); border-color: var(--line); }
button.quiet:hover { background: var(--panel); }
button.danger { background: transparent; color: #8a241f; border-color: rgba(138,36,31,.25); }
button.danger:hover { background: rgba(138,36,31,.08); border-color: rgba(138,36,31,.4); }
select { padding-right: 1.8rem; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a463f' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center; }

/* ---- board */
.board-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1rem; }
.add { display: flex; gap: .5rem; flex-wrap: wrap; }
.add input { min-width: 12rem; }
.board { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(220px, 1fr)); gap: .9rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x proximity; }
.col { scroll-snap-align: start; background: var(--panel); border-radius: var(--r-lg); padding: .75rem; min-height: 12rem; display: flex; flex-direction: column; gap: .6rem; }
.col h2 { margin: 0 .25rem .2rem; }
.count { color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .7rem .8rem; display: grid; gap: .25rem; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.card:hover { box-shadow: 0 6px 18px rgba(23, 23, 23, .08); transform: translateY(-1px); }
.card .name { font-weight: 600; color: var(--ink); }
.card .sub { color: var(--ink-2); font-size: .88rem; }
.meta { display: flex; gap: .7rem; font-size: .8rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.meta .due { color: var(--warn); font-weight: 500; }
.meta .when { margin-left: auto; }
.move select { width: 100%; padding: .3rem 1.8rem .3rem .55rem; font-size: .85rem; background-color: transparent; border-color: transparent; }
.move select:hover { border-color: var(--line); background-color: var(--card); }

/* ---- lower: feed + tasks */
.lower { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; margin-top: 2rem; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--line); max-width: 72ch; }
.feed time { color: var(--ink-2); font-size: .82rem; font-variant-numeric: tabular-nums; padding-top: .15rem; }
.feed .by { color: var(--ink-2); font-size: .85rem; }
.feed p { margin: .1rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem 0; border-top: 1px solid var(--line); }
.tasks li.done { color: var(--ink-2); text-decoration: line-through; }
.tasks small { display: block; color: var(--ink-2); }
.tasks form { display: contents; }
.check { width: 1.15rem; height: 1.15rem; padding: 0; margin-top: .2rem; border-radius: 6px; background: var(--card); border: 1.5px solid var(--ink-2); flex: none; }
.check:hover { border-color: var(--good); background: color-mix(in oklab, var(--good) 12%, var(--card)); }
.check.is-done { display: inline-block; background: var(--good); border-color: var(--good); }

/* ---- client page */
.client-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.client-head .sub { color: var(--ink-2); margin: .15rem 0 0; }
.client-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.stage-form label { display: flex; align-items: center; gap: .5rem; color: var(--ink-2); font-size: .9rem; }
.two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 2rem; align-items: start; }
.note { display: grid; gap: .5rem; margin-bottom: 1rem; }
.note button { justify-self: start; }
.side { background: var(--panel); border-radius: var(--r-lg); padding: 1rem; display: grid; gap: .6rem; }
.side h2 { margin-top: .4rem; }
.details { display: grid; gap: .5rem; }
.details label { display: grid; gap: .2rem; font-size: .82rem; color: var(--ink-2); }
.details input, .details textarea { font-size: .95rem; color: var(--ink); }
.details button { justify-self: start; }
.task { display: grid; grid-template-columns: 1fr auto auto; gap: .4rem; }
.since { color: var(--ink-2); font-size: .8rem; margin: .5rem 0 0; }

/* ---- circle of influence */
.influence-section { margin-bottom: 2rem; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.section-head h2 { margin-bottom: .15rem; }
.section-head .empty { margin-top: 0; }
.relationship-add { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; padding: .85rem; margin: .8rem 0; background: var(--panel); border-radius: var(--r-lg); }
.relationship-add label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .5rem; color: var(--ink-2); font-size: .82rem; }
.relationship-add textarea, .relationship-add button { grid-column: 1 / -1; }
.relationship-add button { justify-self: start; }
.relationship-list { display: grid; gap: .55rem; }
.relationship-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .7rem .8rem; }
.relationship-card summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; }
.relationship-card summary::-webkit-details-marker { display: none; }
.relationship-card summary span:first-child { display: grid; }
.relationship-card summary small { color: var(--ink-2); font-weight: 400; }
.relationship-top { display: flex; justify-content: space-between; gap: 1rem; }
.relationship-card p { margin: .2rem 0 0; color: var(--ink-2); }
.relationship-card .relationship-notes { color: var(--ink); white-space: pre-wrap; }
.influence { border-radius: 999px; padding: .15rem .5rem; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.influence.high { color: #7c2d12; background: #ffedd5; }
.influence.medium { color: #1a4a86; background: #e3edf9; }
.influence.low { color: #4a463f; background: var(--panel); }
.relationship-edit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.relationship-edit label { display: grid; gap: .2rem; color: var(--ink-2); font-size: .8rem; }
.relationship-edit input, .relationship-edit textarea, .relationship-edit select { color: var(--ink); }
.relationship-edit .wide { grid-column: 1 / -1; }
.relationship-actions { display: flex; justify-content: space-between; gap: 1rem; }

/* ---- recoverable trash */
.trash-view { max-width: 850px; }
.trash-list { display: grid; gap: .65rem; margin-top: 1rem; }
.trash-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .85rem 1rem; }
.trash-card p { margin: .1rem 0; color: var(--ink-2); }
.trash-card small { color: var(--ink-2); }

/* ---- account access */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.auth-card { width: min(100%, 430px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; box-shadow: 0 16px 50px rgba(23,23,23,.1); }
.auth-card h1 { margin: 1.25rem 0 .5rem; }
.auth-card p { color: var(--ink-2); }
.auth-form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.auth-form label { display: grid; gap: .35rem; color: var(--ink-2); font-size: .88rem; }
.auth-form input { color: var(--ink); }
.auth-form button { margin-top: .25rem; }
.auth-error { color: #8a241f !important; }

@media (max-width: 860px) {
  .lower, .two { grid-template-columns: 1fr; }
  .board { grid-template-columns: repeat(var(--n, 5), minmax(78vw, 1fr)); }
  .top { gap: .75rem; padding: .6rem .9rem; }
  .wrap { padding: .9rem; }
  .task { grid-template-columns: 1fr; }
  .relationship-add, .relationship-edit { grid-template-columns: 1fr; }
  .relationship-add textarea, .relationship-add button, .relationship-edit .wide { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .card:hover { transform: none; }
}

/* ---- search + called marker (2026-09-09) */
.search {
  margin-left: auto; flex: 0 1 20rem; min-width: 10rem; max-width: 22rem;
  padding: .4rem .7rem; font-size: .9rem; background: var(--card);
}
.tally { margin: .3rem 0 0; color: var(--ink-2); font-size: .85rem; font-variant-numeric: tabular-nums; }
.tally strong { color: var(--warn); font-weight: 600; }
.linky {
  background: none; border: none; padding: 0; font-weight: 500; color: var(--brand-ink);
  text-decoration: underline; text-underline-offset: 2px;
}
.linky:hover { color: var(--brand); }
.called {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--ink-2); cursor: pointer; user-select: none;
}
.called input { width: 1rem; height: 1rem; margin: 0; padding: 0; accent-color: var(--good); cursor: pointer; }
.called.is-called { color: var(--good); font-weight: 500; }
span.called { cursor: default; }
.called-line { margin: 0 0 .7rem; font-size: .85rem; color: var(--ink-2); }
@media (max-width: 860px) {
  .search { flex-basis: 100%; order: 3; margin-left: 0; max-width: none; }
}
