
.coop-lower { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.coop-lower:focus { outline: none; }

/* Discord invite under the cards */
.coop-lower__discord {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  --btn-face: #5865f2;
  --btn-ink: #fff;
  --btn-ink-shadow: rgba(0, 0, 0, 0.35);
  --btn-lip: #2c3494;
  --btn-shell: color-mix(in srgb, #2c3494 70%, #0a0c22);
}
.coop-lower__discord .icon { width: 1.2rem; height: 1.2rem; flex: none; }

/* ---------- card grid ---------- */
.coop-lower__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.coop-card.pixel-frame { height: 33.75rem; display: flex; flex-direction: column; min-width: 0; padding: var(--frame-rim, 14px); background: #12101c; }
/* Steward Stats is only as tall as its rows. The old fixed height left an empty third. */
.coop-card--chikling.pixel-frame { height: auto; }
.coop-card--chikling .coop-card__body,
.coop-card--chikling .flock-strip,
.coop-card--chikling .flock-strip__list { flex: 0 0 auto; overflow: visible; }
.coop-card--forecast.pixel-frame { height: auto; align-self: start; }
.coop-card--forecast .fc-card { min-height: 0; }
.coop-card__window {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  background: linear-gradient(180deg, #1f2c4f, #172240);
  box-shadow: inset 0 6px 14px rgb(0 0 0 / 45%);
}
/*
 * Card chrome tokens. Heads are green enamel (v3). Grain stays for other plates.
 * (No backticks in this block · they close the css.ts template string.)
 */
.coop-lower {
  --wood-hi: #8a5c36;
  --brass-dk: #8a6a28;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='130'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.32' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.05  0 0 0 0 0.02  1.5 0 0 0 -0.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
/* Green enamel heads (Coop v3 Variation 6). Scoped here so location .section-head stays wood. */
.coop-lower .coop-card__head--enamel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 13px;
  border: 0;
  border-bottom: 1px solid rgb(214 180 94 / 75%);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgb(255 220 150 / 10%), transparent 22%, transparent 78%, rgb(255 220 150 / 10%)),
    repeating-linear-gradient(180deg, rgb(255 255 255 / 3.5%) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #52713a 0%, #3c592c 48%, #263c20 100%);
  box-shadow: inset 0 -3px 5px rgb(0 0 0 / 42%), 0 1px 0 #1a0e06;
  color: #f5e8c6;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  text-shadow: 0 1px 0 rgb(0 0 0 / 80%);
  margin: 0;
  cursor: pointer;
}
.coop-lower .coop-card__head--enamel::before,
.coop-lower .coop-card__head--enamel::after { content: none; }
.coop-lower .coop-card__head--static { cursor: default; }
button.coop-card__head { cursor: pointer; }
.coop-card__head .news-unread-dot { top: 5px; right: 14px; }
button.coop-card__head:active { transform: translateY(1px); filter: brightness(0.92); }
button.coop-card__head:focus-visible { outline: 3px solid #f3cf74; outline-offset: -3px; }
.coop-card__head > svg, .coop-card__head > .icon { flex: none; width: 20px; height: 20px; }
.coop-card__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coop-lower .coop-card__more { flex: none; margin-left: auto; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; text-transform: none; color: #f1d28a; white-space: nowrap; }
.coop-lower button.coop-card__head--enamel:hover { filter: brightness(1.1); }
.coop-lower button.coop-card__head--enamel:hover .coop-card__more { color: #fff2c8; text-decoration: underline; }
.coop-card__body { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; min-height: 0; padding: 0.65rem; }
.coop-card__empty { margin: 0; color: var(--muted); font-size: 0.88rem; }
.coop-card__viewall {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 0.5rem 0.8rem;
  border: 1px solid #1a0e06;
  border-radius: 4px;
  background: linear-gradient(180deg, #5a3a1f, #432a15);
  box-shadow: inset 0 1px 0 rgb(255 225 180 / 30%), 0 3px 0 #1a0e06;
  color: #f6e6c0;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.coop-card__viewall:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgb(255 225 180 / 30%), 0 1px 0 #1a0e06; }

/* forecast card holds the existing forecast component */
.coop-card--forecast .coop-card__body { padding: 0 0 0.4rem; overflow-y: auto; scrollbar-width: thin; }
.coop-card--forecast .wx-forecast { width: 100%; max-width: none; margin: 0; box-shadow: none; border: 0; }

/* ---------- chronicle card ---------- */
.coop-card--chronicle .coop-card__body { overflow-y: auto; scrollbar-width: thin; }
.chron-rows { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.chron-rows .chron-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #8a6a38;
  border-radius: 3px;
  background: linear-gradient(180deg, #e8d3a2, #d4b87c);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%);
  color: #3a2410;
}
.chron-rows .chron-row::after { display: none; }
.chron-rows .chron-row > svg, .chron-rows .chron-row > .icon { flex: none; width: 24px; height: 24px; }
.chron-rows .chron-row div { min-width: 0; }
.chron-rows .chron-row b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 0.9rem; line-height: 1.2; overflow: hidden; }
.chron-rows .date-stamp { display: inline; padding: 0; border: 0; background: none; box-shadow: none; color: #6a5230; font-size: 0.72rem; }
.chron-rows .date-stamp *, .chron-rows .date-stamp__weekday { color: inherit !important; border: 0; padding: 0; background: none; box-shadow: none; }
.chron-rows .date-stamp__weekday::before, .chron-rows .date-stamp__weekday::after { display: none; }
.chron-rows .chron-row time { display: block; margin-top: 0.1rem; font-size: 0.72rem; color: #6a5230; }
.news-unread-dot--row { display: none; position: static; flex: none; margin-left: auto; }
.chron-rows .chron-row.is-new .news-unread-dot--row { display: block; }

/* ---------- skills card ---------- */
.coop-card--skills .coop-card__body { overflow: hidden; }
/* Wide desktop stays 4-up. Medium and squarer widths drop to 3. Phones use 2. */
.skills-grid--card { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; align-content: start; }

/* ---------- chikling card ---------- */
.chikling-stats { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.6rem; border: 1px solid #29435c; border-radius: 3px; background: radial-gradient(ellipse at 50% 0%, rgb(82 139 171 / 16%), transparent 56%), linear-gradient(180deg, #15263c, #0d192b); box-shadow: inset 0 1px 0 rgb(218 241 250 / 10%), inset 0 3px 9px rgb(0 0 0 / 45%); }
.chikling-stats__top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.chikling-portrait-wrap { position: relative; width: max-content; max-width: 11rem; }
.chikling-portrait-wrap .fp-meter--on-portrait {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: 1.2rem;
  margin: 0;
  border-radius: 0;
}
.chikling-stats .chikling-id { display: flex; flex-direction: column; gap: 0.28rem; min-width: 0; }
.chikling-name { margin: 0; font-size: 1.35rem; line-height: 1.12; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chikling-line { margin: 0; font-size: 0.95rem; color: #e6d8b4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chikling-line--roost { display: flex; align-items: center; gap: 0.3rem; color: #f3cf74; }
.chikling-line--roost > svg, .chikling-line--roost > .icon { flex: none; width: 16px; height: 16px; }
.rarity { font-weight: 700; color: #d8d2c0; }
.chikling-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 0.8rem; margin: 0.2rem 0 0; padding: 0; list-style: none; }
.chikling-facts li { display: flex; flex-direction: column; min-width: 0; font-size: 0.9rem; }
.chikling-facts small { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: #d0b888; }
.chikling-adult { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #f3cf74; }
.mini-bar { display: flex; flex-direction: column; gap: 3px; }
.mini-bar__top { display: flex; justify-content: space-between; gap: 6px; font-size: 0.76rem; color: #e6d8b4; }
.mini-bar__top small { font-size: 0.76rem; color: var(--muted); }
.mini-bar__track { height: 9px; border: 1px solid #000; border-radius: 2px; background: #05070f; overflow: hidden; }
.mini-bar__track span { display: block; height: 100%; background: linear-gradient(180deg, #9bdc7a, #4aa044); }
.chikling-id .affinity-pair { margin-top: 0.15rem; }
.affinity-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.affinity-chip { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 5px 6px; border: 1px solid #1a0e06; border-radius: 3px; background: rgb(14 9 6 / 55%); box-shadow: inset 0 3px 9px rgb(0 0 0 / 65%); }
.affinity-chip > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.affinity-chip__kind { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: #d0b888; }
.affinity-chip__skill { font-size: 0.88rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.affinity-chip__skill b { color: #79d164; }
.steward-stats--card { margin-top: 0.15rem; }
.steward-stats__grid--card { gap: 5px; }
.steward-stats__grid--card .steward-stats__tile { padding: 6px 5px; }
.steward-stats__grid--card .steward-stats__tile span { font-size: 0.58rem; }
.steward-stats__grid--card .steward-stats__tile b { font-size: 0.9rem; }
.flock-strip { display: flex; flex-direction: column; gap: 0.45rem; flex: 1; min-height: 0; padding: 0.5rem; border: 1px solid #1a0e06; border-radius: 3px; background: rgb(14 9 6 / 45%); box-shadow: inset 0 3px 9px rgb(0 0 0 / 55%); }
.flock-strip__head { display: flex; justify-content: space-between; gap: 0.5rem; margin: 0; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #d0b888; }
.flock-strip__all { color: #f3cf74; text-decoration: none; letter-spacing: 0.02em; text-transform: none; white-space: nowrap; }
.flock-strip__all:hover { text-decoration: underline; }
.flock-strip__list { display: flex; flex-direction: column; gap: 7px; flex: 1; min-height: 0; margin: 0; padding: 0; list-style: none; overflow: hidden; }
.flock-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.2rem 0.6rem; padding: 0.45rem; border: 1px solid #1a0e06; border-radius: 3px; background: rgb(0 0 0 / 28%); }
.flock-row[hidden] { display: none; }
.flock-row__main { min-width: 0; }
.flock-row__top { margin: 0; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flock-row__sub { display: flex; gap: 0.5rem; margin: 0; font-size: 0.76rem; color: #e6d8b4; }
.flock-row__adult { margin: 0.1rem 0 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #f3cf74; }
.flock-row__aff { grid-column: 1 / -1; display: flex; gap: 0.7rem; margin: 0; font-size: 0.76rem; color: #e6d8b4; overflow: hidden; white-space: nowrap; }
.flock-row__aff span { overflow: hidden; text-overflow: ellipsis; }
.flock-row__aff b { color: #79d164; }
.chikling-egg { display: flex; flex-direction: column; gap: 0.6rem; }
.chikling-egg p { margin: 0; color: var(--muted); }
dialog.modal--chikling .flock-strip__list { overflow: visible; }
/* Flock stills · raise birds ~3px so feet clear the scene crop. */
dialog.modal--chikling .flock-row .visual-asset canvas,
dialog.modal--chikling .flock-row .chikling-portrait {
  transform: translateY(-3px);
}

/* ---------- forecast pop-up ---------- */
.v2-cols--forecast {
  gap: 1rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}
.fc-next-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  margin: 0 0 0.15rem;
  padding: 0.12rem 0.6rem 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgb(214 180 94 / 70%);
  background: rgb(18 10 4 / 62%);
  color: #f6e6c0;
  line-height: 1.35;
}
.fc-next-pill span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e7c98a;
}
.fc-next-pill b { font-size: 0.92rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.v2-cols--forecast .v2-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #e7c98a;
}
.v2-cols--forecast .v2-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgb(214 180 94 / 45%);
}
.fc-popup-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fc-popup-strip .fc-card-col { min-height: 100%; }
.fc-tip { margin: 0; padding: 0.55rem 0.7rem; border: 1px solid #8a6a38; border-radius: 3px; background: linear-gradient(180deg, #e8d3a2, #d4b87c); color: #3a2410; font-size: 0.88rem; }
.fc-tip b { margin-right: 0.35rem; }
.fc-note { margin: 0; font-size: 0.78rem; color: var(--muted); }

/* ---------- forecast card body ---------- */
.fc-card { display: flex; flex-direction: column; gap: 0; min-height: 100%; }
.fc-card-banner { position: relative; display: flex; flex-direction: column; justify-content: flex-end; flex: none; overflow: hidden; min-height: 8.4rem; border: 1px solid #1a0e06; border-radius: 2px 2px 0 0; background: #101822; box-shadow: inset 0 6px 14px rgb(0 0 0 / 55%); }
/* Scenes are portrait. Cover-at-center cropped the moon and sun and left a soft empty band. */
.fc-card-banner > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.fc-card-banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgb(8 12 20 / 46%) 0%, transparent 58%); }
.fc-card-banner__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.15rem; margin-top: auto; padding: 1.4rem 0.75rem 0.65rem; background: linear-gradient(180deg, transparent 10%, rgb(6 8 14 / 68%)); }
.fc-banner-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fc-card-banner__name { margin: 0; font-size: 1.3rem; line-height: 1.1; font-weight: 700; color: #fff6dc; text-shadow: 0 2px 0 rgb(0 0 0 / 70%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-card-banner__until { margin: 0; font-size: 0.74rem; letter-spacing: 0.04em; color: #b8c0cc; text-shadow: 0 1px 1px rgb(0 0 0 / 80%); white-space: nowrap; }
.fc-card-banner__until::before { content: ""; display: inline-block; width: 0.4rem; height: 0.4rem; margin-right: 0.4rem; transform: rotate(45deg); background: #d6b45e; box-shadow: 0 0 0 1px rgb(0 0 0 / 60%); }
.fc-card-banner__blurb { margin: 0.15rem 0 0; font-size: 0.82rem; line-height: 1.35; color: #d8c8a8; text-shadow: 0 1px 2px rgb(0 0 0 / 85%); }
.fc-card-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; flex: 1; min-height: 0; margin: 0; padding: 0.7rem 0.65rem 0.15rem; list-style: none; border-top: 2px solid #6a5220; box-shadow: inset 0 1px 0 #e0bd65; }
.fc-card-col { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; min-width: 0; padding: 0.45rem 0.25rem; border: 1px solid #1a0e06; border-radius: 3px; background: rgb(14 9 6 / 55%); box-shadow: inset 0 3px 9px rgb(0 0 0 / 55%); }
.fc-card-col.is-now { box-shadow: inset 0 3px 9px rgb(0 0 0 / 55%), 0 0 0 1px #d6b45e; }
/* Card strip only: v6 blue columns. Scene banner above stays the painted forecast. */
.fc-card-strip .fc-card-col {
  border-top: 2px solid #477b97;
  border-color: #29435c;
  border-top-color: #477b97;
  background: radial-gradient(ellipse at 50% 0%, rgb(82 139 171 / 15%), transparent 56%), linear-gradient(180deg, #15263c, #0d192b);
  box-shadow: inset 0 1px 0 rgb(218 241 250 / 8%);
}
/* Current slot reads as brass against the blue upcoming columns. */
.fc-card-strip .fc-card-col.is-now,
.fc-popup-strip .fc-card-col.is-now {
  border-color: #6a5220;
  border-top-color: #e0bd65;
  background:
    radial-gradient(ellipse at 50% 0%, rgb(224 189 101 / 24%), transparent 64%),
    linear-gradient(180deg, #3a2a14, #1a120c);
  box-shadow: inset 0 1px 0 rgb(224 189 101 / 45%), 0 0 0 1px rgb(214 180 94 / 40%);
}
.fc-card-strip .fc-card-col__time { color: #c5d8e4; font-weight: 800; }
.fc-card-col.is-now .fc-card-col__time { color: #f3cf74; }
.fc-card-col__time { font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: #cdbf9f; white-space: nowrap; }
.fc-card-tile { position: relative; display: grid; place-items: center; width: 100%; max-width: 3.4rem; aspect-ratio: 1; border: 1px solid #000; border-radius: 3px; background: linear-gradient(180deg, var(--slot-a), var(--slot-b)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%), inset 0 -8px 12px rgb(0 0 0 / 30%); }
.fc-card-tile > svg { width: 62%; height: 62%; }
.fc-card-tile__now { position: absolute; bottom: -0.45rem; padding: 0 0.3rem; border-radius: 2px; background: #d6b45e; color: #2a1608; font-size: 0.55rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.fc-card-col__name { margin-top: 0.2rem; max-width: 100%; font-size: 0.86rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-card-col__bars { display: flex; flex-direction: column; gap: 0.35rem; width: 100%; margin-top: auto; }
.fc-card-quiet { font-size: 0.66rem; color: #a89b80; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-card-bar { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 0.62rem; color: #cdbf9f; }
.fc-card-bar__top { display: flex; justify-content: space-between; gap: 0.2rem; white-space: nowrap; }
.fc-card-bar__top > span { overflow: hidden; text-overflow: ellipsis; }
.fc-card-bar__track { position: relative; display: block; height: 0.5rem; border-radius: 1px; border: 1px solid #000; background: linear-gradient(180deg, #05080c, #0e1218); box-shadow: 0 1px 0 rgb(255 220 170 / 22%), inset 0 2px 3px rgb(0 0 0 / 80%); overflow: hidden; }
.fc-card-bar__track::after { content: ""; position: absolute; top: 0; bottom: 0; left: 66.667%; width: 1px; background: rgb(214 180 94 / 85%); }
.fc-card-bar__track i { display: block; height: 100%; max-width: 100%; background: linear-gradient(180deg, rgb(255 255 255 / 35%), rgb(255 255 255 / 0) 45%, rgb(0 0 0 / 25%)), linear-gradient(90deg, #4a7a80, #9cd0c8); }
.fc-card-bar--up .fc-card-bar__track i { background: linear-gradient(180deg, rgb(255 255 255 / 35%), rgb(255 255 255 / 0) 45%, rgb(0 0 0 / 25%)), linear-gradient(90deg, #3f8a4a, #8ad06a); }
.fc-card-bar--down .fc-card-bar__track i { background: linear-gradient(180deg, rgb(255 255 255 / 35%), rgb(255 255 255 / 0) 45%, rgb(0 0 0 / 25%)), linear-gradient(90deg, #8a3a2a, #e08a5a); }
.fc-card .fc-card-next { display: flex; align-items: center; gap: 0.5rem; flex: none; min-height: 36px; margin: 0 0.65rem 0.65rem; padding: 0 0.7rem; border: 1px solid #456b7c; border-radius: 0; background: linear-gradient(90deg, #17384c, #12283d 70%, #192b3b); box-shadow: inset 0 1px 0 rgb(218 241 250 / 11%), 0 2px 4px rgb(0 0 0 / 34%); color: #d8eaf0; }
.fc-card .fc-card-next__label { font-size: 0.6rem; letter-spacing: 0.09em; text-transform: uppercase; color: #94cde0; white-space: nowrap; }
.fc-card .fc-card-next__name { flex: 1; margin: 0; font-size: 0.92rem; font-weight: 800; line-height: 1.15; color: #ffe0a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-card .fc-card-next__when { font-size: 0.7rem; font-variant-numeric: tabular-nums; color: #c1d3dc; white-space: nowrap; }

/* ---------- breakpoints ---------- */
@media (max-width: 72rem) {
  /* Short cards tuck under the one above them. Steward sits under Forecast, not under Skills. */
  .coop-lower__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "forecast skills"
      "chikling skills";
  }
  .coop-card--forecast { grid-area: forecast; }
  .coop-card--skills { grid-area: skills; }
  .coop-card--chikling { grid-area: chikling; }
}
@media (max-width: 45rem) {
  .coop-lower__cards { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; }
  .coop-card--forecast,
  .coop-card--skills,
  .coop-card--chikling { grid-area: auto; }
  .fc-card { min-height: 0; gap: 0.4rem; }
  .fc-card-banner { min-height: 6.2rem; }
  .fc-card-strip { flex: none; }
  .fc-card-strip .fc-card-col { gap: 0.15rem; padding: 0.35rem 0.15rem 0.4rem; }
  .fc-card-strip .fc-card-col__bars { margin-top: 0.2rem; }
  .fc-card-col__name { margin-top: 0.05rem; }
  .skills-grid--card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coop-card--skills.pixel-frame,
  .coop-card--skills .coop-card__window,
  .coop-card--skills .coop-card__body,
  .coop-card--skills .skills-grid--card {
    height: auto;
    min-height: 0;
    overflow: visible;
    flex: none;
  }
}


.coop-stage--v2 {
  --night-ink: #070b1c;
  --slate-line: #2d3654;
  --slate-window: var(--page-panel-slate, radial-gradient(rgba(255,255,255,.04) 1px,transparent 1.2px) 0 0/7px 7px,linear-gradient(180deg,#27315a 0%,#1a2342 100%));
  --wood-1: #6b4426;
  --wood-2: #55341c;
  --wood-3: #3b2412;
  --wood-hi: #8a5c36;
  --wood-lo: #24150a;
  --brass: #d6b45e;
  --brass-dk: #8a6a28;
  --cream: #f4e8c8;
  --parchment: #e8d3a1;
  --parchment-dark: #c7a86c;
  --parchment-ink: #3a2814;
  --text-muted: #cdbf9f;
  --green-face: #3e9a3a;
  --green-edge: #22611f;
  --accent-purple: #9b6dff;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='130'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.32' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.05  0 0 0 0 0.02  1.5 0 0 0 -0.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --board-width: 360px;
  --art-height: 520px;
  --art-clearance: 300px;
  --strip-h: 350px;
  position: relative;
  min-width: 0;
  padding: var(--frame-rim, 14px);
  background: #12101c;
  color: var(--cream);
}
.coop-stage--v2 .num { font-variant-numeric: tabular-nums; }
.coop-stage--v2 .ink-shadow { text-shadow: 0 1px 0 rgba(0,0,0,.85); }
.coop-stage--v2 .recess {
  border-radius: 3px;
  border: 1px solid #1a0e06;
  background: rgba(14,9,6,.55);
  box-shadow: inset 0 3px 9px rgba(0,0,0,.65),0 1px 0 rgba(255,220,170,.2);
}
.coop-stage--v2 .paper {
  background: radial-gradient(circle at 20% 30%,rgba(255,255,255,.25),transparent 40%),radial-gradient(circle at 85% 80%,rgba(120,80,30,.18),transparent 45%),linear-gradient(180deg,var(--parchment),var(--parchment-dark));
  color: var(--parchment-ink);
}
.coop-stage--v2 .wood-plate {
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .42rem 1.4rem;
  border-radius: 3px;
  border: 1px solid #1a0e06;
  color: var(--cream);
  background: var(--grain),linear-gradient(180deg,#432a15,#2c1b0d);
  box-shadow: inset 0 1px 0 rgba(255,220,170,.16),inset 0 -1px 0 rgba(0,0,0,.5),0 3px 6px rgba(0,0,0,.5);
  text-shadow: 0 1px 0 rgba(0,0,0,.8);
}
.coop-stage--v2 .wood-plate::before,
.coop-stage--v2 .wood-plate::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%,#e8d49a,var(--brass-dk) 70%);
  box-shadow: 0 1px 0 rgba(0,0,0,.6);
}
.coop-stage--v2 .wood-plate::before { left: 7px; }
.coop-stage--v2 .wood-plate::after { right: 7px; }
.coop-stage--v2 .press-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  border: 2px solid rgba(0,0,0,.55);
  border-bottom-width: 5px;
  border-radius: 5px;
  cursor: pointer;
  line-height: 1;
  padding: .45em .8em;
  font: inherit;
  text-decoration: none;
  transition: filter .12s,transform .06s,border-bottom-width .06s;
}
.coop-stage--v2 .press-button:active { transform: translateY(3px); border-bottom-width: 2px; }
.coop-stage--v2 .press-button:focus-visible { outline: 3px solid #f3cf74; outline-offset: 2px; }
.coop-stage--v2 .press-button--green {
  background: linear-gradient(180deg,#56b84f,var(--green-face) 55%,#33852f);
  border-color: var(--green-edge);
  color: #fff6dd;
  text-shadow: 0 2px 0 rgba(0,0,0,.4);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.28),0 0 20px rgba(95,200,80,.28);
}
.coop-stage--v2 .press-button--compact { font-size: .9rem; padding: .38em .7em; }
.coop-stage--v2 .press-button .icon, .coop-stage--v2 .press-button img, .coop-stage--v2 .press-button svg { flex: none; }

/* ---------- hero ---------- */
.coop-hero {
  position: relative;
  display: grid;
  min-height: clamp(580px, 38vw, 720px);
  background:
    radial-gradient(90% 40% at 50% 0, #17204a 0, transparent 70%),
    linear-gradient(180deg, #0b1030, var(--night-ink) 520px);
  isolation: isolate;
  overflow: hidden;
  grid-template-rows: minmax(0, 1fr);
  border: 1px solid #1a0e06;
  box-shadow: inset 0 0 0 1px rgba(196,168,88,.35),inset 0 6px 14px rgba(0,0,0,.55);
}
.coop-hero > picture { display: contents; }
.coop-hero__art {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
  display: block;
  height: 100%;
  width: calc(100% - var(--board-width));
  max-width: none;
  object-fit: cover;
  object-position: 30% 34%;
  filter: saturate(.8) contrast(.93) brightness(.95);
}
.coop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,rgba(6,9,24,.9) 0%,rgba(6,9,24,.62) 26%,rgba(6,9,24,.12) 42%,transparent 54%),radial-gradient(120% 90% at 55% 45%,transparent 55%,rgba(4,6,16,.5) 100%),linear-gradient(0deg,rgba(6,9,24,.55),transparent 24%);
}
.coop-hero__inner {
  display: grid;
  grid-template-columns: minmax(290px,430px) minmax(0,1fr) var(--board-width);
  gap: 24px;
  align-items: start;
  padding: 18px 0 18px 20px;
  align-self: stretch;
  grid-row: 1;
  grid-column: 1;
}
.welcome-column {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,.8);
}
.welcome-column__greeting {
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
  font-size: 1.3rem;
  line-height: 1.2;
  white-space: nowrap;
}
.welcome-column__greeting strong {
  display: inline;
  min-width: 0;
  font-size: 2rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.veil-status {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.6rem,4.1vw,3.9rem);
  line-height: 1;
  letter-spacing: -.015em;
  white-space: nowrap;
  color: #fdf3d8;
  text-shadow: 0 0 34px rgba(255,200,120,.28),0 3px 0 rgba(0,0,0,.5);
}
@media (max-width: 34rem) {
  .veil-status {
    white-space: normal;
    text-wrap: balance;
  }
}
.ornament-rule { display: flex; align-items: center; gap: 8px; color: var(--brass); max-width: 340px; }
.ornament-rule::before { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg,transparent,var(--brass)); }
.ornament-rule::after { content: ""; flex: 1; height: 2px; background: linear-gradient(270deg,transparent,var(--brass)); }
.welcome-column__flavor { margin: 0; font-size: 1.12rem; max-width: 34ch; color: #ece0c2; }
.egg-power { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.egg-power__head { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; font-weight: 600; }
.egg-power__help {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--text-muted);
  font-size: .75rem;
  color: var(--text-muted);
  background: none;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.egg-power__help::after { content: ""; position: absolute; inset: -12px; }
.egg-power__help:hover { color: #f3cf74; border-color: #f3cf74; }
.egg-power__help:active { transform: translateY(1px); }
.egg-power__value { margin-left: auto; font-size: 1rem; white-space: nowrap; }
.egg-power__foot { display: flex; justify-content: space-between; gap: 12px; font-size: .84rem; color: var(--text-muted); white-space: nowrap; }
.egg-power__foot b { color: var(--cream); }
.ep-badge { font-size: .75rem; font-weight: 700; padding: 2px 6px; border-radius: 3px; background: var(--wood-2); border: 1px solid #1a0e06; color: #f3cf74; }
.meter { height: 16px; border-radius: 3px; background: #0a0c1c; border: 1px solid #000; box-shadow: inset 0 0 0 1px var(--slate-line); overflow: hidden; }
.meter__fill { height: 100%; min-width: 6px; background: linear-gradient(180deg,#c3a4ff,var(--accent-purple) 50%,#6a3fd1); box-shadow: 0 0 14px rgba(155,109,255,.85),0 0 2px #e4d4ff; }
.contributors {
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(10,13,30,.62);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(214,180,94,.35);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  text-shadow: none;
}
.contributors__head { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; color: #f3cf74; }
.contributors__head small { margin-left: auto; font-size: .78rem; color: var(--text-muted); font-weight: 400; }
.contributors ol { list-style: none; margin: 0; padding: 0; }
.contributors li { display: flex; align-items: center; gap: 10px; padding: 5px 4px; border-top: 1px solid rgba(255,255,255,.06); }
.contributors li:first-child { border-top: 0; }
.contributors__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contributors__ep { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rank-badge { display: inline-grid; flex: none; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--text-muted); font-size: .78rem; }
.contributors li:first-child .rank-badge { border-color: #f3cf74; color: #f3cf74; }

/* ---------- Today panel ---------- */
.today-panel {
  grid-column: 3;
  align-self: stretch;
  margin-block: -18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 14px 12px 18px;
  background: var(--slate-window);
  box-shadow: -18px 0 40px rgba(0,0,0,.5),inset 0 0 46px rgba(0,0,0,.35);
  min-width: 0;
}
.today-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(90deg, #2a1604 0, #e6b450 18%, #fff0b0 40%, #c38a2a 65%, #7a4c12 85%, #2a1604 100%);
  border: 0;
  box-shadow: none;
}
.today-panel__title { margin: 0; justify-content: center; font-weight: 700; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: #f3cf74; }
.today-group { padding: 2px 9px 6px; min-width: 0; }
.today-group__label { display: flex; align-items: center; gap: 8px; margin: 0 2px 6px; font-size: 1.02rem; font-weight: 600; }
.today-group__aside { margin-left: auto; font-size: .76rem; font-weight: 400; color: var(--text-muted); white-space: nowrap; }
.today-group__link { padding: 0; border: 0; background: none; color: #f3cf74; font: inherit; cursor: pointer; }
.today-group__link:hover { text-decoration: underline; }
.today-group__link:active { transform: translateY(1px); }
.streak-count { margin-left: auto; font-size: .9rem; color: #f3cf74; }
.streak-pips { list-style: none; margin: 0; padding: 2px 2px 0; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 6px; }
.streak-pip { display: grid; justify-items: center; gap: 3px; font-size: .78rem; color: var(--text-muted); }
.streak-pip i { display: grid; place-items: center; width: 100%; max-width: 34px; aspect-ratio: 1; border-radius: 50%; background: rgba(0,0,0,.45); border: 1px solid rgba(214,180,94,.25); }
.streak-gem { width: 80%; height: 80%; opacity: .18; filter: grayscale(1); image-rendering: pixelated; }
.streak-pip.is-done i { background: none; border-color: transparent; }
.streak-pip.is-done .streak-gem { opacity: 1; filter: none; }
.streak-pip.is-today i { border-color: #f3cf74; box-shadow: 0 0 0 2px rgba(243,207,116,.25); }
.streak-next { display: flex; align-items: center; gap: 8px; margin: 8px 2px 0; font-size: .82rem; line-height: 1.25; color: var(--text-muted); }
.streak-next .icon, .streak-next .streak-chest { flex: none; width: 18px; height: 18px; image-rendering: pixelated; }
.streak-next b { color: var(--cream); }
.streak-next--today { color: #f3cf74; font-weight: 600; }
.streak-notice { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; padding: 7px 10px; border-radius: 3px; font-size: .84rem; line-height: 1.3; background: rgba(165,68,44,.24); border: 1px solid rgba(240,148,106,.45); color: #ffd8c4; }
.streak-notice .streak-gem { width: 18px; height: 18px; flex: none; opacity: .7; filter: grayscale(1); }
.checkin-button-wrap { display: flex; justify-content: center; margin-top: 10px; }
.checkin-button { white-space: nowrap; font-weight: 700; display: inline-flex; width: fit-content; max-width: 100%; margin: 0; font-size: 1.02rem; padding: .42em .85em; gap: 10px; justify-content: center; align-items: center; }
.checkin-button svg, .checkin-button .streak-chest { width: 22px; height: 22px; flex: none; image-rendering: pixelated; }
.checkin-button .checkin-button__chev { width: 16px; height: 16px; }
.checkin-button__label { flex: none; text-align: left; }
.checkin-button__streak { font-weight: 600; border-radius: 3px; background: rgba(0,0,0,.25); text-shadow: none; font-size: .74rem; padding: 2px 6px; }
.checkin-button.is-dim { background: linear-gradient(180deg,#3d6a3a,#2e5230 55%,#244220); border-color: #152a10; color: #b4cfab; text-shadow: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.checkin-button.is-dim .checkin-button__streak { background: rgba(0,0,0,.3); }
.today-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 3px; min-width: 0; }
.today-row + .today-row { margin-top: 6px; }
.today-row__text { font-weight: 600; flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-row > .icon, .today-row .press-button, .today-row form { flex: none; }
.today-row > .icon { width: 28px; height: 28px; }
.today-row--parchment { border: 1px solid #6f5228; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.today-row--wood { border: 1px solid #1a0e06; background: var(--grain),linear-gradient(180deg,#5e3c20,#3e2713); box-shadow: inset 0 1px 0 rgba(255,220,170,.25),0 2px 4px rgba(0,0,0,.5); gap: 8px; }
.today-row--wood .today-row__text { font-size: 1rem; }
.today-row--wood .press-button--compact { padding: .4em .6em; }
.reward-claim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .2em;
  white-space: nowrap;
  /* Icon + + + four digits · stays the same whether the count is 1 or 9999. */
  min-width: 5.6em;
  font-variant-numeric: tabular-nums;
}
.reward-claim img, .reward-claim svg, .reward-claim .icon { width: 18px; height: 18px; flex: none; image-rendering: pixelated; }
.reward-claim__plus { flex: none; }
.reward-claim__amt {
  display: inline-block;
  min-width: 4ch;
  text-align: left;
  font-weight: 800;
  letter-spacing: .01em;
}
.reward-claim__amt.tip { position: relative; cursor: help; }
.reward-claim__tip {
  min-width: 0;
  padding: 0.35rem 0.55rem;
  font-size: 0.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #f4e8c8;
  border: 1px solid #6c4728;
  background: linear-gradient(180deg, #2a2218 0%, #17120e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 220, 170, 0.18), 0 0.35rem 0.8rem rgba(0, 0, 0, 0.45);
}
.reward-claim--pending { background: linear-gradient(180deg,#6b5a46,#4a3d2e); border-color: #2a2016; color: #e6d8b4; filter: saturate(.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.all-caught-up { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 3px; color: var(--parchment-ink); }
.all-caught-up .icon { width: 26px; height: 26px; flex: none; }
.all-caught-up b { display: block; font-size: .98rem; line-height: 1.15; }
.all-caught-up span { display: block; font-size: .82rem; color: #6a5230; }
.today-boost { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .82rem; color: #f3cf74; }
.today-boost .icon { width: 16px; height: 16px; }

/*
 * Today board stays on the right down to ~896px, the point where the welcome text
 * and the 360px board can no longer both fit without the name/greeting truncating.
 * Below that it drops under the hero: Check-in Streak keeps one compact row, and
 * Next Objective / Achievements / Available Rewards share a second row so the strip
 * stays short instead of stacking all four groups in one tall column.
 */
@media (max-width: 56rem) {
  .coop-stage--v2 { --board-width: 0px; }
  .coop-hero { min-height: 0; }
  .coop-hero::before { bottom: var(--strip-h); }
  .coop-hero__art {
    height: calc(100% - var(--strip-h));
    object-position: 72% 50%;
    -webkit-mask-image: linear-gradient(180deg,#000 85%,transparent);
    mask-image: linear-gradient(180deg,#000 85%,transparent);
  }
  .coop-hero__inner { grid-template-columns: minmax(0,500px) minmax(0,1fr); gap: 20px; padding: 18px 0 0 20px; }
  .welcome-column { grid-column: 1; padding-bottom: 30px; }
  .today-panel {
    grid-column: 1 / -1;
    margin: 0 0 0 -20px;
    padding: 12px 14px 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    align-items: start;
    gap: 10px 12px;
    min-height: 0;
    border-top: 1px solid #1a0e06;
    box-shadow: 0 -16px 34px rgba(0,0,0,.5),inset 0 1px 0 rgba(214,180,94,.55);
  }
  .today-panel::before { display: none; }
  .today-panel > .today-panel__title,
  .today-panel > .today-boost,
  .today-panel > .today-group--checkin { grid-column: 1 / -1; grid-row: auto; }
  .today-panel > .today-group--objective { grid-column: 1; grid-row: auto; }
  .today-panel > .today-group--achievements { grid-column: 2; grid-row: auto; }
  .today-panel > .today-group--rewards { grid-column: 3; grid-row: auto; }
  /* Check-in Streak: one row (label, pips, milestone, button) instead of a tall stack. */
  .today-group--checkin {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 8px 10px;
  }
  .today-group--checkin .today-group__label { flex: 1 1 100%; margin: 0 0 2px; }
  .today-group--checkin .streak-pips { flex: 1 1 auto; max-width: 320px; }
  .today-group--checkin .streak-next { flex: 1 1 auto; margin: 0; }
  .today-group--checkin .streak-notice { flex: 1 1 100%; margin: 0; }
  .today-group--checkin .checkin-button-wrap { flex: none; margin: 0; }
  .today-panel > .today-group--objective .today-group__label,
  .today-panel > .today-group--achievements .today-group__label {
    flex-wrap: nowrap;
    font-size: .92rem;
    margin-bottom: 6px;
  }
  .today-panel > .today-group--objective .today-group__aside,
  .today-panel > .today-group--achievements .today-group__aside {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: .72rem;
  }
}

/* ---------- phones: art on top, welcome text over its lower edge, Today board stacked below ---------- */
@media (max-width: 45rem) {
  .coop-stage--v2 { --strip-h: 0px; padding: 10px; }
  .coop-hero::before {
    inset: 0 0 auto 0;
    bottom: auto;
    height: var(--art-height);
    background: linear-gradient(180deg,rgba(6,9,24,.85) 0%,rgba(6,9,24,.4) 20%,transparent 40%),linear-gradient(0deg,var(--night-ink) 0%,rgba(6,9,24,.8) 22%,transparent 52%);
  }
  .coop-hero__art {
    width: 100%;
    height: var(--art-height);
    -webkit-mask-image: linear-gradient(180deg,#000 62%,transparent);
    mask-image: linear-gradient(180deg,#000 62%,transparent);
    object-position: 50% 40%;
  }
  .coop-hero__inner { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 12px; }
  .welcome-column { grid-column: 1; padding-bottom: 0; gap: 10px; }
  .veil-status { margin-top: var(--art-clearance); font-size: 2.1rem; }
  .welcome-column__greeting { font-size: 1rem; gap: 0.28rem; }
  .welcome-column__greeting strong { font-size: 1.35rem; }
  .welcome-column__flavor { font-size: 1rem; }
  .ornament-rule, .contributors { display: none; }
  .today-panel { grid-column: 1; display: flex; align-items: stretch; margin: 0 -12px -12px; min-height: 0; padding: 12px; }
  .today-group--checkin {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    text-align: center;
  }
  .today-group--checkin .today-group__label,
  .today-group--checkin .streak-next,
  .today-group--checkin .checkin-button-wrap {
    width: 100%;
    justify-content: center;
  }
  .today-group--checkin .streak-next { text-align: center; }
  .today-panel > * { grid-column: auto; grid-row: auto; width: 100%; align-self: stretch; box-sizing: border-box; }
  .today-panel__title { width: 100%; justify-content: center; }
  .today-group .today-row,
  .today-group .all-caught-up,
  .today-group .streak-pips { width: 100%; box-sizing: border-box; }
  .today-group--checkin .streak-pips { width: min(100%, 320px); margin-inline: auto; }
  .today-group--achievements .today-row { margin-inline: 0; }
}
/* 551px through the phone width: Next Objective and Achievements sit side by side.
   At 550px and under they stack. Wider than the phone, the tablet row keeps them side by side
   until the desktop board takes the right column again. */
@media (max-width: 45rem) and (min-width: 551px) {
  .today-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .today-panel > .today-panel__title,
  .today-panel > .today-boost,
  .today-panel > .today-group--checkin,
  .today-panel > .today-group--rewards {
    grid-column: 1 / -1;
    width: auto;
  }
  .today-panel > .today-group--objective { grid-column: 1; width: auto; }
  .today-panel > .today-group--achievements { grid-column: 2; width: auto; }
}
