:root {
  --wall: #f4eee3;
  --wall-2: #ece3d3;
  --ink: #2f2622;
  --muted: #7d6f63;
  --line: #e2d7c5;
  --tree: #76a03a;
  --tree-dark: #2c4f23;
  --card: #fbfaf6;
  --card-edge: #ddd6c8;
  --red: #d7262f;
  --red-dark: #a91b23;
  --base: #3a2b27;
  --drawer: #8b6a3f;
  --brass: #a8904f;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --card-font: 'Segoe UI', 'Myriad Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --digit-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --radius: 14px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(1200px 600px at 20% -10%, #fffaf0 0%, transparent 60%),
    radial-gradient(900px 500px at 110% 10%, #f8efe0 0%, transparent 55%), var(--wall);
  color: var(--ink);
  font-family: var(--card-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--red-dark);
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 0 max(40px, env(safe-area-inset-bottom));
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand svg {
  width: 22px;
  height: 22px;
}

.topbar nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgb(60 40 20 / 0.08);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible,
.pcard:focus-visible,
.mini:focus-visible,
.flip:focus-visible {
  outline: 3px solid #e8a33d;
  outline-offset: 3px;
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-quiet {
  background: transparent;
  border-color: transparent;
}

.btn-danger {
  color: var(--red-dark);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* ---------- headings ---------- */
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

.family-name {
  text-align: center;
  font-size: clamp(26px, 5vw, 40px);
  margin: 8px 0 2px;
}

.dateline {
  text-align: center;
  color: var(--muted);
  margin: 0 0 8px;
  font-size: 15px;
}

.section-title {
  font-size: 24px;
  margin: 0 0 4px;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 15px;
}

/* ---------- tree stage ---------- */
.stage {
  position: relative;
  width: min(440px, 92vw);
  aspect-ratio: 400 / 560;
  margin: 0 auto;
  container-type: inline-size;
}

.stage > svg.tree {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 10px 18px rgb(60 40 20 / 0.18));
}

.tree .drawer-front {
  cursor: pointer;
}

.hang {
  position: absolute;
  width: 23%;
  aspect-ratio: 92 / 144;
  perspective: 900px;
}

.hang.activity {
  left: 38.5%;
  top: 24.6%;
}

.hang.digit-l {
  left: 26.3%;
  top: 54%;
}

.hang.digit-r {
  left: 50.7%;
  top: 54%;
}

.hook {
  position: absolute;
  left: 50%;
  top: -5.5%;
  width: 14%;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 1px 0 rgb(0 0 0 / 0.25));
}

/* wooden card */
.wood {
  position: absolute;
  inset: 0;
  border-radius: 3.5% / 2.4%;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.7), rgb(255 255 255 / 0) 30%),
    linear-gradient(90deg, #f4f1ea, var(--card) 18%, var(--card) 82%, #f1ede5);
  box-shadow:
    0 1px 0 var(--card-edge),
    0 2px 0 #cfc7b8,
    0 8px 14px rgb(40 30 20 / 0.22);
  display: grid;
  place-items: center;
  text-align: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.wood::before {
  /* the hanging hole */
  content: '';
  position: absolute;
  top: 6.5%;
  left: 50%;
  width: 7.5%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #4a3e36;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.6);
}

.stack .wood {
  box-shadow:
    0 1px 0 var(--card-edge),
    0 2px 0 #cfc7b8,
    -2px 3px 0 #ece7dd,
    -2px 4px 0 #d8d0c2,
    -4px 6px 0 #e9e3d8,
    -4px 7px 0 #d3cabb,
    0 10px 16px rgb(40 30 20 / 0.24);
}

.digit {
  font-family: var(--digit-font);
  font-weight: 700;
  color: var(--red);
  font-size: 15.5cqw;
  line-height: 1;
  padding-top: 12%;
  letter-spacing: -0.02em;
}

.activity-text {
  font-family: var(--card-font);
  color: var(--red);
  font-size: 3.6cqw;
  line-height: 1.22;
  padding: 18% 9% 8%;
  overflow-wrap: break-word;
  hyphens: manual;
}

/* flipping activity card */
.flip {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.3, 1.4, 0.4, 1);
}

.flip[disabled] {
  cursor: default;
}

.flip.is-flipped {
  transform: rotateY(180deg);
}

.flip .front {
  transform: rotateY(180deg);
}

.flip:not(.is-flipped):not([disabled]):hover {
  transform: rotateY(-8deg) rotateZ(-1deg);
}

.card-back {
  color: var(--muted);
}

.card-back .back-inner {
  display: grid;
  gap: 4%;
  justify-items: center;
  padding-top: 18%;
}

.card-back .back-star {
  width: 34%;
  color: var(--red);
  opacity: 0.9;
}

.card-back .back-label {
  font-size: 2.6cqw;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a8c7f;
}

.wiggle {
  animation: wiggle 2.8s ease-in-out 1.2s infinite;
  transform-origin: 50% 0;
}

@keyframes wiggle {
  0%,
  86%,
  100% {
    rotate: 0deg;
  }
  89% {
    rotate: -3deg;
  }
  93% {
    rotate: 2.5deg;
  }
  96% {
    rotate: -1deg;
  }
}

.note .wood {
  background: linear-gradient(180deg, #e9d3a6, #dcc08b);
  box-shadow: 0 8px 14px rgb(40 30 20 / 0.2);
}

.note .activity-text {
  color: #5b4222;
  font-family: var(--display);
  font-weight: 500;
  font-size: 3.4cqw;
  overflow-wrap: normal;
  padding: 20% 7% 8%;
}

.empty .activity-text {
  color: var(--muted);
}

/* digit page flip */
.page-old {
  transform-origin: 50% 0;
  animation: pageflip 0.75s cubic-bezier(0.5, 0, 0.6, 1) forwards;
  z-index: 2;
}

@keyframes pageflip {
  0% {
    transform: rotateX(0);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: rotateX(-160deg);
    opacity: 0;
  }
}

/* ---------- today actions ---------- */
.today-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin: 14px 0 4px;
}

.done-btn.is-done {
  background: #edf4e2;
  border-color: #bcd59a;
  color: #3f6a1d;
}

/* ---------- drawer (family view) ---------- */
.drawer {
  margin-top: 40px;
  padding: 28px clamp(16px, 4vw, 32px) 32px;
  background: linear-gradient(180deg, #fffaf1, #fbf4e7);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 1px 0 #fff inset;
}

.minis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 14px;
}

.mini {
  position: relative;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  perspective: 700px;
}

.mini[disabled] {
  cursor: default;
}

.mini .mini-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  padding: 0 2px;
}

.mini .mini-num {
  font-family: var(--digit-font);
  font-weight: 700;
  color: var(--red);
  font-size: 15px;
}

.mini .mini-card {
  position: relative;
  aspect-ratio: 92 / 120;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.3, 1.3, 0.4, 1);
  container-type: inline-size;
}

.mini.is-flipped .mini-card {
  transform: rotateY(180deg);
}

.mini .front {
  transform: rotateY(180deg);
}

.mini .wood {
  border-radius: 6px;
  box-shadow:
    0 1px 0 var(--card-edge),
    0 2px 0 #cfc7b8,
    0 4px 8px rgb(40 30 20 / 0.14);
}

.mini .wood::before {
  width: 9%;
  top: 7%;
}

.mini .mini-text {
  color: var(--red);
  font-size: 12.5cqw;
  line-height: 1.2;
  padding: 22% 10% 10%;
  text-align: center;
  overflow-wrap: break-word;
  hyphens: manual;
}

.mini .mini-back {
  font-size: 10cqw;
  color: #a69888;
  padding-top: 14%;
  text-align: center;
}

.mini .mini-back svg {
  width: 30%;
  display: block;
  margin: 0 auto 6%;
  color: #c9bcac;
}

.mini.is-today .mini-head {
  color: var(--red-dark);
  font-weight: 700;
}

.mini.is-today .mini-card {
  outline: 2px dashed #e7a7a5;
  outline-offset: 4px;
  border-radius: 6px;
}

.mini.is-future .wood {
  background: repeating-linear-gradient(135deg, #f6f2ea 0 8px, #f2ede3 8px 16px);
}

.stamp {
  position: absolute;
  right: -6px;
  bottom: -6px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tree);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.2);
  transform: rotate(-12deg);
}

.stamp svg {
  width: 18px;
}

/* ---------- landing ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: min(760px, calc(100vh - 80px));
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.015em;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero .lede {
  font-size: clamp(17px, 2vw, 19px);
  color: #5d4f45;
  max-width: 34em;
  margin: 18px 0 28px;
}

.panel {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 12px 30px rgb(60 40 20 / 0.08);
  max-width: 460px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field label,
.field .label {
  font-weight: 600;
  font-size: 14px;
}

.field .hint {
  font-size: 13px;
  color: var(--muted);
}

input[type='text'],
textarea,
select {
  width: 100%;
  border: 1px solid #d9cdb9;
  border-radius: 12px;
  background: #fff;
  padding: 11px 13px;
  font-size: 16px;
}

input[type='text']:focus,
textarea:focus,
select:focus {
  outline: 3px solid #f1c27b;
  border-color: #d99c3f;
}

textarea {
  resize: none;
  min-height: 92px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  margin: 4px 0 18px;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--red);
}

.mine {
  margin-top: 22px;
}

.mine h2 {
  font-size: 16px;
  font-family: var(--card-font);
  color: var(--muted);
  margin-bottom: 8px;
}

.mine ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.mine li {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.mine li a.name {
  font-weight: 600;
  margin-right: auto;
  color: var(--ink);
}

/* ---------- planner ---------- */
.planner-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0 18px;
}

.name-input {
  font-family: var(--display) !important;
  font-weight: 700;
  font-size: clamp(24px, 4vw, 34px) !important;
  border: 1px dashed transparent !important;
  background: transparent !important;
  padding: 2px 6px !important;
  margin-left: -6px;
  border-radius: 10px !important;
  max-width: 100%;
}

.name-input:hover {
  border-color: #d9cdb9 !important;
}

.name-input:focus {
  background: #fff !important;
}

.planner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 14px;
}

.slot {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
  min-width: 0;
}

.slot-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 2px;
}

.slot-num {
  font-family: var(--digit-font);
  font-weight: 700;
  color: var(--red);
  font-size: 20px;
  line-height: 1;
}

.slot-date {
  color: var(--muted);
  font-size: 12px;
}

.slot.is-today .slot-date {
  color: var(--red-dark);
  font-weight: 700;
}

.drop {
  position: relative;
  border-radius: 12px;
  min-height: 150px;
  padding: 6px;
  border: 2px dashed transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.slot .drop {
  background: rgb(118 160 58 / 0.13);
  border-color: rgb(118 160 58 / 0.25);
}

.drop.is-over {
  background: rgb(215 38 47 / 0.1) !important;
  border-color: var(--red) !important;
}

.drop .empty-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 13px;
  color: #6f8a4a;
  padding: 10px;
}

.pcard {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 134px;
  padding: 26px 10px 12px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #f4f1ea, var(--card) 18%, var(--card) 82%, #f1ede5);
  box-shadow:
    0 1px 0 var(--card-edge),
    0 2px 0 #cfc7b8,
    0 5px 10px rgb(40 30 20 / 0.16);
  color: var(--red);
  font-family: var(--card-font);
  font-size: 15px;
  line-height: 1.25;
  text-align: center;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
  overflow-wrap: break-word;
  hyphens: manual;
}

.pcard::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #4a3e36;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.6);
}

.pcard.is-lifted {
  opacity: 0.35;
}

.pcard.is-new {
  animation: pop 0.45s cubic-bezier(0.3, 1.5, 0.5, 1);
}

@keyframes pop {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
}

.ghost {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  rotate: -4deg;
  scale: 1.06;
  box-shadow: 0 18px 30px rgb(40 30 20 / 0.3) !important;
  cursor: grabbing;
}

.tray {
  position: sticky;
  top: 16px;
  background: linear-gradient(180deg, #a07d4c, var(--drawer));
  border-radius: 18px;
  padding: 14px;
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 0.15),
    0 10px 24px rgb(60 40 20 / 0.18);
  color: #fff8ec;
}

.tray-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.tray-head h2 {
  font-size: 18px;
}

.tray-head .count {
  font-size: 13px;
  opacity: 0.85;
}

.tray .drop {
  background: rgb(58 43 39 / 0.35);
  border-color: rgb(255 255 255 / 0.15);
  min-height: 170px;
  max-height: calc(100vh - 190px);
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  align-content: start;
  gap: 10px;
}

.tray .empty-hint {
  color: #f3e3c8;
}

.tray .btn {
  width: 100%;
  margin-top: 12px;
}

.help {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}

/* ---------- dialogs ---------- */
dialog {
  border: 0;
  border-radius: 22px;
  padding: 0;
  width: min(460px, 100% - 24px);
  background: #fffdf8;
  color: var(--ink);
  box-shadow: 0 30px 60px rgb(30 20 10 / 0.3);
}

dialog::backdrop {
  background: rgb(40 28 20 / 0.45);
  backdrop-filter: blur(2px);
}

dialog form,
dialog .dialog-body {
  padding: 22px;
}

dialog h2 {
  font-size: 22px;
  margin-bottom: 14px;
}

.dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 8px;
}

.dialog-actions .spacer {
  margin-right: auto;
}

.linkbox {
  display: flex;
  gap: 8px;
}

.linkbox input {
  font-size: 14px;
  font-family: ui-monospace, Menlo, monospace;
  background: #faf6ee;
}

.warn {
  font-size: 13px;
  color: #8a5a1c;
  background: #fbf0dc;
  border-radius: 10px;
  padding: 8px 10px;
  margin: 6px 0 0;
}

/* ---------- toast & misc ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 200;
  max-width: calc(100% - 32px);
  text-align: center;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.center-msg {
  text-align: center;
  padding: 80px 16px;
}

.center-msg p {
  color: var(--muted);
}

.sparkle {
  position: absolute;
  z-index: 20;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  animation: burst 0.9s ease-out forwards;
}

@keyframes burst {
  to {
    transform: translate(var(--dx), var(--dy)) scale(0.2);
    opacity: 0;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 36px;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 8px;
  }

  .hero .stage {
    order: -1;
    width: min(300px, 70vw);
  }

  .planner-layout {
    grid-template-columns: 1fr;
  }

  .tray {
    position: sticky;
    top: auto;
    bottom: 0;
    margin: 0 -16px;
    border-radius: 18px 18px 0 0;
    padding: 12px 14px max(12px, env(safe-area-inset-bottom));
    z-index: 30;
    order: 2;
  }

  .tray .drop {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    min-height: 0;
    max-height: none;
    padding: 6px;
    scroll-snap-type: x proximity;
  }

  .tray .pcard {
    flex: 0 0 104px;
    min-height: 112px;
    font-size: 13px;
    touch-action: pan-x;
  }

  .tray .empty-hint {
    position: static;
    min-height: 60px;
    width: 100%;
  }

  .tray .btn {
    display: none;
  }

  .tray-head {
    margin-bottom: 8px;
  }

  .tray .empty-hint {
    min-height: 44px;
    font-size: 12px;
    padding: 4px;
  }

  .topbar nav {
    flex-wrap: nowrap;
    gap: 4px;
  }

  .topbar .btn {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .board {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 10px;
  }

  .drop {
    min-height: 128px;
  }

  .pcard {
    min-height: 114px;
    font-size: 13px;
    padding: 22px 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- start choices, weekend/break cues, effort ---------- */
.choices {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
}

.choices legend {
  margin-bottom: 8px;
  padding: 0;
}

.choices .check {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.choices .check:has(input:checked) {
  border-color: var(--red);
  background: #fff6f4;
}

.kind-chip {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1px 7px;
  border-radius: 999px;
}

.slot.kind-weekend .kind-chip {
  background: #e3eed2;
  color: #47702a;
}

.slot.kind-break .kind-chip {
  background: #dfeaf2;
  color: #2f5d7c;
}

.slot.kind-christmas .kind-chip {
  background: #fbe1df;
  color: var(--red-dark);
}

.slot.kind-weekend .drop {
  background: rgb(118 160 58 / 0.24);
  border-color: rgb(118 160 58 / 0.45);
}

.slot.kind-break .drop {
  background: rgb(84 137 176 / 0.16);
  border-color: rgb(84 137 176 / 0.38);
}

.slot.kind-christmas .drop {
  background: rgb(215 38 47 / 0.08);
  border-color: rgb(215 38 47 / 0.25);
}

.effort {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  color: #8a6a3f;
}

.effort.inline {
  position: static;
  display: inline-block;
  vertical-align: -4px;
  margin: 0 4px 0 12px;
}

.pcard.is-conflict {
  box-shadow:
    0 0 0 2px #e8a33d,
    0 5px 10px rgb(40 30 20 / 0.16);
}

.pcard.is-conflict .effort {
  color: #c27a12;
}

.settings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: -4px 0 18px;
  font-size: 14px;
}

.legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  color: var(--muted);
  margin-right: auto;
}

.swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin: 0 4px 0 12px;
}

.legend .swatch:first-child {
  margin-left: 0;
}

.swatch.weekend {
  background: rgb(118 160 58 / 0.35);
}

.swatch.break {
  background: rgb(84 137 176 / 0.3);
}

.school-day {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.school-day input {
  border: 1px solid #d9cdb9;
  border-radius: 10px;
  background: #fff;
  padding: 6px 8px;
}

.slot-head {
  flex-wrap: wrap;
  row-gap: 2px;
}

.slot-date {
  white-space: nowrap;
}
