/* The CEO notes site. One file, in Claira Health's own look (21 October 2026,
   as the Claira Health CRM and the product use it): warm paper, slate ink, the
   logo's blue as the accent, Plus Jakarta Sans self-hosted, 14px boxes and round
   controls. Light by default; the CRM's Midnight palette when the device is dark. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("plus-jakarta-sans-latin.woff2") format("woff2");
}
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #5a6a7e;
  --line: #e8e2d7;
  --accent: #0a6cf0;
  --teal: #0f766e;
  --good-bg: #d5f5ef; --good-ink: #0f766e;
  --warn-bg: #fdf0d8; --warn-ink: #b45309;
  --bad-bg:  #fee4e2; --bad-ink:  #b42318;
  --brand-gradient: linear-gradient(135deg, #0a6cf0, #14b8a6);
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: var(--sans);   /* headings use the house font too; the name is kept for the rules below */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1420; --surface: #151f30; --ink: #eaf1f8; --muted: #9aabbd;
    --line: #1e2b3c; --accent: #6fb3f0; --teal: #3ddc97;
    --good-bg: #0e2e26; --good-ink: #3ddc97;
    --warn-bg: #3a2a12; --warn-ink: #f0a84e;
    --bad-bg:  #3d1512; --bad-ink:  #ff7b7b;
    --brand-gradient: linear-gradient(135deg, #3d8fd6, #3ddc97);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--sans);
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* header.bar, not .bar: a bare class selector here made every element named
   "bar" a sticky layer at z-index 10, and the journey bar's segments were drawn
   over the open menus. */
header.bar { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 10; }
.bar-inner { margin: 0; padding: 10px 32px; display: flex; align-items: center;
             justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.bar .brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.wm-logo { height: 28px; width: auto; flex: none; }
.wm-name { font-weight: 800; letter-spacing: -0.02em; font-size: 1.2rem; white-space: nowrap; }
.wm-name .wm-health { font-weight: 400; color: var(--muted); }
.product-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--bg); border: 1px solid var(--line); }
.bar .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.bar .menu > li { position: relative; }
.bar summary, .bar a.plain { display: block; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  color: var(--ink); text-decoration: none; font-weight: 500; list-style: none; }
.bar summary::-webkit-details-marker { display: none; }
.bar summary::after { content: "▾"; margin-left: 6px; font-size: 11px; color: var(--muted); }
.bar summary:hover, .bar a.plain:hover, .bar details[open] > summary { background: var(--bg); }
.bar a.plain[aria-current] { background: var(--bg); box-shadow: inset 0 -2px 0 var(--accent); }
.bar summary:focus-visible, .bar a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bar .panel { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.12);
  padding: 14px 16px; max-height: 75vh; overflow-y: auto; }
.bar .panel-docs { width: min(620px, calc(100vw - 32px)); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.bar .panel-updates { width: min(460px, calc(100vw - 32px)); }
.bar .panel ul { list-style: none; margin: 0; padding: 0; }
.bar .menu-group p { margin: 4px 0 4px; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); }
.bar .panel li a { display: block; padding: 5px 8px; margin: 0 -8px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.bar .panel li a:hover { background: var(--bg); }
.bar .panel li a[aria-current] { color: var(--accent); font-weight: 600; }
.bar .panel a.update { display: grid; grid-template-columns: 6.8em 1fr; gap: 8px; font-size: 14px; line-height: 1.4; padding: 8px; }
.bar .panel a.update time { font-weight: 600; font-variant-numeric: tabular-nums; }
.bar .panel .all { display: inline-block; margin-top: 8px; font-weight: 600; }
.crumb { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.crumb + .doc { margin-top: 10px; }

/* Full width. Two columns on wide screens: the page on the left, the glance
   panel against the right edge. Below 1100px the panel drops under the page. */
.layout { margin: 0; padding: 0 32px 48px; display: grid;
          grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
main { min-width: 0; padding-top: 8px; }
main > section { margin-top: 44px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: 2.3rem; margin: 0.2em 0 0.4em; }
h2 { font-size: 1.55rem; margin: 1.8em 0 0.5em; }
h3 { font-size: 1.2rem; margin: 1.5em 0 0.4em; }
main > section > h2:first-child { margin-top: 0; }

.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0; }
.meta { color: var(--muted); font-size: 15px; }

/* Landing */
.hero { margin-top: 36px; }
.goal { margin: 0; padding: 18px 22px; border-left: 4px solid var(--accent); background: var(--surface);
        font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; border-radius: 0 8px 8px 0; }
.goal p { margin: 0; }

.latest { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.latest .headline { font-family: var(--serif); font-size: 1.2rem; margin: 6px 0 0; }
.latest .headline a { color: var(--ink); }

.tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.track { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.track header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.track h3 { margin: 0; font-size: 1.35rem; }
.state { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.state strong { font-weight: inherit; }
.state.good { background: var(--good-bg); color: var(--good-ink); }
.state.warn { background: var(--warn-bg); color: var(--warn-ink); }
.state.bad  { background: var(--bad-bg);  color: var(--bad-ink); }
.track .why { font-size: 15.5px; margin: 12px 0 0; }
.track dl { margin: 14px 0 0; border-top: 1px solid var(--line); }
.track dt { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.track dd { margin: 4px 0 0; font-size: 15px; }

.groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.group h3 { margin: 0; }
.group > p { color: var(--muted); font-size: 15px; margin: 4px 0 10px; }
.group ul { list-style: none; margin: 0; padding: 0; }
.group li { padding: 10px 0; border-top: 1px solid var(--line); }
.group li a { font-weight: 600; }
.group li > span:last-child { display: block; font-size: 15px; color: var(--muted); }
/* Home, less is more (7 October): a track card is its state and this week. */
.track .this-week { margin: 10px 0 0; font-size: 15px; }
.group h4 { margin: 14px 0 2px; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); }
.group h3 + h4 { margin-top: 8px; }
#documents li { padding: 6px 0; }
.show-more > summary { list-style: none; cursor: pointer; padding: 10px 0 0; border-top: 1px solid var(--line);
  color: var(--accent); font-weight: 600; font-size: 15px; }
.show-more > summary::-webkit-details-marker { display: none; }
.show-more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.show-more .when-open, .show-more[open] .when-closed { display: none; }
.show-more[open] .when-open { display: inline; }
.show-more > ul { margin-top: 10px; }
.kind { font-size: 11px; font-weight: 700; margin-left: 8px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); vertical-align: 2px; }

.updates { list-style: none; padding: 0; margin: 0; }
.updates li { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.updates time { font-variant-numeric: tabular-nums; font-weight: 600; }

/* Tables, on every page */
.table { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 1em 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
tbody tr:last-child td { border-bottom: 0; }
.nowrap { white-space: nowrap; }

/* Documents */
.doc { margin: 28px 0 0; }
.doc h1 + .meta { margin-top: -0.3em; }
.doc blockquote { margin: 1em 0; padding: 4px 18px; border-left: 3px solid var(--line); color: var(--muted); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.doc li { margin: 0.35em 0; }
.doc img { max-width: 100%; height: auto; border-radius: 6px; }
.doc .table { max-width: none; }
code { font: 0.88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--line); padding: 1px 5px; border-radius: 4px; }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot p { margin: 0; padding: 14px 32px 0; }
.foot p:last-child { padding-bottom: 28px; }

@media (max-width: 860px) {
  .tracks, .groups { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bar .brand { font-size: 1.2rem; }
  .bar .comments-drop { position: static; }
  .bar .panel-comments { left: 16px; right: 16px; transform: none; width: auto; }
  .bar .menu > li { position: static; }
  .bar .panel { left: 16px; right: 16px; width: auto; }
  .bar .panel-docs { grid-template-columns: 1fr; }
  .bar .panel a.update { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .layout, .bar-inner, .foot p { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 1.8rem; }
  .updates li { grid-template-columns: 1fr; gap: 2px; }
}

/* Comments, on every page */
.comments { margin: 56px 0 0; border-top: 1px solid var(--line); padding-top: 8px; }
.comments h2 { font-size: 1.3rem; }
.comments .count { color: var(--muted); font-family: var(--sans); font-size: 1rem; font-weight: 400; }
.comments ol { list-style: none; margin: 0; padding: 0; }
.comments li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 0 0 10px; }
.comments .who { margin: 0; font-size: 14px; color: var(--muted); }
.comments .who strong { color: var(--ink); }
.comments .body { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comments .status { color: var(--muted); font-size: 15px; min-height: 1.4em; }
.comments .status.bad { color: var(--bad-ink); }
.comments form { display: grid; gap: 10px; }
.comments .as { margin: 0; font-size: 15px; color: var(--muted); }
.comments .as strong { color: var(--ink); }
.comments textarea, .comments button { font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.comments textarea { width: 100%; resize: vertical; }
.comments button { justify-self: start; background: var(--accent); color: var(--surface); border-color: var(--accent); font-weight: 600; cursor: pointer; }
.comments button:disabled { opacity: 0.6; cursor: wait; }
.comments textarea:focus-visible, .comments button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* At a glance */
.glance { position: sticky; top: 70px; margin-top: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 14px; line-height: 1.45; }
.glance .where { margin: 0; font-size: 15px; }
.layout.no-glance { grid-template-columns: minmax(0, 1fr); }
.glance h3 { font-family: var(--sans); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.glance h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.glance h3 .dates { font-weight: 500; text-transform: none; letter-spacing: 0; }
.glance ul { list-style: none; margin: 0; padding: 0; }
.glance li { margin: 0 0 10px; }
.glance li > span:last-child { display: block; color: var(--muted); }
.glance .decide-this li { border-left: 3px solid var(--bad-ink); padding-left: 10px; }
.glance .decide-next li { border-left: 3px solid var(--warn-ink); padding-left: 10px; }
.glance .decide-later li, .glance .decide-undated li { border-left: 3px solid var(--line); padding-left: 10px; }
.glance .decide-done li { border-left: 3px solid var(--good-ink); padding-left: 10px; }
.glance li.none { border-left: 0; padding-left: 0; color: var(--muted); }
.glance .due { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.glance .more { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .glance { position: static; max-height: none; margin-top: 40px; }
}

/* Signed in: name and Sign out in the menu bar */
.bar .signout { display: flex; align-items: center; gap: 8px; margin-left: 10px; padding-left: 12px;
  border-left: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.bar .signout[hidden] { display: none; }
.bar .signout button { font: inherit; font-size: 14px; color: var(--ink); background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.bar .signout button:hover { background: var(--bg); }
.unavailable { color: var(--muted); border-bottom: 1px dotted var(--muted); cursor: help; }

/* Sign-in page */
body.signin { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.signin-box { width: min(380px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.signin-box h1 { font-size: 1.8rem; margin: 4px 0 16px; }
.signin-box form { display: grid; gap: 14px; }
.signin-box label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.signin-box input { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
.signin-box input:focus-visible, .signin-box button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.signin-box button { font: inherit; font-weight: 600; color: var(--surface); background: var(--accent); border: 0; border-radius: 999px; padding: 10px; cursor: pointer; }
.signin-box .status.bad { color: var(--bad-ink); margin: 0 0 12px; }
.signin-box .meta { margin: 18px 0 0; font-size: 13px; }

/* The journey bar: day 1 to the goal, one lane per track, one segment per
   milestone, true to the calendar. A lane's colour is its track's health. */
:root {
  --lane-ahead: #17693a; --lane-ontrack: #2f9e5a; --lane-behind: #e07b1f; --lane-blocked: #c63d2f;
}
@media (prefers-color-scheme: dark) {
  :root { --lane-ahead: #3fbf74; --lane-ontrack: #7fd6a0; --lane-behind: #f2a24e; --lane-blocked: #f07565; }
}
.journey { padding: 16px 32px 12px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg)); }
.journey-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.journey-head p { margin: 0; }
.journey-where strong { font-family: var(--serif); font-size: 1.35rem; margin-right: 10px; }
.journey-where span, .journey-goal span { color: var(--muted); font-size: 14px; }
.journey-goal { font-size: 15px; }
.journey-goal strong { font-family: var(--serif); font-size: 1.35rem; color: var(--accent); }
.journey-grid { position: relative; padding-right: 58px; }
.journey .lanes { position: relative; display: grid; gap: 6px; --name: 170px; }
.journey .lane { display: grid; grid-template-columns: var(--name) minmax(0, 1fr); align-items: center; gap: 12px; }
.journey .lane-name { margin: 0; font-size: 13px; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; overflow: hidden; }
.journey .lane-name b { font-weight: 700; min-width: 5.6em; }
.journey .lane-name span { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.journey .lane-name span strong { font-weight: inherit; }
.journey .segs, .journey .weeks { list-style: none; margin: 0; padding: 0; display: flex; gap: 3px; }
.journey .seg, .journey .weeks li { min-width: 0; flex-basis: 0; }
.journey .seg .rail { display: block; height: 12px; border-radius: 3px; overflow: hidden;
  background: color-mix(in srgb, var(--lane) 14%, var(--line)); }
.journey .seg:first-child .rail { border-radius: 999px 3px 3px 999px; }
.journey .seg:last-child .rail { border-radius: 3px 999px 999px 3px; }
.journey .seg .fill { display: block; height: 100%; width: calc(var(--fill) * 100%); background: var(--lane);
  transform-origin: left; animation: journey-grow .9s ease-out both; }
.journey .seg.now .fill { background: repeating-linear-gradient(135deg, var(--lane) 0 7px,
  color-mix(in srgb, var(--lane) 70%, white) 7px 14px); background-size: 200% 100%;
  animation: journey-grow .9s ease-out both, journey-flow 3s linear infinite; }
.journey .seg.empty .fill { display: none; }   /* no milestone for this track that week: no progress to show */
.journey .lane-ahead { --lane: var(--lane-ahead); }
.journey .lane-ontrack { --lane: var(--lane-ontrack); }
.journey .lane-behind { --lane: var(--lane-behind); }
.journey .lane-blocked { --lane: var(--lane-blocked); }
.journey .lane-ahead .lane-name span { color: var(--lane-ahead); }
.journey .lane-ontrack .lane-name span { color: var(--lane-ontrack); }
.journey .lane-behind .lane-name span { color: var(--lane-behind); }
.journey .lane-blocked .lane-name span { color: var(--lane-blocked); }
.journey .weeks li { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.journey .weeks li b { font-weight: 700; }
.journey .weeks li i { font-style: normal; }
.journey .weeks li.now { color: var(--accent); }
/* The Today line runs down through every lane, in the road column only. */
.journey .today-rail { position: absolute; top: 0; bottom: 18px; left: calc(var(--name) + 12px); right: 0; pointer-events: none; }
.journey .today { position: absolute; top: -6px; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.journey .today .line { flex: 1; width: 3px; border-radius: 2px; background: var(--ink); opacity: .75; animation: journey-blink 2s ease-in-out infinite; }
.journey .today .tag { position: absolute; bottom: calc(100% + 2px); font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--surface); background: var(--ink); padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.journey .finish { position: absolute; right: 0; top: 50%; transform: translateY(-65%); display: flex; flex-direction: column; align-items: center;
  color: var(--ink); font-size: 12px; font-weight: 700; }
.journey .finish .flag { width: 28px; height: 28px; color: var(--accent); }
.journey-focus { margin: 10px 0 0; font-size: 14px; }
.journey-focus span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 6px; }
@keyframes journey-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes journey-flow { to { background-position: -28px 0; } }
@keyframes journey-blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .journey .fill, .journey .today .line { animation: none !important; } }
@media (max-width: 760px) {
  .journey { padding: 12px 16px 10px; }
  .journey .lanes { --name: 88px; }
  .journey .lane-name span { display: none; }
  .journey .weeks li i { display: none; }
  .journey .weeks li:not(.now) { visibility: hidden; }
}

/* Other projects: one line each on the landing page, detail in the top bar */
.projects-strip h2 { font-size: 1.3rem; }
.projects-strip ul { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.projects-strip li { display: grid; grid-template-columns: 7.5em auto minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 10px 16px; }
.projects-strip li + li { border-top: 1px solid var(--line); }
.projects-strip li a { font-weight: 600; }
.projects-strip li span:last-child { color: var(--muted); font-size: 15px; }
.bar .panel-projects { width: min(440px, calc(100vw - 32px)); }
.bar .panel a.project-link { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 8px; }
.bar .panel a.project-link .proj-name { font-weight: 700; }
.bar .panel a.project-link .state { justify-self: end; align-self: center; }
.bar .panel a.project-link .proj-line { grid-column: 1 / -1; font-size: 14px; line-height: 1.4; }
.bar .panel a.project-link .proj-when { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .projects-strip li { grid-template-columns: 1fr auto; } .projects-strip li span:last-child { grid-column: 1 / -1; } }

/* The CEO's asks: the live table, and adding and editing for full access */
.asks-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 2em; }
.asks-status { margin: 0; color: var(--muted); font-size: 14px; }
.asks-status.bad { color: var(--bad-ink); }
.asks button { font: inherit; font-size: 14px; font-weight: 600; border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.asks .asks-add { color: var(--surface); background: var(--accent); border: 0; }
.asks .asks-edit { color: var(--ink); background: none; border: 1px solid var(--line); padding: 3px 10px; font-weight: 500; }
.asks .asks-edit:hover { background: var(--bg); }
.asks .edit-col { width: 1%; }
.asks:not(.can-edit) .edit-col { display: none; }
.asks td:nth-child(2) { white-space: nowrap; }
.asks-dialog { border: 1px solid var(--line); border-radius: 14px; padding: 22px; width: min(560px, calc(100vw - 32px));
  background: var(--surface); color: var(--ink); }
.asks-dialog::backdrop { background: rgba(0,0,0,.35); }
.asks-dialog h3 { margin: 0 0 14px; }
.asks-dialog form { display: grid; gap: 12px; }
.asks-dialog label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.asks-dialog input, .asks-dialog select, .asks-dialog textarea { font: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.asks-dialog .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.asks-dialog .hint, .asks-dialog .form-status { margin: 0; font-size: 12px; color: var(--muted); }
.asks-dialog .buttons button[type=submit] { color: var(--surface); background: var(--accent); border: 0; }
.asks-dialog .buttons .cancel { background: none; border: 1px solid var(--line); color: var(--ink); }

/* Diagrams drawn as SVG in a document, placed into the page (inline_diagrams) */
.diagram { margin: 18px 0 26px; padding: 16px 16px 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 760px; height: auto; }
.diagram figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.dg text { fill: var(--ink); }
.dg .dg-sub, .dg text.dg-sub { fill: var(--muted); }
.dg .dg-head text, .dg-head text { fill: var(--muted); letter-spacing: .02em; }
.dg .dg-rule { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 4; }
.dg .dg-claira { fill: color-mix(in srgb, var(--accent) 22%, var(--surface)); stroke: var(--accent); stroke-width: 1.5; }
.dg .dg-shared { fill: color-mix(in srgb, var(--good-ink) 16%, var(--surface)); stroke: var(--good-ink); stroke-width: 1.5; }
.dg .dg-biller { fill: color-mix(in srgb, var(--warn-ink) 20%, var(--surface)); stroke: var(--warn-ink); stroke-width: 1.5; }
.dg .dg-clinic { fill: color-mix(in srgb, var(--muted) 16%, var(--surface)); stroke: var(--muted); stroke-width: 1.5; }
.dg .dg-axis { stroke: var(--muted); stroke-width: 1.5; }
.dg .dg-axis-head { fill: var(--muted); }
.dg .dg-goal { stroke: var(--bad-ink); stroke-width: 1.5; stroke-dasharray: 5 5; }
.dg text.dg-goal-text { fill: var(--bad-ink); }
.dg .dg-claira-soft { fill: color-mix(in srgb, var(--accent) 16%, var(--surface)); stroke: var(--accent); stroke-width: 1.5; }
.dg .dg-claira-mid { fill: color-mix(in srgb, var(--accent) 42%, var(--surface)); stroke: var(--accent); stroke-width: 1.5; }
.dg .dg-claira-full { fill: var(--accent); stroke: var(--accent); }
.dg text.dg-cell-strong { fill: var(--surface); }
.dg .dg-step { stroke: var(--accent); stroke-width: 2; }
.dg .dg-step-head { fill: var(--accent); }
.dg text.dg-need { fill: var(--muted); font-style: italic; }
.dg .dg-decision { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.dg .dg-notbuilt { stroke-dasharray: 6 4; fill: var(--surface); }
.dg .dg-payer { fill: color-mix(in srgb, var(--muted) 10%, var(--surface)); stroke: var(--muted); stroke-width: 1.5; }
.dg .dg-arrow { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.dg .dg-arrowhead { fill: var(--muted); }
.dg text.dg-tag { fill: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .03em; }
.dg a { cursor: pointer; }
.dg a text:first-of-type { text-decoration: underline; }
.dg a:hover rect, .dg a:focus rect { stroke-width: 3; }


.latest .latest-item + .latest-item { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.latest .more { margin: 12px 0 0; font-size: 14px; }

/* Comments, in the middle of the header on every page */
.bar-middle { flex: 1; display: flex; justify-content: center; }
.bar-middle[hidden] { display: none; }
.bar .comments-drop { position: relative; }
.bar .comments-drop summary { display: flex; align-items: center; gap: 8px; }
.bar .comments-drop .label.has-new { color: var(--accent); font-weight: 700; }
.bar .panel-comments { left: 16px; right: 16px; transform: none; width: auto; }
  .bar .menu > li { position: static; }
  .bar .panel { left: 16px; right: 16px; width: auto; }
  .bar .panel-docs { grid-template-columns: 1fr; }
  .bar .panel a.update { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .layout, .bar-inner, .foot p { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 1.8rem; }
  .updates li { grid-template-columns: 1fr; gap: 2px; }
}

/* Comments, on every page */
.comments { margin: 56px 0 0; border-top: 1px solid var(--line); padding-top: 8px; }
.comments h2 { font-size: 1.3rem; }
.comments .count { color: var(--muted); font-family: var(--sans); font-size: 1rem; font-weight: 400; }
.comments ol { list-style: none; margin: 0; padding: 0; }
.comments li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 0 0 10px; }
.comments .who { margin: 0; font-size: 14px; color: var(--muted); }
.comments .who strong { color: var(--ink); }
.comments .body { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comments .status { color: var(--muted); font-size: 15px; min-height: 1.4em; }
.comments .status.bad { color: var(--bad-ink); }
.comments form { display: grid; gap: 10px; }
.comments .as { margin: 0; font-size: 15px; color: var(--muted); }
.comments .as strong { color: var(--ink); }
.comments textarea, .comments button { font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.comments textarea { width: 100%; resize: vertical; }
.comments button { justify-self: start; background: var(--accent); color: var(--surface); border-color: var(--accent); font-weight: 600; cursor: pointer; }
.comments button:disabled { opacity: 0.6; cursor: wait; }
.comments textarea:focus-visible, .comments button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* At a glance */
.glance { position: sticky; top: 70px; margin-top: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 14px; line-height: 1.45; }
.glance .where { margin: 0; font-size: 15px; }
.layout.no-glance { grid-template-columns: minmax(0, 1fr); }
.glance h3 { font-family: var(--sans); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.glance h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.glance h3 .dates { font-weight: 500; text-transform: none; letter-spacing: 0; }
.glance ul { list-style: none; margin: 0; padding: 0; }
.glance li { margin: 0 0 10px; }
.glance li > span:last-child { display: block; color: var(--muted); }
.glance .decide-this li { border-left: 3px solid var(--bad-ink); padding-left: 10px; }
.glance .decide-next li { border-left: 3px solid var(--warn-ink); padding-left: 10px; }
.glance .decide-later li, .glance .decide-undated li { border-left: 3px solid var(--line); padding-left: 10px; }
.glance li.none { border-left: 0; padding-left: 0; color: var(--muted); }
.glance .due { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.glance .more { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .glance { position: static; max-height: none; margin-top: 40px; }
}

/* Signed in: name and Sign out in the menu bar */
.bar .signout { display: flex; align-items: center; gap: 8px; margin-left: 10px; padding-left: 12px;
  border-left: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.bar .signout[hidden] { display: none; }
.bar .signout button { font: inherit; font-size: 14px; color: var(--ink); background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.bar .signout button:hover { background: var(--bg); }
.unavailable { color: var(--muted); border-bottom: 1px dotted var(--muted); cursor: help; }

/* Sign-in page */
body.signin { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.signin-box { width: min(380px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.signin-box h1 { font-size: 1.8rem; margin: 4px 0 16px; }
.signin-box form { display: grid; gap: 14px; }
.signin-box label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.signin-box input { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
.signin-box input:focus-visible, .signin-box button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.signin-box button { font: inherit; font-weight: 600; color: var(--surface); background: var(--accent); border: 0; border-radius: 999px; padding: 10px; cursor: pointer; }
.signin-box .status.bad { color: var(--bad-ink); margin: 0 0 12px; }
.signin-box .meta { margin: 18px 0 0; font-size: 13px; }

/* The journey bar: day 1 to the goal, one lane per track, one segment per
   milestone, true to the calendar. A lane's colour is its track's health. */
:root {
  --lane-ahead: #17693a; --lane-ontrack: #2f9e5a; --lane-behind: #e07b1f; --lane-blocked: #c63d2f;
}
@media (prefers-color-scheme: dark) {
  :root { --lane-ahead: #3fbf74; --lane-ontrack: #7fd6a0; --lane-behind: #f2a24e; --lane-blocked: #f07565; }
}
.journey { padding: 16px 32px 12px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg)); }
.journey-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.journey-head p { margin: 0; }
.journey-where strong { font-family: var(--serif); font-size: 1.35rem; margin-right: 10px; }
.journey-where span, .journey-goal span { color: var(--muted); font-size: 14px; }
.journey-goal { font-size: 15px; }
.journey-goal strong { font-family: var(--serif); font-size: 1.35rem; color: var(--accent); }
.journey-grid { position: relative; padding-right: 58px; }
.journey .lanes { position: relative; display: grid; gap: 6px; --name: 170px; }
.journey .lane { display: grid; grid-template-columns: var(--name) minmax(0, 1fr); align-items: center; gap: 12px; }
.journey .lane-name { margin: 0; font-size: 13px; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; overflow: hidden; }
.journey .lane-name b { font-weight: 700; min-width: 5.6em; }
.journey .lane-name span { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.journey .lane-name span strong { font-weight: inherit; }
.journey .segs, .journey .weeks { list-style: none; margin: 0; padding: 0; display: flex; gap: 3px; }
.journey .seg, .journey .weeks li { min-width: 0; flex-basis: 0; }
.journey .seg .rail { display: block; height: 12px; border-radius: 3px; overflow: hidden;
  background: color-mix(in srgb, var(--lane) 14%, var(--line)); }
.journey .seg:first-child .rail { border-radius: 999px 3px 3px 999px; }
.journey .seg:last-child .rail { border-radius: 3px 999px 999px 3px; }
.journey .seg .fill { display: block; height: 100%; width: calc(var(--fill) * 100%); background: var(--lane);
  transform-origin: left; animation: journey-grow .9s ease-out both; }
.journey .seg.now .fill { background: repeating-linear-gradient(135deg, var(--lane) 0 7px,
  color-mix(in srgb, var(--lane) 70%, white) 7px 14px); background-size: 200% 100%;
  animation: journey-grow .9s ease-out both, journey-flow 3s linear infinite; }
.journey .seg.empty .fill { display: none; }   /* no milestone for this track that week: no progress to show */
.journey .lane-ahead { --lane: var(--lane-ahead); }
.journey .lane-ontrack { --lane: var(--lane-ontrack); }
.journey .lane-behind { --lane: var(--lane-behind); }
.journey .lane-blocked { --lane: var(--lane-blocked); }
.journey .lane-ahead .lane-name span { color: var(--lane-ahead); }
.journey .lane-ontrack .lane-name span { color: var(--lane-ontrack); }
.journey .lane-behind .lane-name span { color: var(--lane-behind); }
.journey .lane-blocked .lane-name span { color: var(--lane-blocked); }
.journey .weeks li { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.journey .weeks li b { font-weight: 700; }
.journey .weeks li i { font-style: normal; }
.journey .weeks li.now { color: var(--accent); }
/* The Today line runs down through every lane, in the road column only. */
.journey .today-rail { position: absolute; top: 0; bottom: 18px; left: calc(var(--name) + 12px); right: 0; pointer-events: none; }
.journey .today { position: absolute; top: -6px; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.journey .today .line { flex: 1; width: 3px; border-radius: 2px; background: var(--ink); opacity: .75; animation: journey-blink 2s ease-in-out infinite; }
.journey .today .tag { position: absolute; bottom: calc(100% + 2px); font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--surface); background: var(--ink); padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.journey .finish { position: absolute; right: 0; top: 50%; transform: translateY(-65%); display: flex; flex-direction: column; align-items: center;
  color: var(--ink); font-size: 12px; font-weight: 700; }
.journey .finish .flag { width: 28px; height: 28px; color: var(--accent); }
.journey-focus { margin: 10px 0 0; font-size: 14px; }
.journey-focus span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 6px; }
@keyframes journey-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes journey-flow { to { background-position: -28px 0; } }
@keyframes journey-blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .journey .fill, .journey .today .line { animation: none !important; } }
@media (max-width: 760px) {
  .journey { padding: 12px 16px 10px; }
  .journey .lanes { --name: 88px; }
  .journey .lane-name span { display: none; }
  .journey .weeks li i { display: none; }
  .journey .weeks li:not(.now) { visibility: hidden; }
}

/* Other projects: one line each on the landing page, detail in the top bar */
.projects-strip h2 { font-size: 1.3rem; }
.projects-strip ul { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.projects-strip li { display: grid; grid-template-columns: 7.5em auto minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 10px 16px; }
.projects-strip li + li { border-top: 1px solid var(--line); }
.projects-strip li a { font-weight: 600; }
.projects-strip li span:last-child { color: var(--muted); font-size: 15px; }
.bar .panel-projects { width: min(440px, calc(100vw - 32px)); }
.bar .panel a.project-link { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 8px; }
.bar .panel a.project-link .proj-name { font-weight: 700; }
.bar .panel a.project-link .state { justify-self: end; align-self: center; }
.bar .panel a.project-link .proj-line { grid-column: 1 / -1; font-size: 14px; line-height: 1.4; }
.bar .panel a.project-link .proj-when { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .projects-strip li { grid-template-columns: 1fr auto; } .projects-strip li span:last-child { grid-column: 1 / -1; } }

/* The CEO's asks: the live table, and adding and editing for full access */
.asks-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 2em; }
.asks-status { margin: 0; color: var(--muted); font-size: 14px; }
.asks-status.bad { color: var(--bad-ink); }
.asks button { font: inherit; font-size: 14px; font-weight: 600; border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.asks .asks-add { color: var(--surface); background: var(--accent); border: 0; }
.asks .asks-edit { color: var(--ink); background: none; border: 1px solid var(--line); padding: 3px 10px; font-weight: 500; }
.asks .asks-edit:hover { background: var(--bg); }
.asks .edit-col { width: 1%; }
.asks:not(.can-edit) .edit-col { display: none; }
.asks td:nth-child(2) { white-space: nowrap; }
.asks-dialog { border: 1px solid var(--line); border-radius: 14px; padding: 22px; width: min(560px, calc(100vw - 32px));
  background: var(--surface); color: var(--ink); }
.asks-dialog::backdrop { background: rgba(0,0,0,.35); }
.asks-dialog h3 { margin: 0 0 14px; }
.asks-dialog form { display: grid; gap: 12px; }
.asks-dialog label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.asks-dialog input, .asks-dialog select, .asks-dialog textarea { font: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.asks-dialog .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.asks-dialog .hint, .asks-dialog .form-status { margin: 0; font-size: 12px; color: var(--muted); }
.asks-dialog .buttons button[type=submit] { color: var(--surface); background: var(--accent); border: 0; }
.asks-dialog .buttons .cancel { background: none; border: 1px solid var(--line); color: var(--ink); }

/* Diagrams drawn as SVG in a document, placed into the page (inline_diagrams) */
.diagram { margin: 18px 0 26px; padding: 16px 16px 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 760px; height: auto; }
.diagram figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.dg text { fill: var(--ink); }
.dg .dg-sub, .dg text.dg-sub { fill: var(--muted); }
.dg .dg-head text, .dg-head text { fill: var(--muted); letter-spacing: .02em; }
.dg .dg-rule { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 4; }
.dg .dg-claira { fill: color-mix(in srgb, var(--accent) 22%, var(--surface)); stroke: var(--accent); stroke-width: 1.5; }
.dg .dg-shared { fill: color-mix(in srgb, var(--good-ink) 16%, var(--surface)); stroke: var(--good-ink); stroke-width: 1.5; }
.dg .dg-biller { fill: color-mix(in srgb, var(--warn-ink) 20%, var(--surface)); stroke: var(--warn-ink); stroke-width: 1.5; }
.dg .dg-clinic { fill: color-mix(in srgb, var(--muted) 16%, var(--surface)); stroke: var(--muted); stroke-width: 1.5; }
.dg .dg-axis { stroke: var(--muted); stroke-width: 1.5; }
.dg .dg-axis-head { fill: var(--muted); }
.dg .dg-goal { stroke: var(--bad-ink); stroke-width: 1.5; stroke-dasharray: 5 5; }
.dg text.dg-goal-text { fill: var(--bad-ink); }
.dg .dg-claira-soft { fill: color-mix(in srgb, var(--accent) 16%, var(--surface)); stroke: var(--accent); stroke-width: 1.5; }
.dg .dg-claira-mid { fill: color-mix(in srgb, var(--accent) 42%, var(--surface)); stroke: var(--accent); stroke-width: 1.5; }
.dg .dg-claira-full { fill: var(--accent); stroke: var(--accent); }
.dg text.dg-cell-strong { fill: var(--surface); }
.dg .dg-step { stroke: var(--accent); stroke-width: 2; }
.dg .dg-step-head { fill: var(--accent); }
.dg text.dg-need { fill: var(--muted); font-style: italic; }


.latest .latest-item + .latest-item { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.latest .more { margin: 12px 0 0; font-size: 14px; }

/* Comments, in the middle of the header on every page */
.bar-middle { flex: 1; display: flex; justify-content: center; }
.bar-middle[hidden] { display: none; }
.bar .comments-drop { position: relative; }
.bar .comments-drop summary { display: flex; align-items: center; gap: 8px; }
.bar .comments-drop .count:empty { display: none; }
.bar .comments-drop .count { font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted); background: var(--bg); }
.bar .comments-drop .count.has-new { color: var(--surface); background: var(--accent); }
.bar .panel-comments { left: 50%; right: auto; transform: translateX(-50%); width: min(600px, calc(100vw - 32px)); }
.bar .panel-comments ol { list-style: none; margin: 0; padding: 0; }
.bar .panel-comments li + li { border-top: 1px solid var(--line); }
.bar .panel-comments li a { display: block; padding: 9px 8px; margin: 0 -8px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.bar .panel-comments li a:hover { background: var(--bg); }
.bar .panel-comments .who { margin: 0; font-size: 13px; color: var(--muted); }
.bar .panel-comments .who strong { color: var(--ink); }
.bar .panel-comments .body { margin: 2px 0 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .panel-comments .recent-status { margin: 0; font-size: 14px; color: var(--muted); }
.bar .panel-comments .recent-status:empty { display: none; }
.bar .panel-comments .new { display: inline-block; margin-right: 8px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--surface); background: var(--accent); }
.comments li.flash { outline: 2px solid var(--accent); outline-offset: 3px; }

/* This week's pending items (the owner, 2 October): red wherever they appear. */
.pending { color: var(--bad-ink); font-weight: 600; background: var(--bad-bg); border-radius: 3px; padding: 0 3px; }

/* Private notes (the owner, 2 October): one person's page. */
.my-notes .private-note { font-size: 13.5px; color: var(--bad-ink); background: var(--bad-bg); padding: 8px 12px; border-radius: 4px; }
.my-notes .note { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 22px; }
.my-notes .note h2 { margin-bottom: 2px; }
.my-notes .when { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }

/* Portfolio: every project side by side, on the same card as the plan's tracks. */
.folios { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.folio { display: flex; flex-direction: column; }
.folio header { align-items: flex-start; flex-wrap: wrap; }
.folio h3 a { color: inherit; text-decoration: none; }
.folio h3 a:hover { text-decoration: underline; }
.folio .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.folio .data-kind { margin: 10px 0 0; }
.folio dl { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; }
.folio dt, .folio dd { margin-top: 10px; }
.folio dd { text-align: right; font-variant-numeric: tabular-nums; }
.folio h4 { margin: 18px 0 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px;
  font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.folio h4 .count { margin-left: 6px; color: var(--ink); }
.folio .needs { margin: 0; padding-left: 1.1em; font-size: 15px; }
.folio .needs li + li { margin-top: 4px; }
.folio .needs li.none { list-style: none; margin-left: -1.1em; color: var(--muted); }
.folio .more { margin: auto 0 0; padding-top: 14px; font-size: 14px; }
.projects-strip .more { margin: 8px 0 0; font-size: 14px; }

/* The CEO's home page as a dashboard (the owner, 7 October). Chart colours are
   their own, validated for colour-blind readers in light and dark; every
   status also carries its label. */
:root { --c-done: #0ca30c; --c-prog: #2a78d6; --c-you: #eda100; }
@media (prefers-color-scheme: dark) { :root { --c-prog: #3987e5; --c-you: #c98500; } }
.dash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 30px; }
.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.dash-wide { grid-column: span 2; }
.dash-full { grid-column: 1 / -1; }
/* The updates by area (27 October; QA added 6 November): product, CRM, data pipeline, QA, compliance. */
.dash-areas { grid-template-columns: repeat(5, 1fr); margin-top: -16px; }
.area-tile .dash-when { margin: -4px 0 8px; font-size: 13px; color: var(--muted); }
.area-tile ul { margin: 0; padding-left: 1.1rem; font-size: 14px; line-height: 1.45; }
.area-tile li + li { margin-top: 4px; }
.dash-tag { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dash-tag a { color: inherit; }
.dash-big { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.1; }
.dash-sub { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.dash-lead { margin: 2px 0 0; font-size: 1.45rem; line-height: 1.3; font-weight: 600; }
.dash-lead a { color: var(--ink); text-decoration: none; }
.dash-lead a:hover { text-decoration: underline; }
.dash-ring { display: flex; align-items: center; gap: 16px; }
.dash-ring svg { flex: none; }
.dash-ring .v { stroke: var(--c-prog); }
.dash-ring text { fill: var(--ink); }
.dash-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.dash-row:first-of-type { border-top: 0; }
.dash-row a { font-weight: 600; color: var(--ink); text-decoration: none; }
.seg-done { background: var(--c-done); }
.seg-prog { background: var(--c-prog); }
.seg-you { background: var(--c-you); }
.seg-not, .seg-none { background: repeating-linear-gradient(135deg, var(--line) 0 3px, transparent 3px 7px); box-shadow: inset 0 0 0 1px var(--line); }
.dash .legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.dash .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.dash .legend b { color: var(--ink); font-weight: 600; margin-left: 4px; }
.waffle { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.waffle-row { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 8px; }
.waffle-cat { font-size: 13px; }
.waffle-cat b { color: var(--muted); font-weight: 600; margin-left: 2px; }
.waffle-sq { display: flex; flex-wrap: wrap; gap: 4px; }
.waffle-sq span { width: 20px; height: 20px; border-radius: 4px; }
/* The asks table, grouped by category (7 October). */
.asks tr.asks-group th { text-align: left; padding-top: 18px; font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.asks tr.asks-group th span { font-weight: 600; }
.fmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 4px 0 10px; }
.fmap a { display: block; padding: 6px 8px; border-radius: 6px; font-size: 12.5px; line-height: 1.25; color: var(--ink);
  text-decoration: none; min-height: 38px; border-left: 5px solid var(--muted); }
.fmap a.seg-done { background: color-mix(in srgb, var(--c-done) 16%, var(--surface)); border-left-color: var(--c-done); }
.fmap a.seg-prog { background: color-mix(in srgb, var(--c-prog) 16%, var(--surface)); border-left-color: var(--c-prog); }
.fmap a:hover, .fmap a:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 90px; margin: 10px 0 4px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bars .b { width: 100%; max-width: 30px; background: var(--c-prog); border-radius: 4px 4px 0 0; }
.bars .n { font-size: 12px; margin-bottom: 3px; }
.bars .w { font-size: 11px; color: var(--muted); margin-top: 4px; }
@media (max-width: 900px) { .dash, .dash-areas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .dash { grid-template-columns: 1fr; } .dash-wide { grid-column: auto; }
  .fmap { grid-template-columns: 1fr 1fr; } }

/* The row below the dashboard (7 October): one line per document or area. */
.dash-two { grid-template-columns: 1fr 1fr; margin-top: 0; }
.dash-row .dash-count { color: var(--muted); font-weight: 600; margin-right: auto; padding-left: 4px; }
.dash-row .dash-when { font-size: 13px; color: var(--muted); text-align: right; }
.dash-row > span:first-child { font-weight: 600; }
@media (max-width: 600px) { .dash-two { grid-template-columns: 1fr; } }
/* Comments, collapsed to one button until wanted (7 October). */
.comment-add > summary { display: inline-block; cursor: pointer; padding: 8px 14px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface); font-weight: 600; list-style: none; }
.comment-add > summary::-webkit-details-marker { display: none; }
.comment-add[open] > summary { margin-bottom: 10px; }

/* The product tile: every capability, one row per phase (7 October). */
.cap-row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: start; padding: 6px 0;
  border-top: 1px solid var(--line); }
.cap-phase { font-size: 13px; font-weight: 600; padding-top: 6px; }
.fmap.cap-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.fmap.cap-chips a { min-height: 0; padding: 4px 8px; font-size: 12.5px; }
@media (max-width: 600px) { .cap-row { grid-template-columns: 1fr; } }

/* Overdue, at the top of the side panel (8 October). */
.glance h3.overdue-head { color: var(--bad-ink); }
.glance .decide-overdue li { border-left: 3px solid var(--bad-ink); padding: 6px 10px; border-radius: 0 6px 6px 0;
  background: var(--bad-bg); }

/* Claira Health's wordmark on the sign-in page, as in the bar. */
.signin-box .brand { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
