:root {
  --bg: #f6f8fc; --surface: #fff; --surface-2: #f0f4f9; --surface-3: #e7edf5;
  --text: #1f1f1f; --muted: #444746; --faint: #747775; --line: #e1e3e1; --line-strong: #c4c7c5;
  --primary: #0b57d0; --on-primary: #fff; --primary-soft: #d3e3fd; --on-primary-soft: #041e49; --hover: rgba(68, 71, 70, .08);
  --ok: #146c2e; --ok-soft: #c4eed0; --warn: #b3261e; --warn-soft: #f9dedc; --wait: #6f4e00; --wait-soft: #feefc3;
  --shadow-1: 0 1px 2px rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15);
  --shadow-2: 0 1px 3px rgba(60, 64, 67, .3), 0 4px 8px 3px rgba(60, 64, 67, .15);
  --top: 64px; --nav: 248px; --radius: 16px;
  /* Chart colors, in the order that keeps neighbors apart, also for color-blind readers. Take them in order, never skip. */
  --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100; --c5: #e87ba4; --c6: #008300; --c7: #6250d6; --c8: #e34948;
  --chart-bg: var(--surface-2);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.5 Heebo, Roboto, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1 { font-size: 24px; line-height: 32px; font-weight: 400; margin: 0; }
h2 { font-size: 20px; line-height: 28px; font-weight: 400; margin: 0; }
h3 { font-size: 14px; line-height: 20px; font-weight: 500; margin: 0 0 10px; color: var(--text); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.ms { font-family: "Material Symbols Rounded"; font-weight: 400; font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; font-feature-settings: "liga"; flex: none; vertical-align: -4px; }

button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; background: var(--primary); color: var(--on-primary); border: 0; border-radius: 20px; padding: 0 24px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
button:hover, .btn:hover { box-shadow: var(--shadow-1); }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
button:disabled { opacity: .5; cursor: wait; box-shadow: none; }
button.ghost, .btn.ghost { background: var(--surface); color: var(--primary); box-shadow: inset 0 0 0 1px var(--line-strong); }
button.ghost:hover, .btn.ghost:hover { background: rgba(11, 87, 208, .06); box-shadow: inset 0 0 0 1px var(--line-strong); }
button.danger { background: var(--warn-soft); color: var(--warn); }
button.link { background: none; color: var(--primary); padding: 0; min-height: 0; border-radius: 4px; font-weight: 500; }
button.link:hover { box-shadow: none; text-decoration: underline; }
button.small { min-height: 32px; padding: 0 14px; font-size: 13px; }
button.icon-btn { background: none; color: var(--muted); width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; }
button.icon-btn:hover { background: var(--hover); box-shadow: none; }
input, select, textarea { font: inherit; font-size: 14px; padding: 8px 12px; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); }
input[type=checkbox] { min-height: 0; accent-color: var(--primary); width: 18px; height: 18px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
textarea { width: 100%; min-height: 84px; resize: vertical; }
label.field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
label.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; }

#shell { display: grid; grid-template-rows: var(--top) minmax(0, 1fr); height: 100vh; }
#topbar { display: flex; align-items: center; gap: 16px; padding: 0 16px; }
.brand { display: flex; align-items: center; gap: 10px; width: calc(var(--nav) - 16px); font-size: 18px; color: var(--muted); flex: none; }
.logo { background: var(--primary); color: #fff; border-radius: 10px; padding: 4px 9px; font-weight: 700; font-size: 15px; }
#global-search { flex: 1; max-width: 720px; display: flex; align-items: center; gap: 10px; background: var(--surface-3); border-radius: 24px; padding: 0 16px; height: 46px; color: var(--muted); transition: background .15s, box-shadow .15s; }
#global-search:focus-within { background: var(--surface); box-shadow: var(--shadow-1); }
#global-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 15px; min-height: 0; padding: 0; }
.me { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.me b { font-weight: 500; color: var(--text); }
.me .who-box { text-align: left; line-height: 1.25; margin-inline-end: 6px; }
#body { display: flex; min-height: 0; }
#tabs { width: var(--nav); flex: none; padding: 8px 0 16px 12px; overflow-y: auto; display: grid; gap: 2px; align-content: start; }
#tabs button { background: none; color: var(--muted); justify-content: flex-start; gap: 16px; height: 44px; min-height: 44px; border-radius: 0 22px 22px 0; border-radius: 22px; padding: 0 16px; font-weight: 500; }
#tabs button:hover { background: var(--hover); box-shadow: none; }
#tabs button.on { background: var(--primary-soft); color: var(--on-primary-soft); }
#tabs button.on .ms { font-variation-settings: "FILL" 1; }
#content { flex: 1; min-width: 0; background: var(--surface); border-radius: var(--radius); margin: 0 0 16px 16px; overflow-y: auto; box-shadow: 0 0 0 1px rgba(60, 64, 67, .06); }
#demo { background: var(--wait-soft); color: var(--wait); text-align: center; padding: 4px; font-size: 13px; }
#demo.env { background: #b3261e; color: #fff; font-weight: 700; padding: 6px; }     /* the development copy: impossible to miss */
#view { padding: 24px 28px; max-width: 1180px; margin: auto; }
.lead { color: var(--muted); margin: 2px 0 20px; }
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 24px; }
.tile { background: var(--surface); color: var(--text); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); padding: 14px 16px; text-align: right; display: grid; gap: 2px; justify-content: stretch; min-height: 0; white-space: normal; font-weight: 400; }
button.tile:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.tile b { font-size: 26px; line-height: 32px; font-weight: 400; color: var(--text); }
.tile span { color: var(--muted); font-size: 13px; }
.progress { height: 8px; background: var(--primary-soft); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.filters input[type=search] { flex: 1; min-width: 240px; }
.filters select { min-width: 0; max-width: 170px; }
details.more { margin-bottom: 12px; }
details.more > summary { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 13px; font-weight: 500; cursor: pointer; padding: 4px 0; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more .filters { margin-top: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.chip { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: 8px; padding: 0 12px; min-height: 32px; font-size: 13px; font-weight: 500; }
.chip:hover { background: var(--hover); box-shadow: inset 0 0 0 1px var(--line-strong); }
.chip.on { background: var(--primary-soft); color: var(--on-primary-soft); box-shadow: none; }
.list { display: grid; }
.person { background: var(--surface); padding: 10px 12px; display: flex; align-items: center; gap: 14px; cursor: pointer; color: var(--text); text-align: right; width: 100%; font-weight: 400; border-radius: 0; border-bottom: 1px solid var(--line); min-height: 0; white-space: normal; justify-content: flex-start; }
.person:hover { background: var(--surface-2); box-shadow: none; }
.person.dnc { opacity: .7; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--primary-soft); color: var(--on-primary-soft); display: grid; place-items: center; font-weight: 500; font-size: 14px; }
.avatar.p1 { background: var(--wait-soft); color: var(--wait); }
.avatar.xl { width: 64px; height: 64px; font-size: 22px; }
.who { flex: 1; min-width: 0; }
.who b { display: block; font-weight: 500; }
.sub { color: var(--muted); font-size: 13px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 10px; border-radius: 8px; background: var(--primary-soft); color: var(--on-primary-soft); font-size: 12px; line-height: 20px; white-space: nowrap; }
.pill.bad { background: var(--warn-soft); color: #8c1d18; }
.pill.good { background: var(--ok-soft); color: #0d4f20; }
.pill.wait { background: var(--wait-soft); color: var(--wait); }
.pill.plain { background: var(--surface-3); color: var(--muted); }
.empty { background: var(--surface-2); border-radius: 12px; padding: 36px; text-align: center; color: var(--muted); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 16px 0; color: var(--muted); font-size: 13px; }
.bulk { position: sticky; bottom: 12px; background: #2f3033; color: #fff; border-radius: 12px; padding: 8px 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; box-shadow: var(--shadow-2); }
.pick { flex: none; }

#gate { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--bg); }
.login { width: min(400px, 100%); background: var(--surface); border-radius: 24px; padding: 36px; display: grid; gap: 14px; box-shadow: var(--shadow-1); }
.login .logo { justify-self: start; font-size: 18px; padding: 6px 12px; }
.login h1 { margin-top: 6px; }
.error { color: var(--warn); min-height: 20px; font-size: 13px; }

#shade { display: none; }
#card { position: fixed; top: var(--top); right: var(--nav); left: 16px; bottom: 16px; background: var(--surface); border-radius: var(--radius); overflow-y: auto; z-index: 5; box-shadow: 0 0 0 1px rgba(60, 64, 67, .06); }
.c-page { max-width: 1180px; margin: auto; padding: 16px 28px 32px; }
.c-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 14px; }
.c-head .who h1 { font-size: 26px; line-height: 34px; overflow-wrap: anywhere; }
.c-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.c-summary { font-size: 16px; line-height: 26px; color: var(--text); margin: 0 0 16px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 8px; }
.metric { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.metric span { display: block; font-size: 12px; color: var(--muted); }
.metric b { display: block; font-size: 22px; line-height: 30px; font-weight: 400; }
.metric small { font-size: 12px; color: var(--muted); }
.c-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.c-side { display: grid; gap: 12px; position: sticky; top: 12px; }
.panel { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.panel + .panel { margin-top: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 16px 0; overflow-x: auto; }
.tabs button { background: none; color: var(--muted); border-radius: 0; min-height: 44px; padding: 0 16px; font-weight: 500; position: relative; }
.tabs button:hover { background: var(--hover); box-shadow: none; }
.tabs button.on { color: var(--primary); }
.tabs button.on::after { content: ''; position: absolute; inset-inline: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); }
.section { margin-bottom: 24px; }
.years { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; font-size: 14px; }
.years .bar { min-width: 0; }
.commitments { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.commitment { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.commitment b { display: block; font-size: 16px; font-weight: 500; }
.line-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.line-row:last-child { border-bottom: 0; }
details.year { border-bottom: 1px solid var(--line); }
details.year > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 4px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 500; }
details.year > summary::-webkit-details-marker { display: none; }
details.year > summary .ms { transition: transform .15s; color: var(--muted); }
details.year[open] > summary .ms { transform: rotate(180deg); }
details.year .gift { padding-inline: 4px; }
.kid { padding: 10px 0; border-top: 1px solid var(--line); }
.kid:first-of-type { border-top: 0; padding-top: 0; }
.kid b { font-weight: 500; }
.contact-line { display: flex; gap: 10px; align-items: center; font-size: 14px; padding: 3px 0; overflow-wrap: anywhere; color: var(--text); }
.contact-line .ms { color: var(--muted); font-size: 18px; }
.person-block + .person-block { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.person-block b { font-weight: 500; }

.box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 12px; }
.head { display: flex; align-items: center; gap: 12px; }
.alert { background: var(--warn-soft); color: #8c1d18; padding: 10px 14px; border-radius: 12px; margin: 0 0 10px; font-size: 14px; }
.info { background: var(--wait-soft); color: var(--wait); padding: 10px 14px; border-radius: 12px; margin: 0 0 10px; font-size: 14px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.row.between { justify-content: space-between; }
.row input[type=number] { width: 130px; }
.note { color: var(--muted); font-size: 13px; }
.stats { display: flex; gap: 22px; flex-wrap: wrap; }
.stats b { display: block; font-size: 20px; }
.timeline { display: grid; gap: 6px; font-size: 14px; }
.timeline div { display: grid; grid-template-columns: 92px 60px 1fr; gap: 8px; align-items: baseline; }
.timeline .sub { white-space: nowrap; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12px; }
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.scroll tr:last-child td { border-bottom: 0; }
.bar { display: block; height: 8px; background: var(--primary-soft); border-radius: 4px; overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }

.task { background: var(--surface); padding: 12px; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.task .who { min-width: 220px; }

.list-banner { display: flex; align-items: center; gap: 10px; background: var(--primary-soft); color: var(--on-primary-soft); border-radius: 12px; padding: 8px 14px; margin-bottom: 12px; font-size: 14px; }
.list-banner b { font-weight: 500; flex: 1; min-width: 0; }
.pick-all { padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.caller-list { display: grid; gap: 6px; max-height: 300px; overflow-y: auto; }
.series-1 { background: var(--c1); }
.series-2 { background: var(--c2); }
.series-3 { background: var(--c3); }
.series-4 { background: var(--c4); }
.series-5 { background: var(--c5); }
.series-6 { background: var(--c6); }
.series-7 { background: var(--c7); }
.series-8 { background: var(--c8); }
.ask-box { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 28px; padding: 6px 8px 6px 16px; margin-bottom: 12px; color: var(--primary); }
.ask-box:focus-within { box-shadow: var(--shadow-1); border-color: transparent; }
.ask-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; min-height: 36px; padding: 0; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; margin-bottom: 16px; }
.chart { margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.chart-head h3 { margin: 0 0 6px; font-size: 15px; line-height: 22px; }
.chart-actions { display: flex; flex: none; margin-top: -6px; }
.chart .note { margin: 0 0 10px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 130px) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-value { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-track { display: flex; gap: 2px; min-width: 0; }
.bar-track i { position: relative; display: block; height: 14px; min-width: 2px; }
.bar-track i:first-child { border-start-start-radius: 4px; border-end-start-radius: 4px; }
.bar-track i:last-child { border-start-end-radius: 4px; border-end-end-radius: 4px; }
.bar-row.grouped { grid-template-columns: minmax(0, 130px) minmax(0, 1fr); }
.bar-lines { display: grid; gap: 3px; min-width: 0; }
.bar-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.r-attach { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.r-attach input { flex: 1 1 200px; min-width: 0; }
.r-found { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.r-found:empty { display: none; }
.tag-add { display: flex; gap: 8px; margin-top: 10px; }
.tag-add input { flex: 1; min-width: 0; }
.chart-tip { position: fixed; z-index: 90; max-width: 280px; background: #2f3033; color: #fff; font: 400 12px/1.5 Heebo, sans-serif; padding: 6px 10px; border-radius: 8px; white-space: pre-line; pointer-events: none; }
.plot-scroll { overflow: auto hidden; }
.plot-box { font-size: 12px; color: var(--muted); padding-top: 18px; }
.plot { position: relative; height: 220px; margin-left: 48px; }
.grid-line { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.grid-line b { position: absolute; right: 100%; bottom: -8px; padding-right: 8px; font-weight: 400; font-size: 11px; line-height: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cols { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-around; gap: 6px; }
.col { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.col-bar { position: relative; flex: 0 1 28px; min-width: 6px; display: flex; flex-direction: column-reverse; gap: 2px; }
.col-bar i { display: block; min-height: 2px; }
.col-bar i:last-of-type { border-radius: 4px 4px 0 0; }
.col-value { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 2px; color: var(--text); font-size: 11px; line-height: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.col-labels { display: flex; justify-content: space-around; gap: 6px; margin: 6px 0 0 48px; line-height: 15px; }
.col-labels span { flex: 1; min-width: 0; text-align: center; overflow-wrap: anywhere; }
.plot-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plot-lines polyline { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.plot-lines.filled polygon { fill-opacity: .75; stroke: var(--chart-bg); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dot { position: absolute; width: 10px; height: 10px; margin: 0 0 -5px -5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--chart-bg); }
.hit { position: absolute; top: 0; bottom: 0; background: none; }
.hit:hover { background: rgba(68, 71, 70, .07); }
.end-value { position: absolute; right: 0; transform: translateY(-6px); padding-bottom: 4px; color: var(--text); font-weight: 500; font-size: 12px; white-space: nowrap; }
.x-labels { position: relative; height: 20px; margin: 6px 0 0 48px; }
.x-labels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.x-labels span.first { transform: none; }
.x-labels span.last { transform: translateX(-100%); }
.axis-name { font-size: 11px; color: var(--muted); margin: -12px 0 6px; }
.axis-name.across { text-align: center; margin: 2px 0 0 48px; }
.pie-box { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.pie { position: relative; flex: 0 0 168px; width: 168px; }
.pie svg { display: block; width: 100%; }
.pie path { stroke: var(--chart-bg); stroke-width: .025; }
.pie-total { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.pie-total b { font-size: 18px; line-height: 24px; font-weight: 500; }
.pie-total span { font-size: 11px; color: var(--muted); }
.pie-rows { flex: 1 1 200px; min-width: 0; display: grid; gap: 6px; font-size: 13px; }
.pie-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 38px; gap: 8px; align-items: center; }
.pie-row i { width: 10px; height: 10px; border-radius: 3px; }
.pie-row b { font-weight: 500; font-variant-numeric: tabular-nums; }
.pie-row .sub { text-align: end; }
.funnel { display: grid; gap: 6px; }
.funnel-row { display: grid; grid-template-columns: minmax(0, 130px) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.funnel-track { display: flex; justify-content: center; min-width: 0; }
.funnel-track i { display: block; height: 26px; min-width: 3px; border-radius: 4px; }
.heatmap { border-collapse: separate; border-spacing: 2px; font-size: 13px; }
.heatmap th { font-weight: 500; padding: 5px 8px; white-space: nowrap; background: none; text-align: start; }
.heatmap td { padding: 7px 10px; text-align: center; border-radius: 4px; background: var(--surface-3); font-variant-numeric: tabular-nums; }
.chart-plain { font-size: 13px; }
.chart-plain th, .chart-plain td { padding: 6px 10px; }
.chart-plain tr > th:first-child { font-weight: 500; text-align: start; }
.chart-plain td { font-variant-numeric: tabular-nums; }
.chart-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.chart-numbers div { display: grid; }
.chart-numbers b { font-size: 26px; line-height: 34px; font-weight: 400; }
.chart-numbers span { font-size: 13px; color: var(--muted); }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; margin-top: 6px; }
.board .chart { --chart-bg: var(--surface); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.board > .chart-numbers, .board > .chart-table { grid-column: 1 / -1; }
.chart-grid > .chart-board { grid-column: 1 / -1; }
[data-i].clickable { cursor: pointer; }
.pie path.clickable:hover, .col.clickable:hover .col-bar i { filter: brightness(.92); }
.chart-number { font-size: 36px; line-height: 44px; font-weight: 400; }
.chart-table { margin-top: 10px; font-size: 13px; }
.chart-table summary { color: var(--primary); cursor: pointer; font-size: 12px; font-weight: 500; }
.chart-table .scroll { margin-top: 6px; }
.chart-table th, .chart-table td { padding: 5px 8px; }
.section-title { margin: 24px 0 12px; }
.name-list { display: grid; gap: 2px; max-height: 190px; overflow-y: auto; margin-top: 4px; }
.name-row { background: none; color: var(--text); justify-content: space-between; gap: 10px; padding: 5px 8px; min-height: 0; border-radius: 8px; font-weight: 400; text-align: right; white-space: normal; }
.name-row:hover { background: var(--primary-soft); box-shadow: none; }
#u-names-field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
#u-search { width: 100%; }
#u-names-field .chips { margin: 0; }
#u-names-field .chips:empty { display: none; }
.ai-rows { max-height: 60vh; overflow-y: auto; }

#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 20; }
.toast { background: #2f3033; color: #f2f2f2; padding: 12px 20px; border-radius: 8px; box-shadow: var(--shadow-2); animation: rise .2s ease-out; font-size: 14px; }
.toast.bad { background: #8c1d18; }
.toast.good { background: #2f3033; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.modal-shade { position: fixed; inset: 0; background: rgba(0, 0, 0, .32); z-index: 10; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: 24px; padding: 24px; width: min(480px, 100%); display: grid; gap: 14px; box-shadow: var(--shadow-2); max-height: calc(100vh - 32px); overflow-y: auto; }
.modal.wide { width: min(860px, 100%); }
.modal .actions { display: flex; gap: 8px; justify-content: flex-start; }
code.pw { font-size: 20px; background: var(--surface-2); padding: 6px 12px; border-radius: 8px; letter-spacing: 1px; user-select: all; }

/* Google's expressive line: color, shape, size, motion and containment. Filled tonal containers instead of outlines,
   round shapes, large numbers, and movement that starts fast and settles softly. */
:root { --ease: cubic-bezier(.2, 0, 0, 1); --blue: #d3e3fd; --on-blue: #0842a0; --green: #c4eed0; --on-green: #0f5223; --yellow: #ffe7a0; --on-yellow: #5c4300;
  --red: #ffdad6; --on-red: #8c1d18; --purple: #e9ddff; --on-purple: #4f378b; --teal: #bdeee8; --on-teal: #00504a; --bg: #f8fafd; }
h1 { font-size: 30px; line-height: 38px; letter-spacing: -.2px; }
button, .btn { transition: border-radius .25s var(--ease), box-shadow .15s, background .15s; }
button:active, .btn:active { border-radius: 12px; }
#view > *, .c-page > *, #a-pane > * { animation: enter .32s var(--ease) backwards; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
#tabs button { height: 48px; min-height: 48px; border-radius: 24px; }
.tone-0 { background: var(--blue); color: var(--on-blue); }
.tone-1 { background: var(--green); color: var(--on-green); }
.tone-2 { background: var(--yellow); color: var(--on-yellow); }
.tone-3 { background: var(--red); color: var(--on-red); }
.tone-4 { background: var(--purple); color: var(--on-purple); }
.tone-5 { background: var(--teal); color: var(--on-teal); }
.avatar.p1 { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #f9ab00; }
.tiles { gap: 14px; }
.tile { background: var(--surface-2); box-shadow: none; border-radius: 20px; padding: 18px 20px; transition: background .2s, transform .25s var(--ease); }
button.tile:hover { background: var(--surface-3); box-shadow: none; transform: translateY(-2px); }
.tile b { font-size: 32px; line-height: 40px; }
.tile-icon { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 8px; }
.tile-hint { font-size: 12px; }
.tile:nth-child(6n+1) .tile-icon { background: var(--blue); color: var(--on-blue); }
.tile:nth-child(6n+2) .tile-icon { background: var(--green); color: var(--on-green); }
.tile:nth-child(6n+3) .tile-icon { background: var(--yellow); color: var(--on-yellow); }
.tile:nth-child(6n+4) .tile-icon { background: var(--purple); color: var(--on-purple); }
.tile:nth-child(6n+5) .tile-icon { background: var(--teal); color: var(--on-teal); }
.tile:nth-child(6n) .tile-icon { background: var(--red); color: var(--on-red); }
.metric { border-radius: 16px; padding: 14px 16px; }
.metric b { font-size: 26px; line-height: 34px; }
.panel, .box, .commitment, .chart { border: 0; background: var(--surface-2); border-radius: 20px; padding: 16px 20px; }
.commitment { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-radius: 16px; }
.brand-mark { width: 58px; height: 58px; flex: none; }
.brand-text { display: grid; line-height: 1.25; }
.brand-text b { font-size: 15px; font-weight: 500; color: #0f2d6e; white-space: nowrap; }
.brand-text small { font-size: 12px; color: var(--muted); }
.login { justify-items: stretch; text-align: center; padding-top: 28px; }
.login-seal { width: 190px; height: 190px; justify-self: center; }
.login h1 { font-size: 24px; margin-bottom: 6px; }
.login label.field { text-align: right; }
.scroll { border-radius: 16px; }
.person { border-radius: 16px; border-bottom: 0; margin-bottom: 2px; transition: background .15s; }
.task { border-radius: 16px; border-bottom: 0; background: var(--surface-2); margin-bottom: 8px; }
.pill { border-radius: 10px; }
.empty { border-radius: 24px; }
.modal { border-radius: 28px; }
#card { animation: enter .3s var(--ease); }
.chart { min-width: 0; }
.bar-row.clickable { cursor: pointer; border-radius: 8px; }
.bar-row.clickable:hover { background: var(--surface-3); }
.builder { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.builder-controls { background: var(--surface-2); border-radius: 24px; padding: 16px 18px; display: grid; gap: 10px; }
.builder-controls h3 { margin: 6px 0 0; }
.builder-controls select { width: 100%; }
.builder-result .chart { --chart-bg: var(--surface); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

@media (max-width: 1100px) {
  :root { --nav: 72px; }
  .brand span:last-child { display: none; }
  .brand { width: auto; }
  #tabs { padding: 8px 8px 16px; }
  #tabs button { padding: 0; justify-content: center; font-size: 0; gap: 0; }
  #tabs button .ms { font-size: 22px; }
  .c-grid, .builder { grid-template-columns: minmax(0, 1fr); }
  .c-side { position: static; }
  #view, .c-page { padding-inline: 18px; }
}
@media (max-width: 640px) {
  .me .who-box, #global-search { display: none; }
  #body { display: block; overflow-y: auto; }
  #tabs { width: 100%; display: flex; overflow-x: auto; padding: 0 8px 8px; }
  #tabs button { flex: none; width: 48px; }
  #content { margin: 0; border-radius: 0; overflow: visible; }
  #card { inset: 0; border-radius: 0; }
  #ai-fab { left: 16px; bottom: 16px; }
  #ai-panel, #ai-panel.wide { inset: 0; width: 100%; height: 100%; border-radius: 0; }
  .person { flex-wrap: wrap; }
  .tags { justify-content: flex-start; }
  .timeline div { grid-template-columns: 1fr; }
}

/* After saving: where the contact stands, and the reminders that come back. */
.c-state { background: var(--surface-2); border-radius: 20px; padding: 14px 18px; margin-bottom: 14px; display: grid; gap: 10px; }
.c-state.good { background: #e6f4ea; }
.c-state.bad { background: var(--warn-soft); }
.c-state.wait { background: #fef7e0; }
.c-state-head { display: flex; align-items: center; gap: 12px; }
.c-state-head > .ms { font-size: 28px; font-variation-settings: "FILL" 1; }
.c-state.good .c-state-head > .ms { color: var(--ok); }
.c-state.bad .c-state-head > .ms { color: var(--warn); }
.c-state.wait .c-state-head > .ms { color: var(--wait); }
.c-state-head b { font-size: 18px; line-height: 26px; font-weight: 500; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.steps li { display: inline-flex; align-items: center; gap: 6px; }
.steps .ms { font-size: 18px; color: var(--faint); }
.steps .done { color: var(--text); }
.steps .done .ms { color: var(--ok); }
.steps .bad { color: #8c1d18; }
.steps .bad .ms { color: var(--warn); }
.c-remind { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.c-remind b { font-weight: 500; }
.c-remind .ms { color: var(--wait); }
.remind-fields { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; margin: 8px 0; }
.remind-fields input { width: 100%; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 16px; padding: 4px; gap: 4px; }
.seg button { background: none; color: var(--muted); border-radius: 12px; min-height: 44px; padding: 4px 10px; white-space: normal; line-height: 1.25; }
.seg button:hover { background: var(--hover); box-shadow: none; }
.seg button.on { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-1); }
.dn-details { display: grid; gap: 12px; }
#bell { position: relative; }
#bell-count { position: absolute; top: 2px; inset-inline-end: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--warn); color: #fff; font-size: 11px; line-height: 18px; text-align: center; padding: 0 4px; }
#reminders { position: fixed; top: 72px; left: 24px; z-index: 10; width: min(360px, calc(100vw - 32px)); display: grid; gap: 10px; }
#reminders:empty { display: none; }
.reminder { background: var(--surface); border-radius: 20px; padding: 12px 16px 14px; box-shadow: var(--shadow-2); display: grid; gap: 4px; animation: enter .28s var(--ease); }
.reminder-head { display: flex; align-items: center; gap: 8px; }
.reminder-head .ms { color: var(--primary); }
.reminder-head b { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.reminder-head .icon-btn { width: 32px; height: 32px; }
.reminder .sub { overflow-wrap: anywhere; }
.reminder-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.reminder-actions button.small { padding-inline: 12px; }
.reminder-actions button.link { padding-inline: 6px; }

/* Claude: a quiet, document-like conversation. Claude's words sit on the page, only what the user wrote is in a bubble. */
#ai-fab { position: fixed; left: 32px; bottom: 32px; z-index: 8; min-height: 52px; border-radius: 26px; padding: 0 22px; background: var(--surface); color: var(--primary); box-shadow: var(--shadow-2); font-size: 15px; }
#ai-fab:hover { background: #eef3fe; box-shadow: var(--shadow-2); }
#ai-panel { position: fixed; left: 24px; bottom: 24px; z-index: 9; width: min(460px, calc(100vw - 32px)); height: min(780px, calc(100vh - 96px)); background: var(--surface); border-radius: 24px; box-shadow: 0 12px 32px rgba(60, 64, 67, .24), 0 1px 3px rgba(60, 64, 67, .2); display: flex; overflow: hidden; animation: enter .24s var(--ease); }
#ai-panel.wide { width: min(1080px, calc(100vw - 32px)); }
#ai-panel.drop { outline: 3px dashed var(--primary); outline-offset: -6px; }
.ai-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ai-main header { display: flex; align-items: center; gap: 2px; padding: 8px 8px 8px 8px; }
.ai-title { flex: 1; min-width: 0; display: grid; line-height: 1.25; padding-inline: 6px; }
.ai-title b { font-size: 16px; font-weight: 500; }
.ai-title small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ai-side { flex: none; width: 272px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 12px; min-height: 0; }
#ai-panel:not(.wide) #ai-side { position: absolute; inset: 0; width: auto; z-index: 2; background: var(--surface); animation: enter .2s var(--ease); }
.ai-side-head { display: flex; align-items: center; justify-content: space-between; padding-inline-start: 6px; }
.ai-side-head b { font-size: 16px; font-weight: 500; }
#ai-panel.wide #ai-side-close { display: none; }
#ai-panel.wide .ai-side-head { min-height: 40px; }
#ai-new { justify-content: flex-start; gap: 10px; padding: 0 14px; min-height: 44px; border-radius: 14px; }
.ai-find { display: flex; align-items: center; gap: 8px; background: var(--surface-3); border-radius: 14px; padding: 0 12px; color: var(--muted); }
#ai-panel.wide .ai-find { background: var(--surface); }
.ai-find input { flex: 1; min-width: 0; min-height: 40px; border: 0; background: none; padding: 0; outline: 0; }
#ai-history { flex: 1; min-height: 0; overflow: hidden auto; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 2px; }
#ai-history h4 { margin: 12px 8px 4px; font-size: 12px; font-weight: 500; color: var(--faint); }
#ai-history h4:first-child { margin-top: 2px; }
.ai-conv { background: none; color: var(--text); justify-content: space-between; gap: 10px; min-height: 40px; padding: 6px 10px; border-radius: 12px; font-weight: 400; font-size: 14px; width: 100%; text-align: right; }
.ai-conv:hover { background: var(--hover); box-shadow: none; }
.ai-conv.on { background: var(--primary-soft); color: var(--on-primary-soft); }
.ai-conv span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ai-conv small { flex: none; font-size: 12px; color: var(--faint); }
.ai-conv.on small { color: inherit; }
.ai-none { color: var(--muted); font-size: 13px; text-align: center; padding: 24px 8px; }
#ai-credit { display: flex; align-items: center; gap: 10px; padding: 8px 6px 0; font-size: 12px; color: var(--faint); }
#ai-credit[hidden] { display: none; }
.ai-credit-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.ai-credit-bar i { display: block; min-width: 2px; height: 100%; border-radius: 3px; background: var(--primary); transition: width .3s; }
#ai-credit.low { color: var(--wait); }
#ai-credit.low .ai-credit-bar i { background: var(--wait); }
#ai-credit.out { color: var(--warn); }
#ai-credit.out .ai-credit-bar i { background: var(--warn); }
#ai-log { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 22px 16px; display: flex; flex-direction: column; gap: 14px; }
#ai-panel.wide #ai-log { padding-inline: max(22px, calc(50% - 340px)); }
.ai-msg { align-self: stretch; overflow-wrap: anywhere; font-size: 15px; line-height: 1.7; color: var(--text); }
.ai-msg.mine { align-self: flex-end; max-width: 85%; background: var(--surface-3); border-radius: 20px 20px 6px 20px; padding: 9px 16px; white-space: pre-wrap; line-height: 1.55; }
.ai-msg p { margin: 0 0 8px; }
.ai-msg p:last-child { margin: 0; }
.ai-msg ul, .ai-msg ol { margin: 4px 0 8px; padding-inline-start: 22px; }
.ai-msg li { margin-bottom: 3px; }
.ai-msg h4 { margin: 10px 0 4px; font-size: 15px; font-weight: 500; }
.ai-msg b { font-weight: 500; }
.ai-msg code { background: var(--surface-2); border-radius: 6px; padding: 1px 5px; font-size: 13px; }
.ai-msg table { font-size: 13px; margin: 0; }
.ai-msg th, .ai-msg td { padding: 6px 10px; }
.ai-msg .scroll { margin: 8px 0; border: 1px solid var(--line); border-radius: 12px; }
.ai-steps { align-self: flex-start; max-width: 100%; color: var(--muted); font-size: 13px; }
.ai-steps summary { display: flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; border-radius: 10px; padding: 3px 8px 3px 6px; margin-inline-start: -6px; }
.ai-steps summary::-webkit-details-marker { display: none; }
.ai-steps summary:hover { background: var(--hover); }
.ai-steps summary .ms { font-size: 18px; color: var(--faint); }
.ai-steps summary span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-steps[open] summary .ms:last-child { transform: rotate(180deg); }
.ai-steps > div { display: grid; gap: 2px; padding: 4px 22px 2px 0; color: var(--faint); font-size: 12px; }
.ai-step { color: var(--faint); font-size: 13px; }
.ai-error { background: var(--warn-soft); color: #8c1d18; border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.ai-error p { margin: 4px 0 0; }
.ai-download a { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 14px; padding: 10px 16px; font-size: 14px; font-weight: 500; }
.ai-download a:hover { background: var(--surface-3); text-decoration: none; }
.ai-action { background: var(--surface-2); border-radius: 18px; padding: 14px 16px; display: grid; gap: 8px; font-size: 14px; }
.ai-action b { font-weight: 500; }
.ai-action .row { margin: 0; }
.ai-action .alert, .ai-action .info { margin: 0; }
.ai-action pre { background: var(--surface); border-radius: 10px; padding: 8px; font-size: 12px; overflow-x: auto; margin: 4px 0 0; text-align: left; }
.ai-action summary { color: var(--muted); font-size: 13px; cursor: pointer; }
.ai-report { font-size: 13px; }
.ai-report b { display: block; color: var(--muted); font-size: 12px; }
.ai-report div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 2px 0; }
.ai-chart { align-self: stretch; }
.ai-chart .chart { --chart-bg: var(--surface); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
#ai-pending { display: flex; align-items: center; gap: 8px; margin: 0 14px 8px; padding: 8px 14px; border-radius: 16px; background: var(--primary-soft); color: var(--on-primary-soft); font-size: 13px; }
#ai-pending span { flex: 1; }
#ai-working { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 0 22px 8px; }
#ai-panel.wide #ai-working { padding-inline: max(22px, calc(50% - 340px)); }
#ai-working-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-dots { flex: none; }
.ai-dots i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-inline-end: 3px; animation: pulse 1.1s infinite; }
.ai-dots i:nth-child(2) { animation-delay: .18s; }
.ai-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes pulse { 50% { opacity: .25; } }
.ai-composer { padding: 0 14px 14px; }
#ai-panel.wide .ai-composer { padding-inline: max(14px, calc(50% - 348px)); }
#ai-files { display: flex; gap: 6px; flex-wrap: wrap; }
#ai-files:not(:empty) { padding-block: 0 8px; }
.ai-input { display: flex; align-items: flex-end; gap: 2px; background: var(--surface-2); border-radius: 26px; padding: 5px 6px; transition: background .15s, box-shadow .15s; }
.ai-input:focus-within { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-1); }
#ai-text { flex: 1; min-width: 0; min-height: 40px; max-height: 160px; resize: none; border: 0; background: none; padding: 9px 12px; outline: 0; font-size: 15px; line-height: 22px; }
#ai-send { background: var(--primary); color: #fff; }
#ai-send:hover { background: #0a4cb6; }
#ai-send.working { background: var(--surface-3); color: var(--text); }
#ai-send.working .ms { font-variation-settings: "FILL" 1; }
.ai-welcome { margin: auto 0; display: grid; justify-items: start; gap: 6px; padding-block: 12px; }
.ai-welcome h2 { font-size: 24px; line-height: 32px; margin-top: 6px; }
.ai-welcome p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.ai-spark { color: var(--primary); }
.ai-spark.big .ms { font-size: 32px; font-variation-settings: "FILL" 1; }
.ai-examples { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.ai-examples button { background: var(--surface-2); color: var(--text); justify-content: flex-start; align-items: flex-start; flex-direction: column; gap: 8px; min-height: 92px; padding: 12px 14px; border-radius: 16px; font-weight: 400; font-size: 13px; line-height: 1.4; white-space: normal; text-align: right; }
.ai-examples button:hover { background: var(--surface-3); box-shadow: none; }
.ai-examples .ms { color: var(--primary); }
#ai-panel.wide .ai-examples { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) {
  #ai-panel { left: 8px; right: 8px; bottom: 8px; width: auto; height: calc(100vh - 80px); }
  #ai-panel.wide { width: auto; }
  #ai-wide { display: none; }
}

/* What ties a family to ATA beyond taking part: representatives and prizes. */
.c-links { background: #eef3fe; border-radius: 20px; padding: 14px 18px; margin: 12px 0 0; display: grid; gap: 8px; }
.c-links h3 { margin: 0; color: var(--on-blue); }
.c-link { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 22px; }
.c-link > .ms { color: var(--primary); font-variation-settings: "FILL" 1; }
.c-link .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.c-link b { font-weight: 500; }
.c-links .ed-new { margin-top: 2px; }
.kid-activity + .kid-activity { border-top: 1px solid var(--line); }
.kid-activity .line-row { border-bottom: 0; }
.kid-honor { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 0 0 8px; }
.kid-honor > .ms { font-size: 18px; color: var(--primary); }
.kid-honor > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pill.honor { background: var(--primary-soft); color: var(--on-primary-soft); font-weight: 500; }

/* The confirmation of a Charidy window, and the manager's screen of things to go through. */
.c-confirm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 500; }
.c-fix { font-size: 13px; }
.r-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.r-groups { display: grid; gap: 2px; position: sticky; top: 8px; }
.r-group { background: none; color: var(--text); border-radius: 14px; padding: 8px 14px; justify-content: space-between; gap: 10px; min-height: 42px; text-align: right; white-space: normal; font-weight: 400; font-size: 14px; line-height: 20px; }
.r-group:hover { background: var(--hover); box-shadow: none; }
.r-group.on { background: var(--primary-soft); color: var(--on-primary-soft); }
.r-group.calm { color: var(--faint); }
.r-group b { font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .r-layout { grid-template-columns: 1fr; } .r-groups { position: static; } }
.r-about { background: #eef3fe; border-radius: 16px; padding: 12px 16px; margin-bottom: 12px; font-size: 14px; }
.r-about b { font-weight: 500; }
.r-item { border-bottom: 1px solid var(--line); padding: 12px 4px; display: grid; gap: 6px; }
.r-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.r-item-head b { font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }
.r-detail { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.r-advice { display: flex; gap: 6px; font-size: 13px; color: var(--on-blue); }
.r-advice .ms { font-size: 18px; }
.r-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.r-contact { background: var(--surface-2); color: var(--primary); min-height: 32px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.r-contact:hover { background: var(--surface-3); box-shadow: none; }

/* Editing in the card: a pencil beside each detail. A manager saves, anyone else proposes with a reason. */
.ed-row { display: flex; align-items: flex-start; gap: 4px; }
.ed-row > .grow { flex: 1; min-width: 0; }
.c-head .who .ed-row { align-items: center; }
.ed-btn { background: none; color: var(--faint); width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; flex: none; opacity: .55; }
.ed-btn .ms { font-size: 18px; }
.ed-host:hover .ed-btn, .ed-btn:focus-visible { opacity: 1; color: var(--primary); }
.ed-btn:hover { background: var(--hover); box-shadow: none; }
@media (hover: none) { .ed-btn { opacity: 1; } }
.ed-adds { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 4px 0 0; }
.ed-add { font-size: 13px; gap: 2px; }
.ed-add .ms { font-size: 16px; }
.ed-new { border-top: 1px dashed var(--line-strong); margin-top: 10px; padding-top: 8px; }
.ed-place { margin-top: 8px; }
.ed-host.editing { display: block; }
.ed-form { background: var(--surface); border: 1px solid var(--primary-soft); box-shadow: var(--shadow-1); border-radius: 12px; padding: 12px; margin: 6px 0; display: grid; gap: 8px; }
.ed-title { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.ed-title b { font-weight: 500; }
.ed-title .ms { color: var(--primary); font-size: 18px; }
.ed-fields { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ed-form textarea { min-height: 56px; resize: vertical; width: 100%; box-sizing: border-box; }
.ed-form .note, .ed-form .error { margin: 0; }
.ed-actions { margin: 0; }
.ed-pending { flex: none; align-self: center; }
.ed-pending .ms { font-size: 14px; }
.pr-panel h3 { display: flex; align-items: center; gap: 6px; }
.pr-panel h3 .ms { font-size: 18px; color: var(--primary); }
.pr-item { padding: 10px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 14px; }
.pr-item:first-of-type { border-top: 0; padding-top: 0; }
.pr-item .row.between { margin: 0; }
.pr-item b { font-weight: 500; }
.pr-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; overflow-wrap: anywhere; }
.pr-line s { color: var(--faint); }
.pr-line .ms { font-size: 16px; color: var(--faint); }
.pr-why { display: flex; gap: 6px; color: var(--muted); font-size: 13px; }
.pr-why .ms { font-size: 16px; }
.pr-actions { margin: 4px 0 0; }
.merge-pick { display: grid; gap: 8px; margin: 8px 0; }
.merge-pick label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.merge-pick label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.merge-pick input { margin-top: 3px; }

/* Undo from the audit log */
table.audit tr.undone td { color: var(--faint); }
table.audit tr.undone td:nth-child(3) { text-decoration: line-through; }
.undo-lines { margin: 8px 0; padding: 0 20px 0 0; display: grid; gap: 6px; font-size: 14px; max-height: 50vh; overflow-y: auto; }
.undo-lines li.bad { color: var(--warn); }
.undo-problem { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.undo-problem .ms { font-size: 16px; }

/* Shared folders in אנשי הקשר שלי: a row of tabs above the list */
.folder-bar { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 0 0 12px; padding-bottom: 8px; }
.folder-tab { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: 10px; min-height: 36px; padding: 0 12px; font-size: 14px; gap: 6px; }
.folder-tab .ms { font-size: 18px; }
.folder-tab .sub { font-size: 12px; }
.folder-tab:hover { background: var(--hover); box-shadow: inset 0 0 0 1px var(--line-strong); }
.folder-tab.on { background: var(--primary-soft); color: var(--on-primary-soft); box-shadow: none; }
.folder-tab.new { box-shadow: none; border: 1px dashed var(--line-strong); color: var(--primary); }
.folder-banner { flex-wrap: wrap; }
.folder-banner .sub { flex: 1; min-width: 0; }

/* הפרטים שלי and the ways of a reminder */
.profile { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.profile .panel h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.profile .panel h3 .ms { color: var(--primary); font-size: 20px; }
.profile .panel:nth-child(1), .profile .panel:nth-child(2) { grid-column: 1 / -1; }
.pf-line { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; margin-bottom: 10px; }
.pf-line .field { flex: 1 1 220px; }
.pf-table { width: 100%; border-collapse: collapse; }
.pf-table th, .pf-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.pf-table th[scope=row] { text-align: right; font-weight: 400; }
.pf-table thead th { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.pf-table thead .ms { font-size: 18px; vertical-align: middle; margin-inline-end: 4px; }
.pf-table tr:last-child th, .pf-table tr:last-child td { border-bottom: 0; }
.pf-save { position: sticky; bottom: 0; display: flex; justify-content: flex-start; align-items: center; gap: 12px; padding: 12px 0; background: linear-gradient(transparent, var(--surface) 30%); }
.switch { position: relative; display: inline-block; width: 36px; height: 20px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: var(--line-strong); border-radius: 10px; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform .15s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(-16px); }
.switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.switch input:disabled + span { opacity: .4; cursor: not-allowed; }
.way-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.way { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500;
  background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.way .ms { font-size: 18px; }
.way.on { background: var(--primary-soft); color: var(--on-primary-soft); box-shadow: none; }
.way.fixed { cursor: default; }
.way:disabled { opacity: .45; cursor: not-allowed; }
.remind-how { margin: 4px 0 8px; }
.person.unread b { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .switch span, .switch span::after { transition: none; } }

/* ================================================================= the side menu, in groups that open, as in Google's apps */
#tabs { gap: 1px; padding: 4px 0 16px 12px; }
#tabs .nav-mini-toggle { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; justify-content: center; margin: 0 8px 6px 0; background: none; color: var(--muted); }
#tabs .nav-mini-toggle:hover { background: var(--hover); box-shadow: none; }
#tabs .nav-item { width: 100%; height: 40px; min-height: 40px; border-radius: 20px; padding: 0 16px; gap: 14px; background: none; color: var(--text); font-weight: 500; font-size: 14px; justify-content: flex-start; }
#tabs .nav-item .ms { font-size: 20px; color: var(--muted); flex: none; }
#tabs .nav-item:hover { background: var(--hover); box-shadow: none; }
#tabs .nav-item:active { border-radius: 20px; }
#tabs .nav-item.on { background: var(--primary-soft); color: var(--on-primary-soft); }
#tabs .nav-item.on .ms { color: var(--on-primary-soft); font-variation-settings: "FILL" 1; }
#tabs .nav-item.level-1 { height: 34px; min-height: 34px; padding-inline-start: 48px; font-weight: 400; font-size: 13.5px; gap: 12px; }
#tabs .nav-item.level-1 .ms { font-size: 18px; }
#tabs .nav-item.level-2 { height: 32px; min-height: 32px; padding-inline-start: 66px; font-weight: 400; font-size: 13px; gap: 10px; }
#tabs .nav-item.level-2 .ms { font-size: 16px; }
.nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.nav-head { position: relative; display: flex; align-items: center; }
.nav-head .nav-item { padding-inline-end: 40px; }
#tabs .nav-toggle { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; min-height: 28px; padding: 0; border-radius: 50%; background: none; color: var(--muted); justify-content: center; }
#tabs .nav-toggle:hover { background: var(--surface-3); box-shadow: none; }
#tabs .nav-toggle .ms { font-size: 20px; transition: transform .2s var(--ease); }
.nav-group.open > .nav-head .nav-toggle .ms { transform: rotate(180deg); }
.nav-group.active > .nav-head .nav-item:not(.on) .ms { color: var(--primary); }
.nav-children { display: grid; gap: 1px; margin: 1px 0 6px; }
.nav-badge { flex: none; font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
#tabs .nav-item.on .nav-badge { color: var(--on-primary-soft); }
.nav-head .nav-badge { display: none; }
.nav-group:not(.open) > .nav-head .nav-badge { display: inline; }
body.nav-mini { --nav: 76px; }
body.nav-mini .brand-text { display: none; }
body.nav-mini .brand { width: auto; }
body.nav-mini #tabs { padding: 4px 8px 16px; }
body.nav-mini #tabs .nav-label, body.nav-mini #tabs .nav-toggle, body.nav-mini #tabs .nav-children, body.nav-mini #tabs .nav-badge { display: none; }
body.nav-mini #tabs .nav-item { padding: 0; justify-content: center; width: 56px; margin: 0 auto; }
body.nav-mini #tabs .nav-mini-toggle { margin: 0 auto 6px; }
@media (max-width: 1100px) {
  #tabs .nav-label, #tabs .nav-toggle, #tabs .nav-children, #tabs .nav-badge, #tabs .nav-mini-toggle { display: none; }
  #tabs .nav-item { padding: 0; justify-content: center; }
}
@media (max-width: 640px) {
  #tabs .nav-group, #tabs .nav-head { display: contents; }
  #tabs .nav-item { width: 48px; flex: none; }
}

/* ================================================================= while a screen loads */
.skeleton { display: grid; gap: 14px; padding-top: 4px; }
.skeleton i { display: block; border-radius: 12px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
.skeleton .sk-title { height: 34px; width: 260px; max-width: 70%; }
.skeleton .sk-line { height: 14px; width: 420px; max-width: 85%; }
.skeleton .sk-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.skeleton .sk-tiles i { height: 104px; border-radius: 20px; }
.skeleton .sk-row { height: 56px; border-radius: 16px; }
.skeleton .sk-row.short { width: 62%; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ================================================================= קלוד: a side panel beside the work */
#ai-open { height: 38px; min-height: 38px; padding: 0 12px 0 16px; gap: 6px; border-radius: 19px; background: var(--surface); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14px; font-weight: 500; margin-inline-end: 6px; }
#ai-open .ms { font-size: 20px; color: var(--primary); font-variation-settings: "FILL" 1; }
#ai-open:hover { background: var(--hover); box-shadow: inset 0 0 0 1px var(--line-strong); }
#ai-open.on { background: var(--primary-soft); color: var(--on-primary-soft); box-shadow: none; }
#ai-open { position: relative; }
.pf-desktop { display: flex; align-items: center; gap: 10px; font-weight: 500; }
#ai-open.news::after { content: ""; position: absolute; top: 4px; inset-inline-start: 4px; width: 9px; height: 9px; border-radius: 50%;
  background: #d93025; box-shadow: 0 0 0 2px var(--surface); }
#ai-panel { top: calc(var(--top) - 4px); bottom: 16px; left: 16px; height: auto; width: 420px; border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line), 0 1px 3px rgba(60, 64, 67, .12); animation: ai-in .22s var(--ease); }
#ai-panel.wide { width: min(980px, calc(100vw - var(--nav) - 48px)); box-shadow: 0 0 0 1px var(--line), var(--shadow-2); }
@keyframes ai-in { from { opacity: 0; transform: translateX(-10px); } }
@media (min-width: 1101px) { body.ai-open #content { margin-left: 452px; } }
.ai-main header { border-bottom: 1px solid var(--line); min-height: 52px; padding: 6px 8px; }
.ai-title b { font-size: 15px; font-weight: 500; }
.ai-title small { font-size: 12px; color: var(--muted); }
#ai-log { padding-top: 16px; gap: 16px; }
.ai-msg { font-size: 14px; line-height: 1.7; }
.ai-msg.mine { background: var(--surface-2); border-radius: 18px; padding: 8px 14px; font-size: 14px; }
.ai-welcome { margin: 24px 0 auto; gap: 8px; }
.ai-welcome h2 { font-size: 20px; line-height: 28px; font-weight: 500; margin: 0; }
.ai-welcome p { font-size: 13.5px; }
.ai-examples-title { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .2px; margin-top: 6px; }
.ai-examples { grid-template-columns: 1fr; gap: 6px; }
.ai-examples button { flex-direction: row; align-items: center; min-height: 44px; padding: 8px 12px; gap: 10px; border-radius: 12px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; }
.ai-examples button:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.ai-examples .ms { font-size: 20px; }
#ai-panel.wide .ai-examples { grid-template-columns: 1fr 1fr; }
#ai-working { display: none !important; }
.ai-run { align-self: stretch; font-size: 13px; color: var(--muted); }
.ai-run summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; padding: 6px 10px; margin-inline-start: -10px; border-radius: 10px; width: fit-content; max-width: 100%; }
.ai-run summary::-webkit-details-marker { display: none; }
.ai-run summary:hover { background: var(--hover); }
.ai-run-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.ai-run.done .ai-run-text { color: var(--muted); }
.ai-run-time { font-variant-numeric: tabular-nums; color: var(--faint); font-size: 12px; }
.ai-run summary .ms { font-size: 18px; color: var(--faint); transition: transform .2s var(--ease); }
.ai-run[open] summary .ms { transform: rotate(180deg); }
.ai-run ol { list-style: none; margin: 4px 0 2px; padding: 0 12px 0 0; margin-inline-start: 8px; border-inline-start: 2px solid var(--line); display: grid; gap: 6px; font-size: 12.5px; line-height: 1.5; }
.ai-spinner { width: 14px; height: 14px; flex: none; border: 2px solid var(--primary-soft); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
.ai-run.done .ai-spinner { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-input { border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.ai-input:focus-within { box-shadow: inset 0 0 0 1px var(--primary), 0 1px 3px rgba(60, 64, 67, .15); }
@media (max-width: 640px) {
  #ai-open span { display: none; }
  #ai-open { padding: 0; width: 38px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .skeleton i, .ai-spinner { animation: none; } }

/* Speaking to קלוד */
#ai-mic.recording { color: #b3261e; background: #fce8e6; animation: mic-pulse 1.4s ease-in-out infinite; }
#ai-mic.recording:hover { background: #fad2cf; }
@keyframes mic-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(179, 38, 30, .28); } 50% { box-shadow: 0 0 0 6px rgba(179, 38, 30, 0); } }
@media (prefers-reduced-motion: reduce) { #ai-mic.recording { animation: none; } }

/* התחייבויות: in the card and on their own screen */
.pledges .pl-title { margin-bottom: 8px; }
.pl-sums, .pl-nums { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); }
.pl-sums { margin-bottom: 12px; }
.pl-sums b, .pl-nums b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.pl-sums .paid b, .pl-nums .paid b { color: var(--ok); }
.pledge { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); padding: 12px 14px; display: grid; gap: 8px; margin-bottom: 10px; }
.pledge.off { opacity: .72; }
.pledge.off .pl-nums b { text-decoration: line-through; }
.pl-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.pl-head .grow { min-width: 0; }
.pl-bar { height: 6px; background: var(--surface-3); }
.pl-bar i { background: var(--ok); }
.pl-payments { font-size: 13px; }
.pl-payments th, .pl-payments td { padding: 6px 8px; }
.pl-payments .icon-btn { width: 32px; height: 32px; min-height: 32px; }
.pl-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.pl-status { display: inline-flex; align-items: center; gap: 6px; }
.pl-status select { min-height: 32px; padding-block: 2px; }
.pl-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
td.num, .pl-list td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-list tbody tr { cursor: pointer; }
.pl-list tbody tr:hover, .pl-list tbody tr:focus-visible { background: var(--hover); outline: none; }
.pl-list tr.off td { color: var(--muted); }

/* The manager's note on a contact's row, a child year by year, and the small edit dialogs */
.row-note { display: flex; align-items: center; gap: 8px; }
.row-note-line { display: flex; align-items: center; gap: 4px; color: var(--wait); font-size: 13px; margin-top: 2px; min-width: 0; }
.row-note-line span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-note-line .ms { font-size: 16px; }
.kid-years { font-size: 13px; margin: 6px 0 4px; }
.kid-years th, .kid-years td { padding: 6px 8px; }
.kid-years td .ms { font-size: 16px; vertical-align: -3px; color: var(--wait); }
.kid-years .ed-btn, .c-link .ed-btn { opacity: .7; }
.kid-years .ed-btn:hover, .c-link .ed-btn:hover { opacity: 1; }
.danger-text { color: var(--warn); }
.mv-to { display: grid; gap: 4px; margin-bottom: 10px; }
.mv-found { display: grid; gap: 2px; margin-top: 6px; max-height: 180px; overflow: auto; }
.mv-group { border-top: 1px solid var(--line); padding: 6px 0; }
.mv-group summary { cursor: pointer; font-weight: 500; }
.mv-group .check { display: flex; padding: 2px 0; font-size: 13px; }

/* לטיפול in categories: a card for each subject, and beside the items only the kinds of the chosen subject, with a scroll of its own */
.r-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 4px 0 22px; }
.r-cat { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; text-align: right; background: var(--surface-2); color: var(--text);
  border-radius: 18px; padding: 12px 14px; min-height: 72px; white-space: normal; font-weight: 400; box-shadow: none; }
.r-cat:hover { background: var(--hover); box-shadow: none; }
.r-cat.on { background: var(--primary-soft); color: var(--on-primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.r-cat.calm:not(.on) { opacity: .62; }
.r-cat-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--primary); }
.r-cat-text { display: grid; gap: 2px; min-width: 0; }
.r-cat-text b { font-weight: 500; font-size: 15px; }
.r-cat-text .sub { font-size: 12px; line-height: 16px; }
.r-cat-count { font-size: 22px; line-height: 28px; font-weight: 500; font-variant-numeric: tabular-nums; }
.r-groups { max-height: calc(100vh - var(--top, 64px) - 32px); overflow-y: auto; overscroll-behavior: contain; align-self: start; padding-bottom: 8px; }
.r-groups-title { display: flex; align-items: center; gap: 8px; padding: 4px 14px 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.r-groups-title .ms { font-size: 18px; }
@media (max-width: 900px) { .r-groups { max-height: none; overflow: visible; } .r-cats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .r-cats { grid-template-columns: 1fr; } }

/* The merge window: who stays, and who among the people is one person */
.modal.wide { max-width: 760px; width: calc(100vw - 32px); }
.mp-contacts { display: grid; gap: 4px; margin-bottom: 6px; }
.mp-contact { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 6px 8px; border-radius: 10px; }
.mp-contact:has(input:checked) { background: var(--primary-soft); }
.mp-person { border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); padding: 8px 12px; margin-bottom: 8px; display: grid; gap: 4px; }
.mp-person.joined { box-shadow: inset 0 0 0 1px var(--primary); background: var(--surface-2); }
.mp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.mp-head .ms { color: var(--primary); }
.mp-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-top: 1px solid var(--line); font-size: 14px; }
.mp-row .grow { min-width: 0; }
.mp-row select { min-height: 32px; flex: none; }
#mp-body { max-height: min(62vh, 640px); overflow-y: auto; padding-inline-end: 4px; }
.gift-amount { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.gift .ed-btn { opacity: .55; }
.gift:hover .ed-btn, .gift .ed-btn:focus-visible { opacity: 1; }

/* A free infographic Claude designed, in its frame */
.info-frame { display: block; width: 100%; height: 420px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.chart-page { grid-column: 1 / -1; }
