/* 12-in-12 community: circles, inbox, join page, About. Uses the tokens in index.html. */
nav.nav .wrap{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:1fr}
.nav button[hidden],.bell[hidden]{display:none}
.nav button{padding:0 2px;font-size:14px}
.hdr-about{display:none}
.chlogo{margin-right:auto}
.acct{flex:none;margin-block:-4px}
.bell{position:relative;margin-block:-4px;width:48px;height:48px;display:grid;place-items:center;color:#fff;border-radius:var(--r)}
.bell svg{width:26px;height:26px}
.bell .badge{position:absolute;right:2px;top:2px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--gold);color:var(--navy);font:700 12px/20px var(--f-ui);text-align:center}
.bell .badge[hidden]{display:none}
@media(max-width:520px){
  .tab-about{display:none}
  .hdr-about{display:inline-flex;align-items:center;min-height:44px;margin-block:0;padding:0 8px;color:#fff;font-weight:700;border:1px solid #ffffff66;border-radius:var(--r)}
  .bell{margin-left:0}
  /* With Circles on there is a bell as well. The header is then too full for About, so About goes back to the tab bar. */
  body:has(.bell:not([hidden])) .hdr-about{display:none}
  body:has(.bell:not([hidden])) .tab-about{display:block}
  .header-in{gap:6px}
  .header-in .divider{margin-inline:2px}
  .header-in .utl-acct-btn.out{padding:0 8px}
}
/* Phones: the bell is a 44px target and sits inside the 56px header with 6px of blue above and below (founder note, 27 Nov). */
@media(max-width:760px){.bell{width:44px;height:44px;margin-block:0}}
@media(min-width:900px){.nav button{min-width:120px}}

.nw{white-space:nowrap}
.jn-link{position:relative;color:var(--navy);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.jn-link::before{content:"";position:absolute;left:-4px;right:-4px;top:50%;height:48px;transform:translateY(-50%)}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.stack24{display:flex;flex-direction:column;gap:24px;min-width:0}
.cm{min-width:0}
.cm h2:focus,.cm h1:focus{outline:none}
.cm-chip{display:inline-flex;align-items:center;min-height:24px;padding:0 10px;border-radius:12px;border:1px solid var(--navy);color:var(--navy);font:700 13px/1.2 var(--f-ui);background:#fff;align-self:flex-start}
.cm-chip.gold{background:var(--gold);border-color:var(--gold)}
.cm-ic{display:inline-block;width:18px;height:18px;color:var(--gold)}
.cm-ic svg{width:100%;height:100%}
.cm-state{color:var(--ink)}
.cm-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px}
.cm-card{display:flex;flex-direction:column;gap:4px;text-align:left;width:100%;min-height:72px}
.cm-open{cursor:pointer;border:2px solid var(--line)}
.cm-open:hover{border-color:var(--navy)}
.cm-big{font:700 26px/1.2 var(--f-disp);color:var(--navy);font-variant-numeric:lining-nums}
.cm-gold{background:#FFF6E2;border-color:var(--gold)}
.cm-people{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px 16px}
.cm-people li{display:flex;align-items:center;gap:12px;min-height:40px;color:var(--ink)}
.cm-people li.on{color:var(--navy);font-weight:700}
.cm-dot{flex:none;width:32px;height:32px;border-radius:var(--r);border:2px dashed var(--line);display:grid;place-items:center;background:#fff}
.cm-people li.on .cm-dot{background:var(--gold);border:2px solid var(--navy);color:var(--navy)}
.cm-people .cm-dot .cm-ic{color:var(--navy);width:20px;height:20px}
.cm-cheers{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.cm-months,.cm-members,.cm-plain,.cm-cards{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px}
.cm-plain{gap:8px;list-style:disc;padding-left:24px}
ol.cm-plain{list-style:decimal}
.cm-mhead{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:4px}
.cm-mg{display:grid;grid-template-columns:repeat(auto-fill,minmax(14px,1fr));gap:3px}
.cm-c{display:block;aspect-ratio:1;border-radius:3px;border:1px solid var(--line);background:#fff}
.cm-c.none{background:#fff}
.cm-c.future{background:transparent;border:1px dashed var(--line)}
.cm-c.done{background:var(--gold);border-color:var(--navy)}
.cm-c.partial{position:relative;overflow:hidden;border-color:var(--steel)}
.cm-c.partial::after{content:"";position:absolute;left:0;right:0;bottom:0;height:50%;background:var(--gold)}
.cm-c.missed{background:var(--parch);border:2px solid var(--steel)}
.cm-c.paused{background:var(--line);border:1px dashed var(--steel)}
.legend .cm-c{width:20px;flex:none}
.cm-member{display:flex;flex-direction:column;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.cm-member:last-child{border-bottom:0;padding-bottom:0}
.cm-mname{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:baseline}
.cm-mname b{color:var(--navy)}
.cm-actions{display:flex;flex-wrap:wrap;gap:16px}
.cm-actions .btn{width:auto;min-width:48px;flex:0 1 auto}
.cm-confirm{background:#fff;border:2px solid var(--navy);border-radius:var(--r);padding:16px;display:flex;flex-direction:column;gap:16px}
.cm-caps{display:flex;flex-wrap:wrap;gap:16px}
#cm-kit:focus{outline:none}
#cm-kit{display:flex;flex-direction:column;gap:16px;border-top:1px solid var(--line);padding-top:24px}
.cm-nhead{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.cm-note.unread{border-color:var(--navy);border-width:2px}
.cm-lines{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.cm-lines li{display:flex;flex-direction:column;gap:2px;padding:12px 16px;background:#fff;border:1px solid var(--line);border-radius:var(--r)}
.cm-lines li.fresh{animation:cmin 140ms ease-out}
@keyframes cmin{from{opacity:0}to{opacity:1}}
.cm-joincount{background:var(--soft);border:1px solid var(--line);border-radius:var(--r);padding:12px 16px;color:var(--navy);font-weight:700}
.cm-joincount[hidden]{display:none}
.cm-moment{background:var(--cream);color:var(--ink);border-radius:var(--r);padding:20px;grid-column:1/-1}
.cm-moment h3{color:var(--navy)}
.cm-moment :focus-visible{outline-color:var(--navy)}
.cm-moment .btn{color:var(--navy)}
.cm-cards .card{display:flex;flex-direction:column;gap:4px}
.cm-cards .card b{font:700 20px/1.25 var(--f-disp);color:var(--navy)}
.about h1.disp{font-size:clamp(30px,6vw,44px)}
.prose{font-size:18px;line-height:1.65}
.cm-join{min-height:56px}
a.link{min-height:48px}
select.fld{background:#fff}
@media(max-width:520px){.cm-cheers{grid-template-columns:1fr}.cm-actions .btn{flex:1 1 auto}}
@media(prefers-reduced-motion:reduce){.cm-lines li.fresh{animation:none}}
.nw{white-space:nowrap}

/* Sticky parts: the blue header and the white tab bar are one sticky unit on a wide screen. Anchored scrolls land clear of them. */
html{scroll-padding-top:var(--stick-top,72px);scroll-padding-bottom:var(--stick-bottom,88px)}
@media(min-width:900px){
  nav.nav{position:sticky;top:var(--hdr,56px);z-index:19;background:#fff}
  nav.nav .wrap{display:flex}
}
.help-muted{font-size:13px;line-height:1.4;color:#5a5a5a;margin-top:4px}
.cm-prompt{background:var(--soft);border:1px solid var(--line);border-radius:var(--r);padding:12px 16px;display:flex;flex-direction:column;gap:4px;color:var(--ink)}

/* Settings blocks */
.set-block{border-top:1px solid var(--line);padding-top:24px}
.set-block h4.disp{font:600 18px/1.25 var(--f-disp);color:var(--navy);margin:0}
.settings-grid .stack24{display:flex;flex-direction:column;gap:24px}

/* About. One column on a phone in the order title, story, actions. Two columns from 900 px with a rail that stays in view. */
.about{display:flex;flex-direction:column;gap:24px}
.about-rail{display:contents}
.about-head{order:1}
.about-story{order:2}
.about-actions{order:3}
.about-line{color:var(--ink)}
.about-story.prose{--ag:20px;display:flex;flex-direction:column;gap:var(--ag);max-width:34em}
.about-story p{margin:0}
@media(min-width:900px){
  .about{display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);column-gap:72px;align-items:start;max-width:none}
  .about-rail{display:flex;flex-direction:column;gap:32px;position:sticky;top:var(--stick-top,120px)}
  .about-story.prose{--ag:24px;font-size:19px;line-height:1.75;max-width:33em}
}

/* The signature at the end of the story. Plain text in a script font, about 32 px below the last paragraph. */
.about-story p.about-signature{font-family:'Sacramento',cursive;font-weight:400;font-size:48px;line-height:1.2;color:var(--navy);margin-top:calc(32px - var(--ag));padding:0 0 .15em;text-shadow:none;text-decoration:none;overflow:visible}
@media(min-width:900px){.about-story p.about-signature{font-size:56px}}

/* The signed in head of the Profile block: the same navy band, gold rule and round gold mark as the top right menu. */
.cm-prof-head{display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--navy);color:#fff;border-radius:var(--r)}
.cm-prof-dot img{display:block;width:100%;height:100%;object-fit:cover}
.cm-prof-dot{display:grid;place-items:center;flex:none;overflow:hidden;width:44px;height:44px;border-radius:999px;background:var(--gold);color:var(--navy);font:700 16px/1 var(--f-ui)}
.cm-prof-head>div{min-width:0}
.cm-prof-name,.cm-prof-mail{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-prof-name{font-weight:700;color:#fff}
.cm-prof-mail{font-size:14px;color:var(--gold)}

/* Circle tags: one challenge, several circles. A tag is a switch for one circle only. */
.cm-share{padding:16px;border:1px solid var(--line);border-radius:var(--pr);background:var(--soft)}
.cm-share[hidden]{display:none}
.cm-tags{display:flex;flex-wrap:wrap;gap:8px}
.cm-tag{min-height:48px;max-width:100%;display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border:2px solid var(--line);border-radius:24px;background:#fff;color:var(--navy);font-weight:700;text-align:left}
.cm-tag .cm-ic{width:16px;height:16px;flex:none;color:var(--navy)}
.cm-tag-n{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(60vw,240px)}
.cm-tag-s{flex:none;font:700 12px/1.2 var(--f-ui);color:var(--steel);padding-left:4px}
.cm-tag.on{background:#FFF6E2;border-color:var(--gold)}
.cm-tag.on .cm-tag-s{color:var(--navy)}
.cm-tag:hover:not(:disabled){border-color:var(--navy)}
.cm-tag:disabled{opacity:.6;cursor:default}
.cm-share-line{color:var(--ink)}

/* The invite kit: actions and the landing page */
.cm-share-actions{display:grid;grid-template-columns:1fr;gap:12px}
.cm-share-actions .btn{width:100%;justify-content:center;text-align:center;text-decoration:none}
.cm-share-actions .link{justify-self:start}
.cm-linkmeta:empty{display:none}
@media(min-width:640px){.cm-share-actions{grid-template-columns:1fr 1fr}.cm-share-actions .link{grid-column:1/-1}}
.cm-land{max-width:680px}
.cm-land .btn.gold{width:100%;min-height:56px;font-size:18px}
.cm-land h1.disp{overflow-wrap:anywhere}
.cm-land .lead{font-size:17px}

.cm-report{border-top:1px solid var(--line);padding-top:16px}
.cm-report-link{color:var(--steel);font-weight:400;font-size:14px;min-height:48px}

/* Circle page: the answer first, folded invite kit, roomier switches, space above the feedback button */
.cm{padding-bottom:84px}
.cm-check{padding:12px 0;border-top:1px solid #E4DDCF;display:grid;gap:6px}
.cm-check:first-child{border-top:0;padding-top:0}
.cm-check.done b{color:var(--navy)}
.cm-fold summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font:700 15px/1.3 var(--f-ui);color:var(--navy)}
.cm-glance{margin-top:4px}
.cm-glance-row{display:flex;flex-wrap:wrap;gap:4px;align-items:center;min-height:44px;text-align:left}
.cm-open-hint{font-weight:700;text-decoration:underline}
.cm .check{display:flex;align-items:center;gap:12px;min-height:44px}
.cm .check input[type="checkbox"]{width:24px;height:24px;flex:none}

/* One switch with its words on it, a folded "More choices", and the circles under the Calendar */
.cm-switch{width:100%;min-height:52px;display:flex;align-items:center;gap:12px;padding:8px 14px;border:2px solid var(--line);border-radius:14px;background:#fff;color:var(--navy);font:700 16px/1.3 var(--f-ui);text-align:left;cursor:pointer}
.cm-switch:hover:not(:disabled){border-color:var(--navy)}
.cm-switch:disabled{opacity:.6;cursor:default}
.cm-sw-l{flex:1;min-width:0}
.cm-sw-t{flex:none;width:46px;height:26px;border-radius:13px;background:#B9C3CF;position:relative;transition:background .15s}
.cm-sw-t i{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:left .15s}
.cm-switch.on{background:#FFF6E2;border-color:var(--gold)}
.cm-switch.on .cm-sw-t{background:var(--navy)}
.cm-switch.on .cm-sw-t i{left:23px}
.cm-sw-s{flex:none;min-width:2.2em;font-size:14px;color:var(--steel)}
.cm-switch.on .cm-sw-s{color:var(--navy)}
.cm-fold{border-top:1px solid var(--line);padding-top:8px}
.cm-fold > .stack16{margin-top:16px}
.cal-circles{margin-top:32px}
.cm-calcircle{padding-top:8px}
@media (prefers-reduced-motion:reduce){.cm-sw-t,.cm-sw-t i{transition:none}}

/* Calendar: tick a circle to see the days its people stamped, as small dots on your own month */
.cal-ov:empty{display:none}
.cal-ov{margin-top:16px}
.cal-ov .check{display:flex;align-items:center;gap:12px;min-height:44px}
.cal-ov .check input[type="checkbox"]{width:24px;height:24px;flex:none}
.cell .ov{position:absolute;left:1px;right:1px;bottom:4px;display:flex;gap:2px;justify-content:center;align-items:center;pointer-events:none}
.cell .ov i{width:8px;height:8px;border-radius:50%;box-shadow:0 0 0 1.5px #fff;flex:none}
.cell .ov i.h{background:linear-gradient(90deg,var(--c) 50%,#fff 50%) !important}
.cell .ov i.o{background:#fff !important;box-shadow:inset 0 0 0 2px var(--c),0 0 0 1.5px #fff}
.cell .ov b{font:900 9px/1 var(--f-ui);color:var(--ink)}
.cell.has-ov svg{margin-top:-2px}
.cell.has-ov .tlab{margin-top:-4px;font-size:10px}
.cal-ovkey{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.cal-ovkey li{display:flex;align-items:center;gap:10px}
.cal-ovkey i{width:12px;height:12px;border-radius:50%;flex:none;box-shadow:0 0 0 1.5px #fff,0 0 0 2.5px var(--line)}

/* The people strip: who stamped today, one chip per person, in the same colours as the dots on the calendar */
.cm-today:empty,.cal-people:empty{display:none}
.cm-today,.cal-people{margin-top:4px}
.cm-strip{padding:24px 0 0;border-top:1px solid var(--line)}
.cm-fold-h{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:44px;padding:0;text-align:left;border-radius:6px}
.cm-fold-h:hover{background:var(--cream)}
.cm-fold-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.cm-fold-h:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.cm-fold-h:focus-visible .cm-pm{border-color:var(--navy)}
.cm-fold-h:active .cm-pm{background:var(--line)}
.cm-pm{position:relative;flex:none;width:28px;height:28px;border:1px solid var(--steel);border-radius:6px;background:#fff}
.cm-pm:before,.cm-pm:after{content:"";position:absolute;left:50%;top:50%;background:var(--navy);transform:translate(-50%,-50%)}
.cm-pm:before{width:12px;height:2px}
.cm-pm:after{width:2px;height:12px}
.cm-pm.open:after{display:none}
.cm-fold-body[hidden]{display:none}
.cm-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:12px}
.cm-pc{display:grid;grid-template-columns:auto;justify-items:center;gap:2px;min-width:64px;max-width:92px;min-height:44px;text-align:center;padding:4px 6px;border-radius:8px}
.cm-pc.sel{background:#fff}
.cm-pc:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.cm-av{position:relative;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:#fff;font:700 18px/1 var(--f-ui);background:var(--steel)}
.cm-pc.is-waiting .cm-av{background:#fff !important;color:var(--navy);box-shadow:inset 0 0 0 2px var(--navy)}
.cm-pc.is-stamped{opacity:.6}
.cm-pc.is-stamped .cm-pcs{color:var(--steel)}
.cm-pc.is-paused .cm-av{opacity:.55}
.cm-pc.is-private .cm-av{background:#fff;color:var(--steel);box-shadow:inset 0 0 0 2px var(--steel);border:2px dashed var(--steel)}
.cm-pn{font:700 14px/1.2 var(--f-ui);color:var(--navy);max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-pcs{font:400 13px/1.2 var(--f-ui);color:var(--ink)}
.cm-pc.is-private .cm-pcs,.cm-pc.is-paused .cm-pcs{color:var(--steel);font-style:normal}
.cm-detail{margin:0;color:var(--ink)}
.cm-detail b{color:var(--navy)}
.cm-detail .cm-sub{display:block;font-size:14px;color:var(--steel)}
.cm-mine{margin:0}
@media(prefers-reduced-motion:reduce){.cm-fold-h,.cm-pm{transition:none}}

.cm-rows{list-style:none;margin:0;padding:0}
.cm-rows li+li .cm-row{border-top:1px solid var(--line)}
.cm-row{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:56px;padding:12px 0;text-align:left;color:var(--navy);font-size:20px}
.cm-row-t{display:flex;flex-direction:column;gap:2px;min-width:0;color:var(--ink);font-size:16px}
.cm-row-t b{color:var(--navy)}
.cm-row:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.rem-line{margin:0}
.rem-set{color:var(--steel)}

.seg{display:flex;border:2px solid var(--navy);border-radius:8px;overflow:hidden;width:100%;margin-bottom:16px}
.seg button{flex:1;min-height:44px;font-weight:700;color:var(--navy)}
.seg button[aria-pressed="true"]{background:var(--navy);color:#fff}
.seg button:focus-visible{outline:2px solid var(--gold);outline-offset:-4px}
.cal-week[hidden],[data-cal-month][hidden]{display:none}
.cm-week{width:100%;border-collapse:collapse;table-layout:fixed}
.cm-week th{font:700 11px/1.3 var(--f-ui);color:var(--steel);text-align:center;padding:0 0 6px}
.cm-week th span{display:block;font-size:13px;color:var(--ink)}
.cm-week th.now span{color:var(--navy);text-decoration:underline}
.cm-week th:first-child,.cm-week th.cm-wn{width:112px}
.cm-week td,.cm-week th.cm-wn{border-top:1px solid var(--line);padding:10px 0;text-align:center;vertical-align:middle}
.cm-week th.cm-wn{text-align:left;padding-right:8px;font-weight:400}
.cm-wn b{display:block;color:var(--navy);font-size:14px;line-height:1.2}
.cm-wn span{display:block;font-size:12px;color:var(--steel);line-height:1.2;overflow-wrap:anywhere}
.cm-wc{display:inline-grid;place-items:center;min-width:24px;min-height:24px}
.cm-wd{display:block;width:14px;height:14px;border-radius:50%}
.cm-wd.h{background:linear-gradient(90deg,var(--c) 50%,#fff 50%) !important;box-shadow:inset 0 0 0 2px var(--c)}
.cm-wd.o{background:#fff !important;box-shadow:inset 0 0 0 2px var(--c)}
.cm-wd.f{box-shadow:inset 0 0 0 2px var(--c)}
.cal-ov .check{min-height:44px;display:flex;align-items:center;gap:12px}

.step{display:block;font:700 14px/1.3 var(--f-ui);color:var(--navy);margin:0 0 8px}
.share-grid .row2{gap:16px}

/* Share: two parts at the same level. About: one quiet line. Changing a challenge. */
.sharecard{margin-bottom:0}
.sharecard + .appshare{margin-top:24px}
.about-tiny{margin:24px 0 0;text-align:center;font-size:14px}
.about-tiny .link{font-size:14px}
.inline-links{display:flex;gap:16px;flex-wrap:wrap}
.danger-link{color:#8A1F1F}
.cal-ovkey[hidden]{display:none}
