@font-face { font-family: "Instrument Sans"; src: url("instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

/* Layout: a working list for the team, and one page for each client that opens on where their project is up to. */
:root {
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --bg: #F6F7F9; --surface: #FFFFFF; --surface-2: #EEF0F3; --fg: #12161D; --muted: #535B68; --line: #DFE3E9;
  --accent: #3D4BFF; --accent-hover: #2A35C4; --accent-tint: #ECEEFF; --on-accent: #FFFFFF; --bar: #C5CAFF;
  --green: #0B7A4E; --green-tint: #E3F4EC; --amber: #8A5200; --amber-tint: #FDF1DC; --red: #B3261E; --buddy: #0B7A4E; --new-row: rgba(255, 255, 255, .16); --new-row-hover: rgba(255, 255, 255, .28);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0E1116; --surface: #171B22; --surface-2: #222833; --fg: #F2F4F7; --muted: #A6ADB8; --line: #2C333E;
  --accent: #8C95FF; --accent-hover: #A9B0FF; --accent-tint: #23284D; --on-accent: #0E1116; --bar: #3B4280;
  --green: #5FD3A1; --green-tint: #12352A; --amber: #F2B75C; --amber-tint: #3A2A0E; --red: #F28B82; color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0E1116; --surface: #171B22; --surface-2: #222833; --fg: #F2F4F7; --muted: #A6ADB8; --line: #2C333E;
  --accent: #8C95FF; --accent-hover: #A9B0FF; --accent-tint: #23284D; --on-accent: #0E1116; --bar: #3B4280;
  --green: #5FD3A1; --green-tint: #12352A; --amber: #F2B75C; --amber-tint: #3A2A0E; --red: #F28B82; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--fg); font: 400 1rem/1.5 var(--font); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1 { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 500; text-wrap: balance; }
h2 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -.025em; font-weight: 600; text-wrap: balance; }
h3 { font-size: 1rem; letter-spacing: -.01em; font-weight: 600; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Preview notice and header */
.notice { background: var(--amber-tint); color: var(--amber); font-size: .875rem; }
.notice .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding-block: 8px; }
.notice p { flex: 1 1 280px; min-width: 0; }
.notice button { padding: 0; border: 0; background: none; font-weight: 600; text-decoration: underline; cursor: pointer; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: 10px; }
.logo { display: inline-flex; align-items: center; gap: 6px; font-size: 1.4rem; font-weight: 500; letter-spacing: -.03em; }
.logo svg { width: 1.15em; height: 1.15em; flex: none; }
.logo b { font-weight: 700; color: var(--accent); }
.logo-sub { margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--line); color: var(--muted); font-size: .875rem; letter-spacing: 0; font-weight: 500; }
.viewing { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); min-width: 0; }
.viewing label { flex: none; white-space: nowrap; }
.viewing select { max-width: 62vw; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); font-weight: 500; }
main { padding-block: 28px 64px; display: grid; gap: 28px; }
main > * { min-width: 0; }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border: 1px solid transparent; border-radius: 999px; background: none; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--fg); }
.btn-ghost:hover { border-color: var(--muted); }
.link { padding: 0; border: 0; background: none; color: var(--accent); font-weight: 600; font-size: .875rem; cursor: pointer; text-align: left; }
.link:hover { text-decoration: underline; }
.link-quiet { color: var(--muted); font-weight: 500; }
.link-danger { color: var(--red); }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; min-width: 0; }
.field input[type="file"] { width: 100%; min-width: 0; font-size: .875rem; }
.field > label, .field > .label { font-size: .875rem; font-weight: 600; }
input[type="text"], input[type="email"], input[type="url"], input[type="date"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); font-size: 1rem;
}
textarea { min-height: 84px; resize: vertical; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); align-items: end; }
.form-grid .span { grid-column: 1 / -1; }
.checks { display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.checks label { display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 400; }
input[type="checkbox"] { width: 20px; height: 20px; flex: none; accent-color: var(--accent); }

/* Pieces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; min-width: 0; }
.card > h2 + * { margin-top: 12px; }
.stack { display: grid; gap: 16px; min-width: 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.page-head > div { min-width: 0; flex: 1 1 280px; }
.page-head p { margin-top: 6px; }
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.t-green { background: var(--green-tint); color: var(--green); }
.t-amber { background: var(--amber-tint); color: var(--amber); }
.t-accent { background: var(--accent-tint); color: var(--accent); }
.t-grey { background: var(--surface-2); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: .8125rem; }
.empty { padding: 16px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: .95rem; }

/* Needs attention */
.attention { display: grid; }
.attention .pill { justify-self: start; }
.attention button { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.attention li:first-child button { border-top: 0; }
.attention button:hover strong { color: var(--accent); }
.attention strong { display: block; font-weight: 600; }
.attention .detail { display: block; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.go { color: var(--muted); }

/* Client list */
.list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.list-head input { flex: 0 1 260px; }
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.c-status { justify-self: end; }
.row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.7fr) minmax(0, 1.3fr) 112px; align-items: center; gap: 16px; width: 100%; padding: 14px 18px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.rows li:first-child .row { border-top: 0; }
.row:hover { background: var(--surface-2); }
.row .name { display: block; font-weight: 600; letter-spacing: -.01em; }
.row .sub { display: block; color: var(--muted); font-size: .875rem; }
.row > span { min-width: 0; }
.mini { display: flex; gap: 3px; margin-bottom: 4px; }
.mini i { flex: 1; max-width: 26px; height: 5px; border-radius: 3px; background: var(--surface-2); }
.mini i.on { background: var(--accent); }
@media (max-width: 860px) {
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; }
  .row .c-name { grid-column: 1; }
  .row .c-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .row .c-stage, .row .c-services, .row .c-call { grid-column: 1 / -1; }
}

/* Stage tracker. The numbers are real: it's the same order as the How it works page. */
.stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stages li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; }
.stages li + li::before { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.stages li.done + li::before, .stages li.done + li.current::before { background: var(--accent); }
.dot { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); font-size: .875rem; font-weight: 600; }
.done .dot { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.current .dot { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); }
button.dot { cursor: pointer; }
button.dot:hover { border-color: var(--accent); }
.stage-name { font-size: .8125rem; line-height: 1.25; color: var(--muted); padding-inline: 4px; }
.current .stage-name { color: var(--fg); font-weight: 600; }
@media (max-width: 620px) { .stage-name { display: none; } }
.now { display: grid; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.now-two { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.eyebrow { font-size: .8125rem; font-weight: 600; color: var(--accent); }
.now-two h3 { font-size: .875rem; margin-bottom: 2px; }
.now-two p { font-size: .95rem; color: var(--muted); }

/* Tabs */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs button { flex: none; padding: 10px 12px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); font-weight: 600; font-size: .95rem; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.tabs .count { margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .75rem; }

/* Task, update and report lists */
.tasks li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.tasks li:first-child { border-top: 0; padding-top: 0; }
.tasks label { display: flex; align-items: flex-start; gap: 10px; flex: 1; min-width: 0; cursor: pointer; overflow-wrap: anywhere; }
.tasks .is-done { color: var(--muted); text-decoration: line-through; }
.tasks .due { display: block; font-size: .8125rem; color: var(--muted); text-decoration: none; }
.tasks .late { color: var(--red); font-weight: 600; }
.status-tick { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: .75rem; }
.status-tick.yes { background: var(--green-tint); color: var(--green); }
.updates li { padding: 14px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.updates li:first-child { border-top: 0; padding-top: 0; }
.updates li:last-child { padding-bottom: 0; }
.updates .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .8125rem; color: var(--muted); }
.updates p { margin-top: 4px; }
.reports li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.reports li:first-child { border-top: 0; padding-top: 0; }
.reports li:last-child { padding-bottom: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 10px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 0; text-align: left; }
th { border-top: 0; font-size: .8125rem; font-weight: 600; color: var(--muted); }

/* Numbers */
.stats { display: grid; gap: 14px 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); }
.stat b { display: block; font-size: 1.6rem; line-height: 1.15; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat .k { font-size: .875rem; font-weight: 600; }
.stat .h { display: block; font-size: .8125rem; color: var(--muted); }
.chart { display: block; width: 100%; max-width: 520px; height: auto; margin-top: 18px; }
.chart text { fill: var(--muted); font-family: var(--font); font-size: 14px; }
.chart text.v { fill: var(--fg); font-weight: 600; }
.chart .b { fill: var(--bar); }
.chart .b.last { fill: var(--accent); }
.chart line { stroke: var(--line); }

/* Client page */
.client-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 920px) { .client-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.person { display: flex; align-items: center; gap: 12px; }
.face { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--accent); }
.face img { position: absolute; left: -25%; top: -24%; width: 150%; max-width: none; height: auto; }
.person strong { display: block; font-weight: 600; }
.facts { display: grid; gap: 10px; }
.facts div { display: grid; gap: 1px; }
.facts dt { font-size: .8125rem; color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
#ask { scroll-margin-top: 90px; }
.qa { border-top: 1px solid var(--line); }
.qa:first-child { border-top: 0; }
.qa summary { padding: 10px 0; font-weight: 500; font-size: .95rem; cursor: pointer; }
.qa p { padding-bottom: 12px; color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.ask-send { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--accent-tint); font-size: .95rem; }
.ask-send .btn { justify-self: start; }
.thread { display: grid; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); overflow-wrap: anywhere; }
.msg.mine { justify-self: end; background: var(--accent-tint); }
.msg .who { display: block; font-size: .8125rem; color: var(--muted); }

/* This month's headline, folded stage tracker and money-back line */
.headline { display: grid; gap: 12px; }
.headline-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.card.headline > h2 + * { margin-top: 0; }
.headline h2 { font-size: clamp(1.3rem, 1.15rem + .7vw, 1.7rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 500; overflow-wrap: anywhere; }
.need-line { padding: 10px 12px; border-radius: 10px; background: var(--amber-tint); font-size: .95rem; }
.changes { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.changes h3 { font-size: .875rem; }
.changes ul { display: grid; gap: 4px; }
.changes li { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.stage-more summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; cursor: pointer; list-style: none; }
.stage-more summary::-webkit-details-marker { display: none; }
.stage-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.stage-sum .mini { width: 130px; margin: 0; }
.money { display: grid; gap: 4px; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: var(--green-tint); }
.money strong { font-size: 1.15rem; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; }

/* Ads */
.ads { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.ad { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; overflow-wrap: anywhere; }
.ad-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.ad-img { display: grid; place-items: center; width: 100%; max-width: 100%; aspect-ratio: 4 / 3; padding: 14px; border-radius: 10px; background: var(--accent-tint); color: var(--accent); font-size: .875rem; font-weight: 600; text-align: center; object-fit: cover; }
.ad-copy { color: var(--muted); font-size: .95rem; }
.ad-note { padding: 8px 10px; border-radius: 8px; background: var(--surface-2); font-size: .875rem; }
.ad-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-small { padding: 7px 12px; font-size: .875rem; }

/* Uploads and Buddy */
.upload { position: relative; display: inline-flex; flex: none; color: var(--accent); font-size: .875rem; font-weight: 600; cursor: pointer; }
.upload:hover { text-decoration: underline; }
.upload:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.tasks label.upload { flex: none; display: inline-flex; gap: 0; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.buddy-empty { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: .95rem; }
.face.buddy { background: var(--buddy); }

/* Dialog and toast */
dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--fg); }
dialog::backdrop { background: rgba(10, 12, 16, .5); }
.dialog-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 16px; }
#toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: max-content; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 12px; background: var(--fg); color: var(--bg); font-size: .95rem; font-weight: 500; transform: translateX(-50%); }

/* Login */
.auth { width: 100%; max-width: 420px; margin: 6vh auto 0; padding: 26px; }
.auth h1 { font-size: 1.9rem; }
.auth .btn { width: 100%; }
.auth .link { justify-self: center; }
.auth-note { padding: 10px 12px; border-radius: 10px; background: var(--amber-tint); font-size: .95rem; }
input[type="password"] { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); font-size: 1rem; }
.top-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-width: 0; }

/* What's new: the first thing a client sees when there's anything to see. */
.new-card { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.new-head { display: flex; align-items: center; gap: 10px; }
.new-head h2 { color: inherit; font-size: 1.3rem; }
.new-count { display: grid; place-items: center; flex: none; min-width: 32px; height: 32px; padding-inline: 8px; border-radius: 999px; background: var(--on-accent); color: var(--accent); font-weight: 700; }
.new-list { display: grid; gap: 6px; margin-top: 14px; }
.new-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--new-row); color: inherit; font-weight: 500; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.new-item:hover { background: var(--new-row-hover); }
.new-item:focus-visible { outline-color: var(--on-accent); }
.new-when { display: block; font-size: .8125rem; font-weight: 400; opacity: .85; }
.msg-new { margin-left: 4px; padding: 0 7px; font-size: .75rem; }
#sec-todo, #sec-ads, #sec-numbers, #sec-working, #sec-updates, #sec-questions, #sec-reports, #sec-files, #stage-more { scroll-margin-top: 80px; }
