/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer utilities;
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
:root {
  --ground: #f6f9f7;
  --surface: #ffffff;
  --raised: #f0f4f2;
  --border: #e2e8e4;
  --rule: #edf1ee;
  --control: #cdd5d0;
  --text: #14201b;
  --muted: #566159;
  --faint: #66726b;
  --accent: #1b7f5c;
  --accent-hover: #166a4c;
  --accent-soft: #e9f5ee;
  --accent-track: #cfe8db;
  --accent-ink: #0f4d36;
  --accent-line: #7fc3a3;
  --negative: #c4242a;
  --neg-bg: #ffedea;
  --neg-ink: #831c1e;
  --neg-line: #e6a9ab;
  --warn-bg: #fffbeb;
  --warn-ink: #92400e;
  --warn-line: #e5c372;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-card: 8px;
  --r-ctl: 6px;
  --r-chip: 4px;
  --pad: 16px;
  --gap: 16px;
  --ctl-h: 44px;
  --nav-h: 56px;
  --bar-h: 48px;
  --rail-w: 232px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 120ms;
  --base: 200ms;
}
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  accent-color: var(--accent);
  scrollbar-color: var(--control) transparent;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 14px/20px var(--font);
  font-variant-numeric: tabular-nums;
  caret-color: var(--accent);
}
::selection {
  background: var(--accent-track);
  color: var(--accent-ink);
}
h1, h2, h3, p, ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
h1 {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h2 {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
h3 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input, textarea, select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-ctl);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
  line-height: 16px;
}
.fill {
  flex: 1 1 0;
  min-width: 0;
}
.trunc {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.nowrap {
  white-space: nowrap;
}
.num {
  font-variant-numeric: tabular-nums;
}
.r {
  text-align: right;
}
svg.ic {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--ctl-h);
  padding: 0 16px;
  border: 1px solid var(--control);
  border-radius: var(--r-ctl);
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:hover {
  background: var(--raised);
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn-danger {
  color: var(--neg-ink);
  border-color: var(--neg-line);
}
.btn-danger:hover {
  background: var(--neg-bg);
}
.btn-danger-solid {
  background: var(--negative);
  border-color: var(--negative);
  color: #fff;
}
.btn-danger-solid:hover {
  background: #a31d22;
  border-color: #a31d22;
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-danger-solid:disabled:hover {
  background: var(--negative);
  border-color: var(--negative);
}
.btn-ghost {
  border-color: transparent;
  background: transparent;
}
.btn-sm {
  height: 32px;
  padding: 0 12px;
}
.btn-block {
  width: 100%;
}
.ib {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-ctl);
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  flex: none;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.ib:hover {
  background: var(--raised);
  color: var(--text);
}
.ib-danger:hover {
  background: var(--neg-bg);
  color: var(--neg-ink);
}
.app {
  min-height: 100dvh;
}
.rail {
  display: none;
}
.mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.mark svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--bar-h);
  padding: 0 4px 0 16px;
  background: var(--ground);
  box-shadow: 0 1px 0 var(--border);
}
.topbar form, .rail form {
  margin: 0;
}
.topbar-end {
  display: flex;
  align-items: center;
  gap: 4px;
}
.topbar-end .av {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.main {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: 20px var(--pad) calc(var(--nav-h) + var(--safe-b) + 32px);
  min-width: 0;
}
.main.focus {
  padding-top: 12px;
  padding-bottom: 0;
}
.app.focus .topbar, .app.focus .bottomnav {
  display: none;
}
.bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: var(--surface);
  box-shadow: 0 -1px 0 var(--border);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.nav-item svg {
  width: 20px;
  height: 20px;
}
.nav-item[aria-current="page"] {
  color: var(--accent-ink);
  font-weight: 600;
}
.nav-item[aria-current="page"] svg {
  color: var(--accent);
}
.profile {
  display: grid;
  gap: 16px;
  max-width: 760px;
}
.profile-h {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}
.acct {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 24px;
  margin: 0;
}
.acct dt {
  color: var(--muted);
}
.acct dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.form-acts {
  margin-top: 20px;
}
.form-acts .btn {
  width: 100%;
}
a.user {
  color: inherit;
  text-decoration: none;
  border-radius: var(--r-ctl);
}
a.user:hover {
  background: var(--raised);
}
a.user[aria-current="page"] {
  background: var(--accent-soft);
}
.title-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.title-row .sub {
  margin-top: 4px;
  color: var(--muted);
}
.facts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  color: var(--muted);
}
.facts li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.facts .ic {
  margin-top: 2px;
}
.title-a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  margin: -8px 0 4px -4px;
  padding: 0 8px 0 4px;
  border-radius: var(--r-ctl);
  color: var(--muted);
  font-weight: 500;
}
.crumb:hover {
  color: var(--text);
  background: var(--raised);
}
.sp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.sp-top .crumb {
  margin-bottom: 0;
}
.btn-quiet {
  color: var(--muted);
}
.btn-quiet:hover {
  background: var(--neg-bg);
  color: var(--neg-ink);
}
.sp-head {
  margin: 8px 0 16px;
}
.sp-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.sp-head .sub {
  margin-top: 4px;
  color: var(--muted);
}
.tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.tools.filters {
  justify-content: flex-start;
  align-items: flex-end;
  gap: 12px 16px;
}
.tools.filters .btn {
  margin-left: auto;
}
.rep-group {
  width: 220px;
  max-width: 100%;
  margin: 0;
}
.mb {
  display: inline-flex;
  align-items: center;
  height: var(--ctl-h);
  border: 1px solid var(--control);
  border-radius: var(--r-ctl);
  background: var(--surface);
}
.mb .ib {
  width: calc(var(--ctl-h) - 2px);
  height: calc(var(--ctl-h) - 2px);
}
.mb .label {
  min-width: 148px;
  padding: 0 4px;
  text-align: center;
  font-weight: 500;
}
.tabs {
  display: flex;
  gap: 24px;
  margin: 0 calc(var(--pad) * -1) 20px;
  padding: 0 var(--pad);
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: inset 0 -1px 0 var(--border);
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  flex: none;
  padding: 11px 0 10px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--fast) var(--ease);
}
.tab:hover {
  color: var(--text);
}
.tab[aria-selected="true"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  min-width: 0;
  overflow: hidden;
}
.panel + .panel {
  margin-top: var(--gap);
}
.panel-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 8px;
}
.panel-f {
  padding: 12px 20px 16px;
}
.panel-p {
  padding: 20px;
}
.list > * + * {
  border-top: 1px solid var(--rule);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 10px 20px;
  background: var(--surface);
  transition: background-color var(--fast) var(--ease);
}
a.row:hover, a.grow:hover {
  background: var(--ground);
}
.row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 4px;
}
.row-end {
  color: var(--faint);
  flex: none;
}
.who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.people .row {
  padding-inline: 0;
  min-height: 52px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  border-radius: var(--r-chip);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
  flex: none;
  background: var(--raised);
  color: #374151;
}
.chip .ic {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}
.chip.p, .chip.brand {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.chip.a {
  background: var(--neg-bg);
  color: var(--neg-ink);
}
.chip.e {
  background: var(--warn-bg);
  color: var(--warn-ink);
}
.av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.av.sm {
  width: 24px;
  height: 24px;
  font-size: 10px;
}
.t0 {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.t1 {
  background: #fdf0d5;
  color: #7a4a08;
}
.t2 {
  background: #e3eef5;
  color: #1e4b66;
}
.t3 {
  background: #f8e4e6;
  color: #7f1d2d;
}
.t4 {
  background: #ece9df;
  color: #4a4631;
}
.t5 {
  background: #dff1ef;
  color: #115e59;
}
.avs {
  display: flex;
  gap: 2px;
  flex: none;
  width: 102px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: var(--gap);
}
.kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--surface);
  min-width: 0;
}
.kpi.lead, .kpi:last-child:nth-child(even) {
  grid-column: 1 / -1;
}
.kpi-l {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.kpi-v {
  font-size: 24px;
  line-height: 30px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.kpi.lead .kpi-v {
  font-size: 32px;
  line-height: 38px;
}
.kpi-c {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.kpi.p .kpi-l {
  color: var(--accent-ink);
}
.kpi.a .kpi-l {
  color: var(--neg-ink);
}
.kpi.e .kpi-l {
  color: var(--warn-ink);
}
.home-grid {
  display: grid;
  gap: var(--gap);
  align-items: start;
}
.home-grid .panel + .panel {
  margin-top: 0;
}
.srow {
  gap: 12px;
}
.cal-wrap {
  padding-bottom: 12px;
}
.cal {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.cal th {
  padding: 8px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}
.cal td {
  height: 56px;
  padding: 4px 2px;
  border: 1px solid var(--rule);
  vertical-align: top;
  text-align: center;
}
.cal tr > :first-child {
  border-left: 0;
}
.cal tr > :last-child {
  border-right: 0;
}
.cal tbody tr:last-child td {
  border-bottom: 0;
}
.cal-d.out {
  background: var(--ground);
}
.cal-n {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
}
.cal-d.out .cal-n {
  color: var(--faint);
  font-weight: 500;
}
.cal-d.today .cal-n {
  background: var(--accent);
  color: #fff;
}
.cal-evs {
  display: none;
}
.cal-d {
  position: relative;
}
.cal-d.has {
  transition: background-color var(--fast) var(--ease);
}
.cal-d.has:focus-within {
  background: var(--raised);
}
.cal-d.has:has(.cal-pop:popover-open) {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.cal-d.has:has(.cal-pop:popover-open) .cal-n {
  font-weight: 700;
}
@media (hover: hover) {
  .cal-d.has:hover {
    background: var(--raised);
  }
}
.cal-dots {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 0 3px 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.cal-dots:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.cal-pop {
  position: fixed;
  inset: auto;
  margin: 0;
  text-align: left;
  width: min(288px, calc(100vw - 16px));
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.16);
}
.cal-pop-h {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}
.cal-pop-l {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cal-pop-ev {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--raised);
}
.cal-pop-ev.s-done {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.cal-pop-ev.s-open {
  background: var(--warn-bg);
  color: var(--warn-ink);
  box-shadow: inset 0 0 0 1px var(--warn-line);
}
.cal-pop-t {
  display: grid;
  min-width: 0;
}
.cal-pop-g, .cal-pop-s {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-pop-g {
  font-weight: 600;
}
.cal-pop-s {
  font-size: 12px;
  line-height: 16px;
  opacity: 0.85;
}
.cal-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}
.cal-dot.s-done {
  background: var(--accent);
}
.cal-dot.s-open {
  background: #e3b23c;
}
.cal-dot.s-none {
  background: var(--faint);
}
.cal-key {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 12px 20px 0;
  list-style: none;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.cal-key li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mtg-title {
  min-width: 0;
}
.mtg-title h2 {
  overflow-wrap: anywhere;
}
.mtg-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-bottom: 16px;
}
.mtg-sum {
  display: grid;
  gap: 8px;
}
.mtg-sum .pc {
  margin: 0;
  justify-content: flex-end;
}
.mtg-lists {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}
.mtg-sec h3 {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.mtg-sec + .mtg-sec {
  margin-top: 20px;
}
.mtg-lists .mtg-sec + .mtg-sec {
  margin-top: 0;
}
.mtg-people {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mtg-p {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 16px;
  border-top: 1px solid var(--rule);
}
.mtg-p:first-child {
  border-top: 0;
}
.mtg-n {
  flex: 0 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.mtg-p .chip {
  flex: none;
}
.mtg-p .cm {
  flex: none;
  margin-left: auto;
}
.mtg-p .cm .ic {
  width: 18px;
  height: 18px;
}
.sdate {
  width: 44px;
  padding: 5px 0;
  flex: none;
  text-align: center;
  border-radius: var(--r-ctl);
  background: var(--raised);
  line-height: 1.1;
}
.sdate b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.sdate span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  text-transform: lowercase;
}
.sdate.today {
  background: var(--accent);
  color: #fff;
}
.sdate.today span {
  color: rgb(255 255 255 / 0.85);
}
.srow-t {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.srow-sub {
  display: flex;
  min-width: 0;
  margin-top: 2px;
}
.srow-sub > * + *::before {
  content: "·";
  margin: 0 6px;
}
.srow-sub .trunc {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
}
.srow-end {
  flex: none;
}
.grow {
  display: block;
  padding: 12px 20px;
  transition: background-color var(--fast) var(--ease);
}
.grow-t {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-weight: 500;
}
.grow .bar {
  height: 3px;
  margin: 8px 0 6px;
}
.bar {
  height: 6px;
  border-radius: 999px;
  background: var(--accent-track);
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width var(--base) var(--ease);
}
.thead.grid-groups, .thead.grid-members {
  display: none;
}
.grid-groups, .grid-members {
  display: flex;
}
.grid-groups .cm-members, .grid-groups .rate, .grid-groups .rate .bar, .grid-groups .avs, .grid-members .cm-data, .grid-members .attn-d {
  display: none;
}
.rate {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.rate .bar {
  flex: 1;
  min-width: 96px;
  height: 4px;
}
.rate .num {
  min-width: 36px;
  text-align: right;
  font-weight: 500;
}
.attn-m {
  margin-top: 0;
}
.row-acts {
  display: flex;
  flex: none;
  margin-right: -8px;
}
.row-acts .ib {
  width: 40px;
  height: 40px;
}
.prog {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 0 calc(var(--pad) * -1);
  padding: 10px var(--pad);
  background: var(--ground);
  box-shadow: 0 1px 0 var(--border);
}
.prog-t {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-weight: 600;
}
.prog-t > span:first-child {
  white-space: nowrap;
}
.pc {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 20px;
}
.pc li {
  gap: 4px;
  font-variant-numeric: tabular-nums;
}
.pc .w {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.pc-words {
  flex-wrap: wrap;
  gap: 4px 16px;
}
.pc-words .w {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}
.rp-bar {
  margin-bottom: 8px;
}
.rp-bar-t {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 8px;
}
.rp-bar h3 {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}
.rp-bar-t .pc {
  margin-left: auto;
  justify-content: flex-end;
}
.marks {
  display: block;
}
.marks > .tw + .tw {
  border-top: 1px solid var(--rule);
}
.mk {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 16px;
  margin: 0;
}
.mk-who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mk-who .chip {
  margin-left: -4px;
}
.mk-name {
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.mk-btns {
  display: flex;
  gap: 6px;
  flex: none;
}
.st {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--control);
  border-radius: var(--r-ctl);
  background: var(--surface);
  color: var(--faint);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.st:hover {
  background: var(--raised);
  color: var(--text);
}
.st:active {
  transform: scale(0.96);
}
.tw[data-st="present"] .st-p {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.tw[data-st="absent"] .st-a {
  background: var(--neg-bg);
  border-color: var(--neg-line);
  color: var(--neg-ink);
}
.tw[data-st="excused"] .st-e {
  background: var(--warn-bg);
  border-color: var(--warn-line);
  color: var(--warn-ink);
}
.htmx-request .st {
  opacity: 0.7;
}
.notes {
  margin-top: var(--gap);
}
.tip {
  margin-top: 8px;
}
.note-text {
  margin-top: 8px;
  white-space: pre-wrap;
}
.marks .cm {
  margin-right: 6px;
}
.marks .cm .ic {
  width: 20px;
  height: 20px;
}
.actionbar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
  margin: 24px calc(var(--pad) * -1) 0;
  padding: 12px var(--pad) calc(12px + var(--safe-b));
  background: var(--surface);
  box-shadow: 0 -1px 0 var(--border);
}
.actionbar form {
  margin: 0;
}
.actionbar .btn {
  white-space: normal;
  text-align: center;
  line-height: 16px;
  padding: 0 10px;
}
.actionbar .btn .ic {
  display: none;
}
.fgap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.typed {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.off-groups {
  margin-top: 56px;
}
.off-h {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}
.row.off {
  align-items: flex-start;
  padding-block: 12px;
}
.off-reason {
  margin-top: 4px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
label.lbl {
  display: block;
  margin: 0 0 6px;
  font-weight: 500;
}
.req {
  color: var(--negative);
}
.input {
  width: 100%;
  height: var(--ctl-h);
  padding: 0 12px;
  border: 1px solid var(--control);
  border-radius: var(--r-ctl);
  background: var(--surface);
  font-size: 16px;
  line-height: 20px;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
select.input {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23566159' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
textarea.input {
  height: auto;
  min-height: 96px;
  padding: 10px 12px;
  resize: vertical;
}
.input::placeholder {
  color: var(--faint);
}
.input:hover {
  border-color: #aeb9b3;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(27 127 92 / 0.18);
}
.input[aria-invalid="true"] {
  border-color: var(--negative);
}
.err {
  display: none;
  margin-top: 6px;
  color: var(--neg-ink);
  font-size: 13px;
  line-height: 18px;
}
.err.on {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.err .ic {
  margin-top: 1px;
}
.fgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.baptism {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.baptism:not(:has(input[name=is_baptized]:checked)) .bdate {
  display: none;
}
.chk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 500;
}
.chk input {
  width: 18px;
  height: 18px;
}
.twrap {
  overflow-x: auto;
}
table.grid {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 480px;
}
table.grid th, table.grid td {
  padding: 10px 12px;
  border-top: 1px solid var(--rule);
  text-align: center;
  white-space: nowrap;
}
table.grid thead th {
  border-top: 0;
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  box-shadow: inset 0 -1px 0 var(--border);
}
table.grid th:first-child, table.grid td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 1;
  padding-left: 20px;
}
table.grid td:last-child, table.grid th:last-child {
  padding-right: 20px;
}
table.grid th[scope=row] {
  font-weight: 600;
}
.gname {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
}
.cm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.cm .ic {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}
.cm.present {
  color: var(--accent);
}
.cm.absent {
  color: var(--negative);
}
.cm.excused {
  color: var(--warn-ink);
}
.cm.none {
  color: var(--faint);
}
.abar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--rule);
  gap: 2px;
}
.abar span {
  display: block;
  height: 100%;
}
.abar .b-present {
  background: var(--accent);
}
.abar .b-absent {
  background: #e5767a;
}
.abar .b-excused {
  background: #e3b23c;
}
h3 + .abar {
  margin-top: 12px;
}
.print-only {
  display: none !important;
}
.rp-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.rp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 12px;
}
.rp-date {
  text-align: right;
}
.rp-title {
  font-size: 24px;
  line-height: 30px;
}
.rp-sub {
  margin-top: 2px;
  font-size: 18px;
  line-height: 24px;
}
.rp-facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 16px;
  margin: 32px 0 0;
}
.rp-facts dt {
  font-weight: 700;
}
.rp-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.rp-h {
  margin: 28px 0 12px;
}
.rp-s {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  break-inside: avoid;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  margin-bottom: 20px;
}
.stat {
  display: flex;
  align-items: baseline;
  gap: 0 8px;
  white-space: nowrap;
}
.stat b {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
}
.panel-p .twrap {
  margin: 0 -20px;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 40px 24px;
  text-align: center;
}
.empty .ic-big {
  color: var(--faint);
  margin-bottom: 8px;
}
.empty .ic-big svg {
  width: 20px;
  height: 20px;
}
.empty p {
  max-width: 44ch;
}
.empty .btn {
  margin-top: 12px;
}
.auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.auth-box {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.auth-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.auth-card h1 {
  font-size: 22px;
}
.auth-card .sub {
  margin: 4px 0 20px;
  color: var(--muted);
}
.auth-alt {
  margin-top: 16px;
}
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}
.auth-or::before, .auth-or::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}
.auth-card .btn {
  width: 100%;
  margin-top: 4px;
}
dialog {
  width: 100%;
  max-width: 100%;
  max-height: 92dvh;
  margin: auto 0 0;
  padding: 0;
  border: 0;
  border-radius: 12px 12px 0 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 32px rgb(20 32 27 / 0.24);
  overflow: hidden;
}
dialog[open] {
  display: flex;
  flex-direction: column;
  animation: sheet var(--base) var(--ease);
}
dialog > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
}
dialog::backdrop {
  background: rgb(20 32 27 / 0.4);
}
.dlg-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 8px 0 20px;
  flex: none;
}
.dlg-b {
  padding: 12px 20px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dlg-f {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  padding: 12px 20px calc(16px + var(--safe-b));
  border-top: 1px solid var(--border);
  flex: none;
}
.dlg-f .btn {
  width: 100%;
}
@keyframes sheet {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  border-radius: var(--r-ctl);
  background: var(--text);
  color: #fff;
  box-shadow: 0 4px 16px rgb(20 32 27 / 0.24);
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity var(--base) var(--ease), transform var(--base) var(--ease);
}
.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast .ic {
  color: #7fd6ae;
  stroke-width: 2;
}
.app.focus ~ .toast {
  bottom: calc(88px + var(--safe-b));
}
@media (min-width: 640px) {
  :root {
    --pad: 24px;
    --gap: 24px;
    --ctl-h: 36px;
  }
  h1 {
    font-size: 24px;
    line-height: 30px;
  }
  .title-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .cal td {
    height: 112px;
    padding: 6px;
    text-align: left;
  }
  .cal-dots, .cal-pop {
    display: none;
  }
  .mtg-lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
  .mtg-p {
    padding-inline: 0;
  }
  .cal-evs {
    display: grid;
    gap: 4px;
    margin-top: 4px;
  }
  .cal-ev {
    display: grid;
    min-width: 0;
    padding: 4px 6px;
    border-radius: 6px;
    text-align: left;
  }
  .cal-ev.s-done {
    background: var(--accent-soft);
    color: var(--accent-ink);
  }
  .cal-ev.s-open {
    background: var(--warn-bg);
    color: var(--warn-ink);
    box-shadow: inset 0 0 0 1px var(--warn-line);
  }
  .cal-ev.s-none {
    background: var(--raised);
    color: var(--muted);
  }
  .cal-ev:hover {
    filter: brightness(0.96);
  }
  .cal-g, .cal-t {
    min-width: 0;
    overflow: hidden;
  }
  .cal-g {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    overflow-wrap: anywhere;
  }
  .cal-t {
    font-size: 11px;
    line-height: 14px;
    opacity: 0.85;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .kpi {
    padding: 16px 20px;
  }
  .kpi.lead, .kpi:last-child:nth-child(even) {
    grid-column: auto;
  }
  .kpi.lead .kpi-v {
    font-size: 32px;
  }
  .row {
    min-height: 56px;
  }
  .input {
    font-size: 14px;
  }
  .thead.grid-groups, .thead.grid-members {
    display: grid;
    align-items: center;
    padding: 10px 20px;
    font-size: 12px;
    line-height: 16px;
    color: var(--muted);
    box-shadow: inset 0 -1px 0 var(--border);
  }
  .grid-groups {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px 220px 16px;
    gap: 16px;
  }
  .grid-groups .cm-members, .grid-groups .rate .bar {
    display: block;
  }
  .grid-groups .rate, .grid-groups .row-end {
    display: flex;
  }
  .grid-groups .avs {
    display: flex;
  }
  .grid-members {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 128px 80px;
    gap: 16px;
  }
  .grid-members .cm-data {
    display: flex;
  }
  .grid-members .attn-d {
    display: block;
  }
  .grid-members .attn-m {
    display: none;
  }
  .row-acts .ib {
    width: 32px;
    height: 32px;
  }
  .pc {
    column-gap: 16px;
  }
  .pc .w {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
  .mk {
    padding: 8px 20px;
  }
  .mk-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .st {
    width: 40px;
    height: 40px;
  }
  .actionbar {
    display: flex;
    justify-content: flex-end;
  }
  .actionbar .btn {
    white-space: nowrap;
    padding: 0 16px;
  }
  .actionbar .btn .ic {
    display: block;
  }
  .btn-block {
    width: auto;
  }
  .actionbar .btn-block {
    width: auto;
  }
  dialog {
    width: min(480px, calc(100vw - 32px));
    margin: auto;
    border-radius: 12px;
  }
  dialog[open] {
    animation-name: pop;
  }
  dialog.dlg-wide {
    width: min(640px, calc(100vw - 32px));
  }
  .fgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-acts {
    display: flex;
    justify-content: flex-end;
  }
  .form-acts .btn {
    width: auto;
  }
  .fgrid .full {
    grid-column: 1 / -1;
  }
  .fgrid .baptism {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
  }
  .fgrid .baptism .chk {
    min-height: var(--ctl-h);
  }
  .dlg-f {
    flex-direction: row;
    justify-content: flex-end;
  }
  .dlg-f .btn {
    width: auto;
  }
  .toast {
    bottom: 24px;
    left: auto;
    right: 24px;
    transform: translateY(8px);
  }
  .toast.on {
    transform: none;
  }
  .app.focus ~ .toast {
    bottom: 88px;
  }
  .tools.filters .rep-group {
    width: 240px;
  }
}
@media (min-width: 960px) {
  :root {
    --pad: 32px;
  }
  .app {
    display: grid;
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
  }
  .rail {
    position: sticky;
    top: 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    box-shadow: 1px 0 0 var(--border);
    overflow-y: auto;
  }
  .rail .brand {
    padding: 4px 8px 20px;
  }
  .rail-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .rail .nav-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    text-align: left;
  }
  .rail .nav-item svg {
    width: 16px;
    height: 16px;
  }
  .rail .nav-item:hover {
    background: var(--raised);
    color: var(--text);
  }
  .rail .nav-item[aria-current="page"] {
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-weight: 500;
  }
  .rail-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 12px;
  }
  .user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 4px;
    min-width: 0;
  }
  .user-t {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 16px;
  }
  .user-t b {
    font-weight: 500;
    font-size: 13px;
  }
  .topbar, .bottomnav {
    display: none;
  }
  .main, .main.focus {
    padding: 32px var(--pad) 64px;
  }
  .grid-groups {
    grid-template-columns: minmax(0, 1fr) 110px 260px 16px;
  }
  .grid-members {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 140px 80px;
  }
  .prog {
    margin: 0 0 16px;
    padding: 10px 0;
    box-shadow: none;
  }
  .sheet {
    max-width: 760px;
    margin-inline: auto;
  }
  .actionbar {
    margin: 24px 0 0;
    padding-inline: 0;
    background: var(--ground);
  }
  .toast, .app.focus ~ .toast {
    bottom: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .st:active, .btn:active {
    transform: none;
  }
}
@media print {
  @page {
    margin: 16mm;
  }
  body {
    background: #fff;
    font-size: 12pt;
  }
  .rail, .topbar, .bottomnav, .no-print, .toast, dialog {
    display: none !important;
  }
  .print-only {
    display: flex !important;
  }
  .app {
    display: block;
  }
  .main {
    padding: 0;
    max-width: none;
  }
  .panel {
    border: 0;
    border-radius: 0;
  }
  .panel-p {
    padding: 0;
  }
  .twrap, .panel-p .twrap {
    overflow: visible;
    margin: 0;
  }
  table.grid {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
    font-size: 9pt;
  }
  table.grid th, table.grid td {
    padding: 6px 3px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  table.grid thead th {
    font-size: 8pt;
  }
  table.grid th:first-child, table.grid td:first-child {
    position: static;
    width: 30%;
    padding-left: 0;
  }
  table.grid th:last-child, table.grid td:last-child {
    width: 11%;
    padding-right: 0;
  }
  table.grid tr {
    break-inside: avoid;
  }
  table.grid thead {
    display: table-header-group;
  }
  .muted {
    color: #333;
  }
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
.grid-members .row-meta {
  margin-top: 0;
}
