/* Five Laps — Inhouse Operations
   Palette and type taken from fivelaps.in */
:root {
  --bg: #f5f4f3;
  --surface: #ffffff;
  --surface-2: #faf9f8;
  --ink: #060612;
  --ink-2: #4a4a4a;
  --muted: #69686e;
  --muted-2: #7a7a7a;
  --line: #0606121a;
  --line-2: #e7e2dd;
  --accent: #ff6321;
  --accent-deep: #cf4e17;
  --accent-soft: #ff632126;
  --ok: #15803d;
  --revise: #b42318;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  --shadow-card: 0 1px 2px #0606120d, 0 8px 24px #0606120d;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Caveat", cursive;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- decorative rings ---------- */
.rings {
  position: fixed;
  top: 50%;
  width: 1100px;
  height: 1100px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}
.rings--left  { left: -980px; }
.rings--right { right: -980px; }
.rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 10px solid #eeecea;
  box-shadow: inset 0 2px 6px #0606120a, 0 2px 6px #ffffff;
}
.rings span:nth-child(2) { inset: 120px; }

/* ---------- floating nav ---------- */
.nav {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(640px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 8px 8px 8px 14px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px #0606120d, 0 6px 20px #0606121a;
}
.nav__brand img { display: block; height: 18px; width: auto; }
.nav__divider { width: 1px; height: 18px; background: var(--line); }
.nav__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.nav__title:hover { color: var(--ink); }

/* page switcher in the nav */
.tabs {
  margin-left: auto;
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--bg);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #0606120d;
}
.tabs__item {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  transition: background .15s ease, color .15s ease;
}
.tabs__item:hover { color: var(--ink); }
.tabs__item.is-active {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 1.4px 1px #ffffff14, 0 0 0 1px var(--ink-2);
}

/* ---------- buttons ---------- */
.btn {
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: default; opacity: .9; }
.btn--dark {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 1.4px 1px #ffffff14, 0 0 0 1.4px var(--ink-2);
}
.btn--accent {
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  border-radius: var(--radius);
  padding: 10px 22px;
  box-shadow: 0 0 0 1px var(--accent-deep), inset 0 1.4px 1px #ffffff1f, 0 1.4px 4px #0606124d;
}
.btn--ink {
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  border-radius: var(--radius);
  padding: 10px 22px;
  box-shadow: inset 0 1.4px 1px #ffffff14, 0 0 0 1.4px var(--ink-2), 0 1.4px 4px #0606124d;
}
.btn--accent:hover { background: #f05a1a; }
.btn--ink:hover { background: #17172a; }

/* the two big choices on the home page */
.btn--big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---------- page ---------- */
.page {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.hero { text-align: center; }
.page--home { padding-top: 120px; }
.hero--compact h1 { font-size: clamp(32px, 4.2vw, 44px); }

.choices {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}
.choices .scribble--left {
  position: absolute;
  right: calc(50% + 200px);
  top: 26px;
  margin: 0;
  white-space: nowrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--line-2);
  border-left: 0;
  border-bottom: 0;
}
.eyebrow::before { transform: rotate(45deg); }
.eyebrow::after  { transform: rotate(-135deg); }

h1 {
  margin: 14px 0 12px;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.accent { color: var(--accent); }

.lede {
  margin: 0 auto;
  max-width: 440px;
  color: var(--ink-2);
  font-size: 15px;
}

.scribble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 18px 0 0;
  font-family: var(--font-script);
  font-size: 20px;
  color: var(--accent);
  transform: rotate(-3deg);
}
.scribble svg { width: 34px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- home: workload charts ---------- */
.insights {
  width: min(980px, 100%);
  margin: 88px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.insights__eyebrow { grid-column: 1 / -1; justify-self: center; margin-bottom: 4px; }

.chart-card {
  position: relative;
  padding: 22px;
  text-align: left;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px #0606120d, var(--shadow-card);
}
.chart-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.chart-card__title { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.chart-card__sub { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.chart-card__total { margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.chart-card__total strong { font-size: 22px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.chart-card__body { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 24px; align-items: center; }
.chart-card__empty { margin: 14px 0 0; font-size: 13px; color: var(--muted-2); }

.pie { display: block; width: 168px; height: 168px; overflow: visible; }
.pie .slice {
  stroke: var(--surface); /* the 2px surface gap between slices */
  stroke-width: 2;
  stroke-linejoin: round;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}
.pie.has-focus .slice { opacity: .35; }
.pie .slice.is-focus { opacity: 1; transform: translate(var(--dx), var(--dy)); }
.pie__empty { fill: var(--bg); stroke: #0606120f; stroke-width: 1; }

.legend { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.legend li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto 38px;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  font-size: 13px;
  border-radius: 6px;
  transition: background .15s ease;
}
.legend li.is-focus { background: var(--bg); }
.legend li.is-zero { opacity: .45; }
.legend__swatch { width: 10px; height: 10px; border-radius: 3px; }
.legend__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--ink-2); }
.legend__count { font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.legend__pct { font-size: 12px; color: var(--muted-2); text-align: right; font-variant-numeric: tabular-nums; }

.chart-tip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  display: grid;
  gap: 2px;
  min-width: 140px;
  padding: 8px 10px;
  font-size: 12px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  box-shadow: 0 8px 24px #06061240;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}
.chart-tip.is-show { opacity: 1; }
.chart-tip__name { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.chart-tip__name i { width: 8px; height: 8px; border-radius: 2px; box-shadow: 0 0 0 1px #ffffff40; }
.chart-tip__sub { color: #ffffffa6; }

/* ---------- panels ---------- */
.panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px #0606120d, var(--shadow-card);
  padding: 28px;
}

/* ---------- see tasks: the two view tiles ---------- */
.views {
  width: min(760px, 100%);
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.view-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-height: 200px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
a.view-tile:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #06061214, 0 14px 34px #06061217; }
a.view-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.view-tile .badge { width: 48px; height: 48px; border-radius: 12px; }
.view-tile .badge svg { width: 22px; height: 22px; }
a.view-tile:hover .badge--accent { transform: scale(1.06); }
.view-tile__text { display: grid; gap: 4px; }
.view-tile .tile__title { font-size: 18px; }
.view-tile__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #0606120f;
}
.view-tile__stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.view-tile__go {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  transition: transform .2s ease;
}
.view-tile__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a.view-tile:hover .view-tile__go { transform: translateX(3px); }
.view-tile.is-soon { cursor: default; background: var(--surface-2); }
.view-tile.is-soon .badge { color: var(--muted); }
.view-tile.is-soon .tile__title { color: var(--ink-2); }
.soon-tag {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px #0606120f;
}

.badge.badge--ink {
  color: #fff;
  background: var(--ink);
  box-shadow: inset 0 1.4px 1px #ffffff14, 0 0 0 1px var(--ink-2), 0 2px 6px #0606122e;
}
.tone-ok { font-weight: 500; color: var(--ok); }

/* progress bar (team tiles + member card) */
.progress__bar {
  display: block;
  height: 6px;
  overflow: hidden;
  background: #0606120f;
  border-radius: 999px;
}
.progress__bar i {
  display: block;
  height: 100%;
  background: var(--ok);
  border-radius: inherit;
  transition: width .45s cubic-bezier(.2, .7, .2, 1);
}

/* ---------- today's tasks: team tiles ---------- */
.team,
.member { width: min(880px, 100%); margin: 36px auto 0; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.member-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 190px;
  padding: 20px;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
.member-tile:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #06061214, 0 14px 34px #06061217; }
.member-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.member-tile .avatar { width: 52px; height: 52px; font-size: 17px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #0606120f; }
.member-tile__name { margin-top: 4px; font-size: 17px; font-weight: 600; letter-spacing: .03em; }
.member-tile__stats { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; color: var(--muted); }
.member-tile .progress__bar { width: 100%; margin-top: auto; }

/* ---------- today's tasks: one person's card ---------- */
.member-card {
  padding: 18px;
  background: #fbfaf9;
  border-radius: 18px;
  box-shadow: 0 0 0 1px #0606120d, var(--shadow-card);
}
.member-card__head { display: flex; align-items: center; gap: 14px; padding: 4px 4px 18px; }
.date-block {
  flex: none;
  width: 52px;
  overflow: hidden;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 1px #0606120f, 0 2px 8px #06061214;
}
.date-block__month {
  display: block;
  padding: 3px 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #fff;
  background: var(--accent);
}
.date-block__day { display: block; padding: 3px 0 5px; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.member-card__who { min-width: 0; }
.member-card__who h3 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.member-card__who p { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.member-card__who .avatar { width: 20px; height: 20px; font-size: 9px; }
.progress { display: grid; justify-items: end; gap: 6px; margin-left: auto; font-size: 13px; color: var(--muted); }
.progress .progress__bar { width: 150px; }
.member-card__list { display: grid; gap: 12px; }
.member-card__empty { margin: 0; padding: 30px 0 18px; text-align: center; color: var(--muted); }

/* small "Up next · Tomorrow" list under the card */
.up-next { margin-top: 22px; padding: 0 6px; }
.up-next__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.up-next__label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.up-next__date { font-size: 12px; color: var(--muted); }
.up-next__link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.up-next__link:hover { color: var(--ink); }
.up-next__link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.up-next__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.up-next__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 7px;
  font-size: 13px;
  background: #ffffffa6;
  border-radius: 10px;
  box-shadow: 0 0 0 1px #0606120d;
}
.badge.badge--sm { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 0 0 1px #0606120f; }
.badge.badge--sm svg { width: 15px; height: 15px; }
.up-next__text { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; overflow: hidden; white-space: nowrap; }
.up-next__title { overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--ink); }
.up-next__meta { flex: none; font-size: 12px; color: var(--muted-2); }
.up-next__from { flex: none; font-size: 12px; color: var(--muted); }
.up-next__row.is-done .up-next__title { color: var(--muted); text-decoration: line-through; }
.up-next__empty { margin: 0; font-size: 13px; color: var(--muted-2); }

/* task tile + the status buttons beside it */
.today-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 12px;
  align-items: start;
}

.tile.is-expandable { position: relative; }
.tile.is-expandable::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: transparent;
  transition: background .2s ease;
}
.tile.is-expandable[data-status="in_progress"]::before,
.tile.is-expandable[data-status="in_review"]::before { background: var(--accent); }
.tile.is-expandable[data-status="revise"]::before { background: var(--revise); }
.tile.is-expandable[data-closed="true"]:not([data-status="revise"])::before { background: var(--ok); }
.tile.is-expandable[data-closed="true"] .tile__title { color: var(--muted); text-decoration: line-through; text-decoration-color: #06061240; }
.tile.is-expandable[data-closed="true"] .badge { opacity: .6; }
.tile.is-expandable[data-closed="true"] .tile__foot .tone-late,
.tile.is-expandable[data-closed="true"] .tile__foot .tone-soon { color: var(--muted); font-weight: 400; }

.tile__chev { flex: none; display: grid; place-items: center; color: var(--muted-2); transition: transform .3s ease; }
.tile__chev svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile.is-open .tile__chev { transform: rotate(180deg); }

.details { padding: 0 18px 18px; }
.details__inner { display: grid; gap: 16px; padding-top: 16px; border-top: 1px dashed #06061217; }
.details__brief {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.details__brief.is-empty { color: var(--muted-2); }
.details__brief a { color: var(--accent-deep); text-underline-offset: 2px; }
.details__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; margin: 0; }
.details__grid div { display: grid; gap: 3px; min-width: 0; }
.details__grid dt { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.details__grid dd { margin: 0; font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; }

.status { display: grid; gap: 6px; }
.status__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px 7px 8px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  color: var(--muted);
  background: var(--surface);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 0 0 1px #0606120f, 0 1px 2px #0606120a;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.status__btn:hover { color: var(--ink); box-shadow: 0 0 0 1px #06061222, 0 3px 8px #06061212; }
.status__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.status__check {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: transparent;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px #06061233;
  transition: color .18s ease, background .18s ease;
}
.status__check svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.status__btn:hover .status__check { color: #06061240; }
.status__btn[aria-checked="true"] { color: #fff; box-shadow: 0 2px 6px #0606121f; }
.status__btn[aria-checked="true"] .status__check { background: #fff; box-shadow: none; }
.status__btn[data-status="not_started"][aria-checked="true"] { background: var(--ink-2); }
.status__btn[data-status="not_started"][aria-checked="true"] .status__check { color: var(--ink-2); }
.status__btn[data-status="in_progress"][aria-checked="true"] { background: var(--accent); }
.status__btn[data-status="in_progress"][aria-checked="true"] .status__check { color: var(--accent-deep); }
.status__btn[data-status="done"][aria-checked="true"],
.status__btn[data-status="approved"][aria-checked="true"],
.status__btn[data-status="posted"][aria-checked="true"] { background: var(--ok); }
.status__btn[data-status="done"][aria-checked="true"] .status__check,
.status__btn[data-status="approved"][aria-checked="true"] .status__check,
.status__btn[data-status="posted"][aria-checked="true"] .status__check { color: var(--ok); }
.status__btn[data-status="in_review"][aria-checked="true"] { background: var(--accent); }
.status__btn[data-status="in_review"][aria-checked="true"] .status__check { color: var(--accent-deep); }
.status__btn[data-status="revise"][aria-checked="true"] { background: var(--revise); }
.status__btn[data-status="revise"][aria-checked="true"] .status__check { color: var(--revise); }
/* a decided review is locked */
.status__btn:disabled { cursor: default; }
.status__btn:disabled:hover { box-shadow: 0 0 0 1px #0606120f, 0 1px 2px #0606120a; color: var(--muted); }
.status__btn:disabled[aria-checked="false"] { opacity: .45; }
.status__btn:disabled[aria-checked="true"]:hover { color: #fff; box-shadow: 0 2px 6px #0606121f; }

/* ---------- calendar ---------- */
.cal { width: min(980px, 100%); margin: 36px auto 0; }

.cal__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 0 0 1px #0606120d, 0 6px 20px #0606120f;
}

.step-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.step-btn:hover { color: var(--ink); background: var(--bg); }
.step-btn svg,
.back-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step-btn--boxed { width: 36px; height: 36px; background: var(--surface); box-shadow: 0 0 0 1px #0606120d, 0 1px 2px #0606120a; }
.step-btn--boxed:hover { background: var(--surface); box-shadow: 0 0 0 1px #06061214, 0 4px 12px #06061214; }

.year-step {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2px;
  padding-right: 8px;
  border-right: 1px solid var(--line);
}
.year-step__label {
  min-width: 46px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.months {
  flex: 1;
  display: flex;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.months::-webkit-scrollbar { display: none; }
.month-btn {
  flex: 1 0 auto;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.month-btn:hover { color: var(--ink); background: var(--bg); }
.month-btn.is-current { color: var(--accent-deep); }
.month-btn.is-active {
  color: #fff;
  background: var(--ink);
  box-shadow: inset 0 1.4px 1px #ffffff14, 0 0 0 1px var(--ink-2);
}

.cal__today {
  flex: none;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.cal__today:hover { background: var(--bg); }

.cal__weekdays,
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal__weekdays { margin: 22px 0 8px; }
.cal__weekdays span {
  padding-left: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.day-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  min-height: 108px;
  padding: 10px;
  font: inherit;
  color: inherit;
  text-align: left;
  background: var(--surface);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 0 0 1px #0606120d, 0 1px 2px #0606120a;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease;
}
.day-cell:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px #06061214, 0 10px 24px #06061214; }
.day-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.day-cell.is-weekend { background: #fcfbfa; }
.day-cell.is-other { background: transparent; box-shadow: inset 0 0 0 1px #0606120a; }
.day-cell.is-other .day-cell__num { color: #b5b3b8; }
.day-cell.is-today { box-shadow: 0 0 0 1.5px var(--accent), 0 4px 14px #ff632126; }

.day-cell__num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: -3px 0 0 -3px;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  border-radius: 50%;
}
.day-cell.is-today .day-cell__num {
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-deep);
}

/* small orange + that appears on hover: "add a task here" */
.day-cell__add {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .15s ease, transform .15s ease;
}
.day-cell__add svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.day-cell:hover .day-cell__add { opacity: 1; transform: none; }

.day-cell__tasks { display: grid; gap: 3px; min-width: 0; }
.day-chip {
  display: block;
  overflow: hidden;
  padding: 3px 6px;
  font-size: 11.5px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink-2);
  background: var(--bg);
  border-radius: 5px;
}
.day-chip.is-urgent { font-weight: 500; color: var(--accent-deep); background: var(--accent-soft); }
.day-chip.is-late { font-weight: 500; color: #b42318; background: #b423181a; }
.day-chip.is-done { color: var(--muted-2); background: var(--bg); text-decoration: line-through; }
.day-more { padding-left: 6px; font-size: 11px; color: var(--muted); }

/* phone: dots instead of task names */
.day-cell__dots { display: none; gap: 3px; flex-wrap: wrap; }
.day-cell__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-2); }
.day-cell__dots i.is-urgent { background: var(--accent); }
.day-cell__dots i.is-late { background: #b42318; }

/* ---------- assign page: one day's board ---------- */
.day { width: min(760px, 100%); margin: 36px auto 0; }
.day__head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.back-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px 8px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 0 0 1px #0606120d, 0 1px 2px #0606120a;
  transition: color .15s ease, box-shadow .15s ease;
}
.back-btn:hover { color: var(--ink); box-shadow: 0 0 0 1px #06061214, 0 4px 12px #06061214; }
.day__title { text-align: center; }
.day__weekday {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.day__date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 2px 0 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.day__rel {
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 999px;
}
.day__nav { justify-self: end; display: flex; gap: 6px; }
.day .stack { width: 100%; margin-top: 0; }

/* ---------- assign page: tile stack ---------- */
.stack {
  width: min(760px, 100%);
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stack__hint {
  margin: 22px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted-2);
}

.tile {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px #0606120d, var(--shadow-card);
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.tile.is-new:not(.is-open):hover,
.tile.is-card:hover { box-shadow: 0 0 0 1px #06061214, 0 12px 32px #06061214; }

.tile__head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
}
button.tile__head { cursor: pointer; }
button.tile__head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-lg); }

.tile__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tile__title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.tile__sub { margin: 0; font-size: 13px; color: var(--muted); }

/* icon badge, like the floating icon tiles on fivelaps.in */
.badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 1px #0606120f, 0 2px 8px #06061214;
}
.badge svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.badge--add,
.badge--accent {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-deep), inset 0 1.4px 1px #ffffff1f, 0 2px 6px #ff632159;
  transition: transform .2s ease;
}
.badge--add svg { stroke-width: 2.2; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.tile.is-new:not(.is-open):hover .badge--add { transform: scale(1.06); }
.tile.is-open .badge--add svg { transform: rotate(45deg); }

/* the form folds open under the header; the card footer folds in the same way */
.tile__body,
.tile__foot-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s cubic-bezier(.2, .7, .2, 1);
}
.tile.is-open .tile__body,
.tile__foot-wrap.is-shown { grid-template-rows: 1fr; }
.tile__clip { min-height: 0; overflow: hidden; }
.tile__content { padding: 0 24px 24px; }
.tile__content .form { padding-top: 22px; border-top: 1px solid #0606120f; }

/* card footer: due date, priority, assignee */
.tile__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 0 18px;
  padding: 12px 0 14px;
  font-size: 13px;
  color: var(--ink-2);
  border-top: 1px solid #0606120f;
}
.meta { display: inline-flex; align-items: center; gap: 6px; }
.meta svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .75;
}
.meta--person { margin-left: auto; font-weight: 500; color: var(--ink); }
.meta--person .avatar { width: 24px; height: 24px; font-size: 10px; }
.prio--low { color: var(--muted-2); }
.prio--urgent {
  padding: 2px 9px 2px 7px;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 999px;
}
.prio--urgent svg { opacity: 1; }
.tile.is-card .icon-btn { align-self: flex-start; margin: -2px -4px 0 0; }

.form { display: grid; gap: 22px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.field { display: block; }
.field > label,
.field > legend,
.field > .field__label {
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.field > legend { margin-bottom: 8px; }
.field--short { max-width: calc(50% - 8px); }
.opt { margin-left: 4px; font-size: 12px; font-weight: 400; color: var(--muted-2); }

.form input[type="text"],
.form input[type="password"],
.form input[type="date"],
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form .input--lg { font-size: 16px; padding: 12px 14px; }
.form textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.form input::placeholder,
.form textarea::placeholder { color: #a3a1a6; }
.form input:focus,
.form textarea:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field.is-invalid input {
  border-color: #e0490f;
  box-shadow: 0 0 0 3px #ff63211f;
}

/* type chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input,
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover span { border-color: #06061240; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span,
.segmented input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }

/* priority */
.segmented {
  display: flex;
  padding: 3px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px #0606120d;
}
.segmented label { position: relative; flex: 1; cursor: pointer; }
.segmented span {
  display: block;
  padding: 7px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}
.segmented label:hover span { color: var(--ink); }
.segmented input:checked + span {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px #0606121a, 0 0 0 1px #0606120d;
}
.segmented .is-urgent input:checked + span {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px var(--accent-deep), inset 0 1.4px 1px #ffffff1f;
}

/* due date */
.due { display: flex; gap: 8px; }
.due input { flex: 1; min-width: 0; }
.chip-btn {
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.chip-btn:hover { border-color: #06061240; }
.chip-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-btn:disabled { opacity: .4; cursor: default; }

.form__error { margin: 0; font-size: 13px; color: #c2410c; }
.form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid #0606120f;
}
.form__actions .btn--accent { min-width: 140px; }
.btn--ghost {
  background: transparent;
  color: var(--muted);
  border-radius: var(--radius);
  padding: 10px 16px;
}
.btn--ghost:hover { color: var(--ink); background: var(--bg); }

.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: hsl(var(--h, 20) 32% 36%);
}
.tone-soon { color: var(--accent-deep); }
.tone-late { color: #b42318; font-weight: 500; }
.pill {
  padding: 1px 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 4px;
}
.pill--urgent { background: var(--accent-soft); color: var(--accent-deep); }

.icon-btn {
  width: 26px;
  height: 26px;
  font-size: 16px;
  line-height: 1;
  color: var(--muted-2);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease, background .15s ease;
}
.tile.is-card:hover .icon-btn,
.icon-btn:focus-visible { opacity: 1; }
.icon-btn:hover { background: #0606120d; color: var(--ink); }
@media (hover: none) { .icon-btn { opacity: 1; } }

/* ---------- login ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}
.login {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 32px 16px;
}
.login__card {
  width: min(420px, 100%);
  padding: 32px 28px 28px;
  text-align: center;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 0 0 1px #0606120d, 0 18px 48px #06061214;
}
.login__logo { display: block; height: 22px; width: auto; margin: 0 auto 22px; }
.login__title { margin: 10px 0 6px; font-size: 34px; }
.login__lede { margin: 0 0 24px; font-size: 14px; color: var(--muted); }
.login__form { text-align: left; gap: 18px; }
.login__form input[type="password"],
.login__form input[type="email"] { width: 100%; }
.form input[type="email"] {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form input[type="email"]:focus { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.login__submit { width: 100%; padding: 12px 22px; font-size: 15px; }
.login__submit:disabled { opacity: .75; cursor: default; }
.login__foot { margin: 0; font-size: 13px; color: var(--muted-2); }
.login__note { margin: 0; padding: 12px 14px; font-size: 13px; line-height: 1.5; color: var(--ink-2); background: var(--accent-soft); border-radius: var(--radius); }
.user-menu__pop .btn { display: block; text-decoration: none; }

/* account button in the top bar */
.user-menu { position: relative; flex: none; }
.user-menu__btn {
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.user-menu__btn .avatar { width: 32px; height: 32px; font-size: 12px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #0606121a; }
.user-menu__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.user-menu__pop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  min-width: 190px;
  padding: 12px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 0 0 1px #0606120d, 0 14px 34px #06061226;
}
.user-menu__who { margin: 0 4px 8px; font-size: 13px; color: var(--muted); }
.user-menu__who strong { color: var(--ink); }
.user-menu__email { display: block; margin-top: 2px; font-size: 12px; color: var(--muted-2); }
.user-menu__logout { width: 100%; text-align: left; color: var(--ink-2); }

/* "Assigned by" on the New task form */
.as-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px #0606120d;
}
.as-user .avatar { width: 24px; height: 24px; font-size: 10px; }
.as-user__you, .you-tag {
  padding: 1px 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 999px;
}
.you-tag { margin-left: 8px; vertical-align: 2px; }

/* ---------- admin: team & backups ---------- */
.admin { width: min(760px, 100%); margin: 40px auto 0; display: grid; gap: 16px; }
.admin-card { display: grid; gap: 10px; text-align: left; }
.admin-card__title { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.admin-card__text { margin: 0; font-size: 14px; color: var(--muted); }
.admin-card__text code { font-size: 13px; padding: 1px 5px; background: var(--bg); border-radius: 4px; }
.admin-card__btn { justify-self: start; margin-top: 4px; }
.team-list { display: grid; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.team-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px #0606120d;
}
.team-row .avatar { width: 34px; height: 34px; font-size: 12px; }
.team-row__who { display: grid; min-width: 0; }
.team-row__who strong { font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.team-row__who span { overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: var(--muted); }
.status-pill { padding: 2px 9px; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--bg); border-radius: 999px; box-shadow: inset 0 0 0 1px #0606120f; white-space: nowrap; }
.status-pill.is-set { color: var(--ok); background: #15803d14; box-shadow: none; }
.pw-form { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.pw-form .form__error { grid-column: 1 / -1; }
.file-pick { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.file-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-pick .btn { box-shadow: inset 0 0 0 1px var(--line); }
.file-pick:focus-within .btn { outline: 2px solid var(--accent); outline-offset: 2px; }
.file-pick__name { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

/* in-page "are you sure?" box */
.confirm {
  width: min(420px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
}
.confirm::backdrop { background: #0606124d; backdrop-filter: blur(2px); }
.confirm[open] { animation: confirm-in .18s ease-out; }
@keyframes confirm-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.confirm__box {
  padding: 22px;
  text-align: left;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px #0606120d, 0 24px 60px #06061240;
}
.confirm__title { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.confirm__text { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.confirm__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.confirm__ok { padding: 10px 18px; font-weight: 500; color: #fff; border-radius: var(--radius); }
.confirm__ok--ok { background: var(--ok); box-shadow: 0 0 0 1px #10602e, inset 0 1.4px 1px #ffffff1f; }
.confirm__ok--revise { background: var(--revise); box-shadow: 0 0 0 1px #8a1a12, inset 0 1.4px 1px #ffffff1f; }
.confirm__ok--ink { background: var(--ink); box-shadow: 0 0 0 1.4px var(--ink-2), inset 0 1.4px 1px #ffffff14; }
@media (prefers-reduced-motion: reduce) { .confirm[open] { animation: none; } }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1.4px var(--ink-2), 0 10px 30px #06061240;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .tile__body, .tile__foot-wrap, .badge--add, .badge--add svg { transition: none; }
}

@media (max-width: 640px) {
  .tile__head { padding: 14px; }
  .tile__content { padding: 0 16px 18px; }
  .tile__foot { margin: 0 14px; }
  .row { grid-template-columns: 1fr; }
  .field--short { max-width: none; }
  .insights { grid-template-columns: 1fr; margin-top: 56px; }
  .chart-card { padding: 18px; }
  .chart-card__body { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .chart-card .legend { width: 100%; }
  .views { grid-template-columns: 1fr; }
  .view-tile { min-height: 0; }
  .team-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .team-row .status-pill { grid-column: 2; justify-self: start; }
  .team-row__btn { grid-column: 3; grid-row: 1; }
  .pw-form { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .member-tile { min-height: 0; padding: 16px; }
  .member-card { padding: 12px; border-radius: 16px; }
  .member-card__head { flex-wrap: wrap; }
  .progress { justify-items: start; width: 100%; margin-left: 0; }
  .progress .progress__bar { width: 100%; }
  .today-row { grid-template-columns: 1fr; gap: 8px; }
  .up-next__meta, .up-next__from { display: none; }
  .status { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .status__btn { justify-content: center; gap: 5px; padding: 8px 4px; font-size: 11.5px; white-space: nowrap; }
  .status__check { width: 16px; height: 16px; }
  .member-card__who { flex: 1 1 0; }
  .member-card__who h3 { font-size: 15px; }
  .details { padding: 0 14px 14px; }
  .details__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .due { flex-wrap: wrap; }
  .due input { flex-basis: 100%; }
  .due .chip-btn { flex: 1; padding: 8px 12px; }
  .cal__bar { flex-wrap: wrap; }
  .months { order: 3; flex-basis: 100%; padding-top: 6px; border-top: 1px solid #0606120f; }
  .cal__today { margin-left: auto; }
  .cal__weekdays, .cal__grid { gap: 4px; }
  .cal__weekdays span { padding-left: 0; text-align: center; font-size: 10px; letter-spacing: .06em; }
  .day-cell { min-height: 56px; padding: 6px; gap: 4px; align-items: center; border-radius: 10px; }
  .day-cell__num { margin: 0; }
  .day-cell__tasks, .day-cell__add { display: none; }
  .day-cell__dots { display: flex; justify-content: center; }
  .day__date { flex-direction: column; gap: 4px; font-size: 19px; white-space: nowrap; }
  .back-btn span { display: none; }
  .back-btn { padding: 8px; }
  .panel { padding: 20px; }
  .nav__divider, .nav__title { display: none; }
  .page, .page--home { padding-top: 48px; }
  .rings { display: none; }
  .choices { flex-direction: column; align-items: stretch; max-width: 280px; margin-inline: auto; }
  .choices .scribble--left { display: none; }
}
