:root {
  color-scheme: light;
  --ink: #213a3a;
  --muted: #718180;
  --brand: #175958;
  --bg: #f4f7f5;
  --line: #e1e9e5;
  --radius: 13px;
  font:
    14px Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #7cbdb3;
  outline-offset: 2px;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #6d8882;
  margin-bottom: 7px;
}
.icon {
  width: 19px;
  height: 19px;
  flex: none;
  vertical-align: middle;
}
.btn,
.icon-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 600;
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
  line-height: 1.2;
}
.btn:hover,
.icon-btn:hover {
  background: #f1f6f3;
  border-color: #bccfc7;
}
.btn.primary {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}
.btn.primary:hover {
  background: #124847;
}
.btn.danger {
  color: #a23643;
  border-color: #e5c8ce;
  background: white;
}
.btn.danger:hover {
  background: #fff0f1;
}
.btn .icon {
  width: 17px;
  height: 17px;
}
.icon-btn {
  background: transparent;
  border-color: transparent;
  padding: 7px;
  min-height: 34px;
  color: #58736d;
}
.full {
  width: 100%;
}
.brand-mark {
  height: 42px;
  width: 42px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 33px;
  font-weight: 750;
  letter-spacing: -2px;
  color: white;
  background: var(--brand);
  border-radius: 11px;
  position: relative;
}
.brand-mark span {
  position: absolute;
  bottom: 8px;
  right: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #bfe4c7;
}
.small-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.small-brand strong {
  font-size: 19px;
  letter-spacing: -0.65px;
  display: block;
  line-height: 1.04;
}
.small-brand small {
  display: block;
  color: #77918a;
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 600;
}
.shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: white;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 27px 17px 20px;
  gap: 18px;
}
.sidebar .small-brand {
  padding: 0 7px 17px;
}
.nav-section {
  padding: 0 10px;
  color: #93a5a0;
  letter-spacing: 1.3px;
  font-size: 10px;
  font-weight: 700;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-link {
  width: 100%;
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 12px 11px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  text-align: left;
  font-weight: 550;
  color: #596e69;
}
.nav-link.active {
  background: #e4f0eb;
  color: var(--brand);
  font-weight: 650;
}
.nav-link:hover {
  background: #edf4f0;
}
.sidebar-bottom {
  margin-top: auto;
}
.system-label {
  color: #75958b;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 7px;
}
.dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #5aaa88;
  vertical-align: middle;
  flex: none;
}
.profile {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 15px 0 0;
  gap: 9px;
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #e3eeeb;
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.profile > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.profile strong,
.profile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.profile small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.profile .icon-btn {
  padding: 3px;
}
.main {
  padding: 27px 30px 35px;
  min-width: 0;
  max-width: 1800px;
  width: 100%;
  margin: 0 auto;
}
.demo-bar {
  font-size: 11px;
  color: #7b704b;
  background: #f7f0de;
  border: 1px solid #ebdfbd;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 19px;
}
.demo-bar span {
  font-weight: 750;
  letter-spacing: 0.7px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 23px;
}
.page-head .muted {
  margin-top: 7px;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.metrics article {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 17px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.metrics span {
  font-size: 12px;
  color: #70837e;
  font-weight: 550;
}
.metrics strong {
  font-size: 29px;
  line-height: 1.25;
  font-weight: 620;
  letter-spacing: -0.9px;
  color: #214943;
  font-variant-numeric: tabular-nums;
}
.metrics strong em {
  font-size: 15px;
  font-style: normal;
  color: #7c928b;
  margin-left: 3px;
}
.metrics small {
  font-size: 11px;
  color: #97a4a0;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 9px #1b4d430a;
}
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 15px 17px;
  flex-wrap: wrap;
}
.date-nav,
.toolbar-end {
  display: flex;
  align-items: center;
  gap: 6px;
}
.date-nav h2 {
  margin-left: 7px;
  font-size: 17px;
  white-space: nowrap;
}
.date-nav .btn,
.toolbar-end > .btn {
  min-height: 32px;
  padding: 6px 9px;
}
.time-zone {
  font-size: 11px;
  color: #80948c;
  margin-right: 5px;
}
.switch {
  display: flex;
  gap: 2px;
  background: #eff4f1;
  border-radius: 8px;
  padding: 3px;
}
.switch button {
  border: none;
  background: none;
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 6px;
  color: #728780;
  font-weight: 600;
}
.switch button.selected {
  background: #fff;
  box-shadow: 0 1px 4px #193d3020;
  color: var(--brand);
}
.filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 0 17px 13px;
  border-bottom: 1px solid var(--line);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 550;
  font-size: 12px;
  min-width: 0;
}
.field > span {
  color: #59706a;
}
.field input,
.field select,
.search input,
.hours-row input[type='time'] {
  width: 100%;
  border: 1px solid #d7e2dd;
  background: white;
  border-radius: 7px;
  min-height: 39px;
  padding: 9px 10px;
  min-width: 0;
}
.filters .field {
  flex: 0 1 185px;
  min-width: 100px;
}
.filters .field > span {
  font-size: 10px;
  font-weight: 600;
}
.filters .field select {
  min-height: 33px;
  padding: 6px 8px;
  font-size: 12px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #687e76;
  white-space: nowrap;
  min-height: 33px;
}
.check-label input {
  accent-color: var(--brand);
  width: 15px;
  height: 15px;
  flex: none;
}
.calendar-scroll {
  max-height: 650px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #c8d8d1 #f7faf8;
}
.calendar-grid {
  display: grid;
  grid-template-columns: 67px repeat(var(--days), minmax(105px, 1fr));
  grid-template-rows: 58px var(--grid-height);
  position: relative;
  min-width: calc(67px + var(--days) * 105px);
}
.time-head,
.day-head {
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  border-bottom: 1px solid #dbe6e0;
  border-right: 1px solid #e4ece8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.time-head {
  left: 0;
  z-index: 7;
  font-size: 9px;
  letter-spacing: 1px;
  color: #9baca5;
}
.day-head span {
  font-size: 10px;
  font-weight: 650;
  color: #81938d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.day-head strong {
  font-size: 21px;
  line-height: 1;
  font-weight: 600;
  color: #314b45;
}
.day-head.today {
  background: #edf6f0;
}
.day-head.today strong {
  background: #24665d;
  color: white;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 16px;
}
.time-axis {
  position: sticky;
  left: 0;
  z-index: 4;
  background: white;
  border-right: 1px solid #e3ece7;
}
.time-axis span {
  position: absolute;
  right: 8px;
  transform: translateY(3px);
  font-size: 10px;
  color: #8fa19a;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.day-column {
  position: relative;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--hour-height) / 2 - 1px),
    #eef3f0 calc(var(--hour-height) / 2 - 1px),
    #eef3f0 calc(var(--hour-height) / 2),
    transparent calc(var(--hour-height) / 2),
    transparent calc(var(--hour-height) - 1px),
    #dfe9e3 calc(var(--hour-height) - 1px),
    #dfe9e3 var(--hour-height)
  );
  border-right: 1px solid #e7eeea;
  cursor: crosshair;
  min-width: 0;
}
.day-column:hover {
  background-color: #fdfefe;
}
.event {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
  border: 0;
  border-left: 3px solid var(--event-fg);
  border-radius: 5px;
  padding: 4px 5px;
  gap: 2px;
  text-align: left;
  background: var(--event-bg);
  color: var(--event-fg);
  font-size: 10px;
  line-height: 1.12;
  cursor: grab;
  z-index: 2;
  box-shadow: 0 1px 2px #234d4020;
  min-width: 0;
}
.event strong,
.event span,
.event small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  line-height: 1.15;
}
.event strong {
  font-size: 11px;
  letter-spacing: -0.15px;
}
.event span,
.event small {
  font-size: 9px;
}
.event small {
  opacity: 0.82;
}
.event:hover {
  filter: saturate(1.22) brightness(0.98);
  z-index: 3;
}
.event.cancelled {
  opacity: 0.5;
  cursor: pointer;
  text-decoration: line-through;
  border-left-color: #7d8a83;
}
.event.completed {
  cursor: pointer;
}
.event.dragging {
  opacity: 0.4;
}
.calendar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 17px;
  font-size: 10px;
  color: #8a9b94;
  line-height: 1.4;
}
.calendar-footer .dot {
  margin-right: 5px;
}
.day-grid {
  grid-template-columns: 76px minmax(0, 1fr);
  min-width: 0;
}
.day-grid .event {
  padding: 5px 10px;
}
.day-grid .event strong {
  font-size: 13px;
}
.day-grid .event span,
.day-grid .event small {
  font-size: 10px;
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px;
  border-bottom: 1px solid var(--line);
}
.count {
  font-size: 11px;
  color: #78958b;
  background: #e8f1ec;
  padding: 3px 7px;
  border-radius: 12px;
  margin-left: 5px;
}
.search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  background: #f6f9f7;
  border: 1px solid #e1e9e4;
  border-radius: 8px;
  color: #8a9d95;
}
.search input {
  background: transparent;
  border: 0;
  padding: 8px 0;
  min-height: 35px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  min-width: 570px;
}
th {
  padding: 12px 17px;
  color: #849990;
  font-size: 11px;
  font-weight: 600;
  background: #f7f9f7;
}
td {
  padding: 12px 17px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  vertical-align: middle;
}
td small {
  display: block;
  margin-top: 4px;
  color: #82978e;
}
td .btn {
  min-height: 30px;
  font-size: 11px;
  padding: 5px 10px;
}
.person {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pill {
  display: inline-block;
  padding: 4px 8px;
  background: #edf1ee;
  border-radius: 15px;
  color: #84928b;
  font-size: 11px;
  text-transform: capitalize;
  font-weight: 600;
  white-space: nowrap;
}
.pill.on {
  background: #e0f0e7;
  color: #387b59;
}
.empty {
  padding: 25px;
  text-align: center;
  color: #81968e;
  line-height: 1.6;
}
.empty h3 {
  margin-bottom: 4px;
  color: var(--ink);
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.settings-card .section-top h2 {
  font-size: 16px;
}
.resource-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.resource-row strong {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.resource-row small {
  display: block;
  font-size: 11px;
  color: #82958e;
  line-height: 1.5;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.resource-row:last-child {
  border-bottom: 0;
}
.row-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.row-actions .btn,
.resource-row > .btn {
  font-size: 11px;
  padding: 6px 8px;
  min-height: 31px;
}
.pad {
  padding: 16px;
}
.mobile-nav {
  display: none;
}
.loading {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 100dvh;
  gap: 15px;
  text-align: center;
  padding: 20px;
  color: #5b766c;
}
.login-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 0.85fr);
}
.login-art {
  background: #174f4c;
  color: #f1f8f3;
  padding: 9vw 7vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  gap: 24px;
}
.login-art .large {
  height: 78px;
  width: 78px;
  background: #f2f7ee;
  color: var(--brand);
  font-size: 57px;
  border-radius: 20px;
  z-index: 1;
}
.login-art .large span {
  background: #76a988;
  width: 9px;
  height: 9px;
  right: 14px;
  bottom: 14px;
}
.login-art .eyebrow {
  color: #b8d8c9;
  font-size: 11px;
  margin: 0;
}
.login-art h1 {
  font-size: clamp(42px, 5.5vw, 86px);
  font-weight: 590;
  line-height: 1.08;
  letter-spacing: -3px;
  z-index: 1;
}
.login-art > p:last-of-type {
  font-size: 17px;
  color: #d0e3d9;
  max-width: 350px;
  line-height: 1.65;
  z-index: 1;
}
.login-art-lines {
  position: absolute;
  width: 65%;
  height: 80%;
  right: -18%;
  bottom: -32%;
  transform: rotate(-22deg);
  pointer-events: none;
}
.login-art-lines i {
  position: absolute;
  inset: 0;
  border: 1px solid #83af9b60;
  border-radius: 45%;
}
.login-art-lines i:nth-child(2) {
  inset: 40px;
}
.login-art-lines i:nth-child(3) {
  inset: 80px;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 40px;
  background: #f7faf7;
}
.login-inner {
  width: min(100%, 390px);
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.login-inner .small-brand {
  margin-bottom: 25px;
}
.login-inner h2 {
  font-size: 31px;
  letter-spacing: -1px;
}
.login-inner .stack {
  margin-top: 4px;
}
.login-inner .btn {
  min-height: 45px;
}
.fine {
  font-size: 11px;
  color: #91a49b;
  text-align: center;
  margin-top: 11px;
}
.demo-note {
  background: #f7efdb;
  color: #897449;
  border: 1px solid #e9dcbe;
  padding: 11px 13px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.modal {
  border: 1px solid #dce7e0;
  border-radius: 16px;
  max-width: min(540px, calc(100vw - 30px));
  width: 540px;
  max-height: calc(100dvh - 30px);
  padding: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 15px 60px #183d3b30;
  overflow: auto;
}
.modal.wide {
  max-width: min(760px, calc(100vw - 30px));
  width: 760px;
}
.modal::backdrop {
  background: #183b37a0;
  backdrop-filter: blur(2px);
}
.modal-head {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  padding: 19px 20px 15px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.modal-head h2 {
  font-size: 21px;
}
.modal-head .muted {
  margin-top: 4px;
}
.modal-body {
  padding: 19px 20px 21px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.span-2 {
  grid-column: 1/-1;
}
.form-error:not(:empty) {
  background: #fff2f1;
  border: 1px solid #efceca;
  border-radius: 8px;
  color: #a33a34;
  font-size: 12px;
  line-height: 1.5;
  padding: 11px 12px;
}
.form-error:empty,
.slot-results:empty {
  display: none;
}
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 4px;
  flex-wrap: wrap;
}
.status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.status-actions .btn {
  font-size: 11px;
  min-height: 32px;
  padding: 7px 9px;
}
.detail-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #81958c;
  font-size: 11px;
}
.slot-results {
  background: #f3f8f4;
  border: 1px solid #e0ebe4;
  padding: 12px;
  border-radius: 9px;
}
.slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  max-height: 175px;
  overflow: auto;
}
.slot {
  border: 1px solid #c7ded0;
  border-radius: 6px;
  background: #fff;
  color: #39765e;
  padding: 6px 8px;
  font-size: 11px;
}
.slot:hover {
  background: #e3f2e8;
}
.success-text {
  color: #377b59;
  font-size: 12px;
}
.hours-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 9px;
  align-items: center;
}
.hours-row .check-label {
  font-size: 11px;
}
.audit-list {
  display: flex;
  flex-direction: column;
}
.audit-list > div {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
}
.audit-list span,
.audit-list small {
  color: var(--muted);
}
.audit-list small {
  font-size: 10px;
  overflow-wrap: anywhere;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 100;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
  background: #1f5c53;
  color: white;
  padding: 13px 18px;
  border-radius: 9px;
  max-width: min(400px, calc(100vw - 30px));
  box-shadow: 0 5px 20px #14362d35;
  font-weight: 550;
  font-size: 13px;
}
#toast.visible {
  opacity: 1;
  transform: translateY(0);
}
#toast.error {
  background: #963e45;
}
@media (max-width: 1150px) {
  .main {
    padding: 21px 20px 25px;
  }
  .shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .sidebar {
    padding: 22px 13px 16px;
  }
  .time-zone {
    display: none;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .head-actions .btn {
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .main {
    padding: 12px 13px calc(80px + env(safe-area-inset-bottom));
    max-width: none;
  }
  .demo-bar {
    margin-bottom: 15px;
    font-size: 10px;
    padding: 7px 9px;
  }
  .page-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
  }
  .page-head h1 {
    font-size: 28px;
  }
  .page-head .eyebrow {
    font-size: 9px;
    margin-bottom: 5px;
  }
  .page-head .muted {
    font-size: 12px;
    margin-top: 4px;
  }
  .head-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
  }
  .head-actions .btn {
    min-height: 43px;
    font-size: 13px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 13px;
  }
  .metrics article {
    padding: 10px 12px;
    border-radius: 10px;
    gap: 2px;
  }
  .metrics span {
    font-size: 11px;
  }
  .metrics strong {
    font-size: 24px;
  }
  .metrics small {
    font-size: 10px;
  }
  .panel {
    border-radius: 11px;
  }
  .calendar-toolbar {
    padding: 11px;
    gap: 9px;
    align-items: stretch;
  }
  .date-nav {
    flex-wrap: wrap;
    gap: 5px;
    flex: 1 1 100%;
  }
  .date-nav h2 {
    font-size: 15px;
    margin-left: 5px;
    white-space: normal;
    flex: 1;
  }
  .date-nav .btn {
    min-height: 36px;
  }
  .toolbar-end {
    justify-content: space-between;
    width: 100%;
    padding-top: 2px;
  }
  .time-zone {
    display: inline;
    font-size: 10px;
  }
  .toolbar-end .switch {
    margin-left: auto;
  }
  .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 11px 10px;
  }
  .filters .field {
    min-width: 0;
  }
  .filters .field select {
    font-size: 12px;
    min-height: 36px;
  }
  .filters .check-label {
    align-self: end;
    font-size: 11px;
  }
  .calendar-scroll {
    max-height: 55dvh;
    min-height: 260px;
  }
  .calendar-grid {
    grid-template-columns: 62px repeat(var(--days), minmax(105px, 1fr));
    min-width: calc(62px + var(--days) * 105px);
    grid-template-rows: 52px var(--grid-height);
  }
  .calendar-grid.day-grid {
    grid-template-columns: 61px minmax(0, 1fr);
    min-width: 0;
  }
  .time-axis span {
    font-size: 9px;
    right: 6px;
  }
  .time-head,
  .day-head {
    height: 52px;
  }
  .day-grid .event {
    padding: 5px 7px;
  }
  .calendar-footer {
    padding: 10px 11px;
    font-size: 10px;
  }
  .calendar-footer > span:nth-child(2) {
    display: none;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--line);
    padding: 6px 6px calc(8px + env(safe-area-inset-bottom));
    z-index: 20;
    justify-content: space-around;
  }
  .mobile-nav button {
    border: 0;
    background: transparent;
    color: #81978d;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 42px;
    padding: 4px 12px;
    border-radius: 8px;
  }
  .mobile-nav button .icon {
    width: 21px;
    height: 21px;
  }
  .mobile-nav button.active {
    background: #eaf3ee;
    color: var(--brand);
    font-weight: 650;
  }
  .section-top {
    padding: 12px;
    flex-wrap: wrap;
  }
  .section-top h2 {
    font-size: 16px;
  }
  .search {
    flex: 1;
    min-width: 160px;
  }
  .settings-grid {
    gap: 10px;
  }
  .resource-row {
    padding: 12px;
  }
  .login-screen {
    display: block;
    min-height: 100dvh;
  }
  .login-art {
    display: none;
  }
  .login-panel {
    min-height: 100dvh;
    padding: 22px;
  }
  .login-inner .small-brand {
    margin-bottom: 18px;
  }
  .modal {
    max-width: calc(100vw - 14px);
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
  }
  .modal-head {
    padding: 16px 14px 12px;
  }
  .modal-body {
    padding: 15px 14px 18px;
  }
  .modal-head h2 {
    font-size: 20px;
  }
  .form-grid {
    gap: 10px;
  }
  .field input,
  .field select {
    min-height: 42px;
    font-size: 16px;
  }
  .field > span {
    font-size: 11px;
  }
  .modal-actions .btn {
    min-height: 42px;
    flex: 1;
  }
  .hours-row {
    gap: 6px;
  }
  .hours-row input[type='time'] {
    padding: 7px 4px;
    font-size: 14px;
  }
  #toast {
    bottom: calc(74px + env(safe-area-inset-bottom));
    right: 12px;
  }
}
@media (max-width: 360px) {
  .date-nav h2 {
    flex-basis: 100%;
    margin-left: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .hours-row {
    grid-template-columns: 1fr 1fr;
  }
  .hours-row .check-label {
    grid-column: 1/-1;
  }
  .main {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Sessions with a list of children (the group schedule).
   A session takes its colours from its type: --c-bg and --c-fg are set inline.
   ========================================================================== */

/* ---- week bar, day strip, filters ---- */
.weekbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.weekbar h2 {
  font-size: 15px;
  margin: 0 6px;
}
.weekbar-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.weekbar.plain {
  padding: 0 0 10px;
  border: 0;
  justify-content: space-between;
}
/* Last week · This week · Next week. */
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.seg button {
  border: 0;
  background: transparent;
  padding: 0 14px;
  min-height: 38px;
  font-size: 13px;
  color: var(--muted);
}
.seg button + button {
  border-left: 1px solid var(--line);
}
.seg button.on {
  background: var(--brand);
  color: #fff;
  font-weight: 650;
}
.past-note {
  margin: 0;
  padding: 9px 14px;
  font-size: 12.5px;
  color: var(--muted);
  background: #f6f8f7;
  border-bottom: 1px solid var(--line);
}
.daystrip {
  display: none;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  padding: 10px 10px 0;
}
.modal .daystrip {
  display: grid;
  padding: 0;
}
.daystrip button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 6px 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 54px;
}
.daystrip small {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}
.daystrip b {
  font-size: 16px;
}
.daystrip i {
  font-style: normal;
  font-size: 10px;
  color: var(--muted);
  min-height: 12px;
}
.daystrip .today b {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.daystrip .sel {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.daystrip .sel small,
.daystrip .sel i {
  color: #cfe6e0;
}
.daystrip .sel b {
  color: #fff;
}
.schedule-filters {
  display: flex;
  gap: 10px 16px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.schedule-filters .field {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.schedule-filters .field select {
  min-width: 190px;
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.chipbtn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 17px;
  padding: 6px 12px;
  font-size: 12.5px;
  min-height: 34px;
}
.chipbtn:hover {
  border-color: #bccfc7;
}
.chipbtn.sel {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 650;
}

/* ---- the board: a column for each day shown on a wide screen, one day on a phone ---- */
/* A whole week has seven columns. The running week has fewer, from today on: they share the width,
   up to a limit, so that a single day late in the week does not stretch across the screen. */
.board {
  display: grid;
  grid-template-columns: repeat(var(--days, 7), minmax(0, 420px));
  gap: 8px;
  padding: 12px;
  align-items: start;
}
.board-day {
  min-width: 0;
}
.board-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--line);
  background: transparent;
  padding: 4px 0 8px;
  margin-bottom: 8px;
}
.board-head span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.board-head strong {
  font-size: 18px;
}
.board-day.today .board-head {
  border-color: var(--brand);
}
.board-day.today .board-head strong {
  color: var(--brand);
}
.board-day.sel .board-head {
  background: #eaf3ee;
  border-radius: 8px 8px 0 0;
}
.board-title {
  display: none;
  margin: 4px 2px 8px;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.board-title.always {
  display: block;
  margin: 14px 2px 8px;
}
.board-empty {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 14px 0;
}

/* ---- one session ---- */
/* In a day column the name leads at the top left and the time stands at the top right, so that the
   eye finds each of them in a place of its own. The time is floated: the lines below it use the
   whole width of the card again, which matters when seven columns share the screen. A phone lays
   the card out as a row instead (see the narrow-screen rules). */
.scard {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--c-bg);
  border: 0;
  border-left: 4px solid var(--c-fg);
  border-radius: 9px;
  padding: 8px 9px;
  margin-bottom: 7px;
  min-width: 0;
}
.scard:hover {
  box-shadow: 0 2px 8px #1b4d4322;
}
.scard.cancelled {
  opacity: 0.55;
}
.scard.cancelled strong {
  text-decoration: line-through;
}
.scard::after {
  content: '';
  display: block;
  clear: both;
}
.scard-time {
  grid-area: time;
  float: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0 0 2px 8px;
  min-width: 0;
}
.scard-time b {
  font-size: 13.5px;
  color: var(--c-fg);
  white-space: nowrap;
}
.scard-time small {
  font-size: 10.5px;
  color: #5b6f6c;
  white-space: nowrap;
}
.scard-main {
  grid-area: main;
  display: block;
  min-width: 0;
}
.scard-main strong {
  display: block;
  font-size: 13.5px;
  color: var(--c-fg);
  overflow-wrap: anywhere;
}
.scard-main span {
  display: block;
  margin-top: 1px;
  font-size: 11.5px;
  color: #4d605e;
  overflow-wrap: anywhere;
}
.scard-main .chip-note {
  display: inline-block;
  margin-right: 4px;
}
.scard-main .scard-names {
  color: var(--ink);
}
.scard-fill {
  grid-area: fill;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  margin-top: 5px;
}
.scard-fill .dots i:first-child {
  margin-left: 0;
}
.scard-fill small {
  font-size: 11px;
  color: #4d605e;
}
.scard-fill small.full {
  color: #a23643;
  font-weight: 700;
}
.dots i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--c-fg);
  margin-left: 2px;
}
.dots i.on {
  background: var(--c-fg);
}
.chip-note {
  align-self: flex-start;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 650;
  text-transform: capitalize;
  background: #fff;
  color: #5b6f6c;
  border-radius: 10px;
  padding: 1px 7px;
  margin-top: 3px;
}

/* ---- groups page ---- */
.grow-list {
  padding: 4px 12px 12px;
}
.grow {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 4px solid var(--c-fg);
  border-radius: 10px;
  margin-bottom: 7px;
  padding: 2px 10px 2px 0;
  background: #fff;
}
.grow-main {
  flex: 1;
  min-width: 0;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 9px 4px 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.grow-main b {
  color: var(--c-fg);
  font-size: 13.5px;
}
.grow-main span {
  font-size: 12px;
  color: #4d605e;
}
.grow-main small {
  font-size: 11.5px;
  color: var(--muted);
}
.bar {
  display: block;
  height: 6px;
  max-width: 360px;
  border-radius: 3px;
  background: #edf1ee;
  overflow: hidden;
  margin: 3px 0 1px;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--c-fg);
}
.bar i.full {
  background: #a23643;
}
.bar i.low {
  background: #b9c5c0;
}
.grow-side {
  flex: none;
  max-width: 150px;
  text-align: right;
}
.pill.off {
  background: #fbe9e7;
  color: #a23643;
}
.why {
  display: block;
  font-size: 11.5px;
  color: #a23643;
  line-height: 1.3;
}

/* ---- the session sheets ---- */
.modal.sheet .modal-head {
  align-items: flex-start;
}
.modal.sheet .modal-head > div {
  flex: 1;
  min-width: 0;
}
.btn.back {
  min-height: 34px;
  padding: 6px 10px 6px 6px;
  font-size: 12px;
}
.btn.sm {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 12px;
}
.tag {
  display: inline-block;
  background: var(--c-bg);
  color: var(--c-fg);
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  margin-bottom: 5px;
}
.sheet-h {
  display: flex;
  justify-content: space-between;
  margin: 16px 0 7px;
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
}
.modal-body > .sheet-h:first-child {
  margin-top: 0;
}
.scope {
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #4d605e;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kid {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 6px 6px 12px;
  margin-bottom: 6px;
  min-height: 48px;
}
.kid > span {
  flex: 1;
  min-width: 0;
}
.kid small {
  display: block;
  font-size: 11.5px;
  color: #a23643;
  line-height: 1.35;
}
.kid.off {
  background: #f6f8f7;
}
.kid.off b {
  font-weight: 500;
  color: #5b6f6c;
}
.seat {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1.5px dashed #b9c5c0;
  background: transparent;
  border-radius: 10px;
  min-height: 48px;
  color: var(--brand);
  font-weight: 650;
  margin-bottom: 6px;
}
.seat.free {
  color: #9aa9a4;
  font-weight: 400;
  font-size: 12px;
}
.acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.acts .wide {
  grid-column: 1/-1;
}
/* ---- running late: the two choices, each with what it would do ---- */
.late-opt {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px;
}
.late-opt .sheet-h {
  margin-top: 0;
}
.late-opt .sheet-h span:last-child {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}
.late-opt p {
  margin: 6px 0;
  font-size: 13px;
  color: #4d605e;
}
.late-opt .btn {
  width: 100%;
  margin-top: 8px;
}
.late-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.late-row b {
  white-space: nowrap;
  color: var(--brand);
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.confirm {
  background: #fbe9e7;
  border-radius: 11px;
  padding: 12px;
  margin-top: 14px;
}
.confirm p {
  color: #a23643;
  font-weight: 650;
  margin-bottom: 9px;
}
.pick {
  background: var(--bg);
  border-radius: 11px;
  padding: 12px;
  margin-top: 14px;
}
.pick > p {
  margin: 4px 0 8px;
  font-size: 13px;
}
.pick .kid {
  background: #fff;
}
.slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 10px;
}
.slots button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  min-height: 42px;
  font-size: 13px;
}
.slots button:hover {
  background: #eaf3ee;
  border-color: #bccfc7;
}
.box {
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.45;
  background: var(--bg);
  color: #4d605e;
}
.box.good {
  background: #e0f0e7;
  color: #387b59;
}
.box.red {
  background: #fff2f1;
  border: 1px solid #efceca;
  color: #a33a34;
}
.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}
.modal-body > .fine {
  margin: 8px 0;
}

/* ---- requests: what a teacher asked, and drafts ---- */
.badge {
  font-style: normal;
  background: #94621d;
  color: #fff;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  padding: 0 6px;
  line-height: 17px;
  margin-left: auto;
}
.banner {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  background: #f9ebd0;
  color: #94621d;
  border: 0;
  border-radius: 10px;
  padding: 10px 13px;
  margin-bottom: 12px;
  font-size: 13px;
  min-height: 44px;
}
.banner b {
  background: #94621d;
  color: #fff;
  border-radius: 10px;
  padding: 1px 8px;
}
.banner span {
  flex: 1;
}
.scard.draft {
  background: #fff;
  outline: 2px dashed var(--c-fg);
  outline-offset: -2px;
}
.chip-note.wait {
  background: #f9ebd0;
  color: #94621d;
}
.chip-note.draft {
  background: #fff;
  border: 1px dashed var(--c-fg, #325e91);
  color: var(--c-fg, #325e91);
}
.chip-note.ok {
  background: #e0f0e7;
  color: #387b59;
}
.chip-note.no {
  background: #fbe9e7;
  color: #a23643;
}
.kid .chip-note {
  margin: 0;
  flex: none;
}
.req {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  margin-bottom: 8px;
  background: #fff;
}
.req small {
  color: var(--muted);
  font-size: 12px;
}
.req strong {
  display: block;
  margin: 2px 0 9px;
  font-size: 14px;
  line-height: 1.35;
}
.req.draft {
  border: 2px dashed #325e91;
}
.req-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.req-foot .chip-note {
  margin: 0;
}
.req-list {
  padding: 12px;
}
.req-list .req {
  max-width: 560px;
}
.kid.gone > span {
  text-decoration: line-through;
  color: var(--muted);
}
.kid.asked {
  border: 2px dashed #325e91;
  color: #325e91;
}
.phone-top {
  display: none;
}

@media (max-width: 760px) {
  /* The bottom bar is for pages; who is signed in, and signing out, sit at the top. */
  .phone-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
  }
  .phone-top .icon-btn {
    min-height: 34px;
    padding: 4px 9px;
    font-size: 12px;
  }
  .mobile-nav button {
    position: relative;
    flex: 1;
    padding-left: 2px;
    padding-right: 2px;
  }
  .mobile-nav .badge {
    position: absolute;
    top: 1px;
    left: calc(50% + 6px);
    margin: 0;
  }
  /* A phone shows one day: pick it in the day strip. */
  .daystrip {
    display: grid;
  }
  .board {
    display: block;
    padding: 10px;
  }
  .board-day,
  .board-head {
    display: none;
  }
  .board-day.sel,
  .board-title {
    display: block;
  }
  /* One wide card per line: the time in a column of its own at the left, then the session, then
     how full it is. */
  .scard {
    display: grid;
    grid-template-columns: 74px 1fr auto;
    grid-template-areas: 'time main fill';
    gap: 10px;
    padding: 10px;
  }
  .scard::after {
    content: none;
  }
  .scard-time {
    float: none;
    align-items: flex-start;
    margin: 0;
  }
  .scard-main {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }
  .scard-main span {
    margin-top: 0;
  }
  .scard-time b {
    font-size: 13.5px;
  }
  .scard-main strong {
    font-size: 14.5px;
  }
  .scard-main span {
    font-size: 12px;
  }
  .scard-fill {
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    margin-top: 0;
  }
  .weekbar {
    padding: 10px;
  }
  .weekbar-end {
    display: none;
  }
  .weekbar h2 {
    font-size: 14px;
    margin: 0 2px;
  }
  /* The three weeks take a line of their own, each as wide as the others. */
  .weekbar .seg {
    flex: 1 0 100%;
  }
  .weekbar .seg button {
    flex: 1;
  }
  .past-note {
    padding: 9px 10px;
  }
  .schedule-filters {
    padding: 10px;
  }
  .schedule-filters .field {
    width: 100%;
  }
  .schedule-filters .field select {
    flex: 1;
    min-width: 0;
  }
  .chipbtn {
    min-height: 38px;
    font-size: 13px;
  }
  .slots {
    grid-template-columns: repeat(3, 1fr);
  }
  /* Sheets rise from the bottom edge, like the rest of a phone. */
  .modal.sheet {
    margin: auto 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
  }
  .modal.sheet .modal-body {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

/* ==========================================================================
   What came after the group schedule: a teacher away, attendance, payments,
   a child's page, closed days, reports, the waiting list, the day to share.
   ========================================================================== */

/* ---- small tools under the filters of the schedule ---- */
.tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px 0;
}

/* ---- a teacher is away: one card per session to deal with ---- */
.abs {
  border: 1px solid var(--line);
  border-left: 4px solid var(--c-fg);
  border-radius: 10px;
  padding: 10px 11px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #fff;
}
.abs strong {
  color: var(--c-fg);
  font-size: 14px;
}
.abs small {
  color: #4d605e;
  font-size: 12px;
  margin-top: -4px;
}
.abs-no {
  font-size: 12px;
  color: #a23643;
  line-height: 1.35;
}
.abs .confirm {
  margin-top: 0;
}
.box .btn {
  margin-left: 6px;
}

@media (max-width: 760px) {
  .tools {
    padding: 10px 10px 0;
  }
  .tools .btn {
    flex: 1;
    min-height: 40px;
  }
}

/* ---- an answer the teacher has not looked at yet ---- */
.req.fresh {
  border-color: #94621d;
  box-shadow: inset 4px 0 0 #94621d;
}
.req .new-mark {
  display: inline-block;
  background: #94621d;
  color: #fff;
  border-radius: 9px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 8px;
  margin-bottom: 4px;
}

/* ---- who came: two marks per child once the session has started ---- */
.kid.marked {
  flex-wrap: wrap;
  padding-top: 7px;
  padding-bottom: 7px;
}
.kid > .marks {
  display: flex;
  gap: 6px;
  flex: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mark {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 17px;
  min-height: 34px;
  padding: 5px 11px;
  font-size: 12px;
  color: #4d605e;
}
.mark.on.yes {
  background: #e0f0e7;
  border-color: #387b59;
  color: #2c6447;
  font-weight: 700;
}
.mark.on.no {
  background: #fbe9e7;
  border-color: #a23643;
  color: #a23643;
  font-weight: 700;
}

/* ---- payments: totals, who owes, the paid mark ---- */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tile span {
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.tile strong {
  font-size: 24px;
}
.tile small {
  font-size: 11.5px;
  color: var(--muted);
}
.tile.over {
  border-color: #efceca;
  background: #fff8f7;
}
.tile.over strong {
  color: #a23643;
}
.pay-list {
  padding: 12px;
}
.payer {
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 9px;
  background: #fff;
  max-width: 720px;
  overflow: hidden;
}
.payer.over {
  border-color: #e3b9b4;
}
.payer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg);
}
.payer-top strong {
  display: block;
  font-size: 14.5px;
}
.payer-top small {
  font-size: 12px;
  color: #4d605e;
}
.payer-top em {
  font-style: normal;
  color: #a23643;
  font-weight: 700;
}
.payer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 12px;
  border-top: 1px solid var(--line);
  min-height: 52px;
}
.payer-row.settle {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 6px;
  max-width: 720px;
  background: #fff;
}
.payer-what {
  flex: 1;
  min-width: 0;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.payer-what b {
  font-size: 13px;
  font-weight: 600;
}
.payer-what small {
  font-size: 11.5px;
  color: var(--muted);
}
.payer-row.over .payer-what small {
  color: #a23643;
}
.payer-sum {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.mark.on.paid {
  background: #e0f0e7;
  border-color: #387b59;
  color: #2c6447;
  font-weight: 700;
}
.mark.none {
  border-style: dashed;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
}
.fine.pad {
  padding: 0 2px 8px;
}
.fine .btn {
  vertical-align: middle;
}

@media (max-width: 760px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .tile {
    padding: 10px 12px;
  }
  .tile strong {
    font-size: 21px;
  }
  .pay-list {
    padding: 10px;
  }
}

/* ---- the page of one child ---- */
.linkname {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 650;
  color: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: #b9c5c0;
  text-underline-offset: 3px;
  cursor: pointer;
}
.linkname:hover {
  text-decoration-color: var(--brand);
}
.kid > .linkname {
  flex: 1;
  min-width: 0;
  font-weight: 400;
  min-height: 34px;
}
.payer-top .linkname {
  display: block;
  font-size: 14.5px;
}
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  padding: 4px 6px 4px 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  cursor: pointer;
}
.crumb .icon {
  width: 14px;
  height: 14px;
}
.child-panel {
  padding: 12px;
}
.child-panel .board-title.always:first-child {
  margin-top: 4px;
}
.crow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'when marks' 'what marks';
  gap: 1px 10px;
  align-items: center;
  width: 100%;
  max-width: 720px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--c-fg);
  border-radius: 10px;
  padding: 8px 10px 8px 12px;
  margin-bottom: 6px;
  min-height: 52px;
}
.crow:hover {
  background: var(--bg);
}
.crow b {
  grid-area: when;
  font-size: 13px;
  font-weight: 600;
}
.crow > span {
  grid-area: what;
  font-size: 12px;
  color: #4d605e;
}
.crow > .crow-marks {
  grid-area: marks;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.crow-marks .chip-note {
  margin: 0;
  border: 1px solid var(--line);
}
.crow.cancelled {
  opacity: 0.6;
}
.crow.cancelled b {
  text-decoration: line-through;
}
.page-head a {
  color: var(--brand);
}

@media (max-width: 760px) {
  .tiles:has(.tile:nth-child(3):last-child) {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .child-panel {
    padding: 10px;
  }
}

/* ---- a day on which the centre is closed ---- */
.daystrip .shut {
  background: repeating-linear-gradient(135deg, #f3f5f4 0 6px, #e9edeb 6px 12px);
}
.daystrip .shut i {
  color: #a23643;
  font-weight: 700;
}
.daystrip .shut.sel {
  background: var(--brand);
}
.daystrip .shut.sel i {
  color: #fff;
}
.board-day.shut .board-head {
  background: repeating-linear-gradient(135deg, #f3f5f4 0 6px, #e9edeb 6px 12px);
  border-radius: 8px 8px 0 0;
}
.closed-note {
  background: #fbe9e7;
  color: #a23643;
  border-radius: 9px;
  padding: 8px 10px;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 650;
  text-align: center;
}
.closed-note small {
  display: block;
  font-weight: 400;
  font-size: 11.5px;
}
.kid small.plain {
  color: var(--muted);
}
.modal-body > .field {
  margin: 12px 0;
}

/* ---- hours taught ---- */
.rep {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rep-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.rep-top strong {
  font-size: 14.5px;
}
.rep-top b {
  font-size: 16px;
  color: var(--brand);
  white-space: nowrap;
}
.rep small {
  font-size: 12px;
  color: #4d605e;
}
.rep.total {
  background: var(--bg);
  border-color: transparent;
}

.grow-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* ---- a make-up being chosen ---- */
.box.makeup {
  background: #f9ebd0;
  color: #6f4a12;
}
.kid .linkname {
  font-weight: 400;
}
.modal-body > .sheet-h + .box {
  margin-top: 0;
}

/* ---- the day to send or print ---- */
.share-pic {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 12px 0 4px;
}
.share-text {
  margin: 0;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 10px;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: all;
}
a.btn {
  text-decoration: none;
}
#print-area {
  display: none;
}
@media print {
  /* On paper there is the day and nothing else: no page, no window over it. */
  body > *:not(#print-area),
  dialog {
    display: none !important;
  }
  body {
    background: #fff;
  }
  #print-area {
    display: block;
    padding: 12mm;
    color: #000;
    font-size: 12pt;
  }
  #print-area h1 {
    font-size: 18pt;
    margin: 0 0 6mm;
  }
  #print-area table {
    width: 100%;
    border-collapse: collapse;
  }
  #print-area th,
  #print-area td {
    text-align: left;
    vertical-align: top;
    padding: 3mm 2mm;
    border-top: 1px solid #999;
  }
  #print-area th {
    white-space: nowrap;
    width: 28mm;
  }
}
