@font-face {
  font-family: Poppins;
  src: url(./assets/Poppins-Bold.ttf);
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url(./assets/Poppins-SemiBold.ttf);
  font-weight: 600;
  font-display: swap;
}
:root {
  --ink: #27262c;
  --muted: #716e77;
  --line: #e7e4e7;
  --surface: #fcfbfc;
  --pink: #f6bfd3;
  --pale: #fceaf0;
  --accent: #982855;
  --nav: 206px;
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--surface);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[contenteditable]:focus-visible {
  outline: 3px solid #b24777;
  outline-offset: 2px;
}
button {
  border: 0;
  background: transparent;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button svg {
  flex-shrink: 0;
}
a {
  color: inherit;
}
label {
  font-weight: 600;
}
input,
select,
textarea {
  max-width: 100%;
}
svg {
  vertical-align: middle;
}
.side {
  z-index: 10;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--nav);
  padding: 31px 15px 14px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.brand {
  padding: 0 10px 32px;
  text-align: left;
  display: block;
  width: 100%;
}
.brand img {
  display: block;
  filter: brightness(0);
  width: 153px;
  max-width: 100%;
  margin-left: -2px;
}
.brand span {
  display: block;
  font:
    600 9px/1.3 ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: 2.2px;
  color: #66616b;
  margin: 7px 0 0 2px;
}
.group {
  margin: 13px 0 6px;
}
.group-title,
.overline,
.mini-label {
  font-size: 10px;
  letter-spacing: 1.45px;
  text-transform: uppercase;
  font-weight: 750;
}
.group-title {
  font-size: 9px;
  color: #817c85;
  margin: 0 12px 9px;
}
.navbtn,
.userbtn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
}
.navbtn {
  min-height: 41px;
  margin: 2px 0;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13px;
  color: #57545e;
  font-weight: 525;
}
.navbtn.active {
  background: #f9e4ed;
  color: #762340;
  font-weight: 680;
}
.navbtn:hover,
.userbtn:hover {
  background: #f7f3f5;
}
.navbtn.active:hover {
  background: #f6dce7;
}
.navbtn .count {
  background: #f4eff2;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
  font-size: 10px;
}
.sidefoot {
  margin-top: auto;
}
.sidefoot .navbtn {
  font-size: 12px;
}
.userbtn {
  border-top: 1px solid var(--line);
  padding: 17px 3px 0;
  margin-top: 13px;
}
.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eddde9;
  color: #61485c;
  font-weight: 700;
  font-size: 12px;
}
.userbtn strong,
.userbtn small {
  display: block;
}
.userbtn strong {
  font-size: 12px;
}
.userbtn small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.userbtn > svg {
  margin-left: auto;
}
.main {
  margin-left: var(--nav);
}
.top {
  height: 65px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: #fff;
  gap: 12px;
}
.crumb,
.actions,
.button,
.inline,
.tag,
.status,
.source {
  display: inline-flex;
  align-items: center;
}
.crumb {
  gap: 11px;
  font-size: 12px;
  color: #77717a;
}
.crumb b {
  color: var(--ink);
  font-weight: 650;
}
.crumb .slash {
  color: #c7c2c7;
}
.actions {
  gap: 10px;
}
.source {
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 6px 10px;
  background: white;
}
.dot {
  display: inline-block;
  border-radius: 100%;
  height: 7px;
  width: 7px;
  background: var(--dot, #5da67a);
  flex-shrink: 0;
}
.button {
  gap: 7px;
  justify-content: center;
  min-height: 35px;
  font-size: 12px;
  font-weight: 620;
  border: 1px solid #dedbe0;
  background: #fff;
  border-radius: 7px;
  padding: 7px 12px;
  white-space: nowrap;
}
.button:hover,
.iconbtn:hover {
  background: #f6f3f5;
}
.button.primary {
  background: #2b282e;
  color: #fff;
  border-color: #2b282e;
}
.button.primary:hover {
  background: #473b44;
}
.button.pink {
  background: #f6c4d7;
  border-color: #f6c4d7;
}
.iconbtn {
  height: 32px;
  width: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  padding: 0;
}
.menu {
  display: none;
}
.body {
  max-width: 1800px;
  margin: auto;
  padding: 24px 32px 36px;
}
.hero {
  background: #f8cbd9;
  background-image: linear-gradient(
    110deg,
    #fce0e7 0%,
    #f7c8d8 58%,
    #f1b5ca 100%
  );
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #efc8d5;
  border-radius: 12px;
  padding: 27px 31px 28px;
  min-height: 151px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .overline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #85435b;
  letter-spacing: 1.75px;
  font-weight: 700;
  font-size: 9px;
}
.hero .overline:before {
  content: "";
  width: 19px;
  height: 2px;
  background: #ac6081;
}
.hero h1,
.pagehead h1 {
  font:
    700 clamp(34px, 3.15vw, 53px) / 1.1 Poppins,
    Arial,
    sans-serif;
  letter-spacing: -2.5px;
}
.hero h1 {
  margin: 10px 0 8px;
}
.hero p,
.pagehead p {
  color: #57454f;
  font-size: 13px;
  line-height: 1.5;
}
.hero-art {
  position: absolute;
  z-index: -1;
  right: 4.8%;
  top: 0;
  bottom: 0;
  width: 29%;
  pointer-events: none;
}
.hero-art:before {
  content: "";
  position: absolute;
  inset: 20% -5% -60% -12%;
  background: #f2a2bd;
  border-radius: 50%;
  transform: rotate(-15deg);
}
.hero-art img {
  height: 145%;
  position: absolute;
  bottom: -45%;
  right: 8%;
  transform: rotate(-12deg);
  filter: contrast(1.08);
}
.hero:after {
  content: "";
  position: absolute;
  z-index: -2;
  right: 0;
  top: 0;
  bottom: 0;
  width: 35%;
  opacity: 0.28;
  background-image: radial-gradient(#b76d8b 0.8px, transparent 0.8px);
  background-size: 9px 9px;
  mask-image: linear-gradient(to right, transparent, black);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin: 15px 0 22px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
}
.metric .tile {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--fg);
  background: var(--bg);
}
.metric .val {
  display: block;
  font-size: 24px;
  line-height: 1.02;
  letter-spacing: -1.2px;
  font-weight: 700;
}
.metric .lab {
  display: block;
  color: #68636c;
  font-size: 11px;
  margin-top: 5px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.calhead,
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 18px 19px;
}
.calhead h2,
.sectiontitle,
.panel-title h2 {
  font:
    600 19px/1.3 Poppins,
    Arial,
    sans-serif;
  letter-spacing: -0.85px;
}
.calhead .inline {
  gap: 10px;
}
.controls {
  display: inline-flex;
  border: 1px solid #dfdce0;
  border-radius: 6px;
  padding: 2px;
}
.controls button {
  display: grid;
  place-items: center;
  height: 25px;
  width: 25px;
  padding: 0;
  border-radius: 3px;
}
.controls button:hover {
  background: #f7eef2;
}
.view-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: #f3f1f3;
  border: 1px solid #ebe8ec;
  border-radius: 7px;
}
.view-switch button {
  padding: 5px 10px;
  font-weight: 600;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #746d76;
  border: 1px solid transparent;
  border-radius: 4px;
}
.view-switch .selected {
  background: white;
  box-shadow: 0 1px 3px #29222d17;
  border-color: #e6e1e5;
  color: #29252b;
}
.filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 19px 12px;
  border-bottom: 1px solid var(--line);
}
.branchlist {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.branch {
  border: 1px solid var(--line);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 650;
  padding: 5px 9px;
  background: white;
}
.branch.sel {
  border-color: #38313a;
  background: #38313a;
  color: white;
}
.branch:hover {
  box-shadow: 0 0 0 1px #c6bfca;
}
/* The Workgroup branch palette is set once by app.js from EventFlow's colourways. */
.legal, .hr, .cmo, .cfo {
  --dot: var(--primary);
  --edge: var(--primary);
}
.branch.sel:is(.legal, .hr, .cmo, .cfo) {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.branch.sel:is(.legal, .hr, .cmo, .cfo) .dot {
  background: currentColor;
}
.subtle {
  font-size: 11px;
  color: var(--muted);
}
.filterbar .button {
  font-size: 11px;
  min-height: 28px;
  padding: 4px 8px;
}
.week-wrap,
.month-wrap {
  overflow-x: auto;
}
.weekgrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(105px, 1fr));
  min-height: 300px;
}
.day {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 0 7px 11px;
}
.day:last-child {
  border-right: 0;
}
.day.weekend {
  background: #fbfafb;
}
.day.today {
  background: #fff9fb;
}
.day-title {
  height: 63px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: column;
  border-bottom: 1px solid #f0edf0;
  margin: 0 -7px 8px;
  padding: 8px 0 7px;
}
.day-title small,
.monthlabel {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #77707a;
  font-weight: 650;
}
.day-title b {
  font:
    600 16px/24px Poppins,
    sans-serif;
  letter-spacing: -0.7px;
  min-width: 26px;
  text-align: center;
}
.today .day-title b,
.today-num {
  border-radius: 50%;
  background: #343038;
  color: white;
}
.day.today .day-title small {
  color: #923f63;
}
.daycard {
  position: relative;
  width: 100%;
  display: block;
  text-align: left;
  min-width: 0;
  border: 1px solid var(--edge);
  background: var(--bg);
  color: var(--ink);
  border-radius: 6px;
  margin-bottom: 6px;
  padding: 9px 8px 8px;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.daycard:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 5px #26202916;
}
.daycard .cardmeta {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--fg);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}
.cardmeta svg {
  width: 13px;
  height: 13px;
}
.daycard strong {
  font-weight: 680;
  font-size: 12px;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 6px 0 4px;
}
.cardfoot {
  font-size: 10px;
  color: #625e64;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plusday {
  width: 100%;
  height: 25px;
  opacity: 0;
  border-radius: 4px;
  color: #8d7882;
}
.day:hover .plusday,
.plusday:focus-visible {
  opacity: 1;
  background: #f7f0f4;
}
.calfoot {
  border-top: 1px solid var(--line);
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #746e77;
  font-size: 10px;
}
.calfoot .inline {
  gap: 7px;
}
.calendar-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #999;
}
.pagehead {
  margin: 7px 0 25px;
}
.pagehead .overline {
  color: #93677b;
  display: block;
  margin-bottom: 9px;
}
.pagehead h1 {
  font-size: 35px;
}
.pagehead p {
  color: var(--muted);
  margin-top: 8px;
}
.sectionbar {
  margin: 21px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sectionbar .textbtn,
.textbtn {
  color: #68515f;
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.eventstrip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}
.eventcard {
  padding: 16px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 13px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.eventcard:hover {
  border-color: #ba9daa;
}
.eventart {
  background: var(--bg);
  height: 43px;
  width: 43px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.eventart i {
  display: block;
  width: 27px;
  height: 27px;
  background: var(--fg);
  mask: var(--shape) center/contain no-repeat;
}
.eventcard b {
  font-size: 13px;
  display: block;
}
.eventcard small {
  color: #756e78;
  display: block;
  margin-top: 4px;
  font-size: 11px;
}
.eventcard > svg {
  margin-left: auto;
  color: #88808a;
}
.tag,
.status {
  font-size: 10px;
  font-weight: 650;
  border-radius: 20px;
  gap: 5px;
  padding: 3px 8px;
  background: #f4f1f4;
}
.tag {
  background: var(--bg);
  color: var(--fg);
}
.status.review {
  background: #fff1d5;
  color: #775019;
}
.status.ready {
  background: #e5f4eb;
  color: #216344;
}
.monthgrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(85px, 1fr));
}
.monthlabel {
  text-align: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.monthday {
  min-height: 96px;
  border: solid var(--line);
  border-width: 0 1px 1px 0;
  padding: 5px 4px;
  min-width: 0;
}
.monthday:nth-child(7n) {
  border-right: 0;
}
.monthday.outside {
  background: #faf9fa;
  opacity: 0.64;
}
.monthday.today {
  background: #fff5f8;
}
.datebtn {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  font-size: 11px;
}
.monthitem {
  background: var(--bg);
  color: var(--fg);
  padding: 3px 4px;
  display: block;
  width: 100%;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  border-radius: 3px;
  margin-top: 2px;
}
.monthitem svg {
  margin-right: 3px;
}
.more {
  font-size: 10px;
  color: #75636d;
  margin-top: 4px;
}
.row {
  display: flex;
  align-items: center;
  text-align: left;
  width: 100%;
  gap: 13px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  background: white;
}
.row:hover {
  background: #fbf9fb;
}
.row-text {
  min-width: 0;
  flex: 1;
}
.row-text b {
  display: block;
  font-size: 13px;
}
.row-text small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.row-icon {
  display: grid;
  place-items: center;
  background: var(--bg, #f5edf2);
  color: var(--fg, #6a485a);
  border-radius: 7px;
  width: 34px;
  height: 34px;
  flex: none;
}
.row .date {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #67616b;
}
.empty {
  text-align: center;
  padding: 42px 20px;
  color: var(--muted);
  line-height: 1.55;
}
.empty .emptyicon {
  border-radius: 14px;
  background: #f6eff3;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  height: 42px;
  width: 42px;
  color: #82566a;
}
.empty b {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}
.empty p {
  font-size: 13px;
}
.empty .button {
  margin-top: 16px;
}
.loading {
  padding: 40px;
  color: #6c6168;
}
.loading:before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--pink);
  border-radius: 50%;
  margin-right: 8px;
}
.listgroup {
  color: #766d75;
  font-weight: 650;
  padding: 8px 18px;
  background: #faf8fa;
  font-size: 11px;
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  padding: 7px 9px;
  border-radius: 6px;
  max-width: 240px;
}
.searchbox input {
  border: 0;
  background: none;
  width: 100%;
  min-width: 0;
  font-size: 12px;
}
.field {
  display: block;
  margin: 14px 0;
}
.field span {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea,
.select {
  border: 1px solid #d8d4d9;
  border-radius: 6px;
  padding: 9px 10px;
  background: #fff;
  width: 100%;
  font-size: 13px;
}
.field textarea {
  min-height: 75px;
  resize: vertical;
}
.field small {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 400;
}
.formline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dialog {
  border: 1px solid #ded8de;
  box-shadow: 0 25px 95px #25152238;
  border-radius: 12px;
  padding: 0;
  width: min(460px, 94vw);
  color: var(--ink);
  max-height: 88dvh;
}
.dialog.wide {
  width: min(640px, 94vw);
}
.dialog::backdrop {
  background: #251a244f;
  backdrop-filter: blur(2px);
}
.dialoghead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
.dialoghead h2 {
  font:
    600 19px/1.2 Poppins,
    sans-serif;
  letter-spacing: -0.7px;
}
.dialogbody {
  padding: 16px 20px 20px;
}
.dialogbody > p {
  font-size: 13px;
  line-height: 1.55;
  color: #665d65;
}
.dialogfoot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.choice {
  display: flex;
  gap: 11px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  width: 100%;
  padding: 13px;
  margin-bottom: 9px;
  text-align: left;
}
.choice b {
  display: block;
}
.choice small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.choice.active {
  border-color: #ba6b8b;
  background: #fff6fa;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0;
  font-size: 13px;
}
.split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.switch {
  appearance: none;
  border: 1px solid #bdb4bd;
  width: 30px;
  height: 18px;
  border-radius: 12px;
  padding: 2px;
  cursor: pointer;
  background: #d1cbd0;
}
.switch:before {
  content: "";
  display: block;
  background: white;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: transform 0.12s;
}
.switch:checked {
  background: #5f4657;
  border-color: #5f4657;
}
.switch:checked:before {
  transform: translateX(11px);
}
.settingrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
}
.settingrow:last-child {
  border: 0;
}
.settingrow .button {
  margin-left: auto;
}
.help {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.tablewrap {
  overflow: auto;
}
.table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.table th,
.table td {
  text-align: left;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table th {
  font-size: 10px;
  color: var(--muted);
  background: #fbf9fb;
}
.error {
  color: #9b294e;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 8px;
}
.sidebar-shade {
  display: none;
}
#notice {
  position: fixed;
  z-index: 1000;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 16px;
  background: #342d35;
  color: #fff;
  border-radius: 7px;
  font-size: 12px;
  box-shadow: 0 5px 18px #22182228;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
#notice.on {
  opacity: 1;
}
@media (min-width: 1550px) {
  :root {
    --nav: 232px;
  }
  .body {
    padding: 30px 40px;
  }
  .hero {
    min-height: 165px;
  }
  .daycard strong {
    font-size: 13px;
  }
  .navbtn {
    font-size: 14px;
  }
  .brand img {
    width: 166px;
  }
}
@media (max-width: 1220px) {
  :root {
    --nav: 181px;
  }
  .brand img {
    width: 139px;
  }
  .body {
    padding: 20px;
  }
  .top {
    padding: 0 20px;
  }
  .metrics {
    gap: 7px;
  }
  .metric {
    gap: 8px;
    padding: 12px;
  }
  .weekgrid {
    grid-template-columns: repeat(7, minmax(90px, 1fr));
  }
  .day {
    padding-left: 4px;
    padding-right: 4px;
  }
  .day-title {
    margin-left: -4px;
    margin-right: -4px;
  }
  .daycard {
    padding: 7px 5px;
  }
  .calhead {
    padding: 15px 13px;
  }
  .filterbar {
    padding: 8px 13px 11px;
  }
  .calhead h2 {
    font-size: 17px;
  }
  .daycard strong {
    font-size: 11px;
  }
}
@media (max-width: 920px) {
  :root {
    --nav: 160px;
  }
  .side {
    padding-left: 9px;
    padding-right: 9px;
  }
  .brand img {
    width: 126px;
  }
  .body {
    padding: 16px;
  }
  .metrics .tile {
    width: 30px;
    height: 30px;
  }
  .metric .lab {
    font-size: 10px;
  }
  .metric {
    padding: 10px;
  }
  .weekgrid {
    min-width: 695px;
  }
  .calhead .inline {
    gap: 5px;
  }
  .navbtn {
    font-size: 12px;
  }
  .hero-art {
    right: 1%;
  }
  .source {
    font-size: 10px;
  }
  .hero {
    min-height: 135px;
    padding: 23px;
  }
  .eventstrip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero p {
    max-width: 65%;
  }
}
@media (max-width: 720px) {
  :root {
    --nav: 0px;
  }
  .side {
    width: 214px;
    transform: translateX(-102%);
    transition: transform 0.18s;
    padding: 25px 14px 14px;
  }
  .side.open {
    transform: none;
  }
  .sidebar-shade.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #1b101a66;
    z-index: 9;
  }
  .brand img {
    width: 153px;
  }
  .menu {
    display: inline-grid;
  }
  .top {
    height: 55px;
    padding: 0 13px;
  }
  .crumb {
    gap: 6px;
  }
  .body {
    padding: 13px;
  }
  .hero {
    padding: 18px;
    min-height: 130px;
  }
  .hero h1 {
    font-size: 34px;
    letter-spacing: -1.8px;
  }
  .hero p {
    font-size: 12px;
  }
  .hero-art {
    right: 0;
    width: 29%;
  }
  .hero-art img {
    height: 110%;
    bottom: -18%;
    right: -7%;
  }
  .hero .overline {
    font-size: 8px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 9px 0 13px;
    gap: 6px;
  }
  .metric {
    padding: 9px 11px;
    gap: 10px;
  }
  .metric .val {
    font-size: 19px;
  }
  .metric .lab {
    margin-top: 2px;
  }
  .calhead {
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 10px 5px;
  }
  .filterbar {
    padding: 9px 10px;
    flex-wrap: wrap;
  }
  .branchlist {
    gap: 4px;
  }
  .branch {
    padding: 4px 7px;
  }
  .calhead h2 {
    font-size: 15px;
  }
  .calhead .inline {
    gap: 4px;
  }
  .controls button {
    width: 20px;
  }
  .view-switch button {
    padding: 4px 5px;
    font-size: 10px;
  }
  .view-switch svg {
    display: none;
  }
  .top .source {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
  }
  .source .extra {
    display: none;
  }
  .actions {
    gap: 5px;
  }
  .top .button {
    min-height: 30px;
    padding: 5px 9px;
  }
  .eventstrip {
    grid-template-columns: 1fr;
  }
  .eventcard {
    padding: 13px;
  }
  .row {
    padding: 11px 9px;
    gap: 7px;
  }
  .calfoot {
    padding: 8px 9px;
  }
  .calendar legend {
    font-size: 9px;
  }
  .pagehead h1 {
    font-size: 29px;
  }
  .pagehead {
    margin: 10px 0 17px;
  }
  .eventcard:nth-child(n + 3) {
    display: none;
  }
  .sectiontitle {
    font-size: 17px;
  }
  .brand span {
    font-size: 9px;
  }
  .settingrow {
    flex-wrap: wrap;
  }
  .formline {
    grid-template-columns: 1fr;
  }
  .panel-title {
    padding: 12px;
  }
  .panel-title h2 {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.hero {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
  min-height: 167px;
  padding-top: 21px;
  padding-bottom: 20px;
}
.hero .overline {
  color: var(--on-primary);
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.hero .overline:before {
  background: currentColor;
}
.hero p {
  color: var(--on-primary);
}
.hero h1 {
  font-size: clamp(34px, 3.2vw, 52px);
  font-weight: 600;
  color: var(--on-primary);
}
.hero-art {
  inset: 0 0 0 auto;
  width: 53%;
  background: var(--primary);
  overflow: hidden;
}
.hero-art:before {
  inset: 0;
  background: url(./assets/workgroup-panel.jpg) center 45% / cover no-repeat;
  filter: grayscale(1);
  opacity: 0.62;
  mix-blend-mode: multiply;
  transform: none;
  border-radius: 0;
}
.hero-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--primary), transparent 61%);
}
.hero:after {
  right: -4px;
  top: -12px;
  bottom: auto;
  height: 65px;
  width: 150px;
  opacity: 0.75;
  background: var(--on-primary);
  mask: url(./assets/loop.svg) center/contain no-repeat;
  transform: rotate(3deg);
  z-index: -1;
}
.example-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin-top: 11px;
  z-index: 1;
}
.hero .textbtn {
  margin-top: 0;
  width: max-content;
  font-size: 11px;
  color: var(--on-primary);
  border-bottom: 1px solid currentColor;
  padding: 0 0 2px;
  gap: 5px;
}
.hero .textbtn:hover {
  border-color: currentColor;
}
.navbtn.active {
  background: #e1f2e6;
  color: #205237;
}
.navbtn.active:hover {
  background: #d8efdf;
}
.navbtn .count {
  background: #f1ecef;
}
.side .brand span,
.group-title,
.cardmeta,
.day-title small,
.monthlabel,
.mini-label {
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.hero h1,
.hero p,
.hero button,
.hero .overline {
  z-index: 1;
}
.brand {
  padding-bottom: 30px;
}
.button.primary {
  background: #292b2b;
  border-color: #292b2b;
}
.avatar {
  background: #e0efe5;
  color: #355947;
}
.today .day-title b,
.today-num {
  background: #242e27;
}
.day.today,
.monthday.today {
  background: #f4fbf6;
}
.day.today .day-title small {
  color: #33734a;
}
@media (max-width: 720px) {
  .hero-art {
    width: 48%;
  }
  .hero {
    min-height: 145px;
  }
  .hero p {
    max-width: 65%;
  }
  .hero:after {
    width: 90px;
    height: 42px;
  }
  .hero h1 {
    font-size: 31px;
  }
  .hero .textbtn {
    font-size: 10px;
  }
}
@media (max-width: 520px) {
  .top .crumb > span {
    display: none;
  }
  .top .crumb {
    min-width: 0;
  }
  .top .crumb b {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .top .actions {
    flex: none;
  }
}

/* Manual tracking actions are separate from the item button so campaign links work by keyboard and touch. */
.dayentry {position:relative;margin-bottom:6px}
.dayentry .daycard {margin:0}
.dayentry:has(.track-shortcut) .cardmeta {padding-right:22px}
.dayentry .tracking-actions {display:contents}
.dayentry .track-shortcut {position:absolute;right:2px;top:2px;color:var(--fg)}
.dayentry .campaign-link {margin:2px 0 3px 3px}
.dayentry .status {margin-top:5px;text-align:left;white-space:normal}
.calendar-row {display:flex;align-items:center;width:100%;min-width:0;border-top:1px solid var(--line);background:white}
.calendar-row .row {min-width:0;flex:1;border-top:none}
.calendar-row .tracking-actions {margin-right:11px}
.tracking-actions {display:inline-flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.track-shortcut,.campaign-link {display:inline-flex;align-items:center;justify-content:center;gap:4px;border-radius:5px;font-family:inherit;font-size:11px;font-weight:600;line-height:1.2}
.track-shortcut {border:1px solid transparent;color:#514b52;background:transparent;padding:5px 6px;font-size:11px}
.track-shortcut:hover,.track-shortcut:focus-visible {background:#ffffffb8;border-color:currentColor}
.campaign-link {padding:3px;color:#554221;font-size:11px;font-weight:650;text-decoration:underline;text-underline-offset:2px}
.campaign-link:hover {color:#1d1710}
.status.manual-scheduled,.status.manual-done {display:inline-flex;align-items:center;border:1px solid;gap:4px;line-height:1.25}
.status.manual-scheduled {background:#fff2c1;color:#694b09;border-color:#cdb25f}
.status.manual-done {background:#e7edf0;color:#314854;border-color:#afc2c9}
.status.manual-scheduled svg,.status.manual-done svg {flex:none}
.monthentry {position:relative}
.monthentry:has(.track-shortcut) .monthitem {padding-right:22px}
.monthentry .track-shortcut {position:absolute;top:3px;right:2px;height:18px;width:18px}
.monthentry .status {max-width:100%;margin-top:2px;font-size:9px}
.monthentry .tracking-actions {display:flex;justify-content:flex-start;gap:1px}
.monthentry .campaign-link,.monthentry .track-shortcut {font-size:10px;padding:2px}
.split>.calendar-row {flex:1}
.sending-notice {
  display:flex;align-items:flex-start;gap:10px;padding:12px 15px;margin:12px 0;
  border:1px solid #cbdbe2;border-radius:8px;background:#f1f7fa;color:#29475b;
  font-size:12px;line-height:1.5;
}
.sending-notice svg {flex:none;margin-top:1px}
.sending-notice strong {margin-right:9px;color:#19394d}
.mark-done {
  display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:28px;
  padding:4px 7px;border:1px solid #bacac1;border-radius:5px;background:#fff;
  color:#295141;font-family:inherit;font-size:11px;font-weight:650;line-height:1.25;white-space:nowrap;
}
.mark-done svg {flex:none}
.mark-done:hover {background:#eef6f0;border-color:#739887}
.mark-done:focus-visible,.notice-action:focus-visible {outline:2px solid currentColor;outline-offset:2px}
.mark-done:disabled {opacity:.55;cursor:progress}
.dayentry .mark-done,.monthentry .mark-done {padding:2px 4px;min-height:25px;margin-top:3px;font-size:10px}
.monthentry .mark-done svg {width:11px}
#notice.on:has(.notice-action) {pointer-events:auto}
.notice-action {margin-left:12px;padding:4px;background:transparent;color:inherit;font:inherit;font-weight:650;text-decoration:underline;text-underline-offset:2px}
[data-day-feedback]:not(:empty),.day-empty {margin:12px 15px;color:#405d50;font-size:12px}
@media(pointer:coarse) { .tracking-actions .mark-done {min-height:37px} }
@media(max-width:750px) {
  .sending-notice strong {display:block}
  .calendar-row {align-items:stretch;flex-direction:column}
  .calendar-row .tracking-actions {align-self:flex-end;margin:-4px 8px 5px}
  .calendar-row .row {width:100%}
  .calendar-row .status {max-width:110px;flex-shrink:0}
}
