/* Trust MyRivr palette, taken from the logo: black wordmark, sky blue, deep navy. */
:root {
  --ink: #111318;
  --ink-2: #3a3f4b;
  --muted: #5b6272;
  --line: #dfe4ec;
  --bg: #f4f7fb;
  --card: #ffffff;
  --sky: #12a8e8;
  --sky-soft: #e3f4fc;
  --navy: #0d1b4c;
  --navy-2: #1d2f73;
  --green: #138a55;
  --green-soft: #e2f5ec;
  --amber: #b56a00;
  --amber-soft: #fff1da;
  --red: #c2352b;
  --red-soft: #fde7e5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13, 27, 76, 0.06), 0 6px 20px rgba(13, 27, 76, 0.06);
  --head: 'Montserrat', system-ui, sans-serif;
  --body: 'Source Sans 3', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(17px, 1.3vw, 19px)/1.55 var(--body);
}
h1, h2, h3 { font-family: var(--head); line-height: 1.25; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(24px, 2.3vw, 32px); font-weight: 600; }
h2 { font-size: clamp(18px, 1.5vw, 21px); font-weight: 600; }
h3 { font-size: 17px; font-weight: 600; color: var(--navy-2); }
p { margin: 0 0 0.8em; }
strong, b, th { font-weight: 600; }
a { color: var(--navy-2); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.muted { color: var(--muted); }
.lead { color: var(--ink-2); max-width: 70ch; }
.eyebrow { font: 600 13px/1.3 var(--head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky); margin-bottom: 6px; }
.label { font-size: 16px; color: var(--muted); font-family: var(--body); font-weight: 500; }
.source { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--muted); background: var(--bg); border-radius: 6px; padding: 2px 8px; }
.empty { color: var(--muted); padding: 16px 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--navy); }
.btn.ghost:hover { border-color: var(--sky); }
.btn.sm { min-height: 38px; padding: 0 12px; font-size: 15px; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; font-size: 18px; }
.icon-btn:hover { background: var(--bg); }

/* badges, bars */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; background: #eef1f6; color: var(--ink-2); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.blue { background: var(--sky-soft); color: #06739f; }
.badge.navy { background: #e5e9f6; color: var(--navy-2); }
.bar { height: 8px; background: #e9edf3; border-radius: 99px; overflow: hidden; margin-top: 10px; }
.bar span { display: block; height: 100%; transform-origin: left center; background: var(--sky); border-radius: 99px; }
.bar.green span { background: var(--green); }
.bar.amber span { background: #e59a1c; }
.bar.red span { background: var(--red); }
.bar.navy span { background: var(--navy-2); }
.dot, .status-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #b8c0cc; }
.dot.red, .status-dot.red { background: var(--red); }
.dot.amber { background: #e59a1c; }
.dot.blue, .status-dot.blue { background: var(--sky); }
.status-dot.green { background: var(--green); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--sky); color: #fff; display: inline-grid; place-items: center; font: 600 14px var(--head); flex: none; }
.avatar.lg { width: 52px; height: 52px; font-size: 17px; background: var(--navy); }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.login-panel { padding: clamp(24px, 5vw, 72px); max-width: 720px; width: 100%; margin: 0 auto; }
.login-logo { width: min(340px, 80%); margin-bottom: 28px; }
.personas { display: grid; gap: 12px; margin: 12px 0 24px; }
.persona {
  display: flex; align-items: center; gap: 16px; text-align: left; width: 100%;
  padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; box-shadow: var(--shadow); transition: border-color 0.15s, transform 0.15s;
}
.persona:hover { border-color: var(--sky); transform: translateY(-1px); }
.persona-text { display: grid; gap: 2px; flex: 1; font-size: 16px; }
.persona-text strong { font: 600 18px var(--head); }
.persona .go { font-size: 22px; color: var(--sky); }
.email-login summary { cursor: pointer; color: var(--navy-2); font-weight: 500; padding: 8px 0; }
.login-side {
  background: radial-gradient(circle at 80% 10%, #1d3c9a 0, transparent 50%), var(--navy);
  color: #fff; padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center;
}
.login-side .eyebrow { color: #7fd3f7; }
.login-side blockquote { font: 500 clamp(21px, 2vw, 28px)/1.45 var(--head); margin: 16px 0; }
.muted-light { color: rgba(255, 255, 255, 0.85); }

/* shell */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
  padding: 10px clamp(16px, 3vw, 32px); background: #fff; border-bottom: 1px solid var(--line);
}
.brand img { height: 40px; display: block; }
.crumb { color: var(--muted); text-decoration: none; font-weight: 500; }
.crumb.current { color: var(--ink); }
.crumb-sep { color: var(--line); }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.who { display: flex; align-items: center; gap: 10px; }
.who-text { display: grid; line-height: 1.25; font-size: 15px; }
.who-text span { color: var(--muted); font-size: 14px; }
.layout { display: block; }
.layout.with-nav { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidenav { position: sticky; top: 61px; align-self: start; height: calc(100vh - 61px); overflow: auto; padding: 20px 14px; border-right: 1px solid var(--line); background: #fff; }
.client-name { font: 600 15px/1.35 var(--head); color: var(--navy); padding: 4px 12px 14px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.nav-item:hover { background: var(--bg); }
.nav-item.active { background: var(--sky-soft); color: var(--navy); }
.nav-icon { width: 22px; text-align: center; color: var(--sky); }
.content { padding: clamp(20px, 3vw, 40px); max-width: 1280px; width: 100%; margin: 0 auto; min-width: 0; }
.bottombar, .drawer { display: none; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head > div:first-child { min-width: 0; flex: 1 1 420px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.back { display: inline-block; margin-bottom: 12px; text-decoration: none; font-weight: 500; }
.section-title { margin: 28px 0 14px; }

/* cards & grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2vw, 24px); box-shadow: var(--shadow); min-width: 0; }
.content > * + .card, .content > * + .grid, .content > * + section { margin-top: 20px; }
.card.flush { padding: 6px clamp(8px, 1.5vw, 16px); }
.card-head { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.card-head .badge { margin-right: auto; }
.grid { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.kpis { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.numbers { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.split { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); align-items: start; }
.kpi, .number { display: grid; gap: 4px; align-content: start; }
.kpi strong, .number strong { font: 600 clamp(22px, 2vw, 28px)/1.2 var(--head); color: var(--navy); }
.number strong { font-size: clamp(19px, 1.6vw, 22px); }
.kpi-label { font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0 0; }
.mini-stats dt { font-size: 14px; color: var(--muted); }
.mini-stats dd { margin: 0; font: 600 18px var(--head); color: var(--navy); }
.client-card, .contract-card { text-decoration: none; color: inherit; display: block; transition: border-color 0.15s; }
.client-card:hover, .contract-card:hover { border-color: var(--sky); }
.client-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.client-top h2 { margin: 0; }
.tile { width: 52px; height: 52px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; font: 600 18px var(--head); flex: none; }
.client-foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; font-size: 16px; }
.flag-note { margin: 12px 0 0; color: var(--amber); font-weight: 500; font-size: 16px; }
.link { font-weight: 500; text-decoration: none; }

/* journey */
.journey { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.journey a { display: grid; gap: 2px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; height: 100%; position: relative; }
.journey a:hover { border-color: var(--sky); }
.journey .step { width: 28px; height: 28px; border-radius: 50%; background: var(--sky); color: #fff; display: grid; place-items: center; font: 600 14px var(--head); margin-bottom: 6px; }
.journey strong { font-family: var(--head); font-weight: 600; }
.journey .muted { font-size: 15px; }

/* tasks */
.task-list { list-style: none; margin: 0; padding: 0; }
.task-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 8px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.task-row:last-child { border-bottom: 0; }
.task-row:hover { background: var(--bg); }
.task-main { display: grid; gap: 2px; flex: 1 1 260px; min-width: 0; }
.task-main strong { font-weight: 600; }
.task-main .muted { font-size: 15px; }
.task-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.attention { list-style: none; padding: 0; margin: 0; }
.attention li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.attention li:last-child { border-bottom: 0; }
.toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.segmented { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.segmented a { padding: 8px 14px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-weight: 500; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.segmented a span { font-size: 14px; color: var(--muted); }
.segmented a.active { background: var(--navy); color: #fff; }
.segmented a.active span { color: #cfe9f8; }
.select-inline { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.select-inline select { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; }

/* contracts */
.callout { background: var(--amber-soft); border-color: #f3d39e; }
.callout h2 { color: var(--amber); }
.callout ul { margin: 0; padding-left: 20px; }
.callout li { margin-bottom: 6px; }
.ticks { list-style: none; padding: 0; margin: 0 0 8px; }
.ticks li { padding-left: 26px; position: relative; margin-bottom: 6px; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--sky); font-weight: 600; }
.two-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.table { display: grid; }
.trow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.trow > div:first-child { display: grid; gap: 2px; }
.trow .muted { font-size: 15px; }
.register .trow { grid-template-columns: minmax(0, 2.4fr) repeat(3, minmax(0, 0.8fr)) minmax(0, 1.3fr); cursor: pointer; }
.register .trow:not(.thead):hover { background: var(--bg); }
.register .trow > div:last-child { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.thead { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); cursor: default !important; }

/* vision & strategy */
.endorse { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.vision-card { background: var(--navy); color: #fff; border: 0; }
.vision-text { font: 500 clamp(20px, 1.9vw, 26px)/1.5 var(--head); margin: 0; }
.vision-card .source { background: rgba(255, 255, 255, 0.12); color: #e6f4fb; }
.budget-line span { display: block; }
.area h2 { display: flex; gap: 10px; align-items: center; }
.area-n { font-weight: 600; width: 30px; height: 30px; border-radius: 8px; background: var(--sky-soft); color: var(--navy); display: grid; place-items: center; font-size: 15px; flex: none; }

/* quarters */
.quarters { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); align-items: start; }
.quarter.current { border-color: var(--sky); box-shadow: 0 0 0 2px var(--sky-soft), var(--shadow); }
.focus { font-size: 18px; }
.q-progress { margin: 12px 0; font-size: 16px; color: var(--muted); }
details summary { cursor: pointer; font-weight: 600; color: var(--navy-2); padding: 8px 0; min-height: 44px; display: flex; align-items: center; }

/* impact */
.meter { margin: 14px 0; display: grid; }
.meter span { font-size: 15px; color: var(--muted); }
.meter strong { font-family: var(--head); font-weight: 600; color: var(--navy); }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { display: grid; gap: 4px; padding: 14px 6px; border-bottom: 1px solid var(--line); cursor: pointer; justify-items: start; border-radius: 8px; }
.plain li:hover { background: var(--bg); }
.plain li:last-child { border-bottom: 0; }

/* modal */
.modal-wrap { position: fixed; inset: 0; background: rgba(13, 27, 76, 0.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: 18px; width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); }
.modal.wide { width: min(820px, 100%); }
.modal form { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.modal header, .modal footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; }
.modal header { border-bottom: 1px solid var(--line); }
.modal header h2 { margin: 0; }
.modal footer { border-top: 1px solid var(--line); justify-content: flex-end; }
.modal-body { padding: 20px 22px; overflow: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid.one { grid-template-columns: 1fr; max-width: 420px; }
.field { display: grid; gap: 6px; font-weight: 500; font-size: 16px; }
.field.wide { grid-column: 1 / -1; }
.field small { font-weight: 400; color: var(--muted); font-size: 14px; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; border: 1px solid #c9d1dd; border-radius: 10px; padding: 10px 12px; background: #fff; font-weight: 400; }
.field textarea { resize: vertical; }
.drop { display: grid; place-items: center; gap: 6px; padding: 28px; border: 2px dashed #b9c6d8; border-radius: 14px; cursor: pointer; text-align: center; margin: 12px 0; }
.drop input { max-width: 100%; }
.drop span { font-weight: 600; color: var(--navy); }
.reading { font-weight: 500; color: var(--navy-2); }
.mini-list { margin-bottom: 14px; }
.mini-list ul { margin: 4px 0 0; padding-left: 20px; }
.modal .callout { border: 1px solid #f3d39e; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.task-why { background: var(--bg); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.task-why blockquote { margin: 8px 0 0; padding-left: 14px; border-left: 3px solid var(--sky); color: var(--ink-2); }
.readonly-list { display: grid; gap: 10px; margin: 0; }
.readonly-list dt { font-size: 14px; color: var(--muted); font-weight: 600; }
.readonly-list dd { margin: 0; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 12px; z-index: 60; font-weight: 500; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }

/* report */
.report-actions { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 16px; flex-wrap: wrap; }
.report { max-width: 960px; margin: 0 auto; }
.report-head { display: flex; gap: 24px; align-items: flex-start; border-bottom: 3px solid var(--sky); padding-bottom: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.report-head img { width: 220px; }
.report-head > div { flex: 1 1 360px; }
.report h2 { margin-top: 28px; color: var(--navy); }
.rtable { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.rtable th, .rtable td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--line); }
.rtable th { background: var(--bg); font-weight: 600; }
.ack { margin-top: 32px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }

/* tablet */
@media (max-width: 1100px) {
  .journey { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .who-text { display: none; }
}

/* mobile */
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-side { padding: 28px 16px; }
  .login-side blockquote { font-size: 19px; margin: 8px 0; }
  .login-panel { padding: 24px 16px 40px; }
  .layout.with-nav { grid-template-columns: 1fr; }
  .sidenav { display: none; }
  .content { padding: 20px 16px 110px; }
  .topbar { padding: 10px 16px; gap: 10px; }
  .brand img { height: 24px; }
  .crumb, .crumb-sep { display: none; }
  .crumb.current { display: inline; font-size: 15px; }
  .bottombar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottombar a, .bottombar button { display: grid; justify-items: center; gap: 2px; min-height: 52px; padding: 4px 0; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; background: none; border: 0; }
  .bottombar span { font-size: 19px; color: var(--sky); }
  .bottombar .active { color: var(--navy); }
  .drawer:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(13, 27, 76, 0.45); }
  .drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(320px, 86vw); background: #fff; padding: 12px 12px 24px; overflow: auto; }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px 12px; }
  .journey { grid-template-columns: 1fr 1fr; }
  .journey li:last-child { grid-column: 1 / -1; }
  .task-row { flex-wrap: wrap; align-items: flex-start; }
  .task-row .status-dot { margin-top: 8px; }
  .task-meta { width: 100%; justify-content: flex-start; padding-left: 24px; }
  .trow, .register .trow { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .trow > div:first-child { grid-column: 1 / -1; }
  .register .thead { display: none; }
  .register .trow > div[data-label]::before { content: attr(data-label) ': '; color: var(--muted); font-size: 14px; }
  .register .trow > div:last-child { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .modal-wrap { padding: 0; place-items: end stretch; }
  .modal, .modal.wide { width: 100%; border-radius: 18px 18px 0 0; max-height: 92vh; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; }
  .toolbar { align-items: stretch; }
  .select-inline { width: 100%; }
  .select-inline select { flex: 1; }
  .report-head img { width: 160px; }
}

@media print {
  body { background: #fff; font-size: 12pt; }
  .topbar, .sidenav, .bottombar, .drawer, .no-print { display: none !important; }
  .layout.with-nav { display: block; }
  .content { padding: 0; max-width: none; }
  .report { border: 0; box-shadow: none; padding: 0; }
  .rtable { display: table; }
  .report h2 { break-after: avoid; }
  tr { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Compact lists and folded sections, so long pages stay short */
.task-list.compact .task-row { padding: 9px 6px; gap: 6px 12px; }
.task-list.compact .task-main strong { font-size: 16.5px; line-height: 1.35; }
.task-list.compact .task-main .muted { font-size: 14px; line-height: 1.35; }
.task-list.compact .badge { font-size: 13px; padding: 2px 8px; }
.ticks.tight li, ol.tight li { margin-bottom: 2px; line-height: 1.45; font-size: 16.5px; }
ol.tight { padding-left: 22px; margin: 0 0 8px; }
.fold { border-top: 1px solid var(--line); }
.fold:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.fold > summary { list-style: none; justify-content: space-between; font-family: var(--head); font-weight: 500; font-size: 16px; color: var(--navy-2); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: '+'; font-size: 20px; color: var(--sky); margin-left: auto; padding-left: 12px; }
.fold[open] > summary::after { content: '−'; }
.fold > summary .count { margin-left: 8px; font: 500 13px var(--body); color: var(--muted); background: var(--bg); border-radius: 99px; padding: 1px 8px; }
.fold[open] { padding-bottom: 8px; }
.quarter .focus { font-size: 17px; margin-bottom: 10px; }
.quarter h3 { margin-bottom: 4px; }
.q-progress { margin: 8px 0 4px; }

/* An opened quarter scrolls inside its card rather than stretching it */
.quarter .fold .task-list { max-height: 340px; overflow-y: auto; overscroll-behavior: contain; }

/* Client switcher and way back to the client list */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.switcher select {
  min-height: 42px; max-width: 46vw; padding: 0 36px 0 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2312a8e8' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none; font-weight: 500; color: var(--navy); cursor: pointer; text-overflow: ellipsis;
}
.switcher select:hover { border-color: var(--sky); }
.nav-back { display: flex; align-items: center; min-height: 44px; padding: 0 12px; margin-bottom: 6px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 500; }
.nav-back:hover { background: var(--bg); color: var(--navy); }

/* Achievement report */
.achievement { display: grid; gap: 20px; }
.achievement > * { margin: 0 !important; }
.achievement .section-title { margin: 12px 0 0 !important; }
.ach-head { margin-bottom: 0; border-bottom: 3px solid var(--sky); }
.ach-head h1 { margin-bottom: 6px; }
.progress-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 4px 28px; align-items: end; }
.progress-compare .verdict { grid-column: 1 / -1; }
.progress-compare .meter { margin: 6px 0 0; }
.areas-grid { align-items: start; }
.area-report .card-head h3 { margin: 0; font-size: 18px; }
.area-report .kpi-label { display: block; margin-bottom: 6px; font-size: 13px; }
.requirement { font-size: 15.5px; color: var(--ink-2); background: var(--bg); border-radius: 10px; padding: 10px 12px; margin: 6px 0 14px; line-height: 1.45; }
.achieved { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 10px; }
.achieved li { display: flex; gap: 10px; align-items: flex-start; }
.achieved .status-dot { margin-top: 8px; }
.achieved div { display: grid; gap: 2px; }
.achieved strong { font-size: 16px; }
.achieved .muted { font-size: 14.5px; line-height: 1.4; }
.next { margin: 10px 0 0; font-size: 15px; color: var(--navy-2); }
.card-link { margin: 12px 0 0; font-size: 15px; }
@media print {
  .achievement .card { box-shadow: none; break-inside: avoid; }
  .achievement .bar span { transform: none !important; }
}
@media (max-width: 860px) {
  .achievement .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .achievement .kpi strong { font-size: 21px; }
  .achievement .kpi .kpi-label { font-size: 12px; }
}

/* expenses */
.card > .verdict { margin: 8px 0 4px; }
.register .trow .bar { margin-top: 6px; }

/* board */
.total-row { background: var(--bg); font-weight: 600; cursor: default !important; }
.attendees { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.attendees legend { font-weight: 500; padding: 0 4px; }
.tick { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; }
.tick input { width: 20px; height: 20px; }
